@dsmm/dsmm 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +2 -2
  2. package/cordis.patch.yml +0 -9
  3. package/docs/agent-presets.md +5 -5
  4. package/docs/compatibility.md +2 -6
  5. package/docs/migration-from-ocmm.md +1 -1
  6. package/docs/roadmap.md +5 -12
  7. package/docs/settings-status.md +1 -1
  8. package/lib/client/ChildrenPanel.d.ts +1 -4
  9. package/lib/client/ChildrenPanel.js +3 -3
  10. package/lib/client/DeploymentPage.d.ts +1 -3
  11. package/lib/client/DeploymentPage.js +2 -2
  12. package/lib/client/PermissionsPanel.d.ts +1 -3
  13. package/lib/client/PermissionsPanel.js +2 -3
  14. package/lib/client/children-locales.d.ts +4 -4
  15. package/lib/client/controller.js +4 -1
  16. package/lib/client/deployment-locales.js +0 -1
  17. package/lib/client/deployment-modules.js +1 -1
  18. package/lib/client/index.js +2 -7
  19. package/lib/client/locales.js +131 -119
  20. package/lib/client/permission-locales.d.ts +0 -26
  21. package/lib/client/permission-locales.js +0 -20
  22. package/lib/client.js +1837 -3634
  23. package/lib/index.d.ts +0 -2
  24. package/lib/index.js +9 -22
  25. package/lib/native-admission.d.ts +0 -3
  26. package/lib/native-admission.js +12 -45
  27. package/lib/permission-fs-search.js +1 -2
  28. package/lib/permission-fs.js +1 -2
  29. package/lib/permission-web.js +1 -2
  30. package/lib/preset-materializer.js +3 -3
  31. package/lib/preset-registry.d.ts +20 -2
  32. package/lib/preset-registry.js +46 -17
  33. package/lib/profile-diagnostics.js +1 -1
  34. package/lib/profile-remote.js +1 -3
  35. package/lib/role-policy.js +2 -2
  36. package/lib/role-subagents.js +2 -1
  37. package/lib/roles.d.ts +2 -0
  38. package/lib/roles.js +2 -0
  39. package/lib/settings.d.ts +1 -3
  40. package/lib/settings.js +4 -9
  41. package/package.json +1 -5
  42. package/lib/client/ChildPermissions.d.ts +0 -43
  43. package/lib/client/ChildPermissions.js +0 -100
  44. package/lib/client/HistoryContinuation.d.ts +0 -7
  45. package/lib/client/HistoryContinuation.js +0 -22
  46. package/lib/client/PermissionPanelEntry.d.ts +0 -8
  47. package/lib/client/PermissionPanelEntry.js +0 -11
  48. package/lib/client/TemporaryPermissions.d.ts +0 -21
  49. package/lib/client/TemporaryPermissions.js +0 -94
  50. package/lib/client/history-controller.d.ts +0 -29
  51. package/lib/client/history-controller.js +0 -111
  52. package/lib/client/history-entry.d.ts +0 -11
  53. package/lib/client/history-entry.js +0 -106
  54. package/lib/client/history-locales.d.ts +0 -95
  55. package/lib/client/history-locales.js +0 -41
  56. package/lib/client/temporary-permission-client.d.ts +0 -20
  57. package/lib/client/temporary-permission-client.js +0 -52
  58. package/lib/client/temporary-permission-entry.d.ts +0 -6
  59. package/lib/client/temporary-permission-entry.js +0 -56
  60. package/lib/history-candidates.d.ts +0 -30
  61. package/lib/history-candidates.js +0 -176
  62. package/lib/history-codec.d.ts +0 -11
  63. package/lib/history-codec.js +0 -102
  64. package/lib/history-contract.d.ts +0 -44
  65. package/lib/history-contract.js +0 -2
  66. package/lib/history-controller.d.ts +0 -42
  67. package/lib/history-controller.js +0 -329
  68. package/lib/history-policy.d.ts +0 -4
  69. package/lib/history-policy.js +0 -8
  70. package/lib/history-remote.d.ts +0 -28
  71. package/lib/history-remote.js +0 -17
  72. package/lib/history-rpc.d.ts +0 -24
  73. package/lib/history-rpc.js +0 -136
  74. package/lib/history-support.d.ts +0 -15
  75. package/lib/history-support.js +0 -21
  76. package/lib/history-types.d.ts +0 -67
  77. package/lib/history-types.js +0 -2
  78. package/lib/permission-child-control.d.ts +0 -36
  79. package/lib/permission-child-control.js +0 -164
  80. package/lib/permission-exec-argv.d.ts +0 -32
  81. package/lib/permission-exec-argv.js +0 -171
  82. package/lib/permission-temporary-files.d.ts +0 -19
  83. package/lib/permission-temporary-files.js +0 -248
  84. package/lib/permission-temporary-grants.d.ts +0 -106
  85. package/lib/permission-temporary-grants.js +0 -198
  86. package/lib/permission-temporary-install.d.ts +0 -25
  87. package/lib/permission-temporary-install.js +0 -86
  88. package/lib/permission-temporary-remote.d.ts +0 -19
  89. package/lib/permission-temporary-remote.js +0 -75
  90. package/lib/permission-temporary-rpc.d.ts +0 -37
  91. package/lib/permission-temporary-rpc.js +0 -154
  92. package/lib/permission-temporary-types.d.ts +0 -47
  93. package/lib/permission-temporary-types.js +0 -2
  94. package/lib/permission-temporary-web.d.ts +0 -11
  95. package/lib/permission-temporary-web.js +0 -154
  96. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-gateway@0.2.1-rc.2.patch +0 -13291
  97. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-remotes@0.2.1-rc.2.patch +0 -9133
  98. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-client-ui-approval@0.2.1-rc.2.patch +0 -156
  99. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-subagent@0.2.1-rc.2.patch +0 -3546
  100. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-user-approval@0.2.1-rc.2.patch +0 -431
  101. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-web@0.2.1-rc.2.patch +0 -119
  102. package/patches/dsh-approval-settlement/README.md +0 -41
  103. package/patches/dsh-approval-settlement/metadata.json +0 -10
  104. package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-loop@0.2.1-rc.2.patch +0 -383
  105. package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-preset-registry@0.2.1-rc.2.patch +0 -55
  106. package/patches/dsh-session-activation/@deepseek-ai__dsh-api-session-controller@0.2.1-rc.2.patch +0 -16673
  107. package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-subagent@0.2.1-rc.2.patch +0 -29
  108. package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-workspace@0.2.1-rc.2.patch +0 -196
  109. package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence-jsonl@0.2.1-rc.2.patch +0 -35
  110. package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence@0.2.1-rc.2.patch +0 -40
