Commit Graph
5585 Commits
Author SHA1 Message Date
Shigma fc1710a167 Merge remote-tracking branch 'origin/master' into chore/cordis-core-rc12 2026-11-11 22:09:14 +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 b2a46d2e96 Merge remote-tracking branch 'origin/master' into feat/cua-mcp 2026-11-11 17:51:30 +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
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
_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
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
creatixchu 27bbae4a59 Sync master into the CUA helper packaging workflows 2026-11-11 15:37:16 +08:00
creatixchu 1cd79de4e8 Explain missing macOS helper jobs and verify artifact name selection 2026-11-11 15:35:08 +08:00
_Kerman 5ea79d1fe7 fix(ci): prune retired Python PTC catch entries 2026-11-11 15:29:39 +08:00
_Kerman da91532aaa merge: sync master into Python PTC removal 2026-11-11 15:27:25 +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
creatixchu 29de5f9e04 Keep the existing Desktop packaging workflow names 2026-11-11 15:14:28 +08:00
creatixchu 1d5e1d7757 Name helper artifacts and packaging workflows by platform 2026-11-11 15:12:02 +08:00
CreatixChu a660c1c048 Merge pull request #8284 from deepseek-harness/cleanup/cua-macos-naming
统一 macOS Computer Use 后端的包名和配置行 ID
2026-11-11 15:11:59 +08:00
_Kerman d1cf1dede1 refactor(ptc): remove the experimental Python runtime 2026-11-11 15:07:01 +08:00
Turtle 303bcb4137 Merge pull request #4862 from deepseek-harness/turtle/catch-disposition
feat(infra): reject silent empty catch clauses
2026-11-11 15:06:58 +08:00
creatixchu 3f4704cb6d Merge master into the macOS CUA naming change 2026-11-11 14:47:24 +08:00
creatixchu ce1b5182bc Clarify macOS CUA migration and provider diagnostics 2026-11-11 14:43:07 +08:00
Yichen Jiang b2e064fecb Merge remote-tracking branch 'origin/master' into feat/cua-mcp
Conflicts: both sides added one adjacent entry (cua-mcp here, cua-windows on master) to
scripts/experimental-package-policy.ts, scripts/release/families.spec.ts, and tsconfig.host.json;
both entries are kept. Generated and recorded files take master's side and are regenerated: the
config catalog, the module graph, the package list, two pairing records, pnpm-lock.yaml, and the
creation-recommendations fixture.

Adaptations to master:
- @deepseek-ai/dsh-cua-mcp follows its release family to 0.2.2-rc.2.
- Window ids are strings: this branch's fixture programs and assertions pass "7".
- The retained program environment is a scoped REPL, in which a later call may declare an earlier
  name again: cua_reset no longer names declaration conflicts as its use, and the cua-mcp README
  and Agent Note state the registration's current description length.
- The cua-mcp README names the Windows provider, which this profile does not mount.
- The profile's expected reference and tool list are re-recorded.
2026-11-11 13:13:22 +08:00
Turtle 603ed7e7d0 docs(error-handling): explain empty catch rules with examples 2026-11-11 12:47:01 +08:00
Turtle 62cce39c06 fix(infra): drop --record and treat a new defect on a recorded empty catch as new 2026-11-11 12:47:01 +08:00
turtle1999 9dc86febb6 feat(infra): point empty catch rejections at the error-handling guidance 2026-11-11 12:47:01 +08:00
turtle1999 4cfd7e0257 fix(infra): read the empty catch rule the way its authors write it
Review of the gate found the reason-comment span too narrow: a comment on the
line above `catch`, or trailing the closing brace, was rejected, so the natural
place to explain a clause did not count. The span now starts at the preceding
token and ends with the line closing the clause.

A binding pattern that names nothing (`catch ({})`, `catch ([])`,
`catch ({ _ })`) counted as naming the error. The gate now requires one bound
name other than `_`.

`--record REF` writes the inventory for a merged tree and refuses any clause the
named revision does not already carry, so no command allows a clause this branch
introduced; a merge that lands recorded clauses is the only case that adds
entries. The no-op body boundary (`catch { "use strict" }`) and the tolerance
for a file the parser cannot read past are stated in the module docblock and
pinned by specification rows.
2026-11-11 12:47:01 +08:00
turtle1999 6572c8a63b chore(infra): record the clauses master added before this gate
The merge brings apps/desktop/src/client/WelcomePage.tsx:132,
apps/desktop/src/preload-platform-account.ts:26,
packages/credentials/deepseek-account-platform/src/index.ts:432, and
packages/credentials/deepseek-account-platform/src/logout.ts:33 into the
recorded inventory, so the gate passes on the merged tree. The two wide `try`
clauses need their owners' judgement: narrowing one changes which failures its
clause discards.
2026-11-11 12:47:01 +08:00
turtle1999 a51a1fc79c fix(infra): read a body of empty statements as an empty catch
`catch { ; }` counted as a handled clause because the block held one
statement. A block whose statements are all bare `;` handles nothing, so both
the clause body and its `try` now count only statements that do something.
2026-11-11 12:47:00 +08:00
turtle1999 05883ff6b5 feat(infra): reject silent empty catch clauses
AGENTS.md requires an empty `catch` to name the discarded error, state why it
needs no handling, and keep its `try` to one statement, but nothing enforced
it: 119 clauses break a condition today.

