Commit Graph
494 Commits
Author SHA1 Message Date
sjw1231 c19f8fadfe Merge remote-tracking branch 'origin/master' into fix/sdk-dsh-doc-parity
# Conflicts:
#	packages/bundle/sdk-app/README.i18n.yaml
#	packages/bundle/sdk-app/README.md
#	packages/bundle/sdk-app/README.zh.md
#	scripts/snapshots/python-sdk-single-exe/authoring/model-visible.json
#	scripts/snapshots/python-sdk-single-exe/authoring/win-x64/model-visible.json
2026-11-19 13:03:11 +08:00
yudshj dca075e2a2 feat(sdk): 普通 prompt 逐条上报用户时区
session/prompt 与 session/query 接受可选 timeZone,TS/Python 客户端透传;省略时逐条采样进程时区,写入 sdk-user 来源的 clientTimeZone。time-context 读取不带 rpcId 的 user 来源时区。补持久化记录、Agent Note、升级指南、README,并刷新 SDK snapshot。
2026-11-19 11:58:00 +08:00
sjw1231 f0fb3692d3 fix(skills): list dsh-doc in the SDK profile and the Desktop PTC preset
The SDK profile and the Desktop PTC preset now add the agent-preset skills
directory to skill-filesystem, as the Desktop standard and Creator presets do,
so the first model request of every SDK session and of Desktop standard, PTC,
and Creator sessions lists the same dsh-doc skill.