package/README.md CHANGED
@@ -18,13 +18,13 @@ Desired configuration, mounted startup capability and actual Agent admission are
18
18
 
19
19
  ## Roles and execution
20
20
 
21
- The inventory contains 11 base roles, 11 categories and fourteen configurable lazy skills. Only enabled Orchestrator, Builder and opted-in Planner are root-eligible; the rest are auxiliary. 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.
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.
22
22
 
23
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.
24
24
 
25
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.
26
26
 
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. **DSMM cold resume is unsupported without a trusted live admission**; preserve history rather than reconstructing authority from logs, labels or current settings. See [Agent presets and child control](docs/agent-presets.md).
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).
28
28
 
29
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.
30
30
 
package/cordis.patch.yml CHANGED
@@ -1,13 +1,4 @@
1
- # The targeted native entries must be patched rc.2 implementations. Apply before Host startup.
2
- - id: agent-loop
3
- config:
4
- activationAdmissionRequired: true
5
- - id: api-session-controller
6
- config:
7
- activateOnFollow: false
8
1
  - insert:
9
- - id: dsmm-history-bootstrap
10
- name: '@dsmm/dsmm/history-support'
11
2
  - id: dsmm
12
3
  name: '@dsmm/dsmm'
13
4
  inject: [profileContext, agents]
@@ -6,15 +6,15 @@ DSMM 0.3.1 targets exactly DSH `0.2.1-rc.2`. Native package composition and call
6
6
 
7
7
  The canonical inventory is 11 base roles and 11 categories. Base roles are orchestrator, builder, reviewer, oracle, oracle-2nd, doc-search, code-search, planner, clarifier, plan-critic and media-reader. Categories are frontend, creative, hard-reasoning, research, quick, coding, normal-task, complex, deep, documenting and cross-cutting. IDs are `dsmm-<source-name>`; `explore` is a code-search compatibility alias, not another role. Cross-cutting defaults disabled; other canonical items default enabled.
8
8
 
9
- Only Orchestrator and Builder (`primary`) and Planner (`all`) are root-eligible. Planner root exposure additionally requires `presets.plannerRootEnabled: true`; it defaults false. This does not disable `roles.dsmm-planner` (default true), its native workflow provider, or its read-only delegation. Other roles are auxiliary-only (`subagent`), regardless of enablement. Native preset selection displays `DW …` labels under unchanged IDs. A role name is a responsibility, not a model choice or authority claim.
9
+ Only the Orchestrator (`dsmm-orchestrator`) is a selectable standing root, and it is the only composition DSMM registers with the native preset registry. Every other role is an internal delegation target: no role preset is registered for it, and a delegated child shares its parent's standing composition while the admitted invocation carries its role, identity and restrictions. `roles.*` controls delegation availability; disabling a role removes its callable tool and admission entirely. Native preset selection displays `DW …` labels under unchanged IDs. A role name is a responsibility, not a model choice or authority claim.
10
10
 
11
- Native `agentPresets.register({id, plugins})` registers compositions for roots and role spawning; DSH doesn't discover them by scanning exported directories. rc.2 has no child-only preset field: auxiliary catalog visibility doesn't grant root eligibility, and creation/execution checks reject invalid roots. Generated `agent-presets/` mirrors are inspection/export resources. `presets.materialize` defaults off and never selects the Host default preset. Personas, read-only restrictions and host approvals remain when explicit Deepwork off hides common workflow and DSMM skills. Complete adapted source content and resources are described in [source synchronization](skill-sync.md).
11
+ Native `agentPresets.register({id, plugins})` publishes only the selectable dispatcher composition; DSH doesn't discover presets by scanning exported directories. The native export roster lists only the dispatcher, and creation/execution checks reject every non-dispatcher DSMM root. Generated `agent-presets/` mirrors are inspection/export resources. `presets.materialize` defaults off, publishes only the dispatcher preset directory and never selects the Host default preset. Personas, read-only restrictions and host approvals remain when explicit Deepwork off hides common workflow and DSMM skills. Complete adapted source content and resources are described in [source synchronization](skill-sync.md).
12
12
 
