@dsmm/dsmm 0.1.6 → 0.1.7
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 +10 -8
- package/docs/compatibility.md +8 -6
- package/docs/profiles.md +5 -3
- package/docs/releasing.md +36 -18
- package/lib/client/SessionProfiles.d.ts +2 -1
- package/lib/client/SessionProfiles.js +68 -14
- package/lib/client/index.js +6 -4
- package/lib/client/locales.d.ts +13 -0
- package/lib/client/locales.js +8 -4
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +8 -3
- package/lib/client.js +114 -52
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
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 current `0.1.
|
|
5
|
+
This package targets `@deepseek-ai/dsh@0.2.0-rc.2`, the npm `latest` resolved on 2026-10-03. The current `0.1.7` source contract preserves native root-model authority and provides one icon-only native profile menu in sessionless, blank and active conversation views, alongside structured native route controls, independent session profiles and delegated-role route strategies. Human-facing names remain **Deepwork** and **DW Role**. 0.1.7 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.7; 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
|
-
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.
|
|
7
|
+
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.7; none of these facts authorizes rewriting earlier identities.
|
|
8
8
|
|
|
9
9
|
## Current functionality
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ The immutable `dsmm-scoped-v0.1.3` tag remains at `2bdea4b`. Its CI run `3723581
|
|
|
14
14
|
- 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
15
|
- 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
16
|
- 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
|
-
-
|
|
17
|
+
- Icon-only native header profile menu: normal switching keeps the current model. The separate explicit “Switch and use profile model” choice invokes native model selection only after successful profile CAS and saves its native default, like the Models tab. Sessionless and blank views retain an inspectable menu; disabled mutations do not hide current state or refresh. A committed profile remains applied if model selection is unavailable or unconfirmed; the UI reports the separate model result and preserves newer native choices. Refusal feedback shows only allowlisted codes/fields and refresh/retry guidance, never raw wire messages or paths.
|
|
18
18
|
- Scoped shell/Git/plan/question/todo guards and separately opt-in bounded idle continuation.
|
|
19
19
|
- 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
20
|
|
|
@@ -26,14 +26,16 @@ Durable session metadata requires explicit deployment-only `sessionPersistence:
|
|
|
26
26
|
|
|
27
27
|
## Install and configure
|
|
28
28
|
|
|
29
|
-
Install the exact registry version after terminal verified publication with `dsh plugin --profile <profile> add @dsmm/dsmm@0.1.
|
|
29
|
+
Install the exact registry version after terminal verified publication with `dsh plugin --profile <profile> add @dsmm/dsmm@0.1.7`. For isolated development verification, use a built and packed artifact:
|
|
30
|
+
|
|
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.7 terminal completion, the exact-version command is `dsh plugin --profile dsh-tui add @dsmm/dsmm@0.1.7 --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.
|
|
30
32
|
|
|
31
33
|
```powershell
|
|
32
34
|
pnpm --dir dsmm build
|
|
33
35
|
pnpm --dir dsmm pack --pack-destination <temporary-artifact-directory>
|
|
34
36
|
$env:DSH_HOME = "<disposable-test-home>"
|
|
35
37
|
dsh --profile <profile> --from-default-profile headless --dump-config
|
|
36
|
-
dsh plugin --profile <profile> add <absolute-path-to-dsmm-dsmm-0.1.
|
|
38
|
+
dsh plugin --profile <profile> add <absolute-path-to-dsmm-dsmm-0.1.7.tgz>
|
|
37
39
|
dsh --profile <profile> --dump-config
|
|
38
40
|
```
|
|
39
41
|
|
|
@@ -55,7 +57,7 @@ This runtime-baseline example is not the full durable-persistence patch. Native
|
|
|
55
57
|
|
|
56
58
|
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).
|
|
57
59
|
|
|
58
|
-
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.
|
|
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.7 behavior.
|
|
59
61
|
|
|
60
62
|
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.
|
|
61
63
|
|
|
@@ -70,7 +72,7 @@ pnpm --dir dsmm check:release
|
|
|
70
72
|
pnpm --dir dsmm smoke:docker
|
|
71
73
|
```
|
|
72
74
|
|
|
73
|
-
A separately authorized credentialed, packed real-model diagnostic is also available from this checkout. It is **not** the independent 0.1.
|
|
75
|
+
A separately authorized credentialed, packed real-model diagnostic is also available from this checkout. It is **not** the independent 0.1.7 Docker/UI release gate; that gate must not copy credentials, sessions, Desktop configuration or browser authentication:
|
|
74
76
|
|
|
75
77
|
```powershell
|
|
76
78
|
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>
|
|
@@ -80,4 +82,4 @@ Add `--delegate` to verify the actual `dsmm_reviewer` child persona, inherited F
|
|
|
80
82
|
|
|
81
83
|
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.
|
|
82
84
|
|
|
83
|
-
These commands are verification procedures, not a claim they have passed for the final 0.1.
|
|
85
|
+
These commands are verification procedures, not a claim they have passed for the final 0.1.7 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,8 @@
|
|
|
1
|
-
# Deepwork 0.1.
|
|
1
|
+
# Deepwork 0.1.7 Compatibility and Upgrade
|
|
2
2
|
|
|
3
|
-
This document describes the 0.1.
|
|
3
|
+
This document describes the 0.1.7 source contract and required acceptance evidence. It does not claim that the final 0.1.7 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.7. 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
|
-
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
|
|
5
|
+
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.7 gate requires fresh clean Linux installation/build evidence; existing compiled output is not a substitute.
|
|
6
6
|
|
|
7
7
|
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
8
|
|
|
@@ -27,7 +27,7 @@ The installation contracts include `@deepseek-ai/cordis@~4.0.4`, `@deepseek-ai/s
|
|
|
27
27
|
| macOS | `Node >=22` | supported by contract |
|
|
28
28
|
| Native Settings | additive Deepwork Profiles client and authenticated RPC | compiled UI/RPC/storage and actual Desktop are separate proofs |
|
|
29
29
|
| Headless | deployment config and native role tools | no Agent preset selection in the one-shot runner |
|
|
30
|
-
| TUI | `DSH 0.2.0-rc.2` |
|
|
30
|
+
| TUI | `DSH 0.2.0-rc.2` | existing official 0.1.6 CLI/TUI installation verified; new 0.1.7 menu proof is Web/Desktop only |
|
|
31
31
|
| LSP/MCP | `external ocmm-lsp mcp` | optional |
|
|
32
32
|
| Runtime recovery | `process-local` | optional |
|
|
33
33
|
| Per-role model/effort/fallback policy | native request, subagent and descriptor seams | opt-in; exact configured capability required |
|
|
@@ -40,13 +40,15 @@ The installation contracts include `@deepseek-ai/cordis@~4.0.4`, `@deepseek-ai/s
|
|
|
40
40
|
|
|
41
41
|
`/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
42
|
|
|
43
|
+
The 0.1.7 Web/Desktop header contributes one icon-only native profile menu in sessionless, blank and active views, yielding to native navigation ownership. Normal selection keeps the current model; only the distinct explicit profile-model action requests native model selection after successful profile CAS. Disabled mutations leave the menu inspectable and refreshable. Safe refusal details use allowlisted codes/fields and refresh/retry guidance, never raw messages or paths. These are required new-menu contracts, not a claim of authenticated Desktop acceptance; the historical 0.1.6 SELECT proof remains unchanged.
|
|
44
|
+
|
|
43
45
|
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.
|
|
44
46
|
|
|
45
47
|
The old directory discovery `roots/includeUserRoot` no longer configures the native preset registry. DSMM registers only enabled `primary`/`all` roots: Orchestrator, Builder and Planner. Disabled Builder is absent from both selector and child tools. The other nine roles remain auxiliary delegation roles; all twelve static `agent-presets/` directories are inspection templates, not scan roots. The loading correction is native `persona.prefix` plus instructions `maxBytes: 65536`.
|
|
46
48
|
|
|
47
49
|
DSH's headless one-shot runner does not select or compose Agent presets: headless role delegation must use native role tools, not a registry default. Native preset selection must be tested through a preset-capable host with a blank session. The managed preset-directory materializer remains an opt-in export facility, not discovery evidence.
|
|
48
50
|
|
|
49
|
-
Trusted live, owned, zero-prefix native one-shot children preserve supported explicit provider/model/effort overrides through final request headers. The role primary supplies alias defaults; it is not an unconditional child override.
|
|
51
|
+
Trusted live, owned, zero-prefix native one-shot children preserve supported explicit provider/model/effort overrides through final request headers. The role primary supplies alias defaults; it is not an unconditional child override. Ordinary roots preserve their native initial and explicit provider/model/exact effort rather than profile-primary resolution, including later turns, profile reapply and cold resume. Delegated-child policies retain their separate ownership and request-preflight restrictions. `modelSelectionSettings:false` and native tool/permission/depth/cancellation limits are unchanged; this adds no model-visible model-selection authority. See [model routing](model-routing.md).
|
|
50
52
|
|
|
51
53
|
## Session persistence compatibility
|
|
52
54
|
|
|
@@ -93,7 +95,7 @@ Global/system Desktop migration is the **third phase**: independent frozen-artif
|
|
|
93
95
|
|
|
94
96
|
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.
|
|
95
97
|
|
|
96
|
-
The matrix separates required 0.1.
|
|
98
|
+
The matrix separates required 0.1.7 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.
|
|
97
99
|
|
|
98
100
|
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.
|
|
99
101
|
|
package/docs/profiles.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Deepwork runtime profiles (0.1.
|
|
1
|
+
# Deepwork runtime profiles (0.1.7 source contract)
|
|
2
2
|
|
|
3
|
-
This guide describes the 0.1.
|
|
3
|
+
This guide describes the 0.1.7 source contract. It is not evidence of a published 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.
|
|
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
|
|
|
@@ -72,7 +72,9 @@ Saving validates the draft and preserves edited raw JSONC/comments, but does not
|
|
|
72
72
|
|
|
73
73
|
**Current-session profile / Apply profile to current session** uses the actual native view's session ID, not the profile being edited or a guessed latest session. It commits only that session's sidecar under a genuine native idle-maintenance reservation. Both the expected sidecar revision and admission epoch must still match. **Pin baseline for current session** writes an explicit baseline choice without changing the global default. Sessionless Settings cannot apply to a session; busy, maintenance-owned, disposed, replaced, child or unauthorized targets refuse visibly. Cold targets are resumed only through native session authority after backend authorization and strict decoding.
|
|
74
74
|
|
|
75
|
-
The Conversation header has
|
|
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
|
+
|
|
77
|
+
Normal menu options switch only the session profile and preserve the current native model. A separately labelled opt-in group switches the profile **and uses its configured main model** through DSH's native selection endpoint, so the picker and subsequent request agree. No configured main model or a refused model selection is reported in the menu; a successfully committed profile is not falsely rolled back if the separate native model operation fails. Full editing and revisions remain in Settings. A refused profile change keeps the prior admission; refresh the menu before retrying and use its sanitized reason/field to resolve configuration errors. Refresh never applies a profile or selects a model on its own.
|
|
76
78
|
|
|
77
79
|
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.
|
|
78
80
|
|
package/docs/releasing.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Deepwork 0.1.
|
|
1
|
+
# Deepwork 0.1.7 Release and Rollback
|
|
2
2
|
|
|
3
|
-
This is a future procedure for 0.1.
|
|
3
|
+
This is a future procedure for 0.1.7, not a completed-release receipt. The new identities are `@dsmm/dsmm@0.1.7`, tag `dsmm-scoped-v0.1.7`, and `dsmm-dsmm-0.1.7.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
|
-
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.
|
|
5
|
+
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.7 must obtain its own fresh source, clean Linux build, packed bytes and receipt.
|
|
6
6
|
|
|
7
|
-
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.
|
|
7
|
+
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.7 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.7 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
8
|
|
|
9
9
|
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
10
|
|
|
@@ -31,11 +31,11 @@ The root typecheck, test and build must pass before committing. Build before gen
|
|
|
31
31
|
|
|
32
32
|
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
33
|
|
|
34
|
-
For 0.1.
|
|
34
|
+
For 0.1.7, 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
35
|
|
|
36
36
|
## Phase 1: frozen artifact and independent Docker gate
|
|
37
37
|
|
|
38
|
-
Use the dedicated `.github/workflows/dsmm-release.yml` **future tag path** for the authorized `dsmm-scoped-v0.1.
|
|
38
|
+
Use the dedicated `.github/workflows/dsmm-release.yml` **future tag path** for the authorized `dsmm-scoped-v0.1.7` 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.7.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
39
|
|
|
40
40
|
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
41
|
|
|
@@ -51,19 +51,21 @@ Successor acceptance additionally requires the compiled structured editor's nati
|
|
|
51
51
|
|
|
52
52
|
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
53
|
|
|
54
|
-
|
|
54
|
+
Ordinary roots remain native-owned in 0.1.7: 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.
|
|
55
55
|
|
|
56
|
-
Exercise
|
|
56
|
+
Exercise one icon-only native profile menu in sessionless, blank and active native conversation views. Normal profile switching keeps the current model and native model default unchanged, with zero `session/selectModel` calls. The distinct explicit “Switch and use profile model” action calls native `session/selectModel` only after successful profile CAS and has the same native-default persistence consequence as the Models tab. Missing profile primary, unconfirmed model changes or a newer native choice must produce truthful feedback without undoing a committed profile or silently overriding the newer choice. 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.
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
The trusted artifact version alone chooses historical 0.1.6 SELECT proof versus 0.1.7 native-menu proof; later versions require an explicitly reviewed proof contract. 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, bounded focus/header geometry, readable long labels/status 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.
|
|
59
|
+
|
|
60
|
+
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.
|
|
59
61
|
|
|
60
62
|
The native component/RPC/storage test uses a supported composition-owned in-process carrier, not an anonymous production route or copied login. It is distinct from authenticated Desktop activation. Preserve sanitized scenario evidence and inspect the full intended diff before parent-owned authorized release operations. If any required scenario fails or the frozen bytes change, stop before publication/global migration.
|
|
61
63
|
|
|
62
64
|
## Phase 2: authorized immutable publication
|
|
63
65
|
|
|
64
|
-
Publication requires explicit authorization for the new identity. Recheck `@dsmm/dsmm@0.1.
|
|
66
|
+
Publication requires explicit authorization for the new identity. Recheck `@dsmm/dsmm@0.1.7` and `dsmm-scoped-v0.1.7` 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.
|
|
65
67
|
|
|
66
|
-
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 commit/push/tag/npm/GitHub actions for 0.1.
|
|
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.7 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.
|
|
67
69
|
|
|
68
70
|
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`.
|
|
69
71
|
|
|
@@ -77,22 +79,38 @@ After the matching workflow terminates, run `scripts/check-dsmm-release-completi
|
|
|
77
79
|
|
|
78
80
|
```powershell
|
|
79
81
|
$env:DSH_HOME = "<fresh-task-owned-verification-home>"
|
|
80
|
-
dsh --profile dsmm-0.1.
|
|
81
|
-
dsh plugin --profile dsmm-0.1.
|
|
82
|
-
dsh plugin --profile dsmm-0.1.
|
|
83
|
-
dsh --profile dsmm-0.1.
|
|
84
|
-
npm view @dsmm/dsmm@0.1.
|
|
82
|
+
dsh --profile dsmm-0.1.7-verify --from-default-profile headless --dump-config
|
|
83
|
+
dsh plugin --profile dsmm-0.1.7-verify add @dsmm/dsmm@0.1.7
|
|
84
|
+
dsh plugin --profile dsmm-0.1.7-verify list
|
|
85
|
+
dsh --profile dsmm-0.1.7-verify --dump-config
|
|
86
|
+
npm view @dsmm/dsmm@0.1.7 dist.integrity --registry "https://registry.npmjs.org/"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Published 0.1.6 continuation (separately authorized)
|
|
90
|
+
|
|
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.7 gate. The preserved identities and original failed history below belong only to 0.1.6.
|
|
92
|
+
|
|
93
|
+
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
|
+
|
|
95
|
+
Only the dedicated no-input `.github/workflows/dsmm-published-continuation-016.yml` may continue this separately authorized identity. Its fixed `--origin-version 0.1.6` policy binds accepted artifact `11332299033`, archive size `359262`, archive digest `sha256:3fedc92c35a88f0a75fdfc6ac8ef9a37ef138d902e5698f90ac969f66f6f4eb9`, and tarball SHA256 `b7b36fc69e892fb22b06a2428d360181d33bd95526ee2bc403c04b6307ed6c35`. The two jobs independently reload original acceptance and verify current registry bytes/provenance plus a fresh isolated Linux/Node 24 native install, then create/finalize only the missing original-byte GitHub Release. Any existing public Release or partial draft stops without adoption, repair, overwrite or deletion. No source pack/build, npm publisher/OIDC, tag mutation, full-workflow rerun or global install belongs to this continuation.
|
|
96
|
+
|
|
97
|
+
After the dedicated run terminates, use its actual run/attempt/control SHA and a new receipt path:
|
|
98
|
+
|
|
99
|
+
```powershell
|
|
100
|
+
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>
|
|
85
101
|
```
|
|
86
102
|
|
|
103
|
+
Only exit `0` with `COMPLETED` establishes that historical two-run terminal proof for 0.1.6, not permission for the new 0.1.7 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
|
+
|
|
87
105
|
## Phase 3: official installed-carrier Desktop rollout
|
|
88
106
|
|
|
89
|
-
Only after terminal 0.1.
|
|
107
|
+
Only after terminal 0.1.7 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.7`. 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.
|
|
90
108
|
|
|
91
109
|
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.
|
|
92
110
|
|
|
93
111
|
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.
|
|
94
112
|
|
|
95
|
-
After a supported restart, verify actual Desktop package 0.1.
|
|
113
|
+
After a supported restart, verify actual Desktop package 0.1.7 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, including normal profile switching versus explicit switch-and-use-model. 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.
|
|
96
114
|
|
|
97
115
|
## Rollback
|
|
98
116
|
|
|
@@ -4,6 +4,7 @@ type Injected = ProfilesActions & {
|
|
|
4
4
|
hooks: {
|
|
5
5
|
profiles: ProfilesController["store"];
|
|
6
6
|
};
|
|
7
|
+
readProfileView: ProfilesController["store"]["getSnapshot"];
|
|
7
8
|
};
|
|
8
9
|
export type SessionProfilesProps = InjectFace<Injected> & PropsLocale<"settings.dsmm-profiles"> & {
|
|
9
10
|
sessionId?: string;
|
|
@@ -13,7 +14,7 @@ export declare function SessionScope({ state, actions, t, compact }: PropsLocale
|
|
|
13
14
|
actions: ProfilesActions;
|
|
14
15
|
compact?: boolean;
|
|
15
16
|
}): import("react").JSX.Element;
|
|
16
|
-
/**
|
|
17
|
+
/** Root-scoped native menu; an explicitly scoped foreign occurrence still refuses. */
|
|
17
18
|
export declare function SessionProfiles(props: SessionProfilesProps): import("react").JSX.Element | null;
|
|
18
19
|
export {};
|
|
19
20
|
//# sourceMappingURL=SessionProfiles.d.ts.map
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useId } from "react";
|
|
3
|
-
import { Button } from "@deepseek-ai/dsh-client-ui-primitives";
|
|
2
|
+
import { useEffect, useId, useState } from "react";
|
|
3
|
+
import { Button, IconBranchOutlineRegular, Menu } from "@deepseek-ai/dsh-client-ui-primitives";
|
|
4
4
|
import { sessionProfileLabels } from "./session-labels.js";
|
|
5
|
+
const MENU_ISSUE_CODES = new Set(["validation", "conflict", "not-found", "lock-timeout", "unsafe-path", "io", "activation", "corrupt-selection", "limit", "busy", "maintenance", "disposed", "not-owned", "unavailable", "cancelled", "model-unconfigured", "model-choice-changed", "model-service-unavailable", "model-observation-unavailable", "model-selection-failed"]);
|
|
6
|
+
const MENU_ROLE_FIELD = /^(?:settings\.roleRouting\.)?dsmm-(?:orchestrator|planner|plan-critic|builder|reviewer|oracle|oracle-2nd|creative|code-search|doc-search|clarifier|media-reader)(?:\.(?:primary|fallbackRoutes)(?:\[[0-7]\])?(?:\.(?:provider|model|reasoningEffort))?|\.strategy|\.rateLimit(?:\.(?:maxRetries|initialDelayMs|maxDelayMs|maxTotalDelayMs|switchAfterRateLimits|maxSwitches))?)?$/u;
|
|
7
|
+
const MENU_COMMON_FIELD = /^(?:version|id|label|content|sessionId|expectedRevision|expectedSelectionRevision|expectedAdmissionEpoch|settings(?:\.(?:defaultActive|roleRouting|workflow|guards|runtimeRecovery|runtimePolicy))?)$/u;
|
|
8
|
+
function menuIssue(issue) {
|
|
9
|
+
const code = MENU_ISSUE_CODES.has(issue.code) ? issue.code : issue.kind === "transport" ? "transport" : "unavailable";
|
|
10
|
+
const field = issue.field;
|
|
11
|
+
// Only closed configuration grammar is displayable; never echo messages,
|
|
12
|
+
// arbitrary wire fields, provider identifiers, credentials or file paths.
|
|
13
|
+
return { code, ...(typeof field === "string" && field.length <= 128 && (MENU_ROLE_FIELD.test(field) || MENU_COMMON_FIELD.test(field)) ? { field } : {}) };
|
|
14
|
+
}
|
|
5
15
|
export function SessionScope({ state, actions, t, compact = false }) {
|
|
6
16
|
const prefix = useId();
|
|
7
17
|
const session = state.session;
|
|
@@ -15,11 +25,14 @@ export function SessionScope({ state, actions, t, compact = false }) {
|
|
|
15
25
|
: ["busy", "maintenance", "disposed", "not-owned"].includes(state.sessionIssue.code) ? t("sessionBusy", { reason: state.sessionIssue.code })
|
|
16
26
|
: t(state.sessionIssue.code === "validation" ? "validation" : "sessionUnavailable") }), _jsx("p", { className: "dsmm-status", role: "status", "aria-live": "polite", "aria-atomic": "true", children: state.sessionBusy === "read" ? t("reading") : status })] });
|
|
17
27
|
}
|
|
18
|
-
/**
|
|
28
|
+
/** Root-scoped native menu; an explicitly scoped foreign occurrence still refuses. */
|
|
19
29
|
export function SessionProfiles(props) {
|
|
20
30
|
const prefix = useId();
|
|
21
31
|
const state = props.useProfiles((snapshot) => snapshot);
|
|
22
|
-
|
|
32
|
+
const id = state.currentSessionId;
|
|
33
|
+
const [openFor, setOpenFor] = useState(undefined);
|
|
34
|
+
useEffect(() => { setOpenFor(undefined); }, [id]);
|
|
35
|
+
if (props.sessionId !== undefined && props.sessionId !== id)
|
|
23
36
|
return null;
|
|
24
37
|
const { t } = props;
|
|
25
38
|
const session = state.session;
|
|
@@ -29,15 +42,20 @@ export function SessionProfiles(props) {
|
|
|
29
42
|
const profiles = state.snapshot?.profiles ?? [];
|
|
30
43
|
const currentSaved = profiles.find((profile) => profile.id === current);
|
|
31
44
|
const committing = state.sessionBusy !== null;
|
|
32
|
-
const disabled = committing || state.busy !== null || state.pendingEditor !== null || state.dirty || state.invalidFields.length > 0
|
|
45
|
+
const disabled = id === null || committing || state.busy !== null || state.pendingEditor !== null || state.dirty || state.invalidFields.length > 0
|
|
33
46
|
|| session === null || !session.switchAllowed || state.snapshot === null;
|
|
34
47
|
let feedback = "";
|
|
35
48
|
if (state.sessionIssue !== null)
|
|
36
|
-
feedback = t(state.sessionIssue.source === "profile-model" ? state.sessionIssue.code === "model-unconfigured" ? "headerNoProfileModel" : state.sessionIssue.code === "model-choice-changed" ? "headerModelChoiceChanged" : "headerModelUnconfirmed"
|
|
37
|
-
|
|
38
|
-
|
|
49
|
+
feedback = t(state.sessionIssue.source === "profile-model" ? state.sessionIssue.code === "model-unconfigured" ? "headerNoProfileModel" : state.sessionIssue.code === "model-choice-changed" ? "headerModelChoiceChanged" : "headerModelUnconfirmed"
|
|
50
|
+
: state.sessionIssue.code === "conflict" ? "headerConflict" : state.sessionIssue.code === "activation" ? "headerActivationRefused"
|
|
51
|
+
: state.sessionIssue.code === "maintenance" ? "headerMaintenanceRefused" : state.sessionIssue.code === "busy" ? "headerBusyRefused"
|
|
52
|
+
: state.sessionIssue.code === "cancelled" ? "headerCancelledRefused" : state.sessionIssue.code === "unavailable" || state.sessionIssue.kind === "assembly" ? "headerUnavailableRefused" : "headerSelectionRefused");
|
|
53
|
+
else if (committing || state.busy !== null)
|
|
54
|
+
feedback = t(state.sessionBusy === "apply" || state.sessionBusy === "reset" ? "headerApplying" : "headerLoading");
|
|
39
55
|
else if (state.dirty || state.invalidFields.length > 0 || state.pendingEditor !== null)
|
|
40
56
|
feedback = t("headerDraft");
|
|
57
|
+
else if (id === null)
|
|
58
|
+
feedback = t("noSession");
|
|
41
59
|
else if (session === null || state.snapshot === null)
|
|
42
60
|
feedback = t("headerUnavailable");
|
|
43
61
|
else if (!session.switchAllowed)
|
|
@@ -45,11 +63,47 @@ export function SessionProfiles(props) {
|
|
|
45
63
|
else if (state.sessionNotice !== null)
|
|
46
64
|
feedback = t(state.sessionNotice === "applied-with-model" ? "headerAppliedWithModel" : "headerApplied");
|
|
47
65
|
const capturedSuffix = session?.scope === "global-default" && !unknownCaptured ? ` — ${t("headerCaptured")}` : "";
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
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 + capturedSuffix });
|
|
68
|
+
const entries = [{ type: "label", id: "@current", text: currentLabel }];
|
|
69
|
+
if (id === null && state.snapshot !== null)
|
|
70
|
+
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 !== "")
|
|
72
|
+
entries.push({ type: "label", id: "@status", text: feedback });
|
|
73
|
+
const diagnostic = state.sessionIssue === null ? null : menuIssue(state.sessionIssue);
|
|
74
|
+
const diagnosticText = diagnostic === null ? "" : t("headerIssueCode", { code: diagnostic.code }) + (diagnostic.field === undefined ? "" : ` ${t("headerIssueField", { field: diagnostic.field })}`);
|
|
75
|
+
const retryHint = t(diagnostic?.code === "maintenance" || diagnostic?.code === "busy" ? "headerWaitRetryHint" : "headerRetryHint");
|
|
76
|
+
if (diagnostic !== null)
|
|
77
|
+
entries.push({ type: "label", id: "@diagnostic", text: diagnosticText }, { type: "label", id: "@retry", text: retryHint });
|
|
78
|
+
if (admission?.selectedId != null && currentSaved === undefined)
|
|
79
|
+
entries.push({ id: admission.selectedId, label: `${admission.selectedId} — ${t("headerSavedUnavailable")}${capturedSuffix}`, disabled: true });
|
|
80
|
+
if (unknownCaptured)
|
|
81
|
+
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("headerKeepModelGroup") }, { id: "", label: t("sessionBaseline") + (current === "" ? capturedSuffix : ""), disabled });
|
|
83
|
+
for (const profile of profiles)
|
|
84
|
+
entries.push({ id: profile.id, label: (profile.label ?? profile.id) + (profile.id === current ? capturedSuffix : "") + (profile.error === undefined && profile.revision !== null ? "" : ` — ${t("headerSavedUnavailable")}`), disabled: disabled || profile.revision === null || profile.error !== undefined });
|
|
85
|
+
entries.push({ type: "separator", id: "@model-separator" }, { type: "label", id: "@model-heading", text: t("headerUseModelGroup") }, { type: "label", id: "@model-hint", text: t("headerModelDefaultHint") }, { id: "@model:", label: t("sessionBaseline"), disabled });
|
|
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 });
|
|
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("headerRefresh"), 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
|
+
if (props.readProfileView().currentSessionId !== id)
|
|
91
|
+
return;
|
|
92
|
+
if (value === "@refresh") {
|
|
93
|
+
if (committing || state.busy !== null)
|
|
94
|
+
return;
|
|
95
|
+
void (async () => { await props.refresh(); if (id !== null && props.readProfileView().currentSessionId === id)
|
|
96
|
+
await props.refreshSession(); })();
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
const row = entries.find((entry) => entry.id === value && !("type" in entry));
|
|
100
|
+
if (row === undefined || !("disabled" in row) || row.disabled)
|
|
101
|
+
return;
|
|
102
|
+
const useProfileModel = value.startsWith("@model:");
|
|
103
|
+
props.chooseSessionProfile((useProfileModel ? value.slice("@model:".length) : value) || null);
|
|
104
|
+
void props.applySession(useProfileModel ? { useProfileModel: true } : undefined);
|
|
105
|
+
}
|
|
106
|
+
setOpenFor(undefined);
|
|
107
|
+
} }), _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}`] })] });
|
|
54
108
|
}
|
|
55
109
|
//# sourceMappingURL=SessionProfiles.js.map
|
package/lib/client/index.js
CHANGED
|
@@ -31,6 +31,12 @@ export async function apply(ctx) {
|
|
|
31
31
|
label: () => t("title"), locale: NS,
|
|
32
32
|
inject: () => ({ hooks: { profiles: controller.store }, ...controller.actions }),
|
|
33
33
|
}, ProfilesSection));
|
|
34
|
+
// Lowest numeric priority wins in native SlotCore. This root-scoped
|
|
35
|
+
// fallback never replaces ordinary native/plugin leading navigation.
|
|
36
|
+
profileCtx.slots.inject("conversation.header.leading", () => profileCtx.slots.register({
|
|
37
|
+
name: "conversation.header.leading", priority: Number.MAX_SAFE_INTEGER, locale: NS,
|
|
38
|
+
inject: () => ({ hooks: { profiles: controller.store }, readProfileView: controller.store.getSnapshot, ...controller.actions }),
|
|
39
|
+
}, SessionProfiles));
|
|
34
40
|
// Optional native services have their own lifetime. Do not await them or
|
|
35
41
|
// make sessionless Settings depend on a Conversation/session provider.
|
|
36
42
|
void profileCtx.inject(["remote.session"], (catalogCtx) => {
|
|
@@ -70,10 +76,6 @@ export async function apply(ctx) {
|
|
|
70
76
|
modelCtx.effect(() => source.subscribe(updateInteraction), "dsmm: native model interaction binding");
|
|
71
77
|
modelCtx.effect(() => () => controller.attachModelInteractionSource(null, null), "dsmm: native model interaction withdrawal");
|
|
72
78
|
});
|
|
73
|
-
sessionCtx.slots.inject("conversation.session.header.utilities", () => sessionCtx.slots.register({
|
|
74
|
-
name: "conversation.session.header.utilities", id: "dsmm-session-profiles", order: 30, locale: NS,
|
|
75
|
-
inject: () => ({ hooks: { profiles: controller.store }, ...controller.actions }),
|
|
76
|
-
}, SessionProfiles));
|
|
77
79
|
});
|
|
78
80
|
void controller.refresh();
|
|
79
81
|
});
|
package/lib/client/locales.d.ts
CHANGED
|
@@ -53,6 +53,9 @@ export declare const en: {
|
|
|
53
53
|
headerProfileLabel: string;
|
|
54
54
|
headerCaptured: string;
|
|
55
55
|
headerSavedUnavailable: string;
|
|
56
|
+
headerCurrentProfile: string;
|
|
57
|
+
headerRefresh: string;
|
|
58
|
+
headerUseModelAction: string;
|
|
56
59
|
headerLoading: string;
|
|
57
60
|
headerApplying: string;
|
|
58
61
|
headerApplied: string;
|
|
@@ -68,6 +71,16 @@ export declare const en: {
|
|
|
68
71
|
headerModelUnconfirmed: string;
|
|
69
72
|
headerAppliedWithModel: string;
|
|
70
73
|
headerModelChoiceChanged: string;
|
|
74
|
+
headerActivationRefused: string;
|
|
75
|
+
headerSelectionRefused: string;
|
|
76
|
+
headerIssueCode: string;
|
|
77
|
+
headerIssueField: string;
|
|
78
|
+
headerRetryHint: string;
|
|
79
|
+
headerMaintenanceRefused: string;
|
|
80
|
+
headerBusyRefused: string;
|
|
81
|
+
headerCancelledRefused: string;
|
|
82
|
+
headerUnavailableRefused: string;
|
|
83
|
+
headerWaitRetryHint: string;
|
|
71
84
|
noSession: string;
|
|
72
85
|
sessionUnavailable: string;
|
|
73
86
|
sessionBusy: string;
|
package/lib/client/locales.js
CHANGED
|
@@ -23,11 +23,13 @@ export const en = {
|
|
|
23
23
|
invalidProfile: "Unavailable profile: {id}", details: "Host diagnostic", retry: "Resolve the diagnostic, refresh profiles, then retry.",
|
|
24
24
|
globalScope: "Global default for future sessions", sessionScope: "Current native session", sessionSelect: "Current-session profile",
|
|
25
25
|
globalActionHint: "Apply saved profile below changes the global default for future unscoped sessions only. It does not apply to the current session.",
|
|
26
|
-
headerProfile: "Profile", headerProfileLabel: "Current-session profile (header)", headerCaptured: "captured global default", headerSavedUnavailable: "saved profile unavailable",
|
|
27
|
-
headerLoading: "Loading profile…", headerApplying: "Applying profile…", headerApplied: "Profile applied.", headerBusy: "Session is busy.", headerUnavailable: "Profile unavailable.", headerDraft: "Save or discard the draft in Settings.", headerConflict: "
|
|
26
|
+
headerProfile: "Profile", headerProfileLabel: "Current-session profile (header)", headerCaptured: "captured global default", headerSavedUnavailable: "saved profile unavailable", headerCurrentProfile: "Current profile: {profile}", headerRefresh: "Refresh profiles and current-session state", headerUseModelAction: "Use profile model: {profile}",
|
|
27
|
+
headerLoading: "Loading profile…", headerApplying: "Applying profile…", headerApplied: "Profile applied.", headerBusy: "Session is busy.", headerUnavailable: "Profile unavailable.", headerDraft: "Save or discard the draft in Settings.", headerConflict: "The session profile or admission changed elsewhere. Refresh current-session state before retrying.", headerRefused: "Profile change unconfirmed. Check Settings.",
|
|
28
28
|
headerKeepModelGroup: "Switch profile — keep current model", headerUseModelGroup: "Switch and use profile model", headerModelDefaultHint: "Normal switching preserves the current model. Explicit switch-and-use-model also saves the native model default, like the Models tab.",
|
|
29
29
|
headerNoProfileModel: "Profile applied; no main model configured. Current model kept.", headerModelUnconfirmed: "Profile applied; model change unconfirmed. Check Models/Settings.", headerAppliedWithModel: "Profile and native model applied.",
|
|
30
30
|
headerModelChoiceChanged: "Profile applied; newer native model choice kept.",
|
|
31
|
+
headerActivationRefused: "Profile activation was refused. Check its configuration and native model catalog.", headerSelectionRefused: "The profile change could not be confirmed.", headerIssueCode: "Reason: {code}.", headerIssueField: "Configuration field: {field}.", headerRetryHint: "Refresh profiles and current-session state, resolve the indicated issue in Settings or native Models, then retry when the session is idle.",
|
|
32
|
+
headerMaintenanceRefused: "Native maintenance owns this session. The previous profile is kept.", headerBusyRefused: "The session is busy. The previous profile is kept.", headerCancelledRefused: "The profile request was cancelled. Refresh current-session state before retrying; do not assume a change completed.", headerUnavailableRefused: "The native session or profile service is unavailable. Reconnect and refresh before retrying.", headerWaitRetryHint: "Wait for the native work or maintenance to finish, then Refresh and retry. No profile change is queued automatically.",
|
|
31
33
|
noSession: "No native session is selected. Session Apply is disabled; global defaults and drafts remain editable.",
|
|
32
34
|
sessionUnavailable: "The current session could not be confirmed. Refresh its state before retrying; the prior policy is kept.",
|
|
33
35
|
sessionBusy: "Switching is unavailable: {reason}. The Host must reserve a truly idle ordinary session before applying.",
|
|
@@ -77,10 +79,12 @@ export const zh = {
|
|
|
77
79
|
invalidProfile: "不可用配置档:{id}", details: "Host 诊断", retry: "请解决诊断问题,刷新配置档后重试。",
|
|
78
80
|
globalScope: "未来会话的全局默认值", sessionScope: "当前原生会话", sessionSelect: "当前会话配置档",
|
|
79
81
|
globalActionHint: "下方应用已保存配置档仅改变未来没有独立选择的会话的全局默认值,不会应用到当前会话。",
|
|
80
|
-
headerProfile: "配置档", headerProfileLabel: "当前会话配置档(会话栏)", headerCaptured: "已捕获的全局默认值", headerSavedUnavailable: "保存的配置档不可用",
|
|
81
|
-
headerLoading: "加载配置档…", headerApplying: "应用配置档…", headerApplied: "配置档已应用。", headerBusy: "会话忙碌。", headerUnavailable: "配置档不可用。", headerDraft: "请在设置中保存或丢弃草稿。", headerConflict: "
|
|
82
|
+
headerProfile: "配置档", headerProfileLabel: "当前会话配置档(会话栏)", headerCaptured: "已捕获的全局默认值", headerSavedUnavailable: "保存的配置档不可用", headerCurrentProfile: "当前配置档:{profile}", headerRefresh: "刷新配置档和当前会话状态", headerUseModelAction: "使用配置档模型:{profile}",
|
|
83
|
+
headerLoading: "加载配置档…", headerApplying: "应用配置档…", headerApplied: "配置档已应用。", headerBusy: "会话忙碌。", headerUnavailable: "配置档不可用。", headerDraft: "请在设置中保存或丢弃草稿。", headerConflict: "会话配置档或准入代次已在其他位置改变,请刷新当前会话状态后重试。", headerRefused: "未确认配置档更改,请检查设置。",
|
|
82
84
|
headerKeepModelGroup: "切换配置档 — 保留当前模型", headerUseModelGroup: "切换并使用配置档模型", headerModelDefaultHint: "普通切换保留当前模型。明确切换并使用模型还会像模型页一样保存原生模型默认值。", headerNoProfileModel: "配置档已应用,未配置主模型。当前模型已保留。", headerModelUnconfirmed: "配置档已应用,模型更改未确认。请检查模型或设置页。", headerAppliedWithModel: "配置档和原生模型已应用。",
|
|
83
85
|
headerModelChoiceChanged: "配置档已应用,已保留更新的原生模型选择。",
|
|
86
|
+
headerActivationRefused: "配置档启用被拒绝,请检查其配置和原生模型目录。", headerSelectionRefused: "无法确认配置档更改。", headerIssueCode: "原因:{code}。", headerIssueField: "配置字段:{field}。", headerRetryHint: "请刷新配置档和当前会话状态,在设置或原生模型页解决所示问题,然后在会话空闲时重试。",
|
|
87
|
+
headerMaintenanceRefused: "原生维护正在占用此会话,原配置档已保留。", headerBusyRefused: "会话正在运行,原配置档已保留。", headerCancelledRefused: "配置档请求已取消,请刷新当前会话状态后重试,不要假定更改已完成。", headerUnavailableRefused: "原生会话或配置档服务不可用,请重新连接并刷新后重试。", headerWaitRetryHint: "请等待原生运行或维护结束,然后刷新并重试。不会自动排队应用配置档。",
|
|
84
88
|
noSession: "未选择原生会话。会话应用已禁用;仍可编辑全局默认值和草稿。", sessionUnavailable: "无法确认当前会话。重试前请刷新状态;原策略已保留。", sessionBusy: "暂不可切换:{reason}。Host 必须先保留真正空闲的普通会话。", sessionState: "会话 {id}:{profile};范围 {scope};准入代次 {epoch}。", sessionBaseline: "部署基线",
|
|
85
89
|
sessionGlobalCaptured: "已捕获的全局默认值(没有明确会话覆盖)",
|
|
86
90
|
sessionAdmittedProfile: "{id}(修订 {revision})", sessionFutureDefault: "未来没有独立选择的会话的全局默认值:{profile}。这不会改变当前会话的准入。",
|
package/lib/client/styles.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Geometry and theme aliases extracted in dsmm/DESIGN.md; scoped to this section. */
|
|
2
|
-
export declare const PROFILE_STYLES = "\n.dsmm-profiles{width:100%;max-width:760px;min-width:0;display:flex;flex-direction:column;gap:12px;font-family:var(--dsw-font-family);font-size:14px;line-height:22px;color:var(--dsw-alias-label-primary)}\n.dsmm-profiles h2{margin:0;font-size:18px;font-weight:600}\n.dsmm-profiles h3,.dsmm-profiles legend{margin:0;font-size:14px;font-weight:500;line-height:22px}\n.dsmm-profiles :is(label,legend,summary){min-width:0;max-width:100%;overflow-wrap:anywhere}\n.dsmm-profiles :is(.dsmm-structured,.dsmm-session-scope,.dsmm-catalog,.dsmm-policy-fields){min-width:0;display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles .dsmm-route-fields{display:flex;flex-wrap:wrap;gap:12px;min-width:0}\n.dsmm-profiles .dsmm-route-fields>.dsmm-field{flex:1 1 240px;max-width:100%}\n.dsmm-profiles .dsmm-route-fields select{width:100%}\n.dsmm-profiles summary{cursor:pointer;color:var(--dsw-alias-label-primary);min-height:32px;line-height:32px}\n.dsmm-profiles summary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles .dsmm-advanced[open]>div{margin-top:8px}\n.dsmm-
|
|
2
|
+
export declare const PROFILE_STYLES = "\n.dsmm-profiles{width:100%;max-width:760px;min-width:0;display:flex;flex-direction:column;gap:12px;font-family:var(--dsw-font-family);font-size:14px;line-height:22px;color:var(--dsw-alias-label-primary)}\n.dsmm-profiles h2{margin:0;font-size:18px;font-weight:600}\n.dsmm-profiles h3,.dsmm-profiles legend{margin:0;font-size:14px;font-weight:500;line-height:22px}\n.dsmm-profiles :is(label,legend,summary){min-width:0;max-width:100%;overflow-wrap:anywhere}\n.dsmm-profiles :is(.dsmm-structured,.dsmm-session-scope,.dsmm-catalog,.dsmm-policy-fields){min-width:0;display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);display:flex;flex-direction:column;gap:12px}\n.dsmm-profiles .dsmm-route-fields{display:flex;flex-wrap:wrap;gap:12px;min-width:0}\n.dsmm-profiles .dsmm-route-fields>.dsmm-field{flex:1 1 240px;max-width:100%}\n.dsmm-profiles .dsmm-route-fields select{width:100%}\n.dsmm-profiles summary{cursor:pointer;color:var(--dsw-alias-label-primary);min-height:32px;line-height:32px}\n.dsmm-profiles summary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles .dsmm-advanced[open]>div{margin-top:8px}\n.dsmm-header-profiles{display:inline-flex;align-items:center;min-width:0;font-family:var(--dsw-font-family);color:var(--dsw-alias-label-primary)}\n.dsmm-header-profiles .dsmm-profile-trigger{width:28px;height:28px;min-height:28px;padding:6px;justify-content:center}\n.dsmm-profile-trigger:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profile-menu{font-family:var(--dsw-font-family);font-size:14px;line-height:22px;max-width:calc(100vw - 24px);color:var(--dsw-alias-label-primary)}\n.dsmm-profile-menu [role=presentation]{font:inherit;white-space:normal;overflow-wrap:anywhere;color:var(--dsw-alias-label-secondary)}\n.dsmm-profile-menu [role=menuitem]{font:inherit}\n.dsmm-profile-menu [role=menuitem]>span{white-space:normal;overflow-wrap:anywhere}\n.dsmm-profile-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}\n.dsmm-profiles p{margin:0;overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-hint{color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-field{min-width:0;display:flex;flex-direction:column;gap:6px}\n.dsmm-profiles .dsmm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}\n.dsmm-profiles button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:36px;height:auto}\n.dsmm-profiles .dsmm-input{width:100%;min-width:0;box-sizing:border-box;border-color:var(--dsw-alias-label-secondary)}\n.dsmm-profiles .dsmm-input input{width:100%;min-width:0;font:inherit;color:inherit}\n.dsmm-profiles select,.dsmm-profiles textarea{box-sizing:border-box;min-width:0;max-width:100%;font:inherit;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-label-secondary);border-radius:var(--dsw-radius-md)}\n.dsmm-profiles select{width:240px;height:32px;padding:0 10px;text-overflow:ellipsis}\n.dsmm-profiles textarea{width:100%;padding:12px;font-family:var(--ds-font-family-code);resize:vertical;overflow:auto;white-space:pre;}\n.dsmm-profiles select:hover:not(:disabled),.dsmm-profiles textarea:hover:not(:disabled){border-color:var(--dsw-alias-label-primary)}\n.dsmm-profiles select:active:not(:disabled){background:var(--dsw-alias-interactive-bg-active)}\n.dsmm-profiles :is(select,textarea,button):focus-visible,.dsmm-profiles .dsmm-input:has(input:focus-visible){outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}\n.dsmm-profiles :is(select,textarea):disabled{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-module-platform);cursor:not-allowed}\n.dsmm-profiles .dsmm-editor,.dsmm-profiles .dsmm-confirm{min-width:0;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform)}\n.dsmm-profiles .dsmm-issue{padding:12px;border-left:4px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-label-primary);overflow-wrap:anywhere}\n.dsmm-profiles .dsmm-issue p+p{margin-top:8px}\n.dsmm-profiles .dsmm-status{min-height:22px}\n@media(prefers-reduced-motion:reduce){.dsmm-profiles *{transition:none!important;animation:none!important}}\n";
|
|
3
3
|
//# sourceMappingURL=styles.d.ts.map
|
package/lib/client/styles.js
CHANGED
|
@@ -12,9 +12,14 @@ export const PROFILE_STYLES = `
|
|
|
12
12
|
.dsmm-profiles summary{cursor:pointer;color:var(--dsw-alias-label-primary);min-height:32px;line-height:32px}
|
|
13
13
|
.dsmm-profiles summary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}
|
|
14
14
|
.dsmm-profiles .dsmm-advanced[open]>div{margin-top:8px}
|
|
15
|
-
.dsmm-
|
|
16
|
-
.dsmm-profiles.dsmm-
|
|
17
|
-
.dsmm-
|
|
15
|
+
.dsmm-header-profiles{display:inline-flex;align-items:center;min-width:0;font-family:var(--dsw-font-family);color:var(--dsw-alias-label-primary)}
|
|
16
|
+
.dsmm-header-profiles .dsmm-profile-trigger{width:28px;height:28px;min-height:28px;padding:6px;justify-content:center}
|
|
17
|
+
.dsmm-profile-trigger:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}
|
|
18
|
+
.dsmm-profile-menu{font-family:var(--dsw-font-family);font-size:14px;line-height:22px;max-width:calc(100vw - 24px);color:var(--dsw-alias-label-primary)}
|
|
19
|
+
.dsmm-profile-menu [role=presentation]{font:inherit;white-space:normal;overflow-wrap:anywhere;color:var(--dsw-alias-label-secondary)}
|
|
20
|
+
.dsmm-profile-menu [role=menuitem]{font:inherit}
|
|
21
|
+
.dsmm-profile-menu [role=menuitem]>span{white-space:normal;overflow-wrap:anywhere}
|
|
22
|
+
.dsmm-profile-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
|
|
18
23
|
.dsmm-profiles p{margin:0;overflow-wrap:anywhere}
|
|
19
24
|
.dsmm-profiles .dsmm-hint{color:var(--dsw-alias-label-secondary)}
|
|
20
25
|
.dsmm-profiles .dsmm-field{min-width:0;display:flex;flex-direction:column;gap:6px}
|
package/lib/client.js
CHANGED
|
@@ -2226,13 +2226,16 @@ var en = {
|
|
|
2226
2226
|
headerProfileLabel: "Current-session profile (header)",
|
|
2227
2227
|
headerCaptured: "captured global default",
|
|
2228
2228
|
headerSavedUnavailable: "saved profile unavailable",
|
|
2229
|
+
headerCurrentProfile: "Current profile: {profile}",
|
|
2230
|
+
headerRefresh: "Refresh profiles and current-session state",
|
|
2231
|
+
headerUseModelAction: "Use profile model: {profile}",
|
|
2229
2232
|
headerLoading: "Loading profile…",
|
|
2230
2233
|
headerApplying: "Applying profile…",
|
|
2231
2234
|
headerApplied: "Profile applied.",
|
|
2232
2235
|
headerBusy: "Session is busy.",
|
|
2233
2236
|
headerUnavailable: "Profile unavailable.",
|
|
2234
2237
|
headerDraft: "Save or discard the draft in Settings.",
|
|
2235
|
-
headerConflict: "
|
|
2238
|
+
headerConflict: "The session profile or admission changed elsewhere. Refresh current-session state before retrying.",
|
|
2236
2239
|
headerRefused: "Profile change unconfirmed. Check Settings.",
|
|
2237
2240
|
headerKeepModelGroup: "Switch profile — keep current model",
|
|
2238
2241
|
headerUseModelGroup: "Switch and use profile model",
|
|
@@ -2241,6 +2244,16 @@ var en = {
|
|
|
2241
2244
|
headerModelUnconfirmed: "Profile applied; model change unconfirmed. Check Models/Settings.",
|
|
2242
2245
|
headerAppliedWithModel: "Profile and native model applied.",
|
|
2243
2246
|
headerModelChoiceChanged: "Profile applied; newer native model choice kept.",
|
|
2247
|
+
headerActivationRefused: "Profile activation was refused. Check its configuration and native model catalog.",
|
|
2248
|
+
headerSelectionRefused: "The profile change could not be confirmed.",
|
|
2249
|
+
headerIssueCode: "Reason: {code}.",
|
|
2250
|
+
headerIssueField: "Configuration field: {field}.",
|
|
2251
|
+
headerRetryHint: "Refresh profiles and current-session state, resolve the indicated issue in Settings or native Models, then retry when the session is idle.",
|
|
2252
|
+
headerMaintenanceRefused: "Native maintenance owns this session. The previous profile is kept.",
|
|
2253
|
+
headerBusyRefused: "The session is busy. The previous profile is kept.",
|
|
2254
|
+
headerCancelledRefused: "The profile request was cancelled. Refresh current-session state before retrying; do not assume a change completed.",
|
|
2255
|
+
headerUnavailableRefused: "The native session or profile service is unavailable. Reconnect and refresh before retrying.",
|
|
2256
|
+
headerWaitRetryHint: "Wait for the native work or maintenance to finish, then Refresh and retry. No profile change is queued automatically.",
|
|
2244
2257
|
noSession: "No native session is selected. Session Apply is disabled; global defaults and drafts remain editable.",
|
|
2245
2258
|
sessionUnavailable: "The current session could not be confirmed. Refresh its state before retrying; the prior policy is kept.",
|
|
2246
2259
|
sessionBusy: "Switching is unavailable: {reason}. The Host must reserve a truly idle ordinary session before applying.",
|
|
@@ -2374,13 +2387,16 @@ var zh = {
|
|
|
2374
2387
|
headerProfileLabel: "当前会话配置档(会话栏)",
|
|
2375
2388
|
headerCaptured: "已捕获的全局默认值",
|
|
2376
2389
|
headerSavedUnavailable: "保存的配置档不可用",
|
|
2390
|
+
headerCurrentProfile: "当前配置档:{profile}",
|
|
2391
|
+
headerRefresh: "刷新配置档和当前会话状态",
|
|
2392
|
+
headerUseModelAction: "使用配置档模型:{profile}",
|
|
2377
2393
|
headerLoading: "加载配置档…",
|
|
2378
2394
|
headerApplying: "应用配置档…",
|
|
2379
2395
|
headerApplied: "配置档已应用。",
|
|
2380
2396
|
headerBusy: "会话忙碌。",
|
|
2381
2397
|
headerUnavailable: "配置档不可用。",
|
|
2382
2398
|
headerDraft: "请在设置中保存或丢弃草稿。",
|
|
2383
|
-
headerConflict: "
|
|
2399
|
+
headerConflict: "会话配置档或准入代次已在其他位置改变,请刷新当前会话状态后重试。",
|
|
2384
2400
|
headerRefused: "未确认配置档更改,请检查设置。",
|
|
2385
2401
|
headerKeepModelGroup: "切换配置档 — 保留当前模型",
|
|
2386
2402
|
headerUseModelGroup: "切换并使用配置档模型",
|
|
@@ -2389,6 +2405,16 @@ var zh = {
|
|
|
2389
2405
|
headerModelUnconfirmed: "配置档已应用,模型更改未确认。请检查模型或设置页。",
|
|
2390
2406
|
headerAppliedWithModel: "配置档和原生模型已应用。",
|
|
2391
2407
|
headerModelChoiceChanged: "配置档已应用,已保留更新的原生模型选择。",
|
|
2408
|
+
headerActivationRefused: "配置档启用被拒绝,请检查其配置和原生模型目录。",
|
|
2409
|
+
headerSelectionRefused: "无法确认配置档更改。",
|
|
2410
|
+
headerIssueCode: "原因:{code}。",
|
|
2411
|
+
headerIssueField: "配置字段:{field}。",
|
|
2412
|
+
headerRetryHint: "请刷新配置档和当前会话状态,在设置或原生模型页解决所示问题,然后在会话空闲时重试。",
|
|
2413
|
+
headerMaintenanceRefused: "原生维护正在占用此会话,原配置档已保留。",
|
|
2414
|
+
headerBusyRefused: "会话正在运行,原配置档已保留。",
|
|
2415
|
+
headerCancelledRefused: "配置档请求已取消,请刷新当前会话状态后重试,不要假定更改已完成。",
|
|
2416
|
+
headerUnavailableRefused: "原生会话或配置档服务不可用,请重新连接并刷新后重试。",
|
|
2417
|
+
headerWaitRetryHint: "请等待原生运行或维护结束,然后刷新并重试。不会自动排队应用配置档。",
|
|
2392
2418
|
noSession: "未选择原生会话。会话应用已禁用;仍可编辑全局默认值和草稿。",
|
|
2393
2419
|
sessionUnavailable: "无法确认当前会话。重试前请刷新状态;原策略已保留。",
|
|
2394
2420
|
sessionBusy: "暂不可切换:{reason}。Host 必须先保留真正空闲的普通会话。",
|
|
@@ -2704,6 +2730,14 @@ function sessionProfileLabels(session, t) {
|
|
|
2704
2730
|
|
|
2705
2731
|
// src/client/SessionProfiles.tsx
|
|
2706
2732
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
2733
|
+
var MENU_ISSUE_CODES = /* @__PURE__ */ new Set(["validation", "conflict", "not-found", "lock-timeout", "unsafe-path", "io", "activation", "corrupt-selection", "limit", "busy", "maintenance", "disposed", "not-owned", "unavailable", "cancelled", "model-unconfigured", "model-choice-changed", "model-service-unavailable", "model-observation-unavailable", "model-selection-failed"]);
|
|
2734
|
+
var MENU_ROLE_FIELD = /^(?:settings\.roleRouting\.)?dsmm-(?:orchestrator|planner|plan-critic|builder|reviewer|oracle|oracle-2nd|creative|code-search|doc-search|clarifier|media-reader)(?:\.(?:primary|fallbackRoutes)(?:\[[0-7]\])?(?:\.(?:provider|model|reasoningEffort))?|\.strategy|\.rateLimit(?:\.(?:maxRetries|initialDelayMs|maxDelayMs|maxTotalDelayMs|switchAfterRateLimits|maxSwitches))?)?$/u;
|
|
2735
|
+
var MENU_COMMON_FIELD = /^(?:version|id|label|content|sessionId|expectedRevision|expectedSelectionRevision|expectedAdmissionEpoch|settings(?:\.(?:defaultActive|roleRouting|workflow|guards|runtimeRecovery|runtimePolicy))?)$/u;
|
|
2736
|
+
function menuIssue(issue) {
|
|
2737
|
+
const code = MENU_ISSUE_CODES.has(issue.code) ? issue.code : issue.kind === "transport" ? "transport" : "unavailable";
|
|
2738
|
+
const field = issue.field;
|
|
2739
|
+
return { code, ...typeof field === "string" && field.length <= 128 && (MENU_ROLE_FIELD.test(field) || MENU_COMMON_FIELD.test(field)) ? { field } : {} };
|
|
2740
|
+
}
|
|
2707
2741
|
function SessionScope({ state, actions, t, compact = false }) {
|
|
2708
2742
|
const prefix = (0, import_react2.useId)();
|
|
2709
2743
|
const session = state.session;
|
|
@@ -2747,7 +2781,12 @@ function SessionScope({ state, actions, t, compact = false }) {
|
|
|
2747
2781
|
function SessionProfiles(props) {
|
|
2748
2782
|
const prefix = (0, import_react2.useId)();
|
|
2749
2783
|
const state = props.useProfiles((snapshot2) => snapshot2);
|
|
2750
|
-
|
|
2784
|
+
const id2 = state.currentSessionId;
|
|
2785
|
+
const [openFor, setOpenFor] = (0, import_react2.useState)(void 0);
|
|
2786
|
+
(0, import_react2.useEffect)(() => {
|
|
2787
|
+
setOpenFor(void 0);
|
|
2788
|
+
}, [id2]);
|
|
2789
|
+
if (props.sessionId !== void 0 && props.sessionId !== id2) return null;
|
|
2751
2790
|
const { t } = props;
|
|
2752
2791
|
const session = state.session;
|
|
2753
2792
|
const admission = session?.admittedSelection ?? (session?.scope === "global-default" ? void 0 : session?.selection);
|
|
@@ -2756,51 +2795,70 @@ function SessionProfiles(props) {
|
|
|
2756
2795
|
const profiles = state.snapshot?.profiles ?? [];
|
|
2757
2796
|
const currentSaved = profiles.find((profile) => profile.id === current);
|
|
2758
2797
|
const committing = state.sessionBusy !== null;
|
|
2759
|
-
const disabled = committing || state.busy !== null || state.pendingEditor !== null || state.dirty || state.invalidFields.length > 0 || session === null || !session.switchAllowed || state.snapshot === null;
|
|
2798
|
+
const disabled = id2 === null || committing || state.busy !== null || state.pendingEditor !== null || state.dirty || state.invalidFields.length > 0 || session === null || !session.switchAllowed || state.snapshot === null;
|
|
2760
2799
|
let feedback = "";
|
|
2761
|
-
if (state.sessionIssue !== null) feedback = t(state.sessionIssue.source === "profile-model" ? state.sessionIssue.code === "model-unconfigured" ? "headerNoProfileModel" : state.sessionIssue.code === "model-choice-changed" ? "headerModelChoiceChanged" : "headerModelUnconfirmed" : state.sessionIssue.code === "conflict" ? "headerConflict" : "
|
|
2762
|
-
else if (committing) feedback = t(state.sessionBusy === "
|
|
2800
|
+
if (state.sessionIssue !== null) feedback = t(state.sessionIssue.source === "profile-model" ? state.sessionIssue.code === "model-unconfigured" ? "headerNoProfileModel" : state.sessionIssue.code === "model-choice-changed" ? "headerModelChoiceChanged" : "headerModelUnconfirmed" : state.sessionIssue.code === "conflict" ? "headerConflict" : state.sessionIssue.code === "activation" ? "headerActivationRefused" : state.sessionIssue.code === "maintenance" ? "headerMaintenanceRefused" : state.sessionIssue.code === "busy" ? "headerBusyRefused" : state.sessionIssue.code === "cancelled" ? "headerCancelledRefused" : state.sessionIssue.code === "unavailable" || state.sessionIssue.kind === "assembly" ? "headerUnavailableRefused" : "headerSelectionRefused");
|
|
2801
|
+
else if (committing || state.busy !== null) feedback = t(state.sessionBusy === "apply" || state.sessionBusy === "reset" ? "headerApplying" : "headerLoading");
|
|
2763
2802
|
else if (state.dirty || state.invalidFields.length > 0 || state.pendingEditor !== null) feedback = t("headerDraft");
|
|
2803
|
+
else if (id2 === null) feedback = t("noSession");
|
|
2764
2804
|
else if (session === null || state.snapshot === null) feedback = t("headerUnavailable");
|
|
2765
2805
|
else if (!session.switchAllowed) feedback = t("headerBusy");
|
|
2766
2806
|
else if (state.sessionNotice !== null) feedback = t(state.sessionNotice === "applied-with-model" ? "headerAppliedWithModel" : "headerApplied");
|
|
2767
2807
|
const capturedSuffix = session?.scope === "global-default" && !unknownCaptured ? ` — ${t("headerCaptured")}` : "";
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2808
|
+
const profileName = unknownCaptured ? t("headerCaptured") : currentSaved?.label === void 0 ? admission?.selectedId ?? t("sessionBaseline") : `${currentSaved.label} (${currentSaved.id})`;
|
|
2809
|
+
const currentLabel = t("headerCurrentProfile", { profile: session === null ? t("headerUnavailable") : profileName + capturedSuffix });
|
|
2810
|
+
const entries = [{ type: "label", id: "@current", text: currentLabel }];
|
|
2811
|
+
if (id2 === null && state.snapshot !== null) 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") }) });
|
|
2812
|
+
if (feedback !== "") entries.push({ type: "label", id: "@status", text: feedback });
|
|
2813
|
+
const diagnostic = state.sessionIssue === null ? null : menuIssue(state.sessionIssue);
|
|
2814
|
+
const diagnosticText = diagnostic === null ? "" : t("headerIssueCode", { code: diagnostic.code }) + (diagnostic.field === void 0 ? "" : ` ${t("headerIssueField", { field: diagnostic.field })}`);
|
|
2815
|
+
const retryHint = t(diagnostic?.code === "maintenance" || diagnostic?.code === "busy" ? "headerWaitRetryHint" : "headerRetryHint");
|
|
2816
|
+
if (diagnostic !== null) entries.push({ type: "label", id: "@diagnostic", text: diagnosticText }, { type: "label", id: "@retry", text: retryHint });
|
|
2817
|
+
if (admission?.selectedId != null && currentSaved === void 0) entries.push({ id: admission.selectedId, label: `${admission.selectedId} — ${t("headerSavedUnavailable")}${capturedSuffix}`, disabled: true });
|
|
2818
|
+
if (unknownCaptured) entries.push({ id: "__dsmm_captured_default__", label: t("headerCaptured"), disabled: true });
|
|
2819
|
+
entries.push({ type: "separator", id: "@keep-separator" }, { type: "label", id: "@keep-heading", text: t("headerKeepModelGroup") }, { id: "", label: t("sessionBaseline") + (current === "" ? capturedSuffix : ""), disabled });
|
|
2820
|
+
for (const profile of profiles) entries.push({ id: profile.id, label: (profile.label ?? profile.id) + (profile.id === current ? capturedSuffix : "") + (profile.error === void 0 && profile.revision !== null ? "" : ` — ${t("headerSavedUnavailable")}`), disabled: disabled || profile.revision === null || profile.error !== void 0 });
|
|
2821
|
+
entries.push({ type: "separator", id: "@model-separator" }, { type: "label", id: "@model-heading", text: t("headerUseModelGroup") }, { type: "label", id: "@model-hint", text: t("headerModelDefaultHint") }, { id: "@model:", label: t("sessionBaseline"), disabled });
|
|
2822
|
+
for (const profile of profiles) entries.push({ id: `@model:${profile.id}`, label: t("headerUseModelAction", { profile: profile.label ?? profile.id }) + (profile.error === void 0 && profile.revision !== null ? "" : ` — ${t("headerSavedUnavailable")}`), disabled: disabled || profile.revision === null || profile.error !== void 0 });
|
|
2823
|
+
const open = openFor === id2;
|
|
2824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dsmm-header-profiles", "data-dsmm-header-profile": true, "aria-busy": committing, children: [
|
|
2825
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
2826
|
+
import_dsh_client_ui_primitives2.Menu,
|
|
2827
|
+
{
|
|
2828
|
+
open,
|
|
2829
|
+
autoFocus: true,
|
|
2830
|
+
portal: true,
|
|
2831
|
+
align: "start",
|
|
2832
|
+
className: "dsmm-profile-anchor",
|
|
2833
|
+
listClassName: "dsmm-profile-menu",
|
|
2834
|
+
items: entries,
|
|
2835
|
+
selectedId: current,
|
|
2836
|
+
footer: [{ id: "@refresh", label: t("headerRefresh"), disabled: committing || state.busy !== null }],
|
|
2837
|
+
anchor: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dsh_client_ui_primitives2.Button, { type: "button", size: "sm", variant: "toolbar", className: "dsmm-profile-trigger", icon: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dsh_client_ui_primitives2.IconBranchOutlineRegular, {}), "aria-label": t("headerProfileLabel"), "aria-haspopup": "menu", "aria-expanded": open, "aria-describedby": `${prefix}-feedback`, onClick: () => setOpenFor(open ? void 0 : id2) }),
|
|
2838
|
+
onClose: () => setOpenFor(void 0),
|
|
2839
|
+
onSelect: (value) => {
|
|
2840
|
+
if (props.readProfileView().currentSessionId !== id2) return;
|
|
2841
|
+
if (value === "@refresh") {
|
|
2842
|
+
if (committing || state.busy !== null) return;
|
|
2843
|
+
void (async () => {
|
|
2844
|
+
await props.refresh();
|
|
2845
|
+
if (id2 !== null && props.readProfileView().currentSessionId === id2) await props.refreshSession();
|
|
2846
|
+
})();
|
|
2847
|
+
} else {
|
|
2848
|
+
const row = entries.find((entry) => entry.id === value && !("type" in entry));
|
|
2849
|
+
if (row === void 0 || !("disabled" in row) || row.disabled) return;
|
|
2850
|
+
const useProfileModel = value.startsWith("@model:");
|
|
2851
|
+
props.chooseSessionProfile((useProfileModel ? value.slice("@model:".length) : value) || null);
|
|
2852
|
+
void props.applySession(useProfileModel ? { useProfileModel: true } : void 0);
|
|
2853
|
+
}
|
|
2854
|
+
setOpenFor(void 0);
|
|
2855
|
+
}
|
|
2856
|
+
}
|
|
2857
|
+
),
|
|
2858
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dsmm-profile-announcement", id: `${prefix}-feedback`, role: state.sessionIssue === null ? "status" : "alert", "aria-live": "polite", "aria-atomic": "true", children: [
|
|
2859
|
+
feedback || currentLabel,
|
|
2860
|
+
diagnostic === null ? "" : ` ${diagnosticText} ${retryHint}`
|
|
2861
|
+
] })
|
|
2804
2862
|
] });
|
|
2805
2863
|
}
|
|
2806
2864
|
|
|
@@ -2967,9 +3025,14 @@ var PROFILE_STYLES = `
|
|
|
2967
3025
|
.dsmm-profiles summary{cursor:pointer;color:var(--dsw-alias-label-primary);min-height:32px;line-height:32px}
|
|
2968
3026
|
.dsmm-profiles summary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}
|
|
2969
3027
|
.dsmm-profiles .dsmm-advanced[open]>div{margin-top:8px}
|
|
2970
|
-
.dsmm-
|
|
2971
|
-
.dsmm-profiles.dsmm-
|
|
2972
|
-
.dsmm-
|
|
3028
|
+
.dsmm-header-profiles{display:inline-flex;align-items:center;min-width:0;font-family:var(--dsw-font-family);color:var(--dsw-alias-label-primary)}
|
|
3029
|
+
.dsmm-header-profiles .dsmm-profile-trigger{width:28px;height:28px;min-height:28px;padding:6px;justify-content:center}
|
|
3030
|
+
.dsmm-profile-trigger:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}
|
|
3031
|
+
.dsmm-profile-menu{font-family:var(--dsw-font-family);font-size:14px;line-height:22px;max-width:calc(100vw - 24px);color:var(--dsw-alias-label-primary)}
|
|
3032
|
+
.dsmm-profile-menu [role=presentation]{font:inherit;white-space:normal;overflow-wrap:anywhere;color:var(--dsw-alias-label-secondary)}
|
|
3033
|
+
.dsmm-profile-menu [role=menuitem]{font:inherit}
|
|
3034
|
+
.dsmm-profile-menu [role=menuitem]>span{white-space:normal;overflow-wrap:anywhere}
|
|
3035
|
+
.dsmm-profile-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
|
|
2973
3036
|
.dsmm-profiles p{margin:0;overflow-wrap:anywhere}
|
|
2974
3037
|
.dsmm-profiles .dsmm-hint{color:var(--dsw-alias-label-secondary)}
|
|
2975
3038
|
.dsmm-profiles .dsmm-field{min-width:0;display:flex;flex-direction:column;gap:6px}
|
|
@@ -3015,6 +3078,12 @@ async function apply(ctx) {
|
|
|
3015
3078
|
locale: NS,
|
|
3016
3079
|
inject: () => ({ hooks: { profiles: controller.store }, ...controller.actions })
|
|
3017
3080
|
}, ProfilesSection));
|
|
3081
|
+
profileCtx.slots.inject("conversation.header.leading", () => profileCtx.slots.register({
|
|
3082
|
+
name: "conversation.header.leading",
|
|
3083
|
+
priority: Number.MAX_SAFE_INTEGER,
|
|
3084
|
+
locale: NS,
|
|
3085
|
+
inject: () => ({ hooks: { profiles: controller.store }, readProfileView: controller.store.getSnapshot, ...controller.actions })
|
|
3086
|
+
}, SessionProfiles));
|
|
3018
3087
|
void profileCtx.inject(["remote.session"], (catalogCtx) => {
|
|
3019
3088
|
controller.attachCatalog(catalogCtx.remote.session);
|
|
3020
3089
|
controller.attachModelSelector(catalogCtx.remote.session);
|
|
@@ -3057,13 +3126,6 @@ async function apply(ctx) {
|
|
|
3057
3126
|
modelCtx.effect(() => source.subscribe(updateInteraction), "dsmm: native model interaction binding");
|
|
3058
3127
|
modelCtx.effect(() => () => controller.attachModelInteractionSource(null, null), "dsmm: native model interaction withdrawal");
|
|
3059
3128
|
});
|
|
3060
|
-
sessionCtx.slots.inject("conversation.session.header.utilities", () => sessionCtx.slots.register({
|
|
3061
|
-
name: "conversation.session.header.utilities",
|
|
3062
|
-
id: "dsmm-session-profiles",
|
|
3063
|
-
order: 30,
|
|
3064
|
-
locale: NS,
|
|
3065
|
-
inject: () => ({ hooks: { profiles: controller.store }, ...controller.actions })
|
|
3066
|
-
}, SessionProfiles));
|
|
3067
3129
|
});
|
|
3068
3130
|
void controller.refresh();
|
|
3069
3131
|
});
|