@dsmm/dsmm 0.3.2 → 0.3.4
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 +2 -2
- package/agent-presets/dsmm-builder/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-coding/agent.cordis.yml +3 -2
- package/agent-presets/dsmm-complex/agent.cordis.yml +2 -1
- package/agent-presets/dsmm-creative/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-deep/agent.cordis.yml +2 -1
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-documenting/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-frontend/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +3 -2
- package/agent-presets/dsmm-oracle/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +11 -1
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-quick/agent.cordis.yml +2 -1
- package/agent-presets/dsmm-research/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +1 -1
- package/cordis.patch.yml +0 -9
- package/docs/agent-presets.md +5 -5
- package/docs/compatibility.md +2 -6
- package/docs/migration-from-ocmm.md +1 -1
- package/docs/native-permissions.md +11 -3
- package/docs/roadmap.md +31 -11
- package/docs/runtime-recovery.md +30 -2
- package/docs/settings-status.md +7 -5
- package/docs/skill-sync.md +13 -14
- package/lib/client/ChildrenPanel.d.ts +1 -4
- package/lib/client/ChildrenPanel.js +3 -3
- package/lib/client/DeploymentFields.js +12 -1
- package/lib/client/DeploymentPage.d.ts +1 -3
- package/lib/client/DeploymentPage.js +30 -18
- package/lib/client/NativeCommandEntries.js +47 -37
- package/lib/client/PermissionRuleEntries.d.ts +17 -0
- package/lib/client/PermissionRuleEntries.js +70 -0
- package/lib/client/PermissionsPanel.d.ts +1 -3
- package/lib/client/PermissionsPanel.js +5 -4
- package/lib/client/children-locales.d.ts +4 -4
- package/lib/client/controller.js +4 -1
- package/lib/client/deployment-locales.d.ts +2 -2
- package/lib/client/deployment-locales.js +8 -9
- package/lib/client/deployment-modules.d.ts +5 -3
- package/lib/client/deployment-modules.js +4 -4
- package/lib/client/deployment-workspace.d.ts +4 -0
- package/lib/client/deployment-workspace.js +37 -11
- package/lib/client/index.js +2 -7
- package/lib/client/locales.js +131 -119
- package/lib/client/permission-controller.d.ts +13 -0
- package/lib/client/permission-controller.js +50 -23
- package/lib/client/permission-locales.d.ts +28 -30
- package/lib/client/permission-locales.js +38 -38
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +8 -8
- package/lib/client.js +2272 -3773
- package/lib/core-permission-authority.js +28 -16
- package/lib/index.d.ts +0 -2
- package/lib/index.js +11 -31
- package/lib/native-admission.d.ts +3 -3
- package/lib/native-admission.js +67 -66
- package/lib/permission-controller.js +1 -1
- package/lib/permission-fs-search.js +1 -2
- package/lib/permission-fs.js +1 -2
- package/lib/permission-native-command.js +6 -4
- package/lib/permission-settings.d.ts +21 -7
- package/lib/permission-settings.js +21 -9
- package/lib/permission-web.js +1 -2
- package/lib/preset-materializer.js +3 -3
- package/lib/preset-registry.d.ts +20 -2
- package/lib/preset-registry.js +46 -17
- package/lib/profile-diagnostics.js +1 -1
- package/lib/profile-remote.js +1 -3
- package/lib/role-identity.d.ts +1 -1
- package/lib/role-identity.js +16 -4
- package/lib/role-policy.d.ts +3 -0
- package/lib/role-policy.js +30 -6
- package/lib/role-subagents.js +6 -4
- package/lib/roles.d.ts +2 -0
- package/lib/roles.js +2 -0
- package/lib/runtime-integration.js +4 -4
- package/lib/settings.d.ts +1 -3
- package/lib/settings.js +8 -10
- package/lib/state.d.ts +4 -1
- package/lib/state.js +37 -6
- package/package.json +1 -5
- package/prompts/deepwork.md +13 -1
- package/prompts/source/agents/orchestrator.md +10 -0
- package/prompts/source/category/coding.md +2 -1
- package/prompts/source/category/complex.md +1 -0
- package/prompts/source/category/deep.md +1 -0
- package/prompts/source/category/frontend.md +3 -1
- package/prompts/source/category/normal-task.md +2 -1
- package/prompts/source/category/quick.md +1 -0
- package/prompts/source/deepwork/claude-opus-5.md +2 -0
- package/prompts/source/deepwork/default.md +12 -0
- package/prompts/source/deepwork/gemini.md +6 -1
- package/prompts/source/deepwork/glm.md +5 -1
- package/prompts/source/deepwork/gpt.md +22 -2
- package/prompts/source/deepwork/kimi-k27.md +2 -0
- package/prompts/source/deepwork/planner.md +3 -1
- package/prompts/source/deepwork/swe-2.md +2 -0
- package/prompts/source/manifest.json +3 -68
- package/prompts/source/shared/dsh-host-contract.md +1 -1
- package/skills/ast-grep/SKILL.md +1 -1
- package/skills/brainstorming/SKILL.md +1 -1
- package/skills/coding-agent-sessions/SKILL.md +1 -1
- package/skills/debugging/SKILL.md +1 -1
- package/skills/dispatching-parallel-agents/SKILL.md +1 -1
- package/skills/frontend/SKILL.md +1 -1
- package/skills/git-master/SKILL.md +1 -1
- package/skills/init-deep/SKILL.md +1 -1
- package/skills/receiving-code-review/SKILL.md +1 -1
- package/skills/remove-ai-slops/SKILL.md +1 -1
- package/skills/requesting-code-review/SKILL.md +1 -1
- package/skills/subagent-driven-development/SKILL.md +1 -1
- package/skills/using-git-worktrees/SKILL.md +1 -1
- package/skills/writing-plans/SKILL.md +1 -1
- package/lib/client/ChildPermissions.d.ts +0 -43
- package/lib/client/ChildPermissions.js +0 -100
- package/lib/client/HistoryContinuation.d.ts +0 -7
- package/lib/client/HistoryContinuation.js +0 -22
- package/lib/client/PermissionPanelEntry.d.ts +0 -8
- package/lib/client/PermissionPanelEntry.js +0 -11
- package/lib/client/TemporaryPermissions.d.ts +0 -21
- package/lib/client/TemporaryPermissions.js +0 -94
- package/lib/client/history-controller.d.ts +0 -29
- package/lib/client/history-controller.js +0 -111
- package/lib/client/history-entry.d.ts +0 -11
- package/lib/client/history-entry.js +0 -106
- package/lib/client/history-locales.d.ts +0 -95
- package/lib/client/history-locales.js +0 -41
- package/lib/client/temporary-permission-client.d.ts +0 -20
- package/lib/client/temporary-permission-client.js +0 -52
- package/lib/client/temporary-permission-entry.d.ts +0 -6
- package/lib/client/temporary-permission-entry.js +0 -56
- package/lib/history-candidates.d.ts +0 -30
- package/lib/history-candidates.js +0 -176
- package/lib/history-codec.d.ts +0 -11
- package/lib/history-codec.js +0 -102
- package/lib/history-contract.d.ts +0 -44
- package/lib/history-contract.js +0 -2
- package/lib/history-controller.d.ts +0 -42
- package/lib/history-controller.js +0 -329
- package/lib/history-policy.d.ts +0 -4
- package/lib/history-policy.js +0 -8
- package/lib/history-remote.d.ts +0 -28
- package/lib/history-remote.js +0 -17
- package/lib/history-rpc.d.ts +0 -24
- package/lib/history-rpc.js +0 -136
- package/lib/history-support.d.ts +0 -15
- package/lib/history-support.js +0 -21
- package/lib/history-types.d.ts +0 -67
- package/lib/history-types.js +0 -2
- package/lib/permission-child-control.d.ts +0 -36
- package/lib/permission-child-control.js +0 -164
- package/lib/permission-exec-argv.d.ts +0 -32
- package/lib/permission-exec-argv.js +0 -171
- package/lib/permission-temporary-files.d.ts +0 -19
- package/lib/permission-temporary-files.js +0 -248
- package/lib/permission-temporary-grants.d.ts +0 -106
- package/lib/permission-temporary-grants.js +0 -198
- package/lib/permission-temporary-install.d.ts +0 -25
- package/lib/permission-temporary-install.js +0 -86
- package/lib/permission-temporary-remote.d.ts +0 -19
- package/lib/permission-temporary-remote.js +0 -75
- package/lib/permission-temporary-rpc.d.ts +0 -37
- package/lib/permission-temporary-rpc.js +0 -154
- package/lib/permission-temporary-types.d.ts +0 -47
- package/lib/permission-temporary-types.js +0 -2
- package/lib/permission-temporary-web.d.ts +0 -11
- package/lib/permission-temporary-web.js +0 -154
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-gateway@0.2.1-rc.2.patch +0 -13291
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-remotes@0.2.1-rc.2.patch +0 -9133
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-client-ui-approval@0.2.1-rc.2.patch +0 -156
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-subagent@0.2.1-rc.2.patch +0 -3546
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-user-approval@0.2.1-rc.2.patch +0 -431
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-web@0.2.1-rc.2.patch +0 -119
- package/patches/dsh-approval-settlement/README.md +0 -41
- package/patches/dsh-approval-settlement/metadata.json +0 -10
- package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-loop@0.2.1-rc.2.patch +0 -383
- package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-preset-registry@0.2.1-rc.2.patch +0 -55
- package/patches/dsh-session-activation/@deepseek-ai__dsh-api-session-controller@0.2.1-rc.2.patch +0 -16673
- package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-subagent@0.2.1-rc.2.patch +0 -29
- package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-workspace@0.2.1-rc.2.patch +0 -196
- package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence-jsonl@0.2.1-rc.2.patch +0 -35
- package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence@0.2.1-rc.2.patch +0 -40
package/docs/compatibility.md
CHANGED
|
@@ -24,11 +24,7 @@ Stores use separate CAS and atomic-write boundaries. Committed saves aren't roll
|
|
|
24
24
|
|
|
25
25
|
### Native history composition
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Required Clients obtain generation-bound readiness and an opaque full-address lease before retention. The actual receiving Host validates protected RPC/stream requests before native lookup; unsupported Hosts and missing or retired readiness owners fail closed without falling back to ordinary follow. Main navigation waits for a ready replacement before releasing the old reference, and child sidebar resources prepare before retaining. These preparations authorize only browsing, not migration, continuation or execution.
|
|
30
|
-
|
|
31
|
-
Empty-browser component coverage uses the native Renderer, workspace navigation, child resource and failure Toast with test-owned layout, controls and a logical carrier. Separate loopback HTTP/WebSocket coverage exercises socket-wait guard retirement, native Session transport retry under a separately owned stable Connection generation, and actual receiving-Host replacement with native authentication and reconnect. Full application/Desktop carrier verification remains outstanding; see the [roadmap](roadmap.md).
|
|
27
|
+
DSMM runs against the unpatched native DSH packages: it installs no Host-side patches and injects no bootstrap flags. Historical sessions stay readable through native history surfaces, and a persisted DSMM session resumes with a fresh admission built from the current deployment; persisted mode choices remain user intent, while old delegation authority never survives.
|
|
32
28
|
|
|
33
29
|
### Execution ownership
|
|
34
30
|
|
|
@@ -36,7 +32,7 @@ Role calls wait for native activation results by default; only `completed` is no
|
|
|
36
32
|
|
|
37
33
|
Queue/Steer/interrupt apply only to supported live direct children under exact-parent/operator authority. Descendant views are read-only. Missing native capability disables that operation with a reason; unknown sends aren't automatically resent. Requested role/model data isn't actual execution identity. See [Agent presets](agent-presets.md).
|
|
38
34
|
|
|
39
|
-
DSMM
|
|
35
|
+
Resuming a persisted DSMM session builds a fresh admission from the current deployment and validates its mounted composition again; configuration, PluginRecord metadata, labels or child IDs never reconstruct authorization. A resumed child without its exact live parent stays refused: delegated authority exists only on the live parent that admitted it. Preserve readable history; don't substitute a persona, reset a session or import old data automatically. Native factory load/repair can precede the created guard, so a refusal doesn't promise the log was never opened. Clear/compact can retain policy only with the exact live object and admission, not inferred lineage.
|
|
40
36
|
|
|
41
37
|
Standard supported model calls use native prepared calls. Raw/custom and Pi-AI stop-only calls use the minimal public completions seam for self-contained literal or explicit model-mapping configurations. Catalog-backed raw combinations that can't be reliably reproduced are rejected for both native and DSMM parameter sources, without disabling standard Coding. Native effort encoding/capability metadata isn't rewritten. See [model routing](model-routing.md).
|
|
42
38
|
|
|
@@ -9,7 +9,7 @@ Model selection, authentication, permissions, session ownership and package load
|
|
|
9
9
|
| ocmm area | DSMM contract |
|
|
10
10
|
| --- | --- |
|
|
11
11
|
| Deepwork workflow | Risk-based discovery and planning adapted to native tools. Complex product behavior retains orchestrator-owned planning/criticism; bounded routine work doesn't require a ceremonial approval loop. |
|
|
12
|
-
| Roles and categories | 11 base roles and 11 categories with canonical `dsmm-*` IDs. Cross-cutting defaults off. Only
|
|
12
|
+
| Roles and categories | 11 base roles and 11 categories with canonical `dsmm-*` IDs. Cross-cutting defaults off. Only the Orchestrator is standing-root eligible; other roles are internal delegation targets. |
|
|
13
13
|
| Skills | Fourteen configurable lazy native skills, discovered through metadata and loaded through `get`/`resourceBase`, not full bodies injected every turn. |
|
|
14
14
|
| Model routing | Generic native capabilities, `modelParameters`, role primary/fallback routes and explicit invocation levels. Ordinary root model/effort stays native-owned. |
|
|
15
15
|
| Settings | Sparse Global/native deployment layers plus independent named Profiles. Save, future default, mode and native model selection have independent capabilities; live overlay Apply is unavailable. |
|
|
@@ -24,13 +24,21 @@ Storage CAS and runtime adoption are separate from native call approval. Saves r
|
|
|
24
24
|
|
|
25
25
|
Configuration writes require the real native operator, exact entry/form or Root authority and a live connection/owner through every await and immediately before commit. Serialized provenance, a client loopback claim or an old registration isn't authority. Only relevant effective permission changes coordinate revocation; unrelated model/locale/display edits aren't a second approval gate. A committed write stays committed when notification or observation fails, with refresh-required/unsynchronized status. An unconfirmed native result requires reread, not blind retry.
|
|
26
26
|
|
|
27
|
-
## Configuration drawer and
|
|
27
|
+
## Configuration drawer and command rules
|
|
28
28
|
|
|
29
29
|
Use **Plugins → DSMM bundle config → Permissions**. The selected Global/native-profile scope edits its sparse deployment policy; a separate Root-rules transaction writes Global only under the existing live operator, exact open Root, registration and synchronized-policy authority. A child, stale connection, read-only Host or shadowing native policy doesn't acquire a fallback Global write. Named Profiles can't grant these permissions. No duplicate Settings permission page or Conversation permission tab is registered.
|
|
30
30
|
|
|
31
|
-
`permissionControl.nativeCommands` defaults off.
|
|
31
|
+
`permissionControl.nativeCommands` defaults off. Each entry stores exactly one match shape, `{ tool, workingDirectory, commandPattern }`. Legacy `executable`/`subcommand`/`args` entries are not migrated, converted or silently dropped: configuration, persistence, runtime and the form reject them, so an older configuration must be rewritten explicitly rather than widened in place.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
Entries use `executable BLANK subcommands [BLANK "*"]`, where subcommands are `|`-separated literals: `go build|test` and `go build|test *` are equivalent and allow zero or more trailing argv. `*` only stands for the whole trailing argument list; there is no character glob, regex, executable alternative, parenthesized group or cross-token alternative. Literals allow Unicode letters/marks/digits plus `_ . / : = + % -`, and the executable may also contain Windows path backslashes; quotes, escapes and whitespace inside a path are unsupported. A single-token call or a call with no subcommand position has no pattern equivalent, and any allowed trailing arguments are broader than a formerly fixed argv list.
|
|
34
|
+
|
|
35
|
+
The pattern is compared against the actual call only after the existing static literal parser accepts it. `go build|test` typed into a real shell is still pipe syntax and gains nothing from a configured pattern; pipes, chaining, newlines, redirects, substitutions, expansions and wrapper/interpreter calls continue on the ordinary native path. A non-match never turns into a blanket refusal. Case, executable spelling, subcommand spelling and the Host-normalized effective cwd remain literal, and no subdirectory access is implied.
|
|
36
|
+
|
|
37
|
+
Trailing arguments mean the selected program keeps its own capabilities, including build scripts, test code and options such as `go test -exec` that launch other programs. The static shell parse only excludes outer shell composition; it is not program-semantic or filesystem isolation. This feature adds no path, temp-directory or cache-root authorization. All hits are collected together: differing sandbox modes stay `ambiguous` and fall back to the native path, and `ask` wins within one sandbox mode. There is no longest-prefix or entry-order precedence.
|
|
38
|
+
|
|
39
|
+
New UI entries use Ask and `workspace-write`, not full access; an Allow entry can't replace downstream Ask/Deny or a role's read-only ceiling. The UI offers no entry that creates `danger-full-access`, and an existing value from another source is displayed with its original restriction. The editor has one pattern field per entry: correcting invalid pattern text never widens an entry, and only Save persists it. Removing a row discards only that row's draft and keeps every other row's edits; Unset replaces the whole array with the inherited list.
|
|
40
|
+
|
|
41
|
+
Observed `kind:shell` registration isn't proof of the actual executor, environment, executable or sandbox. The editor doesn't auto-certify those values. Missing/stale controller or registration identity still refuses consumption. Saving a rule isn't native manual approval and doesn't solve an unexplained read-only Git prompt; that investigation needs the full triggering call and approval reason.
|
|
34
42
|
|
|
35
43
|
## Capability limits
|
|
36
44
|
|
package/docs/roadmap.md
CHANGED
|
@@ -23,11 +23,11 @@ Native call views show the target in collapsed rows, distinguish requested from
|
|
|
23
23
|
| Profile selection in a new session | The working tree supports choosing a profile or deployment defaults before the first turn. | Preserve first-request, child-routing and draft behavior through supported native Client integration. |
|
|
24
24
|
| Live overlay Apply | Unavailable. Save/select a future default for a new session; ordinary model and mode actions retain independent capabilities. | Exact configuration/call/approval binding without cross-call authority reuse. See [approval boundaries](deferred-native-approval-risk.md). |
|
|
25
25
|
| Running-call background handoff | Unavailable. Select waiting or native parent delivery before starting; don't restart a task to simulate transfer. | A supported same-activation ownership/delivery handoff. |
|
|
26
|
-
|
|
|
26
|
+
| Restricted-role continuation after restoration | Native history and restoration remain available under DSH's rules; historical metadata does not grant current DSMM role authority. DSMM-specific restrictions are not guaranteed across restoration. | Supported Host lifecycle hooks that preserve the required readonly, tool and depth restrictions without a global restoration gate. |
|
|
27
27
|
| Non-disruptive hot update | No uninterrupted live-session guarantee. Retire admissions and let native owners cancel/dispose owned work; guards remain fail-closed. | Native lifecycle support that preserves active task/approval boundaries. |
|
|
28
28
|
| 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. |
|
|
29
29
|
| Repeated read-only Git approval | Keep native approval; don't expand Allow rules based on an unexplained prompt. | Exact triggering command, working directory and approval reason. |
|
|
30
|
-
|
|
|
30
|
+
| 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). |
|
|
31
31
|
| External LSP | DSMM automatic mounting isn't delivered. DSH native definition/references/implementation/hover and independently configured MCP remain separate. | Supported APIs and explicit permissions for additional operations; no automatic external remount or scope expansion. |
|
|
32
32
|
|
|
33
33
|
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).
|
|
@@ -58,20 +58,40 @@ Sessions created by DSMM `0.2.x` must remain loadable under the supported curren
|
|
|
58
58
|
- Keep only information needed to make a choice or act: what a setting affects, when it takes effect, important permission/data consequences and a concise recovery action when something fails. Place optional technical diagnostics behind a details disclosure.
|
|
59
59
|
- Review every drawer and its empty, disabled, saved and error states. Users must be able to find the controls and understand their choices without reading implementation explanations; preserve keyboard access and accessible labels.
|
|
60
60
|
|
|
61
|
-
##
|
|
61
|
+
## Working-tree implementation: dispatcher-only native presets
|
|
62
62
|
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
- Precise additional filesystem roots and whole-process network restrictions require an enforcing backend and a public execution contract absent from the current sandbox policy. This is a delivery blocker for that full scope, not permission to disable sandboxing, override native denial, broaden read-only access or ship ineffective configuration.
|
|
63
|
+
- Register only the dispatcher as a selectable native preset. Delegation targets are not registered compositions: a delegated child shares its parent's standing composition, and the admitted invocation carries its role, identity and restrictions.
|
|
64
|
+
- Blank preset switches to any other DSMM role are refused by the native registry; the admitted composition keeps executing.
|
|
65
|
+
- DSMM installs no Host package patches. Native restoration does not enroll reconstructed Agents in DSMM admission; history stays readable, while delegation authority and child residency are never reconstructed from logs.
|
|
67
66
|
|
|
68
|
-
|
|
67
|
+
Existing [Fake-IP fetch](web-fetch-fakeip.md) protections remain in force.
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
## Current: command-pattern allowlists
|
|
71
70
|
|
|
72
|
-
|
|
71
|
+
- Use command patterns as the sole native-command rule format. `go build|test` matches either subcommand with variable trailing arguments. Legacy exact-command configuration is rejected without migration or silent permission expansion. See the [implementation plan](superpowers/plans/2026-10-21-command-pattern-only.md).
|
|
72
|
+
- Match parsed command tokens rather than shell-string prefixes. A matching command does not authorize an additional pipeline, chained command or substitution. Variable arguments can still invoke the selected program's own scripts or subprocess features; sandbox and role restrictions remain necessary.
|
|
73
|
+
- Preserve native deny/never, readonly, current ownership, approval consumption and configuration CAS. Pattern matching does not itself widen the sandbox or create remembered session approval.
|
|
73
74
|
|
|
74
|
-
|
|
75
|
+
## Planned: session-scoped approval reuse
|
|
76
|
+
|
|
77
|
+
- Implementation is deferred pending reassessment of a newer DSH release. Prefer native remembered approvals if available; otherwise decide whether a DSMM-scoped extension is warranted. The goals below do not select an implementation or authorize Host changes.
|
|
78
|
+
- Let the model propose a command/subcommand pattern or supported path scope together with a reason. The operator chooses between approving once and remembering that explicit scope for the current session; the model cannot grant itself permission.
|
|
79
|
+
- Keep remembered grants in memory for the current live session and Host run, with a visible revoke action. Do not save them as Global/profile configuration, restore them from history, or automatically share them with other sessions or delegated Agents. Session disposal, Host restart or plugin retirement invalidates them.
|
|
80
|
+
- Display the approved command scope and sandbox mode separately. Reuse approval only for matching calls and the explicitly approved mode through the native approval service; native never/deny and readonly/role ceilings remain effective.
|
|
81
|
+
- A remembered `danger-full-access` approval, if supported, must explicitly disclose the broader OS-permitted write scope. It is not a directory-only grant. Approving one command once must not silently disable confinement for later commands.
|
|
82
|
+
- Verify reuse, non-matching calls, revocation and lifetime expiry through the supported approval path. This capability is planned, not part of the command-pattern implementation.
|
|
83
|
+
|
|
84
|
+
## Planned: external-path and temporary-directory grants
|
|
85
|
+
|
|
86
|
+
- Reassess the available public DSH interfaces before choosing an implementation. This capability remains deferred rather than blocking command-pattern or configuration improvements.
|
|
87
|
+
- Target independent read and write permissions for exact paths or directory trees: normal workspace writes, configured external reads, and writes only to explicitly authorized external locations. A dedicated system-temp `dsh` subtree is a useful opt-in scope for creating, editing and cleaning Agent-owned temporary files; it must not grant access to the entire system temp directory or authorize deleting unrelated files.
|
|
88
|
+
- DSH `0.2.1-rc.2` has no additional writable-root field in its standard execution policy. Its Windows backend supplies a private per-session/workspace `dsh-*` directory through child-process `TMP`/`TEMP`; this is neither a configurable fixed `temp/dsh` grant nor proof that native file tools share the same allowance.
|
|
89
|
+
- Broader support depends on public Host path-grant interfaces consumed consistently by native file tools and shell confinement. Preserve readonly, resolve path/link boundaries, and verify that adjacent unapproved locations remain unwritable. Do not expose a nonfunctional setting, substitute full access, or implement a private ACL framework in DSMM.
|
|
90
|
+
|
|
91
|
+
## Upstream follow-up: Windows Git Schannel
|
|
92
|
+
|
|
93
|
+
- Track the sandbox/Schannel incompatibility reproduced with DSH `0.2.1-rc.2`; an upstream fix is not yet confirmed. Details and the explicit per-command OpenSSL workaround are in [runtime limitations](runtime-recovery.md#known-host-limitation-windows-sandbox-and-git-schannel).
|
|
94
|
+
- On a candidate DSH update, verify Git HTTPS with Schannel through both native and DSMM-managed `workspace-write` execution, while retaining denial of unauthorized external writes. Do not disable certificate validation, silently change TLS backends or relax sandbox restrictions to obtain a passing result.
|
|
75
95
|
|
|
76
96
|
## Publication and Desktop installation
|
|
77
97
|
|
package/docs/runtime-recovery.md
CHANGED
|
@@ -45,8 +45,36 @@ Supported exact live children may receive Queue/Steer or interrupt through nativ
|
|
|
45
45
|
|
|
46
46
|
## Cold resume and lifetime
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
Native history loading, reading, promotion, explicit/declarative restoration and durable restoration after provider unregistration follow DSH's own rules. DSMM doesn't add a global restoration gate or require an execution-admission SDK, owner slot or participant protocol. DSMM read-only history queries don't themselves call resume.
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
DSMM uses public serial `agent/created` callbacks for fresh admission. A role's first creation requires its exact pending parent/provider/invocation, standing composition, scope, tool filter and depth ceiling. Role binding precedes Agent-scoped installation; publication rechecks current owner, exact parent, cancellation and composition after installation. Fresh ordinary children of a non-controlled admitted parent inherit its captured configuration and tool ceiling without acquiring a role invocation.
|
|
51
|
+
|
|
52
|
+
Native `resume` doesn't enroll a reconstructed Agent in DSMM admission. Historical descriptors, role/preset labels, mode events and profile selections don't grant current DSMM role qualification. Fresh roots use current `prepareRoot` and root eligibility checks; saved profile-selection `admissionEpoch` and disk CAS retain their configuration-selection meaning, not execution authority. Old retry, approval and pending-call state isn't restored.
|
|
53
|
+
|
|
54
|
+
Restricted-role continuation can lose DSMM-specific readonly, tool-filter and depth captures on restoration. The current Host doesn't provide a supported guarantee of safe DSMM restricted-role continuation across restoration, unload/reinstall or restart. That capability is deferred; a restored native request isn't proof of valid DSMM role admission or preserved restrictions. This limitation doesn't block native restoration or ordinary configuration/UI saves.
|
|
55
|
+
|
|
56
|
+
Official Registry, Runtime and JSONL plugins own lifecycle and storage. DSMM live captures and callbacks retain their exact Agent and current owner checks; Agent-scoped guards remain fail-closed after that owner retires. They don't enroll other Agents or revoke native history globally. Ordinary unadmitted native tool calls, including managed shell calls, retain native approval/sandbox behavior and applicable permission rules through exact live registry, realm and lifetime checks, without acquiring DSMM role or configuration-write rights. Retired exact DSMM captures cannot use that native path. DSMM-specific entry points still require their applicable live admission and permission ceilings; native restoration doesn't provision those rights. No descriptor authorization ledger, persisted grant, cold migration, automatic history rewrite or cross-process automatic retry is provided.
|
|
51
57
|
|
|
52
58
|
Diagnostics omit request/provider bodies, credentials and goal/todo text.
|
|
59
|
+
|
|
60
|
+
## Known Host limitation: Windows sandbox and Git Schannel
|
|
61
|
+
|
|
62
|
+
DSH `0.2.1-rc.2` with the `windows-acl` backend can fail HTTPS Git operations under `workspace-write` with `schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS (0x8009030e)`. This was reproduced on 2026-10-21 using a public repository and isolated Git configuration, without account authentication.
|
|
63
|
+
|
|
64
|
+
The same Git command succeeds outside the sandbox, fails through both the native DSH executor and the DSMM-managed native tool with unchanged effective sandbox policy, and succeeds inside the same sandbox when explicitly using OpenSSL. This isolates the failure to the Windows sandbox/Schannel interaction, not a DSMM-specific permission decision. The specific restricted-token flag, SID or integrity-level interaction remains undetermined; the error does not establish missing GitHub credentials.
|
|
65
|
+
|
|
66
|
+
An explicit per-command workaround, where the installed Git supports OpenSSL and its certificate trust configuration is suitable, is:
|
|
67
|
+
|
|
68
|
+
```powershell
|
|
69
|
+
git -c http.sslBackend=openssl ls-remote https://github.com/git/git.git HEAD
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
This changes the TLS trust backend, not the sandbox policy, and keeps certificate verification enabled. DSMM must not inject it silently, change global Git configuration, disable TLS verification or switch to full access to hide the failure.
|
|
73
|
+
|
|
74
|
+
Upstream fix status is unconfirmed. On a later DSH version, recheck the same read-only Git operation with Schannel through the native `workspace-write` executor and DSMM-managed path. A sandbox fix must also preserve denial of workspace-external writes; a successful full-access command is not a fix. No local Host or dependency patch is applied for this limitation.
|
|
75
|
+
|
|
76
|
+
### PowerShell in a Fake-IP environment
|
|
77
|
+
|
|
78
|
+
An isolated PowerShell 7 comparison on DSH `0.2.1-rc.2` confirmed HTTPS access to `https://example.com/` through a Mihomo route with a DNS answer in `198.18.0.0/16`. Node HTTPS/OpenSSL succeeded with certificate verification in the ordinary process, native `windows-acl` `workspace-write` executor and DSMM-managed pwsh tool. Windows curl/Schannel succeeded outside the sandbox but returned exit code 35 and `SEC_E_NO_CREDENTIALS` in both sandbox paths. These results establish connectivity for that Fake-IP route, not a general guarantee for every destination or proxy setup; they do not identify Fake-IP as the cause of the Schannel failure.
|
|
79
|
+
|
|
80
|
+
The comparison had no `HTTP_PROXY`, `HTTPS_PROXY`, `ALL_PROXY` or `NO_PROXY` environment variables. Propagation of explicitly configured proxies remains unverified. The DSMM tool result preserves the native command's exit code; an outer `isError: false` alone does not mean the command succeeded. The opt-in [Fake-IP web provider](web-fetch-fakeip.md) affects `ctx.web`, not shell routing or TLS. No bash, WSL or Git Bash network verification is claimed.
|
package/docs/settings-status.md
CHANGED
|
@@ -8,12 +8,14 @@ Effective settings resolve from **defaults → sparse global base → explicit n
|
|
|
8
8
|
|
|
9
9
|
<a id="native-plugins-configuration-d"></a>
|
|
10
10
|
|
|
11
|
-
**Plugins → DSMM bundle config** is the single deployment configuration surface, registered as `plugins.bundle.config` for `@dsmm/dsmm`. The scope selector chooses Global or current native-profile overrides;
|
|
11
|
+
**Plugins → DSMM bundle config** is the single deployment configuration surface, registered as `plugins.bundle.config` for `@dsmm/dsmm`. The scope selector chooses Global or current native-profile overrides. Five flat tabs cover Run and modules, Model routes and recovery, Workflow/roles/subagents, Permissions and safety, and Configuration state; Other/advanced appears only for ungrouped schema fields. Global edits use fixed `remote.dsmmConfig`. Profile edits use the public native form resolved from the authenticated snapshot's actual namespace. Runtime entry ID, package ID, row ID and form namespace aren't interchangeable. A profile write requires the actual descriptor revision and matching raw base/user provenance. Missing or mismatched identity leaves the profile scope unavailable or read-only, never falling back to Global. Named Profiles retains its separate Settings/header entries; no duplicate permission page or Conversation configuration tabs are registered.
|
|
12
12
|
|
|
13
13
|
Global and native-profile controls have independent Save, Refresh and Discard actions and revisions. There's no Save all or cross-layer transaction. Missing keys inherit, explicit same-default values pin, and Unset removes only the edited layer's key, not a higher Host pin. Plain objects merge recursively and arrays replace. Full merged validation follows sparse-layer validation; unknown/prototype keys, non-JSON values and raw volatile refs refuse.
|
|
14
14
|
|
|
15
15
|
Native structural controls and bounded schema-aware Advanced JSON cover applicable deployment settings. Advanced input is strict JSON, not named-document JSONC. Invalid text and conflicts stay visible. Refresh preserves dirty input and its original revision; explicit discard/reload rebases it. Connection replacement, disconnection, entry replacement and disposal fence old writes. Saving doesn't restart, cancel, apply a named profile or respawn LSP.
|
|
16
16
|
|
|
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. First load and explicit Refresh show loading; background rule revalidation keeps the existing view, focus and editing controls stable. Observed revocation, conflicts, disconnection and unsynchronized runtime still withdraw the affected mutation authority without discarding its draft.
|
|
18
|
+
|
|
17
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).
|
|
18
20
|
|
|
19
21
|
### Save authority and concurrency
|
|
@@ -34,7 +36,7 @@ On a mounted Host, desired-off affects new roots, not existing parents or their
|
|
|
34
36
|
|
|
35
37
|
The inspector separates merged desired, startup-mounted/captured, next-root preview, and current-session admission. Without an actual session, current admission is unknown. Host bundle enablement also remains unknown when the public interface can't observe it. Sources, capture origins, global file version, native descriptor version and named snapshot reference aren't one acknowledgment.
|
|
36
38
|
|
|
37
|
-
`presets
|
|
39
|
+
`presets` only carries materialization settings (`materialize`, optional `root`). The dispatcher is the only standing root; there is no per-role root switch, and named overlays cannot configure presets. See [roles and composition](agent-presets.md#roles-and-composition) for the selection roster, forced creation/resume and read-only boundaries.
|
|
38
40
|
|
|
39
41
|
`permissionControl.enabled` defaults true independently of Deepwork. Permission settings are deployment-only: Global and native-profile settings may save them, while named/session overlays cannot. Only `enabled` is startup-pinned: live saves do not remount or change its admitted value, including for newly created roots; a difference is reported as `permissionControl.enabled` restart-required. A separate cold start captures the new toggle. Dynamic outside-read, web and persistent rules require runtime revision synchronization rather than restart. OFF does not disable Core guards, readonly, native sandbox/approval or tool filters. Configuration and startup admission do not establish that a permission executor is mounted or synchronized. Actual native standing `danger-full-access` is full access: DSMM adds no ask, downgrade, path permit or refusal for unknown operations or missing classification facts. Only a deterministically matched existing explicit deny blacklist may produce a native pre-approval denial. A requested mode or configured command target alone isn't effective native authority. See [native permissions](native-permissions.md).
|
|
40
42
|
|
|
@@ -50,7 +52,7 @@ Only relevant effective permission changes coordinate revocation. Unrelated loca
|
|
|
50
52
|
|
|
51
53
|
## Runtime controls
|
|
52
54
|
|
|
53
|
-
`/deepwork [off|message]` changes the receiving session's mode. Explicit intent, including a same-default choice, is separate from profile defaults. Official minimal conversations default off; DW presets default on unless explicit intent says otherwise. Off hides common workflow/DSMM skills, not persona, read-only restrictions or host/Git permissions. Busy mutations refuse instead of queuing. Persisted intent doesn't
|
|
55
|
+
`/deepwork [off|message]` changes the receiving session's mode. Explicit intent, including a same-default choice, is separate from profile defaults. Official minimal conversations default off; DW presets and freshly admitted role children default on unless explicit intent says otherwise. Off hides common workflow/DSMM skills, not persona, read-only restrictions or host/Git permissions. Busy mutations refuse instead of queuing. Persisted mode/profile intent doesn't grant current DSMM role admission after reconstruction. Slash commands belong to the native command adapter, not headless task text.
|
|
54
56
|
|
|
55
57
|
`canSelectModel`, `canToggleMode` and `canApplyOverlay` describe independent actions and refusal reasons. Live overlay Apply is unavailable (`new-session-required`); save/select a future default for a new session. This doesn't disable ordinary mode changes or **Use profile model** where their own native service, idle/session identity and manual-intent checks pass. Use profile model selects from admitted immutable configuration, doesn't write a profile pointer, and respects a newer manual choice even when its value is unchanged.
|
|
56
58
|
|
|
@@ -72,12 +74,12 @@ Official AgentRegistry, SubagentRuntime and JSONL namespace plugins own executio
|
|
|
72
74
|
|
|
73
75
|
The [bundle patch](../cordis.patch.yml) adds DSMM to the native composition. Core configuration/status/permissions don't require active Deepwork or a child task. `runtime.enabled` isn't a current owner selector. Desired source, mounted capability and actual live admission remain separate facts.
|
|
74
76
|
|
|
75
|
-
`subagentRuntime` projects native `binding: stock | unavailable`, DSMM admission readiness (`deliveryFenceReady`), restart requirement and a bounded reason.
|
|
77
|
+
`subagentRuntime` projects native `binding: stock | unavailable`, DSMM admission readiness (`deliveryFenceReady`), restart requirement and a bounded reason. Readiness observes the native subagent service and activated, current DSMM admission owner. It doesn't certify every Agent, provider/control capability or restricted-role recovery across restoration. No experimental SDK API or global registry binding check is required. Saves retain actual native form revision/authorization and don't remount services.
|
|
76
78
|
|
|
77
79
|
Enabled background work must choose `run_in_background:true` before `startActivation`, using `delivery:'parent'`; otherwise delivery is to the waiting caller. Accepted child/message IDs aren't completed results. Running waiting calls have no handoff action. Native receipt disposal handles cancellation after publication and waits for cleanup.
|
|
78
80
|
|
|
79
81
|
Live direct-child Queue/Steer/interrupt require actual capabilities and exact parent/operator/lifetime authority. Read-only descendant inspection grants no control. Readiness loss closes DSMM execution; stale handles don't grant authority. Agent-scoped guards remain fail-closed after owner retirement. Hot replacement isn't a promise of uninterrupted live-session operation.
|
|
80
82
|
|
|
81
|
-
|
|
83
|
+
Native history loading, reading, promotion, explicit/declarative restoration and durable restoration after provider unregistration remain native-owned, without a global DSMM gate. Reconstruction doesn't enroll the new Agent as a DSMM role; historical metadata isn't current role authorization. Fresh root admission and blank configuration selection preserve profile-selection epochs and disk CAS; first role creation retains exact pending, parent/provider, readonly, tool-filter and depth checks. Exact admitted live objects and DSMM entry points remain guarded after owner retirement. Preserving DSMM fine-grained role restrictions across restoration isn't guaranteed on this Host and is deferred, not reported ready; restored native execution isn't verified DSMM restricted-role continuation. This limitation doesn't block configuration/UI saves. Read-only history inspection doesn't itself resume Agents. No cold migration, persistent grant or automatic history rewrite is supplied. See [runtime recovery](runtime-recovery.md#cold-resume-and-lifetime).
|
|
82
84
|
|
|
83
85
|
*Author's note: For a DSH deployment operator; distinguish a successful configuration save from captured runtime availability before applying policy.*
|
package/docs/skill-sync.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# DSMM source-content synchronization
|
|
2
2
|
|
|
3
|
-
DSMM 0.3.1 targets exactly **DSH 0.2.1-rc.2**. Source synchronization
|
|
3
|
+
DSMM 0.3.1 targets exactly **DSH 0.2.1-rc.2**. Source synchronization is a monorepo maintenance operation that directly reads the current OCMM repository-root files declared by `scripts/source-inventory.mjs`. Generated `prompts/source/manifest.json` records the repository-relative source → artifact → consumer paths, source anchors, adaptation rules, canonical role/skill inventories, attribution and exclusions. Runtime uses package-relative prepared assets only; it never reads the repository-root sources or requires an OCMM checkout, global SDK path or maintenance compiler. Root AGENTS, Codex bundles and user/provider/model configuration are not synchronization inputs.
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The source closure is limited to the two catalog TS files, `src/hooks/config.ts`, prompt-loader/model-family assembly inputs, shared shell safety, the selected v1 role/category/workflow Markdown, and the fourteen recursive skill resource trees. Local source, documentation and generated resources are not locked to recorded bytes. Required resources, repository-root containment and regular non-linked paths are checked. Third-party downloads retain their upstream integrity verification and attribution.
|
|
6
6
|
|
|
7
7
|
## Inventories and assembly
|
|
8
8
|
|
|
@@ -24,21 +24,20 @@ Ancestor snapshot precedence, incomplete-observation refusal, invocation policy
|
|
|
24
24
|
|
|
25
25
|
`preset-skills.ts` is internal: admission installs `registerAgentSkills` for the exact Agent, and that scope owns invalidation and release. It isn't a public package plugin or a separate global lifecycle owner. Mode/preset changes reconcile affected resources only; reading rechecks cancellation, scope and generation before returning a body. Agent scopes remain isolated.
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## Synchronize and check
|
|
28
28
|
|
|
29
|
-
Use existing Node/TypeScript/pnpm. To
|
|
29
|
+
Use existing Node/TypeScript/pnpm. To adapt the current declared repository-root sources, run from `dsmm/` with the existing complete fixed-pin frontend library:
|
|
30
30
|
|
|
31
31
|
```powershell
|
|
32
|
-
|
|
33
|
-
pnpm run sync:source # adapts the sealed snapshot; never refreshes it implicitly
|
|
32
|
+
pnpm run sync:source
|
|
34
33
|
```
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
Synchronization reads only the declared files and recursive skill trees from the same repository checkout. It rejects escaping paths, links, non-regular entries, missing inputs, source anchor drift, incomplete resource references and unknown prepared destination content. Explicit synchronization updates prepared outputs, while read-only checks report missing or additional resources without writing.
|
|
37
36
|
|
|
38
|
-
CI and
|
|
37
|
+
Repository CI and maintainers use the checkout's adapter/generator and repository-root sources:
|
|
39
38
|
|
|
40
39
|
```powershell
|
|
41
|
-
pnpm run sync:source #
|
|
40
|
+
pnpm run sync:source # rebuild prepared source targets from repository-root inputs
|
|
42
41
|
pnpm run build # offline frontend resource availability check first
|
|
43
42
|
pnpm run generate:roles # coordinated renderer owner, after build
|
|
44
43
|
pnpm run check:source # read-only resource availability and path checks
|
|
@@ -46,15 +45,15 @@ pnpm run check:source # read-only resource availability and path checks
|
|
|
46
45
|
|
|
47
46
|
`sync-source-assets.mjs --check` and `generate-role-assets.mjs --check` check required output availability without writing or enforcing byte equality. `check:source` combines those results with resource-reference and safe-path checks. Explicit generation still renders current source inputs and writes changed outputs; it is not a content-locking gate.
|
|
48
47
|
|
|
49
|
-
|
|
48
|
+
The direct regression check does not emit shared `lib/` or presets:
|
|
50
49
|
|
|
51
50
|
```powershell
|
|
52
|
-
node --import ./test/prompt-source-loader.mjs --test --experimental-strip-types --test-concurrency=1 test/source-
|
|
51
|
+
node --import ./test/prompt-source-loader.mjs --test --experimental-strip-types --test-concurrency=1 test/source-sync.test.ts
|
|
53
52
|
```
|
|
54
53
|
|
|
55
|
-
Regression coverage exercises
|
|
54
|
+
Regression coverage exercises direct repository-source loading, metadata generation, missing-resource errors, unsafe-path refusal and prepared-resource closure. It does not freeze source files, generated Markdown, licenses, line endings or local resources with hashes or whole-file comparisons. The resource synchronizer and role renderer remain separate maintenance entry points.
|
|
56
55
|
|
|
57
|
-
|
|
56
|
+
A standalone DSMM checkout or installed npm package cannot rerun source synchronization because maintenance requires the sibling repository-root source paths. This does not affect runtime: the npm package and other distribution surfaces consume only prepared package-relative prompts, skills and resources. A cold monorepo rebuild also needs the existing approved toolchain/dependencies and the **prepared complete frontend fixed-pin library**. An authorized release/build owner must preserve that library in the checkout or staging surface; missing bodies or inventory fail offline with no download or historical fallback. Separately authorized `pnpm run sync:frontend` can materialize missing fixed-pin resources, but is never an implicit CI/build/check action. No software installation is authorized by these commands.
|
|
58
57
|
|
|
59
58
|
Source Markdown is kept in full, with precise anchored changes and an explicit DSH resource/authority boundary. Native read/glob/grep, web_search/web_fetch, write/edit, bash/pwsh and skill invocation are the tools mapped here; native read uses `file_path`. Exposed `todo_write` replaces the owning Agent's whole content/status list under its actual parallel policy; exposed `ask_user_question` provides questions, otherwise conversation does. LSP, image/browser, documentation services and native controls remain actual-catalog/route capabilities. Host compaction is not OCMM `compress`. No Task, todowrite, compress or Context7 MCP interface is invented. Template fields describe an assignment, not callable parameters. Native delegation groups preserve root/stage-owner Builder versus bounded child Builder, strict-leaf research, read-only utility restrictions and local-coordinator specialists; runtime policy enforces these boundaries.
|
|
60
59
|
|
|
@@ -92,4 +91,4 @@ Body/data/Python resources and `.frontend-materialized.json` are gitignored. Lic
|
|
|
92
91
|
|
|
93
92
|
`node scripts/materialize-frontend.mjs` defaults to read-only/offline checks for required resources, safe paths and referenced dependencies. Build and readiness checks do not enforce local content hashes. Explicit `sync:frontend` fetches missing resources without replacing existing files. Runtime distribution needs package-relative resources, not an upstream checkout or network access.
|
|
94
93
|
|
|
95
|
-
**Distribution handoff:** with the authorized build toolchain and complete fixed-pin resources, run
|
|
94
|
+
**Distribution handoff:** with the authorized build toolchain, repository-root sources and complete fixed-pin resources, run `sync:source`, then coordinated build/generate/check/pack. Only separately authorized materialization uses `sync:frontend`. Prepared prompts/skills and every fixed-pin runtime resource must be delivered; ignored status does not supply them to a cold checkout. Frozen tarballs must already carry the complete library. Default build/check does not fetch resources. Local compiled/materialized content is not proof of packed delivery. Full packed inventory and missing-resource refusal remain separate evidence from native runtime/UI capability, permission and lifecycle completion.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
1
|
import type { InjectFace, PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
|
|
3
2
|
import type { DsmmInvocationView, RoleControlAvailability, RoleControlChildView } from "../role-control-types.js";
|
|
4
3
|
import type { DsmmRoleRouteComparison } from "../profile-types.js";
|
|
@@ -12,7 +11,6 @@ export type ChildrenInjected = ChildrenActions & {
|
|
|
12
11
|
};
|
|
13
12
|
export type ChildrenPanelProps = InjectFace<ChildrenInjected> & Locale & {
|
|
14
13
|
sessionId?: string;
|
|
15
|
-
renderChildPermissions?: (child: RoleControlChildView) => ReactNode;
|
|
16
14
|
};
|
|
17
15
|
export declare function ControlAvailability({ value, label, t }: Locale & {
|
|
18
16
|
value?: RoleControlAvailability;
|
|
@@ -30,12 +28,11 @@ export declare function ChildComposer({ child, state, actions, t }: Locale & {
|
|
|
30
28
|
state: ChildrenSnapshot;
|
|
31
29
|
actions: ChildrenActions;
|
|
32
30
|
}): import("react").JSX.Element;
|
|
33
|
-
export declare function ChildDetails({ child, state, actions, t, inspection
|
|
31
|
+
export declare function ChildDetails({ child, state, actions, t, inspection }: Locale & {
|
|
34
32
|
child: RoleControlChildView;
|
|
35
33
|
state: ChildrenSnapshot;
|
|
36
34
|
actions: ChildrenActions;
|
|
37
35
|
inspection?: boolean;
|
|
38
|
-
renderChildPermissions?: ChildrenPanelProps["renderChildPermissions"];
|
|
39
36
|
}): import("react").JSX.Element;
|
|
40
37
|
/** Native session-scoped Conversation View, not a replacement composer or navigation shell. */
|
|
41
38
|
export declare function ChildrenPanel(props: ChildrenPanelProps): import("react").JSX.Element;
|
|
@@ -52,8 +52,8 @@ export function ChildComposer({ child, state, actions, t }) {
|
|
|
52
52
|
} }), _jsx(Button, { type: "button", variant: "outline", disabled: !canImages, "aria-describedby": `${prefix}-images-hint`, onClick: () => { if (canImages)
|
|
53
53
|
picker.current?.click(); }, children: t("images") }), _jsx(ControlAvailability, { value: state.snapshot?.capabilities.images, label: "imageAvailability", t: t }), draft.images.length > 0 && _jsx("ul", { className: "dsmm-profile-list", children: draft.images.map((image, index) => _jsxs("li", { children: [_jsxs("p", { children: [image.name ?? image.mediaType, " \u00B7 ", image.mediaType] }), _jsx(Button, { type: "button", variant: "outline", disabled: pending || draft.imageBusy, onClick: () => actions.removeImage(generation, child.id, image), "aria-label": `${t("removeImage")}: ${image.name ?? image.mediaType}`, children: t("removeImage") })] }, index)) })] }), draft.uncertain && _jsxs("div", { className: "dsmm-warning", children: [_jsx("p", { id: `${prefix}-unknown`, children: t("unknown") }), _jsx(Button, { type: "button", variant: "outline", disabled: !state.fresh || state.reading || pending, onClick: () => actions.acknowledgeUnknown(generation, child.id), children: t("acknowledge") })] }), _jsx(ControlAvailability, { value: !enabled(state.snapshot?.capabilities.prompt) ? state.snapshot?.capabilities.prompt : child.controls.prompt, label: "promptAvailability", t: t }), draft.text.trim() === "" && draft.images.length === 0 && _jsx("p", { className: "dsmm-hint", children: t("emptyMessage") }), draft.images.length > 0 && !enabled(state.snapshot?.capabilities.images) && _jsx("p", { className: "dsmm-hint", children: t("deniedImages") }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "submit", variant: "primary", disabled: !submit, children: t("send") }), _jsx(Button, { type: "button", variant: "outline", disabled: !available || !enabled(state.snapshot?.capabilities.interrupt) || !enabled(child.controls.interrupt) || child.readonly || child.mode !== "continuable", onClick: () => void actions.interrupt(generation, child.id), children: t("interrupt") })] }), _jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", children: pending ? t("pending") : draft.imageBusy ? t("imageReading") : "" })] });
|
|
54
54
|
}
|
|
55
|
-
export function ChildDetails({ child, state, actions, t, inspection = false
|
|
56
|
-
return _jsxs("fieldset", { children: [_jsx("legend", { children: child.label?.trim() ? child.label : child.id }), _jsxs("p", { children: [t("childId"), ": ", child.id] }), _jsxs("p", { children: [t("parentId"), ": ", child.parentSessionId] }), _jsxs("p", { children: [t("mode"), ": ", child.mode] }), _jsxs("p", { children: [t("activity"), ": ", child.activity] }), (inspection || child.readonly) && _jsx("p", { children: t("readonly") }), child.mode === "one-shot" && _jsx("p", { className: "dsmm-hint", children: t("oneShot") }), _jsx(RouteComparisonDetails, { value: child.routeComparison, t: t }), _jsx(InvocationDetails, { value: child.invocation, t: t, showComparison: false }), (!inspection || !child.controls.prompt.enabled) && _jsx(ControlAvailability, { value: child.controls.prompt, label: "promptAvailability", t: t }), (!inspection || !child.controls.interrupt.enabled) && _jsx(ControlAvailability, { value: child.controls.interrupt, label: "interruptAvailability", t: t }), !inspection && child.mode === "continuable" && !child.readonly && _jsx(ChildComposer, { child: child, state: state, actions: actions, t: t }), !inspection &&
|
|
55
|
+
export function ChildDetails({ child, state, actions, t, inspection = false }) {
|
|
56
|
+
return _jsxs("fieldset", { children: [_jsx("legend", { children: child.label?.trim() ? child.label : child.id }), _jsxs("p", { children: [t("childId"), ": ", child.id] }), _jsxs("p", { children: [t("parentId"), ": ", child.parentSessionId] }), _jsxs("p", { children: [t("mode"), ": ", child.mode] }), _jsxs("p", { children: [t("activity"), ": ", child.activity] }), (inspection || child.readonly) && _jsx("p", { children: t("readonly") }), child.mode === "one-shot" && _jsx("p", { className: "dsmm-hint", children: t("oneShot") }), _jsx(RouteComparisonDetails, { value: child.routeComparison, t: t }), _jsx(InvocationDetails, { value: child.invocation, t: t, showComparison: false }), (!inspection || !child.controls.prompt.enabled) && _jsx(ControlAvailability, { value: child.controls.prompt, label: "promptAvailability", t: t }), (!inspection || !child.controls.interrupt.enabled) && _jsx(ControlAvailability, { value: child.controls.interrupt, label: "interruptAvailability", t: t }), !inspection && child.mode === "continuable" && !child.readonly && _jsx(ChildComposer, { child: child, state: state, actions: actions, t: t }), !inspection && _jsxs(_Fragment, { children: [_jsx(Issue, { value: state.issues.get(childActionKey(child.id)), t: t }), _jsx(Outcome, { value: state.outcomes.get(childActionKey(child.id)), t: t })] })] });
|
|
57
57
|
}
|
|
58
58
|
/** Native session-scoped Conversation View, not a replacement composer or navigation shell. */
|
|
59
59
|
export function ChildrenPanel(props) {
|
|
@@ -63,7 +63,7 @@ export function ChildrenPanel(props) {
|
|
|
63
63
|
const data = state.snapshot;
|
|
64
64
|
const refreshingDisabled = state.reading || state.pending.size > 0 || [...state.drafts.values()].some(draft => draft.imageBusy);
|
|
65
65
|
return _jsxs("section", { className: "dsmm-profiles dsmm-children", "aria-label": t("title"), "aria-busy": state.reading, children: [_jsx("h2", { children: t("title") }), _jsx("p", { className: "dsmm-hint", children: t("description") }), _jsxs("p", { children: [t("session"), ": ", state.sessionId] }), _jsx("div", { className: "dsmm-actions", children: _jsx(Button, { type: "button", variant: "outline", disabled: refreshingDisabled, onClick: () => void props.refresh(generation), children: t("refresh") }) }), _jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", children: state.reading ? t("reading") : state.pending.size > 0 ? t("pending") : !state.fresh ? t(data === null ? "unavailable" : "stale") : "" }), _jsx(Issue, { value: state.issue, t: t }), data !== null && _jsxs(_Fragment, { children: [_jsxs("p", { children: [t("epoch"), ": ", data.admissionEpoch] }), _jsxs("section", { className: "dsmm-availability", children: [_jsxs("p", { children: [t("runtime"), ": ", data.capabilities.runtime.binding] }), _jsxs("p", { children: [t("fence"), ": ", t(data.capabilities.runtime.deliveryFenceReady ? "yes" : "no")] }), _jsxs("p", { children: [t("restart"), ": ", t(data.capabilities.runtime.restartRequired ? "yes" : "no")] }), data.capabilities.runtime.reason !== undefined && _jsx("p", { children: t("authority") }), _jsx(ControlAvailability, { value: data.capabilities.prompt, label: "promptAvailability", t: t }), _jsx(ControlAvailability, { value: data.capabilities.interrupt, label: "interruptAvailability", t: t })] }), _jsx("p", { className: "dsmm-hint", children: t("backgroundHint") }), _jsxs("section", { className: "dsmm-zone", "aria-label": t("children"), children: [_jsx("h3", { children: t("children") }), data.children.length === 0 ? _jsx("p", { className: "dsmm-hint", children: t("emptyChildren") })
|
|
66
|
-
: data.children.map(child => _jsx(ChildDetails, { child: child, state: state, actions: props, t: t
|
|
66
|
+
: data.children.map(child => _jsx(ChildDetails, { child: child, state: state, actions: props, t: t }, child.id))] })] }), _jsxs("section", { className: "dsmm-zone", "aria-label": t("descendants"), children: [_jsx("h3", { children: t("descendants") }), _jsx(Issue, { value: state.descendantIssue, t: t }), state.descendants === null ? _jsx("p", { className: "dsmm-hint", children: t("treeUnavailable") }) : state.descendants.descendants.length === 0 ? _jsx("p", { className: "dsmm-hint", children: t("emptyDescendants") })
|
|
67
67
|
: state.descendants.descendants.map((entry, index) => _jsxs("div", { className: "dsmm-availability", children: [_jsxs("p", { children: [t("depth"), ": ", entry.depth] }), entry.kind === "diagnostic" ? _jsxs("div", { className: "dsmm-issue", children: [_jsx("p", { children: t("diagnostic", { reason: entry.reason }) }), _jsxs("p", { children: [t("childId"), ": ", entry.id] }), _jsxs("p", { children: [t("parentId"), ": ", entry.parentSessionId] })] })
|
|
68
68
|
: _jsxs(_Fragment, { children: [_jsxs("p", { children: [t("subtree"), ": ", t(entry.hasChildren ? "yes" : "no")] }), _jsx(ChildDetails, { child: entry.child, state: state, actions: props, t: t, inspection: true })] })] }, index))] })] });
|
|
69
69
|
}
|
|
@@ -5,11 +5,19 @@ import { at, enumValues, equal, mergeLayer, parseAdvanced, validateEditorValue }
|
|
|
5
5
|
import { deploymentFieldLabels } from "./deployment-locales.js";
|
|
6
6
|
import { permissionEn, permissionZh } from "./permission-locales.js";
|
|
7
7
|
import { NativeCommandEntries } from "./NativeCommandEntries.js";
|
|
8
|
+
import { PermissionRuleEntries } from "./PermissionRuleEntries.js";
|
|
8
9
|
export const permissionText = (t) => (key) => (t("global") === "DSMM 全局配置" ? permissionZh : permissionEn)[key];
|
|
9
10
|
export function fieldLabel(path, t) {
|
|
10
11
|
const key = path.at(-1);
|
|
11
12
|
if (path[0] === "permissionControl" && ["outsideReads", "webSearch", "webFetch", "rules", "nativeCommands", "rule"].includes(key))
|
|
12
13
|
return permissionText(t)(key);
|
|
14
|
+
if (path[0] === "guards") {
|
|
15
|
+
const guard = { scope: "guardScope", shellCommandSafety: "shellSafety", gitWriteGuard: "gitWrite", toolOutputTruncation: "toolOutputTruncation", planFormatValidation: "planValidation", questionLabelHelper: "questionLabels", todoDisciplineHelper: "todoDiscipline",
|
|
16
|
+
enabled: "enabled", maxInlineBytes: "maxInlineBytes", maxLabelChars: "maxLabelChars" };
|
|
17
|
+
const mapped = guard[key];
|
|
18
|
+
if (mapped !== undefined)
|
|
19
|
+
return permissionText(t)(mapped);
|
|
20
|
+
}
|
|
13
21
|
const item = deploymentFieldLabels[key];
|
|
14
22
|
return item === undefined ? key.replace(/^dsmm-/u, "").replace(/([a-z])([A-Z])/gu, "$1 $2") : item[t("global") === "DSMM 全局配置" ? 1 : 0];
|
|
15
23
|
}
|
|
@@ -43,13 +51,14 @@ export function AdvancedField({ schema, path, controller, inherited, upper, expa
|
|
|
43
51
|
export function ScalarField({ schema, path, controller, inherited, t }) {
|
|
44
52
|
const state = useSyncExternalStore(controller.subscribe, controller.getSnapshot), id = useId(), name = path.join(".");
|
|
45
53
|
const value = at(state.draft, path), raw = state.raw[name], bad = raw?.invalid === true;
|
|
54
|
+
const units = name === "guards.toolOutputTruncation.maxInlineBytes" ? ` · ${permissionText(t)("unitBytes")}` : name === "guards.questionLabelHelper.maxLabelChars" ? ` · ${permissionText(t)("unitChars")}` : "";
|
|
46
55
|
return _jsxs(_Fragment, { children: [_jsx("label", { htmlFor: id, children: fieldLabel(path, t) }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Input, { className: "dsmm-input", id: id, type: "text", inputMode: schema.type === "number" ? "decimal" : undefined, value: raw?.text ?? String(value ?? inherited ?? ""), disabled: !controller.canEdit(), "aria-invalid": bad, "aria-describedby": `${id}-error`, onChange: event => {
|
|
47
56
|
const text = event.currentTarget.value, candidate = schema.type === "number" ? Number(text) : text;
|
|
48
57
|
const valid = (schema.type !== "number" || text.trim() !== "") && validateEditorValue(candidate, schema);
|
|
49
58
|
controller.setRaw(name, text, !valid);
|
|
50
59
|
if (valid)
|
|
51
60
|
controller.edit(path, candidate);
|
|
52
|
-
} }), _jsx(Button, { type: "button", variant: "outline", "data-dsmm-unset": name, disabled: !controller.canEdit() || value === undefined && raw === undefined, onClick: () => { controller.clearRaw(name); controller.edit(path, undefined); }, children: t("unset") })] }), _jsxs("p", { id: `${id}-error`, className: "dsmm-hint", children: [bad ? t("invalid") : "", schema.type === "number" && (schema.min !== undefined || schema.max !== undefined) ? ` ${schema.min ?? "—"} – ${schema.max ?? "—"}` : ""] })] });
|
|
61
|
+
} }), _jsx(Button, { type: "button", variant: "outline", "data-dsmm-unset": name, disabled: !controller.canEdit() || value === undefined && raw === undefined, onClick: () => { controller.clearRaw(name); controller.edit(path, undefined); }, children: t("unset") })] }), _jsxs("p", { id: `${id}-error`, className: "dsmm-hint", children: [bad ? t("invalid") : "", schema.type === "number" && (schema.min !== undefined || schema.max !== undefined) ? ` ${schema.min ?? "—"} – ${schema.max ?? "—"}` : "", units] })] });
|
|
53
62
|
}
|
|
54
63
|
export function Field({ schema, path, controller, initiallyOpen = false, disclosures, t }) {
|
|
55
64
|
if (schema.type === "transform" && schema.inner !== undefined)
|
|
@@ -61,6 +70,8 @@ export function Field({ schema, path, controller, initiallyOpen = false, disclos
|
|
|
61
70
|
const choices = enumValues(schema), disabled = !controller.canEdit();
|
|
62
71
|
if (name === "permissionControl.nativeCommands.entries")
|
|
63
72
|
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) }) });
|
|
73
|
+
if (name === "permissionControl.rules")
|
|
74
|
+
return _jsx("div", { "data-field": name, children: _jsx(PermissionRuleEntries, { controller: controller, value: explicit, inherited: (inherited ?? []), disabled: disabled, onChange: value => controller.edit(path, value), expanded: open, onExpandedChange: expand, t: permissionText(t) }) });
|
|
64
75
|
if (schema.type === "object" && schema.fields !== undefined && path[0] !== "roleRouting")
|
|
65
76
|
return _jsxs("details", { className: "dsmm-deployment-group", "data-field": name, open: open, onToggle: event => expand(event.currentTarget.open), children: [_jsx("summary", { children: fieldLabel(path, t) }), _jsxs("div", { children: [name === "permissionControl" && _jsx("p", { className: "dsmm-hint", children: permissionText(t)("configPolicyHint") }), _jsx("p", { className: "dsmm-hint", children: t(explicit === undefined ? "inherit" : "explicit") }), _jsx(Button, { type: "button", variant: "outline", "data-dsmm-unset": name, disabled: disabled || explicit === undefined && !Object.keys(state.raw).some(key => key === name || key.startsWith(`${name}.`)), onClick: () => { controller.clearRaw(name); controller.edit(path, undefined); }, children: t("unsetGroup") }), Object.entries(schema.fields).map(([key, node]) => _jsx(Field, { schema: node, path: [...path, key], controller: controller, disclosures: disclosures, t: t }, key))] })] });
|
|
66
77
|
if (!["boolean", "string", "number"].includes(schema.type) && choices === null)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { TemporaryPermissionRemote } from "../permission-temporary-types.js";
|
|
1
|
+
import type { PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
|
|
3
2
|
import type { ConfigForms } from "@deepseek-ai/dsh-client-ui-settings/client";
|
|
4
3
|
import type { DsmmConfigRemote } from "../profile-remote.js";
|
|
5
4
|
import type { SubagentRuntimeAdmissionView } from "../profile-types.js";
|
|
@@ -13,7 +12,6 @@ export interface DeploymentPageProps extends Locale {
|
|
|
13
12
|
remote: DsmmConfigRemote;
|
|
14
13
|
workspace?: DeploymentWorkspace;
|
|
15
14
|
permissions?: PermissionController;
|
|
16
|
-
temporaryPermissions?: HostObservable<TemporaryPermissionRemote | undefined>;
|
|
17
15
|
permissionsT?: PropsLocale<"settings.dsmm-permissions">["t"];
|
|
18
16
|
forms?: ConfigForms;
|
|
19
17
|
}
|