Commit Graph
26967 Commits
Author SHA1 Message Date
LegGasai f4ac78bb34 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
master moved internal identity construction to brandString (#8214) and
added the empty-catch gate with its recorded baseline (#4862); both touch
files this branch changes or moves.

Conflicts:
- packages/llm/llm-deepseek/tests/adapter.spec.ts,
  packages/llm/llm-deepseek-account/tests/provider.spec.ts,
  packages/experimental/translator/tests/paid-fixture.ts, and
  packages/web/web-search-deepseek/tests/deepseek.spec.ts: master rewrote
  the id constructor calls to brandString<T>() with type-only imports,
  while this branch replaced the hand-built account stand-ins with
  accountStub. The result keeps master's id construction and imports and
  this branch's stand-ins; the one Session this branch's own search test
  creates follows master's construction.
- packages/web/web-deepseek-api/package.json and
  packages/web/web-search-deepseek/package.json: this branch's sorted
  devDependencies plus master's dsh-brand entry.
- docs/capability-seams.md and docs/capability-seams.zh.md: master's
  cuaPrograms consumer edge and this branch's deepseekAccount consumer
  edges coexist; the pairing record is recorded again from the merged
  pair.
- docs/module-graph.md, docs/module-graph.zh.md,
  docs/persistence-schema.json, and pnpm-lock.yaml: regenerated from the
  merged sources.

Beyond the conflicts:
- scripts/empty-catch.baseline.json: master recorded two clauses under
  packages/credentials/deepseek-account, which this branch moves to
  packages/account/deepseek-account. The two keys are renamed with the
  files, as the gate requires for a moved file.
- AGENTS.md: master's checker link and this branch's account/ layout row
  together exceeded the frozen 2,080-word ceiling by one word, so the row
  reads "account/ DeepSeek".
2026-11-12 13:53:45 +08:00
LegGasai eb30025883 docs(web-search-deepseek): keep the module comment at its line count
The config catalog records the source line of the plugin's Config. The
previous commit grew the module comment by one line, which moved that
line and left the generated catalog stale; reflowing the comment keeps
the catalog as committed.
2026-11-12 13:24:25 +08:00
LegGasai 8607cf5b0e fix(web): bind route account credentials to their origin and contain failed rejection
- web-search-deepseek: the initiating route's account credential is used
  only when the search endpoint has the origin of that route's base URL.
  For another origin the provider does not ask the route and sends the
  API key, and readiness answers the same way. A route publishing an
  unparsable base URL is treated like settings that do not resolve.
- web-deepseek-api, web-search-deepseek: after HTTP 401 a failure of the
  grant's reject() is contained, so the reported error stays the HTTP
  rejection whichever owner published the credential.
2026-11-12 13:20:13 +08:00
CreatixChu 8d9c78459c Merge pull request #8343 from deepseek-harness/feat/cua-windows/key-mod
fix(cua-windows): align modifier names and support the Win key
2026-11-12 13:03:38 +08:00
LegGasai a6672fb5c3 fix(llm-deepseek-api-key): prefix key diagnostics with the settings namespace
An unusable API key's INVALID_CREDENTIAL diagnostic was prefixed with the
literal `llm-deepseek`, left from when the lookup lived in the transport
package. It now names the mount's settings namespace, the same value the
provider directory lists: the Loader entry id, or the plugin name without
an entry. Product profiles mount the route as `llm-deepseek`, so their
diagnostic text is unchanged.
2026-11-12 12:55:16 +08:00
creatixchu 8b0966c5e9 Merge master and update the MCP modifier reference 2026-11-12 12:44:57 +08:00
winewill fd5e0ced20 Merge pull request #7964 from deepseek-harness/feat/desktop-publisher-workspace
refactor(desktop): isolate publisher workspace for lightweight rollout
2026-11-12 04:44:31 +00:00
creatixchu 5bd4d6e6ff fix(cua): restrict Win shortcuts and document per-operation modifiers 2026-11-12 12:41:50 +08:00
winewill 3fd0c6683d fix(desktop): narrow publisher metadata parse recovery 2026-11-12 12:15:13 +08:00
winewill 046df1b122 Merge master into desktop publisher and synchronize workspace version 2026-11-12 11:52:56 +08:00
Chinesezjc 63837bc684 Merge pull request #8335 from deepseek-harness/fix/ci-f2a8592-inspector-client-deadline
test(inspector): budget the Client Runtime deadline for a real round trip
2026-11-12 09:30:20 +08:00
Chinesezjc adf06d4804 Merge pull request #8325 from deepseek-harness/fix/ci-bubblewrap-cache
fix(ci): cache the verified bubblewrap archive and bound its download
2026-11-12 02:19:56 +08:00
dsh-ci-bot dd2fc67baf test(inspector): state the deadline bounds in the timeout case comment
The darwin parity lane runs `vitest run` without coverage instrumentation,
so concurrent suite load, not instrumentation, is what pushed a Client
Runtime round trip past the old 20 ms deadline. Name that load, keep the
case-specific reason for the headroom, and record the two bounds the value
must respect: CDP_CALL_TIMEOUT_MS and the default 5 s test budget. Drop the
sentence that restated the file-header lane rule.
2026-11-12 01:41:37 +08:00
dsh-ci-bot 0fd248d065 fix(ci): keep the verified-download spec within the line budget
The acquire helper's inline return type grew past the 140-column lint
limit when the env parameter was added; name the result type instead.
2026-11-12 00:56:28 +08:00
dsh-ci-bot cec43a7001 test(inspector): budget the Client Runtime deadline for a real round trip
The case proves that a fired Worker deadline leaves the Client Runtime
session usable, but it also gave the follow-up evaluation the same 20 ms
budget as the deadline. A Client Runtime round trip crosses the Worker
thread and a WebSocket to the Client fixture, so under the darwin lane's
concurrent suite it can exceed 20 ms and the follow-up is rejected with
the deadline error instead of returning 42.

Raise the deadline to 1000 ms. The never-settling promise still makes the
deadline fire, the follow-up keeps 50 times the failing observation's
budget, and the lane's 90 s fixture wait stays far above the deadline.
2026-11-12 00:50:05 +08:00
dsh-ci-bot 5f2ff8790a fix(ci): scope the verified archive cache to ephemeral runners
The archive cache was wired into lanes that can select the persistent
self-hosted pool, which keeps ~/.cache on its own layout and never needs
the remote cache, and the consolidated benchmark's Windows rows restored
and saved a directory they never create.

Guard the cache steps with the same self-hosted exclusion as the pnpm
store cache, drop them from the self-hosted standby and the manual
benchmark matrix, and assert the guards in the workflow specs. Probe for
sha256sum or shasum -a 256 so a host without either fails loudly instead
of reporting a digest mismatch, clean partial downloads when a job is
cancelled, keep the retry window plus its last attempt within five
minutes, pin that contract in the test, and report cache-directory
failures with the download URL.
2026-11-12 00:42:37 +08:00
Yichen Jiang 300f3f3498 Merge pull request #8200 from deepseek-harness/feat/cua-mcp
feat(cua): serve Computer Use to MCP clients from the cua-mcp profile
2026-11-11 20:58:41 +08:00
Yichen Jiang 3842f2b222 fix(ci): cache the verified bubblewrap archive and bound its download
Launchpad outages failed every Linux CI and E2E job in the bubblewrap
preparation step before any test ran, and a stalled connection held the
step for minutes because curl had no timeouts.

Restore and save the SHA-256-verified archive with actions/cache around
each preparation step so a warm cache needs no Launchpad request, verify
cached and downloaded files against the pinned digest before use, and
bound each curl attempt and the retry window. The download URL stays
pinned to the recorded Launchpad build.
2026-11-11 20:32:47 +08:00
LegGasai 3ca18d169f fix(account): invalidate a rejected token on the account service mounted at rejection
- deepseek-account: the request credential's reject() re-resolves the
  account service through the resolving context, so a reload between a
  request and the destination's HTTP 401 still removes the stored grant;
  without a mounted service the grant stays for the next one to reject.
  resolveToken and rejectToken become private; the e2e sign-in stand-in
  and the generated API catalog follow.
- llm-deepseek: routeCredential().resolve() publishes the grant's headers,
  value, and rejection only, keeping the adapter's onRequestError behind
  the seam.
- web-deepseek-api: a route publishing an unparsable base URL becomes a
  misconfigured source instead of throwing from readiness or dispatch.
2026-11-11 20:29:37 +08:00
LegGasai 7d83af645c docs(llm): fix route credential contracts and the package index budget
- RouteCredential.configured: the owner may read its store to answer; the
  contract no longer claims "without reading the credential's value". Same
  text in the source JSDoc, both llm-streaming type-equiv blocks, and the
  seam Agent Note.
- llm-deepseek README: replace the stale resolveAuth(connection) summary
  with the resolveAuth(connection, endpoint) contract.
- llm-deepseek-account README: the listing cache is keyed by a SHA-256 of
  the credential headers, not of the token.
- web-deepseek-api tests/routes.ts: note that composition.spec.ts covers the
  real route plugins.
- packages/README: restore the document/, credentials/, and util/ rows and
  raise the verify-doc-budgets ceiling to 1,060 for the account/ row.
2026-11-11 19:33:52 +08:00
Yichen Jiang 393b0f71f5 test(cua-mcp): release held promises at teardown in the reset unit tests
A reset unit test that fails before it resolves the promise it holds left the server's disposer waiting until the hook timeout. Each test now resolves its promise at teardown, so a failing run ends at once.
2026-11-11 19:22:23 +08:00
Yichen Jiang c2fa483000 test(cua-mcp): stop the looping program of the reset test when the reset does not
The test that resets during a program that cannot be interrupted gives the runtime a ten-minute stop grace, so a reset that no longer releases the environment fails the test by its timeout on every lane. The test records the program process and kills it at teardown, so such a failing run does not leave a process spinning.
2026-11-11 18:55:05 +08:00
Yichen Jiang c4dd37eb53 Merge remote-tracking branch 'origin/master' into feat/cua-mcp 2026-11-11 18:26:53 +08:00
Yichen Jiang d5e02356ea refactor(cua-mcp): reset by releasing the program environment through the runtime's owner release
cua_reset keeps its effect: only the program process is replaced, while the connection's Agent, its native connection, and its consent decisions stay. The PTC program-tool factory no longer carries a reset operation, so packages/core/tool-executor-ptc is unchanged against master. ctx.cuaPrograms exposes release(agent), the owner release of the provider's program runtime, and the MCP frontend orders its own calls around it: it cancels the running program, releases the environment, answers after the cancelled program has settled, and holds back programs that arrive during a reset. A failed release answers with an error that asks for another cua_reset; the runtime rejects programs until a release succeeds. The reset result names cua.getApp for selecting applications again.
2026-11-11 18:19:43 +08:00
Yichen Jiang 11fe934953 docs(cua-mcp): document the Codex entry as exercised, with required startup and unattended approval
The Codex entry gains required = true: without it Codex waits one second for the server, and the first model request can go out without the three tools. codex exec refuses cua_run_code under the approval policy never, so an unattended run sets approval_mode = "approve" on that tool. The entry was exercised through codex exec on codex-cli 0.153.2 and 0.166.0-alpha.5.1 against a macOS desktop.
2026-11-11 18:19:29 +08:00
Jiawei Song 0b8ee3b709 Merge pull request #8168 from deepseek-harness/refactor/tool-errors-mcp
feat(mcp,web,skill,cordis,plugin,ptc): give MCP, web, skill, inspect, plugin, and run_code tool failures error codes
2026-11-11 18:16:03 +08:00
Yichen Jiang b67e2ef48a Merge pull request #8297 from deepseek-harness/fix/forge-ptc-binding
fix(forge): bind pull requests that gh commands touch inside PTC programs
2026-11-11 17:53:24 +08:00
Yichen Jiang b2a46d2e96 Merge remote-tracking branch 'origin/master' into feat/cua-mcp 2026-11-11 17:51:30 +08:00
sjw1231 a8c3829a7f Merge remote-tracking branch 'origin/master' into claude/tool-errors-mcp-f5e887 2026-11-11 17:44:05 +08:00
Yichen Jiang 72c2a4cb01 Merge branch 'master' into fix/forge-ptc-binding 2026-11-11 17:41:54 +08:00
Yichen Jiang 75f9f6ef98 Merge remote-tracking branch 'origin/master' into feat/cua-mcp
master removed the Python PTC runtime (#8307) and rewrote three bilingual
documents this branch also edits.

Conflicts:
- docs/capability-seams.i18n.yaml, packages/core/tool-executor-ptc/README.i18n.yaml,
  and packages/experimental/README.i18n.yaml: both sides re-recorded the
  translation pairing records. The merged documents were reviewed in both
  languages and the three records recorded again from them.
2026-11-11 17:32:17 +08:00
Ziya d04a0488a3 Merge pull request #8293 from deepseek-harness/fix/composer-home-end
fix(ui-conversation): move to the line boundary on Home and End on macOS
2026-11-11 01:30:35 -08:00
Yichen Jiang 6234871e8d docs(forge-session): 更新模块图中的 dsh-llm 依赖
评审修复为 forge-session 新增了 @deepseek-ai/dsh-llm peer 依赖,
重新生成 docs/module-graph.md 与中文版。
2026-11-11 17:29:21 +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
Yichen Jiang 74c20de23f Merge remote-tracking branch 'origin/master' into fix/forge-ptc-binding
# Conflicts:
#	packages/experimental/forge-session/tests/loader-composition.spec.ts
2026-11-11 16:54:24 +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
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
sjw1231 c28409ba22 fix(plugin-market): convert market Remote failures before HarnessError passthrough
RemoteError now extends HarnessError, so the early passthrough returned
plugin-market/* Remote failures unconverted. Map the four Remote codes the
tool's market reads reject with first; other HarnessErrors keep their
identity.
2026-11-11 16:29:35 +08:00
sjw1231 c670457442 Merge remote-tracking branch 'origin/master' into claude/tool-errors-mcp-f5e887 2026-11-11 16:25:44 +08:00
ZiyaZhang 9f62f9966c fix(ui-conversation): move to the line boundary on Home and End on macOS
Apple key bindings map Home and End to scrolling the document, and the
composer sits inside the conversation scroller, so the keys scrolled the
conversation instead of moving the caret. On Apple platforms the composer
keymap now moves the caret to the start or end of the visual line, with
Shift extending the selection, and End right before a quote moves to the
end of its line as Cmd+Right does. Other platforms already move to the
line boundary.

Fixes #8291
2026-11-11 00:19:21 -08:00
Turtle 085e749cf0 Merge pull request #8095 from deepseek-harness/turtle/fix-vscode-launch-env-ab3748b25da7
fix(open-in-app): drop inherited ELECTRON_RUN_AS_NODE when launching apps
2026-11-11 16:15:28 +08:00
Turtle c7b2c5e3e5 Merge pull request #7936 from deepseek-harness/turtle/fix-sidebar-fullscreen-line-a73e32287f80
fix(sidebar-right): clip the fullscreen left divider past the window edge
2026-11-11 16:13:54 +08:00
sjw1231 b86821fc59 fix(extensions): name the discarded error in the plugin tool code read
The verify-empty-catch gate added on master requires an empty catch to
name the failure it discards; the trapped code read now binds
_codeReadTrapped.

Refs #7869
2026-11-11 16:12:28 +08:00
Turtle 2ee432f559 Merge pull request #8173 from deepseek-harness/turtle/fix-mention-latency-5c3691371b70
perf(session-persistence-jsonl): reuse unchanged headers across listings
2026-11-11 16:11:38 +08:00
_Kerman f34250ca9b Merge pull request #8307 from deepseek-harness/xtr/remove-python-ptc-runner
refactor(ptc): remove the experimental Python runtime
2026-11-11 16:03:49 +08:00
Huo Yaoyuan 04b5a91a86 docs(cua): describe supported modifiers in platform guidance 2026-11-11 15:57:41 +08:00
Yichen Jiang c5261dbe32 refactor(forge-session): 处理 #8297 评审意见
- reference-lookup:prepare() 为每个 gh 引用各返回一项查询,不再只取
  第一项;补 JSDoc,并注明排队查询依赖工具管线对每个执行都发布
  tools/result、作用域销毁时一并释放。
- projection:textOf 参数改为 readonly ContentBlock[],新增
  @deepseek-ai/dsh-llm peer 依赖与 tsconfig 引用。
- index:重排 ForgeSessionService JSDoc 段落。
2026-11-11 15:57:01 +08:00
Jiawei Song bc45c6c17c Merge pull request #8057 from deepseek-harness/refactor/tool-errors-agent
feat(subagent,workflow,plan): give delegation, workflow, plan, and interaction tool failures error codes
2026-11-11 15:53:22 +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
Turtle b3e8a77bdf Merge pull request #8051 from deepseek-harness/turtle/snapshot-diff-viewer-127358e84afe
ci(preview): publish a snapshot diff page with each PR preview
2026-11-11 15:49:48 +08:00