@dsmm/dsmm 0.1.7 → 0.1.8
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 +12 -9
- package/docs/compatibility.md +10 -6
- package/docs/profiles.md +6 -4
- package/docs/releasing.md +26 -20
- package/docs/settings-status.md +4 -4
- package/lib/client/SessionProfiles.js +23 -16
- package/lib/client/controller.d.ts +9 -3
- package/lib/client/controller.js +69 -6
- package/lib/client/locales.d.ts +10 -0
- package/lib/client/locales.js +4 -0
- package/lib/client.js +124 -25
- package/lib/index.js +1 -1
- package/lib/profile-remote.d.ts +3 -1
- package/lib/profile-remote.js +16 -1
- package/lib/profile-rpc.d.ts +3 -1
- package/lib/profile-rpc.js +13 -0
- package/lib/profile-runtime.d.ts +6 -2
- package/lib/profile-runtime.js +64 -6
- package/lib/profile-types.d.ts +15 -0
- package/lib/state.d.ts +5 -1
- package/lib/state.js +33 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Deepwork adapts ocmm's deepwork workflow to DeepSeek Harness. Its package remains `@dsmm/dsmm`: a DSH-native Cordis bundle, not an OpenCode compatibility layer.
|
|
4
4
|
|
|
5
|
-
This package targets `@deepseek-ai/dsh@0.2.0-rc.2`, the npm `latest` resolved on 2026-10-03. The
|
|
5
|
+
This package targets `@deepseek-ai/dsh@0.2.0-rc.2`, the npm `latest` resolved on 2026-10-03. The prospective `0.1.8` source contract adds a durable Deepwork toggle and simplifies the existing icon-only native profile menu in sessionless, blank and active conversation views, while preserving native root-model authority, structured native route controls, independent session profiles and delegated-role route strategies. Human-facing names remain **Deepwork** and **DW Role**. 0.1.8 publication and Desktop acceptance remain pending. The completed 0.1.5 publication and completed 0.1.6 publication/continuation are immutable historical evidence, not proof for 0.1.8; older identities, including 0.1.4's separately controlled published-origin continuation, stay unchanged. Package, configuration, tool and role IDs retain the `dsmm` namespace.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
0.1.7 is already npm published and locally installed in Desktop, but it is not a completed GitHub Release. Its immutable `dsmm-scoped-v0.1.7` source is `1ca0bf6e89916d17ddc663e1e06f6c15256cf453`; original run `37312038470/1` failed verification, its GitHub job was skipped, and terminal evidence remained `UNRESOLVED`/`FAILED`. Preserve that package, tag, source and failed history. The authorized successor is `@dsmm/dsmm@0.1.8` / `dsmm-scoped-v0.1.8`; its Desktop installation waits for its own terminal `COMPLETED` proof.
|
|
8
|
+
|
|
9
|
+
The immutable `dsmm-scoped-v0.1.3` tag remains at `2bdea4b`. Its CI run `37235817488` failed before packing or publication because pnpm 11 ignored the required esbuild/koffi build scripts. The later 0.1.4 origin published accepted bytes but its original verification saw a registry 404; its completed fixed-origin continuation preserves that failed original CI history. The stopped 0.1.2 frozen tag/artifact and draft Release remain untouched and unpublished. The successor target is 0.1.8; none of these facts authorizes rewriting earlier identities.
|
|
8
10
|
|
|
9
11
|
## Current functionality
|
|
10
12
|
|
|
@@ -14,7 +16,8 @@ The immutable `dsmm-scoped-v0.1.3` tag remains at `2bdea4b`. Its CI run `3723581
|
|
|
14
16
|
- Exact-route V41 Flash calibration for `deepseek-official/deepseek-flash` and `deepseek-account/deepseek-flash`, preserving V4 Pro settings. Runtime selects only adapter-advertised reasoning efforts.
|
|
15
17
|
- Delegated-role provider/model/exact-effort controls, ordered candidates, independent per-role `startup-lock` (default) or explicit `rate-limit-fallback`, and finite correlated no-output-safe retries. Ordinary roots keep their native initial model and exact effort, not a profile-role primary; explicit native model choices remain authoritative across later turns, profile reapply and cold resume. Supported explicit overrides survive for trusted live, owned, zero-prefix one-shot children. No new model-visible model-selection permission is added; exact configured efforts are not downgraded.
|
|
16
18
|
- Native Settings → Deepwork Profiles (`Deepwork 配置档`) with structured role/retry controls and byte-preserving Advanced JSONC. Global default and current-session Apply are distinct; CAS-protected sidecars pin independent immutable revisions and admission epochs. Save alone activates neither scope.
|
|
17
|
-
-
|
|
19
|
+
- One icon-only native profile menu with one profile list: normal profile switching keeps the current model after successful profile CAS and never selects a model. The single `@use-model` action, **Use profile model**, reads the current admitted immutable profile's model without reapplying a subsequently saved draft revision. It uses native model selection and native-default persistence like the Models tab, with existing manual-model-intent race fencing; a newer native choice remains authoritative. Sessionless and blank views retain an inspectable menu; disabled mutations do not hide state or refresh. Successes use accessible live announcements only, never persistent visible success prose; errors are short sanitized allowlisted codes/fields with refresh/retry guidance, never raw wire messages or paths.
|
|
20
|
+
- **Deepwork** toggle for other native presets: official minimal conversations default off unless a saved explicit `deepwork/mode` event says otherwise. Explicit same-default choices are persisted, and mode intent survives profile changes and reopen. Standing DW presets are locked enabled with a clear label, not an operable off action; sessionless, busy or unavailable mutations fail closed.
|
|
18
21
|
- Scoped shell/Git/plan/question/todo guards and separately opt-in bounded idle continuation.
|
|
19
22
|
- Optional external `ocmm-lsp mcp` integration with nine tools including atomic `format`. Debugging/DAP is an on-demand skill, not additional LSP tools or automatic prompt injection.
|
|
20
23
|
|
|
@@ -26,16 +29,16 @@ Durable session metadata requires explicit deployment-only `sessionPersistence:
|
|
|
26
29
|
|
|
27
30
|
## Install and configure
|
|
28
31
|
|
|
29
|
-
Install the exact registry version after terminal verified publication with `dsh plugin --profile <profile> add @dsmm/dsmm@0.1.
|
|
32
|
+
Install the exact registry version after terminal verified publication with `dsh plugin --profile <profile> add @dsmm/dsmm@0.1.8`. For isolated development verification, use a built and packed artifact:
|
|
30
33
|
|
|
31
|
-
Desktop and CLI/TUI have independent native deployment profiles. Installing into `desktop` does not install into `dsh-tui`. The existing official CLI/TUI `@dsmm/dsmm@0.1.6` installation is already verified and enabled with `defaultActive: true`; it is not unfinished rollout work and this Desktop upgrade does not repeat TUI setup. For a separately authorized future TUI upgrade after 0.1.
|
|
34
|
+
Desktop and CLI/TUI have independent native deployment profiles. Installing into `desktop` does not install into `dsh-tui`. The existing official CLI/TUI `@dsmm/dsmm@0.1.6` installation is already verified and enabled with `defaultActive: true`; it is not unfinished rollout work and this Desktop upgrade does not repeat TUI setup. For a separately authorized future TUI upgrade after 0.1.8 terminal completion, the exact-version command is `dsh plugin --profile dsh-tui add @dsmm/dsmm@0.1.8 --save-exact`. Launch with `dsh --profile dsh-tui` (or the TUI launcher); a bare `dsh` does not select the Desktop profile. Keep the existing TUI bundle, provider, model, effort and environment-based preset/resume settings. Do not copy Desktop credentials or providers. When enabling durable Deepwork metadata, also follow the single-provider [persistence startup procedure](docs/compatibility.md#session-persistence-compatibility), preserving the existing root and compression. Merely adding the package does not activate Deepwork.
|
|
32
35
|
|
|
33
36
|
```powershell
|
|
34
37
|
pnpm --dir dsmm build
|
|
35
38
|
pnpm --dir dsmm pack --pack-destination <temporary-artifact-directory>
|
|
36
39
|
$env:DSH_HOME = "<disposable-test-home>"
|
|
37
40
|
dsh --profile <profile> --from-default-profile headless --dump-config
|
|
38
|
-
dsh plugin --profile <profile> add <absolute-path-to-dsmm-dsmm-0.1.
|
|
41
|
+
dsh plugin --profile <profile> add <absolute-path-to-dsmm-dsmm-0.1.8.tgz>
|
|
39
42
|
dsh --profile <profile> --dump-config
|
|
40
43
|
```
|
|
41
44
|
|
|
@@ -57,7 +60,7 @@ This runtime-baseline example is not the full durable-persistence patch. Native
|
|
|
57
60
|
|
|
58
61
|
Do not copy the old `settings.yaml` namespace or preset-discovery roots into the new host. Runtime drafts instead live at `<profileContext.dir>/dsmm-profiles/<id>.jsonc`; there is no embedded profiles object in plugin config. See [runtime profiles](docs/profiles.md), [settings/status](docs/settings-status.md), and [agent roles](docs/agent-presets.md).
|
|
59
62
|
|
|
60
|
-
The [historical 0.1.1 migration guide](docs/migration-from-ocmm.md) explains the earlier ocmm/DSH adapter migration; use the current profile and upgrade guides above for 0.1.
|
|
63
|
+
The [historical 0.1.1 migration guide](docs/migration-from-ocmm.md) explains the earlier ocmm/DSH adapter migration; use the current profile and upgrade guides above for 0.1.8 behavior.
|
|
61
64
|
|
|
62
65
|
For a delegated-role model, configure `roleRouting.dsmm-reviewer.primary` with native `provider`, `model`, and optional `reasoningEffort`, then choose its strategy/retry policy where needed. These policies do not silently replace the ordinary root's native model; using a profile's main-model choice is an explicit user action. There are no built-in provider routes or API keys. See [model routing](docs/model-routing.md) and [runtime recovery](docs/runtime-recovery.md) for admission, bounded RATE_LIMIT rollover and migration from old generic automatic fallback.
|
|
63
66
|
|
|
@@ -72,7 +75,7 @@ pnpm --dir dsmm check:release
|
|
|
72
75
|
pnpm --dir dsmm smoke:docker
|
|
73
76
|
```
|
|
74
77
|
|
|
75
|
-
A separately authorized credentialed, packed real-model diagnostic is also available from this checkout. It is **not** the independent 0.1.
|
|
78
|
+
A separately authorized credentialed, packed real-model diagnostic is also available from this checkout. It is **not** the independent 0.1.8 Docker/UI release gate; that gate must not copy credentials, sessions, Desktop configuration or browser authentication:
|
|
76
79
|
|
|
77
80
|
```powershell
|
|
78
81
|
node dsmm/scripts/live-dsh-smoke.mjs --runtime <npm-prefix-with-pinned-dsh> --package <packed-dsmm.tgz> --provider deepseek-account --credentials <existing-dsh-credentials-file> --receipt <sanitized-receipt.json>
|
|
@@ -82,4 +85,4 @@ Add `--delegate` to verify the actual `dsmm_reviewer` child persona, inherited F
|
|
|
82
85
|
|
|
83
86
|
The test copies only native account records into a temporary home, verifies a real read/write/model round-trip, checks the exact route and DSMM prompt, and removes temporary credentials and sessions. It does not print reasoning or credentials, log into a browser, modify the original credential file, or silently use a different model. API-key testing uses `--provider deepseek-official` and an existing `DEEPSEEK_API_KEY` environment variable.
|
|
84
87
|
|
|
85
|
-
These commands are verification procedures, not a claim they have passed for the final 0.1.
|
|
88
|
+
These commands are verification procedures, not a claim they have passed for the final 0.1.8 artifact. The dedicated DSMM workflow builds a fresh CI tarball with pnpm, Docker-gates its exact bytes, and publishes through OIDC with genuine provenance; the old 0.1.2 bootstrap is not used. See [compatibility](docs/compatibility.md) and [release policy](docs/releasing.md) for terminal publication and later Desktop evidence boundaries.
|
package/docs/compatibility.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
# Deepwork 0.1.
|
|
1
|
+
# Deepwork 0.1.8 Compatibility and Upgrade
|
|
2
2
|
|
|
3
|
-
This document describes the 0.1.
|
|
3
|
+
This document describes the prospective 0.1.8 source contract and required acceptance evidence. It does not claim that the final 0.1.8 artifact has passed Docker, been published, or been activated in Desktop. Completed 0.1.5 and 0.1.6 publication/continuation evidence stays immutable and does not prove 0.1.8. Historical 0.1.1 checks and the stopped 0.1.2 frozen draft are not substitute evidence for this update; the old 0.1.2 tag/artifact/draft stay untouched and unpublished.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
0.1.7 is npm published and Desktop installed, but not a completed GitHub Release. Preserve immutable tag `dsmm-scoped-v0.1.7`, package and source `1ca0bf6e89916d17ddc663e1e06f6c15256cf453`; original run `37312038470/1` failed verification, GitHub was skipped, and terminal evidence remained `UNRESOLVED`/`FAILED`. Neither installation nor registry presence supplies completion authority. The authorized 0.1.8 Desktop upgrade waits for the new identity's terminal `COMPLETED` evidence, while the existing CLI/TUI 0.1.6 installation remains untouched.
|
|
6
|
+
|
|
7
|
+
The immutable 0.1.3 tag at `2bdea4b` is also preserved. Its run `37235817488` failed before pack/publish on pnpm 11's ignored esbuild/koffi build scripts. 0.1.4's published-origin bytes and failed original verify/404 history are preserved by their separate fixed continuation controls, not rewritten by a successor. The 0.1.8 gate requires fresh clean Linux installation/build evidence; existing compiled output is not a substitute.
|
|
6
8
|
|
|
7
9
|
Deepwork is the native plugin title in both exported metadata locales, with localized descriptions. Profiles are displayed as **Deepwork Profiles** / **Deepwork 配置档**, and twelve roles as `DW …`. Package `@dsmm/dsmm`, Loader `dsmm`, role/tool/provider IDs, commands, schemas and persistence vocabulary remain compatible. Native metadata-reader and actual UI evidence must prove the display names; a manifest `displayName` is not a supported substitute.
|
|
8
10
|
|
|
@@ -27,7 +29,7 @@ The installation contracts include `@deepseek-ai/cordis@~4.0.4`, `@deepseek-ai/s
|
|
|
27
29
|
| macOS | `Node >=22` | supported by contract |
|
|
28
30
|
| Native Settings | additive Deepwork Profiles client and authenticated RPC | compiled UI/RPC/storage and actual Desktop are separate proofs |
|
|
29
31
|
| Headless | deployment config and native role tools | no Agent preset selection in the one-shot runner |
|
|
30
|
-
| TUI | `DSH 0.2.0-rc.2` | existing official 0.1.6 CLI/TUI installation verified; new 0.1.
|
|
32
|
+
| TUI | `DSH 0.2.0-rc.2` | existing official 0.1.6 CLI/TUI installation verified; new 0.1.8 menu proof is Web/Desktop only |
|
|
31
33
|
| LSP/MCP | `external ocmm-lsp mcp` | optional |
|
|
32
34
|
| Runtime recovery | `process-local` | optional |
|
|
33
35
|
| Per-role model/effort/fallback policy | native request, subagent and descriptor seams | opt-in; exact configured capability required |
|
|
@@ -40,7 +42,9 @@ The installation contracts include `@deepseek-ai/cordis@~4.0.4`, `@deepseek-ai/s
|
|
|
40
42
|
|
|
41
43
|
`/deepwork` and `/dsmm-status` are host-adapter commands, not headless task-text commands. The current native client provides Settings → Deepwork Profiles without replacing native navigation, provider/account UI, or the Agent preset selector. There are no model-visible profile-management tools or anonymous file endpoints.
|
|
42
44
|
|
|
43
|
-
The 0.1.
|
|
45
|
+
The 0.1.8 Web/Desktop header contributes one icon-only native profile menu in sessionless, blank and active views, yielding to native navigation ownership. One profile list handles normal profile switching that keeps the current model and invokes no native model selection. One `@use-model` **Use profile model** action reads the current admitted immutable profile model without reapplying a later saved revision; successful profile CAS remains authoritative for profile changes, not a prerequisite repeated by this independent model action. It retains native-default persistence like the Models tab and existing manual-model-intent race fencing. Disabled mutations leave the menu inspectable and refreshable. Successes are accessible live announcements only, not visible success prose; short sanitized refusal details use allowlisted codes/fields and refresh/retry guidance, never raw messages or paths. No verbose normal-menu descriptions or duplicate profile-model list remains. These are required new-menu contracts, not a claim of authenticated Desktop acceptance; the historical 0.1.6 SELECT and 0.1.7 menu proof contracts remain unchanged.
|
|
46
|
+
|
|
47
|
+
The menu's **Deepwork** toggle applies to other native presets. Official minimal mode defaults off unless saved explicit `deepwork/mode` intent exists; a same-default choice still persists that intent, which survives profile changes and reopen. Standing DW presets show a locked enabled label, not an off action. Sessionless/busy/unavailable mutations fail closed; mode never creates a session or changes native preset, model or global runtime default.
|
|
44
48
|
|
|
45
49
|
Headless uses profile `cordis.patch.yml` plus `--dump-config`; real task execution requires a separately configured provider and uses `dsmm.defaultActive: true`. Old `$DSH_HOME/settings.yaml` namespaces must be migrated explicitly; DSMM does not mutate that file.
|
|
46
50
|
|
|
@@ -95,7 +99,7 @@ Global/system Desktop migration is the **third phase**: independent frozen-artif
|
|
|
95
99
|
|
|
96
100
|
The Linux packed-lifecycle smoke pins pnpm `12.8.1` and retains DSH's native `nodeLinker: hoisted` profile layout. On Linux Node 22, pnpm `11.9.0` with that layout and DSMM's auto-installed peer graph can print `Done` after removal without exiting; the same failure was reproduced directly without DSH, while `12.8.1` returned normally. A printed `Done` is not uninstall completion. This does not claim the same failure on Windows or modify a user's existing package manager or profile. The smoke enforces a bounded fail-closed timeout and checks actual remove/reinstall exits and profile state.
|
|
97
101
|
|
|
98
|
-
The matrix separates required 0.1.
|
|
102
|
+
The matrix separates required 0.1.8 evidence from historical CLI/configuration, source-contract and credentialed model evidence. A version string or unit test alone establishes neither native preset health nor UI/runtime behavior. Windows, Linux, Web, and macOS evidence are not interchangeable. The already verified official CLI/TUI 0.1.6 installation is not unfinished rollout work and must not be repeated as part of the new Desktop upgrade.
|
|
99
103
|
|
|
100
104
|
The independent Docker gate installs the exact frozen tarball into a fresh pinned native runtime/home and verifies root selection, actual read-only child denials, aliased-parent route preflight, runtime snapshot behavior, and the **same compiled DSMM UI** using native client/slots/RPC and real profile storage. A supported composition-owned in-process operator/Gateway carrier and test-owned browser bridge provide no-credential native component/RPC/storage proof. No user login, copied cookie, launcher token, browser state, Desktop data, account records or authentication bypass is permitted. This proof is not authenticated Desktop/Web-launch proof; actual Desktop mounting and authorized operations remain the later check.
|
|
101
105
|
|
package/docs/profiles.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Deepwork runtime profiles (0.1.
|
|
1
|
+
# Deepwork runtime profiles (0.1.8 source contract)
|
|
2
2
|
|
|
3
|
-
This guide describes the 0.1.
|
|
3
|
+
This guide describes the prospective 0.1.8 source contract. It is not evidence of a published 0.1.8 package or completed Docker/Desktop acceptance; see [releasing](releasing.md). Deepwork is the display name; package, storage and configuration IDs retain `dsmm` for compatibility. Historical release identities and completed 0.1.4/0.1.6 continuation evidence stay immutable. The already published and Desktop-installed 0.1.7 has failed terminal verification, not a completed GitHub Release; it remains immutable.
|
|
4
4
|
|
|
5
5
|
A Deepwork runtime profile is a named file containing runtime policy, not a native deployment profile or an Agent role preset. Native Settings → **Deepwork Profiles** / **Deepwork 配置档** provides create/read/edit/save, explicit apply, and reset to the deployment baseline. The native Agent preset selector remains a separate role selector, displaying `DW …` names under unchanged `dsmm-*` IDs.
|
|
6
6
|
|
|
@@ -74,7 +74,9 @@ Saving validates the draft and preserves edited raw JSONC/comments, but does not
|
|
|
74
74
|
|
|
75
75
|
The Conversation header has one icon-only button opening the native Profile menu. Profile names, current selection, status, disabled reasons and refresh are shown only inside that menu, not as standalone header text. It is present on blank sessions and the sessionless welcome screen; without an actual session it is read-only and never creates a session or changes the global default. The single leading slot yields to any higher-priority native/plugin navigation owner.
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
The menu has one profile list. Normal options switch only the session profile and preserve the current native model, with zero native model-selection calls. One separate `@use-model` action, **Use profile model**, reads the current admitted immutable profile's configured main model through DSH's native selection endpoint, so the picker and subsequent request agree. It does not reapply the profile or activate a later saved draft revision. An absent configured model, unavailable selection source or native refusal produces a short sanitized error; the admitted profile remains unchanged. Existing manual-model-intent race fencing preserves a newer native choice, including effort-only and same-value choices. Successes use accessible live announcements only, not visible success prose. Full editing and revisions remain in Settings. A refused profile change keeps the prior admission; refresh before retrying, with only allowlisted codes/fields and refresh/retry guidance. Refresh never applies a profile or selects a model on its own.
|
|
78
|
+
|
|
79
|
+
The same compact menu offers a **Deepwork** toggle for other native presets. Official minimal conversations default off unless saved explicit `deepwork/mode` intent exists. Explicit same-default choices persist durable intent; profile switching does not erase it or adopt a profile's `defaultActive`. Mode intent survives profile changes and reopen. Standing DW presets show Deepwork locked enabled and explain the preset lock; they cannot be switched off here. Sessionless, busy or unavailable mutations are disabled/refused, without creating a session. Normal menu rows omit verbose explanatory descriptions and the old duplicate profile-model list.
|
|
78
80
|
|
|
79
81
|
Save/apply requests use expected revisions. A concurrent UI save or external file edit produces a conflict instead of overwriting later bytes; reread and reconcile. Validation, missing file, revision conflict, lock/IO, authorization, or activation failures must be visible, not reported as success. Invalid/missing/linked files and digest mismatches never silently select another profile or model. Pointer failure retains the prior disk selection and current settings; an unused immutable revision may remain.
|
|
80
82
|
|
|
@@ -84,7 +86,7 @@ Storage uses bounded validated content, containment/link checks under a cross-pr
|
|
|
84
86
|
|
|
85
87
|
Global applying or resetting affects **new unscoped Agents only**. Every existing live Agent, including a blank one, retains its admitted immutable runtime snapshot. An explicit current-session apply is different: a truly idle ordinary root receives a new immutable admission epoch after the durable sidecar commit. Even reapplying the same revision creates a new epoch. Existing children retain their captured old epoch; later genuinely owned native children inherit the new one. Other roots, the global default, completed tools and native persona/tool/skill composition remain unchanged.
|
|
86
88
|
|
|
87
|
-
Native model selection is separate user intent, not a profile sidecar setting. Every ordinary top-level request respects the native assembled provider/model/effort, including an implicit default with no prior selection event. Profile primary/defaults and calibration never overwrite it. An effort-only or same-value native selection still fences stale retry work. Parent model choice does not overwrite a configured child's own role route. Structured editing, save, global apply and normal session apply never select the native/global model default. Only
|
|
89
|
+
Native model selection is separate user intent, not a profile sidecar setting. Every ordinary top-level request respects the native assembled provider/model/effort, including an implicit default with no prior selection event. Profile primary/defaults and calibration never overwrite it. An effort-only or same-value native selection still fences stale retry work. Parent model choice does not overwrite a configured child's own role route. Structured editing, save, global apply and normal session apply never select the native/global model default. Only **Use profile model** invokes native model selection, with the same background-default persistence behavior as the Models tab; later manual model changes remain authoritative. Mode intent is a separate saved `deepwork/mode` event, retained across admission/profile changes and cold resume.
|
|
88
90
|
|
|
89
91
|
After restart, a session with a committed sidecar admits that exact immutable revision or explicit baseline, even if its draft/global default changed. A session without a sidecar preserves the historical global-current cold-resume behavior; it does not infer a previous profile from lineage/history. Corrupt, missing, linked or digest-mismatched sidecars/revisions fail visibly instead of falling back to baseline. Sidecars add no new session event vocabulary, so stock native history readers remain authoritative. Native clear/compact changes the session identity and does not automatically transfer an old choice.
|
|
90
92
|
|
package/docs/releasing.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
# Deepwork 0.1.
|
|
1
|
+
# Deepwork 0.1.8 Release and Rollback
|
|
2
2
|
|
|
3
|
-
This is a
|
|
3
|
+
This is a prospective procedure for the explicitly authorized 0.1.8 commit, new release and later local Desktop installation, not a completed-release receipt. The new identities are `@dsmm/dsmm@0.1.8`, tag `dsmm-scoped-v0.1.8`, and `dsmm-dsmm-0.1.8.tgz`. Deepwork/DW display names do not rename package or protocol IDs. Existing 0.1.1 and older releases remain immutable. The stopped 0.1.2 tag, frozen artifact and draft Release remain untouched and unpublished: do not dispatch its bootstrap publisher, finalize its draft, overwrite its bytes or move/delete/recreate its tag.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
0.1.7 is already npm published and locally installed in Desktop, but not a completed GitHub Release. Preserve immutable `@dsmm/dsmm@0.1.7`, tag `dsmm-scoped-v0.1.7` and source `1ca0bf6e89916d17ddc663e1e06f6c15256cf453`. Original run `37312038470/1` failed verification, the GitHub job was skipped, and terminal evidence remained `UNRESOLVED`/`FAILED`. Do not move/delete/recreate that tag, overwrite package/assets, repair the release in place or relabel installation as completion. New 0.1.8 authority does not authorize a 0.1.7 continuation/rerun. Local Desktop upgrade waits for the new terminal completion; CLI/TUI 0.1.6 stays untouched.
|
|
6
6
|
|
|
7
|
-
The
|
|
7
|
+
The `dsmm-scoped-v0.1.3` tag at `2bdea4b` is immutable too. Run `37235817488` failed **before pack/publish** because pnpm 11 ignored esbuild/koffi build scripts. Preserve that tag and its historical plan; do not reroute it to the successor. 0.1.8 must obtain its own fresh source, clean Linux build, packed bytes and receipt.
|
|
8
|
+
|
|
9
|
+
The completed 0.1.4 publication and its separately authorized continuation remain historical evidence: original run `37240470628/1` and continuation `37243216939/1` are not 0.1.8 proof. Their exact fourteen UI checks and nine installed compiled-file checks remain unchanged. The completed 0.1.5 publication and completed 0.1.6 publication/continuation, immutable packages/tags/accepted bytes and their own terminal completion evidence also remain historical; do not republish them or relabel their receipts as 0.1.8 acceptance. New proof requirements are version-gated, never retroactively applied to completed identities. The 0.1.6 SELECT receipt grammar remains valid for that historical identity, not for the new native-menu proof.
|
|
8
10
|
|
|
9
11
|
The mandatory sequence is **fresh CI pack → independent frozen-byte Docker acceptance → verified OIDC npm/GitHub publication and terminal completion → authorized official-carrier Desktop rollout**. No global/system DSH, Desktop configuration, account/provider, credential, or real-session writes may occur before terminal verified publication. Local readiness alone does not authorize publication or migration.
|
|
10
12
|
|
|
@@ -31,11 +33,11 @@ The root typecheck, test and build must pass before committing. Build before gen
|
|
|
31
33
|
|
|
32
34
|
Use pnpm for actual install/build/test/**pack/publish**. The `npm pack --dry-run --json` above is only the existing read-only, size-rich metadata diagnostic, not release packaging. Do not blindly substitute pnpm's differently shaped preview JSON or fabricate missing size fields. Source-checkout Docker runs are development evidence; final acceptance must use the CI-frozen artifact and expected SHA256 without building or repacking. A checker or successful install is not runtime, UI, publication or Desktop proof.
|
|
33
35
|
|
|
34
|
-
For 0.1.
|
|
36
|
+
For 0.1.8, clean Linux install/build verification must exercise the reviewed pnpm `allowBuilds` policy for exactly `esbuild@0.25.12` and `koffi@3.1.1`, with `strictDepBuilds: true`. A cached native binary or pre-existing `lib` tree cannot establish that the ignored-script failure is repaired. This is distinct from the deliberately script-free metadata dry-run above; do not weaken that diagnostic's lifecycle-script protection or approve all dependency scripts.
|
|
35
37
|
|
|
36
38
|
## Phase 1: frozen artifact and independent Docker gate
|
|
37
39
|
|
|
38
|
-
Use the dedicated `.github/workflows/dsmm-release.yml` **future tag path** for the authorized `dsmm-scoped-v0.1.
|
|
40
|
+
Use the dedicated `.github/workflows/dsmm-release.yml` **future tag path** for the authorized `dsmm-scoped-v0.1.8` push, not the old bootstrap dispatch. Tag/version, peeled source commit, control commit and event identity must agree. CI uses pinned Node 24 / pnpm 11.9.0, checks/builds the exact source, verifies generated assets, and packs **one new actual tarball** with pnpm. Inspect `dsmm-dsmm-0.1.8.tgz`, record its actual size/SHA256/SHA1/SHA512 integrity, and freeze it. Never reuse the old 0.1.2 hash/receipt/artifact or any completed successor's bytes.
|
|
39
41
|
|
|
40
42
|
Run the full independent Docker runner with that **explicit artifact path and expected SHA256**, required compiled-UI hook and trusted support files. It must fail closed if required inputs are missing/mismatched and must not build, repack, or silently choose another tarball. The new completed receipt's `packedSha256` must match the fresh frozen file and its run/attempt/source identity. Only these accepted unchanged bytes may proceed to publish.
|
|
41
43
|
|
|
@@ -51,11 +53,13 @@ Successor acceptance additionally requires the compiled structured editor's nati
|
|
|
51
53
|
|
|
52
54
|
Actual native `followup/whenIdle` requests must prove primary/first-available startup locks, finite same-route rate-limit exhaustion, threshold-ordered rollover, same-profile/different-role and different-profile isolation, first-request unavailable versus partial/later refusal, and both strategies' partial-text/tool-fragment no-retry fences. Bind each real provider call to its native request header, live attempt ID, matching durable stream and settlement; successful outputs and terminal outcomes must agree. A competing native always-retry handler must remain unused and tools must not replay. The added native model-selection scenario must invoke strict public `session/selectModel`, demonstrate a route different from the Orchestrator profile primary, exact effort-only changes and subsequent-request retention, and validate the final native headers rather than an acknowledgement alone.
|
|
53
55
|
|
|
54
|
-
Ordinary roots remain native-owned in 0.1.
|
|
56
|
+
Ordinary roots remain native-owned in 0.1.8: their initial provider/model/exact effort remain authoritative even before any explicit model-selection event. Profile-role primary and fallback chains apply to genuinely owned delegated children, not silently to the root. Prove this with actual native request headers before and after explicit model/effort changes, profile reapply and cold resume; retain supported explicit child overrides and native read-only permissions. Startup failure evidence must identify the failed `installProfiles` child through its public parent-fiber ownership of the actual Loader entry, preserve the native failure exit, and observe absent runtime/zero request preparations/tools; never fabricate an outer Loader failure or accept a foreign failed fiber.
|
|
57
|
+
|
|
58
|
+
Exercise one icon-only native profile menu in sessionless, blank and active native conversation views, with one profile list and exactly one `@use-model` **Use profile model** action. Normal profile switching keeps the current model and native model default unchanged, with zero `session/selectModel` calls; successful profile CAS remains its authority. The independent model action reads the current admitted immutable profile's main model without reapplying a later saved draft revision, changing its epoch or writing a profile sidecar. It calls native `session/selectModel` and has the same native-default persistence consequence as the Models tab, with existing manual-model-intent race fencing. Prove later-draft isolation, missing profile primary, unconfirmed model changes and newer native choices, including effort-only/same-value intent, without undoing an admitted profile or silently overriding the newer choice. Successes use accessible live announcements only; visible errors are short sanitized codes/fields. Remove the old duplicate profile-model list and verbose normal-menu descriptions. Global-default Apply and draft Save retain their separate scopes. Owned component/endpoint proof does not establish authenticated Desktop or production model-picker interaction; retain explicit nonclaims for any unexercised surface.
|
|
55
59
|
|
|
56
|
-
|
|
60
|
+
Prove the **Deepwork** toggle on other native presets: official minimal mode defaults off without saved explicit `deepwork/mode`; saved intent wins over profile `defaultActive`, including explicit same-default choices that persist intent. Real native durable events, profile changes and fresh-process reopen must agree. Standing DW presets are locked enabled with a clear label, never an actionable off choice. Exercise sessionless/busy/unavailable refusals and preserve admission, model and mode on failed writes; no session creation or global-default change belongs to this action.
|
|
57
61
|
|
|
58
|
-
The trusted artifact version alone chooses historical 0.1.6 SELECT
|
|
62
|
+
The trusted artifact version alone chooses the proof contract: historical 0.1.6 SELECT and 0.1.7 native-menu grammars remain unchanged; the new compact-menu/mode proof is version-gated to reviewed 0.1.8 only, never applied retroactively. Later versions require their own explicitly reviewed proof contract and fail closed until reviewed. Reject a relabelled old receipt, SELECT-only/old-slot evidence, missing states or mismatched digest/version; retain every native request/header/projection, CAS-ordering, race, busy, partial-model-failure, no-model and cleanup check. Use the installed native `Menu` through pointer and keyboard open/close/focus/arrow actions and refresh/session withdrawal. At widths 375, 768 and 1280, require one visible icon trigger, zero header SELECTs, one profile list, exactly one model action, bounded focus/header geometry, readable long labels/errors in a viewport-contained portal, and sessionless/blank coverage before any request. Pending CAS and refusals preserve admission/model and show only allowlisted codes/fields with refresh/retry guidance, never arbitrary wire messages, provider/credential identifiers or paths. Successful actions must have accessible live announcements without visible success prose.
|
|
59
63
|
|
|
60
64
|
Bind the hook and every trusted support module explicitly, including `profile-ui-harness-server.mjs`, `profile-ui-harness-browser.mjs`, `profile-ui-harness-native.mjs` and the `native-picker-{harness,browser,proof}.mjs` modules. The successor receipt's exact check and installed compiled-file inventories are version-gated; historical receipt grammars are not expanded. CI source/pack/publish/installed verification uses Node 24 / pnpm 11.9.0; the independent borrowed Docker runtime uses its recorded Node 22 / pnpm 12.8.1 environment. These are distinct evidence surfaces, not interchangeable build claims. Use supported native artifact installation and normal public dependency provisioning in owned Docker homes; offline exploratory A–F startup limitations are not the final gate or native browser proof.
|
|
61
65
|
|
|
@@ -63,9 +67,9 @@ The native component/RPC/storage test uses a supported composition-owned in-proc
|
|
|
63
67
|
|
|
64
68
|
## Phase 2: authorized immutable publication
|
|
65
69
|
|
|
66
|
-
Publication requires explicit authorization for the new identity. Recheck `@dsmm/dsmm@0.1.
|
|
70
|
+
Publication requires explicit authorization for the new identity. Recheck `@dsmm/dsmm@0.1.8` and `dsmm-scoped-v0.1.8` are absent. Confirm the one-time npm Trusted Publisher registration for repository `hugefiver/ocmm`, workflow filename `dsmm-release.yml`, with direct publish allowed. If supported setup/MFA is still missing, request that step; do not add a static token fallback or recurring manual release gate. The main ocmm workflow/checker does not cover DSMM: its dedicated workflow and DSMM terminal checker do.
|
|
67
71
|
|
|
68
|
-
The earlier unscoped `dsmm-v0.1.0` GitHub release, scoped 0.1.0 release and scoped 0.1.1 release stay intact. A new-release authorization covers ordinary parent-owned commit/push/tag/npm/GitHub actions for 0.1.
|
|
72
|
+
The earlier unscoped `dsmm-v0.1.0` GitHub release, scoped 0.1.0 release and scoped 0.1.1 release stay intact. A new-release authorization covers ordinary parent-owned commit/push/tag/npm/GitHub actions for 0.1.8 only, not rewriting prior publications, the old 0.1.2 draft, app upgrades, global package-manager changes or authentication workarounds. The separately authorized official-carrier Desktop DSMM upgrade still waits for terminal completion of this exact new identity; the already verified official CLI/TUI 0.1.6 installation is not unfinished rollout work.
|
|
69
73
|
|
|
70
74
|
The future publish job revalidates the accepted run/attempt-bound bytes and publishes **that exact tarball with native pnpm**, public npmjs access, lifecycle scripts ignored, OIDC and genuine provenance enabled. Do not forge GitHub identity variables, use the old bootstrap's `provenance=false`, or repack after acceptance. Preserve non-canceling package-wide publication concurrency and least-permission separated jobs. Registry byte/integrity and fresh installed-package verification precede non-overwriting public GitHub finalization with the same tarball and `SHA256SUMS.txt`.
|
|
71
75
|
|
|
@@ -73,22 +77,24 @@ Treat both identities as immutable: never overwrite an npm version and never mov
|
|
|
73
77
|
|
|
74
78
|
### Publication identity verification
|
|
75
79
|
|
|
80
|
+
The prospective 0.1.8 verifier gives public metadata, the exact tarball URL and genuine provenance one shared 300-second visibility deadline. Only HTTP 404 reads may wait within that budget; transport failures, other HTTP statuses, wrong bytes, altered source/run identities and invalid provenance still fail closed. This never retries publishing or weakens publisher absence checks. Failures expose only finite stage/code/HTTP-status diagnostics, never raw credentials or provider errors. The original 0.1.7 CI cause remains unproven; this visibility hardening does not repair or reinterpret its failed receipt.
|
|
81
|
+
|
|
76
82
|
Verify the tag's peeled commit, exact npm name/version and `dist.integrity`, genuine provenance, downloaded registry archive bytes, GitHub asset bytes and checksum list against the frozen artifact. Use a fresh isolated `DSH_HOME` for exact registry installation. Check all seven exports, including both metadata JSON resources, resolve and match bytes from the **installed registry package**, never the checkout. Native `readPluginMeta` must yield Deepwork; JSON resources are metadata, not executable code. The Loader row remains `id: dsmm`. Initialize a fresh headless deployment profile first; `/deepwork` and `/dsmm-status` are not headless task text.
|
|
77
83
|
|
|
78
84
|
After the matching workflow terminates, run `scripts/check-dsmm-release-completion.mjs` for its exact run ID, attempt and control SHA. It must bind source/Docker proof, tag/commit, frozen bytes, registry/provenance/install evidence, GitHub assets/checksums and every required job. The future path has `import-bootstrap` **skipped / NOT_APPLICABLE**, `bootstrapImport: null` and no bootstrap import artifact; this is not missing evidence. Only terminal outcome `COMPLETED` authorizes later rollout. Workflow success alone is insufficient. Preserve any partial or ambiguous publication; do not overwrite assets, move/delete/recreate the tag, implicitly retry uploads or repair in place.
|
|
79
85
|
|
|
80
86
|
```powershell
|
|
81
87
|
$env:DSH_HOME = "<fresh-task-owned-verification-home>"
|
|
82
|
-
dsh --profile dsmm-0.1.
|
|
83
|
-
dsh plugin --profile dsmm-0.1.
|
|
84
|
-
dsh plugin --profile dsmm-0.1.
|
|
85
|
-
dsh --profile dsmm-0.1.
|
|
86
|
-
npm view @dsmm/dsmm@0.1.
|
|
88
|
+
dsh --profile dsmm-0.1.8-verify --from-default-profile headless --dump-config
|
|
89
|
+
dsh plugin --profile dsmm-0.1.8-verify add @dsmm/dsmm@0.1.8
|
|
90
|
+
dsh plugin --profile dsmm-0.1.8-verify list
|
|
91
|
+
dsh --profile dsmm-0.1.8-verify --dump-config
|
|
92
|
+
npm view @dsmm/dsmm@0.1.8 dist.integrity --registry "https://registry.npmjs.org/"
|
|
87
93
|
```
|
|
88
94
|
|
|
89
95
|
### Published 0.1.6 continuation (separately authorized)
|
|
90
96
|
|
|
91
|
-
Historical audit reference only: this completed 0.1.6 publication/continuation remains immutable. Do not dispatch it again, republish its package or substitute its completion for the prospective 0.1.
|
|
97
|
+
Historical audit reference only: this completed 0.1.6 publication/continuation remains immutable. Do not dispatch it again, republish its package or substitute its completion for the prospective 0.1.8 gate. The preserved identities and original failed history below belong only to 0.1.6.
|
|
92
98
|
|
|
93
99
|
The original `dsmm-scoped-v0.1.6` publication run `37281521750/1` published the immutable npm bytes but failed its verify job; its GitHub Release job was skipped. Preserve that failed history, original source/tag at `d2e499b3a61ef76033d417efbec3402a4739a8fe`, and original npm provenance. Supplemental verification does not rerun that workflow or republish npm.
|
|
94
100
|
|
|
@@ -100,17 +106,17 @@ After the dedicated run terminates, use its actual run/attempt/control SHA and a
|
|
|
100
106
|
node scripts/check-dsmm-release-completion.mjs terminal-continuation --origin-version 0.1.6 --run-id <actual-continuation-run> --run-attempt <actual-attempt> --control-sha <trusted-continuation-control-sha> --receipt <new-016-continuation-receipt.json>
|
|
101
107
|
```
|
|
102
108
|
|
|
103
|
-
Only exit `0` with `COMPLETED` establishes that historical two-run terminal proof for 0.1.6, not permission for the new 0.1.
|
|
109
|
+
Only exit `0` with `COMPLETED` establishes that historical two-run terminal proof for 0.1.6, not permission for the new 0.1.8 rollout below. A green supplemental run alone is insufficient; `FAILED`/`UNRESOLVED` preserve immutable partial state. The omitted-selector APIs/CLI and old continuation workflow remain fixed to historical 0.1.4; neither that receipt nor its archive/provenance can establish 0.1.6 completion.
|
|
104
110
|
|
|
105
111
|
## Phase 3: official installed-carrier Desktop rollout
|
|
106
112
|
|
|
107
|
-
Only after terminal 0.1.
|
|
113
|
+
Only after terminal 0.1.8 completion may authorized global migration begin. First perform the separately bounded isolated real-model/tool check against the exact registry package. Coordinate a fully quit Desktop, recheck concurrent edits, and preserve a recoverable local snapshot of only task-changed package-manager/DSMM-owned files—not the entire credential or session store. Use the exact installed official Desktop carrier to install `@dsmm/dsmm@0.1.8`. It may manage packages while the app is quit; it may **not** boot/dump the reserved Desktop profile. Never substitute standalone npm DSH, a renamed/copied profile, checkout imports, `app.asar` patches, global PATH/pnpm changes, or auth bypasses. Preserve the enabled state and do not repeat unrelated CLI/TUI installation.
|
|
108
114
|
|
|
109
115
|
Preserve base/web bundles, deployment roles/skills, all configured policies, disabled Builder, active mode, provider/model catalog, account state and UI preferences. Saving supported baseline settings as a runtime draft is explicit and reversible; it does not change structural configuration. Disclose committed-sidecar versus absent-sidecar cold resume and the unknown removed auxiliary-root ID limitation in [compatibility](compatibility.md) before rollout. Do not silently substitute personas or delete history.
|
|
110
116
|
|
|
111
117
|
Any old unmarked-log repair remains a separately authorized exact private target, native-lease-held, same-directory backup-first, metadata-only operation with concurrency checks and actual installed-reader parity. The naming release does not itself authorize session edits, and an old observed digest is not permission to overwrite newer history.
|
|
112
118
|
|
|
113
|
-
After a supported restart, verify actual Desktop package 0.1.
|
|
119
|
+
After a supported restart, verify actual Desktop package 0.1.8 activation, native Deepwork metadata, healthy selectable DW root names, retained auxiliary delegation/read-only denial, and actual Deepwork Profiles UI create/edit/save/apply/reset with independent file/pointer bytes. Verify live even-blank Agents remain unchanged on global Apply and current pinned selection persists across restart. Check one icon-only native profile menu in sessionless, blank and active views, safe refusal feedback and explicit model/effort authority: one normal profile list, one admitted-revision **Use profile model** action, durable Deepwork toggle intent on other presets, and standing DW locked enabled. Confirm accessible-only successes and short sanitized errors. Check unrelated deployment/provider/account/UI state remained intact. If authenticated native Desktop behavior cannot be observed, report that pending boundary; disk files, native metadata reads, headless tests and Docker component proof alone are insufficient for complete integration.
|
|
114
120
|
|
|
115
121
|
## Rollback
|
|
116
122
|
|
package/docs/settings-status.md
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
`/deepwork [off|message]` changes the receiving session's mode. `/dsmm-status` reports bounded normalized state; `/dsmm-status json` returns a defensive JSON snapshot with version 1. Other input returns `Usage: /dsmm-status [json]`.
|
|
6
6
|
|
|
7
|
-
Human-facing status/mode copy uses Deepwork. The technical commands, JSON fields, namespace and configurable `modeName` remain unchanged in 0.1.
|
|
7
|
+
Human-facing status/mode copy uses Deepwork. The technical commands, JSON fields, namespace and configurable `modeName` remain unchanged. The prospective 0.1.8 menu adds a **Deepwork** toggle for other native presets; it defaults off in official minimal conversations unless a saved explicit `deepwork/mode` says otherwise. Even a same-default choice is persisted. This mode intent survives profile changes and reopen. Standing DW presets show a locked enabled label rather than an off action; sessionless, busy and unavailable mutations fail closed. These source requirements do not claim 0.1.8 publication or Desktop acceptance.
|
|
8
8
|
|
|
9
9
|
Commands belong to the native command adapter. Headless task text is not a slash-command invocation.
|
|
10
10
|
|
|
11
11
|
## DSH 0.2 deployment configuration
|
|
12
12
|
|
|
13
|
-
The Loader plugin entry remains the deployment baseline. Structural fields are **restart-scoped**; the 0.1.
|
|
13
|
+
The Loader plugin entry remains the deployment baseline. Structural fields are **restart-scoped**; the prospective 0.1.8 source contract includes runtime-only file overlays for newly admitted Agents. The removed `settings.register()` service and old `$DSH_HOME/settings.yaml` namespace are not used by DSH 0.2. Copy deployment values into the profile's `cordis.patch.yml`, restart, and inspect `--dump-config` and status:
|
|
14
14
|
|
|
15
15
|
```yaml
|
|
16
16
|
- id: dsmm
|
|
@@ -30,7 +30,7 @@ The Loader plugin entry remains the deployment baseline. Structural fields are *
|
|
|
30
30
|
enabled: false
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
The 0.1.
|
|
33
|
+
The prospective 0.1.8 source contract includes the additive native Settings **Deepwork Profiles** / **Deepwork 配置档** section through the native client/authorized RPC surface. It is not a volatile SettingsForms projection and does not turn structural fields into live references. Create/read/edit/save/apply/reset operate on independent files under `<profileContext.dir>/dsmm-profiles/`; neither a Settings schema nor these docs prove completed Desktop activation. See [runtime profiles](profiles.md) for the exact allowlist, file formats and pending acceptance boundary.
|
|
34
34
|
|
|
35
35
|
Save changes only the draft. Global Apply pins an immutable revision for **new unscoped Agents only**; existing even-blank Agents retain their admissions. The separate current-session selector uses the native view's actual session ID and idle maintenance/CAS/epoch fences. It changes only that ordinary root and future children; old children retain their old epoch. Cold resume honors an explicit sidecar or, when absent, the current global default. Global reset and session baseline pinning are distinct and leave drafts intact.
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ Risk-based behavior scales discovery, planning, and review to uncertainty and in
|
|
|
42
42
|
|
|
43
43
|
## Other settings
|
|
44
44
|
|
|
45
|
-
`roleRouting` defaults to an empty map. Each canonical role accepts optional `primary`, ordered `fallbackRoutes`, `strategy` and bounded `rateLimit` fields. Profile-level `runtimePolicy` supplies inherited strategy/retry defaults. Child Agents use their configured startup lock or explicit per-role rate-limit rollover. Ordinary top-level Agents instead preserve the native model tab's exact model/effort and only retry on that same route. Native catalog/form controls edit JSONC paths without changing native global model defaults.
|
|
45
|
+
`roleRouting` defaults to an empty map. Each canonical role accepts optional `primary`, ordered `fallbackRoutes`, `strategy` and bounded `rateLimit` fields. Profile-level `runtimePolicy` supplies inherited strategy/retry defaults. Child Agents use their configured startup lock or explicit per-role rate-limit rollover. Ordinary top-level Agents instead preserve the native model tab's exact model/effort and only retry on that same route. Native catalog/form controls edit JSONC paths without changing native global model defaults. The compact header menu has one profile list and one `@use-model` **Use profile model** action; a normal profile switch never selects a model. The action reads the current admitted immutable profile model without reapplying a later saved revision, uses native-default persistence like the Models tab, and preserves newer manual intent through existing race fencing. Successes are accessible live announcements only; visible errors are short sanitized codes/fields, not verbose normal menu descriptions. The deployment-only `roles` enable map remains separate. Unknown keys/malformed routes fail; omitted and explicit empty chains differ. See [model routing](model-routing.md) and [runtime recovery](runtime-recovery.md).
|
|
46
46
|
|
|
47
47
|
The public schema and exported `DEFAULT_DSMM_SETTINGS` are the complete defaults. Seven core skill toggles and all twelve role toggles default on; effective application is scoped to active mode or a selected DSMM role, not global task policy. Managed preset-directory materialization remains off by default and is an export facility rather than native discovery.
|
|
48
48
|
|
|
@@ -19,7 +19,7 @@ export function SessionScope({ state, actions, t, compact = false }) {
|
|
|
19
19
|
const selected = state.snapshot?.profiles.find((profile) => profile.id === state.sessionChoice);
|
|
20
20
|
const disabled = state.busy !== null || state.pendingEditor !== null || state.sessionBusy !== null || state.dirty;
|
|
21
21
|
const allowed = session !== null && session.switchAllowed && /^[a-f0-9]{64}$|^absent$/u.test(session.selection.selectionRevision);
|
|
22
|
-
const status = state.sessionNotice === null ? "" : t(state.sessionNotice === "applied-with-model" ? "sessionAppliedWithModel" : state.sessionNotice === "applied" ? "sessionApplied" : "sessionResetDone");
|
|
22
|
+
const status = state.sessionNotice === null ? "" : t(state.sessionNotice === "mode-on" ? "headerModeOn" : state.sessionNotice === "mode-off" ? "headerModeOff" : state.sessionNotice === "applied-with-model" ? "sessionAppliedWithModel" : state.sessionNotice === "applied" ? "sessionApplied" : "sessionResetDone");
|
|
23
23
|
return _jsxs("div", { className: "dsmm-session-scope", "aria-busy": state.sessionBusy !== null, "data-dsmm-session-scope": true, children: [!compact && _jsx("h3", { children: t("sessionScope") }), state.currentSessionId === null ? _jsx("p", { className: "dsmm-hint", children: t("noSession") }) : _jsxs(_Fragment, { children: [labels !== null && _jsx("p", { "data-dsmm-session-state": true, children: labels.admitted }), labels !== null && !compact && _jsx("p", { className: "dsmm-hint", "data-dsmm-session-future-default": true, children: labels.futureDefault }), session !== null && !session.switchAllowed && _jsx("p", { className: "dsmm-hint", children: t("sessionBusy", { reason: session.switchUnavailableReason ?? "unavailable" }) }), _jsxs("div", { className: "dsmm-field", children: [_jsx("label", { htmlFor: `${prefix}-choice`, children: t("sessionSelect") }), _jsxs("select", { id: `${prefix}-choice`, value: state.sessionChoice ?? "", disabled: disabled || !allowed, onChange: (event) => actions.chooseSessionProfile(event.currentTarget.value || null), children: [_jsx("option", { value: "", children: t("sessionBaseline") }), state.sessionChoice !== null && selected === undefined && _jsx("option", { value: state.sessionChoice, children: state.sessionChoice }), state.snapshot?.profiles.map((profile) => _jsx("option", { value: profile.id, disabled: profile.revision === null || profile.error !== undefined, children: profile.label === undefined ? profile.id : `${profile.label} (${profile.id})` }, profile.id))] })] }), state.dirty && _jsx("p", { className: "dsmm-hint", children: t("sessionDirty") }), _jsxs("div", { className: "dsmm-actions", children: [_jsx(Button, { type: "button", variant: "outline", disabled: disabled || !allowed || (state.sessionChoice !== null && selected?.revision == null), onClick: () => { void actions.applySession(); }, children: t(state.sessionBusy === "apply" ? "sessionApplying" : "sessionApply") }), !compact && _jsx(Button, { type: "button", variant: "outline", disabled: disabled || !allowed, onClick: () => { void actions.resetSession(); }, children: t(state.sessionBusy === "reset" ? "sessionResetting" : "sessionReset") }), _jsx(Button, { type: "button", variant: "outline", disabled: state.sessionBusy !== null || state.busy !== null || state.pendingEditor !== null, onClick: () => { void actions.refreshSession(); }, children: t("sessionRefresh") })] }), !compact && session?.rolePolicy !== undefined && _jsx("p", { "data-dsmm-session-policy": true, children: t("roleState", { route: session.rolePolicy.route === undefined ? t("inheritRoute") : `${session.rolePolicy.route.provider}/${session.rolePolicy.route.model}${session.rolePolicy.route.reasoningEffort === undefined ? "" : ` (${session.rolePolicy.route.reasoningEffort})`}`, strategy: session.rolePolicy.strategy, retries: session.rolePolicy.retries, failures: session.rolePolicy.rateLimitFailures, switches: session.rolePolicy.switches, delay: session.rolePolicy.totalDelayMs }) })] }), state.sessionIssue !== null && _jsx("p", { role: "alert", children: state.sessionIssue.source === "profile-model" ? t(state.sessionIssue.code === "model-unconfigured" ? "headerNoProfileModel" : state.sessionIssue.code === "model-choice-changed" ? "headerModelChoiceChanged" : "headerModelUnconfirmed")
|
|
24
24
|
: state.sessionIssue.code === "conflict" ? t("sessionConflict")
|
|
25
25
|
: ["busy", "maintenance", "disposed", "not-owned"].includes(state.sessionIssue.code) ? t("sessionBusy", { reason: state.sessionIssue.code })
|
|
@@ -55,38 +55,38 @@ export function SessionProfiles(props) {
|
|
|
55
55
|
else if (state.dirty || state.invalidFields.length > 0 || state.pendingEditor !== null)
|
|
56
56
|
feedback = t("headerDraft");
|
|
57
57
|
else if (id === null)
|
|
58
|
-
feedback = t("
|
|
58
|
+
feedback = t("headerNoSession");
|
|
59
59
|
else if (session === null || state.snapshot === null)
|
|
60
60
|
feedback = t("headerUnavailable");
|
|
61
61
|
else if (!session.switchAllowed)
|
|
62
62
|
feedback = t("headerBusy");
|
|
63
63
|
else if (state.sessionNotice !== null)
|
|
64
|
-
feedback = t(state.sessionNotice === "applied-with-model" ? "headerAppliedWithModel" : "headerApplied");
|
|
65
|
-
const capturedSuffix = session?.scope === "global-default" && !unknownCaptured ? ` — ${t("headerCaptured")}` : "";
|
|
64
|
+
feedback = t(state.sessionNotice === "mode-on" ? "headerModeOn" : state.sessionNotice === "mode-off" ? "headerModeOff" : state.sessionNotice === "applied-with-model" ? "headerAppliedWithModel" : "headerApplied");
|
|
66
65
|
const profileName = unknownCaptured ? t("headerCaptured") : currentSaved?.label === undefined ? admission?.selectedId ?? t("sessionBaseline") : `${currentSaved.label} (${currentSaved.id})`;
|
|
67
|
-
const currentLabel = t("headerCurrentProfile", { profile: session === null ? t("headerUnavailable") : profileName
|
|
66
|
+
const currentLabel = t("headerCurrentProfile", { profile: session === null ? t("headerUnavailable") : profileName });
|
|
68
67
|
const entries = [{ type: "label", id: "@current", text: currentLabel }];
|
|
69
68
|
if (id === null && state.snapshot !== null)
|
|
70
69
|
entries.push({ type: "label", id: "@future", text: t("sessionFutureDefault", { profile: state.snapshot.profiles.find((profile) => profile.id === state.snapshot.selectedId)?.label ?? state.snapshot.selectedId ?? t("sessionBaseline") }) });
|
|
71
|
-
if (feedback !== "")
|
|
70
|
+
if (feedback !== "" && (state.sessionNotice === null || state.sessionIssue !== null))
|
|
72
71
|
entries.push({ type: "label", id: "@status", text: feedback });
|
|
72
|
+
const mode = session?.deepwork;
|
|
73
|
+
entries.push({ id: "@mode", label: t(mode === undefined ? "headerModeUnavailable" : mode.locked ? "headerModePreset" : mode.active ? "headerModeDisable" : "headerModeEnable"),
|
|
74
|
+
disabled: id === null || committing || state.busy !== null || session === null || !session.switchAllowed || mode === undefined || mode.locked });
|
|
73
75
|
const diagnostic = state.sessionIssue === null ? null : menuIssue(state.sessionIssue);
|
|
74
76
|
const diagnosticText = diagnostic === null ? "" : t("headerIssueCode", { code: diagnostic.code }) + (diagnostic.field === undefined ? "" : ` ${t("headerIssueField", { field: diagnostic.field })}`);
|
|
75
77
|
const retryHint = t(diagnostic?.code === "maintenance" || diagnostic?.code === "busy" ? "headerWaitRetryHint" : "headerRetryHint");
|
|
76
78
|
if (diagnostic !== null)
|
|
77
79
|
entries.push({ type: "label", id: "@diagnostic", text: diagnosticText }, { type: "label", id: "@retry", text: retryHint });
|
|
78
80
|
if (admission?.selectedId != null && currentSaved === undefined)
|
|
79
|
-
entries.push({ id: admission.selectedId, label: `${admission.selectedId} — ${t("headerSavedUnavailable")}
|
|
81
|
+
entries.push({ id: admission.selectedId, label: `${admission.selectedId} — ${t("headerSavedUnavailable")}`, disabled: true });
|
|
80
82
|
if (unknownCaptured)
|
|
81
83
|
entries.push({ id: "__dsmm_captured_default__", label: t("headerCaptured"), disabled: true });
|
|
82
|
-
entries.push({ type: "separator", id: "@keep-separator" }, { type: "label", id: "@keep-heading", text: t("
|
|
84
|
+
entries.push({ type: "separator", id: "@keep-separator" }, { type: "label", id: "@keep-heading", text: t("headerCompactProfiles") }, { id: "", label: t("sessionBaseline"), disabled });
|
|
83
85
|
for (const profile of profiles)
|
|
84
|
-
entries.push({ id: profile.id, label: (profile.label ?? profile.id) + (profile.
|
|
85
|
-
entries.push({ type: "separator", id: "@model-separator" }, {
|
|
86
|
-
for (const profile of profiles)
|
|
87
|
-
entries.push({ id: `@model:${profile.id}`, label: t("headerUseModelAction", { profile: profile.label ?? profile.id }) + (profile.error === undefined && profile.revision !== null ? "" : ` — ${t("headerSavedUnavailable")}`), disabled: disabled || profile.revision === null || profile.error !== undefined });
|
|
86
|
+
entries.push({ id: profile.id, label: (profile.label ?? profile.id) + (profile.error === undefined && profile.revision !== null ? "" : ` — ${t("headerSavedUnavailable")}`), disabled: disabled || profile.revision === null || profile.error !== undefined });
|
|
87
|
+
entries.push({ type: "separator", id: "@model-separator" }, { id: "@use-model", label: t("headerUseCurrentModel"), disabled: disabled || session?.profileModel === undefined });
|
|
88
88
|
const open = openFor === id;
|
|
89
|
-
return _jsxs("div", { className: "dsmm-header-profiles", "data-dsmm-header-profile": true, "aria-busy": committing, children: [_jsx(Menu, { open: open, autoFocus: true, portal: true, align: "start", className: "dsmm-profile-anchor", listClassName: "dsmm-profile-menu", items: entries, selectedId: current, footer: [{ id: "@refresh", label: t("
|
|
89
|
+
return _jsxs("div", { className: "dsmm-header-profiles", "data-dsmm-header-profile": true, "aria-busy": committing, children: [_jsx(Menu, { open: open, autoFocus: true, portal: true, align: "start", className: "dsmm-profile-anchor", listClassName: "dsmm-profile-menu", items: entries, selectedId: current, footer: [{ id: "@refresh", label: t("headerCompactRefresh"), disabled: committing || state.busy !== null }], anchor: _jsx(Button, { type: "button", size: "sm", variant: "toolbar", className: "dsmm-profile-trigger", icon: _jsx(IconBranchOutlineRegular, {}), "aria-label": t("headerProfileLabel"), "aria-haspopup": "menu", "aria-expanded": open, "aria-describedby": `${prefix}-feedback`, onClick: () => setOpenFor(open ? undefined : id) }), onClose: () => setOpenFor(undefined), onSelect: (value) => {
|
|
90
90
|
if (props.readProfileView().currentSessionId !== id)
|
|
91
91
|
return;
|
|
92
92
|
if (value === "@refresh") {
|
|
@@ -99,9 +99,16 @@ export function SessionProfiles(props) {
|
|
|
99
99
|
const row = entries.find((entry) => entry.id === value && !("type" in entry));
|
|
100
100
|
if (row === undefined || !("disabled" in row) || row.disabled)
|
|
101
101
|
return;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
if (value === "@mode") {
|
|
103
|
+
if (mode !== undefined)
|
|
104
|
+
void props.setDeepwork(!mode.active);
|
|
105
|
+
}
|
|
106
|
+
else if (value === "@use-model")
|
|
107
|
+
void props.useSessionProfileModel();
|
|
108
|
+
else {
|
|
109
|
+
props.chooseSessionProfile(value || null);
|
|
110
|
+
void props.applySession();
|
|
111
|
+
}
|
|
105
112
|
}
|
|
106
113
|
setOpenFor(undefined);
|
|
107
114
|
} }), _jsxs("span", { className: "dsmm-profile-announcement", id: `${prefix}-feedback`, role: state.sessionIssue === null ? "status" : "alert", "aria-live": "polite", "aria-atomic": "true", children: [feedback || currentLabel, diagnostic === null ? "" : ` ${diagnosticText} ${retryHint}`] })] });
|
|
@@ -40,9 +40,9 @@ export interface ProfilesViewSnapshot {
|
|
|
40
40
|
currentSessionId: string | null;
|
|
41
41
|
session: SessionProfileSnapshot | null;
|
|
42
42
|
sessionChoice: string | null;
|
|
43
|
-
sessionBusy: "read" | "apply" | "reset" | null;
|
|
43
|
+
sessionBusy: "read" | "apply" | "reset" | "mode" | null;
|
|
44
44
|
sessionIssue: ProfilesIssue | null;
|
|
45
|
-
sessionNotice: "applied" | "reset" | "applied-with-model" | null;
|
|
45
|
+
sessionNotice: "applied" | "reset" | "applied-with-model" | "mode-on" | "mode-off" | null;
|
|
46
46
|
invalidFields: string[];
|
|
47
47
|
editorEpoch: number;
|
|
48
48
|
}
|
|
@@ -66,6 +66,8 @@ export interface ProfilesActions {
|
|
|
66
66
|
chooseSessionProfile(id: string | null): void;
|
|
67
67
|
applySession(options?: SessionApplyOptions): Promise<void>;
|
|
68
68
|
resetSession(): Promise<void>;
|
|
69
|
+
setDeepwork(active: boolean): Promise<void>;
|
|
70
|
+
useSessionProfileModel(): Promise<void>;
|
|
69
71
|
setFieldInvalid(field: string, invalid: boolean): void;
|
|
70
72
|
}
|
|
71
73
|
export interface ModelCatalogRemote {
|
|
@@ -99,6 +101,8 @@ export declare class ProfilesController {
|
|
|
99
101
|
private modelEventsSessionId;
|
|
100
102
|
private modelEventsGeneration;
|
|
101
103
|
private modelEventsWatermark;
|
|
104
|
+
private modeEventsWatermark;
|
|
105
|
+
private modeRefreshPending;
|
|
102
106
|
private stopModelEvents;
|
|
103
107
|
private modelInteraction;
|
|
104
108
|
private modelInteractionSessionId;
|
|
@@ -118,7 +122,9 @@ export declare class ProfilesController {
|
|
|
118
122
|
attachCatalog(remote: ModelCatalogRemote | null): void;
|
|
119
123
|
setSession(id: string | null): void;
|
|
120
124
|
refreshCatalog(): Promise<void>;
|
|
121
|
-
|
|
125
|
+
private refreshObservedMode;
|
|
126
|
+
refreshSession(preserveFeedback?: boolean): Promise<void>;
|
|
127
|
+
private setDeepwork;
|
|
122
128
|
private selectSession;
|
|
123
129
|
private publish;
|
|
124
130
|
private accept;
|