Commit Graph
2114 Commits
Author SHA1 Message Date
imccyu 1c3c02b9b6 fix(app-boot)!: load bundle plugin rows from the packages their bundles select (#9038)
* fix(app-boot)!: load bundle plugin rows from the packages their bundles select

The root config tree imports every row from the profile directory. A copy of
a built-in plugin package that a third-party plugin pins is hoisted into
<profile>/node_modules, where it replaced the package of the row that
@deepseek-ai/dsh-base inserts under the same name. The compatibility
admission then disabled that row and DSH started without its services.

createRuntimeResolution now reads the bundle layers in order and records, for
each plugin package name they insert as rows, the package in the nearest
node_modules above the inserting bundle; a bundle installed in the profile
looks no higher than the profile directory. A request whose importer is the
active profile directory itself uses that package before any copy in the
profile; every other importer keeps its lookup. A later bundle that finds
another copy adds a warning and does not change the selection. publish()
compares the selections, so a successor that differs only there is published.

A package installed into a profile no longer replaces the package of a row
that a bundle inserts; the upgrade guide describes the patch that does.

Refs #8476

* test(app-boot): expect the bundle plugin warning to name native real paths

The warning reports directories as the native real path spells them. On
Windows that expands 8.3 short names, which the JavaScript realpath keeps, so
the expected text differed under a short-named temporary directory.

Refs #8476

* fix(app-boot): select shipped peers and preset rows for bundle plugins

A bundle that declares a row's package under peerDependencies selects the
package the running installation ships, so a development bundle linked into
a profile keeps running its row from the host's package, as its own imports
do. Any other row still selects the nearest package above its bundle.

The rows an inserted row lists under config.plugins, as an agent preset
does, count as rows of the bundle that inserts it. A pinned copy in the
profile therefore no longer disables a row of a built-in preset.

Each package name is looked up once per bundle.

* fix(app-boot): bind bundle plugin rows to the bundle that declares them

A plugin row now resolves from the first bundle that inserts it and
declares the package under dependencies or optionalDependencies. The
resolution stores the package name and the bundle directory only: binding
reads one manifest per bundle and looks no package up. A request for a
bound name from the profile directory resolves again as an import of that
bundle does, from the real path of the bundle's manifest, so a source
launch keeps mapping workspace packages to their sources.

A row whose bundle declares the package as a peer, as a development
dependency, or not at all is not bound and keeps the lookup of the profile
directory. A bound row does not fall back to that lookup.

Two bundles that bind one name and reach different copies add a warning;
only such names are resolved while binding.

* fix(app-boot): read the rows of a group named without the group marker

The group plugin mounts its array configuration as rows whether or not the
row carries the `group` marker, and the compatibility admission already
visits those rows. Binding now reads them too, for `cordis:group` and
`@deepseek-ai/cordis-plugin-group`, so a bundle's row inside such a group
resolves from that bundle.

* perf(app-boot): compare bundle plugin copies only for differing ranges

Two bundles that bind one plugin package name and declare the same range
for it are taken to reach the same copy, so binding no longer resolves the
package from both. Only bundles whose declared ranges differ are compared
on disk and can record a warning. The shipped `web` profile, whose two
bundles insert 22 rows of the same names, now reads two manifests while
binding instead of making 90 file-system calls.

* feat(app-boot): print bundle plugin warnings when dsh starts a profile

`reportBundlePluginWarnings` prints each recorded warning to stderr, as
`reportSkippedBundles` does for skipped bundles, and the `dsh` launcher
calls it once after it computes the runtime resolution. A resolution
recomputed while the application runs still only records its warnings.
2026-11-24 21:14:36 +08:00
Jiawei Song 934abdbfe7 Merge pull request #9019 from deepseek-harness/feat/sdk-mcp-manager
feat(sdk): mount the MCP manager in the SDK profile
2026-11-24 18:07:48 +08:00
LegGasai f75c2333c3 Merge remote-tracking branch 'origin/master' into feat/llm-pi-ai-deployment-provider-rows
# Conflicts:
#	docs/capability-seams.i18n.yaml
2026-11-24 17:43:42 +08:00
LegGasai 68f4a5a911 Merge pull request #9052 from deepseek-harness/worktree/wizardly-shirley-53d903
feat(read-aloud): read replies aloud with segment-paced synthesis
2026-11-24 17:29:33 +08:00
Shigma 17ed03bbfb Merge pull request #9089 from deepseek-harness/refactor/vendor-im-layout
refactor(vendor): move the IM packages under vendor/im and classify local modifications
2026-11-24 16:09:19 +08:00
Shigma 56a26edd29 refactor(vendor): move the IM packages under vendor/im and classify local modifications 2026-11-24 15:15:17 +08:00
sjw1231 2da97e9f3a fix(sdk): close the runtime when the MCP wait overflows and expect the SDK manager row
Converting `mcp_startup_timeout_seconds` to milliseconds raised
`OverflowError` for `inf` or `1e308` before `initialize` entered its failure
path, leaving the started runtime running. The conversion now runs inside
that path, so it closes the runtime like any failed initialization.

`apps/cli/tests/profile-mcp.spec.ts` still expected only the `web` profile to
mount `mcp-manager`; it now expects the `web` and `sdk` profiles to.
2026-11-24 14:49:12 +08:00
Dudu-0223 04a735f556 feat(subagent): persist model choices outside descriptors 2026-11-24 14:49:02 +08:00
LegGasai 56a4108722 feat(llm-pi-ai): add provider rows for routes that another layer supplies
A patch that sets the config of the llm-pi-ai row replaces the `providers`
dict of the layers before it. A deployment's home patch and the profile
patch that the Models page writes therefore cannot both configure
providers: the home patch's dict replaces the person's, and the
configuration editor refuses every later save of that row.

A layer that adds a provider now writes a row of
`@deepseek-ai/dsh-llm-pi-ai/provider`, whose config is the route key and
the profile fields of a dict entry. The adapter row serves those rows
together with its dict. Of the declarations that name one route, the one
that comes last in the composed entry list is in effect, and the dict
takes the position of the adapter's row. The dict, stored profile patches
and the Models page's writes are unchanged.

The configuration editor reports whether a home patch or an overlay
decides the config a row runs with (`managed`), settings forwards it with
the row's plugin name on each descriptor and namespace view, and the
Models page shows a managed provider row with a tag and a card whose
controls are disabled.
2026-11-24 14:41:37 +08:00
LegGasai 0826753829 feat(read-aloud): read replies aloud with segment-paced synthesis
Add five experimental packages: the text-to-speech registry, the DeepSeek
cloud synthesizer, the read-aloud Remote that plans segments and streams
their audio, the Client action and notice, and the optional bundle, titled
语音朗读 in Chinese.

A reply is cut into segments of about thirty seconds. Each segment is one
request to /v1/tools/tts, sent only when at most fifteen seconds of the
received audio is unplayed, so stopping a reading leaves the later
segments unsent and unbilled.

The Host reduces the reply's Markdown to speech text itself and finds
formulas by their dollar delimiters; the math syntax packages are left out
because they install KaTeX into the runtime. The build embeds the Markdown
parser, whose installed browser build reads document inside a Web Worker
Host.
2026-11-24 14:24:12 +08:00
yudshj b86e7bf3b7 test(snapshot): align recorded skill text and shipped tool catalogs with the document names
Replay the skill description the Office skill now ships, assert the renamed tools in the SDK and Web profile catalogs, and keep the shipped tool order alphabetical.
2026-11-24 13:17:06 +08:00
yudshj 284670f1eb refactor(office): rename the Office tools to document_*
Rename dsh-tool-office to dsh-tool-document and office_render/convert/recalculate to document_*, keep the old names readable for pre-rename Sessions, and fix the Poppler page-count forgery, per-run pdfinfo, and real-Poppler test provider reported in review.

Refs #9015
2026-11-24 13:17:05 +08:00
gengruilin 4955f3a631 refactor(client-ui-connectors): rename the Connectors tab package
`packages/experimental/connectors` (`@deepseek-ai/dsh-connectors`)
becomes `packages/experimental/client-ui-connectors`
(`@deepseek-ai/dsh-client-ui-connectors`), the name form of the Client
UI packages, and its bundle patch row takes the id
`client-ui-connectors`. The name entered in Plugins → Add plugin changes
with it. The tab's slot id, its locale namespace, and the displayed
title stay `connectors` and "Connectors".

The optional and experimental bundle lists, the `apps/cli` dependency,
the Client aggregate, the explicit path aliases, the two gate
registrations, the release family expectation, the recorded
`creation-recommendations` session, the Web e2e cases, the READMEs, and
the Agent Note name the new package. The generated catalogs, the
translation pairings, and the lockfile are regenerated.
2026-11-19 21:02:50 +08:00
gengruilin d2059d2c7a refactor(connectors): fold the Connectors bundle and its tab into one package
`packages/experimental/connectors` (`@deepseek-ai/dsh-connectors`) replaces `connectors-bundle` and `client-ui-connectors`. Its bundle patch inserts the package's own row; the Host entry is an empty plugin and the browser entry registers the tab. The package is an ordinary Client plugin with one tsconfig, registered in the root Client aggregate, and its name is recorded in `EXPERIMENTAL_PACKAGE_NAME_EXCEPTIONS`.

The optional and experimental bundle lists, the slot catalog, the release family expectation, the README model-experience allowlist, the generated catalogs, and the Web e2e cases name the new package. The stand-in connectors of the Connectors tab e2e carry a patch row and an empty entry module, because the workspace's connector package of the same name now resolves first as the bundle layer and imports the profile's copy. A unit test calls the Host entry.
2026-11-19 14:38:53 +08:00
gengruilin 0ade56dc91 feat(connectors): add the experimental Connectors tab
The default-off Connectors bundle adds a Connectors tab to the Plugins page.
The tab lists the official connectors in CONNECTOR_BUNDLES with their titles
and descriptions, installs a missing one at the running DSH version through
the page's install dialog, and opens an installed one's page.

The package's Host entry provides the connectors service while the bundle is
enabled. A connector row that declares inject: [connectors] stays pending
without it, so switching the bundle off stops every connector and switching
it on resumes them, without changing each connector's own enabled state.

The bundle joins OPTIONAL_BUNDLES and EXPERIMENTAL_BUNDLES, so the Plugins
page lists one more official card and the personalized-pages skill catalog
gains its entry; the plugin manager goldens and the creation-recommendations
replay are refreshed accordingly.
2026-11-03 01:26:36 +08:00
Jiawei Song 11af1f910b Merge pull request #8565 from deepseek-harness/ci/sdk-desktop-context-parity
ci(sdk): compare the SDK profile and Desktop standard preset model context
2026-11-23 19:15:30 +08:00
fz 9133e31a29 Merge pull request #8965 from deepseek-harness/fix/cli-version-natural-exit
fix(cli): exit naturally instead of calling process.exit on CLI completion
2026-11-23 18:06:16 +08:00
sjw1231 cfda9eed61 Merge remote-tracking branch 'origin/master' into ci/sdk-desktop-context-parity
# Conflicts:
#	.agents/notes/implemented/feature/2026-10-29-shipped-fs-mutation-defaults.i18n.yaml
#	.agents/notes/implemented/feature/2026-10-29-shipped-fs-mutation-defaults.md
#	.agents/notes/implemented/feature/2026-10-29-shipped-fs-mutation-defaults.zh.md
2026-11-23 17:54:49 +08:00
Jiawei Song 7c6e48035c Merge pull request #8994 from deepseek-harness/feat/re-enable-apply-patch
feat(fs): default apply_patch to the edit switch in every shipped composition
2026-11-23 17:45:33 +08:00
sjw1231 ea1f4521e8 test(sdk): record the agent preset registry row as an intended difference
#8981 adds the registry to dsh-base switched off; Desktop enables it to
select each Session agent's preset, while the SDK composes its agent rows
directly.
2026-11-23 17:31:05 +08:00
sjw1231 ce2eb02c66 Merge remote-tracking branch 'origin/master' into ci/sdk-desktop-context-parity 2026-11-23 17:27:00 +08:00
sjw1231 f2a4386601 test(sdk): carry a preset group's disabled state to its members
The agent row comparison flattened cordis:group rows without their
disabled field, so the members of a disabled group still read as
enabled. Combine the group's value into each member: a disabled group
disables every member, and an expression is recorded beside the
member's own value.
2026-11-23 17:02:59 +08:00
sjw1231 3d2dae07f0 test(sdk): compare the order of the first request's sequences
Prompt sections, runtime context entries and injected messages were
keyed by name, so a reordering on one side passed although the model
reads different text. Compare the relative order of the entries both
sides share in each sequence, and of the tools, as an order layer.
2026-11-23 16:54:45 +08:00
Dudu-0223 02282f5d8d fix(headless): 保留 preset 配置,修复会话恢复和子代理轮次清理 (#8981)
* fix(headless): preserve preset selection and release closed turn state

* fix(agent-presets): report invalid preset selections and keep stored headers

Validate only agent-preset/selected records in the agentPreset projection and name the event sequence in the failure. The state and view schemas accept every header value the Session validator admits, so an empty stored header no longer fails restoration.

* fix(agent-presets): keep trusting logged preset selections

Restore the agentPreset projection, its tests, and the Agent Note consequence to their master state. Writers record non-empty preset IDs only, and Session format admission owns payload validation for stored events, so the projection does not re-validate the typed event payload.
2026-11-23 16:53:18 +08:00
sjw1231 4aff040ac3 test(sdk): compare SDK rows outside the Desktop preset against Desktop host rows
The agent row comparison only read the rows the Desktop standard preset
declares, so an SDK row outside the preset was never compared. Compare
such a row with the Desktop host row of the same id, report an enabled
SDK row that neither side declares, and record the existing differences:
the primary runtime rows, HMR, the title request and the SDK transport.
Unevaluated !!js nodes compare as their source text.
2026-11-23 16:51:20 +08:00
fz ece60ba9c7 fix(cli): drain event loop instead of calling process.exit on CLI completion 2026-11-23 15:32:34 +08:00
imccyu 0f6b7f2449 refactor(cordis): register Host inspect providers in cordis-host-runner
The first-party Host inspect providers (Service, Event, Config, Runtime,
Tool) lived in a second plugin entry, `@deepseek-ai/dsh-tool-cordis/host`,
that every host composition had to mount once beside the runner. The
runner now registers them into its own inspection registry when it mounts,
mirroring the Client runner, and `tool-cordis` keeps a single entry that
registers `cordis_inspect` per preset.

- Move the providers, the live Config projection, and the generated Host
  API catalog into `cordis-host-runner`; it gains the `dsh-app-boot` and
  Loader dependencies that `tool-cordis` drops.
- Remove the `./host` export, its locale files, and the
  `cordis-inspect-providers` rows from the Web bundle and the snapshot
  compositions.
- Document the providers in the runner README and record the removed
  entry point in an upgrade guide.
2026-11-23 14:38:15 +08:00
sjw1231 20aa08ba0b test(sdk): drop the cordis_inspect parity exceptions that #8991 resolves
The SDK profile now composes runtime inspection as the Desktop standard
preset does, so its tool and agent row exceptions no longer match a
difference.
2026-11-23 14:37:25 +08:00
sjw1231 58fa14c6a8 Merge remote-tracking branch 'origin/master' into ci/sdk-desktop-context-parity
# Conflicts:
#	apps/cli/tests/profiles/sdk/desktop-tools.expected.e2e.ts
#	apps/cli/tests/profiles/sdk/tool-parity.ts
2026-11-23 14:34:39 +08:00
sjw1231 b383eb8c75 Merge remote-tracking branch 'origin/master' into feat/re-enable-apply-patch
# Conflicts:
#	docs/tool-catalog.i18n.yaml
#	snapshots/sdk/legacy-context.patch.yml
2026-11-23 14:18:06 +08:00
sjw1231 e0c79d0cd1 feat(fs): default apply_patch to the edit switch
tool-fs.applyPatch no longer defaults to false: an explicit resolve step
takes the resolved edit value when a row leaves applyPatch unset. Agent
presets list complete plugin declarations with no shared parent, so this
decides the default in one place instead of on every shipped row; the
dsh-base row and the Web/Desktop standard, ptc, and cordis presets drop
their applyPatch lines, while the minimal preset and sdk-minimal keep the
tool off through edit: false. An explicit applyPatch still wins in both
directions.

The tool-fs unit tests cover the derived default and both overrides; the
read/write/edit guidance tests pin applyPatch: false because they assert
the three-tool text. subagent-agent-preset and the headless owner-local
expectations, whose tool-fs rows enable edit without applyPatch, are
refreshed and gain only the apply_patch section. The Agent Notes, tool-fs
README, tool and config catalogs, and the upgrade guide describe the
derived default and its effect on third-party tool-fs rows.
2026-11-23 13:54:01 +08:00
sjw1231 0168b0f88d feat(sdk): expose cordis_inspect in the SDK profile
Mount the Cordis inspection registry, the Host inspect providers, and the
`cordis_inspect` tool in the sdk-app bundle so the SDK model receives the
same runtime inspection tool as the Desktop standard and Creator presets.
The SDK serves no browser, so its directory lists Host providers only.

Remove the standard-mode parity exception, record the SDK-only PTC
difference, keep pre-desktop SDK and Python compositions pinned, refresh
the affected SDK snapshots, and document the change.
2026-11-23 13:39:06 +08:00
sjw1231 ed03eb53eb feat(fs): enable apply_patch in the ptc and cordis presets and the PTC overlay
The Web/Desktop ptc and cordis presets state applyPatch: true, and the
shipped PTC overlay no longer overrides the dsh-base tool-fs row, so every
shipped coding composition offers apply_patch beside edit: as a JSON tool
under native execution and as a run_code binding under PTC. The SDK and
Desktop PTC tool sets stay equal.

The SDK keyless smoke expects the apply_patch binding under the PTC
overlay, and the Web preset e2e asserts apply_patch in the cordis tool set
and the ptc run_code bindings. The shipped filesystem mutation defaults
Agent Note, the tool-fs README, and the tool catalog describe the new
defaults, and an upgrade guide records the change for 0.2.3-alpha.2.
2026-11-23 13:32:34 +08:00
sjw1231 01138b2ce0 fix(fs): re-enable apply_patch in dsh-base and the standard preset
Revert the temporary shipped default from #7698: the dsh-base tool-fs row
and the Web/Desktop standard preset state applyPatch: true again, matching
the shipped filesystem mutation defaults Agent Note, the tool-fs README,
and the tool catalog, which kept describing the enabled default.

The recording and test pins that held applyPatch: true while the default
was off are removed, since the default now supplies the same tool set; the
default tool lists in the SDK smoke and Web composition tests list
apply_patch again. team-default-enabled, recorded while the default was
off, is refreshed and gains only the apply_patch schema and guidance.
2026-11-23 13:32:22 +08:00
creatixchu d0c15ee785 docs(cua): keep shared show guidance scoped to app and window 2026-11-22 18:29:38 +08:00
creatixchu eed0c0db8a fix(cua-macos): restore minimized windows and hand keyboard focus back 2026-11-22 18:29:36 +08:00
creatixchu 71593137e9 docs(cua): keep platform-specific show behavior in macOS guidance 2026-11-22 18:29:32 +08:00
creatixchu 82337e9b79 fix(cua-macos): preserve keyboard focus on show 2026-11-22 18:29:15 +08:00
fz 6c448d39ff docs(cli): describe the completed version invocation 2026-11-22 18:21:09 +08:00
creatixchu c5d5bdf2ea Merge remote-tracking branch 'origin/master' into feat/cua-ax-show-diff 2026-11-22 17:51:10 +08:00
fz c8f38d5b5e fix(cli): exit naturally after printing the version 2026-11-22 17:45:45 +08:00
Huo Yaoyuan 14677d27f7 feat(cua): align application discovery and add app.launch (#8913)
* refactor(cua): unify application discovery records and identities

* feat(cua-windows): implement application search

* Remove sentinel PID and check

* feat(cua): list all applications for empty discovery queries

* getState should use findApps

* Update guidance

* Use neutral accessibility terminology

* Update tests

* Add app.launch

* Update README

* fix(cua): resolve typed lint errors in tests

* Align getState with previous behavior

* Update findApps on Windows to return installed only

* Remove PID tracking

* Remove redundant PID usage

* Update launch behavior

* Fix comment

* Update app identity guidance
2026-11-22 17:33:33 +08:00
imccyu 267805d20d release(dsh): 0.2.3-alpha.2 2026-11-22 15:27:28 +08:00
imccyu 09d9609a28 Merge pull request #8837 from deepseek-harness/chore/node-24-22-3-floor
chore(deps): raise the Node.js floor to 24.22.3
2026-11-22 11:23:51 +08:00
imccyu aae91d692e release(dsh): 0.2.3-alpha.1 2026-11-21 18:29:41 +08:00
yudshj b864a0b6fa refactor(office): office 技能正文内联精简指导,删除三个格式文件
格式指引以分步流程、库的选择、停止规则和示例为主,约束了模型自己的做法。
office 正文改为只写模型无法自行得知的 DSH 事实(工具下一步可用、缺失时重新
加载、内置 pypdf、旧格式先转换)和会悄悄丢数据的坑(run 格式、东亚字体、
文本框溢出、公式结果、DataFrame 覆盖工作簿),删除 docx.md、pptx.md、
xlsx.md,provider 也不再检查它们。

整份指导随 skill 结果到达,不再需要额外的 read,也不依赖会话文件系统能否
读到 Host 路径。真实模型 e2e 去掉依赖旧指引的过程断言,保留结果校验和显式
渲染意图;Office 场景删去读格式文件的步骤,office-skills-no-renderer 用真实
模型重录。README、升级指南和 Agent Note 同步更新。
2026-11-20 23:29:08 +08:00
yudshj 7f8e3720b8 feat(office): Office 技能目录只保留 office,格式指导改为按需读取的资源文件
docx、pptx、xlsx 的指导从独立技能移到 office 技能目录下的 docx.md、
pptx.md、xlsx.md,模型加载 office 后用 read 按需读取;tool-office 的
activationSkills 默认值改为 office。
2026-11-20 23:27:24 +08:00
Dudu-0223 d0be6ccd9d fix(recommendations): scope Creator skills and enable the SDK catalog 2026-11-20 21:31:56 +08:00
ZiyaZhangandDudu-0223 3259436cb1 feat(web): ship personalized recommendations by default
Mount the recommendation plugins in Web and Desktop and expose their skill
switch in General settings. Record card decisions as Session events and
replay decisions from older plugin records. Use English for the two skill
catalogs and retire the optional recommendations bundle.

Co-authored-by: Dudu-0223 <fsyo0223@gmail.com>
2026-11-20 21:31:55 +08:00
creatixchu ab4cfd8dd7 Refresh CUA replay outputs for the merged system input protocol 2026-11-20 18:35:19 +08:00