Commit Graph
2606 Commits
Author SHA1 Message Date
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
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
LegGasai dc4883ea65 Merge remote-tracking branch 'origin/master' into feat/forge-review-activity
# Conflicts:
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
2026-11-21 14:57:27 +08:00
MicroBlock b73ac58149 Merge remote-tracking branch 'origin/master' into feat/im-automation 2026-11-20 22:35:07 +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 5b0b1f915d Start post-policy input release from the CUA final result observer 2026-11-20 18:35:29 +08:00
creatixchu 97ddb7e5be Merge master and track system keyboard holds alongside mouse input 2026-11-20 18:34:57 +08:00
EricMoin 36426e319b feat(ui-conversation): add an inline composer placeholder slot 2026-11-20 16:41:36 +08:00
Dudu-0223 03fef31062 fix(action-cards): 保留不同轮次中各自可操作的提案 (#8900)
* fix(action-cards): keep proposals available across turns

* test(action-cards): consolidate replay and lifecycle regressions

* fix(action-cards): guide revised creation plans and drop derived decision wording

A changed plan now gets a new card whose answer says the earlier card stays available until dismissed. Card body docs describe decisions as recorded only.
2026-11-20 08:38:00 +00:00
LegGasai 292efc07ff Merge remote-tracking branch 'origin/master' into feat/forge-review-activity 2026-11-20 16:18:05 +08:00
LegGasai 3c076d74ff fix(workspace-files): judge a directory's descent from the backend's spelling
`workspaceDescent` parsed the request string by its own rules, while the
filesystem backend expands a leading `~` and applies its platform's drive
and UNC rules to the same string. `list('~')` and a directory watch on `~`
were therefore accepted with no link in the workspace, as was a path on
another drive under a root spelled `//server/share`.

The check now compares the two spellings the backend resolved, the root's
and the directory's `displayPath`: absolute, home prefix expanded, no link
followed. A root spelling that is not absolute never qualifies.

Also correct two documents that still stated the earlier rule and the
reason the decision record gave for refusing a `..` segment.

Refs #8895
2026-11-20 16:10:31 +08:00
LegGasai 6d2e0ea408 feat(workspace-files): browse directory links that resolve outside the workspace
`list` and directory `changes` accept a directory whose path descends from
the workspace root by child names, so a link in the workspace that resolves
outside it lists and watches like any directory. An absolute path outside
the root and a `..` traversal stay `workspace-file/outside-workspace`.

The Sidebar file tree keeps the Host's code on a watch failure, so the
level shows the localized line for it.

Resolves #8895
2026-11-20 14:51:36 +08:00
LegGasai e89dc1d564 Merge commit '1a451ffe2ed7774132e38e8c3e39e35b4e602450' into feat/sandbox-policy-git
# Conflicts:
#	packages/experimental/client-ui-forge/README.i18n.yaml
#	packages/experimental/worktree/README.i18n.yaml
#	packages/experimental/worktree/README.md
#	packages/experimental/worktree/README.zh.md
2026-11-20 12:46:59 +08:00
creatixchu 2d5b444e0e Sync master into the pi image limits branch 2026-11-20 12:30:03 +08:00
Dudu-0223 2771604182 fix(extensions): 修复子代理 Client inspect 持续超时 (#8615)
* fix(extensions): route client inspect replies by session identity

* fix(extensions): preserve inspect reply wire identity in source mode
2026-11-20 04:24:19 +00:00
LegGasai 658aeed863 feat(forge): keep the review detail's link actions visible, add the automatic merge, and draw a loading skeleton
The Code review page's detail shows Open on the code host, Copy link, and
Refresh status as three icon buttons after the merge action; a narrow detail
folds them into the More menu as before. The merge action also turns the
code host's automatic merge on, shows that it is on with its cancellation,
and names why the host would not merge.

- forge-github: snapshots carry `autoMerge` from `viewerCanEnableAutoMerge`,
  `viewerCanDisableAutoMerge`, and `autoMergeRequest`; `setAutoMerge` sends
  `enablePullRequestAutoMerge` with the confirmed head or
  `disablePullRequestAutoMerge`. A base branch with a merge queue offers none.
- forge-gitlab: snapshots carry `autoMerge` from `autoMergeEnabled` and the
  available strategies; `setAutoMerge` accepts with the strategy that waits
  for every merge check, or posts `cancel_auto_merge`. Merge trains offer
  none.
- client-ui-forge (Host): `forgePanel.setAutoMerge` and
  `forgePanel.reviewSetAutoMerge`.
- client-ui-forge (Client): the opening actions carry the mark of the
  provider's forge family and name the code host instead of the browser, on
  the review page, the Session panel card, the changes view, and review
  threads. While a change request, its description, or its activity is read,
  a skeleton of the same layout stands in. The comment field is three lines
  tall with a row that names the code host and a primary button. Where the
  header is tight, labels fold and the repository name is cut before the
  actions wrap.
2026-11-20 11:49:59 +08:00
imccyuandimccyu e25df02c51 refactor(session): prepare Session validation and header building for SessionData (#8676)
* refactor(session): move Session log validation into a module

Move header, seed-event envelope, and inherited-cut validation out of the
Session constructor into validation.ts without changing check order or error
text. Export needsInheritedSeedMarker for the fork marker rule the
constructor applies.

* feat(session): validate a Session log without constructing a Session

validateSessionLog composes the header, seed-event, surface, and
inherited-cut checks of Session construction in the same order. Omitting
eventState matches Session.create; an event state matches
Session.fromRestore.

* refactor: validate stored Session logs with validateSessionLog

The chat importer, session-query readSession, the format catalog, and JSONL
generation verification constructed a discarded Session only to validate a
log. They now call validateSessionLog with the same mode, inherited count,
and message interpreters.

* refactor(session): extract buildSessionHeader

Move new-Session header construction out of SessionStore.prepare into the
exported buildSessionHeader and name its input SessionHeaderMeta.
Automatic ids and duplicate checks stay in prepare.

* refactor(session): move header and fork error helpers out of the session index

Move buildSessionHeader into validation.ts and SessionForkError with
SessionForkErrorCode into fork.ts so later modules can import them without
importing index.ts. index.ts re-exports both under the same names. Complete
the JSDoc of the exported validation helpers.

* refactor(session): extract checkSessionLog from the Session constructor

Move header validation, seed acceptance with surface admission, and the inherited-cut check into checkSessionLog in validation.ts, keeping the constructor's order and errors. The Session constructor and validateSessionLog call it.

* test(session): cover Session log validation and construction helpers

Cover validateSessionLog against Session.create and Session.fromRestore in
every event state, buildSessionHeader, needsInheritedSeedMarker,
Session.readEvents range semantics, and the fork subpath export of
SessionForkError.

* docs(session): document Session log validation

Document validateSessionLog, buildSessionHeader, needsInheritedSeedMarker,
Session.readEvents, and the SessionForkError subpath export in the package
README. Align the Session and CreateSessionOptions type blocks, add
SessionHeaderMeta, regenerate the Cordis, event graph, and persistence
catalogs, and update the plugin entry, unknown-cast, and package dependency
registries.

---------

Co-authored-by: imccyu <cc.yu@deepseek.com>
2026-11-20 00:11:27 +08:00
LegGasai 4f600dbef6 feat(forge): show a change request's activity on the Code review page and add comments from it
Under the description, the summary tab lists the comments, submitted
reviews, commits, and changes of state of a change request, oldest first,
with a field that adds a comment to its conversation.

- forge-github: `readActivity` reads the latest 100 timeline entries in one
  GraphQL request; `addComment` posts one REST request. The close a merge
  records is left out.
- forge-gitlab: `readActivity` reads the latest 100 notes through GraphQL
  and the state changes through REST; system notes map by their recorded
  action, and one with no kind of its own shows its sentence. `addComment`
  creates one note.
- client-ui-forge (Host): `forgePanel.reviewActivity` returns null for a
  provider that reads no activity; `forgePanel.reviewComment` refuses a
  blank comment before the host is asked.
- client-ui-forge (Client): runs of commits fold into one line, a review
  that left inline comments opens the changes tab, a long comment starts
  cut short, and the field keeps its text when the host did not save the
  comment. The activity is read again after a comment and when the change
  request's update time or reviews change. Copy in eight languages.
2026-11-19 21:51:22 +08:00
creatixchu 99ecefea62 Await call-scoped failure cleanup before publishing rejected tool results 2026-11-19 21:41:17 +08:00
creatixchu f8334a2caf Merge master and refresh the CUA persistence acknowledgements 2026-11-19 21:35:26 +08:00
EricMoin 5313ad4bfa feat(remote-connection): pair browsers through the shared root login page 2026-11-19 21:25:58 +08:00