@dsmm/dsmm 0.3.32 → 0.3.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +6 -4
  2. package/agent-presets/dsmm-oracle/agent.cordis.yml +2 -0
  3. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +2 -0
  4. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +2 -0
  5. package/agent-presets/dsmm-planner/agent.cordis.yml +1 -0
  6. package/agent-presets/dsmm-reviewer/agent.cordis.yml +2 -0
  7. package/cordis.patch.yml +3 -0
  8. package/docs/compatibility.md +1 -1
  9. package/docs/lsp.md +6 -6
  10. package/docs/maintenance.md +2 -0
  11. package/docs/roadmap.md +14 -11
  12. package/docs/settings-status.md +1 -1
  13. package/docs/testing.md +3 -4
  14. package/dsh-plugin.json +1 -1
  15. package/lib/client/NativeToolView-data.js +2 -2
  16. package/lib/client/NativeToolView.d.ts +5 -9
  17. package/lib/client/NativeToolView.js +23 -14
  18. package/lib/client/RoleToolView-locales.d.ts +1 -1
  19. package/lib/client/RoleToolView-locales.js +2 -2
  20. package/lib/client/RoleToolView.d.ts +3 -12
  21. package/lib/client/RoleToolView.js +18 -13
  22. package/lib/client/child-conversation.d.ts +24 -0
  23. package/lib/client/child-conversation.js +39 -0
  24. package/lib/client.js +89 -30
  25. package/lib/index.js +2 -3
  26. package/lib/lsp-entry.d.ts +5 -0
  27. package/lib/lsp-entry.js +6 -0
  28. package/lib/lsp.d.ts +6 -3
  29. package/lib/lsp.js +125 -57
  30. package/lib/native-admission.js +16 -8
  31. package/lib/prompts.js +1 -1
  32. package/lib/resident-root.d.ts +1 -1
  33. package/lib/resident-root.js +39 -6
  34. package/lib/role-subagents.js +22 -3
  35. package/package.json +5 -1
  36. package/prompts/source/agents/plan-critic.md +2 -0
  37. package/prompts/source/agents/planner.md +1 -0
  38. package/prompts/source/agents/reviewer.md +2 -0
  39. package/prompts/source/deepwork/gpt.md +3 -1
  40. package/skills/avoid-ai-slop/SKILL.md +2 -0
  41. package/skills/brainstorming/SKILL.md +2 -0
  42. package/skills/receiving-code-review/SKILL.md +2 -0
  43. package/skills/requesting-code-review/SKILL.md +1 -1
  44. package/skills/writing-plans/SKILL.md +1 -1
package/README.md CHANGED
@@ -4,14 +4,14 @@ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任
4
4
 
5
5
  比如,让 Planner 拆解任务、Coding 写代码、Reviewer 检查结果,再由 Orchestrator 协调。各个角色可以用不同的模型,不必共用一套配置。
6
6
 
7
- 当前发布版本为 `@dsmm/dsmm@0.3.28`,支持 DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`。安装前请确认客户端版本;范围外的 DSH 版本不受支持。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
7
+ 当前发布版本为 `@dsmm/dsmm@0.3.34`,支持 DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`。安装前请确认客户端版本;范围外的 DSH 版本不受支持。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
8
8
 
9
9
  官方 DSH rc.3 以 `engines.dsh` 优先于 peer ranges 判定兼容性;锁文件保留 `0.2.1-rc.2` 作为开发基线。
10
10
 
11
11
  历史会话仅保守支持已有的原生读取和已验证的受限恢复路径,不承诺补齐旧版本行为或自动迁移。继续执行须满足当前身份与权限检查,历史批准不会恢复为当前授权。
12
12
 