The new `verify-empty-catch` gate scans tracked and non-ignored untracked
first-party source with the TypeScript syntax tree. It records those 119 legacy
clauses by path, syntax fingerprint, and count in
`scripts/empty-catch.baseline.json`, so enforcement starts without a
repository-wide edit. A new or changed clause fails the gate, and fixing a
recorded clause requires `--prune` to retire its allowance; no command adds
one.

The recorded-inventory bookkeeping shared with `verify-no-unknown-casts` moves
to `scripts/baseline-inventory.ts`, which keeps one copy of baseline
validation, counting, pruning, and the command itself.
2026-11-11 12:47:00 +08:00
imccyu eab6beacb9 🚚 refactor(session): move Session status into client/ui-session-status
Move packages/api/session-status (@deepseek-ai/dsh-api-session-status) to
packages/client/ui-session-status (@deepseek-ai/dsh-client-ui-session-status):
the package has no Remote or Host behavior and depends on ui-session, so it
belongs to the Client group. The uiSession.sessionStatus service,
ctx.uiSession.sessionStatus, useSessionStatus, and UiSessionService keep
their names.

Add the package to the Web client's required boot entries, so startup is
rejected when the status table cannot be imported or fails to apply, as it
was when the table lived in the required ui-session entry.

Refs #4076
2026-11-11 12:16:39 +08:00
imccyu cb2910ef09 ♻️ refactor(session): move Session status into api-session-status
Move the Client Session status table (running state, the effective
pending interaction, and completion reminders) and the useSessionStatus
root hook out of ui-session into the new @deepseek-ai/dsh-api-session-status
package. The UiSessionStatus service is provided as uiSession.sessionStatus
and read as ctx.uiSession.sessionStatus through the mergeable
UiSessionService type of ctx.uiSession.

Pending-interaction registration, precedence, withdrawal, and teardown
delegation stay in ui-session unchanged; ui-session now exposes the
effective requests read-only as ctx.uiSession.pendingInteractions, which
the status table and the Conversation stop shortcut consume. ui-session no
longer depends on api-remotes.

Refs #4076
2026-11-11 12:16:37 +08:00
Yichen Jiang 8c192ad810 Merge pull request #8228 from deepseek-harness/feat/forge-extension-api
feat(forge): open change request review to plugins with lenses, line annotations, and slots
2026-11-11 12:07:19 +08:00
creatixchu e7950b0ca8 Align the macOS Computer Use provider package and entry names 2026-11-11 11:43:44 +08:00
imccyu 17d96e0f6d refactor(exports): internalize test helpers and type fixtures 2026-11-11 07:32:55 +08:00
Yichen Jiang c52a9b3b79 Merge remote-tracking branch 'origin/master' into feat/cua-mcp
# Conflicts:
#	packages/experimental/cua-macos/README.i18n.yaml
#	packages/experimental/cua/README.i18n.yaml
#	packages/experimental/cua/README.md
#	packages/experimental/cua/README.zh.md
2026-11-10 19:08:03 +08:00
creatixchu 1aefd4de11 Merge master and migrate Windows CUA callers to explicit inspection 2026-11-10 18:24:02 +08:00
Yichen Jiang 2085a236cc fix(cua-mcp): refuse unlisted tools before the executor and release the Agent after a failed close
A `tools/call` that names anything but the listed `cua_run_code` registration or
`cua_reset` now fails as an unknown tool before it reaches the tool executor, so a
tool another row registers for the connection's Agent cannot be called without
being listed, and the sandbox-escalation refusal applies to every program call.
`dispose()` releases the connection's Agent even when closing the protocol server
rejects. The `cua_reset` description states that a running program is cancelled,
and an `isEscalationField` guard replaces the two type assertions.

