Commit Graph
6162 Commits
Author SHA1 Message Date
imccyu aff6333d8d test(client): escape generated CSS Modules class names in selector expectations
lightningcss hashes the stylesheet path into [hash]_[local], and the fixtures
live under random temporary directories. About one hash in 410 begins with
a dash and a digit, which the stylesheet writes escaped (.-\35 ab_root) while
the class map holds the name itself, so the raw selector expectation failed.
The expectations now serialize the class name as CSS.escape does.

Refs #9265
2026-11-26 01:34:29 +08:00
imccyu c1093c65a1 test(lint): copy the Oxlint contract repository from the Git index
The private copy walked the live working tree with fs.cp while suites in the same gate created and deleted untracked mkdtemp directories inside it, so a vanished entry failed beforeAll with ENOENT. The sequential per-entry stat and chmod calls also pushed the Windows copy past the 90 s hook budget, after which afterAll removed the root under the still-running copy (ENOTEMPTY).

List the copied files from the Git index, minus files deleted in the working tree, copy them with bounded concurrency, and make afterAll wait for the copy to settle before removing it.

Fixes #9230
2026-11-26 00:32:27 +08:00
Turtle 42e16d663f Merge pull request #9165 from deepseek-harness/turtle/default-mock-llm-185de0078cad
feat(webworker-preview): start the Preview on a keyless mock model
2026-11-25 17:32:27 +08:00
LegGasai f535813467 feat(forge): stage, unstage, and restore files in the local changes view (#9166)
* feat(client-ui-forge): stage, unstage, and restore files in the local changes view

The Unstaged scope of the local changes view stages and restores whole
files, and the Staged scope unstages them, each from an icon button on
the file header, the file menu, or a header button for every shown file.

A new forgePanel.localWrite Remote runs Git under the Session's sandbox
policy. Staging and restoring refuse a file whose change is not the one
the reader saw. Staging and unstaging return the index as a tree, which
the notice's Undo returns the index entries to. Restoring asks first.

The viewed mark draws as a ring, and a pane at most 380px wide shows a
file's writes under the pointer or once the keyboard reaches them.

Refs #9162

* test(client-ui-forge): give the older local diff fixtures the writable field

* docs(forge): document local writes on the subsystem page and refresh the catalogs

* test(client-ui-forge): run the local write specs on Windows

Refusals come from the recording sandbox instead of a POSIX stand-in Git,
the pathspec-magic file name is used only where the file system takes a
colon, and the batching case uses short names under the Windows path limit.

* feat(client-ui-forge): run local writes on the reader's authorization, outside the Session sandbox

A press in the changes view is the reader's own action, as archiving is for
the worktree service's removal of a checkout, so staging, unstaging, and
restoring no longer run under the Session's sandbox policy. They work in a
read-only Session and from a Session directory below the checkout's root.

ForgeLocalDiff.writable, the forgePanel/local-write-denied error, and its
notice are removed with the confinement they described. A restore passes
--no-recurse-submodules.

Refs #9162

* fix(client-ui-forge): refuse writes that reach past the chosen file

Three review findings on the local writes of the changes view:

- A deleted file whose path holds a directory is refused before anything
  is written. Git takes a path for the directory and everything in it, so
  staging the deletion staged those files and restoring the file deleted
  them.
- A submodule is offered no restore. git restore exits with success and
  leaves the commit it has checked out, so the view reported a
  restoration that did not happen. ForgeDiffFile gains `submodule`, read
  from the 160000 mode of the patch header.
- The file menu's rows for the writes cannot be activated while a write
  is in flight or the scope is read again, as the header's buttons.

Refs #9162

* docs(forge): record why local writes carry no filter guard

* test(web): wait for the last file's text before reading its scroll position

The file navigation case read the scroll position two frames after the
last file drew. A drawn file shows a row for the lines after its last
hunk until the Host answers the read of its text; the row then leaves,
the scroll range shrinks by its 26px, and the position falls from 3347
to 3321. When the answer took longer than two frames, the case recorded
the earlier position and failed with "expected 3321 to be 3347".

The case now waits for that row to leave. With the Host's answer delayed
by 600ms the old wait fails with that message and the new wait passes.

Refs #9162
2026-11-25 08:04:39 +00:00
Turtle 03439d43c7 feat(webworker-preview): start the Preview on a keyless mock model
Add the experimental @deepseek-ai/dsh-llm-mock plugin, which registers a mock
provider route that answers every call with fixed text. The Preview image
seeds its profile patch with the mock row, starts new Agents on it, and keeps
the first-run API-key prompt closed. Users can still add a real provider key
in Settings > Models and select that model.

Refs #9163
2026-11-25 15:16:00 +08:00
Xu Hanxiang 7355ddbb7d Merge pull request #8966 from deepseek-harness/feat/liveshare-share-reconnect
feat(liveshare): 限制断线重试并支持原链接立即重连
2026-11-25 07:07:23 +00:00
liukx0205 e340e40c5b test(sidechat): cover the package and document it
Restore the unit tests for the control, resource provider, views and
plugin lifecycle, adapted to the /side command, so the per-file coverage
gate passes. Add the package README pair and its model-experience audit
entry for the README gates.
2026-11-25 14:44:50 +08:00
liukx0205 656036e2c9 fix(sidechat): keep /side consumable and align with the release version
The command stays available so a typed /side never reaches the model as a
message; the control already declines a source with a fork in flight. The
/client entry re-exports its slot, resource and locale augmentations. The
side tab derives its phase from the retained Session's open state instead of
copying the subagent Sidebar's hero derivation. Drop the unconsumed task set
from the control. Match the root release version and list the package in the
release family.
2026-11-25 14:44:50 +08:00
liukx0205 09a85dbac5 feat(web): optional side conversations in the right Sidebar
Add @deepseek-ai/dsh-client-ui-sidechat, an experimental Client plugin that
default profiles do not install. The /side command forks the conversation at
its latest completed Turn through the ordinary Session fork and opens the
child in the right Sidebar of the Session on screen, rendered through
conversation.content with a fixed embedded Chat view. The child is an
ordinary Session listed under Ungrouped; tabs are window-local and restore
from the saved Sidebar layout.
2026-11-25 14:44:50 +08:00
Turtle 373769c622 Merge pull request #9168 from deepseek-harness/turtle/add-preview-fixture-rule-578e68ea890f
docs(agents): require PR preview showcase to show changed rendering
2026-11-25 12:58:00 +08:00
Turtle 2ee08e0abd docs(agents): move preview showcase rule to root AGENTS.md
Refs #9167
2026-11-25 12:35:06 +08:00
LegGasai 3fef3cd8bc Merge pull request #9116 from deepseek-harness/fix/npm-zod-single-install
fix(deps): install one zod copy from npm
2026-11-25 12:29:11 +08:00
LegGasai cc2d601b8b fix(deps): keep the exact zod pin
Review asked to keep zod pinned instead of loosening it to ~4.6.6, so every installation runs the reviewed version.

- The 106 manifests return to exact 4.6.6, as on master.
- dsh-connector-feishu moves from ^4.4.3 to 4.6.6.
- dsh-acp, dsh-subagent-acp, dsh-experimental-subagent-oar and dsh-session-snapshot pin zod 4.6.6, so npm places that version before the ACP SDK's zod peer can hoist a newer one.

The layout gate and its messages name the pin instead of a range.

Refs #7501
2026-11-25 12:16:22 +08:00
imccyu 1f1590430e refactor(ui-renderer): bind document hooks to the application mount 2026-11-25 02:55:56 +08:00
imccyu 897ab671f6 feat(ui-renderer): scope opted-in package styles on existing slot roots (#9033)
* feat(ui-renderer): scope opted-in package styles on existing slot roots

Share the package style policy between slot dispatch and stylesheet installation. Preserve global themes, root identity and component state through style-only toggles, including nested Factory, HOC and list output.

* fix(dev-web): keep launcher validation independent of package sources

* refactor(ui-renderer): identify generated scope CSS as stylesheet content

* fix(client): keep panel indicators visible under style isolation

Position a shared indicator area on the Session panel toggle. Jobs, Subagents, and Forge paint their own marks without crossing package scopes.

* refactor(ui-renderer): fix each package style scope for the page

Stamp the content supplier on existing slot roots. Read its page-owned mode when registering content and writing stylesheets instead of subscribing the render tree to live policy changes.

* fix(ui-renderer): keep scoped styles with their actual package

Resolve Loader aliases against the page module table and stamp contributions from the renderer’s own module source. Let a valid package stylesheet take over a path rejected during scope preflight or by the destination.

* fix(client-modules): declare the row callback receiver-free

* refactor(ui-renderer): scope styles from their module records

* test(ui-renderer): verify module-record style scoping

* chore(ui-renderer): restore scoped slots to the PR base

* fix(ui-renderer): mark slot roots with their supplying module

* refactor(ui-renderer): bind Factory child slots once per supplier

An outlet belongs to whoever called renderSlot for it, wherever it later
renders. A Factory's child-slot methods are now kept per Factory and per
supplier: the Factory itself for its own Component and fallback locals,
the occurrence's caller for a local it selected. One caller mounting its
local in several places shares one method, and no per-mount binding or
extra occurrence context field remains.

* refactor(ui-renderer): scan a Factory's chain children once

Whether a Factory declares a chain child is recorded once per Factory
beside its per-supplier child-slot methods, instead of once per
supplier. The Factory kit assigns `renderSlot` and `renderSlotChain`
by name rather than copying whichever keys the methods object holds.

* test(client-runtime): expect data-plugin on the mounted slot root

The slot outlet names its supplier on the existing root; the test runtime registers without a package, so the two DOM snapshots gain data-plugin="".

* test(web): launch the panel indicator scenario per isolation mode

The Host reads an entry's client isolation when its plugin starts, so
updating that field on a running entry never reached the boot graph and
the scenario waited forever. Each mode now starts its own Host: the
shipped composition, and one whose overlay declares style isolation for
the panel and the two packages drawing on its toggle. Both check the
boot graph first, then run the same interaction and indicator
assertions.
2026-11-25 02:52:49 +08:00
imccyu f5d022c58e feat(client): run script-isolated package bundles in iframe Realms
Publish the unstable per-entry script switch in the Host boot graph and keep opted-in bundles out of the Main Realm batches. Activate the Realm providers before isolated code, reuse a frame across its package-local chunks, and release it on replacement or teardown. Dev Web can opt entries in through a transient final overlay.

Refs #8131
2026-11-24 21:33:52 +08:00
Turtle cdbfa8bb1c Merge pull request #6542 from deepseek-harness/plugin-filter-all-locales
feat(web): add plugin references and cross-language plugin filtering
2026-11-24 20:11:33 +08:00
LegGasai dfe4bfa821 fix(deps): declare zod wherever a dependency requires it as a peer
dsh-subagent-acp, dsh-experimental-subagent-oar and dsh-session-snapshot depend on @agentclientprotocol/sdk, which requires zod as a peer, without declaring zod. Installed alone they resolve one zod today, but where npm places an unprovided peer depends on the order it processes the tree.

- The three packages declare zod with the range other DSH packages use.
- verify-npm-install-layout reads every DSH manifest and rejects a package whose dependency requires zod as a peer while the package declares none, so the rule also holds outside the @deepseek-ai/dsh graph.

Refs #7501
2026-11-24 18:45:47 +08:00
LegGasai 7230977ac0 fix(deps): install one zod copy from npm
npm installs of @deepseek-ai/dsh nested one zod 4.6.6 copy in about 80 DSH packages (548-629 MB). @agentclientprotocol/sdk requires zod as a peer and dsh-acp did not declare zod, so npm hoisted the newest release for that peer before it reached any package that pins 4.6.6.

- dsh-acp declares zod, so npm places the DSH range before the peer.
- Workspace zod declarations move from exact 4.6.6 to ~4.6.6, the range Issue #7501 names. The Stagehand adapter keeps exact 4.6.6 because Stagehand 4.4.0 pins that version and receives the adapter's schemas. The lockfile still resolves one zod@4.6.6.
- verify-npm-install-layout resolves one release against an index that also holds a zod release one minor above the installed one and rejects any zod installation other than node_modules/zod.

Refs #7501
2026-11-24 18:26:44 +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
Turtle 689c8619fe Merge pull request #9102 from deepseek-harness/turtle/web-prompt-snapshot-c3d1a7662d3a
ci(preview): show the Web blank-Session catalog on the snapshot diff page
2026-11-24 17:10:35 +08:00
imccyu 8eb8ed7678 Merge pull request #9074 from deepseek-harness/page-input-hooks
feat(client): add ui-responsive standard props for media queries and mobile devices
2026-11-24 16:56:31 +08:00
Turtle 52ae8dc6cd ci(preview): show the Web blank-Session catalog on the snapshot diff page
Refs #9101
2026-11-24 16:43:25 +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 e6e9b5dc87 fix(vendor): drop the redundant nested tree list and document both vendor trees 2026-11-24 15:54:40 +08:00
Shigma f34ba82f3f fix(vendor): cover vendor/im in the remaining package discovery and docs 2026-11-24 15:34:08 +08:00
Dudu-0223 43aa93ed54 Merge pull request #9006 from deepseek-harness/feat/subagent-model-activation
feat(subagent): select local child models through maintenance restoration
2026-11-24 15:15:35 +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
Shigma e7a4e5eece Merge pull request #9078 from deepseek-harness/chore/vendor-http-1.6.0
chore(cordis): sync vendored http to @cordisjs/http 1.6.0
2026-11-24 15:12:11 +08:00
Shigma e3e6d7dcd3 test(cordis): drop the upstream http name from the spec summary 2026-11-24 14:58:08 +08:00
Dudu-0223 04a735f556 feat(subagent): persist model choices outside descriptors 2026-11-24 14:49:02 +08:00
LegGasai 72ad2d1d63 feat(llm-pi-ai): leave the Models page and settings as they are for provider rows
The previous commit marked a provider row that a later layer decides as
managed: the configuration editor reported which rows a home patch or
overlay decides, settings and its Remote controller carried that to the
page, and the Models page showed such a row with a tag and a read-only
card.

The page already handles a provider row without any of that. It lists the
row's route, offers no deletion for it, and opens it with its card for a
form it has no layout for, which names the row's section of the patch file
and takes no input; the configuration editor already refuses a write to a
row that a home patch or overlay adds. So the configuration editor,
settings, its Remote controller, and the Models page go back to what they
were, and the change is confined to the adapter package.

The Web test now describes the unchanged page beside a deployment's rows,
and the adapter's test helper stores the profile patch itself instead of
through a parameter added to the settings test helper.
2026-11-24 14:41:37 +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
Shigma 3cb1933c85 chore(cordis): sync vendored http to @cordisjs/http 1.6.0 2026-11-24 14:25:19 +08:00
LegGasai 8430c2d939 feat(read-aloud): choose the voice and hear a sample in the bundle details
Providers list their voices and the synthesis registry saves one voice
preference in its profile entry, as voice input saves its language. The
read-aloud Remote reports the voices, saves a choice, fixes the voice of a
reading when its plan is made, and speaks a Host-owned sample sentence.

The bundle details gain a voice field and a speaker that plays the sample
with the three states of the read control. The DeepSeek provider's own
voice key moves to the registry. The details text lists the supported
languages; the API detects the language itself and accepts no choice.
2026-11-24 14:24:12 +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 22ce7e423e test(python): align packaged Office skill snapshots with the shipped description 2026-11-24 13:28:19 +08:00
yudshj 8909bf19fc refactor(office-kit): check PDF page limits after rendering
Drop the pdfinfo size precheck so a render starts one pdfinfo and one pdftoppm per run of consecutive pages, register the Office toolviews as literal keys so the client slot catalog lists every name, and align the Office notes with the document tool names.
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
Ruilin Geng 6423b8d39a Merge pull request #7692 from deepseek-harness/feat/connectors-hub
feat(connectors): 新增实验性“连接器”标签页,在插件页列出并安装官方连接器
2026-11-24 13:05:01 +08:00
Turtle 9cc2df524f Merge remote-tracking branch 'origin/master' into turtle/fix-conflict-6542-b5f7dd515337
# Conflicts:
#	docs/persistence-catalog.i18n.yaml
#	docs/persistence-catalog.md
#	docs/persistence-catalog.zh.md
#	docs/persistence-changes/historical-formats/README.i18n.yaml
#	docs/persistence-changes/historical-formats/README.md
#	docs/persistence-changes/historical-formats/README.zh.md
#	docs/persistence-schema.json
2026-11-24 12:47:27 +08:00
_Kerman 085b5cbe11 Merge pull request #9040 from deepseek-harness/turtle/wrap-time-context-a5c9580e13f4
fix(time-context): wrap the time reading in <system-reminder>
2026-11-24 12:13:54 +08:00
LegGasai d96a7026c9 feat(ci): check whitespace in each pull request's changes (#9049)
* feat(ci): check whitespace in each pull request's changes

The static lane runs the pre-commit hook's git diff --check over the range
from the merge base with the base branch to the pull request head, before
dependencies are installed. Base-branch commits merged into the pull request
are outside that range.

* test(ci): match the checkout step without an untyped asymmetric matcher

expect.stringMatching returns any, which the type-aware lint rejects as an
unsafe assignment inside the expected object.
2026-11-24 03:43:21 +00:00
Turtleandkermanx 1f44b874a4 fix(time-context): wrap the time reading in <system-reminder>
Fixes #9039

Co-authored-by: kermanx <63178754+kermanx@users.noreply.github.com>
2026-11-24 10:45:49 +08:00
Shigma 75f08dba22 Merge pull request #6291 from deepseek-harness/feat/im-automation
feat(im): add experimental IM automation
2026-11-24 01:19:13 +08:00
imccyu 76afdbefc8 Merge pull request #9031 from deepseek-harness/list-all-children-study
feat(ui-renderer)!: expose a DOM root for each rendered list item
2026-11-24 00:35:17 +08:00
imccyu 22cc784439 feat(ui-renderer)!: expose a DOM root for each rendered list item
Group each selected list registration under one layout-neutral item, including a fixed only selection. Preserve registration identity and distinguish an empty component from a missing row. Adapt the affected panel, settings and toolbar consumers without changing other slot kinds.

BREAKING CHANGE: CSS selectors and DOM queries that cross a rendered list entry must account for its data-slot-item root.
2026-11-23 23:57:08 +08:00
imccyu ba5795bad8 perf(ci): stop verify-package-dependencies from re-running the type check
The gate only needs the generated typert.host.js text to count runtime
imports, but it built WorkspaceTypertGenerator without options, so the
default checkDiagnostics pass created one TypeScript program per
contributor package and ran semantic diagnostics over each. That was
most of the gate's 252 s.

The build plugin and every other generator call site already leave
diagnostics to the repository typecheck, which covers scripts/**/*.ts
through tsconfig.host.json.

Refs #9030
2026-11-23 23:56:51 +08:00
Shigma 675efe39eb Merge remote-tracking branch 'origin/master' into feat/im-automation
# Conflicts:
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	docs/subsystems/filesystem.i18n.yaml
#	docs/subsystems/filesystem.md
#	docs/subsystems/filesystem.zh.md
#	docs/tool-catalog.i18n.yaml
#	packages/experimental/README.i18n.yaml
#	packages/extensions/cordis-host-runner/src/api-catalog.ts
#	packages/fs/fs-local/src/index.ts
#	packages/fs/fs-local/tests/filesystem.spec.ts
#	packages/fs/fs-sandbox/tests/fs-sandbox.spec.ts
#	packages/fs/fs/README.i18n.yaml
#	packages/fs/fs/README.md
#	packages/fs/fs/README.zh.md
#	packages/fs/fs/src/index.ts
#	packages/fs/fs/src/types.ts
#	packages/preset/agent-preset/skills/dsh-doc/references/packages.md
#	packages/ssh/fs-ssh/README.i18n.yaml
#	packages/ssh/fs-ssh/README.md
#	packages/ssh/fs-ssh/README.zh.md
#	packages/ssh/fs-ssh/src/index.ts
#	packages/ssh/fs-ssh/tests/provider.spec.ts
#	packages/ssh/ssh/src/helper.ts
#	packages/ssh/ssh/src/schemas.ts
#	packages/ssh/ssh/tests/helper-runtime.spec.ts
#	scripts/experimental-package-policy.ts
2026-11-23 23:33:33 +08:00