Replace the per-message human prefix with one sentence in the child delegation context, so direct human messages keep their original content in logs, UI, titles and exports.
Update the full-text instruction assertions, the run_code tool-schema and system-prompt sidecars of the session, SDK, and Web snapshots, the cua-mcp expected tools, the generated tool catalog with its Chinese pair, and the ptc-runtime-node README pair.
Name every empty catch binding, state why each discarded failure is safe,
and narrow each wide try to the single statement whose failure is tolerated.
The empty-catch baseline is now empty.
* feat(ptc): define scoped REPL top-level scopes and import base in guidance
The scoped REPL guidance now states the rules a program follows instead of
listing edge cases: each run_code call runs one program in its own top-level
scope, whose top-level declarations and received names are copied, not
referenced, into later programs; a program either uses a copied name or
declares it again; block-level var is discouraged because it changes which
value later programs copy; a failed program keeps earlier values. It names
the missing require and module and separates the import base, fixed at the
environment's first program, from process.cwd(), which follows each program.
Formats without top-level return say to await work before the program ends.
* test(ptc): pin the scoped REPL scope and import guidance
Update the verbatim scoped REPL guidance assertion and refresh, without a key,
the recorded run_code descriptions of the PTC and CUA scenarios whose guidance
changed: the scoped REPL rules and the "before the program ends" wording
shared by retained formats.
* test(cua-mcp): refresh the cua_run_code description for the scoped REPL guidance
The cua-mcp profile expectation landed on master after this branch's base; it lists cua_run_code with the scoped REPL execution instructions.
* fix(ptc): keep the shared scoped guidance free of a consumer tool name
The runtime execution instructions are shared by run_code and cua_run_code, so
the new sentence no longer names run_code. The Agent Note also gives the
missing top-level return as the reason for the retained-state wording, which
covers the persistent script format as well as the REPLs.
* test(ptc): pin the unchanged scoped guidance across consumers
The verbatim assertion, the three scoped tool schemas, and the cua-mcp profile
fixture follow the shared sentence, which no longer names run_code.
The invalid-credential scenario mounts the API-key route as entry
`llm-deepseek-keyless`. Since fb007f605d4 the INVALID_CREDENTIAL
diagnostic of an unusable key names the settings namespace of the mount
instead of the fixed `llm-deepseek`, so the expected stream names
`llm-deepseek-keyless` in its two failure records. The file is refreshed
through the test's own DSH_SNAPSHOT=refresh mode; nothing else in it
changes.
master renamed the macOS Computer Use provider to @deepseek-ai/dsh-cua-macos
(#8284) and moved identity construction to brandString (#8214).
Adapted to master:
- The cua-mcp profile mounts @deepseek-ai/dsh-cua-macos and declares it as the
optional dependency; the bundle test follows the new name.
- The MCP adapter builds its Session and tool-call ids with brandString, so
@deepseek-ai/dsh-brand becomes a runtime dependency of the package.
Conflicts:
- scripts/experimental-package-policy.ts and scripts/release/families.spec.ts:
both sides added a row; the cua-macos, cua-mcp, and cua-windows rows coexist.
- scripts/package-dependency-policy.ts: took master's removal of the SessionId
safe entry. longEdgeDimensions no longer sits in the safe-export list; it
joins the existing peer-required @deepseek-ai/dsh-attachment entry, so this
branch adds no safe-export exception.
- Generated catalogs, module graphs, and the dsh-doc package reference: took
master and regenerated.
- Four translation pairing records: took master and re-recorded after
reviewing both language diffs.
The profile mounted only the macOS provider, so a Windows Host listed no cua_run_code. Add a second
provider row for @deepseek-ai/dsh-cua-windows, enabled on native Windows only, with the same fixed
screenshot target and PTC preset as the macOS row, and declare the package as an optional dependency
beside the macOS provider. The profile e2e fixture switches both native rows off. The no-provider
message names both platforms and points at the launcher's stderr.
README: Windows helper setup through the row's helperPath, with the fields a config override must
restate, and the Windows provider's limits that apply through MCP.
Not exercised on a Windows desktop. On macOS the row was forced on through a profile patch: the
Loader resolved the package, accepted the documented config, rejected an invalid one, and reached
the provider's own host check.