Documentation follows the code: the README states that a Host without a provider
lists only `cua_reset`, that the Web plugin page hides the bundle while the Host
inventory still reports it, that the documented Codex configuration carries the
output budget, which client entries were exercised, that the sandbox root is the
client's launch directory, and that the registration's escalation guidance has no
effect in this profile. The unused `zod` dependency is removed.
2026-11-10 18:12:20 +08:00
Yichen Jiang 50cf66138a test(scripts): pin timeoutOf in the reviewed dsh-timeout peer-required roster 2026-11-10 17:22:05 +08:00
creatixchu 5ee1c02eb8 fix(cua-windows): align provider, platform checks and replay with master 2026-11-10 16:47:17 +08:00
_Kerman 7526051e60 test(ptc): sync artifact expectations with emitted newlines 2026-11-10 16:31:41 +08:00
Yichen Jiang 1adc552f86 refactor(cua-mcp): select the profile through a plain manifest
The launcher, the plugin manager, the CLI plugin command, and the bundle
manifest type return to master: `dsh.bundle.profile`, `shippedProfileTemplate`,
and `bundleProfileName` are withdrawn, and `cua-mcp` is no longer a required
startup entry. A profile manifest that lists `@deepseek-ai/dsh-cua-mcp` as its
only bundle is the whole setup; `loadProfile` already loads an existing
manifest without a template, and the installation ships the bundle, so no pnpm
or registry access is involved. The README documents that manifest for
installed users and for the Python runtime wheel, and states that layering the
bundle over `dsh-base` is unsupported because both compositions declare the
same row ids.

The optional-bundles spec and the Web preview-boot e2e name the standalone
bundle through a `STANDALONE_PROFILE_BUNDLES` constant instead of reading a
manifest field; the cua-mcp expected-output e2e writes the documented manifest
before starting the server. The Agent Note records the bundle-declared profile
as a considered alternative, deferred until CUA leaves experimental and a
`PROFILE_TEMPLATES` entry can provide the zero-step start.
2026-11-10 16:31:20 +08:00
_Kerman 4e9adccec7 Merge branch 'master' into xtr/ptc-inspect-output 2026-11-10 16:18:34 +08:00
Yichen Jiang 69ba85d878 Merge remote-tracking branch 'origin/master' into feat/cua-mcp 2026-11-10 16:03:41 +08:00
Turtle d79851e05d Merge pull request #8180 from deepseek-harness/feat/cua-run-code-standard
feat(cua): 为标准模式提供持久 cua_run_code 工具
2026-11-10 07:59:40 +00:00
Yichen Jiang 3d7923e3b1 build(forge-panel): declare the lens brand types as a dev dependency and timeoutOf as peer-required 2026-11-10 15:06:23 +08:00
Yichen Jiang aae5b719a9 docs(forge): document the extension API and replay a fixture extension
Add the forge subsystem's extension API section, README and cookbook
coverage, the generated Cordis, config, slot, and event catalogs, and a
recorded forge-panel e2e case that loads a fixture plugin registering a
lens, annotations, and every new slot.
2026-11-10 14:53:09 +08:00
_Kerman 86984d8358 Merge branch 'feat/cua-run-code-standard' into xtr/ptc-inspect-output 2026-11-10 14:24:26 +08:00
Huo Yaoyuan c6116ecdb4 Merge remote-tracking branch 'origin/master' into feat/cua-windows-2 2026-11-10 13:53:36 +08:00
Yichen Jiang 3147ec1596 feat(cua-mcp): compose the profile standalone and initialize it from the bundle declaration
The cua-mcp bundle composes its profile from one insert over the empty root
instead of layering on dsh-base, so no model adapter, prompt-side tool,
telemetry, or session-management row loads; every row is a bundle dependency.
The bundle declares the profile through dsh.bundle.profile, and app-boot's
shippedProfileTemplate initializes a missing profile from that single shipped
bundle for `dsh --profile`, the CLI `dsh plugin` command, and the plugin
manager's pnpm path. The `dsh plugin enable|disable` subcommand is withdrawn.
2026-11-10 12:00:17 +08:00
Yichen Jiang 8baf2dda45 Merge remote-tracking branch 'origin/feat/cua-run-code-standard' into feat/cua-mcp
# Conflicts:
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	packages/experimental/cua-macos/README.i18n.yaml
#	packages/experimental/cua-macos/README.md
#	packages/experimental/cua-macos/README.zh.md
#	packages/experimental/cua/README.i18n.yaml
#	packages/experimental/cua/src/config.ts
#	packages/experimental/cua/src/index.ts
#	packages/experimental/cua/src/tool-registration.ts
#	packages/experimental/cua/tests/run-code-composition.spec.ts
2026-11-09 23:06:51 +08:00
Yichen Jiang 7ed4b56940 feat(cua): serve Computer Use to MCP clients from the cua-mcp profile
Add @deepseek-ai/dsh-cua-mcp, an experimental optional bundle whose
profile frontend serves cua_run_code and cua_reset over MCP stdio to
Codex, Claude Code, and other harnesses. One connection owns one Agent;
programs run through ctx.tools.execute without a model step, the first
result carries the cua API reference, and screenshots are delivered as
the request version the program observed. DSH_CUA_CONSENT selects
unattended approval or client elicitation; --print-client-config renders
the client entry for the exact installation.

Supporting changes: dsh-cua gains a configured screenshotTarget and the
ctx.cuaPrograms reset/screenshot-target service, the PTC program-tool
factory exposes createRunCodeToolHandle with reset control, and dsh
plugin gains manifest-only enable/disable verbs for installed bundles.
2026-11-09 22:52:07 +08:00