Fixes #8557
2026-11-19 11:54:56 +08:00
Huo Yaoyuan f5e2c7db6e feat(cua): add action schema discovery (#8710)
* feat(cua): add action schema discovery

* Update guidance

* Fix prompt test

* Reduce test dependency

* Fix snapshot test
2026-11-18 20:50:54 +08:00
LegGasai 854ebc768a Merge remote-tracking branch 'origin/master' into feat/session-workspace-root 2026-11-17 19:29:22 +08:00
LegGasai 62a2f77b2b Merge remote-tracking branch 'origin/master' into refactor/deepseek-auth
# Conflicts:
#	docs/capability-seams.i18n.yaml
2026-11-17 16:15:48 +08:00
Dudu-0223 0fdcff09b1 Merge pull request #8424 from deepseek-harness/fix/subagent-human-message
fix(subagent): 区分 agent 任务与真人消息
2026-11-17 14:06:25 +08:00
Dudu-0223 327d5de8d6 Merge pull request #8121 from deepseek-harness/fix/cua-output-failures
fix(ptc): 输出超限后截断并继续执行
2026-11-17 13:59:03 +08:00
LegGasai 53168773c2 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
# Conflicts:
#	docs/capability-seams.i18n.yaml
#	docs/persistence-schema.json
2026-11-17 11:35:50 +08:00
LegGasai 5dfdf834d7 fix(session-controller): adopt a named Session requested through a symlinked directory
`session.create` records the canonical spelling of the project directory in the
Session header, and compared a later request's own spelling with it. A second
request for the same explicit Session id through a symlinked path, such as a
macOS temporary directory, failed with `session/conflict`.

The check now accepts the recorded spelling or one whose canonical form the
header records. The ACP image-offload expectation compares the model-visible
directory with the canonical spelling of the scenario directory.
2026-11-16 22:43:00 +08:00
LegGasai 219f27c927 Merge branch 'refactor/llm-route-credential' into refactor/deepseek-auth
# Conflicts:
#	docs/capability-seams.i18n.yaml
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	packages/experimental/translator/package.json
#	packages/experimental/translator/tests/paid-fixture.ts
#	packages/llm/llm/README.i18n.yaml
#	packages/web/web-deepseek-api/src/index.ts
2026-11-16 21:47:49 +08:00
LegGasai f9513796b8 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root 2026-11-16 21:36:56 +08:00
LegGasai d36dbee3d6 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	docs/capability-seams.i18n.yaml
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	packages/web/web-deepseek-api/src/index.ts
2026-11-16 21:23:43 +08:00
Huo Yaoyuan 077a9cde0b feat(cua): add toggleMouse with initial Windows support (#8425)
* feat(cua-windows): implement window-level mouse button toggles

* Update guidance

* Fix prompt test
2026-11-16 18:10:15 +08:00
LegGasai 23734da2b6 Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
master moved the `workingDirectory` projection-key declaration to
`src/types.ts`; this branch's `workspaceRoot` key follows it there. The three
recorded scenarios master added (`session-list-tools`,
`computer-use-cua-driver-mcp-ptc`, `sdk/subagent-dsh-sdk-empty-route`) drop the
removed `working_directory` tool and the delegation `cwd` parameter from their
sidecars.
2026-11-16 17:59:21 +08:00
Dudu-0223 dacd257e77 Merge master and resolve subagent context snapshot conflicts 2026-11-16 17:42:38 +08:00
Dudu-0223 f70ec1ac46 Merge pull request #8348 from deepseek-harness/feat/subagent-report-guidance
feat(subagent): tell delegated agents to report results with send_message
2026-11-16 09:35:17 +00:00
Dudu-0223 1de452556a Merge remote-tracking branch 'origin/master' into pr8424-delegation-context
# Conflicts:
#	scripts/snapshots/python-sdk-single-exe/advanced/session.1.v4.jsonl
#	scripts/snapshots/python-sdk-single-exe/advanced/session.2.v4.jsonl
2026-11-16 17:31:35 +08:00
LegGasai a2b6b12429 Merge branch 'refactor/llm-route-credential' into refactor/deepseek-auth 2026-11-16 14:41:57 +08:00
LegGasai 8eda7cfb7c Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	scripts/empty-catch.baseline.json
2026-11-16 14:36:05 +08:00
Dudu-0223 8ca5019928 fix(subagent): state human authorship in delegation context
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.
2026-11-16 14:28:35 +08:00
Dudu-0223 08e5a9b059 Merge remote-tracking branch 'origin/master' into fix/cua-output-failures
# Conflicts:
#	apps/cli/tests/profiles/cua-mcp/expected/tools.json
#	packages/core/tool-executor-ptc/README.i18n.yaml
#	packages/ptc-runtime/ptc-runtime-node/README.i18n.yaml
#	packages/ptc-runtime/ptc-runtime-node/README.md
#	packages/ptc-runtime/ptc-runtime-node/README.zh.md
#	packages/ptc-runtime/ptc-runtime-node/src/bootstrap.ts
#	packages/ptc-runtime/ptc-runtime-node/src/process.ts
#	packages/ptc-runtime/ptc-runtime-node/src/protocol.ts
#	packages/ptc-runtime/ptc-runtime-node/tests/bootstrap.spec.ts
#	snapshots/sdk/cua-run-code/tool-schemas.expected.json
#	snapshots/session/cua-run-code-ptc/system-prompt.expected.md
#	snapshots/session/cua-run-code-scoped/tool-schemas.expected.json
#	snapshots/session/cua-run-code/tool-schemas.expected.json
#	snapshots/session/ptc-persistent-scoped/tool-schemas.expected.json
#	snapshots/session/ptc-persistent/tool-schemas.expected.json
#	snapshots/session/ptc-reset/tool-schemas.expected.json
#	snapshots/session/ptc-scoped-repl/tool-schemas.expected.json
#	snapshots/session/ptc-timeout-fallback/tool-schemas.expected.json
2026-11-16 12:43:20 +08:00
LegGasai 2846506983 refactor(llm): connect the DeepSeek model routes to ctx.deepseekAuth
Both route plugins now require the DeepSeek authentication service and connect the deployment their settings name: the API-key route its base URL and key reference, the account route its base URL. Other DeepSeek consumers will bind each credential kind to that deployment through the service.

The `base` and `sdk-minimal` bundles mount the service, and the SDK server mounts it with its fallback route when the composition has none. Tests that mount a route plugin by hand mount the service first; the pinned row list of the `sdk-minimal` bundle gains the `deepseek-auth` row.
2026-11-15 16:03:18 +08:00
LegGasai 40e107f3cb Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
master replaced `cordis_inspect_list` and `cordis_inspect_query` with
`cordis_inspect`, which changed the same tool lists this branch edits. The
conflicted recordings take master's side and drop `working_directory` again:
`advanced-toolchain` and the two Web recommendation scenarios by refresh, the
six Python single-file runtime logs by removing the one list entry. The Web
collapse-timing count is 33.
2026-11-13 20:55:02 +08:00
turtle1999 18f492edbc chore: merge master into ptc inspection branch 2026-11-13 18:58:46 +08:00
imccyu 5584bb0301 Merge pull request #8426 from deepseek-harness/feat/ptc-string-literal-guidance
feat(ptc): 收窄 String.raw,文件内容改用逐行引号字符串数组
2026-11-13 18:49:22 +08:00
turtle1999 f3ed11c1a3 fix(ptc): preserve inspection across array changes and images 2026-11-13 18:41:03 +08:00
turtle1999 28f1580e64 test(ptc): assert formatted read in outer run_code results 2026-11-13 17:41:28 +08:00
imccyu f14fb7c76f test(ptc): sync run_code string guidance in tests, snapshots, and docs
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.
2026-11-13 16:12:16 +08:00
Dudu-0223 9a93dd6f21 test(subagent): update CLI and SDK delegated task fixtures 2026-11-13 16:07:13 +08:00
LegGasai e92c4eea4b Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
master released 0.2.2-rc.3: the removed `tool-working-directory` package stays
deleted (master only bumped its version), and the upgrade guide moves to
`docs/upgrade-guide/v0.2.2-rc.3/`.
2026-11-13 15:54:46 +08:00
Dudu-0223 f8401a14c1 test(cua-mcp): align retained output guidance 2026-11-13 15:47:21 +08:00
turtle1999 2f79c7386f docs(preset): describe shared runtime inspection in both modes 2026-11-13 15:45:04 +08:00
turtle1999 5dfda6a5f3 refactor(cordis): unify runtime inspection tool 2026-11-13 15:45:04 +08:00
LegGasai 17da980349 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential 2026-11-13 15:42:52 +08:00
Shigma 94d9995755 Merge pull request #7940 from deepseek-harness/refactor/cordis-include-yaml
refactor(cordis): route Include-dialect YAML through Include exports
2026-11-13 15:26:20 +08:00
LegGasai 564dfa8623 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	apps/desktop/README.i18n.yaml
#	docs/AGENTS.md
#	docs/capability-seams.i18n.yaml
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	docs/persistence-catalog.i18n.yaml
#	docs/persistence-schema.json
#	packages/account/deepseek-account/README.i18n.yaml
#	pnpm-lock.yaml
#	scripts/doc-budgets.manifest.json
2026-11-13 14:40:18 +08:00
Shigma e7a31d7517 Merge remote-tracking branch 'origin/master' into chore/cordis-core-rc12
# Conflicts:
#	packages/bundle/web-app/src/index.ts
#	packages/client/connection/src/index.ts
2026-11-13 14:08:25 +08:00
Shigma 37735a8013 Merge remote-tracking branch 'origin/master' into refactor/cordis-include-yaml
# Conflicts:
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
2026-11-13 14:03:58 +08:00
LegGasai d1d553049c Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
# Conflicts:
#	docs/capability-seams.i18n.yaml
#	docs/persistence-catalog.i18n.yaml
#	docs/persistence-catalog.md
#	docs/persistence-catalog.zh.md
#	docs/persistence-schema.json
#	docs/subsystems/worktrees.i18n.yaml
#	docs/subsystems/worktrees.md
#	docs/subsystems/worktrees.zh.md
#	docs/tool-catalog.i18n.yaml
#	packages/acp/acp/tests/bridge.spec.ts
#	packages/acp/acp/tsconfig.json
#	packages/experimental/tool-worktree/tests/loader-composition.spec.ts
#	packages/experimental/worktree/README.i18n.yaml
#	packages/experimental/worktree/src/index.ts
#	packages/sdk/server/tests/server.spec.ts
#	packages/session/tool-working-directory/package.json
#	packages/session/working-directory/tests/working-directory.spec.ts
#	snapshots/sdk/tool-error-details/notifications.expected.jsonl
#	snapshots/sdk/tool-error-details/session.v4.jsonl
#	snapshots/session/advanced-toolchain/session.v4.jsonl
#	snapshots/session/ptc-python-turn/system-prompt.expected.md
2026-11-13 12:25:55 +08:00
imccyu 71753fdf91 refactor(connection): add connection auth provider for remote connection (#8266)
* refactor(connection): extract peer authentication providers

* test(connection): cover provider lifecycle and satisfy package gates

* fix(packaging): publish authentication provider locale resources

* test(auth): use runtime login output and cover gateway admission

* fix(auth): preserve Worker requests and migrate Desktop fixtures

* refactor(auth): centralize route admission with required policy

* fix(release): align authentication providers with rc.2

* refactor(connection): keep peer lookup and source policy private

* test(gateway): cover centralized upgrade rejections

* fix(ci): authenticate homepage compression probe

* refactor(auth): let Token own API socket lifecycle

* fix(auth): prevent caching admission refusals and clarify ownership

* refactor(web): collect provider entry URLs after readiness

* refactor(webserver): name the shared entry URL event

* refactor(connection): provide authentication as a nested service

* fix(web-app): restore startup publication defaults

* fix(auth): scope web events and preserve callback flows

* docs(auth): record the implemented provider architecture

* fix(auth): require owner access for administrative routes
2026-11-12 23:14:32 +08:00
imccyu 3e1e50f774 feat(ptc): define scoped REPL top-level scopes and import base in guidance (#8275)
* 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.
2026-11-12 10:02:49 +00:00
Huo Yaoyuan f21a3d1700 Fix system prompt test 2026-11-12 16:12:50 +08:00
LegGasai 98003bd816 test(headless): expect the keyless mount's namespace in key diagnostics
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.
2026-11-12 14:18:17 +08:00
creatixchu 8b0966c5e9 Merge master and update the MCP modifier reference 2026-11-12 12:44:57 +08:00
Shigma af95179457 Merge remote-tracking branch 'origin/master' into refactor/cordis-include-yaml
# Conflicts:
#	apps/web/tests/client-ui-stats-panel.e2e.ts
#	packages/experimental/cua-bundle/tests/platform.spec.ts
2026-11-11 22:31:47 +08:00
Shigma fc1710a167 Merge remote-tracking branch 'origin/master' into chore/cordis-core-rc12 2026-11-11 22:09:14 +08:00
LegGasai ed30d274f1 refactor(working-directory): move the workspace only through Host operations
Remove the model-facing working_directory tool and the cwd parameter of the
subagent tools, so only Host operations move a Session's directory. Every
change the service records carries `workspace: true`, and the workspace root
is the directory of the last marked change, or the original project. The
anchor field, the anchor list, relocate, inherit, and anchorsOf are gone;
get, ensure, set, and rootOf remain.

A change without the marker, recorded while the model could move the
directory, moves only the current directory, so stored Sessions keep the
root they had.

- worktree: create enters the checkout through set; exit returns the Session
  to the source checkout of the recorded worktree that contains its directory,
  and exit_worktree exposes it to the model.
- subagent: a child starts in the parent's workspace root or a Host-chosen
  directory through set.
- SDK: the working-directory methods return { cwd } again and
  getWorkspaceRoot / get_workspace_root are removed.
- Recorded sessions: the worktree scenario leaves through exit_worktree and
  covers recovery from a removed worktree; the two scenarios that only drove
  the removed tool are deleted; three compaction scenarios lower their tuned
  context window by the removed tool-schema tokens.
2026-11-11 20:10:17 +08:00
Yichen Jiang 94d7eb2045 Merge remote-tracking branch 'origin/master' into feat/cua-mcp
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.
2026-11-11 16:31:58 +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