Commit Graph
1233 Commits
Author SHA1 Message Date
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
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
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
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
creatixchu 97ddb7e5be Merge master and track system keyboard holds alongside mouse input 2026-11-20 18:34:57 +08:00
sjw1231 88074595f2 test(sdk): match JSON-escaped paths and code-unit tool order in the parity observer
Replace the JSON string escapes of the fixture directories too, because
runtime context quotes the working directory with JSON.stringify, which
doubles Windows backslashes. Sort observed tools in code-unit order, the
order the test sorts request tool names in. Update the shipped fs mutation
defaults note, which still described a PTC tool set comparison.
2026-11-20 17:16:42 +08:00
creatixchu 89743cd2a1 Merge remote-tracking branch 'origin/master' into feat/cua-ax-show-diff
# Conflicts:
#	packages/experimental/cua-macos/README.i18n.yaml
#	packages/experimental/cua-macos/native/README.i18n.yaml
#	packages/experimental/cua-macos/src/guidance.ts
#	packages/experimental/cua-windows/README.i18n.yaml
#	packages/experimental/cua/README.i18n.yaml
#	packages/experimental/cua/tests/api.spec.ts
2026-11-20 16:55:58 +08:00
sjw1231 7a4e99f81d Merge remote-tracking branch 'origin/master' into pr-8832-narrow 2026-11-20 16:24:05 +08:00
sjw1231 b67be0905d revert(sdk): keep the workflow tool in the PTC executor overlay
The SDK PTC overlay is not shipped with @deepseek-ai/dsh and training
flips only the executor rows, so disabling workflow there would not
align any consumer. Restore the overlay, its docs, the keyless smoke
assertions, and the workflow parity exception, and drop the upgrade
guide that described the removal.
2026-11-20 15:26:32 +08:00
sjw1231 f30cc23eb2 test(sdk): compare only the native SDK profile with the Desktop standard preset
Drop the PTC comparison and its dependence on the example PTC overlay,
and with it the per-mode exception field. Compare runtime context values
and the other messages injected into the first request, after replacing
test paths and clock readings and running both sides in UTC, with the
Desktop user message reporting that zone as the GUI client does.
2026-11-20 15:22:49 +08:00
sjw1231 97e3dbcd9b Merge remote-tracking branch 'origin/master' into ci/sdk-desktop-context-parity 2026-11-20 15:14:53 +08:00
creatixchu 6eb6625063 Merge master and align scoped CUA replays with system input 2026-11-20 10:43:24 +08:00
imccyu 9fae65aeea test(ptc): name the Node PTC execution mode in tests and add scoped REPL counterparts 2026-11-20 00:27:32 +08:00
creatixchu f8334a2caf Merge master and refresh the CUA persistence acknowledgements 2026-11-19 21:35:26 +08:00
涂轶翔 101f26de4e fix(system-prompt): 保留 section API 的增量系统指令 (#6941)
* feat(system-prompt): admit section updates incrementally

* docs(system-prompt): accept retirement restart gap

* test(system-prompt): cover retirement and reentry before admission

* test(system-prompt): align rebase fixtures and persistence history

* fix: align section prompt consumers and CI fixtures

* test: pin credentials for section snapshot fixtures

* test: align remaining snapshots with section admission

* test: preserve section metadata in Web and PowerShell replays

* refactor(system-prompt): retire sections through Cordis cleanup

* chore: refresh section admission history after rebase

* fix(system-prompt): advance admission head after compaction

* fix(system-prompt): trim sections before admission hashing

* docs: move system upgrade guides to current version

* docs: add system message contribution cookbook

* perf(system-prompt): avoid indexing history for admission

* refactor(system-prompt): derive admission from logged sections

* test(system-prompt): update lifecycle and compaction consumers

* test(system-prompt): refresh CLI section event expectations

* test(system-prompt): refresh question composer section metadata

* feat(system-prompt): resolve same-name sections by scope

* refactor(persona): use ordinary section registrations

* refactor(system-prompt): clarify assembly and related control flow

* test(system-prompt): reconcile rebased section snapshots

* test(python): use current system text helper after rebase

* test(system-prompt): refresh CLI expected section blocks

* test(system-prompt): reconcile latest master integration

* test(agent-loop): seed tools before deferred addition assertion

* refactor(compaction): replace system heads when compacting prefixes

* refactor(system-prompt): separate source text and notice attribution

* fix(system-prompt): preserve legacy instructions in compaction snapshots

* refactor(compaction): build system snapshots while reading the summary prefix

* refactor(compaction): rebuild current system instructions

* refactor(system-prompt): defer compaction rebuild to admission

* refactor(system-prompt): remove redundant fixtures and setup

* fix(plan-mode): announce committed user transitions

* docs(system-prompt): reconcile section lifecycle and compaction design

* refactor(system-prompt): consolidate projection version increments

* fix(system-prompt): reconcile master integration and replay fixtures

* docs(system-prompt): align upgrade guide with current release

* refactor(system-prompt): make admission operations explicit

* fix(system-prompt): reconcile master API and release changes

* docs(system-prompt): regenerate catalogs after master refresh

* refactor(llm-pi-ai): delegate text rendering to pi-ai

* fix(llm-pi-ai): preserve blank lines between system text parts

* refactor(system-prompt): remove redundant retirement metadata

* refactor(system-prompt): own admission and use canonical surface targets

* refactor(system-prompt): compare captured sections at commitment

Assembly fixes section text and lifecycle; PromptAssembly.systemUpdates() compares them with the committed projection when the loop commits. This replaces SystemPrompt.admit(), needsRebuild() and isCurrent(), the SystemAdmission export, the loop's reassembly after compaction, and SessionSurface.systemHeadResetSeq. The projection records a pending rebuild as a boolean that an attributed reset clears.

After a compaction inside a step, the rebuilt head uses the sections captured for that step; later source changes arrive as ordinary updates at the next step.

* test: await the session read fixture and type a matcher for lint

* test(tool-executor-ptc): describe same-name section override on executor replacement

Duplicate section names no longer reject a scoped executor; the earlier registration is overridden and returns as an ordinary update when the executor leaves.

* docs(upgrade-guide): move system-prompt integrations to v0.2.2-rc.3

The root version on master is 0.2.2-rc.3; verify-upgrade-guides rejects a guide added under an earlier version directory.

* refactor(system-prompt): rebuild over system messages without sections

A system message without source.sections now marks rebuilding pending, like a compaction summary. The next model attempt replaces the head with current sections and clears later system messages. This removes the separate legacy flag and its appended whole-prompt replacement and notice.

Sessions written by earlier releases, migrated logs, and imported DeepSeek conversations take the same path, so the importer and its tests return to their master versions.

* test(web): refresh the imported-conversation recording and drop a stray bytecode file

The Web recording for a resumed DeepSeek import was recorded while the prompt was appended after the imported history; the head is replaced again, as on master. The .pyc under the macOS signing skill was staged by accident in an earlier merge.

* refactor(session): scan system nodes on read

surface.systemNodes is read only when a system rebuild is written. Scanning the current surface nodes on each read restores the surface fold's plan types and state to their master definitions, which no longer carry the system message.

* refactor(session): rename SystemSurfaceNode.hasContent to isEmpty

The flag reports that the logged content array has no blocks. isEmpty matches the documented "empty head" wording and covers a head that was written empty without ever being cleared.

* refactor(llm): join system text through extractTextContent

extractTextContent gains a trim option that trims each text block and omits blocks left empty. The DeepSeek serializer, the pi-ai converter, and the prompt inspector use it with a blank-line separator in place of three hand-written joins.

The pi-ai converter now trims system and developer text like the other two, so whitespace-only blocks are omitted there as well.

* test(snapshots): refresh the PowerShell and cordis-inspect recordings

The two PowerShell scenarios still held the initial system message as one unattributed block; replay now writes one block per section with its attribution. The cordis-inspect-jsdoc recording embeds the API catalog, which names SystemSurfaceNode.isEmpty since the rename.

* test(plan-mode,harness-dev-context): cover a rejected pre-step and a repeated legacy prompt

A rejected pre-step must leave a queued plan-mode switch pending and unannounced until the next accepted step. A second unattributed system message with the same legacy paragraphs must keep the admitted paragraphs.

* test(web): refresh Web recordings for section-attributed system messages

Twenty-seven Web recordings still held the initial system message as one unattributed block. Replay now writes one text block per section with its attribution; twenty-six recordings differ only in that line.

plan-review also records the plan-mode switch notice before the first prompt and appends a plan:status update on exit in place of a head replacement and a series header, so its expanded golden gains the notice row.

The Creator persona test joins the system text blocks with blank lines, as the adapters do, before matching the persona line.

* refactor(system-prompt): require the retry argument of systemUpdates

The agent loop passes it on every attempt. A custom loop that omitted it on a retry received a full comparison in place of the pending rebuild, with no diagnostic; the type now makes each caller state which attempt it is.

* docs(upgrade-guide): move the system prompt integrations guide to v0.2.2-rc.5

The root version is 0.2.2-rc.5 after the master merge, and verify-upgrade-guides rejects a guide added under an earlier version directory.

* test(web): refresh the mention path presence recording for section-attributed system messages

* test: align two specs that master left failing

The DeepSeek settings spec waited for a saved notice carrying the provider label from before the rename to DeepSeek API. The Windows packaging workflow spec seeded one of the two helpers that the Stage workflow helpers step copies.

* chore: remove a Python cache file committed by mistake
2026-11-19 21:11:38 +08:00
sjw1231 e36f37e5e4 test(sdk): drop the PTC tool parity exceptions that the aligned presets retire 2026-11-19 19:51:31 +08:00
sjw1231 76eeb1db2d test(sdk): drop parity exceptions resolved by the plan mode and dsh-doc fixes
#8081 aligned the SDK plan mode text with the Desktop presets and #8772
lists dsh-doc in the SDK profile, so their three exceptions no longer
match a difference.
2026-11-19 18:44:32 +08:00
sjw1231 46ba73fba6 Merge remote-tracking branch 'origin/master' into ci/sdk-desktop-context-parity 2026-11-19 18:42:17 +08:00
sjw1231 3b663197a8 feat(preset): enable plugin management in the Desktop PTC preset
The Desktop ptc preset now enables plugin_manager under the same condition
as the standard preset: only when the Host provides an editable profile. PTC
sessions then manage plugins through run_code bindings, as SDK PTC sessions
already do, and the preset guide no longer says plugin management is off.
2026-11-19 18:40:12 +08:00
sjw1231 00b1ac207d fix(sdk): disable the workflow tool in the PTC executor overlay
The PTC overlay now disables the workflow-ptc engine and tool-workflow rows,
as the Desktop ptc agent preset does: run_code already orchestrates tool calls
in code, so SDK and headless PTC runs no longer list workflow, its prompt
section, or its run_code binding. Native execution keeps the workflow tool.
2026-11-19 18:39:52 +08:00
creatixchu c7d2a56ec5 Record cancellation timing and verify cleanup across turns 2026-11-19 17:51:10 +08:00