dsh-charter 0.2.1 → 0.3.0
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/CHANGELOG.md +62 -1
- package/CHANGELOG.zh.md +53 -1
- package/README.md +64 -33
- package/README.zh.md +49 -27
- package/docs/README.md +7 -3
- package/docs/README.zh.md +7 -3
- package/docs/assets/charter-graph-0.3.0.zh.png +0 -0
- package/docs/assets/charter-pane-0.3.0.png +0 -0
- package/docs/assets/charter-pane-0.3.0.zh.png +0 -0
- package/docs/assets/charter-pane.zh.png +0 -0
- package/docs/design/charter-dependency-graph-v1.zh.md +1101 -0
- package/docs/design/charter-design-v1.md +2 -2
- package/docs/design/charter-design-v1.zh.md +2 -2
- package/docs/design/charter-gui-v1.zh.md +868 -0
- package/docs/design/charter-workspace-v2.zh.md +29 -1
- package/docs/design/compatibility.md +22 -6
- package/docs/design/compatibility.zh.md +21 -6
- package/docs/design/mockups/README.md +29 -0
- package/docs/design/mockups/mockup-graph.html +152 -0
- package/docs/design/mockups/mockup-home-clean.html +146 -0
- package/docs/design/mockups/mockup-home-dirty.html +191 -0
- package/docs/design/mockups/mockup.css +425 -0
- package/docs/design/mockups/style-tile.html +146 -0
- package/docs/design/mockups/tokens.css +670 -0
- package/docs/design/version-roadmap.md +28 -11
- package/docs/design/version-roadmap.zh.md +38 -8
- package/docs/release-notes/0.2.1.md +8 -6
- package/docs/release-notes/0.2.2.md +60 -0
- package/docs/release-notes/0.3.0.md +66 -0
- package/docs/release-notes/README.md +1 -2
- package/docs/releasing.md +7 -8
- package/docs/releasing.zh.md +7 -8
- package/docs/user-guide.md +36 -16
- package/docs/user-guide.zh.md +33 -14
- package/docs/verification.md +105 -32
- package/docs/verification.zh.md +90 -28
- package/lib/client/ChangeSetPanel.d.ts +24 -0
- package/lib/client/DependencyGraph.d.ts +19 -0
- package/lib/client/DiagnosticsPage.d.ts +5 -0
- package/lib/client/ReviewCenterPage.d.ts +5 -0
- package/lib/client/SectionNav.d.ts +14 -0
- package/lib/client/WorkspacePage.d.ts +5 -0
- package/lib/client/change-set-model.d.ts +55 -0
- package/lib/client/draft-store.d.ts +1 -1
- package/lib/client/locales.d.ts +94 -7
- package/lib/client/page-order.d.ts +26 -0
- package/lib/client/pane-format.d.ts +48 -0
- package/lib/client/pane-scope.d.ts +382 -0
- package/lib/client/pane-ui.d.ts +39 -0
- package/lib/client/relation-graph.d.ts +135 -0
- package/lib/client/section-routing.d.ts +12 -0
- package/lib/client/use-change-set-sheet.d.ts +13 -0
- package/lib/client.js +4589 -2413
- package/lib/core/change-set.d.ts +7 -0
- package/lib/core/dependencies.d.ts +29 -0
- package/lib/core.js +1 -1
- package/lib/{fork-D5HVDV1i.js → fork-KSL6sovw.js} +70 -1
- package/lib/host/types.d.ts +8 -1
- package/lib/index.js +2 -2
- package/lib/remote/wire.d.ts +37 -3
- package/lib/remote.js +23 -3
- package/lib/{service-CNjnvioR.js → service-DO3Q9uB2.js} +10 -5
- package/lib/version.d.ts +1 -1
- package/package.json +23 -18
package/docs/verification.md
CHANGED
|
@@ -3,47 +3,54 @@
|
|
|
3
3
|
English | [中文](verification.zh.md)
|
|
4
4
|
|
|
5
5
|
> **Status:** Active — current operating record.
|
|
6
|
-
> **Version scope:**
|
|
7
|
-
> **Baseline:** 2026-11-
|
|
6
|
+
> **Version scope:** `0.2.2` released 2026-11-11.
|
|
7
|
+
> **Baseline:** 2026-11-11
|
|
8
8
|
|
|
9
|
-
Verification date: 2026-11-
|
|
9
|
+
Verification date: 2026-11-11. Current source version: `0.2.2` (published 2026-11-11). This is the current evidence record; historical per-commit narratives live in Git
|
|
10
10
|
history and the Changelog. Temporary directories, profiles, tarballs, and fetched HTML live under `.tmp/` and are
|
|
11
11
|
excluded from the published package.
|
|
12
12
|
|
|
13
13
|
Environment: macOS, Node `v22.23.1`, npm `12.0.2`, pnpm `12.3.4`. Local DSH development baseline:
|
|
14
|
-
`0.2.2-rc.
|
|
14
|
+
`0.2.2-rc.2` (the current npm `next`).
|
|
15
15
|
|
|
16
16
|
## 1. Current conclusion
|
|
17
17
|
|
|
18
|
-
Current release state (2026-11-
|
|
18
|
+
Current release state (2026-11-11):
|
|
19
19
|
|
|
20
|
-
- Published: `0.2.
|
|
21
|
-
-
|
|
22
|
-
- `0.
|
|
20
|
+
- Published: `0.2.2` (npm `latest`/`next`; exact SHA-256 `ccb094342ceda030b77c2c3555bc2838ee8a4f6ef2efe4f1ac80a9d39fca7875`). GitHub Release `v0.2.2` is public and immutable.
|
|
21
|
+
- `0.2.1`: previous public release; GitHub Release `v0.2.1` remains immutable.
|
|
22
|
+
- `0.2.0`: earlier public release; GitHub Release `v0.2.0` remains immutable.
|
|
23
|
+
- `0.1.0-rc.6`: earlier public release; recovery tag `v0.1.0-rc.6-republished`.
|
|
23
24
|
- Versioning from 0.2.0 onward uses plain increments and never an `rc` suffix.
|
|
24
|
-
- Current source evidence:
|
|
25
|
-
-
|
|
25
|
+
- Current source evidence: 37 files / 475 tests on the final 0.2.2 tree at `f9d93c0`; the nine-version matrix passes 475/475 on that tree (Node `v22.23.1` / pnpm `12.3.4`, evidence `.tmp/0.2.2-final-matrix2.json`).
|
|
26
|
+
- Post-release diagnostics: real-model compaction PASS (session `session-da7e7b0d-f0b0-49a2-8391-148b4782892c`); 512-item performance PASS on 2026-11-06 (core read/planning p95, see below).
|
|
26
27
|
|
|
27
28
|
| Item | Result |
|
|
28
29
|
| --- | --- |
|
|
29
30
|
| Strict TypeScript check | Pass on the current tree |
|
|
30
|
-
| Vitest |
|
|
31
|
+
| Vitest | 37 files / 475 tests pass (`npm test`, which builds first) |
|
|
31
32
|
| Host ESM build + browser factory bundle | Pass |
|
|
32
33
|
| Remote contract and client smoke | Pass |
|
|
33
34
|
| Normal package smoke | Pass |
|
|
34
|
-
| Exact-artifact package smoke | Pass on the
|
|
35
|
+
| Exact-artifact package smoke | Pass on the published `0.2.1` `.tgz` bytes (`d4ae14e1…`) from the root `SHA256SUMS`, without rebuild |
|
|
35
36
|
| Packed-artifact recovery smoke | Pass: export, target removal, restore, receipt replay, two restarts, healthy-target refusal, packed fault subset |
|
|
36
37
|
| Real `TypertGatewayService` | Pass on exact artifact with isolated DSH `0.2.1-rc.3` and `rc.4` graphs |
|
|
37
38
|
| Compatibility sentinels | Pass on `0.1.7-rc.2`, `0.2.1-rc.2`, `0.2.1-rc.4`, `0.2.1-rc.5` |
|
|
38
|
-
|
|
|
39
|
+
| 0.2.2 promotion | PASS on 2026-11-11: release candidate run `43024720739` (C `51789db`), checksum-only C+1 `d65a4d6`, promotion run `43026165062`; npm `latest`/`next` both `0.2.2`, GitHub Release `v0.2.2` public with tarball `SHA256SUMS` and `release-evidence.json`. |
|
|
40
|
+
| 0.2.2 exact artifact smoke | PASS on 2026-11-11: published `dsh-charter-0.2.2.tgz` (98 files, SHA-256 `ccb094342ceda030b77c2c3555bc2838ee8a4f6ef2efe4f1ac80a9d39fca7875`); package smoke installed the exact bytes in an empty consumer and the packed recovery smoke passed all export/restore/two-restart/fault checks. |
|
|
41
|
+
| Nine-version full rerun | Pass via tracked `compat-matrix --versions all --allow-new-release` (475/475 each) |
|
|
39
42
|
| Fresh Web profile matrix (historical rc.6) | PASS: local rc.6 artifact (pre-withdrawal) installed and served on DSH `0.1.7-rc.2`, `0.2.0-rc.2`, `0.2.1-rc.2`, `0.2.1-rc.4`, `0.2.1-rc.5` |
|
|
40
|
-
| Fresh Web profile 0.2.2 | PASS on 2026-11-05: fresh `DSH_HOME` + `dsh@0.2.2-rc.1 plugin --profile web add` of `dsh-charter-0.2.0.tgz` (SHA-256 `fde5531d457effc713f4423f8b46c8f0e591770e59c55e19956f000c11bdeffc`); Web boot, page HTTP 200, charter bundle HTTP 200; boot graph contains `dsh-charter` and the page index contains `dsh-charter/client.js` |
|
|
43
|
+
| Fresh Web profile (historical 0.2.2 DSH / 0.2.0 plugin) | PASS on 2026-11-05: fresh `DSH_HOME` + `dsh@0.2.2-rc.1 plugin --profile web add` of `dsh-charter-0.2.0.tgz` (SHA-256 `fde5531d457effc713f4423f8b46c8f0e591770e59c55e19956f000c11bdeffc`); Web boot, page HTTP 200, charter bundle HTTP 200; boot graph contains `dsh-charter` and the page index contains `dsh-charter/client.js` |
|
|
41
44
|
| Untracked `0.2.2-alpha.2` / `0.2.2-alpha.3` probes | strict-peer install fails because these alpha lines require a Cordis 4.0.6 alpha graph; the 0.2.2-rc.1 line pins Cordis 4.1.0; no tests run; explicitly unsupported. |
|
|
42
45
|
| 0.2.1 real Web Pane | PASS on 2026-11-06: local Web profile installed the `0.2.1` candidate artifact; Pane reports `v0.2.1`, diagnostics/recovery cache and the editable message proposal render, and the browser console is clean. |
|
|
43
46
|
| 0.2.1 local human acceptance | PASS on 2026-11-06: user completed local acceptance of the 0.2.1 UI/interaction batch. |
|
|
44
|
-
| 0.2.1 Desktop ABI |
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
+
| 0.2.1 Desktop ABI | PASS on 2026-11-06: Desktop profile installed the exact candidate, the Electron process was restarted, and the Pane/tab ABI was confirmed. |
|
|
48
|
+
| 0.2.2 compatibility matrix | PASS on 2026-11-11: source `f9d93c031eabfe5e44cf17e302729eb7093d7e94`, Node `v22.23.1` / pnpm `12.3.4`; all nine declared DSH versions passed typecheck, build, and 475/475 tests (`.tmp/0.2.2-final-matrix2.json`). |
|
|
49
|
+
| 0.2.2 fresh profile install | PASS on 2026-11-11: isolated `DSH_HOME=/tmp/dsh-charter-fresh-022-home` initialized a fresh Web profile and installed the exact local `dsh-charter-0.2.2.tgz`; `dsh web` served the Pane entry (HTTP 303 token redirect). CLI/tarball path verified; Desktop, real Pane interaction, and zh/en switch remain manual. |
|
|
50
|
+
| 0.2.2 dependency graph source | PASS on 2026-11-11: `npm run check` 37 files / 475 tests; W0-0 prototype 41/41 (pre-isolated-grid contract; product isolated-grid tests are in `tests/client/relation-graph.spec.ts`); Web Pane rendered the graph, candidate lane, inspector, and always-present semantic list for a session with 3 active + 4 pending deliverables; browser console clean. UI self-check on 2026-11-11: isolated three-node graph + empty hint, compact list, add-edge/hide/show, and local-key prerequisite summary all rendered without console errors. W0-1/2/3 and real AT/manual gates remain pending. |
|
|
51
|
+
| 0.2.2 dependency graph bundle | Measured on 2026-11-11 against `d362d6f` with the standardized budget method `gzip -9 -c lib/client.js | wc -c`: 113,990 → 130,474 B (+16,484 B), so the `<40 KB` gzip budget passes. Raw diagnostic: `lib/client.js` 591,936 → 670,173 B (+78,237 B); raw CSS output 47,230 → 55,540 B (+8,310 B). Raw bytes are not the budget channel. |
|
|
52
|
+
| Real-model compaction | PASS on 2026-11-06 for `session-da7e7b0d-f0b0-49a2-8391-148b4782892c`: latest compaction seq 32610–32614, post-compaction snapshot seq 32623, `charter_read` call/result seq 32631/32632; injected, digest match, injection-after-compaction, survival, authenticated standing read, and no-checkpoint-leak all pass. |
|
|
53
|
+
| 512-item performance | PASS on 2026-11-06, local Node `22.23.1`: 512 pending items, 300 warm-ups then 30 samples; full pagination query p95 5.2 ms and 5-op Change Set planning p95 0.6 ms against the 100 ms budget. This measures the pure core read/planning path, not UI/network. |
|
|
47
54
|
| Real browser diagnostics | Local manual checks recorded; not a release gate |
|
|
48
55
|
| Real-model compaction | Separately recorded PASS (2026-10-22); still a manual release gate |
|
|
49
56
|
|
|
@@ -56,16 +63,81 @@ The `main` tree has passed source-level acceptance for the implemented workspace
|
|
|
56
63
|
- three-area Pane information architecture and dependency editor;
|
|
57
64
|
- proposal-batch provenance, objective-proposal lifecycle, summary/item/proposal/change query endpoints, `watchSummary`, and pending-only `charter_propose`;
|
|
58
65
|
- `npm run check`: 36 files / 441 tests;
|
|
59
|
-
- nine-version DSH matrix:
|
|
66
|
+
- nine-version DSH matrix: 475/475 on every declared version;
|
|
60
67
|
- normal package smoke: `dsh-charter-0.2.0.tgz` installs and its client factory bundle loads.
|
|
61
68
|
|
|
62
69
|
This is source acceptance, not a release acceptance: real Desktop/browser diagnostics, real-model compaction, performance,
|
|
63
70
|
and the remaining full-design gates must be recorded separately before declaring `0.2.0` stable. The Pane uses `watchSummary` plus paged queries with a full-watch compatibility fallback; the network layer still fetches all pages, so the 512-item performance gate remains separate.
|
|
64
71
|
|
|
72
|
+
## 1.2 0.3.0 GUI development candidate (unreleased, local acceptance pending)
|
|
73
|
+
|
|
74
|
+
- Branch `feat/0.3.0-gui`; W6 implementation commits `f3ac8f2`/`2ad1df3`/`bb576cd`/`840d202` plus follow-up docs are committed and the
|
|
75
|
+
worktree is clean at audit time. **Not pushed/merged/tagged/published**; no `0.3.0` availability claim.
|
|
76
|
+
- Source gates (2026-11-12): `npm run check` = 39 files / **492 tests** PASS (typecheck, build, remote/client
|
|
77
|
+
smoke, Vitest, token gate); `npm run verify:ui-metrics -- --gate=css|ia` PASS.
|
|
78
|
+
- Metric record (W1/W2/W4): CSS gate — `font-size` values 6, font weights 3, literal colors 0, non-token
|
|
79
|
+
radius 0, non-token shadow 0, padding 9, gap 8, `!important` 0; IA gate — legacy objective card 0, legacy
|
|
80
|
+
overview/stat/budget 0, `goSection` scroll/focus yes, action bar dirty-only yes; final gate PASS. The
|
|
81
|
+
isolated profile and CDP matrix were captured under the installed livery layer (`body[data-dsh-livery]`
|
|
82
|
+
present), dark and light; no second livery preset was available for a broader spot check. Record:
|
|
83
|
+
`.tmp/gui-acceptance/2026-11-12/livery-spotcheck.md`.
|
|
84
|
+
- Token coverage audit (W0): 41 static host vars used by `charter.css` are defined in
|
|
85
|
+
`@deepseek-ai/dsh-client-ui-theme` for **all 10 declared DSH versions**; `--dsh-content-font-size` has a
|
|
86
|
+
`14px` fallback; the compat block is intentionally empty. Gate: `npm run verify:tokens`.
|
|
87
|
+
- Real-browser evidence (CDP-injected new bundle into the installed Web Host; explicitly **not** the same as an
|
|
88
|
+
installed artifact unless stated): multi-width 320/375/560/850/1440, dark/light, forced-colors,
|
|
89
|
+
reduced-motion, page-scale 2x; AX tree named region/no nested `main`/no unnamed buttons/named dialog; real
|
|
90
|
+
host scroll/focus routing and narrow-sheet Escape/focus restore.
|
|
91
|
+
- Isolated-profile evidence: a WIP artifact of the current tree was installed into
|
|
92
|
+
`DSH_HOME=/tmp/dsh-w4-home` and its `lib/client.js` hash matched the repo build; the dev tarball named
|
|
93
|
+
`dsh-charter-0.2.2.tgz` was **deleted** after review because it collided with the published immutable 0.2.2
|
|
94
|
+
artifact/digest. Future dev packs must bump the version (e.g. `0.3.0`) before packing.
|
|
95
|
+
- Local acceptance deployment (2026-11-12): the W6 acceptance build is
|
|
96
|
+
`dist/dsh-charter-0.3.0-w6-final.tgz` (SHA-256 `ab74591c…`, client `986f8403…`). It is installed in both local
|
|
97
|
+
`web` and `desktop` profiles, with the bounded `engines.dsh` range and package version `0.3.0`. Also updated:
|
|
98
|
+
the Pane header version chip (`v0.3.0`) is restored at the user's request.
|
|
99
|
+
- Desktop hot reload (2026-11-12, corrected): Desktop does **not** require a quit/reopen to load a rebuilt
|
|
100
|
+
`dsh-charter` bundle. With the installed profile, a profile dependency replace was observed to swap the
|
|
101
|
+
running Pane in a CDP-driven page at `127.0.0.1:51452` without a page reload: a bundle probe appeared in
|
|
102
|
+
**824 ms**, a CSS probe was applied in **402 ms**, and the final bundle+CSS state appeared in **886 ms**. Across
|
|
103
|
+
both swaps `.charter-tabs__tab` stayed at 3, exactly one `style[data-plugin-css="dsh-charter/charter.css"]`
|
|
104
|
+
remained, the version chip and Pane stayed mounted, and no page exceptions were recorded. This is the
|
|
105
|
+
Host profile recomposition + client bundle HMR path; no Host restart is needed for a plugin-only change.
|
|
106
|
+
- Disclosure affordance (2026-11-12): the execution-path `details` summary names `Expand dependency map` when closed and `Collapse dependency map` when open; verified closed → open → closed without duplicate sections.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
- Final-build matrix (2026-11-13): from the installed `w6-final` artifact (client `986f8403…`), Review Center was
|
|
110
|
+
recaptured at 320/375/560/850/1440 × dark/light × zh/en (20 images) plus Diagnostics at 850/1440; every capture
|
|
111
|
+
had `documentElement.scrollWidth == clientWidth`, three `charter-tabs__tab` entries, and a mounted Pane. Evidence:
|
|
112
|
+
`.tmp/gui-acceptance/2026-11-13/matrix-final/`. This replaces the pre-W6 matrix for the Review/Diagnostics subset; final-build dirty and graph states were also
|
|
113
|
+
captured at 1440 from synthetic staged rows. Empty/Applied/Conflict states and the frozen-mockup side-by-side
|
|
114
|
+
are still missing.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
- Final-build special evidence (2026-11-13): forced-colors, reduced-motion and page-scale-2 screenshots were recaptured from `w6-final` at 1440: Pane mounted, no horizontal overflow, three tabs; media emulation matched. Evidence: `.tmp/gui-acceptance/2026-11-13/final-special/`. This is a page-scale proxy, not a full 200% text-layout or keyboard/AT audit.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
- Mechanical mockup comparison (2026-11-13): `dirty-mockup-vs-final.png` and `graph-mockup-vs-final.png` were composed from the frozen mockups and the `w6-final` build under `.tmp/gui-acceptance/2026-11-13/side-by-side/`; this is reference material only, not the human side-by-side review, and empty/applied/conflict captures remain missing.
|
|
121
|
+
|
|
122
|
+
- Ten-version source matrix (2026-11-12): all declared DSH versions `0.1.7-rc.2` … `0.2.2-rc.2` pass
|
|
123
|
+
typecheck, build, and tests; run with `--allow-new-release` because rc.2 is inside the pnpm 24-hour
|
|
124
|
+
`minimumReleaseAge` window. The tracked rc.2 compatibility lockfile was generated and added. Evidence:
|
|
125
|
+
`.tmp/compat-matrix-0.3.0.json`.
|
|
126
|
+
- Compatibility-range strategy: `engines.dsh` is now `0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0`. DSH evaluates that
|
|
127
|
+
range with `includePrerelease` and ignores peers when `engines.dsh` is present, so future 0.2.x prereleases
|
|
128
|
+
install without a plugin rebuild; `0.3.x` is excluded. The exact peer/`dshReleases` list remains the verified
|
|
129
|
+
ten-version matrix; new versions are probed with `compat-matrix --discover` before being added to it.
|
|
130
|
+
- Pane page split (2026-11-12): `CharterPane.tsx` 3459 → 1842 lines; new `WorkspacePage`, `ReviewCenterPage`,
|
|
131
|
+
`DiagnosticsPage` and generated `pane-scope.ts`; shared `pane-format`/`pane-ui`; real-browser v0.3.0 three-area
|
|
132
|
+
route check; 492 tests and final gate PASS.
|
|
133
|
+
- W6 document-feel visual freeze (2026-11-12): underline tabs replace the left rail; 720px document column + 280px Change Set rail at ≥1100; section/row anatomy, dashed 36px empty add rows, 40/16/16 skeleton, single-line notice, quietlinks, staged inset language and px-geometry graph (184px nodes, three-layer anatomy, legend, compact inspector). `charter.css` now consumes 41 audited static host tokens; `npm run check` 39 files / 492 tests PASS; `verify:ui-metrics -- --gate=final` PASS. CDP-injected screenshots: `.tmp/gui-acceptance/2026-11-12/ux-after-workspace-1440.png`, `w6-dirty-1440.png`, `w6-graph-1440.png` and nine-node overlap regression `w6-graph-9nodes.png`, `w6-review-1440.png`, `w6-diagnostics-1440.png`. CDP viewport measurements: 320/850/1440 root and document horizontal overflow 0; graph hidden at 320/850 and visible at 1440; node text at user font preferences 10/14/22 has equal scroll/client width and height (no clipping). Human before/after sign-off remains pending.
|
|
134
|
+
- Still manual/blocked before release: fresh-profile Host+Session Pane, Desktop window, real screen reader,
|
|
135
|
+
true 200% text-layout audit, zh/en switch, livery spot-check record, and all human acceptance (W1–W6).
|
|
136
|
+
|
|
65
137
|
## 2. Local baseline
|
|
66
138
|
|
|
67
139
|
```bash
|
|
68
|
-
npm run check # typecheck + build + remote/client smoke + Vitest
|
|
140
|
+
npm run check # typecheck + build + remote/client smoke + Vitest + token gate
|
|
69
141
|
npm run smoke:package # normal pack + consumer install
|
|
70
142
|
npm run smoke:package -- --artifact <tgz> --sha256 SHA256SUMS
|
|
71
143
|
node scripts/verify/recovery-smoke.mjs --artifact <tgz> --sha256 SHA256SUMS
|
|
@@ -90,19 +162,20 @@ The tracked runner creates isolated pnpm projects with strict peers and runs typ
|
|
|
90
162
|
|
|
91
163
|
| DSH version | Evidence |
|
|
92
164
|
| --- | --- |
|
|
93
|
-
| `0.1.7-rc.2` |
|
|
94
|
-
| `0.2.0-rc.1` |
|
|
95
|
-
| `0.2.0-rc.2` |
|
|
96
|
-
| `0.2.1-rc.1` |
|
|
97
|
-
| `0.2.1-rc.2` |
|
|
98
|
-
| `0.2.1-rc.3` |
|
|
99
|
-
| `0.2.1-rc.4` |
|
|
100
|
-
| `0.2.1-rc.5` |
|
|
101
|
-
| `0.2.2-rc.1` |
|
|
102
|
-
|
|
103
|
-
The 0.2.
|
|
104
|
-
`compat-matrix --versions all --allow-new-release` on 2026-11-
|
|
105
|
-
|
|
165
|
+
| `0.1.7-rc.2` | 475/475 tracked matrix PASS |
|
|
166
|
+
| `0.2.0-rc.1` | 475/475 tracked matrix PASS |
|
|
167
|
+
| `0.2.0-rc.2` | 475/475 tracked matrix PASS |
|
|
168
|
+
| `0.2.1-rc.1` | 475/475 tracked matrix PASS |
|
|
169
|
+
| `0.2.1-rc.2` | 475/475 tracked matrix PASS |
|
|
170
|
+
| `0.2.1-rc.3` | 475/475 tracked matrix PASS |
|
|
171
|
+
| `0.2.1-rc.4` | 475/475 tracked matrix PASS |
|
|
172
|
+
| `0.2.1-rc.5` | 475/475 tracked matrix PASS |
|
|
173
|
+
| `0.2.2-rc.1` | 475/475 tracked matrix PASS |
|
|
174
|
+
|
|
175
|
+
The 0.2.2 candidate tree at source commit `f9d93c031eabfe5e44cf17e302729eb7093d7e94` passed
|
|
176
|
+
`compat-matrix --versions all --allow-new-release` on 2026-11-11 with Node `v22.23.1` / pnpm `12.3.4`: every
|
|
177
|
+
declared version passed typecheck, build, and 475/475 tests. The local evidence file is
|
|
178
|
+
`.tmp/0.2.2-final-matrix2.json`. Installs use pnpm strict peer resolution, exact tool pins, a single zod 4.6.7 graph, full `pnpm list --depth Infinity` graph validation, and recorded lockfile SHA-256 values. The untracked `0.2.2-alpha.2` probe is recorded as unsupported: strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run.
|
|
106
179
|
|
|
107
180
|
## 4. What the tests cover
|
|
108
181
|
|
package/docs/verification.zh.md
CHANGED
|
@@ -3,49 +3,111 @@
|
|
|
3
3
|
[English](verification.md) | 中文
|
|
4
4
|
|
|
5
5
|
> **状态:** Active — 当前操作记录。
|
|
6
|
-
> **版本范围:**
|
|
7
|
-
> **基准:** 2026-11-
|
|
6
|
+
> **版本范围:** `0.2.2`,2026-11-11 已发布。
|
|
7
|
+
> **基准:** 2026-11-11
|
|
8
8
|
|
|
9
|
-
验证日期:2026-11-
|
|
9
|
+
验证日期:2026-11-11。当前源码版本:`0.2.2`(2026-11-11 已发布)。本文件是当前证据记录;历史逐提交的叙事保留在 Git 历史和 Changelog。临时目录、profile、
|
|
10
10
|
tarball 和抓取内容位于 `.tmp/`,不进入发布包。
|
|
11
11
|
|
|
12
|
-
环境:macOS,Node `v22.23.1`,npm `12.0.2`,pnpm `12.3.4`。本地 DSH 开发基线:`0.2.2-rc.
|
|
12
|
+
环境:macOS,Node `v22.23.1`,npm `12.0.2`,pnpm `12.3.4`。本地 DSH 开发基线:`0.2.2-rc.2`(当前 npm
|
|
13
13
|
`next`)。
|
|
14
14
|
|
|
15
15
|
## 1. 当前结论
|
|
16
16
|
|
|
17
|
-
当前发布状态(2026-11-
|
|
17
|
+
当前发布状态(2026-11-11):
|
|
18
18
|
|
|
19
|
-
- 已发布:`0.2.
|
|
20
|
-
-
|
|
21
|
-
- `0.
|
|
19
|
+
- 已发布:`0.2.2`(npm `latest`/`next`;精确 SHA-256 `ccb094342ceda030b77c2c3555bc2838ee8a4f6ef2efe4f1ac80a9d39fca7875`)。GitHub Release `v0.2.2` 已公开且不可变。
|
|
20
|
+
- `0.2.1`:上一公开版本;GitHub Release `v0.2.1` 保持不可变。
|
|
21
|
+
- `0.2.0`:更早的公开版本;GitHub Release `v0.2.0` 保持不可变。
|
|
22
|
+
- `0.1.0-rc.6`:更早的公开版本;使用 recovery tag `v0.1.0-rc.6-republished`。
|
|
22
23
|
- 从 0.2.0 起版本号使用普通递增,不使用 `rc` 后缀。
|
|
23
|
-
- 当前源码证据:0.2.
|
|
24
|
-
-
|
|
24
|
+
- 当前源码证据:0.2.2 最终树在源码提交 `f9d93c0` 上通过 37 个测试文件 / 475 个测试;九版本矩阵在该树上 475/475 通过(Node `v22.23.1` / pnpm `12.3.4`,证据 `.tmp/0.2.2-final-matrix2.json`)。
|
|
25
|
+
- 发布后诊断:真实模型 compaction PASS(session `session-da7e7b0d-f0b0-49a2-8391-148b4782892c`);512 条性能于 2026-11-06 PASS(core read/planning p95,见下)。
|
|
25
26
|
|
|
26
27
|
| 项目 | 结果 |
|
|
27
28
|
| --- | --- |
|
|
28
29
|
| TypeScript 严格检查 | 当前树通过 |
|
|
29
|
-
| Vitest |
|
|
30
|
+
| Vitest | 37 个测试文件 / 475 个测试通过(`npm test`,先 build) |
|
|
30
31
|
| Host ESM 构建 + 浏览器 factory bundle | 通过 |
|
|
31
32
|
| Remote 契约与 client smoke | 通过 |
|
|
32
33
|
| 普通 package smoke | 通过 |
|
|
33
|
-
| exact-artifact package smoke |
|
|
34
|
+
| exact-artifact package smoke | 对已发布 `0.2.1` `.tgz` 字节(`d4ae14e1…`)通过,不重建 |
|
|
34
35
|
| packed recovery smoke | 通过:export、删除 target、restore、receipt replay、两次 restart、健康目标拒绝、packed fault 子集 |
|
|
35
36
|
| 真实 `TypertGatewayService` | 精确 artifact 在隔离的 DSH `0.2.1-rc.3` / `rc.4` 依赖图上通过 |
|
|
36
37
|
| 兼容 sentinel | `0.1.7-rc.2`、`0.2.1-rc.2`、`0.2.1-rc.4`、`0.2.1-rc.5`、`0.2.2-rc.1` 通过 |
|
|
37
38
|
| Fresh Web profile matrix (historical rc.6) | PASS:历史 rc.6 artifact 曾在 DSH `0.1.7-rc.2`、`0.2.0-rc.2`、`0.2.1-rc.2`、`0.2.1-rc.4`、`0.2.1-rc.5` 上安装并启动 |
|
|
38
|
-
| Fresh Web 0.2.2 | 2026-11-05 PASS:全新 `DSH_HOME` + `dsh@0.2.2-rc.1 plugin --profile web add` 安装 `dsh-charter-0.2.0.tgz`(SHA-256 `fde5531d457effc713f4423f8b46c8f0e591770e59c55e19956f000c11bdeffc`);Web 启动、页面 HTTP 200、charter bundle HTTP 200;boot graph 含 `dsh-charter`,页面 index 含 `dsh-charter/client.js` |
|
|
39
|
-
|
|
|
39
|
+
| Fresh Web(历史 0.2.2 DSH / 0.2.0 插件) | 2026-11-05 PASS:全新 `DSH_HOME` + `dsh@0.2.2-rc.1 plugin --profile web add` 安装 `dsh-charter-0.2.0.tgz`(SHA-256 `fde5531d457effc713f4423f8b46c8f0e591770e59c55e19956f000c11bdeffc`);Web 启动、页面 HTTP 200、charter bundle HTTP 200;boot graph 含 `dsh-charter`,页面 index 含 `dsh-charter/client.js` |
|
|
40
|
+
| 0.2.2 promotion | 2026-11-11 PASS:候选 run `43024720739`(C `51789db`),checksum-only C+1 `d65a4d6`,promotion run `43026165062`;npm `latest`/`next` 均为 `0.2.2`,GitHub Release `v0.2.2` 已公开并带 tarball、`SHA256SUMS`、`release-evidence.json`。 |
|
|
41
|
+
| 0.2.2 精确 artifact smoke | 2026-11-11 PASS:已发布 `dsh-charter-0.2.2.tgz`(98 个文件,SHA-256 `ccb094342ceda030b77c2c3555bc2838ee8a4f6ef2efe4f1ac80a9d39fca7875`);package smoke 在空 consumer 中安装精确字节,packed recovery smoke 的 export/restore/两次重启/故障检查全部通过。 |
|
|
42
|
+
| 九版本全量 rerun | tracked `compat-matrix --versions all --allow-new-release` 通过(每版本 475/475) |
|
|
40
43
|
| 未跟踪 `0.2.2-alpha.2` probe | strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run;rc.6 明确不支持 |
|
|
41
44
|
| 本地 Web + Desktop profile | 0.2.0 开发 artifact 已装入本地 web/desktop profile;Desktop app 为 `0.2.2-rc.1`,真实 Electron ABI/交互仍需人工门禁 |
|
|
42
45
|
| 真实浏览器恢复 | 受保护的人工 evidence gate;未自动化 |
|
|
43
46
|
| 真实模型 compaction | 2026-10-22 记录 PASS;仍是人工发布门禁 |
|
|
47
|
+
| 0.2.2 兼容矩阵 | 2026-11-11 PASS:源码 `f9d93c031eabfe5e44cf17e302729eb7093d7e94`,Node `v22.23.1` / pnpm `12.3.4`;九个声明 DSH 版本全部通过 typecheck、build 和 475/475 测试(`.tmp/0.2.2-final-matrix2.json`)。 |
|
|
48
|
+
| 0.2.2 全新 profile 安装 | 2026-11-11 PASS:隔离 `DSH_HOME=/tmp/dsh-charter-fresh-022-home` 初始化全新 Web profile,安装精确本地 `dsh-charter-0.2.2.tgz`;`dsh web` 提供 Pane 入口(HTTP 303 token redirect)。已验证 CLI/tarball 路径;Desktop、真实 Pane 交互和中英切换仍需人工。 |
|
|
49
|
+
| 0.2.2 依赖图源码 | 2026-11-11 PASS:`npm run check` 37 个文件 / 475 个测试;W0-0 原型 41/41(旧契约;无边孤立节点网格例外由 `tests/client/relation-graph.spec.ts` 的产品测试覆盖);Web Pane 在 3 条 active + 4 条 pending 交付物的 Session 上渲染图形、候选泳道、inspector 和常驻语义列表;浏览器 console 无错误。UI 自测(2026-11-11):三节点孤立图 + 空提示、紧凑列表、添加依赖/隐藏/显示、本地 key 前置摘要均正常,无 console 错误。W0-1/2/3 与真实 AT/人工门禁仍待完成。 |
|
|
50
|
+
| 0.2.2 依赖图 bundle | 2026-11-11 以 `d362d6f` 为基线,按统一预算方法 `gzip -9 -c lib/client.js | wc -c` 实测:113,990 → 130,474 B(+16,484 B),`<40 KB` gzip 预算通过。raw 仅作诊断:`lib/client.js` 591,936 → 670,173 字节(+78,237 B),CSS output 47,230 → 55,540 B(+8,310 B);raw 不作为预算口径。 |
|
|
51
|
+
|
|
52
|
+
## 1.2 0.3.0 GUI 开发候选(未发布,待本地人工验收)
|
|
53
|
+
|
|
54
|
+
- 分支 `feat/0.3.0-gui`;W6 实现提交 `f3ac8f2`/`2ad1df3`/`bb576cd`/`840d202` 及后续文档提交已完成,审计时工作树干净。**未推送/未合并/未 tag/未发布**,无 0.3.0 可用性声明。
|
|
55
|
+
- 源码门禁(2026-11-12):`npm run check` = 39 文件 / **492 测试** PASS(typecheck、build、remote/client
|
|
56
|
+
smoke、Vitest、token gate);`npm run verify:ui-metrics -- --gate=css|ia` PASS。
|
|
57
|
+
- 度量记录(W1/W2/W4):CSS gate — 字号档 6、字重 3、颜色字面量 0、非 token 圆角 0、非 token shadow 0、
|
|
58
|
+
padding 9、gap 8、`!important` 0;IA gate — 旧 objective 卡片 0、旧 overview/stat/budget 0、`goSection` 滚动/聚焦
|
|
59
|
+
yes、操作条仅 dirty yes;final gate PASS。隔离 profile 与 CDP 矩阵均在已安装 livery 层
|
|
60
|
+
(`body[data-dsh-livery]` 存在)下采集暗/亮两套;没有第二个 livery preset 可做更广抽查。记录:
|
|
61
|
+
`.tmp/gui-acceptance/2026-11-12/livery-spotcheck.md`。
|
|
62
|
+
- Token 覆盖审计(W0):`charter.css` 使用的 41 个静态 host token 在全部 10 个声明 DSH 版本的
|
|
63
|
+
`@deepseek-ai/dsh-client-ui-theme` 中均有定义;`--dsh-content-font-size` 带 `14px` fallback;兼容块有意为空。
|
|
64
|
+
门禁:`npm run verify:tokens`。
|
|
65
|
+
- 真实浏览器证据(把新 bundle 通过 CDP 注入已安装 Web Host;除特别说明外**不等于**已安装 artifact):
|
|
66
|
+
320/375/560/850/1440 多宽度、明/暗、forced-colors、reduced-motion、page-scale 2x;AX tree 命名 region、
|
|
67
|
+
无嵌套 `main`、无空名按钮、命名 dialog;真实宿主滚动/焦点路由与窄屏 sheet Escape/focus restore。
|
|
68
|
+
- 隔离 profile 证据:当前树的 WIP artifact 曾安装到 `DSH_HOME=/tmp/dsh-w4-home`,安装后 `lib/client.js`
|
|
69
|
+
hash 与仓库 build 一致;该开发包曾命名为 `dsh-charter-0.2.2.tgz`,因与已发布不可变 0.2.2 的
|
|
70
|
+
artifact/digest 冲突,**审查后已删除**。今后 dev pack 必须先 bump 版本(如 `0.3.0`)再打包。
|
|
71
|
+
- 本地验收部署(2026-11-12):W6 验收构建为 `dist/dsh-charter-0.3.0-w6-final.tgz`
|
|
72
|
+
(SHA-256 `ab74591c…`,client `986f8403…`)。已安装到本地 `web` 与 `desktop` profile,包版本 `0.3.0`,
|
|
73
|
+
`engines.dsh` 为有界 0.2 线范围。另按用户要求恢复 Pane 页头版本 chip(`v0.3.0`)。
|
|
74
|
+
- Desktop 热更新(2026-11-12,纠正):Desktop **不需要**退出重开来加载重建后的 `dsh-charter` bundle。在已安装
|
|
75
|
+
profile 下,对 profile 依赖做替换后,CDP 驱动的 `127.0.0.1:51452` 页面无需刷新即完成 Pane 替换:bundle
|
|
76
|
+
probe 在 **824ms** 出现,CSS probe 在 **402ms** 生效,最终 bundle+CSS 在 **886ms** 生效。两次替换中
|
|
77
|
+
`.charter-tabs__tab` 始终为 3,`style[data-plugin-css="dsh-charter/charter.css"]` 始终为 1 个,版本 chip 与
|
|
78
|
+
Pane 保持挂载,页面无异常。路径为 Host profile 重组 + client bundle HMR;仅插件变更无需重启 Host。
|
|
79
|
+
- 依赖图 disclosure 文案(2026-11-12):执行路径折叠时显示“展开依赖图”,展开后显示“收起依赖图”;已实测关闭 → 展开 → 再关闭,section 无重复。
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
- 最终构建矩阵(2026-11-13):基于已安装 `w6-final` artifact(client `986f8403…`),重采 Review Center 的
|
|
83
|
+
320/375/560/850/1440 × 暗/亮 × 中/英共 20 张,并采 Diagnostics 850/1440 两张;每张均满足
|
|
84
|
+
`documentElement.scrollWidth == clientWidth`、3 个 `charter-tabs__tab`、Pane 已挂载。证据:
|
|
85
|
+
`.tmp/gui-acceptance/2026-11-13/matrix-final/`。这替换了 Review/Diagnostics 子集的旧 W6 前矩阵;另从合成暂存行重采了最终构建的脏态与依赖图各一张(1440)。
|
|
86
|
+
空/已应用/冲突状态与冻结稿并排对照仍缺。
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
- 最终构建专项证据(2026-11-13):从 `w6-final` 在 1440 重采 forced-colors、reduced-motion 与 page-scale-2 截图;Pane 已挂载、无横向溢出、3 个 tabs,媒体模拟命中。证据:`.tmp/gui-acceptance/2026-11-13/final-special/`。page-scale-2 是缩放代理,不等于完整 200% 文本布局、键盘或 AT 走查。
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
- 机械并排对照(2026-11-13):`.tmp/gui-acceptance/2026-11-13/side-by-side/` 下用冻结稿与 `w6-final` 构建合成了 dirty/graph 两张对照图;这是参考材料,不等于人工并排评审,empty/applied/conflict 截图仍缺。
|
|
93
|
+
|
|
94
|
+
- 十版本源码矩阵(2026-11-12):全部声明版本 `0.1.7-rc.2` … `0.2.2-rc.2` 通过 typecheck、build 与测试;
|
|
95
|
+
因 rc.2 仍在 pnpm 24 小时 `minimumReleaseAge` 窗口内,矩阵以 `--allow-new-release` 运行;已生成并跟踪 rc.2
|
|
96
|
+
的兼容 lockfile。证据:`.tmp/compat-matrix-0.3.0.json`。
|
|
97
|
+
- 兼容范围策略:`engines.dsh` 现为 `0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0`。DSH 以 `includePrerelease` 求值,
|
|
98
|
+
且存在 `engines.dsh` 时忽略 peers 做准入,因此未来 0.2.x prerelease 无需插件重新发版即可安装;`0.3.x` 被排除。
|
|
99
|
+
精确的 peer/`dshReleases` 列表仍是十版本矩阵已验证支持集;新版本先由 `compat-matrix --discover` 探测再加入。
|
|
100
|
+
- Pane 页面级拆分(2026-11-12):`CharterPane.tsx` 3459 → 1842 行;新增 `WorkspacePage`/`ReviewCenterPage`/
|
|
101
|
+
`DiagnosticsPage` 与生成的 `pane-scope.ts`;共享 `pane-format`/`pane-ui`;真实浏览器 v0.3.0 三区域路由验证;
|
|
102
|
+
492 测试 + final gate PASS。
|
|
103
|
+
- W6 文档感视觉冻结(2026-11-12):下划线 tabs 取代左侧纵向导航;≥1100 为 720px 文档列 + 280px Change Set rail;section/行解剖、36px 虚线空态、40/16/16 skeleton、单行 notice、quietlink、暂存 inset 语言与 px 几何依赖图(184px 节点、三层解剖、legend、紧凑 inspector)已落地。`charter.css` 现消费 41 个已审计静态 host token;`npm run check` 39 文件 / 492 测试 PASS;`verify:ui-metrics -- --gate=final` PASS。CDP 注入截图:`.tmp/gui-acceptance/2026-11-12/ux-after-workspace-1440.png`、`w6-dirty-1440.png`、`w6-graph-1440.png` 与九节点重叠回归 `w6-graph-9nodes.png`、`w6-review-1440.png`、`w6-diagnostics-1440.png`。CDP 视口实测:320/850/1440 的 root/document 横向溢出均为 0;图形区在 320/850 隐藏、1440 可见;用户字号 10/14/22 下节点文本 scrollWidth/clientWidth 与 scrollHeight/clientHeight 相等(无裁切)。冻结稿并排与人工验收仍待完成。
|
|
104
|
+
- 发布前仍需人工/环境证据:fresh-profile Host+Session Pane、Desktop 窗口、真实 screen reader、真实 200%
|
|
105
|
+
文本布局、zh/en 切换、livery 抽查记录,以及 W1–W6 全部人工验收。
|
|
44
106
|
|
|
45
107
|
## 2. 本地基线
|
|
46
108
|
|
|
47
109
|
```bash
|
|
48
|
-
npm run check
|
|
110
|
+
npm run check # typecheck + build + remote/client smoke + Vitest + token gate
|
|
49
111
|
npm run smoke:package
|
|
50
112
|
npm run smoke:package -- --artifact <tgz> --sha256 SHA256SUMS
|
|
51
113
|
node scripts/verify/recovery-smoke.mjs --artifact <tgz> --sha256 SHA256SUMS
|
|
@@ -70,19 +132,19 @@ CI(`.github/workflows/ci.yml`)在 Node `22.19.0` / `24` 上运行 `npm run c
|
|
|
70
132
|
|
|
71
133
|
| DSH 版本 | 证据 |
|
|
72
134
|
| --- | --- |
|
|
73
|
-
| `0.1.7-rc.2` |
|
|
74
|
-
| `0.2.0-rc.1` |
|
|
75
|
-
| `0.2.0-rc.2` |
|
|
76
|
-
| `0.2.1-rc.1` |
|
|
77
|
-
| `0.2.1-rc.2` |
|
|
78
|
-
| `0.2.1-rc.3` |
|
|
79
|
-
| `0.2.1-rc.4` |
|
|
80
|
-
| `0.2.1-rc.5` |
|
|
81
|
-
| `0.2.2-rc.1` |
|
|
82
|
-
|
|
83
|
-
0.2.
|
|
84
|
-
`compat-matrix --versions all --allow-new-release
|
|
85
|
-
`.tmp/0.2.
|
|
135
|
+
| `0.1.7-rc.2` | 475/475 tracked matrix PASS |
|
|
136
|
+
| `0.2.0-rc.1` | 475/475 tracked matrix PASS |
|
|
137
|
+
| `0.2.0-rc.2` | 475/475 tracked matrix PASS |
|
|
138
|
+
| `0.2.1-rc.1` | 475/475 tracked matrix PASS |
|
|
139
|
+
| `0.2.1-rc.2` | 475/475 tracked matrix PASS |
|
|
140
|
+
| `0.2.1-rc.3` | 475/475 tracked matrix PASS |
|
|
141
|
+
| `0.2.1-rc.4` | 475/475 tracked matrix PASS |
|
|
142
|
+
| `0.2.1-rc.5` | 475/475 tracked matrix PASS |
|
|
143
|
+
| `0.2.2-rc.1` | 475/475 tracked matrix PASS |
|
|
144
|
+
|
|
145
|
+
0.2.2 候选树在源码提交 `f9d93c031eabfe5e44cf17e302729eb7093d7e94` 上于 2026-11-11 通过
|
|
146
|
+
`compat-matrix --versions all --allow-new-release`(Node `v22.23.1` / pnpm `12.3.4`):每个声明版本均通过
|
|
147
|
+
typecheck、build 和 475/475 测试;本地证据为 `.tmp/0.2.2-final-matrix2.json`。安装使用 pnpm strict peer、精确工具版本、单一 zod 4.6.7 图、完整 `pnpm list --depth Infinity` 图校验,并记录 lockfile SHA-256。未跟踪 `0.2.2-alpha.2` 已 probe:strict-peer install fails because DSH requires Cordis ~4.0.6-alpha.1 while rc.6 pins 4.0.5; no tests run,rc.6 明确不支持。
|
|
86
148
|
|
|
87
149
|
## 4. 测试覆盖
|
|
88
150
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
+
import type { CharterOp } from '../core/schemas.js';
|
|
3
|
+
import { type ChangeSetConflictRow, type ChangeSetDiffContext } from './change-set-model.js';
|
|
4
|
+
import { CHARTER_LOCALE_NS } from './locales.js';
|
|
5
|
+
type Translate = TranslateNS<typeof CHARTER_LOCALE_NS>;
|
|
6
|
+
export interface ChangeSetPanelProps {
|
|
7
|
+
readonly t: Translate;
|
|
8
|
+
readonly headingId: string;
|
|
9
|
+
/** Ops are rendered in draft order; each row can be unstaged independently. */
|
|
10
|
+
readonly ops: readonly CharterOp[];
|
|
11
|
+
readonly stagedOps: number;
|
|
12
|
+
readonly promptBefore: string;
|
|
13
|
+
readonly promptAfter: string;
|
|
14
|
+
readonly itemsBefore: number;
|
|
15
|
+
readonly itemsAfter: number;
|
|
16
|
+
readonly editorOpen: boolean;
|
|
17
|
+
readonly conflicts: readonly ChangeSetConflictRow[];
|
|
18
|
+
readonly diffContext: ChangeSetDiffContext;
|
|
19
|
+
readonly canUnstage: boolean;
|
|
20
|
+
readonly hint?: string;
|
|
21
|
+
readonly onUnstage: (op: CharterOp) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function ChangeSetPanel({ t, headingId, ops, stagedOps, promptBefore, promptAfter, itemsBefore, itemsAfter, editorOpen, conflicts, diffContext, canUnstage, hint, onUnstage, }: ChangeSetPanelProps): JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GraphLayout, RelationGraphModel } from './relation-graph.js';
|
|
2
|
+
export interface DependencyGraphProps {
|
|
3
|
+
readonly layout: GraphLayout;
|
|
4
|
+
readonly model: RelationGraphModel;
|
|
5
|
+
readonly focusId: string | undefined;
|
|
6
|
+
readonly activeKey: string | undefined;
|
|
7
|
+
readonly depth: 1 | 2;
|
|
8
|
+
readonly showSupersedes: boolean;
|
|
9
|
+
readonly editable: boolean;
|
|
10
|
+
readonly onFocus: (id: string) => void;
|
|
11
|
+
readonly onActiveKey: (key: string) => void;
|
|
12
|
+
readonly onDepth: (depth: 1 | 2) => void;
|
|
13
|
+
readonly onShowSupersedes: (show: boolean) => void;
|
|
14
|
+
readonly onStageRequires: (targetId: string, nextRequires: readonly string[]) => void;
|
|
15
|
+
readonly onLocateList: (id: string) => void;
|
|
16
|
+
readonly onProposal: (id: string) => void;
|
|
17
|
+
readonly t: (key: string, values?: Record<string, string | number>) => string;
|
|
18
|
+
}
|
|
19
|
+
export declare function DependencyGraph({ layout, model, focusId, activeKey, showSupersedes, editable, onFocus, onActiveKey, onShowSupersedes, onStageRequires, onLocateList, onProposal, t, }: DependencyGraphProps): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
+
import type { CharterSection } from './draft-store.js';
|
|
3
|
+
import { CHARTER_LOCALE_NS } from './locales.js';
|
|
4
|
+
type Translate = TranslateNS<typeof CHARTER_LOCALE_NS>;
|
|
5
|
+
export type CharterArea = 'workspace' | 'review' | 'diagnostics';
|
|
6
|
+
export interface SectionNavProps {
|
|
7
|
+
readonly t: Translate;
|
|
8
|
+
readonly area: CharterArea;
|
|
9
|
+
readonly totalPending: number;
|
|
10
|
+
readonly onNavigate: (section: CharterSection) => void;
|
|
11
|
+
}
|
|
12
|
+
/** Underline tabs for the three real Pane routes. */
|
|
13
|
+
export declare function SectionNav({ t, area, totalPending, onNavigate }: SectionNavProps): JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { DependencyConflictDiff } from '../core/dependencies.js';
|
|
2
|
+
import type { CharterOp } from '../core/schemas.js';
|
|
3
|
+
export type ChangeSetOpCategory = 'objective' | 'item' | 'lifecycle' | 'proposal' | 'verification';
|
|
4
|
+
export interface ChangeSetConflictRow {
|
|
5
|
+
readonly key: string;
|
|
6
|
+
readonly text: string;
|
|
7
|
+
readonly kind: 'added' | 'worsened';
|
|
8
|
+
readonly before: number;
|
|
9
|
+
readonly after: number;
|
|
10
|
+
}
|
|
11
|
+
export interface ChangeSetConflictContext {
|
|
12
|
+
readonly dependencyPlan: readonly {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly localKey: string;
|
|
15
|
+
}[];
|
|
16
|
+
readonly projectedItems: readonly {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly text: string;
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
export declare function opCategory(op: CharterOp): ChangeSetOpCategory;
|
|
22
|
+
export declare function opText(op: CharterOp): string | null;
|
|
23
|
+
/** Whether the Pane can map this op back to a single draft target. */
|
|
24
|
+
export declare function opCanBeUnstaged(op: CharterOp): boolean;
|
|
25
|
+
export declare function buildChangeSetConflicts(diff: DependencyConflictDiff, context: ChangeSetConflictContext): readonly ChangeSetConflictRow[];
|
|
26
|
+
export interface ChangeSetDiffContext {
|
|
27
|
+
readonly objectiveBefore: string | null;
|
|
28
|
+
readonly objectiveAfter: string | null;
|
|
29
|
+
readonly itemsBefore: readonly {
|
|
30
|
+
readonly id: string;
|
|
31
|
+
readonly text: string;
|
|
32
|
+
}[];
|
|
33
|
+
readonly projectedItems: readonly {
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly text: string;
|
|
36
|
+
}[];
|
|
37
|
+
}
|
|
38
|
+
export interface ChangeSetDiffLabel {
|
|
39
|
+
readonly key: string;
|
|
40
|
+
readonly params?: Readonly<Record<string, string | number>>;
|
|
41
|
+
}
|
|
42
|
+
export interface ChangeSetOpDiff {
|
|
43
|
+
readonly before: string | null;
|
|
44
|
+
readonly after: string | null;
|
|
45
|
+
/** Localized label for states/Progress; the Pane renders it via t(). */
|
|
46
|
+
readonly afterLabel?: ChangeSetDiffLabel;
|
|
47
|
+
}
|
|
48
|
+
/** Per-op before→after labels for the rail; null means "not applicable". */
|
|
49
|
+
export declare function opDiff(op: CharterOp, context: ChangeSetDiffContext): ChangeSetOpDiff;
|
|
50
|
+
export interface ChangeSetOpGroup {
|
|
51
|
+
readonly category: ChangeSetOpCategory;
|
|
52
|
+
readonly ops: readonly CharterOp[];
|
|
53
|
+
}
|
|
54
|
+
/** Stable grouping for the rail: category order is fixed, op order is draft order. */
|
|
55
|
+
export declare function groupChangeSetOps(ops: readonly CharterOp[]): readonly ChangeSetOpGroup[];
|
|
@@ -7,7 +7,7 @@ import type { CharterBootstrapProposal, CharterView } from '../host/types.js';
|
|
|
7
7
|
import type { CharterSessionSource } from './store.js';
|
|
8
8
|
import { opTargets } from './preview.js';
|
|
9
9
|
import { type BootstrapDraftItem, type BootstrapPlan } from './bootstrap-plan.js';
|
|
10
|
-
export type CharterSection = 'overview' | 'objective' | 'invariants' | 'deliverables' | 'history' | 'context' | 'recovery';
|
|
10
|
+
export type CharterSection = 'overview' | 'objective' | 'invariants' | 'deliverables' | 'history' | 'context' | 'recovery' | 'diagnostics';
|
|
11
11
|
export type DraftEditor = {
|
|
12
12
|
readonly kind: 'objective';
|
|
13
13
|
} | {
|