13
- Optional preset materialization writes only DSMM-owned role directories under its configured root. Ownership requires the exact role-bound marker and expected regular files; foreign directories, extra entries, links and containment escapes refuse update/removal. New directories publish by same-parent rename. A legacy marker is accepted only with the complete expected regular-file shape, never as permission to claim unrelated content. Disabling a role or materialization removes only verified owned directories. Materialized files remain export resources, not an alternative native registration mechanism.
13
+ Optional preset materialization writes only the DSMM-owned dispatcher preset directory under its configured root. Ownership requires the exact role-bound marker and expected regular files; foreign directories, extra entries, links and containment escapes refuse update/removal. New directories publish by same-parent rename. A legacy marker is accepted only with the complete expected regular-file shape, never as permission to claim unrelated content. Reconciling removes verified owned directories of every non-dispatcher role, including ones published by earlier versions. Materialized files remain export resources, not an alternative native registration mechanism.
14
14
 
15
15
  Managed Agent scopes supply their own `harness:identity` system section. The ordinary native identity remains unchanged outside those scopes; the override doesn't grant a role, tool or permission based on its displayed name.
16
16
 
17
- The Planner root flag follows deployment `presets`: Global and the current DSH entry may set it; named overlays cannot. This startup-pinned group requires an independent restart when changed. Planner can remain available for child spawning while root use is disabled. Forced creation and empty-root preset changes still require valid root admission before execution. Opting in requires the enabled module, role and usable composition; it never grants writes. Harness's native `/plan` remains collaboration state, not a permission upgrade.
17
+ Root admission is not configurable per role: the dispatcher is the only standing root. A blank preset switch to any other DSMM role is refused because no such preset is registered, and the admitted composition stays in place. Forced creation and empty-root preset changes still require valid root admission before execution. Opting into Deepwork requires the enabled module, role and usable composition; it never grants writes. Harness's native `/plan` remains collaboration state, not a permission upgrade.
18
18
 
19
19
  Standing Orchestrator/Builder compositions include native planning, compaction/pruning, question and todo rows. Planner includes planning, compaction/pruning and questions, but no todo writer. Coding/frontend/deep/complex/cross-cutting include compaction/pruning, questions and todo; other auxiliary roles add none of those rows. Native spawn can retain parent services, so this isn't a promise to strip every inherited row from short children. Effective filters and execution fences still decide access. Native `/plan` doesn't upgrade Planner permissions, and `/compact` remains a human native command.
20
20
 
@@ -22,7 +22,7 @@ Standing Orchestrator/Builder compositions include native planning, compaction/p
22
22
 
23
23
  | Admitted identity | Permitted logical children, intersected with native authority |
24
24
  | --- | --- |
25
- | Trusted root/stage-owner Orchestrator or Builder | Authorized workflow/execution roles; owns formal planning, criticism and acceptance |
25
+ | Trusted root/stage-owner Orchestrator, or a delegated stage-owner Builder | Authorized workflow/execution roles; owns formal planning, criticism and acceptance |
26
26
  | quick, code-search, doc-search, research, media-reader | None; research remains a leaf |
27
27
  | Planner, clarifier, plan-critic, Reviewer/Oracle | Read-only code-search, doc-search, research, media-reader |
28
28
  | coding, normal-task, frontend, creative, hard-reasoning, documenting | Bounded utility leaves |
@@ -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
- History protection requires the matching Session/Agent-loop, Gateway, aggregate `api-remotes` browser descriptor and workspace/subagent UI patches, not only the DSMM plugin. The bundle mounts `@dsmm/dsmm/history-support` independently of Core. It supplies `__DSMM_HISTORY_REQUIRED__` through native `webserver/index-inject` before Client initialization; Core failure does not remove that bootstrap. Non-browser integrations must supply `historyRequired: true` when initializing both patched Gateway and Session Clients.
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 cold resume without trusted live admission is unsupported, including direct/Gateway resume paths. Configuration, PluginRecord metadata, labels or child IDs can't reconstruct authorization. Preserve readable history; don't substitute a persona, reset a session or import old data automatically. DSMM history inspection doesn't resume Agents. Native factory load/repair can precede the created guard, so 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.
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 enabled Orchestrator, Builder and opted-in Planner are standing-root eligible. |
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. |
package/docs/roadmap.md CHANGED
@@ -58,20 +58,13 @@ 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
- ## Planned: scoped temporary permissions
61
+ ## Working-tree implementation: dispatcher-only native presets
62
62
 
