@dsmm/dsmm 0.3.14 → 0.3.15

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.
package/README.md CHANGED
@@ -1,66 +1,107 @@
1
- # DSMM for DeepSeek Harness
1
+ # DSMM
2
2
 
3
- DSMM (`@dsmm/dsmm`) adds native configuration, role delegation and child controls to DeepSeek Harness. **DSMM** is the Plugins page and package title; **Deepwork** is its optional workflow module. It isn't an OpenCode compatibility layer.
3
+ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任务,给各个角色配置模型和备用模型,把常用设置保存成方案,也提供 Git 写操作等命令防护规则。
4
4
 
5
- **DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`** and Node.js 22 or later. The maintained source repository is [hugefiver/dsmm](https://github.com/hugefiver/dsmm).
5
+ 比如,让 Planner 拆解任务、Coding 写代码、Reviewer 检查结果,再由 Orchestrator 协调。各个角色可以用不同的模型,不必共用一套配置。
6
6
 
7
- ## Configuration and profiles
7
+ 当前发布版本为 `@dsmm/dsmm@0.3.15`,支持 DSH `0.2.1-rc.2`。安装前请确认客户端版本;其他 DSH 版本暂不在支持范围内。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
8
8
 
9
- **Plugins → DSMM bundle config** is the deployment editor. Choose sparse Global settings or the current native profile override, then open a module drawer. Each scope has independent Save, Refresh and Discard actions. Profile writes require the exact authorized native form and revision; unavailable forms never fall back to Global writes. Core configuration and permissions remain available without a session and with Deepwork off.
9
+ - 源码仓库:[hugefiver/dsmm](https://github.com/hugefiver/dsmm)
10
+ - 发布地址:[GitHub Releases (v0.3.15)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.15) 与 [npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm)
10
11
 
11
- Resolution is **defaults → sparse Global deployment → explicit native entry/profile → admitted named overlay**. Objects merge, arrays replace, and explicit false, empty and same-default values remain pins. Unset removes only the current layer's key. Global storage is `<resolvedDshHome>/plugins/dsmm`; home resolution uses explicit `profileContext.home`, then `DSH_HOME`, then the native `~/.dsh` default.
12
+ ---
12
13
 
13
- **Settings → Deepwork Profiles** separates editor draft, saved revision, future-default pin and current-session admission. Save doesn't activate a revision. Future-default selection affects new sessions, not existing Agents or their children. Live overlay **Apply is unavailable** in rc.2: save and select a default for a new session instead. There is no queued Apply or implicit restart.
14
+ ## 安装与升级
14
15
 
15
- The Conversation menu's **Use profile model** is an independent native selection action using the admitted immutable configuration, not a later draft. The **Deepwork** toggle records explicit intent, including a same-default choice; DW presets default on, but explicit off wins without removing persona or permission boundaries. Model selection, mode switching and overlay Apply each have their own capability and refusal reason. Disabling Apply doesn't disable the other two. Sessionless controls don't create a session. See [Profiles](docs/profiles.md) and [settings/status](docs/settings-status.md).
16
+ ### 初次安装
16
17
 
17
- Desired configuration, mounted startup capability and actual Agent admission are separate states. Saves don't remount services or update running task policy. Global and named stores use their own CAS/atomic-write boundaries; native profile forms use native revision CAS, not a cross-layer transaction. A committed save with failed observation remains saved with refresh required. An unconfirmed native mutation requires reread, not blind retry. Writes require the actual operator and valid connection/owner lifetime through precommit.
18
+ 1. 打开 DeepSeek Harness Desktop,进入 **插件(Plugins)** 页面。
19
+ 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.15` 并确认。
20
+ 3. 安装完成后,检查插件是否处于启用状态。如果界面提示需要重启,请按提示重启客户端。
18
21
 
19
- ## Roles and execution
22
+ Desktop 的插件由客户端自己管理。全局 npm 安装和独立 npm 版 `dsh` 命令不能替代这一步。
20
23
 
21
- The inventory contains 11 base roles, 11 categories and fourteen configurable lazy skills. Only the Orchestrator is a selectable standing root and the only registered native preset; every other role is an internal delegation target whose children share the parent's standing composition. Cross-cutting defaults off. Preset discovery, root eligibility and model availability are separate checks. A role name doesn't prove a different model or grant authority.
24
+ ### 已有版本升级(Windows)
22
25
 
23
- Official **AgentRegistry, SubagentRuntime and JSONL namespace plugins own execution and storage**. DSMM binds immutable per-Agent configuration and per-call role policy through native preset/provider composition and awaited creation. There is no custom execution owner, manual-runtime selector or persistence companion to install. `preset-skills` is an internal Agent-scoped handle, not a public Loader plugin.
26
+ DSH Desktop 当前不支持在界面中用同名版本原位覆盖更新插件。受支持的升级方式如下:
24
27
 
