Commit Graph
2626 Commits
Author SHA1 Message Date
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 5ac3b81a81 Merge pull request #9048 from deepseek-harness/feat/llm-pi-ai-deployment-provider-rows
feat(llm-pi-ai): add provider rows for deployment-supplied routes
2026-11-24 18:04:32 +08:00
Xu Hanxiang b5f68db74c Merge pull request #8454 from deepseek-harness/feat/liveshare-registration-check
feat(liveshare): 发布探测改用 owner-registration-check 端点
2026-11-24 09:58:21 +00: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
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
Dudu-0223 d7961599b8 refactor(llm): rename isModelListed to isModelInCatalog
The method reports whether a provider's current catalog contains a model; the new name states where the model is looked up.
2026-11-24 14:49:02 +08:00
Dudu-0223 750c57f21a fix(llm): check catalog membership through the llm service
Plugin entries export only what the Loader loads, so replace the
isModelListed entry function with LlmRuntime.isModelListed(provider, model)
and route session-controller and subagent catalog checks through ctx.llm.
2026-11-24 14:49:02 +08:00
Dudu-0223 e65f956950 fix(subagent): harden child model selection after review
- Report CONTINUATION_UNAVAILABLE when an agent/created listener wakes a
  maintenance restoration before the choice is recorded; the release
  cancels the started turn.
- Accept only catalog-listed models in subagents.selectModelByUser, using
  the isModelListed check shared with session.selectModel.
- Share the client model-selectable rule and derive ModelDirectory
  availability from the subagent address.
- Wait for the maintenance release before reading the child log in the
  Web e2e, and fix the Chinese README sentence.
2026-11-24 14:49:02 +08:00
Dudu-0223 219a05fe0d feat(subagent): select cold child models through maintenance restoration
Restore a cold continuable child as a maintenance Activation, record the
choice through its Agent, and release it before returning instead of writing
the stored log directly. The restoration reserves no capacity slot, publishes
no subagent lifecycle events, refuses manager-routed input, and closes from
the idle phase it owns. A child with pending input is refused so that input
stays for its next execution; a child with no saved model restores through the
choice being recorded.
2026-11-24 14:49:02 +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
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
sjw1231 995069644c Merge remote-tracking branch 'origin/master' into feat/sdk-mcp-manager
# Conflicts:
#	docs/persistence-schema.json
#	packages/bundle/sdk-app/README.i18n.yaml
2026-11-24 14:23:33 +08:00
Yudong Han fe0255f72f Merge pull request #9024 from deepseek-harness/feat/office-render-renderer-option
feat(document): office_render 改名为 document_render 并支持 renderer 选择渲染后端,PDF 优先用 Poppler
2026-11-24 14:00:51 +08:00
Yifffan c20de51e12 Merge pull request #9035 from deepseek-harness/general-settings-sections
feat(client): group General settings into cards
2026-11-24 13:23:14 +08:00
sjw1231 679d9214c2 feat(sdk): hold initialize until MCP servers finish their first attempt
MCP manager servers mount after the manager activates, outside Loader
settlement, so an SDK client that prompts right after `initialize` reached
the model before their tools registered.

`McpServerManager.whenSettled(signal)` resolves once no listed server is
`connecting` with `attempt: 0`; any later state counts, including failures
and reconnect attempts. The SDK server awaits it after Loader settlement for
at most `mcpStartupTimeoutMs` (30 seconds by default, `0` skips the wait),
then answers `initialize` and logs the servers still connecting. Desktop and
Web readiness are unchanged.

The `mcp-manager` SDK snapshot no longer waits for the fixture before
prompting; `initialize` alone puts both MCP tools in the first request.
2026-11-24 13:19:03 +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
yudshj b302da83c8 feat(office-kit): render PDFs with Poppler before LibreOffice
Add a renderer option to office_render and a per-type renderer order to the Office kit. PDFs use Poppler pdfinfo/pdftoppm through piped short-lived subprocesses when available, falling back to LibreOffice only when Poppler is unavailable.