63
- - Keep native once-only approval and add explicit per-live-session, 15-minute and 1-hour grants for exact commands and subcommands. Bind grants to actual tool execution, arguments, working directory, project and current owner; presentation text and historical approval records never confer authority. Provide an effective-grants list and revocation without a second approval queue or persistent broad command Allow rules.
64
- - Grants don't automatically cross sessions, child agents or descendants. Explicit direct-child authorization needs a visible operator workflow, exact live ownership and a supported native approval route; preserve the default delegated `never` policy unless the operator explicitly changes an eligible child's interactive policy. Explicit prohibitions and read-only role ceilings remain effective.
65
- - Retain native session-persisted file permission modes. File/directory read/write and website grants must state which real tool or execution backend enforces them. Tool-call rules don't isolate arbitrary shell processes or their descendants.
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. Persisted sessions resume with a fresh admission from the current deployment: history stays readable user intent, while delegation authority and child residency are never reconstructed from logs.
67
66
 
68
- The native approval settlement patches, grant storage and revocation, file/website adapters and direct-child permission controls require the patched Host package graph. An explicitly composed structured argv executor refuses approval when active shell or outside-read denies cannot be enforced for that program; revoked rules and unrelated Web rules do not impose that restriction. The executor is not enabled by the default composition: trusted program classification and precise command-deny integration remain required. Native bash/pwsh are once-only.
69
-
70
- The patched Session Host exposes generation-bound history readiness and a full `followReadOnly` stream that never promotes, with readiness revoked when its DSMM owner retires. The Gateway provides opt-in Client scope preparation and protected RPC/stream envelopes whose actual receiving Host checks the same readiness before native lookup, preserving codecs, resource access and native approval settlement. Required Client dispatch stays closed without a preparation provider. The Session Client provides connection readiness, opaque full-address leases checked before retention, synchronous scope guards, preparing `using()`, connected refresh and read-only physical follow/page preparation. Generation replacement invalidates old leases and late probes cannot restore them; cancellation is independent for each waiter. The aggregate `api-remotes` browser bundle includes the matching read-only Session descriptor.
71
-
72
- An independently mounted bootstrap supplies the early head/global required flag through native index injection even when Core initialization fails. Native workspace navigation prepares before retention and commits only a ready replacement; cancellation and opening failure preserve the previous reference, title and draft. Child sidebar resources prepare their full address before retention. The non-required lane retains synchronous selection. Empty-browser component coverage exercises native bootstrap, ModuleLoader, Renderer, workspace navigation, child resources and visible failure Toasts, with test-owned layout, controls, draft field and logical carrier. Loopback HTTP/WebSocket coverage verifies rejection after guard retirement during a socket wait, fresh preparation on native Session transport retry under a separately owned stable Connection generation, and stale-envelope refusal at a replacement Host followed by native reconnect. Full application/Desktop carrier coverage remains incomplete; component evidence does not prove delivered deployment support.
73
-
74
- The final requirements and implementation boundaries for historical loading, blank-session configuration, settings usability and temporary permissions are in the [product plan](../../docs/superpowers/plans/2026-10-18-dsmm-session-permissions-usability.md). Working-tree implementations do not change the capabilities of an installed published release. Existing [Fake-IP fetch](web-fetch-fakeip.md) protections remain in force.
67
+ Existing [Fake-IP fetch](web-fetch-fakeip.md) protections remain in force.
75
68
 
76
69
  ## Publication and Desktop installation
77
70
 
@@ -34,7 +34,7 @@ On a mounted Host, desired-off affects new roots, not existing parents or their
34
34
 
35
35
  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
36
 
37
- `presets.plannerRootEnabled` defaults false and controls only the standing DW Planner root preset, not the default-enabled workflow Planner role or Harness's native plan mode. Like the rest of `presets`, Global/native-entry settings may configure it, named overlays cannot, and desired changes require an independent restart; current Agents are not hot-migrated. See [Planner root admission](agent-presets.md#roles-and-composition) for discovery, forced creation/resume and read-only boundaries.
37
+ `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
38
 
39
39
  `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
40
 
@@ -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, renderChildPermissions }: Locale & {
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, renderChildPermissions }) {
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 && child.mode === "continuable" && !child.readonly && renderChildPermissions?.(child), !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 })] })] });
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, renderChildPermissions: props.renderChildPermissions }, 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") })
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
  }
@@ -1,5 +1,4 @@
1
- import type { HostObservable, PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
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
  }
@@ -6,7 +6,7 @@ import { CONFIG_MODULES, moduleFields, moduleFor, moduleTitle } from "./deployme
6
6
  import { at, inspectorPaths, scopeSchema, visibleDeploymentPath } from "./deployment-data.js";
7
7
  import { Field, displayValue, permissionText } from "./DeploymentFields.js";
8
8
  import { configurationVersionState } from "./configuration-display.js";
9
- import { PermissionPanelEntry } from "./PermissionPanelEntry.js";
9
+ import { PermissionsPanel } from "./PermissionsPanel.js";
10
10
  import { permissionEn } from "./permission-locales.js";
