From 336e1edf7a9737636605fa9553a7919df9592a70 Mon Sep 17 00:00:00 2001 From: can1357 Date: Sun, 5 Jul 2026 15:57:24 +0200 Subject: [PATCH] chore: organized test scripts in CI workspace and package configuration - Added scripts/fix-dts-extensions.test.ts to the test:scripts npm script. - Included the .d.ts extension rewrite test in the CI workspace test suite. - Updated repoScriptTests list in scripts/ci-test-ts.ts to ensure consistent tracking. --- package.json | 2 +- packages/utils/CHANGELOG.md | 4 ++++ scripts/ci-test-ts.ts | 21 +++++++++++++++------ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 3ddaa6272..b7761968f 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "build:native": "bun --cwd=packages/natives run build", "test": "bun scripts/ci-test-ts.ts local", "test:ts": "bun scripts/ci-test-ts.ts local-ts", - "test:scripts": "bun test scripts/ci-concurrency.test.ts scripts/ci-release-notes.test.ts scripts/link-omp.test.ts", + "test:scripts": "bun test scripts/ci-concurrency.test.ts scripts/ci-release-notes.test.ts scripts/fix-dts-extensions.test.ts scripts/link-omp.test.ts", "test:rs": "bun scripts/run-rs-task.ts test:rs", "check": "bun run --parallel check:ts check:rs", "check:ts": "bun run check:tools && bun run --workspaces --if-present check", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index fc6e5e726..284b565d4 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- Added `classifyJsonPrefix`, a strict RFC 8259 streaming-buffer classifier (`"complete" | "prefix" | "invalid"`). Providers use it to disambiguate identifierless streaming tool-call deltas: a `{`-prefixed chunk only advances to a sibling call when the current argument buffer cannot absorb it. + ## [16.3.1] - 2026-07-02 ### Fixed diff --git a/scripts/ci-test-ts.ts b/scripts/ci-test-ts.ts index 6fc29ee92..f01e21795 100755 --- a/scripts/ci-test-ts.ts +++ b/scripts/ci-test-ts.ts @@ -103,14 +103,16 @@ const nativeAndIntegrationPackages = [ // and is outside every CI TS bucket. const localOnlyWorkspacePackages = ["packages/mnemopi", "python/robomp/web"]; -// Repo-level script tests. CI's `workspace` bucket only runs the concurrency -// regression (it's the GHA-config guard that must gate merges); a local full run -// also exercises the release-notes and link-omp tests. (A `ci-test-ts.test.ts` -// entry used to sit here but the file never existed — bun silently ignores -// unmatched filters when at least one other filter matches.) +// Repo-level script tests. CI's `workspace` bucket only runs the merge gates: +// the concurrency regression (the GHA-config guard) and the .d.ts extension +// rewrite (guards published-type resolution; hermetic temp-dir suite). A local +// full run also exercises the release-notes and link-omp tests. (A +// `ci-test-ts.test.ts` entry used to sit here but the file never existed — bun +// silently ignores unmatched filters when at least one other filter matches.) const repoScriptTests = [ "scripts/ci-concurrency.test.ts", "scripts/ci-release-notes.test.ts", + "scripts/fix-dts-extensions.test.ts", "scripts/link-omp.test.ts", ]; @@ -337,7 +339,14 @@ async function commandsForMode(mode: Mode): Promise { { label: "scripts", cwd: ".", - command: ["bun", "test", "--parallel=4", ...onlyFailuresArgs, "scripts/ci-concurrency.test.ts"], + command: [ + "bun", + "test", + "--parallel=4", + ...onlyFailuresArgs, + "scripts/ci-concurrency.test.ts", + "scripts/fix-dts-extensions.test.ts", + ], }, ]; case "native":