Refs #9015
2026-11-24 13:17:05 +08:00
LegGasai 18e5eaef80 Merge pull request #8423 from deepseek-harness/feat/forge-change-request-links
feat(web): show PR and MR links as references and open them in code review
2026-11-24 03:05:45 +00:00
Yif a69c4efd26 feat(client): group general settings and expose group slots 2026-11-24 01:46:28 +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 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
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
Shigma 4e4a0f1bc2 fix(fs): bound ssh byte writes before sending and drop the derived byte count 2026-11-23 22:59:33 +08:00
Shigma 0808eb8248 feat(fs): write exact bytes through the filesystem seam 2026-11-23 22:39:20 +08:00
07ad3a4dc5 perf(session): merge short SQLite frames inside the append transaction (#8674)
* perf(session): merge short SQLite frames inside the append transaction

Live writes store one to three events per frame, so compression barely
works. When the newest short frames of a Segment reach frameEvents events,
the append transaction re-encodes them as full frames. The frames_no_delete
trigger is dropped from the unreleased schema and from existing databases.

Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>

* perf(session): read SQLite frame payloads only for a merge

Scan only frame ranges to decide whether the trailing short frames merge,
then read their payloads. Append decoded lines one by one so a large
frame size cannot exceed the argument limit.

Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>

* perf(session): cap SQLite frame merges by decoded bytes

A merge skips a run of short frames whose stored or decoded text exceeds
4 MiB, bounding how long it holds the event loop and the write lock. Tests
cover merged compression, the live event path, a failure after the merge's
delete, and large events; a seeded synthetic diagnostic measures size and
append cost. Documentation drops the one-frame-per-write wording and lists
the write stop after short-frame corruption.

Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>

* perf(session): store short SQLite frames uncompressed until merged

A short frame below min(64 KiB, 2 MiB / frameEvents) of JSON text is stored
as text; the merge compresses it together with its neighbours. This skips a
compression on every live append that the merge would redo, and keeps any run
of such frames within the 4 MiB merge limit.

Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>

* perf(session): seal short SQLite frames when a writer closes

* test(session): assert the reported seal failure without an untyped matcher

---------

Co-authored-by: Turtle <turtle1999@deepseek.com>
Co-authored-by: Magolor <25860372+Magolor@users.noreply.github.com>
Co-authored-by: Kexin Liu <69756503+liukx0205@users.noreply.github.com>
Co-authored-by: Magolor <magolor@qq.com>
2026-11-23 18:09:42 +08:00
imccyu 19be4e2e8b Merge pull request #8973 from deepseek-harness/feat/hoc-children-outlet
feat(ui-renderer)!: expose HOC children outlets
2026-11-23 17:32:57 +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
LegGasai 6cceb00ce3 Merge pull request #8897 from deepseek-harness/feat/workspace-directory-links-outside-root
feat(workspace-files): browse directory links that resolve outside the workspace
2026-11-23 16:47:03 +08:00
LegGasai fcc03abc9f Merge remote-tracking branch 'origin/master' into feat/sandbox-policy-git 2026-11-23 16:29:45 +08:00
LegGasai 99a5edebdd Merge remote-tracking branch 'origin/master' into feat/sandbox-policy-git 2026-11-23 16:27:39 +08:00
LegGasai da9cfe2287 Merge pull request #8934 from deepseek-harness/feat/forge-review-activity
feat(forge): edit hosts, list GitLab merge requests for review, and add activity, comments, and auto-merge
2026-11-23 16:25:00 +08:00
LegGasai 858efa428b Merge remote-tracking branch 'origin/master' into feat/workspace-directory-links-outside-root 2026-11-23 16:09:17 +08:00
MicroBlock e94f6b9c9e Merge remote-tracking branch 'origin/master' into feat/im-automation 2026-11-23 15:34:33 +08:00
imccyu 348558376c fix(ui-renderer): preserve the supplying slot across HOC forwarding
Bind each children outlet to the slot passing it to the layer. Key compiled HOC chains by the slot name as well as the declaration and dispatch key so distinct named slots can safely reuse one spec.
2026-11-23 15:14:27 +08:00
imccyu db80535277 feat(ui-renderer)!: expose HOC children outlets
Mark the exact position where each hoc layer renders its children without wrapping the layer itself. Preserve the sidebar rail animation through forwarded outlets.

BREAKING CHANGE: selectors and DOM traversal across a forwarding hoc layer must account for its named display: contents children outlet.
2026-11-23 15:14:24 +08:00
LegGasai a81cb51dc0 fix(voice-input): register the cloud provider and recalibrate the npm layout budget
The release family test lists every published experimental package; add
dsh-speech-to-text-deepseek. The new package and its edges push the
dual-release npm graph to 341 packages x 3332 internal edges, above the
1,134,400-unit budget, so raise MAX_RESOLUTION_WORK_UNITS to 1,420,265
(1.25x the measured 1,136,212 units) and record the new timings in the
Agent Note.

The voice bundle summary now names cloud recognition, which the recorded
plugin and recommendation catalogs repeat; update those recordings, their
expected output, and the browser assertion.

Refs #8059
2026-11-23 15:04:05 +08:00
LegGasai 4c448ec8c3 Merge remote-tracking branch 'origin/master' into feat/forge-review-activity 2026-11-23 14:17:45 +08:00
Ruilin Geng 3684679873 Merge pull request #8862 from deepseek-harness/feat/feishu-cli-download
feat(cli-account): prepare step for CLI and skills downloads
2026-11-23 14:05:55 +08:00
LegGasai e69c67eeed Merge remote-tracking branch 'origin/master' into feat/forge-review-activity 2026-11-23 13:52:43 +08:00
LegGasai 6fe50791ed Merge commit '1cfc9279aa1dd58d953f00132914ca2bcd41b968' into feat/sandbox-policy-git
# Conflicts:
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	packages/experimental/README.i18n.yaml
#	packages/preset/agent-preset/skills/dsh-doc/references/packages.md
2026-11-23 13:23:47 +08:00
LegGasai a480ce65c0 Merge commit 'd37a3dda9b7c3739cc69870c29ab356a97625650' into worktree/asr-transcribe-api-649cb4
# Conflicts:
#	packages/experimental/voice-input-bundle/package.json
2026-11-23 13:13:03 +08:00
imccyu 689b8cd418 Merge pull request #8915 from deepseek-harness/session/fold-run-results-on-commit
refactor(subagent,headless): replace Session event-array reads with per-event folds and a projection
2026-11-22 23:07:42 +08:00
gengruilin cfe3319a70 fix(cli-account): reset the unprepared account once nothing is missing
After a prepare step that failed or was cancelled, the published account
is the registration's `unprepared` object. A later check that found
nothing missing, because its own step succeeded or the files arrived
another way, ran `perform` with that account still published; a
`perform` that failed without publishing left it, so the page kept
reporting a missing download that was in place. The Service now
publishes the registration's first account before `perform` in that
case.

Feishu shows the retry view for a check that failed before the account
was read; it showed the checking view without a button.

Refs #8942
2026-11-22 14:06:34 +08:00
LegGasai be489c4fc7 refactor(voice-input): recognize cloud speech through ctx.deepseekAuth and /v1/tools/asr
Move the DeepSeek cloud recognizer from the harness One-Shot endpoint to the
public /v1/tools/asr API. It is a ctx.deepseekAuth consumer that accepts the
account sign-in and the API key, tries the sign-in first, sends the WAV
unchanged, and never retries. The account service keeps master's token
origins.

speech-to-text drops the client locale, picks the first provider that can
record without preparation under auto, and reports an unlisted saved language
as auto. The voice UI explains cost, links the speech recognition guide, names
API keys beside sign-in, and blocks recording until a switch to local
recognition reaches the catalog.

Refs #8059
2026-11-22 12:53:52 +08:00
LegGasai 00deef7873 Merge commit 'b4b75a83899c1d5ff1a3b60404c3f5f7424a3f77' into worktree/asr-transcribe-api-649cb4
# Conflicts:
#	docs/config-catalog.md
#	docs/config-catalog.zh.md
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	docs/subsystems/credentials.md
#	docs/subsystems/credentials.zh.md
#	packages/account/deepseek-account/README.i18n.yaml
#	packages/account/deepseek-account/README.md
#	packages/account/deepseek-account/README.zh.md
#	packages/client/ui-settings-account/README.i18n.yaml
#	packages/client/ui-settings-account/src/client/index.ts
#	packages/client/ui-settings-account/tests/access-revocation.client.spec.ts
#	packages/experimental/client-ui-voice-input/README.i18n.yaml
#	packages/experimental/client-ui-voice-input/src/client/VoiceSetupDialog.tsx
#	packages/experimental/voice-input-bundle/package.json
#	packages/extensions/tool-cordis/src/api-catalog.ts
#	packages/web/web-search-deepseek/README.i18n.yaml
#	packages/web/web-search-deepseek/README.md
#	packages/web/web-search-deepseek/README.zh.md
#	scripts/experimental-package-policy.ts
2026-11-22 12:27:17 +08:00
gengruilin 930997545c feat(cli-account): prepare step for CLI and skills downloads
ctx.cliAccounts takes an optional `prepare` (phase, unprepared, ready,
run). While it is not ready, a check stages the phase and awaits `run`
before the plugin's `perform`; a failed or cancelled run publishes
`unprepared` and `perform` is not called.

- Feishu and DingTalk declare the lark-cli and dws release downloads as
  their prepare step instead of running them in their own check.
- WeCom and Tencent Meeting declare the upstream skills download as
  theirs, so the account check waits for the skills and the page can
  cancel and retry it. The skills handle is now `installed()` /
  `install(signal)`; `state`, `watch()`, and `retry()` are removed.
- `CliPathContext.ready` is replaced by `prepare.ready`.
- Feishu's skill provider invalidates the catalog once lark-cli is in
  place after a listing without the entry, including after a cancelled
  download that already copied the binary and after an installation made
  outside the plugin's download.

Refs #8942
2026-11-21 16:58:36 +08:00