13
13
  - 源码仓库:[hugefiver/dsmm](https://github.com/hugefiver/dsmm)
14
- - 安装来源:[npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm);发布资产:[GitHub Releases (v0.3.28)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.28)
14
+ - 安装来源:[npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm);发布资产:[GitHub Releases (v0.3.34)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.34)
15
15
 
16
16
  ---
17
17
 
@@ -22,7 +22,7 @@ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任
22
22
  ### 初次安装
23
23
 
24
24
  1. 打开 DeepSeek Harness Desktop,进入 **插件(Plugins)** 页面。
25
- 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.28` 并确认。
25
+ 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.34` 并确认。
26
26
  3. 安装完成后,检查插件是否处于启用状态。如果界面提示需要重启,请按提示重启客户端。
27
27
 
28
28
  Desktop 的插件由客户端自己管理。全局 npm 安装和独立 npm 版 `dsh` 命令不能替代这一步。
@@ -34,13 +34,15 @@ DSH Desktop 当前不支持在界面中用同名版本原位覆盖更新插件
34
34
  1. 保存好正在进行的任务,**正常退出并完全关闭 DSH Desktop**。
35
35
  2. 使用 Desktop 安装自带的命令行工具更新配置。以下示例适用于 Windows 默认安装路径(`%LOCALAPPDATA%\Programs\DeepSeek Harness\`):
36
36
  ```powershell
37
- & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.28 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
37
+ & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.34 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
38
38
  ```
39
39
  *若安装在自定义路径,请替换为对应的实际位置;非 Windows 系统请参考 Desktop 自身菜单或官方指引,不要混用非 Desktop 的独立 CLI 命令。*
40
40
  3. 重新打开 DSH Desktop 即可加载新版本。
41
41
 
42
42
  不要在任务还在运行时升级,也不要为升级手动删除配置。插件更新不保证正在运行的任务能继续执行。
43
43
 
44
+ 如需外部 LSP,在 **插件 → DSMM** 中启用 `dsmm-lsp`。此项默认关闭;原先设置了 `lsp.enabled: true` 的用户升级后也需手动启用一次,已有连接参数会沿用。详见 [LSP 配置与工具](docs/lsp.md)。
45
+
44
46
  ---
45
47
 
46
48
  ## 启用 Deepwork
@@ -28,6 +28,8 @@
28
28
 
29
29
  Trace a local defect far enough to establish its impact and the smallest correction. Prefer a local fix when it restores the contract. Extend the investigation only as far as the changed behavior or a concrete risk warrants; assess independent defects in the diff on their own impact. Look for unnecessary complexity in the diff, such as an abstraction with no current consumer or a check that repeats an upstream guarantee. When complexity is the only issue, suggest a simpler alternative as non-blocking advice. Process rules about stopping your own unnecessary work do not require cleanup of the reviewed diff. If the change violates a requirement or creates a concrete safety risk, report that finding separately at its actual severity.
30
30
 
31
+ Do not report that internal, external, or database state may have changed without evidence of a reachable writer or transition. Flag database, table, or row locks held during long-running application work; keep the transaction to the database operation. Once the workflow has confirmed the state, do not ask for another read before writeback or an expensive integrity scan. Where a documented concurrent write matters, check the atomic write condition rather than proposing a separate read that can race.
32
+
31
33
  Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
32
34
 
33
35
  Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
@@ -28,6 +28,8 @@
28
28
 
29
29
  Trace a local defect far enough to establish its impact and the smallest correction. Prefer a local fix when it restores the contract. Extend the investigation only as far as the changed behavior or a concrete risk warrants; assess independent defects in the diff on their own impact. Look for unnecessary complexity in the diff, such as an abstraction with no current consumer or a check that repeats an upstream guarantee. When complexity is the only issue, suggest a simpler alternative as non-blocking advice. Process rules about stopping your own unnecessary work do not require cleanup of the reviewed diff. If the change violates a requirement or creates a concrete safety risk, report that finding separately at its actual severity.
30
30
 
31
+ Do not report that internal, external, or database state may have changed without evidence of a reachable writer or transition. Flag database, table, or row locks held during long-running application work; keep the transaction to the database operation. Once the workflow has confirmed the state, do not ask for another read before writeback or an expensive integrity scan. Where a documented concurrent write matters, check the atomic write condition rather than proposing a separate read that can race.
32
+
31
33
  Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
32
34
 
33
35
  Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
@@ -32,6 +32,8 @@
32
32
 
33
33
  For a missing required safeguard, cite the governing requirement and the gap. For an additional safeguard, treat its absence as a blocker only when a concrete failure path escapes existing controls. If the plan makes valid work wait for redundant validation or approval, recommend removing that gate while retaining the actual boundary check. Hypothetical future uses and optional hardening do not hold up implementation.
34
34
 
35
+ Do not invent changes to internal, external, or database state. Before demanding a concurrency safeguard, identify the writer, the interval in which it can act, and the requirement it would break. Reject plans that hold database, table, or row locks through long-running application work. Keep transactions short; do not demand a pre-write reread of confirmed state or a costly database integrity scan to cover an imagined change.
36
+
35
37
  Everything else is a non-blocking note and does not delay implementation. Give current findings and supporting evidence as clear prose rather than protocol fields or approval tokens. Every substantive blocker must be corrected, rebutted with concrete evidence, or escalated for clarification; it cannot be relabeled advisory and ignored. Critique informs judgment and does not authorize implementation or delivery.
36
38
 
37
39
  Do not require another review merely because the plan changed. Revisit only affected claims and dependent risks when a blocker is newly identified or resolved, or relevant new evidence or another substantive input could change the prior conclusion. Wording changes, repeated concerns, and unchanged uncertainty are not progress; stop and return an unresolved blocker rather than continuing a no-progress loop. Do not require hashes, a fixed receipt or verdict format, a fixed iteration count, or an open-ended loop. Do not object to preference, optional polish, or a merely better approach.
@@ -20,6 +20,7 @@
20
20
  - Reserve `docs/superpowers/specs/` and `docs/superpowers/plans/` for final product requirements to be delivered. Each artifact describes one final deliverable, not development decisions, rejected alternatives, assumption rationale/cost, or change history. Changed requirements use separate plans. Non-product tasks, regardless of complexity, use conversation coordination or a task-owned temporary plan outside those directories.
21
21
  - Plan around the ideal end state, dependencies, interfaces, material risks, wave goals, and useful outcome evidence. Record decisions an implementer cannot safely infer: necessary paths and names, interface signatures and types, requirement-fixed values, and decisive test assertions or observable results. Do not transcribe implementation bodies already determined by those decisions. Treat steps and ordering as informed guidance that execution may adjust as evidence changes, not as a hard script.
22
22
  - Choose the simplest design that delivers the approved behavior and preserves contracts outside the authorized change. Validate at trust boundaries and reuse an established guarantee for as long as it holds. Add an abstraction, retry, fallback, lock, or approval step only when a current requirement or concrete failure path needs it; keep independent work moving.
23
+ - Do not assume internal, external, or database state changed without evidence. Once the workflow confirms a state, use it for the write; do not plan another read or a database integrity scan just in case. Keep transactions short: never hold database, table, or row locks across long-running application work or external waits. If a known concurrent writer can invalidate a required invariant, protect that write with the narrowest atomic condition.
23
24
  - Plan verification around valid requirements, functionality, and external interfaces, including material input classes and failure conditions implied by the approved behavior and local contracts. Attach plausible regression coverage to the owning task; when an important behavior remains unjudged, state why and what evidence is missing without imposing a fixed review-focus heading, list, or quota. Do not expand scope from speculation or add descriptive-text locks. Requirement changes update tests; removed components lose their dedicated tests rather than gaining absence tests. Git commits bound compatibility: interim uncommitted behavior need not be preserved, but existing committed contracts and API/security/data/permission/irreversible-action authorization remain binding.
24
25
  - Return unresolved software design choices that affect implementation to the orchestrator for `brainstorming`; use `writing-plans` techniques proportionally rather than imposing ceremony.
25
26
  - Use direct tools first. A leaf read-only `code-search`, `doc-search`, or equivalent lookup is allowed only to resolve a named fact. If evidence leaves a genuinely difficult decision, report the blocker to the orchestrator for optional `hard-reasoning`; strict or high-risk conditions alone do not qualify.
@@ -28,6 +28,8 @@
28
28
 
29
29
  Trace a local defect far enough to establish its impact and the smallest correction. Prefer a local fix when it restores the contract. Extend the investigation only as far as the changed behavior or a concrete risk warrants; assess independent defects in the diff on their own impact. Look for unnecessary complexity in the diff, such as an abstraction with no current consumer or a check that repeats an upstream guarantee. When complexity is the only issue, suggest a simpler alternative as non-blocking advice. Process rules about stopping your own unnecessary work do not require cleanup of the reviewed diff. If the change violates a requirement or creates a concrete safety risk, report that finding separately at its actual severity.
30
30
 
31
+ Do not report that internal, external, or database state may have changed without evidence of a reachable writer or transition. Flag database, table, or row locks held during long-running application work; keep the transaction to the database operation. Once the workflow has confirmed the state, do not ask for another read before writeback or an expensive integrity scan. Where a documented concurrent write matters, check the atomic write condition rather than proposing a separate read that can race.
32
+
31
33
  Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
32
34
 
33
35
  Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
package/cordis.patch.yml CHANGED
@@ -3,6 +3,9 @@
3
3
  name: '@dsmm/dsmm'
4
4
  inject: [profileContext, agents]
5
5
  config: {}
6
+ - id: dsmm-lsp
7
+ name: '@dsmm/dsmm/lsp'
8
+ disabled: true
6
9
  - id: fs-observation-policy
7
10
  name: '@deepseek-ai/dsh-fs-observation-policy'
8
11
  disabled: false
@@ -10,7 +10,7 @@ Official AgentRegistry, SubagentRuntime and JSONL namespace plugins own executio
10
10
 
11
11
  Native Web surfaces are Plugins bundle configuration, Settings Profiles, the compact Conversation menu and delegation call views. CLI/headless use native deployment and tools; headless doesn't select Agent presets. TUI and Desktop retain their own carriers and exposed UI capabilities; Web controls aren't necessarily exposed in TUI.
12
12
 
13
- `preset-skills` is internal Agent-scoped installation, not a public Loader plugin. DSMM-managed external LSP defaults to disabled. With the Deepwork module and `lsp.enabled` enabled at startup, it uses the trusted Host install anchor to mount the native MCP client; saving a changed configuration does not remount the running bridge. Native DSH LSP and independently configured MCP remain separate. See [LSP boundary](lsp.md).
13
+ `preset-skills` is internal Agent-scoped installation, not a public Loader plugin. The optional `dsmm-lsp` Plugins entry defaults to disabled. On upgrade, enable it once to reuse a previously enabled bridge's connection settings. Only legacy compositions without the entry use `lsp.enabled` at startup. Native DSH LSP and independently configured MCP remain separate. See [LSP boundary](lsp.md).
14
14
 
15
15
  ### Conversation process summaries
16
16
 
package/docs/lsp.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # DSMM LSP boundary
2
2
 
3
- DSMM-managed external LSP is opt-in. When the Deepwork module is enabled in startup configuration and `lsp.enabled: true`, DSMM mounts the Host's native MCP client through its trusted installation anchor. The default is disabled. Saving desired settings does not remount a running integration or change existing Agent admission; restart the Host to apply startup LSP configuration. Enabling Deepwork alone does not enable LSP. DSMM's settings UI hides LSP controls.
3
+ In **Plugins → DSMM**, enable the `dsmm-lsp` entry (`@dsmm/dsmm/lsp`) to start the external LSP bridge. It is off by default. Follow the Host's toggle result: an applied change takes effect in the running Host; a restart-required change takes effect after restart. Turning the entry off withdraws its tools and stays off across restart. The startup Deepwork module and each calling Agent's admission still apply.
4
4
 
5
- The default `cordis.patch.yml` doesn't add a separate MCP client row. DSMM leaves DSH's own LSP services and independently configured MCP servers under their native owners. DSMM doesn't download servers or native binaries.
5
+ The bundle's native entry is the sole switch. On upgrading from a composition with `lsp.enabled: true`, enable `dsmm-lsp` once; the existing connection settings are reused. In an older composition with no LSP entry, Core still mounts the bridge when Deepwork and `lsp.enabled` are both enabled at startup. Neither path edits Host configuration, installs a server, or takes over DSH's own LSP or an independent MCP.
6
6
 
7
7
  The integration uses the `ocmm-lsp` executable published by the `ocmm` npm package. DSMM does not contain the LSP source, Rust/native build, platform-package matrix, or LSP release workflow, and does not declare `ocmm` as a package dependency. The operator must separately provide the published `ocmm` package and its matching optional `ocmm-lsp-*` platform package in the Host execution environment; installs that omit optional dependencies cannot provide the native binary. No source checkout or parent-repository `dist/` path is a supported fallback.
8
8
 
9
9
  ## Native MCP configuration
10
10
 
11
- The [manual patch](../patches/ocmm-lsp-mcp.example.cordis.patch.yml) is available for independently managed native MCP composition. Use either DSMM startup mounting or an independent row for a given server namespace. Independent composition remains the operator's responsibility, including npm package availability, executable resolution, namespace uniqueness and native lifecycle ownership.
11
+ The [manual patch](../patches/ocmm-lsp-mcp.example.cordis.patch.yml) is available for independently managed native MCP composition. Use a distinct `serverName` for each active client. Independent composition remains the operator's responsibility, including npm package availability, executable resolution, namespace uniqueness and native lifecycle ownership.
12
12
 
13
- Both paths use these defaults:
13
+ For the DSMM bridge, put connection parameters in `lsp` in the [global deployment configuration or native Core override](settings-status.md#deployment-layers-and-native-editors). The bridge reads the Core startup capture; restart after changing connection settings. `cwd` and `env` select the child process's working directory and environment. The defaults are:
14
14
 
15
15
  - `serverName: dsmm_lsp`
16
16
  - `command: ocmm-lsp`
@@ -23,7 +23,7 @@ Both paths use these defaults:
23
23
 
24
24
  ## Tool interface
25
25
 
26
- With `serverName: dsmm_lsp`, a successful startup mount exposes the tools supplied by the external server. The `ocmm-lsp` interface uses these names:
26
+ With `serverName: dsmm_lsp`, an active bridge exposes the tools supplied by the external server. The `ocmm-lsp` interface uses these names:
27
27
 
28
28
  - `mcp__dsmm_lsp__status`
29
29
  - `mcp__dsmm_lsp__diagnostics`
@@ -37,6 +37,6 @@ With `serverName: dsmm_lsp`, a successful startup mount exposes the tools suppli
37
37
 
38
38
  `format` applies the language server's document edits to the source file atomically. The debug adapter protocol (DAP) remains a separate debugging surface and is not an MCP tool.
39
39
 
40
- DSMM's read-only role restrictions deny rename and format. The `lspRuntime` status interface reports `disabled`, `ready` or `unavailable`, bounded diagnostic codes and tool names, without executable paths, arguments or environment values. Missing Host anchors, native MCP packages or registered tools prevent a ready state; `failOnStartupError: true` makes startup failure fatal. Tool discovery alone doesn't prove language-server availability or a successful symbol query.
40
+ DSMM's read-only role restrictions deny rename and format. The `lspRuntime` status interface reports `disabled`, `ready` or `unavailable`, bounded diagnostic codes and tool names, without executable paths, arguments or environment values. Only this bridge's live registrations count toward `ready`. Disabling it withdraws its tools from both the Host and resident Agents' isolated preset registries. Independent tools, even with a matching name prefix, remain under their original owner. Missing Host anchors, native MCP packages or registered tools prevent a ready state. With `failOnStartupError: true`, an unsuccessful mount fails the owning entry. Tool discovery alone doesn't prove language-server availability or a successful symbol query.
41
41
 
42
42
  Supported Host versions are listed in [compatibility](compatibility.md). DSH's own definition/references/implementation/hover surface remains separate from the external diagnostics, rename and format interface. Operators must provide and verify the executable and language server, such as `gopls` for Go; DSMM doesn't install or repair that environment.
@@ -133,6 +133,8 @@ calculations, quotations and translation meaning, without mandatory ledgers or
133
133
  large-workflow requirements for simple questions. These local adaptations preserve
134
134
  DSH ownership of tasks, lifecycle, permissions and persistence.
135
135
 
136
+ Planner, plan-critic and reviewer guidance treats a confirmed state as usable until there is evidence of a change. The design and review skills keep database transactions short: no locks across long-running application work, precautionary rereads before writeback or broad integrity scans. GPT-family guidance protects the normal path from speculative defenses in both ordinary Deepwork and admitted role prompts.
137
+
136
138
  Test guidance chooses checks by observable requirements, credible regressions,
137
139
  and existing owner coverage, without test-only production interfaces. Report
138
140
  fidelity compares extracted or converted numbers with originals, retains
package/docs/roadmap.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  ## Version policy
4
4
 
5
- **DSMM supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`.** Official DSH rc.3 gives `engines.dsh` precedence over peer ranges; rc.2 remains the pinned development baseline. The dual branch admits the 0.2.2 RC series starting at `0.2.2-rc.1` (the implemented adaptation target, verified against an installed exact-tag SDK anchor) while keeping 0.2.1 behavior identical; `0.2.2-alpha.*` is excluded. Each DSMM version declares its supported Host range independently of its development dependencies. Older SDKs and old configuration schemas aren't runtime compatibility targets. Historical-session support is limited to the existing native reader and validated continuation paths. Broader historical-version behavior repair and migration are outside the current scope. A dependency upgrade or support outside the declared range requires deliberate reassessment, not an automatic runtime switch.
5
+ **Current Host acceptance target: DSH `0.2.2-rc.5`.** When DSMM changes its declared adaptation target, update this line and run compatibility regression once. All other Host acceptance uses only the current target. On RC5, DSMM `0.3.34` Web cards opened the corresponding role and native child conversations. The native Plugins manager enabled and disabled the LSP entry across Host restarts, exposing nine tools when enabled and none when disabled.
6
+
7
+ **DSMM supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`.** Official DSH rc.3 gives `engines.dsh` precedence over peer ranges. The SDK remains pinned to `0.2.1-rc.2` for development. The 0.2.2 support range starts at `0.2.2-rc.1` and excludes `0.2.2-alpha.*`. Each DSMM version declares its supported Host range independently of its development dependencies. Older SDKs and old configuration schemas aren't runtime compatibility targets. Historical-session support is limited to the existing native reader and validated continuation paths. Broader historical-version behavior repair and migration are outside the current scope. A dependency upgrade or support outside the declared range requires deliberate reassessment, not an automatic runtime switch.
6
8
 
7
9
  Published `0.3.0` retains its original rc.1 package, tag, assets and version-bound release identity.
8
10
 
@@ -27,7 +29,6 @@ On DSH `0.2.2-rc.1`, native multi-file patches are available through explicit `t
27
29
  | Capability | Current behavior | Requirement for broader support |
28
30
  | --- | --- | --- |
29
31
  | Cross-route model fallback on 0.2.2 | 0.2.2 fixes the model selection per step; DSMM keeps same-route bounded retries and degrades `rate-limit-fallback` switching to a same-route retry with a one-time diagnostic. 0.2.1 switching is unchanged. | A public re-selection boundary within the failing step (or per-attempt selection); see [compatibility](compatibility.md#dsh-022-host-differences). |
30
- | Profile selection before execution | Existing blank roots can select saved profiles or deployment defaults. Without a session, explicit workspace/Profile selection obtains a native blank, blocks sending until selection is confirmed, then opens it. | Validate native new-session navigation, unsent text/references/attachments and first-send behavior in the target Host. No-session selection is implemented; browser acceptance is separate. |
31
32
  | Session overlay Apply | Completed or stopped roots can switch using current resident-tree activity, native maintenance and admission CAS, including on rc.3 without provider enumeration. Observed active work, queued input and pending approval/delegation prevent switching. | Switching during active work remains unsupported. Unknown external-provider activity is not a global switching gate. See [approval boundaries](deferred-native-approval-risk.md). |
32
33
  | Running-call background handoff | Deferred. Select waiting or native parent delivery before starting; existing background dispatch stays unchanged. | A supported same-activation native delivery handoff; see the deferred foreground delegation requirements below. |
33
34
  | Granular sandbox access switches | Deferred for later investigation, including system-certificate access for Windows Schannel. No new switch or backend is supplied for this capability. | A supported per-process enforcement mechanism, identified necessary resources, and isolated on/off verification; see [granular sandbox extensions](#deferred-granular-sandbox-access-switches). |
@@ -36,17 +37,19 @@ On DSH `0.2.2-rc.1`, native multi-file patches are available through explicit `t
36
37
  | Catalog-backed raw combinations | Rejected where the complete composition can't be reliably reproduced, regardless of native or DSMM parameter source. Standard calls aren't affected. | A public seam that can reproduce the full catalog composition and preserve native capability/effort semantics. |
37
38
  | Repeated command approval | Eligible DSMM command-rule approvals are remembered for the exact live Agent. Independent native/downstream asks, non-reusable rules and sandbox widening can still require approval. | Diagnose the exact command, working directory, contributing rule and approval reason; do not expand Allow rules merely to suppress a prompt. |
38
39
  | PowerShell Fake-IP access | Verified HTTPS through the current Mihomo Fake-IP route with Node/OpenSSL in native and DSMM `workspace-write`; Windows curl/Schannel fails in both sandbox paths. | Upstream Windows sandbox/Schannel compatibility; configured proxy-environment propagation remains unverified. See [network limitations](runtime-recovery.md#powershell-in-a-fake-ip-environment). |
39
- | External LSP | A startup mounting path exists when the Deepwork module and `lsp.enabled` are enabled, with a trusted Host install anchor, native MCP client and discoverable tools. LSP defaults to disabled; saving configuration doesn't remount the running integration. | Verify the bridge in the target Host with separately supplied executables and language servers. The integration test skips without its Host anchor; tool discovery alone doesn't establish working language-server operations. Native DSH LSP and independently configured MCP remain separate, and readonly roles don't gain rename/format authority. |
40
+ | External LSP | The [native `dsmm-lsp` entry](lsp.md) is off by default. DSH Plugins enables or disables its MCP client; the Host reports whether a restart is needed. Existing compositions without the entry retain the startup `lsp.enabled` setting. | Supply `ocmm-lsp` and a language server for the target platform. Module lifecycle and tool execution are covered separately from language-specific operations. Independent MCP clients retain their tools, and readonly roles cannot rename or format. |
40
41
 
41
42
  Search/Fetch retain the explicitly configured native provider. DSMM doesn't automatically enable a direct API, change credentials or forward the recent human question. HTTP Fake-IP behavior and network limits are maintained in [Fake-IP fetch](web-fetch-fakeip.md).
42
43
 
43
- ## Current: live delegation route observation
44
+ ## Delivered: live delegation route observation
44
45
 
45
46
  A read-only native Gateway stream connects admitted role/level and initial versus observed provider/model/effort to the exact parent session and tool call. Actual route evidence comes from the current child's own request header; missing or invalidated active evidence is unknown, and missing effort is not filled from the initial route. Settled observations remain frozen. Descendant-session observation uses verified live lineage without widening root/direct-child mutation controls.
46
47
 
48
+ Role, category and native subagent cards offer **Open child conversation** when the local child can be identified. The button opens the child under the card's parent session; unresolved or external executions have no conversation action.
49
+
47
50
  Repeated provider call IDs continue to execute normally. When the client cannot disambiguate a reused call ID, live observation for that key is removed; each final tool result retains its own child-bound metadata. Disconnects and observer disposal never transfer execution, cancel the child or create another completion owner.
48
51
 
49
- CLI/Gateway coverage includes observation before foreground completion, independent-peer refusal, readonly scope, observer disposal and repeated call IDs. On the tree-capable Host, an isolated browser also exercises a real native activation through Gateway, the native Connection/generated remote, the production observation controller and ToolCallTree DOM. It covers live own-header routes, completion and observer disposal without cancellation. Visual card states and responsive layout are covered with the native presenter retained. This browser path uses an owned RPC carrier; a separate WebSocket-transport acceptance remains open.
52
+ CLI/Gateway coverage includes observation before foreground completion, independent-peer refusal, readonly scope, observer disposal and repeated call IDs. On the tree-capable Host, an isolated browser also exercises a real native activation through Gateway, the native Connection/generated remote, the production observation controller and ToolCallTree DOM. It covers live own-header routes, completion and observer disposal without cancellation. Visual card states and responsive layout are covered with the native presenter retained. The [Gateway tests](../test/role-call-observation.test.ts) exercise the live stream, and the [browser test](../test/client-role-tool-view-native.test.mjs) verifies running and settled cards through a test RPC bridge. That coverage does not exercise the Host's WebSocket transport.
50
53
 
51
54
  ## Deferred: foreground delegation handoff
52
55
 
@@ -82,19 +85,19 @@ Historical-session loading uses the existing native DSH reader, not a pending DS
82
85
  - Historical list entries, titles, messages and tool results must remain readable independently of continuation. Native follow/promotion and Agent resume are separate execution paths: retired presets or unsafe identity may prevent continuation without constituting a history-decoding failure. Continued execution uses current restrictions and fresh authorization, never historical approvals as current authority.
83
86
  - Preserve original records. Any necessary migration must protect user data with a recoverable original and concurrent-write safeguards. Corrupt or genuinely unreadable data must produce a specific diagnostic rather than silently removing the session. Compatibility checks should exercise native list and read-only history independently from continuation.
84
87
 
85
- ## Current: idle-root, blank-session and no-session Profile selection
88
+ ## Delivered: Profile selection before the first request and on idle roots
86
89
 
87
- Existing blank root sessions support configuration selection and installation before the first request. The conversation header menu and Settings session scope use this path. `test/client-profile-editor.test.ts` covers selection on the new-session page with a retained native blank, and `test/session-profile-runtime.test.ts` covers first-request routing and execution-state guards. This flow is implemented, not a pending new-session feature as a whole.
90
+ New sessions automatically use the saved future-default Profile, or the deployment baseline if no Profile is selected. Before the first request, the user can override that choice for just this session in the conversation header or Settings. The [header test](../test/client-profile-editor.test.ts) covers selection on a retained blank; the [runtime test](../test/session-profile-runtime.test.ts) checks that the first prompt uses the selected settings, delegated requests use its role route, and the native model and future default remain unchanged.
88
91
 
89
92
  - The header menu and Settings session scope accept an explicit workspace and Profile choice when no session exists. Browsing or refreshing does not create a session, and no workspace is inferred from list order or process cwd.
90
93
  - The current DSH `uiWorkspace.connectWorkspace()` service obtains a native blank without opening it. DSMM retains that exact session, occupies an empty composer block, performs the existing describe/select transaction and opens the session only after its selection and admission match. Profile-first interaction waits for an explicit workspace choice. No native model or future-default setting is changed.
91
94
  - Late results cannot take over newer navigation. Unknown outcomes are reread without automatic creation or mutation replay; if the Host never returns a session ID, native workspace navigation is needed to inspect the result. DSMM releases only its own retained reference and composer block and does not reconstruct native input or attachments.
92
95
  - Started and restored roots can explicitly switch once their native subtree is quiescent. The next request and new delegations use the committed configuration without changing the native model or future default. Successful publication clears only the exact subtree's command-rule memory; active or unprovable work remains refused. Client running-state transitions refresh server capabilities without granting permission locally.
93
- - Verify the complete native new-session flow, including unsent text and attachments, selection feedback and first send. Controller/composer blocking during selection does not by itself establish draft preservation across session creation. Do not show a “new session required” instruction where the required action is unavailable.
96
+ - Browser coverage does not yet exercise carrying unsent text, references and attachments through native new-session navigation and sending them with the selected Profile in one flow.
94
97
 
95
98
  ## UI acceptance: simpler DSMM settings
96
99
 
97
- The Profile redesign, deployment navigation and initial expansion behavior already exist. Isolated native-browser coverage exercises deployment saves, Profile editor/dialog states, validation, conflict handling, keyboard access, themes and responsive layouts. Explicit route provider/model blanks now block both main-form and dialog saves while preserving numeric drafts and inheritance behavior. The [Profile browser test](../test/client-named-profiles-browser.test.ts) covers that production component; the full native conversation-header/new-session draft, attachment and first-send flow remains a separate acceptance item. Further UI work should address concrete findings in uncovered surfaces, not rebuild the existing page.
100
+ The Profile redesign, deployment navigation and initial expansion behavior already exist. Isolated native-browser coverage exercises deployment saves, Profile editor/dialog states, validation, conflict handling, keyboard access, themes and responsive layouts. Explicit route provider/model blanks now block both main-form and dialog saves while preserving numeric drafts and inheritance behavior. The [Profile browser test](../test/client-named-profiles-browser.test.ts) covers that production component. Further UI work should address concrete findings in uncovered surfaces, not rebuild the existing page.
98
101
 
99
102
  - Expand drawers containing only one section by default so their controls are immediately visible. Keep multi-section drawers easy to scan and navigate.
100
103
  - Remove all redundant copy: repeated headings, explanations already conveyed by a control, implementation details and “not X, but Y” comparisons.
@@ -169,8 +172,8 @@ The extension must preserve the existing interception scope. Native reads that d
169
172
 
170
173
  ## Delivery priorities and Host dependencies
171
174
 
172
- - **Current-Host acceptance:** verify the implemented no-session Profile selector, first-send routing and native draft/attachment continuity; review settings UI states and fix concrete findings. This is integration acceptance, not a page rebuild or a dependency-upgrade prerequisite.
173
- - **Environment acceptance:** exercise the existing LSP bridge with an explicit Host anchor, supplied executable and real language server. This verifies an implemented integration rather than adding a new mounting mechanism. Historical sample coverage is likewise separate from implementing a reader.
175
+ - **Current-Host acceptance:** check native composer draft and attachment continuity across Profile selection; review uncovered settings UI states and fix concrete findings.
176
+ - **Environment acceptance:** the native LSP switch, tool withdrawal from resident Agents and read-only restrictions are covered. Linux RC5 acceptance with `gopls` covered definition, references, cross-file rename and refusal of rename/format for a read-only reviewer. Go diagnostics remain unverified on Linux; the tested Windows `ocmm-lsp` passed a `file:////%3F/C:/…` URI to `gopls`. Historical sample coverage is likewise separate from implementing a reader.
174
177
  - **Permission follow-up:** observe native registration/approval source-binding APIs before revisiting mode-bounded automatic authorization; preserve existing direct-native compatibility without replacement tools. Long-lived command/subcommand/path grants, model-proposed scopes and their management UI are also deferred pending simpler supported DSH contracts. Existing command configuration and command-rule memory remain distinct capabilities. Precise path enforcement remains a separate Host dependency.
175
178
  - **Await supported Host contracts:** exact external write/tree grants shared by file tools and shell; safe configuration changes during active execution; same-activation delivery transfer; non-disruptive plugin replacement; and a complete catalog-backed raw prepared-call seam. Existing catalog helpers and hot reload do not supply those stronger guarantees. Broader continuation also needs supported historical persona/composition handling and route-aware image preflight.
176
179
 
@@ -16,7 +16,7 @@ Native structural controls and bounded schema-aware Advanced JSON cover applicab
16
16
 
17
17
  Configuration edits and Global rules are separate transactions. Writable Global configuration needs no main session; Global rules use a trusted main session as their management entry but persist globally for contexts using that policy. Each transaction retains its own draft, CAS, Save, Refresh and Discard. Global rules read on opening, session/owner/connection changes and explicit Refresh, without periodic polling or timed retries after failure. Save adopts its returned result. First load and explicit Refresh show loading; automatic reads over an existing observation keep its presentation stable. A same-session scope gap, owner rebind or connection change keeps the last successful rules observation readable as an explicitly unconfirmed projection while withdrawing mutation authority; a real session switch clears it. Other external policy changes are observed on the next read or save, with current authority and CAS checked by the Host on every mutation. Observed revocation, conflicts, disconnection and unsynchronized runtime still withdraw the affected mutation authority without discarding its draft.
18
18
 
19
- LSP isn't an applicable UI setting in this version. Its implementation, interfaces and original configuration remain, but DSMM settings hide LSP controls and automatic MCP mounting stays off even with stored `lsp.enabled:true`. Neither a save nor a restart enables it. DSH's own LSP and independently configured MCP are unaffected; the retained historical manual patch isn't a supported DSMM activation entry. See [LSP boundary](lsp.md).
19
+ Use the native **Plugins → DSMM → dsmm-lsp** entry switch to activate or stop the external LSP bridge. The DSMM configuration panel has no second switch. Existing `lsp` connection settings remain in the global deployment configuration or native Core override; changing them requires a Host restart. `lsp.enabled` applies only to legacy compositions without the native entry. See [LSP boundary](lsp.md).
20
20
 
21
21
  ### Save authority and concurrency
22
22
 
package/docs/testing.md CHANGED
@@ -62,10 +62,9 @@ serially.
62
62
  | `frontend` | Real browser deployment/profile/editable-choice flows and native role/native delegation cards, including the actual Gateway-to-DOM observation path. Browser cases require both `DSMM_TEST_DSH_ENTRY` and `DSMM_TEST_PLAYWRIGHT_ENTRY`; `DSMM_TEST_BROWSER_EXECUTABLE` selects an existing browser. |
63
63
  | `delivery` | Actual package/frontend materialization and full native/ordinary module delivery. Native cases require an explicit DSH anchor. |
64
64
 
65
- For the focused Host boundary suite, set `DSMM_TEST_DSH_ENTRY` to the installed
66
- Host's package entry and run `pnpm run test:integration -- host-boundaries` after
67
- building DSMM. Repeat with the other supported Host anchor for compatibility
68
- coverage. Fixed-selection-only child and fault-injection cases explicitly skip
65
+ For final acceptance, build the current DSMM changes and exercise the affected behavior on the exact DSH version named as the [current Host acceptance target](roadmap.md#version-policy). Confirm the version of the Host being exercised and report it with the result. If that Host is unavailable or a required case skips, report target acceptance as pending. Run compatibility regression against older Hosts once per change of the declared adaptation target. At all other times, run the affected checks only on the current target.
66
+
67
+ For the focused Host boundary suite, set `DSMM_TEST_DSH_ENTRY` to that installation's package entry and run `pnpm run test:integration -- host-boundaries`. Fixed-selection-only child and fault-injection cases explicitly skip
69
68
  when `agent.model.select` is unavailable. The resolver-free Fake-IP case skips on
70
69
  a resolver-capable Host; the existing address-policy/transport tests cover that
71
70
  implementation.
package/dsh-plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": "0.15",
4
4
  "id": "com.hugefiver.dsmm",
5
5
  "name": "DSMM",
6
- "version": "0.3.32",
6
+ "version": "0.3.34",
7
7
  "facets": {
8
8
  "host": {
9
9
  "entry": "lib/index.js",
@@ -4,10 +4,10 @@ export function nativeActivationIdentity(meta) {
4
4
  const value = meta;
5
5
  if (value.kind !== "activation")
6
6
  return undefined;
7
- if (typeof value.name === "string" && value.name.trim() !== "")
8
- return { kind: "name", value: value.name };
9
7
  if (typeof value.subagentId === "string" && value.subagentId.trim() !== "")
10
8
  return { kind: "id", value: value.subagentId };
9
+ if (typeof value.name === "string" && value.name.trim() !== "")
10
+ return { kind: "name", value: value.name };
11
11
  return undefined;
12
12
  }
13
13
  export function observedNativeTool(toolName, callId, identity, observation) {
@@ -1,19 +1,15 @@
1
1
  import type { Context } from "@deepseek-ai/cordis";
2
2
  import type { ToolCallViewProps } from "@deepseek-ai/dsh-client-ui-tool/client";
3
- import type { HostObservable, InjectFace, PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
3
+ import type { PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
4
4
  import type { ComponentType } from "react";
5
- import { ROLE_TOOL_NS } from "./RoleToolView-locales.js";
6
- import type { RoleCallObservationController, RoleCallObservationState } from "./role-call-observations.js";
5
+ import { type childConversationInjection, type ChildConversationCardProps } from "./child-conversation.js";
7
6
  type NativeProps = ToolCallViewProps & PropsLocale<"conversation">;
8
7
  type NativeView = ComponentType<NativeProps>;
9
- type Props = ToolCallViewProps & PropsLocale<typeof ROLE_TOOL_NS> & InjectFace<{
10
- hooks: {
11
- roleCalls: HostObservable<RoleCallObservationState>;
12
- };
8
+ type Props = ChildConversationCardProps & {
13
9
  nativeView: NativeView;
14
10
  nativeT: NativeProps["t"];
15
- }>;
11
+ };
16
12
  export declare function NativeToolView(props: Props): import("react").JSX.Element;
17
- export declare function registerNativeToolViews(ctx: Context, observations: RoleCallObservationController): () => void;
13
+ export declare function registerNativeToolViews(ctx: Context, inject: ReturnType<typeof childConversationInjection>): () => void;
18
14
  export {};
19
15
  //# sourceMappingURL=NativeToolView.d.ts.map
@@ -1,30 +1,39 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { DisclosureRow, IconAgentPresetOutlineRegular, StateDot } from "@deepseek-ai/dsh-client-ui-primitives";
2
+ import { Button, DisclosureRow, IconAgentPresetOutlineRegular, StateDot } from "@deepseek-ai/dsh-client-ui-primitives";
3
3
  import { nativeActivationIdentity, observedNativeTool } from "./NativeToolView-data.js";
4
+ import { childConversationAction, useCardObservation } from "./child-conversation.js";
4
5
  import { ROLE_TOOL_NS } from "./RoleToolView-locales.js";
5
6
  export function NativeToolView(props) {
6
- const { nativeView: NativeView, nativeT, t } = props;
7
- const observation = props.useRoleCalls(state => state.calls.get(props.callId));
8
- const status = props.useRoleCalls(state => state.status);
7
+ const { nativeView: NativeView, nativeT, t, useRoleCalls, useChildWorkspace, ...nativeProps } = props;
8
+ const observation = useCardObservation(props);
9
+ const status = useRoleCalls(state => state.status);
9
10
  const { expanded, toggle } = props.useDisclosure();
10
- const result = props.phase === "result" ? props.block : undefined;
11
- const identity = result === undefined || result.isError || result.error != null ? undefined : nativeActivationIdentity(result.meta);
12
- const actual = observedNativeTool(props.toolName, props.callId, identity, observation);
11
+ const result = props.phase === "result" && !props.block.isError && props.block.error == null ? props.block : undefined;
12
+ const receipt = result === undefined ? undefined : nativeActivationIdentity(result.meta);
13
+ const nativeCall = result !== undefined && observation?.kind === "native" && observation.toolName === props.toolName && observation.phase !== "reserved"
14
+ ? observation : undefined;
15
+ const actual = receipt === undefined ? nativeCall : observedNativeTool(props.toolName, props.callId, receipt, nativeCall);
16
+ const identity = receipt ?? (actual === undefined ? undefined : { kind: "id", value: actual.childId });
13
17
  const settled = actual?.phase === "settled";
14
18
  const live = status === "live";
15
19
  const state = settled ? actual.stopReason === undefined ? "accepted" : actual.stopReason === "aborted" ? "stopped" : actual.stopReason === "completed" ? "completed" : "error"
16
20
  : actual !== undefined && live ? "running" : "accepted";
17
21
  const route = settled || live ? actual?.actualRoute : undefined;
18
- return _jsxs(_Fragment, { children: [_jsx(NativeView, { ...props, t: nativeT }), identity !== undefined && _jsxs("div", { className: "dsmm-role-tool", "data-dsmm-native-tool": props.toolName, "data-state": state, "data-identity": "native", children: [_jsx(DisclosureRow, { title: `${t("nativeAgent")} · ${identity.value}`, titleClassName: "dsmm-role-summary", rowClassName: "dsmm-role-heading", icon: _jsx(IconAgentPresetOutlineRegular, { size: 14, className: "dsmm-role-icon" }), open: expanded, expandable: true, onToggle: toggle, expandOnRowClick: true, running: state === "running", children: _jsxs("div", { className: "dsmm-role-body", children: [_jsxs("p", { className: "dsmm-role-identity", children: [t(identity.kind === "name" ? "nativeName" : "nativeId"), ": ", identity.value] }), actual !== undefined && _jsxs("p", { className: "dsmm-role-identity", children: [t("nativeId"), ": ", actual.childId, actual.provider === undefined ? "" : ` · ${t("nativeProvider")}: ${actual.provider}`] }), _jsxs("p", { className: "dsmm-role-identity", children: [t("actualRoute"), ": ", route?.status === "known"
19
- ? `${route.route.provider}/${route.route.model} · ${route.route.reasoningEffort ?? t("effortUnreported")}` : t("routeUnknown")] }), _jsx("p", { className: "dsmm-role-identity", "data-observation-status": actual === undefined ? "unavailable" : status, children: actual === undefined ? t("nativeCorrelationUnavailable") : t({ unavailable: "observationUnavailable", connecting: "observationConnecting", live: "observationLive", stale: "observationStale" }[status]) })] }) }), _jsxs("div", { className: "dsmm-role-actions", children: [_jsx(StateDot, { state: state === "error" ? "error" : state === "stopped" ? "warning" : state === "completed" ? "done" : state === "running" ? "ongoing" : "idle" }), _jsx("p", { className: "dsmm-role-status", role: "status", children: t(state) })] })] })] });
22
+ const receiptChildId = receipt?.kind === "id" ? receipt.value : undefined;
23
+ const observedChildId = (receiptChildId === undefined ? actual : nativeCall)?.childId;
24
+ const openChild = childConversationAction(useChildWorkspace(workspace => workspace), props.sessionId, props.useProjection("subagentCatalog"), receiptChildId, observedChildId);
25
+ return _jsxs(_Fragment, { children: [_jsx(NativeView, { ...nativeProps, t: nativeT }), identity !== undefined && _jsxs("div", { className: "dsmm-role-tool", "data-dsmm-native-tool": props.toolName, "data-state": state, "data-identity": "native", children: [_jsx(DisclosureRow, { title: `${t("nativeAgent")} · ${identity.value}`, titleClassName: "dsmm-role-summary", rowClassName: "dsmm-role-heading", icon: _jsx(IconAgentPresetOutlineRegular, { size: 14, className: "dsmm-role-icon" }), open: expanded, expandable: true, onToggle: toggle, expandOnRowClick: true, running: state === "running", children: _jsxs("div", { className: "dsmm-role-body", children: [_jsxs("p", { className: "dsmm-role-identity", children: [t(identity.kind === "name" ? "nativeName" : "nativeId"), ": ", identity.value] }), actual !== undefined && _jsxs("p", { className: "dsmm-role-identity", children: [t("nativeId"), ": ", actual.childId, actual.provider === undefined ? "" : ` · ${t("nativeProvider")}: ${actual.provider}`] }), _jsxs("p", { className: "dsmm-role-identity", children: [t("actualRoute"), ": ", route?.status === "known"
26
+ ? `${route.route.provider}/${route.route.model} · ${route.route.reasoningEffort ?? t("effortUnreported")}` : t("routeUnknown")] }), _jsx("p", { className: "dsmm-role-identity", "data-observation-status": actual === undefined ? "unavailable" : status, children: actual === undefined ? t("nativeCorrelationUnavailable") : t({ unavailable: "observationUnavailable", connecting: "observationConnecting", live: "observationLive", stale: "observationStale" }[status]) })] }) }), _jsxs("div", { className: "dsmm-role-actions", children: [_jsx(StateDot, { state: state === "error" ? "error" : state === "stopped" ? "warning" : state === "completed" ? "done" : state === "running" ? "ongoing" : "idle" }), _jsx("p", { className: "dsmm-role-status", role: "status", children: t(state) }), openChild !== undefined && _jsx(Button, { variant: "ghost", size: "sm", onClick: openChild, children: t("openConversation") })] })] })] });
20
27
  }
21
- export function registerNativeToolViews(ctx, observations) {
28
+ export function registerNativeToolViews(ctx, inject) {
22
29
  const mounted = new Map();
23
30
  const reconcile = () => {
24
31
  const entries = ctx.slots.entries("tool.call.toolview");
25
- for (const key of ["subagent", "subagent_fork"]) {
26
- const candidates = entries.filter(entry => entry.component !== NativeToolView && entry.options.key === key);
27
- const source = candidates.sort((a, b) => (a.options.priority ?? 0) - (b.options.priority ?? 0))[0];
32
+ const nativeEntry = (key) => entries.filter(entry => entry.component !== NativeToolView && entry.options.key === key)
33
+ .sort((a, b) => (a.options.priority ?? 0) - (b.options.priority ?? 0))[0];
34
+ const subagent = nativeEntry("subagent");
35
+ // The stock subagent DetailsRow also renders the generic receipt and inspect action for fork.
36
+ for (const [key, source] of [["subagent", subagent], ["subagent_fork", nativeEntry("subagent_fork") ?? subagent]]) {
28
37
  const previous = mounted.get(key);
29
38
  if (previous?.source === source)
30
39
  continue;
@@ -34,7 +43,7 @@ export function registerNativeToolViews(ctx, observations) {
34
43
  continue;
35
44
  const nativeView = source.component;
36
45
  const dispose = ctx.slots.register({ name: "tool.call.toolview", key, priority: (source.options.priority ?? 0) - 1, locale: ROLE_TOOL_NS,
37
- inject: sessionId => ({ hooks: { roleCalls: observations.source(sessionId) }, nativeView, nativeT: ctx.locale.bind("conversation") }) }, NativeToolView);
46
+ inject: sessionId => ({ ...inject(sessionId), nativeView, nativeT: ctx.locale.bind("conversation") }) }, NativeToolView);
38
47
  mounted.set(key, { source, dispose });
39
48
  }
40
49
  };
@@ -33,7 +33,7 @@ export declare const roleToolEn: {
33
33
  readonly output: "Complete result content";
34
34
  readonly failure: "Error details";
35
35
  readonly metadata: "Invocation metadata";
36
- readonly inspect: "View call details";
36
+ readonly openConversation: "Open child conversation";
37
37
  readonly copy: "Copy";
38
38
  readonly copied: "Copied";
39
39
  readonly emptyArgs: "Arguments not available yet";
@@ -11,7 +11,7 @@ export const roleToolEn = {
11
11
  nativeCorrelationUnavailable: "Live child correlation unavailable; native receipt only",
12
12
  observation: "Route observation", observationUnavailable: "Unavailable", observationConnecting: "Connecting", observationLive: "Live", observationStale: "Connection lost",
13
13
  args: "Original arguments", preparingArgs: "Arguments received so far", output: "Complete result content", failure: "Error details", metadata: "Invocation metadata",
14
- inspect: "View call details", copy: "Copy", copied: "Copied", emptyArgs: "Arguments not available yet",
14
+ openConversation: "Open child conversation", copy: "Copy", copied: "Copied", emptyArgs: "Arguments not available yet",
15
15
  unavailable: "Actual identity unavailable; requested identity only", level: "Level", route: "Reported route", routeSource: "Route source",
16
16
  initialRoute: "Initial", actualRoute: "Actual", routeUnknown: "unknown", effortUnreported: "effort not reported",
17
17
  table: "Table", json: "JSON", viewMode: "View mode", property: "Property", value: "Value",
@@ -28,7 +28,7 @@ export const roleToolZh = {
28
28
  nativeCorrelationUnavailable: "实时子代理关联不可用;仅显示原生回执",
29
29
  observation: "路由观测", observationUnavailable: "不可用", observationConnecting: "连接中", observationLive: "实时", observationStale: "连接已断开",
30
30
  args: "原始参数", preparingArgs: "目前已收到的参数", output: "完整结果内容", failure: "错误详情", metadata: "调用元数据",
31
- inspect: "查看调用详情", copy: "复制", copied: "已复制", emptyArgs: "参数尚不可用",
31
+ openConversation: "打开子对话", copy: "复制", copied: "已复制", emptyArgs: "参数尚不可用",
32
32
  unavailable: "实际身份不可用,仅显示请求身份", level: "等级", route: "报告的路由", routeSource: "路由来源",
33
33
  initialRoute: "初始", actualRoute: "实际", routeUnknown: "未知", effortUnreported: "effort 未报告",
34
34
  table: "表格", json: "JSON", viewMode: "视图模式", property: "属性", value: "值",
@@ -1,16 +1,7 @@
1
1
  import type { Context } from "@deepseek-ai/cordis";
2
- import type { ToolCallViewProps } from "@deepseek-ai/dsh-client-ui-tool/client";
3
- import type { HostObservable, InjectFace, PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
4
- import { ROLE_TOOL_NS } from "./RoleToolView-locales.js";
5
- import type { RoleCallObservationController, RoleCallObservationState } from "./role-call-observations.js";
6
- type ObservationInject = {
7
- hooks: {
8
- roleCalls: HostObservable<RoleCallObservationState>;
9
- };
10
- };
11
- type Props = ToolCallViewProps & PropsLocale<typeof ROLE_TOOL_NS> & InjectFace<ObservationInject>;
12
- export declare function RoleToolView(props: Props): import("react").JSX.Element;
2
+ import { type ChildConversationCardProps } from "./child-conversation.js";
3
+ import type { RoleCallObservationController } from "./role-call-observations.js";
4
+ export declare function RoleToolView(props: ChildConversationCardProps): import("react").JSX.Element;
13
5
  /** Called once by the parent client apply(ctx), alongside the other slot registrations. */
14
6
  export declare function registerRoleToolViews(ctx: Context, observations: RoleCallObservationController): void;
15
- export {};
16
7
  //# sourceMappingURL=RoleToolView.d.ts.map