11
11
  export function ScopeSave({ controller, workspace, refreshOnly = false, t }) {
12
12
  const state = useSyncExternalStore(controller.subscribe, controller.getSnapshot);
@@ -87,7 +87,7 @@ export function DeploymentPage(props) {
87
87
  workspace.continueEditing();
88
88
  else
89
89
  workspace.request({ scope: navigation.scope, module: null });
90
- }, children: [_jsxs("div", { className: "dsmm-drawer-heading", children: [_jsx("h2", { id: `${id}-heading`, ref: heading, tabIndex: -1, children: t(moduleTitle(active)) }), _jsx(Button, { type: "button", variant: "outline", disabled: state.busy, onClick: () => workspace.request({ scope: navigation.scope, module: null }), children: t("close") })] }), active === "state" ? _jsxs(_Fragment, { children: [_jsx(StateInspector, { controller: props.core, t: t }), scopeActions] }) : _jsxs(_Fragment, { children: [navigation.scope === "profile" && navigation.native === null ? _jsx("p", { children: t("unavailableForm") }) : state.snapshot === null ? _jsx("p", { children: t(state.busy ? "loading" : "unavailable") }) : _jsxs("div", { "data-dsmm-layer": controller.layer, "aria-busy": state.busy, className: "dsmm-structured", children: [fields.length === 0 && _jsx("p", { className: "dsmm-hint", children: t("noModuleFields") }), fields.map(([key, schema]) => _jsx(Field, { schema: schema, path: [key], controller: controller, initiallyOpen: fields.length === 1 && active !== "permissions", disclosures: disclosures.current[navigation.scope], t: t }, `${navigation.scope}:${key}`)), active === "run" && controller.layer === "profile" && _jsx(NativeRuntimeState, { value: state.snapshot.subagentRuntime, t: t })] }), scopeActions, active === "permissions" && _jsxs("section", { className: "dsmm-zone", children: [_jsx("h3", { children: t("rootRules") }), _jsx("p", { className: "dsmm-hint", children: t("rootRulesHint") }), workspace.permissions === undefined ? _jsx("p", { children: t("rootRulesUnavailable") }) : _jsx(PermissionPanelEntry, { controller: workspace.permissions, temporary: props.temporaryPermissions, t: props.permissionsT ?? (key => Object.hasOwn(permissionEn, key) ? permissionText(t)(key) : key) })] })] })] })] }), navigation.pending !== null && _jsxs("section", { className: "dsmm-confirm", role: "group", "aria-label": t("leaveDraft"), onKeyDown: event => { if (event.key === "Escape" && !event.defaultPrevented) {
90
+ }, children: [_jsxs("div", { className: "dsmm-drawer-heading", children: [_jsx("h2", { id: `${id}-heading`, ref: heading, tabIndex: -1, children: t(moduleTitle(active)) }), _jsx(Button, { type: "button", variant: "outline", disabled: state.busy, onClick: () => workspace.request({ scope: navigation.scope, module: null }), children: t("close") })] }), active === "state" ? _jsxs(_Fragment, { children: [_jsx(StateInspector, { controller: props.core, t: t }), scopeActions] }) : _jsxs(_Fragment, { children: [navigation.scope === "profile" && navigation.native === null ? _jsx("p", { children: t("unavailableForm") }) : state.snapshot === null ? _jsx("p", { children: t(state.busy ? "loading" : "unavailable") }) : _jsxs("div", { "data-dsmm-layer": controller.layer, "aria-busy": state.busy, className: "dsmm-structured", children: [fields.length === 0 && _jsx("p", { className: "dsmm-hint", children: t("noModuleFields") }), fields.map(([key, schema]) => _jsx(Field, { schema: schema, path: [key], controller: controller, initiallyOpen: fields.length === 1 && active !== "permissions", disclosures: disclosures.current[navigation.scope], t: t }, `${navigation.scope}:${key}`)), active === "run" && controller.layer === "profile" && _jsx(NativeRuntimeState, { value: state.snapshot.subagentRuntime, t: t })] }), scopeActions, active === "permissions" && _jsxs("section", { className: "dsmm-zone", children: [_jsx("h3", { children: t("rootRules") }), _jsx("p", { className: "dsmm-hint", children: t("rootRulesHint") }), workspace.permissions === undefined ? _jsx("p", { children: t("rootRulesUnavailable") }) : _jsx(PermissionsPanel, { controller: workspace.permissions, t: props.permissionsT ?? (key => Object.hasOwn(permissionEn, key) ? permissionText(t)(key) : key) })] })] })] })] }), navigation.pending !== null && _jsxs("section", { className: "dsmm-confirm", role: "group", "aria-label": t("leaveDraft"), onKeyDown: event => { if (event.key === "Escape" && !event.defaultPrevented) {
91
91
  event.preventDefault();
92
92
  workspace.continueEditing();
93
93
  } }, children: [_jsx("p", { children: t("leaveDraft") }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { ref: confirmation, type: "button", variant: "primary", onClick: () => workspace.continueEditing(), children: t("continueEditing") }), _jsx(Button, { type: "button", variant: "outline", onClick: () => workspace.keepAndNavigate(), children: t("keepDraft") }), _jsx(Button, { type: "button", variant: "outline", disabled: state.busy, onClick: () => void workspace.discardAndNavigate(), children: t("discardDraft") })] })] })] });