25
- Role calls wait for the official activation result by default. Only native `stopReason: completed` is normal completion; failure, interruption and partial output remain distinct. After publication, cancellation uses the activation receipt's `dispose()` and waits for cleanup. If background execution is enabled, choose `run_in_background:true` **before starting**; delivery is then owned by the native parent notification path. An accepted child/message receipt isn't a completed task. A running waiting call can't be transferred to background.
28
+ 1. 保存好正在进行的任务,**正常退出并完全关闭 DSH Desktop**。
29
+ 2. 使用 Desktop 安装自带的命令行工具更新配置。以下示例适用于 Windows 默认安装路径(`%LOCALAPPDATA%\Programs\DeepSeek Harness\`):
30
+ ```powershell
31
+ & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.15 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
32
+ ```
33
+ *若安装在自定义路径,请替换为对应的实际位置;非 Windows 系统请参考 Desktop 自身菜单或官方指引,不要混用非 Desktop 的独立 CLI 命令。*
34
+ 3. 重新打开 DSH Desktop 即可加载新版本。
26
35
 
27
- Supported live direct-child controls use native Queue, Steer and interrupt under exact-parent and operator authority. Descendant inspection is read-only. Availability follows actual native capabilities, not a visible button or catalog row. Unknown send outcomes must not trigger automatic resend. **Resuming a persisted DSMM session builds a fresh admission from the current deployment**: history stays readable user intent, while delegation authority and child residency are never reconstructed from logs, labels or current settings. See [Agent presets and child control](docs/agent-presets.md).
36
+ 不要在任务还在运行时升级,也不要为升级手动删除配置。插件更新不保证正在运行的任务能继续执行。
28
37
 
29
- Collapsed call rows show **Call Coding** / **调用 Coding** when the target is known; child labels use **Coding: task description**. Requested identity is distinct from validated actual execution identity. Partial arguments, failures, interruptions and current-format replay retain that distinction, including nested PTC calls. Native safety refusal views take precedence.
38
+ ---
30
39
 
31
- ## Models and resources
40
+ ## 启用 Deepwork
32
41
 
33
- Ordinary roots retain native provider/model/effort selection. Role calls default to `level:"normal"`; eligible targets may configure exact `low`, `high` and `max`. `subagents.toolTopology` chooses per-role or parameterized tools. Per-call `route` is absent unless deployment explicitly grants it; named profiles can't grant that permission. Child routes are initial defaults, not every-turn overrides of later native intent.
42
+ Deepwork 是 DSMM 提供的角色委派与模型路由工作流模块。
34
43
 
35
- Standard supported requests use native prepared calls. Raw/custom parameters and Pi-AI stop-only requests use the minimal public Pi-AI `openai-completions` payload seam for self-contained literal or explicit model-mapping configurations. Catalog-backed raw combinations that can't be reliably reproduced are rejected regardless of native or DSMM parameter source. Standard Coding remains available, and native effort encoding and advertised capabilities remain unchanged. See [model routing](docs/model-routing.md) and [bounded recovery](docs/runtime-recovery.md).
44
+ 插件安装后,Deepwork 模块总开关默认开启,但新创建的普通会话默认不开启 Deepwork 模式。
36
45
 
37
- Skills expose metadata first and read bodies on demand within the admitted Agent scope. Deepwork off hides DSMM skills, not Host/project resources or role restrictions. Non-DSMM ancestor resource winners remain authoritative. [Maintenance](docs/maintenance.md) covers source ownership, generation, packaged resources, licenses and attribution.
46
+ - **在当前会话中开启**:点击会话菜单中的「启用 Deepwork」(英文界面为 Enable Deepwork)。开启后当前会话即可使用角色调度;再次点击「关闭 Deepwork」即可停用。
47
+ - **让新会话默认开启**:在预设方案配置中,将「默认 Deepwork 模式」(`defaultActive`)设置为启用。
48
+ - **模块总开关限制**:如果在插件部署配置中关闭了 Deepwork 模块总开关,会话菜单中将无法开启该模式;若界面提示需要重启,需重启客户端生效。
38
49
 
39
- DSMM-managed external LSP remains disabled, including with `lsp.enabled:true`. It isn't automatically remounted by Save, restart or Deepwork activation. The retained external MCP configuration calls the `ocmm-lsp` executable from the published `ocmm` npm package; DSMM carries no LSP source, native build or LSP publication lane. DSH's own LSP and independently configured MCP are unaffected. See [LSP boundary](docs/lsp.md).
50
+ ---
40
51
 
41
- ## Use a local artifact
52
+ ## 配置与方案
42
53
 
43
- Use an explicitly authorized locally packed artifact for evaluation. For a disposable CLI evaluation:
54
+ ### 两种配置范围
44
55
 
45
- ```powershell
46
- $env:DSH_HOME = "<disposable-test-home>"
47
- dsh --profile <test-profile> --from-default-profile headless --dump-config
48
- dsh plugin --profile <test-profile> add <absolute-path-to-local-candidate.tgz>
49
- dsh --profile <test-profile> --dump-config
50
- ```
56
+ DSMM 包含两处相互独立的配置区域:
51
57
 
52
- Use an empty test home and a fresh profile. These examples aren't authorization to install software or change a real Desktop/TUI profile. Headless task execution requires a separately configured native provider and effective `defaultActive:true`; it doesn't select Agent presets. `/deepwork [off|message]` and inspection-only `/dsmm-status [json]` belong to the Host command adapter, not headless task text. `--dump-config` shows Loader composition, not full Global-aware admission.
58
+ - **插件部署配置(Plugins → DSMM bundle config)**:用于管理全局部署或当前原生 profile 的覆盖项,包括模块开关、全局执行策略与防护设置。
59
+ - **具名预设方案(Settings → Deepwork Profiles)**:用于保存不同的工作流配置(如日常编码、深度审查等),每个方案拥有独立的角色模型路由与参数。
53
60
 
54
- Real installation must preserve providers/accounts, credentials, unrelated Loader rows and history. No old-profile or cold-history migration is supplied. Desktop plugin installation follows publication and requires the exact rc.2 Host; it doesn't upgrade the Host. See [compatibility](docs/compatibility.md) and [release policy](docs/releasing.md).
61
+ ### 方案保存、设为默认与会话切换
55
62
 
56
- ## Safety and network limits
63
+ 在 **Settings → Deepwork Profiles** 中编辑方案时,请注意以下操作的区别:
57
64
 
58
- DSH owns approval, sandboxing, depth and cancellation. DSMM narrows authority through role, tool and exact-call checks; it doesn't create a second approval queue or reusable grants. Native once approval applies only to that call and scope. See [native permissions](docs/native-permissions.md) and [safety guards](docs/safety-guards.md).
65
+ - **保存方案(Save profile)**:仅将当前修改写入文件保存,不会自动改变正在运行的会话,也不会自动变成新建会话的默认方案。
66
+ - **设为未来默认(Set as future default)**:将当前选中的方案设为后续新建会话使用的默认配置。
67
+ - **在当前会话中应用方案(Apply profile to current session)**:在已有对话历史的原生会话中直接更换预设方案。
68
+ - 会话必须处于真正空闲状态:无正在生成的回复、无排队输入、无待处理审批且无运行中的子任务。界面单独显示 `idle` 状态并不代表没有后台活动,需等待所有操作完全结束。
69
+ - 切换成功后,已存在的旧子任务继续保留启动时的原配置与限制,后续新委派的子任务才会使用新方案。
70
+ - **使用方案模型(Use profile model)**:把当前会话的模型切换为方案中配置的主模型。保存或切换方案本身不会自动改模型;要一起换模型,需要明确点击这个操作。操作期间如果又手动选择了模型,以较新的选择为准。
59
71
 
60
- Search/Fetch remain explicitly selected native providers. The optional Fake-IP fetch adapter, its exact `/16` policy and network limits are documented in [Fake-IP fetch](docs/web-fetch-fakeip.md). The shell rejection source remains unknown; neither tool Allow nor disabling sandbox is a network fix.
72
+ ### 配置角色模型与参数
61
73
 
62
- Retired brand-specific routing fields reject rather than migrate. Unsupported configuration and history stay untouched.
74
+ 在方案编辑页点击「配置全部 Agent 模型」(Configure all Agent models),可以为各个角色配置:
63
75
 
64
- ## Development and release
76
+ - **主模型(Primary)**:该角色优先调用的服务商与模型。
77
+ - **推理强度与参数**:按模型支持的选项填写,例如 medium 或 high。不同模型接受的值可能不同,不能把同一组档位套在所有模型上。
78
+ - **备用路由(Fallback Routes)**:当主模型不可用时依次尝试的候选通道(最多支持 32 个备用路由)。
65
79
 
66
- The checked-in `src/`, `prompts/`, and `skills/` trees are the standalone maintenance sources. Build, test, role generation, frontend provenance, and package checks do not read a sibling repository. Development and final acceptance use the affected module and interface suites rather than a full test run; see [testing](docs/testing.md), [maintenance](docs/maintenance.md), and [release policy](docs/releasing.md).
80
+ ---
81
+
82
+ ## 权限和后台任务
83
+
84
+ - **Git 保护范围不是执行许可**:“所有写操作”和“仅高风险写操作”决定保护规则检查哪些 Git 操作;检查后是询问、禁止还是关闭保护,由对应设置决定。选择范围不代表自动执行或批准命令。
85
+ - **子任务不继承临时授权**:子任务被拒绝的操作不会自动继承父任务已获得的单次审批。
86
+ - **禁止审批时会直接拒绝**:如果原生会话的审批策略是 never,需要审批的操作会被拒绝,DSMM 不能替它放行。
87
+ - **授权功能仍有限制**:目前没有按指定外部目录单独授予写权限、为子 Agent 开放审批,或跨会话记住临时授权的功能。
88
+ - **任务等待与取消**:角色调用默认等待执行完成。若需后台异步执行,须在启动前完成配置,正在前台同步等待的任务无法中途切入后台;取消任务请使用原生的中断操作。
89
+
90
+ ---
91
+
92
+ ## 相关文档
93
+
94
+ 需要了解具体设置时,可以继续阅读:
95
+
96
+ - [预设方案](docs/profiles.md)
97
+ - [插件设置](docs/settings-status.md)
98
+ - [模型与备用路由](docs/model-routing.md)
99
+ - [权限与审批](docs/native-permissions.md)
100
+
101
+ 参与开发请看[测试说明](docs/testing.md)、[兼容性说明](docs/compatibility.md)和[维护指南](docs/maintenance.md)。
102
+
103
+ ---
104
+
105
+ ## 许可证与归属
106
+
107
+ 本项目遵循 [Anti American AI Public License (AAAPL)](LICENSE),版权所有 © 2026 Hugefiver。依赖库与第三方授权详情请见 [docs/maintenance.md](docs/maintenance.md)。
@@ -1,6 +1,6 @@
1
1
  # Deepwork Agent presets and child control
2
2
 
3
- DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`. Native package composition and callable admission are separate requirements.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. Native package composition and callable admission are separate requirements.
4
4
 
5
5
  ## Roles and composition
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DSMM compatibility and upgrade boundaries
2
2
 
3
- **DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`** and Node.js 22 or later. Older SDKs and automatically drifting versions aren't supported targets.
3
+ **DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`** and Node.js 22 or later. Older SDKs and automatically drifting versions aren't supported targets.
4
4
 
5
5
  ## Supported integration
6
6
 
@@ -50,7 +50,7 @@ Standard supported model calls use native prepared calls. Raw/custom and Pi-AI s
50
50
 
51
51
  ## Retired compatibility surfaces
52
52
 
53
- No old SDK branch, legacy-read host, cold-profile migration, session repair or custom-owner selector is a 0.3.14 activation path. Old libraries, captures and unmarked history aren't copied, rewritten, repaired or adopted by same-name fallback. Retired brand calibration/default-effort and MaxReasoningPresets fields reject with `deprecated-field`; edit configuration deliberately using generic routes and parameters.
53
+ No old SDK branch, legacy-read host, cold-profile migration, session repair or custom-owner selector is a 0.3.15 activation path. Old libraries, captures and unmarked history aren't copied, rewritten, repaired or adopted by same-name fallback. Retired brand calibration/default-effort and MaxReasoningPresets fields reject with `deprecated-field`; edit configuration deliberately using generic routes and parameters.
54
54
 
55
55
  Published **0.3.0 retains its rc.1 identity**, immutable tag, package, assets and version-bound receipt grammar. Historical release controls interpret those records under their original identity, not as a runtime compatibility branch.
56
56
 
@@ -1,6 +1,6 @@
1
1
  # 原生审批与运行中配置边界
2
2
 
3
- DSMM 0.3.14 精确面向 DSH `0.2.1-rc.2`。原生批准仅对同次调用及其批准范围有效,不扩展到其他输入或后续调用。配置来源变化不把 DSMM epoch 变成第二次审批,也不取消已经等待的原生审批。
3
+ DSMM 0.3.15 精确面向 DSH `0.2.1-rc.2`。原生批准仅对同次调用及其批准范围有效,不扩展到其他输入或后续调用。配置来源变化不把 DSMM epoch 变成第二次审批,也不取消已经等待的原生审批。
4
4
 
5
5
  ## 当前限制
6
6
 
package/docs/design.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DSMM native architecture
2
2
 
3
- DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`. It supplies Core configuration and native permission integration plus optional Deepwork roles, routing and skills.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. It supplies Core configuration and native permission integration plus optional Deepwork roles, routing and skills.
4
4
 
5
5
  ## Native integration boundary
6
6
 
package/docs/lsp.md CHANGED
@@ -39,6 +39,6 @@ An independently mounted native MCP client using `serverName: dsmm_lsp` uses the
39
39
 
40
40
  DSMM's read-only role restrictions don't grant rename or format permission. The retained `lspRuntime` status interface reports bounded state, diagnostic codes and tool names, not executable paths, arguments or environment values. Tool discovery alone doesn't prove language-server availability or a successful symbol query.
41
41
 
42
- DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`. Automatic external LSP mounting isn't delivered; the retained interface inventory isn't an activation path.
42
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. Automatic external LSP mounting isn't delivered; the retained interface inventory isn't an activation path.
43
43
 
44
44
  DSH's native definition/references/implementation/hover surface isn't a promise of diagnostics, rename or format. The retained external interface above doesn't expand that native scope. Independently managed MCP users must verify actual executable and language-server availability; DSMM doesn't certify or repair that environment.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Providers, accounts and credentials remain native DSH configuration, never named-profile contents.
4
4
 
5
- DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`. Standard calls use native prepared calls. The public Pi-AI completions seam supports self-contained literal and explicit model-mapping raw configurations; unsupported catalog-backed raw combinations are rejected without affecting standard calls.
5
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. Standard calls use native prepared calls. The public Pi-AI completions seam supports self-contained literal and explicit model-mapping raw configurations; unsupported catalog-backed raw combinations are rejected without affecting standard calls.
6
6
 
7
7
  ## Native roots and child defaults
8
8
 
@@ -1,6 +1,6 @@
1
1
  # Native permissions
2
2
 
3
- DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`. In the current runtime, DSH owns approval; DSMM composes policy into the native tool pipeline without a second approval queue or UI. DSMM command-rule approval memory is limited to the exact live Agent and is distinct from native once grants.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. In the current runtime, DSH owns approval; DSMM composes policy into the native tool pipeline without a second approval queue or UI. DSMM command-rule approval memory is limited to the exact live Agent and is distinct from native once grants.
4
4
 
5
5
  ## Permission architecture and extension target
6
6
 
package/docs/profiles.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Deepwork runtime profiles
2
2
 
3
- DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`. See [compatibility](compatibility.md) for installation boundaries.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. See [compatibility](compatibility.md) for installation boundaries.
4
4
 
5
5
  A named Deepwork profile is a runtime-policy document, not a native deployment profile or Agent preset. Open **Settings → Deepwork Profiles** to browse and edit it. Native **Plugins → DSMM** edits deployment layers instead, as described in [settings and status](settings-status.md).
6
6
 
package/docs/roadmap.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Version policy
4
4
 
5
- **DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`.** Each DSMM version targets the published DSH RC or stable release selected for that version. Older SDKs and old configuration schemas aren't runtime compatibility targets. Loading sessions created by DSMM `0.2.x` is a required compatibility target, separate from retaining old runtime implementations or execution behavior. A newer upstream release requires deliberate reassessment, not an automatic dependency or runtime switch.
5
+ **DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`.** Each DSMM version targets the published DSH RC or stable release selected for that version. Older SDKs and old configuration schemas aren't runtime compatibility targets. Loading sessions created by DSMM `0.2.x` is a required compatibility target, separate from retaining old runtime implementations or execution behavior. A newer upstream release requires deliberate reassessment, not an automatic dependency or runtime switch.
6
6
 
7
7
  Published `0.3.0` retains its original rc.1 package, tag, assets and version-bound release identity.
8
8
 
@@ -132,4 +132,4 @@ As of 2026-10-23, the public [DSH master comparison](https://github.com/deepseek
132
132
 
133
133
  ## Publication and Desktop installation
134
134
 
135
- 0.3.14 publication uses the version-bound [release controls](releasing.md). Desktop plugin installation follows publication, uses the Desktop-owned carrier and requires exact DSH `0.2.1-rc.2`. Installation doesn't authorize upgrading the Host, changing credentials or real sessions, altering unrelated configuration, or restarting active work. An incompatible Host or required data migration blocks installation rather than expanding its scope.
135
+ 0.3.15 publication uses the version-bound [release controls](releasing.md). Desktop plugin installation follows publication, uses the Desktop-owned carrier and requires exact DSH `0.2.1-rc.2`. Installation doesn't authorize upgrading the Host, changing credentials or real sessions, altering unrelated configuration, or restarting active work. An incompatible Host or required data migration blocks installation rather than expanding its scope.
@@ -1,6 +1,6 @@
1
1
  # Runtime recovery and route strategies
2
2
 
3
- DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`.
4
4
 
5
5
  ## Independent role strategies
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DSMM Safety Guards
2
2
 
3
- DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`. Its guards use `tools/pre-execute` for allow, deny and ask decisions, and `tools/post-execute` for accepted-result truncation. They don't use OpenCode hook names or mutate tool arguments. Deployment overrides belong in the `id: dsmm` Loader entry's `config` object, not a settings.yaml namespace.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. Its guards use `tools/pre-execute` for allow, deny and ask decisions, and `tools/post-execute` for accepted-result truncation. They don't use OpenCode hook names or mutate tool arguments. Deployment overrides belong in the `id: dsmm` Loader entry's `config` object, not a settings.yaml namespace.
4
4
 
5
5
  ## Scope
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Deepwork settings and status
2
2
 
3
- DSMM 0.3.14 targets exactly DSH `0.2.1-rc.2`. Named policy is covered in [profiles](profiles.md), routing in [model routing](model-routing.md), and child authority in [Agent presets](agent-presets.md).
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. Named policy is covered in [profiles](profiles.md), routing in [model routing](model-routing.md), and child authority in [Agent presets](agent-presets.md).
4
4
 
5
5
  ## Deployment layers and native editors
6
6
 
@@ -88,6 +88,8 @@ export function Field({ schema, path, controller, initiallyOpen = false, disclos
88
88
  };
89
89
  const explicit = at(state.draft, path), inherited = controller.layer === "global" ? at(snapshot.defaults, path) : at(mergeLayer(mergeLayer(snapshot.defaults, snapshot.global), snapshot.nativeForm?.base ?? {}), path);
90
90
  const choices = enumValues(schema), disabled = !controller.canEdit();
91
+ const choiceLabel = (value) => name === "guards.gitWriteScope" && (value === "all-writes" || value === "high-risk")
92
+ ? t(value === "all-writes" ? "gitWriteAllWrites" : "gitWriteHighRisk") : displayValue(value, t);
91
93
  if (name === "permissionControl.nativeCommands.entries")
92
94
  return _jsx("div", { "data-field": name, children: _jsx(NativeCommandEntries, { controller: controller, value: explicit, inherited: (inherited ?? []), disabled: disabled, onChange: value => controller.edit(path, value), setInvalid: (key, bad) => controller.setInvalid(key, bad), t: permissionText(t) }) });
93
95
  if (name === "permissionControl.rules")
@@ -96,6 +98,6 @@ export function Field({ schema, path, controller, initiallyOpen = false, disclos
96
98
  return _jsxs("details", { className: "dsmm-deployment-group", "data-field": name, open: open, onToggle: event => expand(event.currentTarget.open), children: [_jsx("summary", { className: "dsmm-group-summary-row", children: _jsxs("span", { className: "dsmm-group-summary", children: [_jsx("span", { className: "dsmm-group-summary-label", children: fieldLabel(path, t) }), _jsx(Button, { type: "button", variant: "outline", className: "dsmm-group-summary-action", "data-dsmm-unset": name, hidden: !open, disabled: disabled || explicit === undefined && !Object.keys(state.raw).some(key => key === name || key.startsWith(`${name}.`)), onClick: unsetGroup, children: unsetLabel })] }) }), _jsxs("div", { children: [name === "permissionControl" && _jsx("p", { className: "dsmm-hint", children: permissionText(t)("configPolicyHint") }), Object.entries(schema.fields).map(([key, node]) => _jsx(Field, { schema: node, path: [...path, key], controller: controller, disclosures: disclosures, t: t }, key))] })] });
97
99
  if (!["boolean", "string", "number"].includes(schema.type) && choices === null)
98
100
  return _jsx(AdvancedField, { schema: schema, path: path, controller: controller, inherited: inherited, upper: controller.layer === "global" ? at(snapshot.profile, path) : undefined, expanded: open, onExpandedChange: expand, t: t });
99
- return _jsxs("div", { className: "dsmm-field dsmm-deployment-field", "data-field": name, children: [schema.type === "boolean" || choices !== null ? _jsxs(_Fragment, { children: [_jsx("label", { htmlFor: id, children: fieldLabel(path, t) }), _jsxs("select", { id: id, disabled: disabled, value: explicit === undefined ? "inherit" : JSON.stringify(explicit), onChange: event => controller.edit(path, event.currentTarget.value === "inherit" ? undefined : JSON.parse(event.currentTarget.value)), children: [_jsx("option", { value: "inherit", children: `${unsetLabel} · ${displayValue(inherited, t)}` }), (choices ?? [true, false]).map(choice => _jsx("option", { value: JSON.stringify(choice), children: displayValue(choice, t) }, String(choice)))] })] }) : _jsx(ScalarField, { schema: schema, path: path, controller: controller, inherited: inherited, t: t }), name === "modelParameters.passthrough" && _jsx("p", { className: "dsmm-hint", children: t("modelParametersHint") }), name === "permissionControl.enabled" && _jsx("p", { className: "dsmm-hint", children: permissionText(t)("coldHint") })] });
101
+ return _jsxs("div", { className: "dsmm-field dsmm-deployment-field", "data-field": name, children: [schema.type === "boolean" || choices !== null ? _jsxs(_Fragment, { children: [_jsx("label", { htmlFor: id, children: fieldLabel(path, t) }), _jsxs("select", { id: id, disabled: disabled, value: explicit === undefined ? "inherit" : JSON.stringify(explicit), onChange: event => controller.edit(path, event.currentTarget.value === "inherit" ? undefined : JSON.parse(event.currentTarget.value)), children: [_jsx("option", { value: "inherit", children: `${unsetLabel} · ${choiceLabel(inherited)}` }), (choices ?? [true, false]).map(choice => _jsx("option", { value: JSON.stringify(choice), children: choiceLabel(choice) }, String(choice)))] })] }) : _jsx(ScalarField, { schema: schema, path: path, controller: controller, inherited: inherited, t: t }), name === "modelParameters.passthrough" && _jsx("p", { className: "dsmm-hint", children: t("modelParametersHint") }), name === "permissionControl.enabled" && _jsx("p", { className: "dsmm-hint", children: permissionText(t)("coldHint") })] });
100
102
  }
101
103
  //# sourceMappingURL=DeploymentFields.js.map
@@ -40,7 +40,10 @@ export function ScopeSave({ controller, workspace, refreshOnly = false, t }) {
40
40
  }
41
41
  };
42
42
  }, []);
43
- return _jsxs("section", { ref: ref, className: "dsmm-scope-save", "aria-label": t("saveScope"), children: [_jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", children: refreshOnly ? state.busy ? t("loading") : "" : state.busy ? t("saving") : state.refreshRequired ? t("savedRefreshRequired") : state.saved ? t("saved") : state.dirty ? t("dirty") : "" }), !refreshOnly && pending.length > 0 && _jsxs("p", { children: [t("pendingModules"), ": ", pending.map(module => t(moduleTitle(module))).join(" · ")] }), state.issue !== null && _jsx("p", { className: "dsmm-issue", role: "alert", children: t(state.issue) }), !refreshOnly && state.invalidFields.length > 0 && _jsx("p", { className: "dsmm-issue", role: "alert", children: t("invalid") }), controller.layer === "profile" && !controller.canWriteProfile() && _jsx("p", { className: "dsmm-hint", children: t("unavailableForm") }), _jsxs("div", { className: "dsmm-actions", children: [!refreshOnly && _jsx(Button, { type: "button", variant: "primary", disabled: !controller.canSave(), onClick: () => void (workspace?.save() ?? controller.save()), children: t(controller.layer === "global" ? "saveGlobal" : "saveProfile") }), _jsx(Button, { type: "button", variant: "outline", disabled: state.busy, onClick: () => void controller.refresh(), children: t("refresh") }), !refreshOnly && _jsx(Button, { type: "button", variant: "outline", disabled: state.busy || !state.dirty && state.issue === null && !state.refreshRequired, onClick: () => void controller.refresh(true), children: t("discard") })] })] });
43
+ const status = refreshOnly
44
+ ? (state.busy ? t("loading") : "")
45
+ : (state.busy ? t("saving") : state.refreshRequired ? t("savedRefreshRequired") : state.saved ? t("saved") : state.dirty ? t("dirty") : "");
46
+ return _jsxs("section", { ref: ref, className: "dsmm-scope-save", "aria-label": t("saveScope"), children: [_jsxs("div", { className: "dsmm-actions", children: [!refreshOnly && _jsx(Button, { type: "button", variant: "primary", disabled: !controller.canSave(), onClick: () => void (workspace?.save() ?? controller.save()), children: t(controller.layer === "global" ? "saveGlobal" : "saveProfile") }), _jsx(Button, { type: "button", variant: "outline", disabled: state.busy, onClick: () => void controller.refresh(), children: t("refresh") }), !refreshOnly && _jsx(Button, { type: "button", variant: "outline", disabled: state.busy || !state.dirty && state.issue === null && !state.refreshRequired, onClick: () => void controller.refresh(true), children: t("discard") }), status !== "" && _jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", children: status })] }), !refreshOnly && pending.length > 0 && _jsxs("p", { className: "dsmm-hint", children: [t("pendingModules"), ": ", pending.map(module => t(moduleTitle(module))).join(" · ")] }), state.issue !== null && _jsx("p", { className: "dsmm-issue", role: "alert", children: t(state.issue) }), !refreshOnly && state.invalidFields.length > 0 && _jsx("p", { className: "dsmm-issue", role: "alert", children: t("invalid") }), controller.layer === "profile" && !controller.canWriteProfile() && _jsx("p", { className: "dsmm-hint", children: t("unavailableForm") })] });
44
47
  }
45
48
  export function NativeRuntimeState({ value, t }) {
46
49
  return _jsxs("details", { className: "dsmm-availability", children: [_jsx("summary", { children: t("nativeRuntimeState") }), _jsxs("p", { children: [t("nativeRuntimeBinding"), ": ", t(value?.binding === "stock" ? "nativeRuntimeStock" : value?.binding === "unavailable" ? "nativeRuntimeUnavailable" : "unknown")] }), _jsxs("p", { children: [t("nativeRuntimeFence"), ": ", value === undefined ? t("unknown") : t(value.deliveryFenceReady ? "on" : "off"), " \u00B7 ", t("nativeRuntimeRestart"), ": ", value === undefined ? t("unknown") : t(value.restartRequired ? "on" : "off")] }), value?.reason !== undefined && _jsx("p", { children: t(`nativeRuntimeReason-${value.reason}`) })] });
@@ -25,7 +25,10 @@ export function EditableChoice({ id, label, value, options, disabled, placeholde
25
25
  if (visible && activeIndex >= 0)
26
26
  document.getElementById(`${id}-choice-${activeIndex}`)?.scrollIntoView({ block: "nearest" });
27
27
  }, [id, visible, activeIndex]);
28
- return _jsxs("div", { className: "dsmm-choice", children: [_jsx(Input, { ref: input, id: id, className: "dsmm-input", role: "combobox", "aria-autocomplete": "list", "aria-expanded": visible, "aria-controls": visible ? `${id}-choices` : undefined, "aria-activedescendant": visible && activeIndex >= 0 ? `${id}-choice-${activeIndex}` : undefined, value: value, disabled: disabled, placeholder: placeholder, autoComplete: "off", onBlur: close, onChange: event => { onChange(event.currentTarget.value); setOpen(true); setActiveId(null); }, onKeyDown: event => {
28
+ return _jsxs("div", { className: "dsmm-choice", children: [_jsx(Input, { ref: input, id: id, className: "dsmm-input", role: "combobox", "aria-autocomplete": "list", "aria-expanded": visible, "aria-controls": visible ? `${id}-choices` : undefined, "aria-activedescendant": visible && activeIndex >= 0 ? `${id}-choice-${activeIndex}` : undefined, value: value, disabled: disabled, placeholder: placeholder, autoComplete: "off", onBlur: close, onClick: () => { if (!disabled && choices.length > 0 && !visible) {
29
+ setOpen(true);
30
+ setActiveId(null);
31
+ } }, onChange: event => { onChange(event.currentTarget.value); setOpen(true); setActiveId(null); }, onKeyDown: event => {
29
32
  if (event.nativeEvent.isComposing)
30
33
  return;
31
34
  if ((event.key === "ArrowDown" || event.key === "ArrowUp") && choices.length > 0) {
@@ -44,6 +47,6 @@ export function EditableChoice({ id, label, value, options, disabled, placeholde
44
47
  else
45
48
  close();
46
49
  }
47
- } }), _jsx(Button, { type: "button", size: "sm", variant: "toolbar", tabIndex: -1, className: "dsmm-choice-toggle", "aria-label": label, "aria-haspopup": "listbox", "aria-expanded": visible, disabled: disabled || choices.length === 0, icon: _jsx(IconChevronDownOutlineRegular, {}), onMouseDown: event => event.preventDefault(), onClick: () => { input.current?.focus(); setOpen(!visible); setActiveId(null); } }), visible && _jsx("ul", { className: "dsmm-choice-list", id: `${id}-choices`, role: "listbox", "aria-label": label, children: choices.map((option, index) => _jsx("li", { id: `${id}-choice-${index}`, role: "option", "data-value": option.id, "aria-selected": option.id === activeId, onMouseDown: event => event.preventDefault(), onClick: () => choose(option.id), children: option.name === option.id ? option.id : `${option.name} (${option.id})` }, option.id)) })] });
50
+ } }), _jsx(Button, { type: "button", size: "sm", variant: "ghost", tabIndex: -1, className: "dsmm-choice-toggle", "aria-label": label, "aria-haspopup": "listbox", "aria-expanded": visible, disabled: disabled || choices.length === 0, icon: _jsx(IconChevronDownOutlineRegular, {}), onMouseDown: event => event.preventDefault(), onClick: () => { input.current?.focus(); setOpen(!visible); setActiveId(null); } }), visible && _jsx("ul", { className: "dsmm-choice-list", id: `${id}-choices`, role: "listbox", "aria-label": label, children: choices.map((option, index) => _jsx("li", { id: `${id}-choice-${index}`, role: "option", "data-value": option.id, "aria-selected": option.id === activeId, onMouseDown: event => event.preventDefault(), onClick: () => choose(option.id), children: option.name === option.id ? option.id : `${option.name} (${option.id})` }, option.id)) })] });
48
51
  }
49
52
  //# sourceMappingURL=EditableChoice.js.map
@@ -2,6 +2,8 @@ import type { RefObject } from "react";
2
2
  import type { PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
3
3
  import type { ProfilesActions, ProfilesViewSnapshot } from "./controller.js";
4
4
  import type { StructuredDocument } from "./structured.js";
5
+ import { displayRoleLabel } from "./session-labels.js";
6
+ export { displayRoleLabel };
5
7
  type Locale = PropsLocale<"settings.dsmm-profiles">;
6
8
  export declare function hasExplicitModelOverride(roleId: string, doc: StructuredDocument | null): boolean;
7
9
  export interface ProfileModelsDialogProps extends Locale {
@@ -20,5 +22,4 @@ export interface ProfileModelsDialogProps extends Locale {
20
22
  canSave?: boolean;
21
23
  }
22
24
  export declare function ProfileModelsDialog({ open, onClose, state, actions, disabled, document: doc, isInvalidProjection, triggerRef, targetRoleId, targetField, onTargetLocated, onJumpToJsonc, canSave: canSaveProp, t, }: ProfileModelsDialogProps): import("react").JSX.Element;
23
- export {};
24
25
  //# sourceMappingURL=ProfileModelsDialog.d.ts.map
@@ -5,6 +5,8 @@ import { DSMM_RATE_LIMIT_BOUNDS, normalizeRateLimitPolicy } from "../routing-pol
5
5
  import { LevelFields, PolicyFields, RouteFields } from "./StructuredEditor.js";
6
6
  import { RoleAvailability, roleAvailability } from "./RoleAvailability.js";
7
7
  import { IssueDetails, issueKey } from "./diagnostics.js";
8
+ import { displayRoleLabel } from "./session-labels.js";
9
+ export { displayRoleLabel };
8
10
  function locateFieldInsideRole(roleCard, field) {
9
11
  if (!field)
10
12
  return null;
@@ -233,7 +235,8 @@ export function ProfileModelsDialog({ open, onClose, state, actions, disabled, d
233
235
  if (searchQuery.trim()) {
234
236
  const q = searchQuery.trim().toLowerCase();
235
237
  const matchesId = role.id.toLowerCase().includes(q);
236
- const matchesLabel = role.label.toLowerCase().includes(q);
238
+ const displayLabel = displayRoleLabel(role.label);
239
+ const matchesLabel = role.label.toLowerCase().includes(q) || displayLabel.toLowerCase().includes(q);
237
240
  if (!matchesId && !matchesLabel)
238
241
  return false;
239
242
  }
@@ -276,6 +279,7 @@ export function ProfileModelsDialog({ open, onClose, state, actions, disabled, d
276
279
  return (_jsxs(Modal, { open: open, onClose: onClose, title: t("modelsDialogTitle"), description: t("modelsDialogDesc"), closeLabel: t("cancel"), className: "dsmm-profile-models-dialog", contentClassName: "dsmm-profile-models-dialog-content", onKeyDownCapture: handleKeyDownCapture, children: [_jsxs("div", { ref: dialogTopBarRef, className: "dsmm-dialog-top-bar", children: [_jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "primary", disabled: !canSave, onClick: () => { void actions.save(); }, children: t(state.busy === "save" ? "saving" : "save") }), _jsx(Button, { type: "button", variant: "outline", onClick: onClose, children: t("cancel") })] }), state.busy === "save" ? (_jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", children: t("saving") })) : state.dirty ? (_jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", children: t("dirty") })) : null, isSaveLocked && (_jsx("div", { className: "dsmm-save-lock-reason", role: "status", children: _jsx("span", { className: "dsmm-save-lock-text", children: isInvalidProjection
277
280
  ? t("rawInvalid")
278
281
  : t("saveLockedReason", { count: state.invalidFields.length }) }) }))] }), _jsxs("div", { className: "dsmm-models-filter-bar dsmm-dialog-filter-bar", children: [_jsx("div", { className: "dsmm-field dsmm-filter-search", children: _jsx(Input, { id: `${prefix}-role-search`, className: "dsmm-input", type: "search", value: searchQuery, placeholder: t("searchRolesPlaceholder"), disabled: effectiveDisabled, onChange: (e) => setSearchQuery(e.currentTarget.value), "data-dsmm-role-search": true, "data-modal-autofocus": true }) }), _jsxs("label", { className: "dsmm-filter-label dsmm-filter-override-toggle", children: [_jsx("input", { type: "checkbox", checked: filterExplicitOnly, disabled: effectiveDisabled, onChange: (e) => setFilterExplicitOnly(e.currentTarget.checked), "data-dsmm-filter-overrides": true }), _jsx("span", { children: t("filterExplicitOverrides") })] })] }), state.issue !== null && (_jsxs("div", { className: "dsmm-issue dsmm-dialog-issue", role: "region", "aria-label": t("savedInventory"), children: [_jsx("p", { className: "dsmm-dialog-issue-title", children: t(issueKey(state.issue)) }), _jsx(IssueDetails, { issue: state.issue, t: t }), onJumpToJsonc && (_jsx("div", { className: "dsmm-dialog-issue-action", children: _jsx(Button, { type: "button", variant: "outline", size: "sm", onClick: onJumpToJsonc, children: t("jumpToJsonc") }) }))] })), doc === null && (_jsxs("div", { className: "dsmm-structured-invalid", "data-dsmm-structured-invalid": true, children: [_jsx("p", { children: t("rawInvalid") }), _jsx("p", { className: "dsmm-hint", children: t("rawInvalidFormDisabled") }), onJumpToJsonc && (_jsx(Button, { type: "button", variant: "outline", onClick: onJumpToJsonc, children: t("viewConfiguration") }))] })), doc !== null && (_jsxs("div", { className: "dsmm-roles-list dsmm-dialog-roles-list", children: [filteredRoles.length === 0 && (_jsx("p", { className: "dsmm-hint dsmm-no-roles", children: t("noMatchingRoles") })), filteredRoles.map((role) => {
282
+ const roleName = displayRoleLabel(role.label);
279
283
  const policy = doc.roleRouting[role.id] ?? {};
280
284
  const rolePath = ["settings", "roleRouting", role.id];
281
285
  const isOrchestrator = role.id === "dsmm-orchestrator";
@@ -318,8 +322,8 @@ export function ProfileModelsDialog({ open, onClose, state, actions, disabled, d
318
322
  ? t("roleSettingsOverridden")
319
323
  : t("roleSettingsInherited");
320
324
  const nonModelSummary = t("roleSettingsSummary", { status: statusSummary, retry: retrySummary });
321
- return (_jsxs("div", { className: "dsmm-role-card dsmm-dialog-role-card", "data-dsmm-role": role.id, children: [_jsxs("div", { className: "dsmm-role-main-row", children: [_jsx("div", { className: "dsmm-dialog-role-header", children: _jsxs("div", { className: "dsmm-role-title-group", children: [_jsx("span", { className: "dsmm-role-title", children: role.label }), _jsx("code", { className: "dsmm-role-id-badge", children: role.id }), explicitOverride && (_jsx("span", { className: "dsmm-override-badge", children: t("roleSettingsOverridden") }))] }) }), _jsxs("div", { className: "dsmm-role-primary-route", children: [_jsxs("div", { className: "dsmm-field dsmm-primary-mode-field", children: [_jsx("label", { htmlFor: `${prefix}-${role.id}-primary-mode`, children: t("primaryMode", { name: role.label }) }), _jsxs("select", { id: `${prefix}-${role.id}-primary-mode`, disabled: effectiveDisabled, value: policy.primary === undefined ? "inherit" : "explicit", onChange: (event) => actions.editPath([...rolePath, "primary"], event.currentTarget.value === "inherit" ? undefined : { provider: "", model: "" }), children: [_jsx("option", { value: "inherit", children: t("inheritRoute") }), _jsx("option", { value: "explicit", children: t("configuredRoute") })] })] }), policy.primary !== undefined ? (_jsx(RouteFields, { t: t, value: policy.primary, path: [...rolePath, "primary"], name: t("primaryName", { name: role.label }), catalog: state.catalog, disabled: effectiveDisabled, edit: actions.editPath, editRoute: actions.editRoute, naturalLabels: true })) : (_jsx("div", { className: "dsmm-route-inherited-hint", children: _jsx("span", { children: t("inheritRouteDesc") }) })), isOrchestrator && (_jsx("span", { className: "dsmm-orchestrator-tag", children: t("orchestratorNoLevelsHint") }))] })] }), _jsxs("div", { className: "dsmm-role-details-bar", children: [!isOrchestrator && (_jsxs("details", { className: "dsmm-role-levels-details dsmm-compact-details", "data-dsmm-details": "levels", children: [_jsxs("summary", { className: "dsmm-details-summary dsmm-details-pill", children: [_jsxs("span", { className: "dsmm-pill-label", children: [t("callingLevels"), ":"] }), _jsx("span", { className: "dsmm-pill-val", children: levelsSummary })] }), _jsxs("div", { className: "dsmm-details-content", children: [_jsx("p", { className: "dsmm-hint", children: t("levelsHint") }), ["low", "high", "max"].map((level) => (_jsx(LevelFields, { level: level, value: policy.levels?.[level], path: [...rolePath, "levels", level], catalog: state.catalog, disabled: effectiveDisabled, actions: actions, t: t }, level)))] })] })), _jsxs("details", { className: "dsmm-role-fallback-details dsmm-compact-details", "data-dsmm-details": "fallback", children: [_jsxs("summary", { className: "dsmm-details-summary dsmm-details-pill", children: [_jsxs("span", { className: "dsmm-pill-label", children: [t("fallbackRoutes"), ":"] }), _jsx("span", { className: "dsmm-pill-val", children: fallbackSummary })] }), _jsxs("div", { className: "dsmm-details-content", children: [_jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${prefix}-${role.id}-fallback-mode`, children: t("fallbackMode", { name: role.label }) }), _jsxs("select", { id: `${prefix}-${role.id}-fallback-mode`, disabled: effectiveDisabled, value: policy.fallbackRoutes === undefined ? "inherit" : "explicit", onChange: (event) => actions.editPath([...rolePath, "fallbackRoutes"], event.currentTarget.value === "inherit" ? undefined : []), children: [_jsx("option", { value: "inherit", children: t("inheritChain") }), _jsx("option", { value: "explicit", children: t("configuredChain") })] })] }), policy.fallbackRoutes?.length === 0 && (_jsx("p", { className: "dsmm-hint", children: t("emptyChain") })), policy.fallbackRoutes?.map((candidate, index) => {
322
- const name = t("fallbackName", { name: role.label, index: index + 1 });
325
+ return (_jsxs("div", { className: "dsmm-role-card dsmm-dialog-role-card", "data-dsmm-role": role.id, children: [_jsxs("div", { className: "dsmm-role-main-row", children: [_jsx("div", { className: "dsmm-dialog-role-header", children: _jsxs("div", { className: "dsmm-role-title-group", children: [_jsx("span", { className: "dsmm-role-title", children: roleName }), _jsx("code", { className: "dsmm-role-id-badge", children: role.id }), explicitOverride && (_jsx("span", { className: "dsmm-override-badge", children: t("roleSettingsOverridden") }))] }) }), _jsxs("div", { className: "dsmm-role-primary-route", children: [_jsxs("div", { className: "dsmm-field dsmm-primary-mode-field", children: [_jsx("label", { htmlFor: `${prefix}-${role.id}-primary-mode`, children: t("primaryMode", { name: roleName }) }), _jsxs("select", { id: `${prefix}-${role.id}-primary-mode`, disabled: effectiveDisabled, value: policy.primary === undefined ? "inherit" : "explicit", onChange: (event) => actions.editPath([...rolePath, "primary"], event.currentTarget.value === "inherit" ? undefined : { provider: "", model: "" }), children: [_jsx("option", { value: "inherit", children: t("inheritRoute") }), _jsx("option", { value: "explicit", children: t("configuredRoute") })] })] }), policy.primary !== undefined ? (_jsx(RouteFields, { t: t, value: policy.primary, path: [...rolePath, "primary"], name: t("primaryName", { name: roleName }), catalog: state.catalog, disabled: effectiveDisabled, edit: actions.editPath, editRoute: actions.editRoute, naturalLabels: true })) : (_jsx("div", { className: "dsmm-route-inherited-hint", children: _jsx("span", { children: t("inheritRouteDesc") }) })), isOrchestrator && (_jsx("span", { className: "dsmm-orchestrator-tag", children: t("orchestratorNoLevelsHint") }))] })] }), _jsxs("div", { className: "dsmm-role-details-bar", children: [!isOrchestrator && (_jsxs("details", { className: "dsmm-role-levels-details dsmm-compact-details", "data-dsmm-details": "levels", children: [_jsxs("summary", { className: "dsmm-details-summary dsmm-details-pill", children: [_jsxs("span", { className: "dsmm-pill-label", children: [t("callingLevels"), ":"] }), _jsx("span", { className: "dsmm-pill-val", children: levelsSummary })] }), _jsxs("div", { className: "dsmm-details-content", children: [_jsx("p", { className: "dsmm-hint", children: t("levelsHint") }), ["low", "high", "max"].map((level) => (_jsx(LevelFields, { level: level, value: policy.levels?.[level], path: [...rolePath, "levels", level], catalog: state.catalog, disabled: effectiveDisabled, actions: actions, t: t }, level)))] })] })), _jsxs("details", { className: "dsmm-role-fallback-details dsmm-compact-details", "data-dsmm-details": "fallback", children: [_jsxs("summary", { className: "dsmm-details-summary dsmm-details-pill", children: [_jsxs("span", { className: "dsmm-pill-label", children: [t("fallbackRoutes"), ":"] }), _jsx("span", { className: "dsmm-pill-val", children: fallbackSummary })] }), _jsxs("div", { className: "dsmm-details-content", children: [_jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${prefix}-${role.id}-fallback-mode`, children: t("fallbackMode", { name: roleName }) }), _jsxs("select", { id: `${prefix}-${role.id}-fallback-mode`, disabled: effectiveDisabled, value: policy.fallbackRoutes === undefined ? "inherit" : "explicit", onChange: (event) => actions.editPath([...rolePath, "fallbackRoutes"], event.currentTarget.value === "inherit" ? undefined : []), children: [_jsx("option", { value: "inherit", children: t("inheritChain") }), _jsx("option", { value: "explicit", children: t("configuredChain") })] })] }), policy.fallbackRoutes?.length === 0 && (_jsx("p", { className: "dsmm-hint", children: t("emptyChain") })), policy.fallbackRoutes?.map((candidate, index) => {
326
+ const name = t("fallbackName", { name: roleName, index: index + 1 });
323
327
  return (_jsxs("fieldset", { className: "dsmm-fallback-item", "data-dsmm-fallback-index": index, children: [_jsx("legend", { children: name }), _jsx(RouteFields, { t: t, value: candidate, path: [...rolePath, "fallbackRoutes", index], name: name, catalog: state.catalog, disabled: effectiveDisabled, edit: actions.editPath, editRoute: actions.editRoute, naturalLabels: true }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "outline", "data-dsmm-action": "moveUp", disabled: effectiveDisabled || index === 0, onClick: () => {
324
328
  pendingFallbackFocusRef.current = { roleId: role.id, index: index - 1, action: "moveUp" };
325
329
  actions.moveFallback(role.id, index, index - 1);
@@ -344,10 +348,10 @@ export function ProfileModelsDialog({ open, onClose, state, actions, disabled, d
344
348
  else {
345
349
  actions.editPath([...rolePath, "fallbackRoutes", policy.fallbackRoutes.length], { provider: "", model: "" });
346
350
  }
347
- }, children: t("addFallback", { name: role.label }) })] })] }), _jsxs("details", { className: "dsmm-role-nonmodel-details dsmm-compact-details", "data-dsmm-details": "non-model", children: [_jsxs("summary", { className: "dsmm-details-summary dsmm-details-pill", children: [_jsxs("span", { className: "dsmm-pill-label", children: [t("roleNonModelSettings"), ":"] }), _jsx("span", { className: "dsmm-pill-val", children: nonModelSummary })] }), _jsxs("div", { className: "dsmm-details-content", children: [_jsx(RoleAvailability, { value: role.availability, t: t }), _jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${prefix}-${role.id}-role-enabled`, children: t("namedRole", { name: role.label }) }), _jsxs("select", { id: `${prefix}-${role.id}-role-enabled`, value: namedRoles?.[role.id] === undefined ? "" : String(namedRoles[role.id]), disabled: effectiveDisabled, "aria-describedby": `${prefix}-${role.id}-role-hint`, onChange: (event) => actions.editPath(["settings", "roles", role.id], event.currentTarget.value === "" ? undefined : event.currentTarget.value === "true"), children: [_jsx("option", { value: "", children: t("inherit") }), _jsx("option", { value: "true", disabled: availability === undefined ||
351
+ }, children: t("addFallback", { name: roleName }) })] })] }), _jsxs("details", { className: "dsmm-role-nonmodel-details dsmm-compact-details", "data-dsmm-details": "non-model", children: [_jsxs("summary", { className: "dsmm-details-summary dsmm-details-pill", children: [_jsxs("span", { className: "dsmm-pill-label", children: [t("roleNonModelSettings"), ":"] }), _jsx("span", { className: "dsmm-pill-val", children: nonModelSummary })] }), _jsxs("div", { className: "dsmm-details-content", children: [_jsx(RoleAvailability, { value: role.availability, t: t }), _jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${prefix}-${role.id}-role-enabled`, children: t("namedRole", { name: roleName }) }), _jsxs("select", { id: `${prefix}-${role.id}-role-enabled`, value: namedRoles?.[role.id] === undefined ? "" : String(namedRoles[role.id]), disabled: effectiveDisabled, "aria-describedby": `${prefix}-${role.id}-role-hint`, onChange: (event) => actions.editPath(["settings", "roles", role.id], event.currentTarget.value === "" ? undefined : event.currentTarget.value === "true"), children: [_jsx("option", { value: "", children: t("inherit") }), _jsx("option", { value: "true", disabled: availability === undefined ||
348
352
  !availability.startupAvailable ||
349
353
  !availability.deploymentEnabled ||
350
- availability.reason === "module-off", children: t("enabled") }), _jsx("option", { value: "false", disabled: availability === undefined || availability.required, children: t("disabled") })] }), _jsx("p", { id: `${prefix}-${role.id}-role-hint`, className: "dsmm-hint", children: t("namedRoleHint") })] }), _jsx(PolicyFields, { t: t, value: policy, inherited: inherited, path: rolePath, name: role.label, disabled: effectiveDisabled, actions: actions })] })] })] })] }, role.id));
354
+ availability.reason === "module-off", children: t("enabled") }), _jsx("option", { value: "false", disabled: availability === undefined || availability.required, children: t("disabled") })] }), _jsx("p", { id: `${prefix}-${role.id}-role-hint`, className: "dsmm-hint", children: t("namedRoleHint") })] }), _jsx(PolicyFields, { t: t, value: policy, inherited: inherited, path: rolePath, name: roleName, disabled: effectiveDisabled, actions: actions })] })] })] })] }, role.id));
351
355
  })] }))] }));
352
356
  }
353
357
  //# sourceMappingURL=ProfileModelsDialog.js.map
@@ -21,7 +21,7 @@ export declare const roleToolEn: {
21
21
  readonly output: "Complete result content";
22
22
  readonly failure: "Error details";
23
23
  readonly metadata: "Invocation metadata";
24
- readonly inspect: "Inspect tool call";
24
+ readonly inspect: "View call details";
25
25
  readonly copy: "Copy";
26
26
  readonly copied: "Copied";
27
27
  readonly emptyArgs: "Arguments not available yet";
@@ -7,7 +7,7 @@ export const roleToolEn = {
7
7
  background: "Background", error: "Failed", stopped: "Interrupted",
8
8
  technicalDetails: "Technical details",
9
9
  args: "Original arguments", preparingArgs: "Arguments received so far", output: "Complete result content", failure: "Error details", metadata: "Invocation metadata",
10
- inspect: "Inspect tool call", copy: "Copy", copied: "Copied", emptyArgs: "Arguments not available yet",
10
+ inspect: "View call details", copy: "Copy", copied: "Copied", emptyArgs: "Arguments not available yet",
11
11
  unavailable: "Actual identity unavailable; requested identity only", level: "Level", route: "Reported route", routeSource: "Route source",
12
12
  table: "Table", json: "JSON", viewMode: "View mode", property: "Property", value: "Value",
13
13
  };
@@ -19,7 +19,7 @@ export const roleToolZh = {
19
19
  background: "后台调用", error: "失败", stopped: "已中断",
20
20
  technicalDetails: "技术详情",
21
21
  args: "原始参数", preparingArgs: "目前已收到的参数", output: "完整结果内容", failure: "错误详情", metadata: "调用元数据",
22
- inspect: "检查工具调用", copy: "复制", copied: "已复制", emptyArgs: "参数尚不可用",
22
+ inspect: "查看调用详情", copy: "复制", copied: "已复制", emptyArgs: "参数尚不可用",
23
23
  unavailable: "实际身份不可用,仅显示请求身份", level: "等级", route: "报告的路由", routeSource: "路由来源",
24
24
  table: "表格", json: "JSON", viewMode: "视图模式", property: "属性", value: "值",
25
25
  };
@@ -44,6 +44,8 @@ export declare const deploymentEn: {
44
44
  unitChars: string;
45
45
  useDefaults: string;
46
46
  restoreInheritance: string;
47
+ gitWriteAllWrites: string;
48
+ gitWriteHighRisk: string;
47
49
  nativeRuntimeState: string;
48
50
  nativeRuntimeBinding: string;
49
51
  nativeRuntimeFence: string;
@@ -22,6 +22,7 @@ export const deploymentEn = {
22
22
  nativeRuntimeReadinessHint: "Task progress is available in the session.",
23
23
  unsetGroup: "Use defaults for this group", unitBytes: "bytes", unitChars: "characters",
24
24
  useDefaults: "Use defaults", restoreInheritance: "Restore inheritance",
25
+ gitWriteAllWrites: "All write operations", gitWriteHighRisk: "High-risk write operations only",
25
26
  nativeRuntimeState: "Observed native runtime", nativeRuntimeBinding: "Observed runtime composition", nativeRuntimeFence: "Execution admission ready", nativeRuntimeRestart: "Restart required", nativeRuntimeStock: "Official Host runtime", nativeRuntimeUnavailable: "Unavailable / unknown",
26
27
  "nativeRuntimeReason-explicit-composition-required": "The Host requires an explicit native runtime composition.", "nativeRuntimeReason-duplicate-provider": "More than one native provider is present; readiness is not confirmed.", "nativeRuntimeReason-authority-not-ready": "Native execution authority is not ready.", "nativeRuntimeReason-disabled": "The saved native runtime is disabled.", "nativeRuntimeReason-pending-restart": "Saved desired state differs from the mounted native composition; restart is pending.", "nativeRuntimeReason-scope-conflict": "Native scope ownership conflicts; readiness is not confirmed.",
27
28
  saveGlobal: "Save", saveProfile: "Save", saving: "Saving…", refresh: "Refresh", discard: "Discard and reload", dirty: "Unsaved changes", saved: "Saved",
@@ -65,6 +66,7 @@ export const deploymentZh = {
65
66
  nativeRuntimeReadinessHint: "任务进度可在会话中查看。",
66
67
  unsetGroup: "整组使用默认配置", unitBytes: "字节", unitChars: "字符",
67
68
  useDefaults: "使用默认值", restoreInheritance: "恢复继承",
69
+ gitWriteAllWrites: "所有写操作", gitWriteHighRisk: "仅高风险写操作",
68
70
  nativeRuntimeState: "已观测原生运行时", nativeRuntimeBinding: "已观测运行时组合", nativeRuntimeFence: "执行准入已就绪", nativeRuntimeRestart: "需要重启", nativeRuntimeStock: "官方 Host 运行时", nativeRuntimeUnavailable: "不可用/未知",
69
71
  "nativeRuntimeReason-explicit-composition-required": "Host 需要显式的原生运行时组合。", "nativeRuntimeReason-duplicate-provider": "存在重复原生 provider,无法确认就绪状态。", "nativeRuntimeReason-authority-not-ready": "原生执行权限尚未就绪。", "nativeRuntimeReason-disabled": "已保存的原生运行时为关闭。", "nativeRuntimeReason-pending-restart": "已保存 desired 与已挂载原生组合不同,等待独立重启。", "nativeRuntimeReason-scope-conflict": "原生 scope 所有权冲突,无法确认就绪状态。",
70
72
  saveGlobal: "保存", saveProfile: "保存", saving: "正在保存…", refresh: "刷新", discard: "丢弃并重载", dirty: "未保存", saved: "已保存",
@@ -97,7 +99,7 @@ export const deploymentFieldLabels = {
97
99
  promptOrder: ["Prompt order", "提示词顺序"], defaultActive: ["Default Deepwork mode", "默认 Deepwork 模式"],
98
100
  enabled: ["Enabled", "启用"], materialize: ["Materialize presets", "物化预设"], scope: ["Guard scope", "保护范围"],
99
101
  shellCommandSafety: ["Shell command safety", "Shell 命令安全"], gitWriteGuard: ["Git write policy", "Git 写入策略"],
100
- gitWriteScope: ["Automatic Git write scope (all-writes / high-risk)", "自动 Git 写入范围(all-writes 全部写入 / high-risk 仅高危)"],
102
+ gitWriteScope: ["Git write protection scope", "Git 写操作保护范围"],
101
103
  toolOutputTruncation: ["Tool output truncation", "工具输出截断"], maxInlineBytes: ["Inline byte limit", "内联字节上限"],
102
104
  planFormatValidation: ["Plan format validation", "计划格式校验"], questionLabelHelper: ["Question labels", "提问标签"], maxLabelChars: ["Label character limit", "标签字符上限"], todoDisciplineHelper: ["Todo discipline", "待办纪律"],
103
105
  enableRunInBackground: ["Allow background runs", "允许后台执行"], backgroundMode: ["Background mode", "后台模式"], maxDepth: ["Maximum depth", "最大深度"],
@@ -33,10 +33,10 @@ export const en = {
33
33
  orchestratorInBasicNotice: "The orchestrator model is configured above in Basic settings.", orchestratorJumpToBasic: "Edit in Basic settings",
34
34
  useSessionProfileModelDesc: "Uses the primary model of the profile currently admitted in this session; has the same effect as native model selection and may update the native default model.",
35
35
  rawInvalidFormDisabled: "The configuration has syntax errors; structured editing is unavailable.", viewConfiguration: "View JSONC source",
36
- advancedSettings: "Advanced settings", gitWriteGuard: "Git write protection", gitWriteScope: "Inspection scope",
36
+ advancedSettings: "Advanced settings", gitWriteGuard: "Git write protection", gitWriteScope: "Git write protection scope",
37
37
  gitWriteScopeDisabledHint: "Protection is off; inspection scope is inactive",
38
38
  gitWriteGuardHint: "Inspection scope adjusts automatic Git protection only; explicit ask/deny still applies. Turning off does not authorize operations.",
39
- gitWriteAsk: "Ask", gitWriteDeny: "Deny", gitWriteOff: "Off", gitWriteAllWrites: "All Git write operations", gitWriteHighRisk: "High-risk Git operations only",
39
+ gitWriteAsk: "Ask", gitWriteDeny: "Deny", gitWriteOff: "Off", gitWriteAllWrites: "All write operations", gitWriteHighRisk: "High-risk write operations only",
40
40
  topologyPerRole: "One tool per role", topologyParameterized: "Select role in tool arguments",
41
41
  roleModels: "Role models and availability", callingLevels: "Calling levels", fallbackRoutes: "Fallback routes", retryPolicy: "Retry policy", roleRoutingNotice: "Role routing configuration",
42
42
  newSessions: "Choose the configuration new sessions use. Existing sessions stay unchanged.",
@@ -151,10 +151,10 @@ export const zh = {
151
151
  useSessionProfileModelDesc: "使用本次会话已采用方案的角色主力模型;与原生模型选择具有相同效果,可能更新原生默认模型。",
152
152
  orchestratorUnavailable: "当前角色库存未包含主协调角色,请刷新确认;已存配置会保留。",
153
153
  rawInvalidFormDisabled: "配置内容有错误,暂时无法使用表单编辑", viewConfiguration: "查看配置内容",
154
- advancedSettings: "高级设置", gitWriteGuard: "Git 写入保护", gitWriteScope: "检查范围",
154
+ advancedSettings: "高级设置", gitWriteGuard: "Git 写入保护", gitWriteScope: "Git 写操作保护范围",
155
155
  gitWriteScopeDisabledHint: "保护已关闭,检查范围暂不生效",
156
156
  gitWriteGuardHint: "检查范围只调整自动 Git 保护,显式 ask/deny 仍生效;关闭不代表授权。",
157
- gitWriteAsk: "询问", gitWriteDeny: "禁止", gitWriteOff: "关闭", gitWriteAllWrites: "所有 Git 写操作", gitWriteHighRisk: "仅高危 Git 操作",
157
+ gitWriteAsk: "询问", gitWriteDeny: "禁止", gitWriteOff: "关闭", gitWriteAllWrites: "所有写操作", gitWriteHighRisk: "仅高风险写操作",
158
158
  topologyPerRole: "每个角色独立入口", topologyParameterized: "统一入口中选择角色",
159
159
  roleModels: "角色模型与可用性", callingLevels: "调用档位", fallbackRoutes: "备用模型", retryPolicy: "重试策略", roleRoutingNotice: "角色路由配置",
160
160
  newSessions: "选择新会话使用的配置,已有会话不变。",
@@ -1,5 +1,6 @@
1
1
  import type { PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
2
2
  import type { SessionProfileSnapshot } from "../profile-types.js";
3
+ export declare function displayRoleLabel(label: string): string;
3
4
  /** Presentation only: admitted identity never substitutes for sidecar CAS. */
4
5
  export declare function sessionProfileLabels(session: SessionProfileSnapshot, t: PropsLocale<"settings.dsmm-profiles">["t"]): {
5
6
  admitted: string;
@@ -1,4 +1,7 @@
1
1
  import { configurationVersionState } from "./configuration-display.js";
2
+ export function displayRoleLabel(label) {
3
+ return label.replace(/^DW\s+/u, "");
4
+ }
2
5
  /** Presentation only: admitted identity never substitutes for sidecar CAS. */
3
6
  export function sessionProfileLabels(session, t) {
4
7
  const admitted = session.admittedSelection;