Commit Graph
2366 Commits
Author SHA1 Message Date
imccyu ff6db9df9f Merge branch 'release/dsh-0.2.2' into master 2026-11-13 15:12:47 +08:00
imccyu 4c1cf20cb1 release(dsh): 0.2.2-rc.3 2026-11-13 13:11:59 +08:00
_Kerman c1e490b7b5 fix(ptc): reject unsupported providers without native fallback 2026-11-12 17:46:53 +08:00
_Kerman 656533bde1 refactor(ptc)!: remove all Python PTC support 2026-11-12 17:09:15 +08:00
sjw1231 efc62d7b06 fix(bash,pwsh,fs,ptc): reject unadvertised arguments before pairing and approval
Without a sandboxing backend, a lone sandbox_permissions or justification
failed the pairing check and asked the model to add the other field, and
bash/pwsh checked a disabled run_in_background only after an escalation
approval. Reject unadvertised escalation fields and a disabled background
request during argument validation in bash, pwsh, write/edit/apply_patch,
and run_code, and name both escalation fields in the message. Update the
upgrade guide to identify rc.2 shell records by message.

Refs #7869
2026-11-12 15:29:38 +08:00
sjw1231 cf92ab9aac Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252 2026-11-11 19:57:11 +08:00
sjw1231 75f5b13132 Merge remote-tracking branch 'origin/master' into claude/tool-errors-mcp-f5e887
# Conflicts:
#	docs/persistence-schema.json
2026-11-11 17:06:13 +08:00
imccyu 5e7206f6c6 refactor(exports): retire obsolete subpaths with compatible brand APIs (#8215)
* refactor(exports): consolidate type entries and remove obsolete subpaths

* fix(exports): preserve constructors while retiring brand subpaths

* fix(exports): retain guide relocation after parent squash
2026-11-11 08:39:14 +00:00
sjw1231 c670457442 Merge remote-tracking branch 'origin/master' into claude/tool-errors-mcp-f5e887 2026-11-11 16:25:44 +08:00
sjw1231 843d17d9d9 Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252
# Conflicts:
#	packages/experimental/ptc-runtime-python/README.i18n.yaml
#	packages/experimental/ptc-runtime-python/README.md
#	packages/experimental/ptc-runtime-python/README.zh.md
#	packages/experimental/ptc-runtime-python/src/index.ts
#	packages/experimental/ptc-runtime-python/tests/runtime.spec.ts
2026-11-11 16:11:34 +08:00
sjw1231 e5611f8281 Merge remote-tracking branch 'origin/master' into claude/tool-errors-mcp-f5e887
# Conflicts:
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	packages/boot/plugin-market/tests/tools.spec.ts
#	packages/mcp/mcp-client/tests/mcp-client.spec.ts
#	pnpm-lock.yaml
2026-11-11 15:51:19 +08:00
sjw1231 aa6f6c1a30 test: brand ToolCallId with brandString after merging master
master replaced the branded-id constructors with brandString; the
wrapper-cancellation and cua-driver cancellation tests this branch adds
now use it too.

Refs #7869
2026-11-11 15:50:28 +08:00
sjw1231 53f68a03ca Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252
# Conflicts:
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	packages/experimental/browser-use-runtime/tests/mcp.spec.ts
#	packages/experimental/browser-use-runtime/tests/resources.spec.ts
#	packages/experimental/browser-use-stagehand-native/tests/provider.spec.ts
#	packages/experimental/claude-code-mods/src/host-ops.ts
#	packages/experimental/cua-macos/tests/provider-lifecycle.spec.ts
#	packages/experimental/cua/README.i18n.yaml
#	pnpm-lock.yaml
2026-11-11 15:40:25 +08:00
_Kerman f141464b59 docs(ptc): clarify remaining extension support and migration 2026-11-11 15:37:46 +08:00
imccyu 455f7a38a6 Merge pull request #8214 from deepseek-harness/split-exports-brand-strings
refactor(brand): migrate internal identity construction
2026-11-11 15:15:26 +08:00
sjw1231 fa96728ee0 Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252
# Conflicts:
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	packages/experimental/cua-macos/tests/provider-lifecycle.spec.ts
#	packages/experimental/cua/README.i18n.yaml
#	packages/experimental/cua/README.md
#	packages/experimental/cua/README.zh.md
#	packages/experimental/cua/package.json
#	packages/experimental/cua/src/index.ts
#	packages/experimental/cua/src/native-client.ts
#	packages/experimental/ptc-runtime-python/README.i18n.yaml
#	packages/experimental/ptc-runtime-python/src/index.ts
#	packages/experimental/ptc-runtime-python/tests/runtime.spec.ts
#	packages/ptc-runtime/ptc-runtime/package.json
#	packages/ptc-runtime/ptc-runtime/tsconfig.json
#	pnpm-lock.yaml
#	snapshots/session/cua-native/session.v4.jsonl
#	snapshots/session/cua-ptc/session.v4.jsonl
2026-11-11 12:24:26 +08:00
sjw1231 32bbcb9997 Merge remote-tracking branch 'origin/master' into claude/tool-errors-mcp-f5e887
# Conflicts:
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	packages/core/tool-executor-ptc/README.i18n.yaml
#	packages/core/tool-executor-ptc/src/errors.ts
#	packages/core/tool-executor-ptc/src/ptc.ts
#	packages/ptc-runtime/ptc-runtime-node/src/bindings.ts
#	packages/ptc-runtime/ptc-runtime-node/src/execution.ts
#	packages/ptc-runtime/ptc-runtime-node/src/index.ts
#	packages/ptc-runtime/ptc-runtime/package.json
#	packages/ptc-runtime/ptc-runtime/tsconfig.json
#	packages/util/atomic-write/package.json
#	pnpm-lock.yaml
2026-11-11 11:48:52 +08:00
imccyu 4e205cd66d Merge release/dsh-0.2.2 (0.2.2-rc.2) into master
# Conflicts:
#	packages/experimental/cua-bundle/package.json
#	packages/ptc-runtime/ptc-runtime-node/package.json
2026-11-11 10:34:31 +08:00
imccyu 91319233e1 release(dsh): 0.2.2-rc.2 2026-11-11 10:18:52 +08:00
imccyu 17d96e0f6d refactor(exports): internalize test helpers and type fixtures 2026-11-11 07:32:55 +08:00
imccyu 37e0924f68 Merge pull request #8257 from deepseek-harness/ptc-scoped-repl-switch
feat(ptc): run the scoped REPL by default for persistent-in-memory execution
2026-11-10 22:34:59 +08:00
_Kerman f775b74795 fix(ptc): preserve line breaks before sandbox diagnostics 2026-11-10 17:02:36 +08:00
_Kerman 5fd443618f fix(ptc): preserve raw text and cross-realm image inspection 2026-11-10 16:07:14 +08:00
_Kerman 86984d8358 Merge branch 'feat/cua-run-code-standard' into xtr/ptc-inspect-output 2026-11-10 14:24:26 +08:00
_Kerman dad69a4636 docs(ptc): mark tool-specific output type adaptation 2026-11-10 12:17:50 +08:00
_Kerman 93ecacdb42 refactor(ptc): simplify inspect output instructions 2026-11-10 12:07:25 +08:00
_Kerman cfc366a869 docs(ptc): keep known limitations in a compact list 2026-11-10 11:43:33 +08:00
_Kerman 2bedbf2f2b fix(ptc): align JSON inspection tests and failure handling 2026-11-10 10:45:41 +08:00
_Kerman b877eb6118 fix(ptc): render inspected values as lossless JSON 2026-11-09 23:45:27 +08:00
turtle1999 26427a26e1 refactor(ptc): initialize each environment through a registered hook 2026-11-09 22:19:35 +08:00
_Kerman 5bcee95efe fix(ptc): preserve automatic images for unadapted tools 2026-11-09 21:46:06 +08:00
_Kerman fc251c7b4a fix(ptc): explain image omissions and align program guidance 2026-11-09 21:42:30 +08:00
_Kerman 69528e4e88 fix(ptc): preserve outer failure replacements when projecting images 2026-11-09 20:04:17 +08:00
_Kerman 069ba921dc docs(ptc): mark tool-owned image adaptation follow-up 2026-11-09 20:03:58 +08:00
_Kerman 9f8fd9d800 test(ptc): cover image output policies and explicit recovery 2026-11-09 19:17:05 +08:00
_Kerman e1f0a36193 fix(ptc): preserve native console methods 2026-11-09 18:17:19 +08:00
_Kerman a2ea3970fd refactor(ptc): return ordered text and image output 2026-11-09 17:44:12 +08:00
_Kerman 4f6ccd772d docs(ptc): shorten explicit output guidance 2026-11-09 17:19:55 +08:00
_Kerman 1fed265b3b fix(ptc): bound binary inspection and preserve failure output 2026-11-09 17:19:48 +08:00
sjw1231 688e7243e2 fix(ptc,extensions): keep distinct failures that settle after cancellation
run_code and host inspect queries no longer replace a runtime or
provider rejection with the cancellation reason: the cancellation itself
passes through for the registry to classify as ABORTED, a HarnessError
keeps its code, and any other rejection is still wrapped. Dynamic plugin
tools apply the same rule, survive Proxy values whose traps throw, and
read clone failure messages with toolErrorMessage. tool-executor-ptc
exports CodeRunErrorCode.

Refs #7869
2026-11-09 16:30:37 +08:00
_Kerman b98e3d070b feat(ptc): expose attachment IDs on program images 2026-11-09 15:58:33 +08:00
_Kerman 3dbe1c126f refactor(ptc): simplify image references and CUA bridge 2026-11-09 15:57:42 +08:00
turtle1999 b9966a12a6 feat(cua): expose persistent code tool outside PTC mode 2026-11-09 15:53:22 +08:00
sjw1231 6b3023d888 feat(ptc): give run_code and PTC runtime failures error codes
run_code argument checks now throw ToolArgsError (INVALID_ARGS),
including timeoutMs or sandbox_permissions passed to a runtime whose
schema does not expose them; a missing runtime, workingDirectory, or
sandboxPolicy throws ToolContextUnavailableError. CodeRunFailedError
gains CODE_RUN_UNAVAILABLE after executor disposal, keeping
CODE_RUN_FAILED as the default. A runtime
rejection without its own code becomes CODE_RUN_FAILED with the
rejection as cause; caller cancellation keeps the signal's reason.

The PTC runtime Service Definition adds PtcRuntimeError for contract
misuse: PTC_RUNTIME_INVALID_ARGUMENT, PTC_RUNTIME_UNAVAILABLE, and
PTC_RUNTIME_CONFLICT. The Node runtime throws it for invalid specs and
bindings, use after disposal, incomplete retained cleanup, concurrent
runs for one owner, and a retained environment under another sandbox
policy. dsh-ptc-runtime now declares @deepseek-ai/dsh-error.

Refs #7869
2026-11-09 15:14:31 +08:00
_Kerman 724e56b286 feat(ptc): unify explicit text and image inspection 2026-11-09 15:06:09 +08:00
sjw1231 9b4b278b3e fix(tools): classify cancellation thrown by a tools/execute wrapper
After caller cancellation, a tools/execute wrapper that throws the
caller signal's reason or an AbortError without HarnessError identity
now keeps its message and carries AbortError with ABORTED, or
ABORTED_BEFORE_DISPATCH when the body never started, matching a tool
body that throws the same value. A wrapper's HarnessError and other
failures stay unchanged. Browser tools that run behind such a wrapper
now report caller cancellation as ABORTED.

Refs #7869
2026-11-09 15:04:53 +08:00
_Kerman 790991a6c0 docs(ptc): align inspection guidance and references 2026-11-09 12:56:55 +08:00
_Kerman c1783e9dff feat(ptc): select program output with Harness.inspect 2026-11-09 12:00:07 +08:00
liukx0205 7f6b7ba4b6 refactor(session): narrow batch publication metadata and validation 2026-11-07 17:02:19 +08:00
liukx0205 e767bef144 test(session): type the canonical batch append adapter 2026-11-07 17:02:19 +08:00