@@ -1,16 +1,14 @@
1
1
  import type { PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
2
2
  import type { PermissionController, PermissionView } from "./permission-controller.js";
3
- import type { TemporaryPermissionRemote } from "../permission-temporary-types.js";
4
3
  type Locale = PropsLocale<"settings.dsmm-permissions">;
5
4
  export type PermissionsPanelProps = Locale & {
6
5
  controller: PermissionController;
7
6
  sessionId?: string;
8
- temporary?: TemporaryPermissionRemote;
9
7
  };
10
8
  export declare function PermissionRulesEditor({ controller, state, t }: Locale & {
11
9
  controller: PermissionController;
12
10
  state: PermissionView;
13
11
  }): import("react").JSX.Element;
14
- export declare function PermissionsPanel({ controller, t, sessionId, temporary }: PermissionsPanelProps): import("react").JSX.Element;
12
+ export declare function PermissionsPanel({ controller, t, sessionId }: PermissionsPanelProps): import("react").JSX.Element;
15
13
  export {};
16
14
  //# sourceMappingURL=PermissionsPanel.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useEffect, useId, useSyncExternalStore } from "react";
3
3
  import { Button, Input } from "@deepseek-ai/dsh-client-ui-primitives";
4
- import { TemporaryGrants } from "./TemporaryPermissions.js";
5
4
  const actions = ["inherit", "allow", "ask", "deny"];
6
5
  const kinds = ["outside-read", "shell", "webSearch", "webFetch"];
7
6
  const ruleDraft = (rule) => ({ id: rule.id, action: rule.action, match: structuredClone(rule.match) });
@@ -37,11 +36,11 @@ export function PermissionRulesEditor({ controller, state, t }) {
37
36
  const id = useId(), draft = state.draft, disabled = !controller.canEdit(state.generation), value = state.rules;
38
37
  return _jsxs("section", { className: "dsmm-zone", "aria-label": t("rules"), children: [_jsx("h3", { children: t("rules") }), _jsx("p", { className: "dsmm-hint", children: t("rulesHint") }), _jsx("p", { className: "dsmm-hint", children: t("networkLimit") }), _jsx("p", { className: "dsmm-hint", children: t("matchHint") }), _jsx(Issue, { value: state.rulesIssue, t: t }), _jsx("p", { className: "dsmm-hint", children: t("observedPolicy") }), _jsxs("dl", { className: "dsmm-child-meta", children: [_jsx("dt", { children: t("profileOverrideState") }), _jsx("dd", { children: t("profileOverrideUnknown") })] }), _jsxs("dl", { className: "dsmm-child-meta", children: [_jsx("dt", { children: t("runtime") }), _jsx("dd", { children: value === null ? t("unknown") : t(value.runtime.state) }), _jsx("dt", { children: t("mounted") }), _jsx("dd", { children: value === null ? t("unknown") : t(value.runtime.mounted ? "on" : "off") })] }), value?.runtime.restartRequired && _jsx("p", { children: t("restart") }), disabled && _jsx("p", { className: "dsmm-hint", children: t(state.reading ? "reading" : "rulesUnavailable") }), state.base !== null && _jsxs("dl", { className: "dsmm-child-meta", children: [_jsx("dt", { children: "permissionControl.enabled" }), _jsxs("dd", { children: [t(state.base.policy.enabled ? "on" : "off"), " \u00B7 ", t("coldHint")] }), _jsx("dt", { children: "permissionControl.nativeCommands.enabled" }), _jsx("dd", { children: t(state.base.policy.nativeCommands.enabled ? "on" : "off") })] }), _jsx(PermissionCoverage, { state: state, t: t }), draft !== null && _jsxs(_Fragment, { children: [_jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${id}-outside`, children: t("outsideReads") }), _jsx(ActionSelect, { id: `${id}-outside`, value: draft.outsideReads, disabled: disabled, t: t, onChange: outsideReads => controller.edit(state.generation, { outsideReads }) })] }), ["webSearch", "webFetch"].map(key => _jsxs("fieldset", { children: [_jsx("legend", { children: t(key) }), _jsxs("label", { className: "dsmm-actions", htmlFor: `${id}-${key}-enabled`, children: [_jsx("input", { type: "checkbox", id: `${id}-${key}-enabled`, checked: draft[key].enabled, disabled: disabled, onChange: event => controller.edit(state.generation, { [key]: { ...draft[key], enabled: event.currentTarget.checked } }) }), t("enabled")] }), _jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${id}-${key}-rule`, children: t("rule") }), _jsx(ActionSelect, { id: `${id}-${key}-rule`, value: draft[key].rule, disabled: disabled, t: t, onChange: rule => controller.edit(state.generation, { [key]: { ...draft[key], rule } }) })] })] }, key)), _jsx(Button, { type: "button", variant: "outline", disabled: disabled || draft.editor !== null, onClick: () => controller.edit(state.generation, { editor: { id: "", action: "ask", match: newMatch("outside-read") } }), children: t("newRule") }), _jsx(RuleEditor, { controller: controller, state: state, t: t }), (draft.upsert.length > 0 || draft.revoke.length > 0) && _jsxs("div", { className: "dsmm-structured", children: [_jsx("h3", { children: t("staged") }), draft.upsert.map(row => _jsxs("div", { className: "dsmm-field", children: [_jsxs("p", { children: [row.id, " \u00B7 ", t(`kind:${row.match.kind}`), " \u00B7 ", t(`action:${row.action}`)] }), _jsxs(Button, { type: "button", variant: "outline", disabled: disabled, onClick: () => controller.edit(state.generation, { upsert: draft.upsert.filter(rule => rule.id !== row.id) }), children: [t("unstage"), ": ", row.id] })] }, row.id)), draft.revoke.map(ruleId => _jsxs("div", { className: "dsmm-field", children: [_jsxs("p", { children: [t("stageRevoke"), ": ", ruleId] }), _jsxs(Button, { type: "button", variant: "outline", disabled: disabled, onClick: () => controller.edit(state.generation, { revoke: draft.revoke.filter(id => id !== ruleId) }), children: [t("unstage"), ": ", ruleId] })] }, ruleId))] })] }), _jsx(RuleRecords, { state: state, controller: controller, t: t }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "primary", disabled: !controller.canSave(state.generation), onClick: () => void controller.save(state.generation), children: t("save") }), _jsx(Button, { type: "button", variant: "outline", disabled: state.scope !== "root" || !state.connected || state.reading || state.busy !== null, onClick: () => void controller.refresh(state.generation, true), children: t("discard") })] }), state.dirty && _jsx("p", { children: t("dirty") })] });
