dsh-charter 0.2.2 → 0.3.1
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 +59 -1
- package/CHANGELOG.zh.md +54 -1
- package/README.md +75 -51
- package/README.zh.md +68 -45
- package/docs/README.md +5 -4
- package/docs/README.zh.md +6 -3
- package/docs/assets/charter-graph-0.3.0.zh.png +0 -0
- package/docs/assets/charter-graph-0.3.1.png +0 -0
- package/docs/assets/charter-graph-0.3.1.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-0.3.1.png +0 -0
- package/docs/assets/charter-pane-0.3.1.zh.png +0 -0
- package/docs/assets/dependency-example.svg +90 -0
- package/docs/assets/dependency-example.zh.svg +90 -0
- package/docs/design/charter-dependency-graph-v1.zh.md +26 -21
- 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 +873 -0
- package/docs/design/charter-workspace-v2.zh.md +13 -1
- package/docs/design/compatibility.md +23 -6
- package/docs/design/compatibility.zh.md +22 -6
- package/docs/design/mockups/README.md +29 -0
- package/docs/design/mockups/mockup-graph.html +154 -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 +429 -0
- package/docs/design/mockups/style-tile.html +146 -0
- package/docs/design/mockups/tokens.css +670 -0
- package/docs/design/version-roadmap.md +30 -10
- package/docs/design/version-roadmap.zh.md +43 -8
- package/docs/release-notes/0.2.2.md +5 -5
- package/docs/release-notes/0.3.0.md +70 -0
- package/docs/release-notes/0.3.1.md +38 -0
- package/docs/release-notes/README.md +1 -1
- package/docs/releasing.md +5 -4
- package/docs/releasing.zh.md +5 -4
- package/docs/user-guide.md +9 -10
- package/docs/user-guide.zh.md +8 -10
- package/docs/verification.md +114 -10
- package/docs/verification.zh.md +98 -9
- package/lib/client/ChangeSetPanel.d.ts +24 -0
- package/lib/client/DependencyGraph.d.ts +1 -1
- 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 +49 -1
- 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 +0 -1
- package/lib/client/section-routing.d.ts +12 -0
- package/lib/client/use-change-set-sheet.d.ts +13 -0
- package/lib/client.js +3931 -3118
- package/lib/core/standing-envelope.d.ts +31 -0
- package/lib/host/types.d.ts +6 -1
- package/lib/index.js +1 -1
- package/lib/remote.js +1 -1
- package/lib/{service-MsIACddZ.js → service-BSrE7Kbu.js} +42 -24
- package/lib/version.d.ts +1 -1
- package/package.json +24 -18
package/docs/verification.md
CHANGED
|
@@ -3,25 +3,26 @@
|
|
|
3
3
|
English | [中文](verification.zh.md)
|
|
4
4
|
|
|
5
5
|
> **Status:** Active — current operating record.
|
|
6
|
-
> **Version scope:** `0.
|
|
7
|
-
> **Baseline:** 2026-11-
|
|
6
|
+
> **Version scope:** `0.3.1` development candidate (0.3.0 published 2026-11-13).
|
|
7
|
+
> **Baseline:** 2026-11-13
|
|
8
8
|
|
|
9
|
-
Verification date: 2026-11-
|
|
9
|
+
Verification date: 2026-11-13. Current source version: `0.3.1` development candidate; latest published release is `0.3.0`. 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.3` (the current npm `next`).
|
|
15
15
|
|
|
16
16
|
## 1. Current conclusion
|
|
17
17
|
|
|
18
18
|
Current release state (2026-11-11):
|
|
19
19
|
|
|
20
|
-
- Published: `0.2.
|
|
21
|
-
- `0.2.
|
|
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.
|
|
22
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: 37 files / 475 tests on the final 0.2.2
|
|
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`).
|
|
25
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 |
|
|
@@ -35,10 +36,11 @@ Current release state (2026-11-11):
|
|
|
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
|
-
| 0.2.2
|
|
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. |
|
|
39
41
|
| Nine-version full rerun | Pass via tracked `compat-matrix --versions all --allow-new-release` (475/475 each) |
|
|
40
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` |
|
|
41
|
-
| 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` |
|
|
42
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. |
|
|
43
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. |
|
|
44
46
|
| 0.2.1 local human acceptance | PASS on 2026-11-06: user completed local acceptance of the 0.2.1 UI/interaction batch. |
|
|
@@ -67,10 +69,112 @@ The `main` tree has passed source-level acceptance for the implemented workspace
|
|
|
67
69
|
This is source acceptance, not a release acceptance: real Desktop/browser diagnostics, real-model compaction, performance,
|
|
68
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.
|
|
69
71
|
|
|
72
|
+
## 1.2 0.3.0 GUI release (published 2026-11-13)
|
|
73
|
+
|
|
74
|
+
- Released `0.3.0` from `main`; candidate run `43360673386` (producer commit `0613ead…`), release commit
|
|
75
|
+
`4331cbc…`, promotion run `43361855799`; tag and GitHub Release `v0.3.0` are public, npm `latest`/`next` are `0.3.0`.
|
|
76
|
+
Branch/worktree are clean and pushed.
|
|
77
|
+
- Source gates (2026-11-12): `npm run check` = 39 files / **492 tests** PASS (typecheck, build, remote/client
|
|
78
|
+
smoke, Vitest, token gate); `npm run verify:ui-metrics -- --gate=css|ia` PASS.
|
|
79
|
+
- Metric record (W1/W2/W4): CSS gate — `font-size` values 6, font weights 3, literal colors 0, non-token
|
|
80
|
+
radius 0, non-token shadow 0, padding 9, gap 8, `!important` 0; IA gate — legacy objective card 0, legacy
|
|
81
|
+
overview/stat/budget 0, `goSection` scroll/focus yes, action bar dirty-only yes; final gate PASS. The
|
|
82
|
+
isolated profile and CDP matrix were captured under the installed livery layer (`body[data-dsh-livery]`
|
|
83
|
+
present), dark and light; no second livery preset was available for a broader spot check. Record:
|
|
84
|
+
`.tmp/gui-acceptance/2026-11-12/livery-spotcheck.md`.
|
|
85
|
+
- Token coverage audit (W0): 41 static host vars used by `charter.css` are defined in
|
|
86
|
+
`@deepseek-ai/dsh-client-ui-theme` for **all 11 declared DSH versions**; `--dsh-content-font-size` has a
|
|
87
|
+
`14px` fallback; the compat block is intentionally empty. Gate: `npm run verify:tokens`.
|
|
88
|
+
- Real-browser evidence (CDP-injected new bundle into the installed Web Host; explicitly **not** the same as an
|
|
89
|
+
installed artifact unless stated): multi-width 320/375/560/850/1440, dark/light, forced-colors,
|
|
90
|
+
reduced-motion, page-scale 2x; AX tree named region/no nested `main`/no unnamed buttons/named dialog; real
|
|
91
|
+
host scroll/focus routing and narrow-sheet Escape/focus restore.
|
|
92
|
+
- Isolated-profile evidence: a WIP artifact of the current tree was installed into
|
|
93
|
+
`DSH_HOME=/tmp/dsh-w4-home` and its `lib/client.js` hash matched the repo build; the dev tarball named
|
|
94
|
+
`dsh-charter-0.2.2.tgz` was **deleted** after review because it collided with the published immutable 0.2.2
|
|
95
|
+
artifact/digest. Future dev packs must bump the version (e.g. `0.3.0`) before packing.
|
|
96
|
+
- Release publication (2026-11-13): candidate run `43360673386` at producer commit
|
|
97
|
+
`0613ead1ffbf73b47c54a767aa09c3c5d257bf32`; release commit `4331cbc21f46be910e74e7b65c6a76bffcbebb88`; promotion
|
|
98
|
+
run `43361855799`. Published artifact `dsh-charter-0.3.0.tgz` SHA-256
|
|
99
|
+
`31daf17dbc823837c1b0c1ba7bc1033444db1059a2f2cd6f1a481f8d330b5d78`; npm `latest`/`next` both `0.3.0`, GitHub
|
|
100
|
+
Release `v0.3.0` public and immutable. This supersedes the local `w6-final` development artifact for installation.
|
|
101
|
+
- 0.3.1 GUI convergence candidate (2026-11-13): `npm run check` 41 files / **499 tests** PASS;
|
|
102
|
+
token coverage 41 static + 1 dynamic over 11 declared DSH versions PASS; ten-version source matrix PASS
|
|
103
|
+
(`.tmp/compat-031-final.json`). Shared standing-envelope builder
|
|
104
|
+
(`src/core/standing-envelope.ts`) is used by both Host and Diagnostics; a 64-deliverable fixture with
|
|
105
|
+
production-length ids proves the id cost is exactly 49 B/deliverable and the envelope stays under 32 KiB.
|
|
106
|
+
- `traffic-check` propose telemetry parses the actual JSON tool-result envelope (`{ok, message}`), not
|
|
107
|
+
serialized text. Fixture now covers a single `D1` rejection, an unknown id, a non-requires proposal failure,
|
|
108
|
+
and an accepted result: display-key=1, unknown-id=1, other=1, accepted=1. Raw `D1"}` contamination is gone.
|
|
109
|
+
- Graph browser audit (2026-11-13, Chromium 1440×1000, synthetic applied session): lane headings, 5 arrow
|
|
110
|
+
markers, an SVG edge hit path with `vector-effect: non-scaling-stroke`, measured 21–22 px inside / 23 px outside the segment at 1440 px (44 px stroke), `max-height: none`, and no horizontal overflow at 860/900/1000/1100/1200/1440
|
|
111
|
+
or at 200% page scale. At 1100 the app shell's content container is 813 px, below the 880 px graph-fold
|
|
112
|
+
threshold, so the graph stays folded while the semantic list remains available; recorded as a layout
|
|
113
|
+
observation, not a two-column W0-1 pass. Real VoiceOver/AT remains a manual gate.
|
|
114
|
+
- Traffic forensics (2026-11-13): `traffic-check` now counts `charter_propose` calls/rejections and classifies
|
|
115
|
+
raw rejection values as display-key vs unknown-id, and reports active charter-surface hashes; `traffic-diff`
|
|
116
|
+
compares before/after JSON baselines. This is local, read-only tooling; no runtime telemetry or upload exists.
|
|
117
|
+
- Legacy traffic baseline sample (2026-11-13): a 65,491-event / 234-turn pre-0.3 session reports 4
|
|
118
|
+
`charter_read` calls (182 B total), 0 `charter_propose` calls, and 10 active `charter:standing` surfaces all
|
|
119
|
+
byte-identical at 630 B (whole active runtime duplicate rate 95.3%). This is a 0.2.x sample used only to shape
|
|
120
|
+
the 0.3.x baseline; it does not attribute duplicates to the plugin or claim a regression. Report:
|
|
121
|
+
`.tmp/traffic-baseline/session-0651-0.2x.json` (local, not shipped).
|
|
122
|
+
- Diagnostics envelope UI (2026-11-13): shows exact estimated bytes, 32 KiB cap, item/deliverable counts,
|
|
123
|
+
`maxPromptBytes`, id overhead, and 80%/over-cap states. Screenshot:
|
|
124
|
+
`.tmp/gui-acceptance/2026-11-13/diagnostics-envelope-031.png`.
|
|
125
|
+
- 0.3.1 README screenshots were recaptured from the exact local build injected into the running Web app:
|
|
126
|
+
`docs/assets/charter-pane-0.3.1.png`, `charter-pane-0.3.1.zh.png`, `charter-graph-0.3.1.zh.png`.
|
|
127
|
+
- Local acceptance artifact (2026-11-13): `dist/dsh-charter-0.3.1.tgz` SHA-256
|
|
128
|
+
`9f779443fd83c8e320d94d1981c18dc896d9d5905a7cc3f7dc8673f307806860`; exact-artifact package smoke and packed
|
|
129
|
+
recovery smoke PASS. `dist/dsh-charter-0.3.1.tgz` (same bytes) is installed in local `web` and `desktop`
|
|
130
|
+
profiles; both resolve client `fcd56a48…`. The Host version chip updates after a clean Host restart.
|
|
131
|
+
- 0.3.1 is not published; candidate/promotion evidence is intentionally absent until human acceptance.
|
|
132
|
+
- Local acceptance deployment (2026-11-12): the W6 acceptance build is
|
|
133
|
+
`dist/dsh-charter-0.3.0-w6-final.tgz` (SHA-256 `ab74591c…`, client `986f8403…`). It is installed in both local
|
|
134
|
+
`web` and `desktop` profiles, with the bounded `engines.dsh` range and package version `0.3.0`. Also updated:
|
|
135
|
+
the Pane header version chip (`v0.3.0`) is restored at the user's request.
|
|
136
|
+
- Desktop hot reload (2026-11-12, corrected): Desktop does **not** require a quit/reopen to load a rebuilt
|
|
137
|
+
`dsh-charter` bundle. With the installed profile, a profile dependency replace was observed to swap the
|
|
138
|
+
running Pane in a CDP-driven page at `127.0.0.1:51452` without a page reload: a bundle probe appeared in
|
|
139
|
+
**824 ms**, a CSS probe was applied in **402 ms**, and the final bundle+CSS state appeared in **886 ms**. Across
|
|
140
|
+
both swaps `.charter-tabs__tab` stayed at 3, exactly one `style[data-plugin-css="dsh-charter/charter.css"]`
|
|
141
|
+
remained, the version chip and Pane stayed mounted, and no page exceptions were recorded. This is the
|
|
142
|
+
Host profile recomposition + client bundle HMR path; no Host restart is needed for a plugin-only change.
|
|
143
|
+
- 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.
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
- Final-build matrix (2026-11-13): from the installed `w6-final` artifact (client `986f8403…`), Review Center was
|
|
147
|
+
recaptured at 320/375/560/850/1440 × dark/light × zh/en (20 images) plus Diagnostics at 850/1440; every capture
|
|
148
|
+
had `documentElement.scrollWidth == clientWidth`, three `charter-tabs__tab` entries, and a mounted Pane. Evidence:
|
|
149
|
+
`.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
|
|
150
|
+
captured at 1440 from synthetic staged rows. Empty/Applied/Conflict states and the frozen-mockup side-by-side
|
|
151
|
+
are still missing.
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
- 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.
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
- 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.
|
|
158
|
+
|
|
159
|
+
- Eleven-version source matrix (2026-11-13): all declared DSH versions `0.1.7-rc.2` … `0.2.2-rc.3` pass
|
|
160
|
+
typecheck, build, and tests; run with `--allow-new-release` because rc.2 is inside the pnpm 24-hour
|
|
161
|
+
`minimumReleaseAge` window. The tracked rc.2 compatibility lockfile was generated and added. Evidence:
|
|
162
|
+
`.tmp/compat-matrix-0.3.0.json`.
|
|
163
|
+
- Compatibility-range strategy: `engines.dsh` is now `0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0`. DSH evaluates that
|
|
164
|
+
range with `includePrerelease` and ignores peers when `engines.dsh` is present, so future 0.2.x prereleases
|
|
165
|
+
install without a plugin rebuild; `0.3.x` is excluded. The exact peer/`dshReleases` list remains the verified
|
|
166
|
+
ten-version matrix; new versions are probed with `compat-matrix --discover` before being added to it.
|
|
167
|
+
- Pane page split (2026-11-12): `CharterPane.tsx` 3459 → 1842 lines; new `WorkspacePage`, `ReviewCenterPage`,
|
|
168
|
+
`DiagnosticsPage` and generated `pane-scope.ts`; shared `pane-format`/`pane-ui`; real-browser v0.3.0 three-area
|
|
169
|
+
route check; 492 tests and final gate PASS.
|
|
170
|
+
- 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.
|
|
171
|
+
- Still manual/blocked before release: fresh-profile Host+Session Pane, Desktop window, real screen reader,
|
|
172
|
+
true 200% text-layout audit, zh/en switch, livery spot-check record, and all human acceptance (W1–W6).
|
|
173
|
+
|
|
70
174
|
## 2. Local baseline
|
|
71
175
|
|
|
72
176
|
```bash
|
|
73
|
-
npm run check # typecheck + build + remote/client smoke + Vitest
|
|
177
|
+
npm run check # typecheck + build + remote/client smoke + Vitest + token gate
|
|
74
178
|
npm run smoke:package # normal pack + consumer install
|
|
75
179
|
npm run smoke:package -- --artifact <tgz> --sha256 SHA256SUMS
|
|
76
180
|
node scripts/verify/recovery-smoke.mjs --artifact <tgz> --sha256 SHA256SUMS
|
package/docs/verification.zh.md
CHANGED
|
@@ -3,24 +3,25 @@
|
|
|
3
3
|
[English](verification.md) | 中文
|
|
4
4
|
|
|
5
5
|
> **状态:** Active — 当前操作记录。
|
|
6
|
-
> **版本范围:** `0.2.2
|
|
6
|
+
> **版本范围:** `0.2.2`,2026-11-11 已发布。
|
|
7
7
|
> **基准:** 2026-11-11
|
|
8
8
|
|
|
9
|
-
验证日期:2026-11-11。当前源码版本:`0.2.2
|
|
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.3`(当前 npm
|
|
13
13
|
`next`)。
|
|
14
14
|
|
|
15
15
|
## 1. 当前结论
|
|
16
16
|
|
|
17
17
|
当前发布状态(2026-11-11):
|
|
18
18
|
|
|
19
|
-
- 已发布:`0.2.
|
|
20
|
-
- `0.2.
|
|
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` 保持不可变。
|
|
21
22
|
- `0.1.0-rc.6`:更早的公开版本;使用 recovery tag `v0.1.0-rc.6-republished`。
|
|
22
23
|
- 从 0.2.0 起版本号使用普通递增,不使用 `rc` 后缀。
|
|
23
|
-
- 当前源码证据:0.2.2
|
|
24
|
+
- 当前源码证据:0.2.2 最终树在源码提交 `f9d93c0` 上通过 37 个测试文件 / 475 个测试;九版本矩阵在该树上 475/475 通过(Node `v22.23.1` / pnpm `12.3.4`,证据 `.tmp/0.2.2-final-matrix2.json`)。
|
|
24
25
|
- 发布后诊断:真实模型 compaction PASS(session `session-da7e7b0d-f0b0-49a2-8391-148b4782892c`);512 条性能于 2026-11-06 PASS(core read/planning p95,见下)。
|
|
25
26
|
|
|
26
27
|
| 项目 | 结果 |
|
|
@@ -35,8 +36,9 @@ tarball 和抓取内容位于 `.tmp/`,不进入发布包。
|
|
|
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
|
-
| 0.2.2
|
|
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/两次重启/故障检查全部通过。 |
|
|
40
42
|
| 九版本全量 rerun | tracked `compat-matrix --versions all --allow-new-release` 通过(每版本 475/475) |
|
|
41
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 明确不支持 |
|
|
42
44
|
| 本地 Web + Desktop profile | 0.2.0 开发 artifact 已装入本地 web/desktop profile;Desktop app 为 `0.2.2-rc.1`,真实 Electron ABI/交互仍需人工门禁 |
|
|
@@ -47,10 +49,97 @@ tarball 和抓取内容位于 `.tmp/`,不进入发布包。
|
|
|
47
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/人工门禁仍待完成。 |
|
|
48
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 不作为预算口径。 |
|
|
49
51
|
|
|
52
|
+
## 1.2 0.3.0 GUI 正式版本(2026-11-13 已发布)
|
|
53
|
+
|
|
54
|
+
- 已从 `main` 发布 `0.3.0`;候选 run `43360673386`(producer commit `0613ead…`),release commit
|
|
55
|
+
`4331cbc…`,提升 run `43361855799`;tag 与 GitHub Release `v0.3.0` 已公开,npm `latest`/`next` 均为 `0.3.0`。
|
|
56
|
+
分支/工作树干净且已推送。
|
|
57
|
+
- 源码门禁(2026-11-12):`npm run check` = 39 文件 / **492 测试** PASS(typecheck、build、remote/client
|
|
58
|
+
smoke、Vitest、token gate);`npm run verify:ui-metrics -- --gate=css|ia` PASS。
|
|
59
|
+
- 度量记录(W1/W2/W4):CSS gate — 字号档 6、字重 3、颜色字面量 0、非 token 圆角 0、非 token shadow 0、
|
|
60
|
+
padding 9、gap 8、`!important` 0;IA gate — 旧 objective 卡片 0、旧 overview/stat/budget 0、`goSection` 滚动/聚焦
|
|
61
|
+
yes、操作条仅 dirty yes;final gate PASS。隔离 profile 与 CDP 矩阵均在已安装 livery 层
|
|
62
|
+
(`body[data-dsh-livery]` 存在)下采集暗/亮两套;没有第二个 livery preset 可做更广抽查。记录:
|
|
63
|
+
`.tmp/gui-acceptance/2026-11-12/livery-spotcheck.md`。
|
|
64
|
+
- Token 覆盖审计(W0):`charter.css` 使用的 41 个静态 host token 在全部 11 个声明 DSH 版本的
|
|
65
|
+
`@deepseek-ai/dsh-client-ui-theme` 中均有定义;`--dsh-content-font-size` 带 `14px` fallback;兼容块有意为空。
|
|
66
|
+
门禁:`npm run verify:tokens`。
|
|
67
|
+
- 真实浏览器证据(把新 bundle 通过 CDP 注入已安装 Web Host;除特别说明外**不等于**已安装 artifact):
|
|
68
|
+
320/375/560/850/1440 多宽度、明/暗、forced-colors、reduced-motion、page-scale 2x;AX tree 命名 region、
|
|
69
|
+
无嵌套 `main`、无空名按钮、命名 dialog;真实宿主滚动/焦点路由与窄屏 sheet Escape/focus restore。
|
|
70
|
+
- 隔离 profile 证据:当前树的 WIP artifact 曾安装到 `DSH_HOME=/tmp/dsh-w4-home`,安装后 `lib/client.js`
|
|
71
|
+
hash 与仓库 build 一致;该开发包曾命名为 `dsh-charter-0.2.2.tgz`,因与已发布不可变 0.2.2 的
|
|
72
|
+
artifact/digest 冲突,**审查后已删除**。今后 dev pack 必须先 bump 版本(如 `0.3.0`)再打包。
|
|
73
|
+
- 正式发布(2026-11-13):候选 run `43360673386`,producer commit
|
|
74
|
+
`0613ead1ffbf73b47c54a767aa09c3c5d257bf32`;release commit `4331cbc21f46be910e74e7b65c6a76bffcbebb88`;
|
|
75
|
+
提升 run `43361855799`。已发布 artifact `dsh-charter-0.3.0.tgz`,SHA-256
|
|
76
|
+
`31daf17dbc823837c1b0c1ba7bc1033444db1059a2f2cd6f1a481f8d330b5d78`;npm `latest`/`next` 均为 `0.3.0`,
|
|
77
|
+
GitHub Release `v0.3.0` 已公开且不可变。安装以该发布 artifact 取代本地 `w6-final` 开发包。
|
|
78
|
+
- 0.3.1 GUI 收敛候选(2026-11-13):`npm run check` 41 文件 / **499 测试** PASS;
|
|
79
|
+
token 覆盖 41 static + 1 dynamic、11 个声明 DSH 版本 PASS;十版本源码矩阵 PASS(`.tmp/compat-031-final.json`)。共享 standing-envelope 构造函数由 Host 与
|
|
80
|
+
Diagnostics 共用;64 个交付物、生产长度 id 的 fixture 证明 id 开销恰为 49 B/交付物且 envelope 不超过 32 KiB。
|
|
81
|
+
- `traffic-check` 的 propose 遥测改为解析真实 JSON tool-result envelope(`{ok, message}`),不再对序列化
|
|
82
|
+
文本做正则。fixture 覆盖单个 `D1` 拒绝、未知 id、非 requires 类失败和 accepted:display-key=1、
|
|
83
|
+
unknown-id=1、other=1、accepted=1;不再出现 `D1"}` 尾串污染。
|
|
84
|
+
- 依赖图浏览器审计(2026-11-13,Chromium 1440×1000,合成 applied session):泳道标题、5 个箭头 marker、
|
|
85
|
+
SVG 沿路径命中描边(`vector-effect: non-scaling-stroke`;1440 px 实测 21–22 px 在带内 / 23 px 在带外,即 44 px 宽)、`max-height: none`;860/900/1000/1100/1200/1440 与 200% 页面缩放均无横向
|
|
86
|
+
溢出。1100 视口下 app shell 内容容器为 813 px,低于 880 px 折叠阈值,图形区保持折叠但语义列表可用;
|
|
87
|
+
记录为布局观察,不宣称 W0-1 双栏通过。真实 VoiceOver/AT 仍是人工门禁。
|
|
88
|
+
- 流量取证(2026-11-13):`traffic-check` 增加 `charter_propose` 调用/拒绝统计、display-key/unknown-id 分类
|
|
89
|
+
和 active charter surface hash;`traffic-diff` 对比前后 JSON 基线。纯本地只读,无运行时埋点/上报。
|
|
90
|
+
- 旧版流量基线样本(2026-11-13):一个 65,491 events / 234 turns 的 0.3 前会话报告 4 次 `charter_read`
|
|
91
|
+
(共 182 B)、0 次 `charter_propose`;10 份 active `charter:standing` 全部字节相同(630 B),整个 active
|
|
92
|
+
runtime 的重复率 95.3%。该样本只用于确定 0.3.x 基线,不据此断言重复由插件造成或构成回归。报告:
|
|
93
|
+
`.tmp/traffic-baseline/session-0651-0.2x.json`(本地,不随包发布)。
|
|
94
|
+
- Diagnostics envelope UI(2026-11-13):显示精确估算字节、32 KiB cap、条目/交付物数、`maxPromptBytes`、
|
|
95
|
+
id 开销和 80%/超限三态。
|
|
96
|
+
- 0.3.1 README 截图由精确本地构建注入运行中的 Web app 后重采:
|
|
97
|
+
`docs/assets/charter-pane-0.3.1.png`、`charter-pane-0.3.1.zh.png`、`charter-graph-0.3.1.zh.png`。
|
|
98
|
+
- 本地验收 artifact(2026-11-13):`dist/dsh-charter-0.3.1.tgz` SHA-256
|
|
99
|
+
`9f779443fd83c8e320d94d1981c18dc896d9d5905a7cc3f7dc8673f307806860`;exact-artifact package smoke 与 packed
|
|
100
|
+
recovery smoke PASS。`dist/dsh-charter-0.3.1.tgz`(同一字节)已安装到本地 `web` 与 `desktop` profile;
|
|
101
|
+
两端 client 均为 `fcd56a48…`。Host 版本 chip 在干净重启 Host 后更新。
|
|
102
|
+
- 0.3.1 尚未发布;人工验收前不构造 candidate/promotion 证据。
|
|
103
|
+
- 本地验收部署(2026-11-12):W6 验收构建为 `dist/dsh-charter-0.3.0-w6-final.tgz`
|
|
104
|
+
(SHA-256 `ab74591c…`,client `986f8403…`)。已安装到本地 `web` 与 `desktop` profile,包版本 `0.3.0`,
|
|
105
|
+
`engines.dsh` 为有界 0.2 线范围。另按用户要求恢复 Pane 页头版本 chip(`v0.3.0`)。
|
|
106
|
+
- Desktop 热更新(2026-11-12,纠正):Desktop **不需要**退出重开来加载重建后的 `dsh-charter` bundle。在已安装
|
|
107
|
+
profile 下,对 profile 依赖做替换后,CDP 驱动的 `127.0.0.1:51452` 页面无需刷新即完成 Pane 替换:bundle
|
|
108
|
+
probe 在 **824ms** 出现,CSS probe 在 **402ms** 生效,最终 bundle+CSS 在 **886ms** 生效。两次替换中
|
|
109
|
+
`.charter-tabs__tab` 始终为 3,`style[data-plugin-css="dsh-charter/charter.css"]` 始终为 1 个,版本 chip 与
|
|
110
|
+
Pane 保持挂载,页面无异常。路径为 Host profile 重组 + client bundle HMR;仅插件变更无需重启 Host。
|
|
111
|
+
- 依赖图 disclosure 文案(2026-11-12):执行路径折叠时显示“展开依赖图”,展开后显示“收起依赖图”;已实测关闭 → 展开 → 再关闭,section 无重复。
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
- 最终构建矩阵(2026-11-13):基于已安装 `w6-final` artifact(client `986f8403…`),重采 Review Center 的
|
|
115
|
+
320/375/560/850/1440 × 暗/亮 × 中/英共 20 张,并采 Diagnostics 850/1440 两张;每张均满足
|
|
116
|
+
`documentElement.scrollWidth == clientWidth`、3 个 `charter-tabs__tab`、Pane 已挂载。证据:
|
|
117
|
+
`.tmp/gui-acceptance/2026-11-13/matrix-final/`。这替换了 Review/Diagnostics 子集的旧 W6 前矩阵;另从合成暂存行重采了最终构建的脏态与依赖图各一张(1440)。
|
|
118
|
+
空/已应用/冲突状态与冻结稿并排对照仍缺。
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
- 最终构建专项证据(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 走查。
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
- 机械并排对照(2026-11-13):`.tmp/gui-acceptance/2026-11-13/side-by-side/` 下用冻结稿与 `w6-final` 构建合成了 dirty/graph 两张对照图;这是参考材料,不等于人工并排评审,empty/applied/conflict 截图仍缺。
|
|
125
|
+
|
|
126
|
+
- 十一版本源码矩阵(2026-11-13):全部声明版本 `0.1.7-rc.2` … `0.2.2-rc.3` 通过 typecheck、build 与测试;
|
|
127
|
+
因 rc.2 仍在 pnpm 24 小时 `minimumReleaseAge` 窗口内,矩阵以 `--allow-new-release` 运行;已生成并跟踪 rc.2
|
|
128
|
+
的兼容 lockfile。证据:`.tmp/compat-matrix-0.3.0.json`。
|
|
129
|
+
- 兼容范围策略:`engines.dsh` 现为 `0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0`。DSH 以 `includePrerelease` 求值,
|
|
130
|
+
且存在 `engines.dsh` 时忽略 peers 做准入,因此未来 0.2.x prerelease 无需插件重新发版即可安装;`0.3.x` 被排除。
|
|
131
|
+
精确的 peer/`dshReleases` 列表仍是十版本矩阵已验证支持集;新版本先由 `compat-matrix --discover` 探测再加入。
|
|
132
|
+
- Pane 页面级拆分(2026-11-12):`CharterPane.tsx` 3459 → 1842 行;新增 `WorkspacePage`/`ReviewCenterPage`/
|
|
133
|
+
`DiagnosticsPage` 与生成的 `pane-scope.ts`;共享 `pane-format`/`pane-ui`;真实浏览器 v0.3.0 三区域路由验证;
|
|
134
|
+
492 测试 + final gate PASS。
|
|
135
|
+
- 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 相等(无裁切)。冻结稿并排与人工验收仍待完成。
|
|
136
|
+
- 发布前仍需人工/环境证据:fresh-profile Host+Session Pane、Desktop 窗口、真实 screen reader、真实 200%
|
|
137
|
+
文本布局、zh/en 切换、livery 抽查记录,以及 W1–W6 全部人工验收。
|
|
138
|
+
|
|
50
139
|
## 2. 本地基线
|
|
51
140
|
|
|
52
141
|
```bash
|
|
53
|
-
npm run check
|
|
142
|
+
npm run check # typecheck + build + remote/client smoke + Vitest + token gate
|
|
54
143
|
npm run smoke:package
|
|
55
144
|
npm run smoke:package -- --artifact <tgz> --sha256 SHA256SUMS
|
|
56
145
|
node scripts/verify/recovery-smoke.mjs --artifact <tgz> --sha256 SHA256SUMS
|
|
@@ -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 {};
|
|
@@ -16,4 +16,4 @@ export interface DependencyGraphProps {
|
|
|
16
16
|
readonly onProposal: (id: string) => void;
|
|
17
17
|
readonly t: (key: string, values?: Record<string, string | number>) => string;
|
|
18
18
|
}
|
|
19
|
-
export declare function DependencyGraph({ layout, model, focusId, activeKey,
|
|
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
|
} | {
|
package/lib/client/locales.d.ts
CHANGED
|
@@ -2,13 +2,14 @@ import type { LocaleDictOf } from '@deepseek-ai/dsh-client-ui-slots';
|
|
|
2
2
|
export declare const CHARTER_LOCALE_NS = "dsh-charter";
|
|
3
3
|
declare const en: {
|
|
4
4
|
readonly tab: "Charter";
|
|
5
|
-
readonly 'header.title': "
|
|
5
|
+
readonly 'header.title': "Session charter";
|
|
6
6
|
readonly 'header.subtitle': "Compaction rewrites history. Your commitments don't.";
|
|
7
7
|
readonly 'stats.revision': "rev {revision}";
|
|
8
8
|
readonly 'overview.afterApply': "After Apply";
|
|
9
9
|
readonly 'stats.afterApply': "{active} active / {stored} stored after Apply";
|
|
10
10
|
readonly 'stats.context': "{bytes} B context";
|
|
11
11
|
readonly 'stats.budget': "{used} / {limit} charter context";
|
|
12
|
+
readonly 'stats.budgetDelta': "{before} → {after} / {limit}";
|
|
12
13
|
readonly 'status.loading': "Loading charter...";
|
|
13
14
|
readonly 'status.unavailable': "Charter is unavailable.";
|
|
14
15
|
readonly 'status.notReady': "Charter is not ready.";
|
|
@@ -55,12 +56,32 @@ declare const en: {
|
|
|
55
56
|
readonly 'nav.recoveryHelp': "Export, restore, or explicitly initialize this Session's stored Charter record.";
|
|
56
57
|
readonly 'changeset.kicker': "Change Set";
|
|
57
58
|
readonly 'changeset.title': "Pending changes";
|
|
59
|
+
readonly 'changeset.open': "Review pending changes";
|
|
60
|
+
readonly 'changeset.close': "Close change set";
|
|
58
61
|
readonly 'changeset.ops': "{count} staged operations";
|
|
62
|
+
readonly 'changeset.promptShort': "Prompt bytes";
|
|
63
|
+
readonly 'changeset.itemsShort': "Items";
|
|
59
64
|
readonly 'changeset.prompt': "Model prompt after Apply: {used} / {limit}";
|
|
60
65
|
readonly 'changeset.promptDelta': "Prompt bytes: {before} → {after}";
|
|
61
66
|
readonly 'changeset.itemsDelta': "Items: {before} → {after}";
|
|
62
67
|
readonly 'changeset.editorOpen': "An inline editor is open";
|
|
63
68
|
readonly 'changeset.conflicts': "This Change Set introduces or worsens {count} dependency conflict(s)";
|
|
69
|
+
readonly 'changeset.unstage': "Unstage";
|
|
70
|
+
readonly 'changeset.op.unknown': "Change";
|
|
71
|
+
readonly 'changeset.state.accepted': "accepted";
|
|
72
|
+
readonly 'changeset.state.rejected': "rejected";
|
|
73
|
+
readonly 'changeset.state.archived': "archived";
|
|
74
|
+
readonly 'changeset.state.restored': "restored";
|
|
75
|
+
readonly 'changeset.state.purged': "purged";
|
|
76
|
+
readonly 'changeset.state.verified': "verified";
|
|
77
|
+
readonly 'changeset.state.unchecked': "unverified";
|
|
78
|
+
readonly 'changeset.state.attested': "attested";
|
|
79
|
+
readonly 'changeset.prerequisites': "{count} prerequisite(s)";
|
|
80
|
+
readonly 'changeset.op.objective': "Objective";
|
|
81
|
+
readonly 'changeset.op.item': "Item";
|
|
82
|
+
readonly 'changeset.op.lifecycle': "Lifecycle";
|
|
83
|
+
readonly 'changeset.op.proposal': "Proposal";
|
|
84
|
+
readonly 'changeset.op.verification': "Verification";
|
|
64
85
|
readonly 'changeset.conflictAdded': "new conflict ({before} → {after} blocking prerequisites)";
|
|
65
86
|
readonly 'changeset.conflictWorsened': "worsened ({before} → {after} blocking prerequisites)";
|
|
66
87
|
readonly 'changeset.conflictHint': "{count} dependency conflict(s) — Apply needs your confirmation";
|
|
@@ -106,6 +127,7 @@ declare const en: {
|
|
|
106
127
|
readonly 'review.source.fork': "Fork proposal";
|
|
107
128
|
readonly 'review.source.legacy-unknown': "Legacy unknown source";
|
|
108
129
|
readonly 'deps.title': "Dependencies and readiness";
|
|
130
|
+
readonly 'deps.executionPath': "Execution path";
|
|
109
131
|
readonly 'deps.status.ready': "ready";
|
|
110
132
|
readonly 'deps.status.waiting': "waiting";
|
|
111
133
|
readonly 'deps.status.dependency-conflict': "dependency conflict";
|
|
@@ -115,11 +137,18 @@ declare const en: {
|
|
|
115
137
|
readonly 'deps.prerequisiteConflict': "prerequisite conflict";
|
|
116
138
|
readonly 'deps.conflict': "The staged dependency plan contains a cycle or invalid reference. Remove or change a prerequisite before Apply.";
|
|
117
139
|
readonly 'deps.graphTitle': "Dependency map";
|
|
140
|
+
readonly 'deps.expandGraph': "Expand dependency map";
|
|
141
|
+
readonly 'deps.collapseGraph': "Collapse dependency map";
|
|
118
142
|
readonly 'deps.graphFocus': "Focus";
|
|
119
143
|
readonly 'deps.graphDepth': "Depth";
|
|
120
144
|
readonly 'deps.depth1': "1 hop";
|
|
121
145
|
readonly 'deps.depth2': "2 hops";
|
|
122
146
|
readonly 'deps.showSupersedes': "Show replacements";
|
|
147
|
+
readonly 'deps.historyToggle': "History";
|
|
148
|
+
readonly 'deps.laneExecution': "Execution";
|
|
149
|
+
readonly 'deps.laneCandidate': "Candidate";
|
|
150
|
+
readonly 'deps.laneHistory': "History";
|
|
151
|
+
readonly 'deps.legendHistory': "Dash-dot = replacement history";
|
|
123
152
|
readonly 'deps.zoomIn': "Zoom in";
|
|
124
153
|
readonly 'deps.zoomOut': "Zoom out";
|
|
125
154
|
readonly 'deps.resetLayout': "Reset zoom";
|
|
@@ -156,11 +185,16 @@ declare const en: {
|
|
|
156
185
|
readonly 'deps.locateInGraph': "Locate in graph";
|
|
157
186
|
readonly 'deps.graphHint': "The graph never changes state by itself; edits are staged into the Change Set and Apply remains the only commit.";
|
|
158
187
|
readonly 'deps.help': "Keys and notes";
|
|
188
|
+
readonly 'deps.legendCommitted': "Solid = active dependency";
|
|
189
|
+
readonly 'deps.legendStaged': "Dashed = staged new dependency";
|
|
190
|
+
readonly 'deps.legendProposed': "Dotted = proposed dependency";
|
|
191
|
+
readonly 'deps.graphNote': "The graph is an enhancement; the semantic list stays authoritative. Nodes use fixed px geometry and two-line truncation.";
|
|
159
192
|
readonly 'deps.graphEmpty': "No dependencies yet. Drag one node onto another, or open a list row to add a prerequisite.";
|
|
160
193
|
readonly 'deps.graphIsolatedTooMany': "No dependencies yet. The isolated-node preview is hidden for this many rows; use the list.";
|
|
161
194
|
readonly 'deps.requiresSummary': "Prerequisites: {keys}";
|
|
162
195
|
readonly 'deps.noRequires': "No prerequisites";
|
|
163
196
|
readonly 'deps.editRequires': "Edit prerequisites";
|
|
197
|
+
readonly 'deps.stagedChanged': "Staged edit";
|
|
164
198
|
readonly 'deps.stagedAdded': "staged addition";
|
|
165
199
|
readonly 'deps.dropInvalidSelf': "A deliverable cannot depend on itself.";
|
|
166
200
|
readonly 'deps.dropInvalidDuplicate': "This prerequisite is already present.";
|
|
@@ -195,6 +229,7 @@ declare const en: {
|
|
|
195
229
|
readonly 'bootstrap.unavailable': "Charter storage is unavailable, so the history draft cannot be read.";
|
|
196
230
|
readonly 'notice.conflict': string;
|
|
197
231
|
readonly 'objective.kicker': "Objective";
|
|
232
|
+
readonly 'objective.originalLabel': "Initial objective";
|
|
198
233
|
readonly 'objective.empty': "No objective has been set.";
|
|
199
234
|
readonly 'objective.set': "Set objective";
|
|
200
235
|
readonly 'objective.redirect': "Redirect";
|
|
@@ -445,6 +480,19 @@ declare const en: {
|
|
|
445
480
|
readonly 'tag.verifiedUser': "verified (marked)";
|
|
446
481
|
readonly 'tag.verifiedValidator': "verified (validator)";
|
|
447
482
|
readonly 'diagnostics.kicker': "Diagnostics";
|
|
483
|
+
readonly 'diagnostics.envelopeTitle': "Standing tool envelope";
|
|
484
|
+
readonly 'diagnostics.envelopeUnavailable': "The envelope estimate is unavailable for the current record.";
|
|
485
|
+
readonly 'diagnostics.envelopeHint': "Estimated `charter_read standing` result. This is the model tool result, not the prompt budget.";
|
|
486
|
+
readonly 'diagnostics.envelopeUsage': "Estimated bytes";
|
|
487
|
+
readonly 'diagnostics.envelopePercent': "Cap used";
|
|
488
|
+
readonly 'diagnostics.envelopeItems': "Items";
|
|
489
|
+
readonly 'diagnostics.envelopeDeliverables': "Deliverables";
|
|
490
|
+
readonly 'diagnostics.envelopePromptCap': "Prompt cap";
|
|
491
|
+
readonly 'diagnostics.envelopeIdCost': "ID overhead";
|
|
492
|
+
readonly 'diagnostics.envelopeIdCostValue': "{count} deliverables, included";
|
|
493
|
+
readonly 'diagnostics.envelopeOk': "Under 80% of the standing tool cap.";
|
|
494
|
+
readonly 'diagnostics.envelopeNear': "At or above 80% of the standing tool cap; trim items before the next model call.";
|
|
495
|
+
readonly 'diagnostics.envelopeOver': "Over the standing tool cap: the next charter_read standing call will return LIMIT_EXCEEDED.";
|
|
448
496
|
readonly 'validity.unassessed': "Validity unassessed";
|
|
449
497
|
readonly 'validity.attested': "Attested";
|
|
450
498
|
readonly 'validity.valid': "Valid";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Explicit page reading order used by the flex stack. Extracted from the Pane so
|
|
3
|
+
* the Workspace/Review/Diagnostics order contract is unit-tested instead of
|
|
4
|
+
* living as inline numbers.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PAGE_ORDER: {
|
|
7
|
+
readonly workspace: {
|
|
8
|
+
readonly objective: 10;
|
|
9
|
+
readonly invariants: 20;
|
|
10
|
+
readonly deliverables: 30;
|
|
11
|
+
readonly execution: 40;
|
|
12
|
+
};
|
|
13
|
+
readonly review: {
|
|
14
|
+
readonly batches: 10;
|
|
15
|
+
readonly itemProposals: 20;
|
|
16
|
+
readonly objectiveProposals: 30;
|
|
17
|
+
readonly messageProposal: 40;
|
|
18
|
+
readonly bootstrap: 50;
|
|
19
|
+
readonly objectiveHistory: 60;
|
|
20
|
+
readonly inactive: 70;
|
|
21
|
+
};
|
|
22
|
+
readonly diagnostics: {
|
|
23
|
+
readonly contextPreview: -1;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type PageOrder = typeof PAGE_ORDER;
|