39
38
  }
40
- export function PermissionsPanel({ controller, t, sessionId, temporary }) {
39
+ export function PermissionsPanel({ controller, t, sessionId }) {
41
40
  const state = useSyncExternalStore(controller.store.subscribe, controller.store.getSnapshot);
42
41
  useEffect(() => controller.watch(), [controller]);
43
42
  if (sessionId !== undefined && sessionId !== state.sessionId)
44
43
  return _jsx("p", { className: "dsmm-hint", role: "status", children: t("rulesUnavailable") });
45
- return _jsxs("section", { className: "dsmm-profiles dsmm-children dsmm-permissions", "data-dsmm-permissions": true, "aria-label": t("title"), "aria-busy": state.reading || state.busy !== null, children: [_jsx("h2", { children: t("title") }), _jsx(RootState, { state: state, t: t }), _jsx("p", { className: "dsmm-hint", children: t("nativeApproval") }), _jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", children: state.busy !== null ? t("busy") : state.reading ? t("reading") : state.notice === null ? "" : t(state.notice) }), _jsx(PermissionRulesEditor, { controller: controller, state: state, t: t }), temporary && sessionId && _jsx(TemporaryGrants, { remote: temporary, sessionId: sessionId, t: t }, sessionId)] });
44
+ return _jsxs("section", { className: "dsmm-profiles dsmm-children dsmm-permissions", "data-dsmm-permissions": true, "aria-label": t("title"), "aria-busy": state.reading || state.busy !== null, children: [_jsx("h2", { children: t("title") }), _jsx(RootState, { state: state, t: t }), _jsx("p", { className: "dsmm-hint", children: t("nativeApproval") }), _jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", children: state.busy !== null ? t("busy") : state.reading ? t("reading") : state.notice === null ? "" : t(state.notice) }), _jsx(PermissionRulesEditor, { controller: controller, state: state, t: t })] });
46
45
  }
47
46
  //# sourceMappingURL=PermissionsPanel.js.map
@@ -261,9 +261,9 @@ export declare const childrenLocaleZh: {
261
261
  no: string;
262
262
  activity: string;
263
263
  runtime: string;
264
- liveRoute: string;
265
- title: string;
266
264
  images: string;
265
+ title: string;
266
+ liveRoute: string;
267
267
  descendants: string;
268
268
  interrupt: string;
269
269
  readonly: string;
@@ -271,10 +271,8 @@ export declare const childrenLocaleZh: {
271
271
  delivery: string;
272
272
  queue: string;
273
273
  steer: string;
274
- authority: string;
275
274
  foreign: string;
276
275
  reading: string;
277
- restart: string;
278
276
  refresh: string;
279
277
  noSession: string;
280
278
  runs: string;
@@ -321,6 +319,8 @@ export declare const childrenLocaleZh: {
321
319
  interruptAvailability: string;
322
320
  imageAvailability: string;
323
321
  fence: string;
322
+ restart: string;
323
+ authority: string;
324
324
  evidence: string;
325
325
  evidenceMissing: string;
326
326
  originalEpoch: string;
@@ -108,7 +108,10 @@ export class ProfilesController {
108
108
  this.generation += 1;
109
109
  this.sessionGeneration += 1;
110
110
  this.modelSelectorGeneration += 1;
111
- this.publish({ session: null, sessionBusy: null, sessionNotice: null, sessionUnconfirmed: this.current.currentSessionId !== null,
111
+ // A replaced connection only discards what it observed. It never records a
112
+ // durable refusal for the session: an unread configuration is read again
113
+ // by the next refresh, and typing stays available in the meantime.
114
+ this.publish({ session: null, sessionBusy: null, sessionNotice: null, sessionUnconfirmed: false,
112
115
  sessionViewEpoch: this.current.sessionViewEpoch + 1, busy: null, issue: { kind: "transport", code: "unavailable" } });
113
116
  };
114
117
  if (replacement || source === null || this.connectionBaseline === undefined)
@@ -94,7 +94,6 @@ export const deploymentFieldLabels = {
94
94
  subagents: ["Subagents", "子 Agent"], lsp: ["LSP", "LSP"], presets: ["Preset materialization", "预设物化"],
95
95
  promptOrder: ["Prompt order", "提示词顺序"], defaultActive: ["Default Deepwork mode", "默认 Deepwork 模式"],
96
96
  enabled: ["Enabled", "启用"], materialize: ["Materialize presets", "物化预设"], scope: ["Guard scope", "保护范围"],
97
- plannerRootEnabled: ["Planner main-chat preset (restart required)", "Planner 主聊天预设(需重启)"],
98
97
  shellCommandSafety: ["Shell command safety", "Shell 命令安全"], gitWriteGuard: ["Git write policy", "Git 写入策略"],
99
98
  toolOutputTruncation: ["Tool output truncation", "工具输出截断"], maxInlineBytes: ["Inline byte limit", "内联字节上限"],
100
99
  planFormatValidation: ["Plan format validation", "计划格式校验"], questionLabelHelper: ["Question labels", "提问标签"], maxLabelChars: ["Label character limit", "标签字符上限"], todoDisciplineHelper: ["Todo discipline", "待办纪律"],
@@ -6,7 +6,7 @@ export function moduleFor(path) {
6
6
  return "run";
7
7
  if (["roleRouting", "runtimePolicy", "runtimeRecovery"].includes(key))
8
8
  return "routes";
9
- if (["workflow", "roles", "skills", "presets", "businessLocale", "locale", "promptOrder", "plannerRootEnabled"].includes(key))
9
+ if (["workflow", "roles", "skills", "presets", "businessLocale", "locale", "promptOrder"].includes(key))
10
10
  return "workflow";
11
11
  if (key === "subagents")
12
12
  return "subagents";
@@ -14,9 +14,6 @@ import { permissionClient } from "./permission-client.js";
14
14
  import { PermissionController } from "./permission-controller.js";
15
15
  import { PERMISSIONS_NS, permissionEn, permissionZh } from "./permission-locales.js";
16
16
  import { registerRoleToolViews } from "./RoleToolView.js";
17
- import { HISTORY_REMOTE } from "../history-remote.js";
18
- import { registerHistoryContinuation } from "./history-entry.js";
19
- import { registerTemporaryPermissionEntry } from "./temporary-permission-entry.js";
20
17
  export { ProfilesController, NEW_PROFILE_CONTENT } from "./controller.js";
21
18
  export { ProfilesSection } from "./ProfilesSection.js";
22
19
  export { NS, en, zh } from "./locales.js";
@@ -30,14 +27,12 @@ export { ROLE_CONTROL_REMOTE } from "../role-control-remote.js";
30
27
  export const inject = ["slots", "locale", "remote"];
31
28
  export async function apply(ctx) {
32
29
  registerRoleToolViews(ctx);
33
- await ctx.remote.$mount({ ...TYPERT_REMOTE, descriptors: [...TYPERT_REMOTE.descriptors, ...HISTORY_REMOTE.descriptors] });
30
+ await ctx.remote.$mount(TYPERT_REMOTE);
34
31
  await ctx.remote.$mount(ROLE_CONTROL_REMOTE);
35
32
  await ctx.remote.$mount(PERMISSION_REMOTE);
36
- registerHistoryContinuation(ctx);
37
33
  const permissions = new PermissionController();
38
34
  ctx.effect(() => () => permissions.dispose(), "dsmm: permission controls");
39
35
  ctx.effect(() => ctx.locale.register(PERMISSIONS_NS, { en: permissionEn, zh: permissionZh }), "dsmm: permission locale");
40
- const temporaryPermissions = registerTemporaryPermissionEntry(ctx, permissions);
41
36
  void ctx.inject(["connection"], connectionCtx => {
42
37
  const handle = connectionCtx.connection, invoke = permissionClient(handle);
43
38
  const update = () => { const generation = handle.generation.getSnapshot(); permissions.bindConnection(generation === undefined ? null : invoke, generation); };
@@ -88,7 +83,7 @@ export async function apply(ctx) {
88
83
  document.head.append(style);
89
84
  return () => style.remove();
90
85
  }, "dsmm: core styles");
91
- const inject = () => ({ core, remote: coreCtx.remote.dsmmConfig, workspace, temporaryPermissions, permissionsT: coreCtx.locale.bind(PERMISSIONS_NS) });
86
+ const inject = () => ({ core, remote: coreCtx.remote.dsmmConfig, workspace, permissionsT: coreCtx.locale.bind(PERMISSIONS_NS) });
92
87
  coreCtx.slots.inject("plugins.bundle.config", () => coreCtx.slots.register({ name: "plugins.bundle.config", key: "@dsmm/dsmm", locale: DEPLOYMENT_NS, inject }, DeploymentPage));
93
88
  // The canonical bundle owner passes only view. Namespace comes from the authenticated snapshot.
94
89
  void coreCtx.inject(["configForms"], formCtx => {