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/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,65 @@ English | [中文](CHANGELOG.zh.md)
|
|
|
5
5
|
All notable changes to `dsh-charter` are recorded here. The project follows a pre-1.0 version line while the
|
|
6
6
|
DSH plugin ABI is still moving.
|
|
7
7
|
|
|
8
|
-
## 0.
|
|
8
|
+
## 0.3.1 — 2026-11-13
|
|
9
|
+
|
|
10
|
+
GUI convergence patch for the dependency graph, standing-envelope observability, and local traffic forensics.
|
|
11
|
+
No record-schema, Remote-wire, or prompt-projection change.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Graph lane headings for execution/candidate/history, directional SVG arrows, a fourth history line style, and
|
|
16
|
+
path-sized 44px edge hit targets.
|
|
17
|
+
- Diagnostics standing-envelope estimate: exact `charter_read standing` bytes against the 32 KiB cap, item and
|
|
18
|
+
deliverable counts, `maxPromptBytes`, id overhead, and `<80%` / `>=80%` / over-cap states.
|
|
19
|
+
- `traffic-check` `charter_propose` call/rejection counts with display-key vs unknown-id classification, active
|
|
20
|
+
charter-surface hashes, and a `traffic-diff` baseline comparator. Local diagnostics only; no telemetry.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Removed the unused `BuildRelationGraphInput.ops` input and the graph viewport's fixed `max-height`; the graph
|
|
25
|
+
canvas grows with its layout.
|
|
26
|
+
- The frozen graph mockup/spec now documents lane headings, arrows, history line style, and the 44px edge hit
|
|
27
|
+
contract.
|
|
28
|
+
|
|
29
|
+
### Verification
|
|
30
|
+
|
|
31
|
+
- `npm run check`: 41 files / **499 tests** PASS; ten-version token coverage PASS.
|
|
32
|
+
- Browser audit covers lane headings, arrow markers, 44px edge hit targets, adaptive viewport, no horizontal
|
|
33
|
+
overflow at 860–1440, and 200% page scale; real AT/VoiceOver remains a separate manual gate.
|
|
34
|
+
- `verify:ui-metrics -- --gate=final` and the 0.3.1 source gates run on the final tree.
|
|
35
|
+
|
|
36
|
+
## 0.3.0 — 2026-11-13
|
|
37
|
+
|
|
38
|
+
Document-feel GUI release across Workspace, Review Center, and Diagnostics & Maintenance. No record-schema,
|
|
39
|
+
Remote-wire, or prompt-projection change.
|
|
40
|
+
|
|
41
|
+
### Added
|
|
42
|
+
|
|
43
|
+
- Underline area tabs replace the left vertical navigation; wide screens use a 720px document column plus a
|
|
44
|
+
280px Change Set rail, and narrow screens keep the modal sheet.
|
|
45
|
+
- Document rows with aligned D-number/byte metadata, quiet row actions, dashed empty rows, skeleton, and inline
|
|
46
|
+
notice; the Change Set rail is a quiet margin note with grouped ops and quiet unstage links.
|
|
47
|
+
- Px-geometry execution graph: fixed 184px nodes, three-layer anatomy, candidate/staged/active edges, static
|
|
48
|
+
legend, compact inspector, and state-aware disclosure label.
|
|
49
|
+
- Approved `v0.3.0` version chip in the Pane header.
|
|
50
|
+
- `charter_read standing` exposes stable deliverable ids for `charter_propose.requires`; `D<n>` labels are
|
|
51
|
+
display-only and invalid references fail explicitly.
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
- Review Center and Diagnostics share the same document typography, row, chip, notice, and focus contracts.
|
|
56
|
+
- Client CSS is upserted by its owned style tag so hot reload replaces stale CSS without duplicate tags.
|
|
57
|
+
- Diagnostics is an explicit top-level route instead of a context-preview anchor.
|
|
58
|
+
|
|
59
|
+
### Verification
|
|
60
|
+
|
|
61
|
+
- `npm run check`: 39 files / **492 tests** PASS; ten-version token coverage PASS;
|
|
62
|
+
`verify:ui-metrics -- --gate=final` PASS.
|
|
63
|
+
- Ten-version compatibility matrix PASS; release-candidate workflow runs exact-artifact package/recovery,
|
|
64
|
+
fresh-profile and Gateway gates.
|
|
65
|
+
|
|
66
|
+
## 0.2.2 — 2026-11-11
|
|
9
67
|
|
|
10
68
|
Dependency-graph workspace view and explicit dependency-conflict confirmation. No record-schema, Host, Remote,
|
|
11
69
|
or prompt-projection change.
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -4,7 +4,60 @@
|
|
|
4
4
|
|
|
5
5
|
记录 `dsh-charter` 的重要变更。DSH 插件 ABI 仍在演进,项目保持 pre-1.0 版本线。
|
|
6
6
|
|
|
7
|
-
## 0.
|
|
7
|
+
## 0.3.1 — 2026-11-13
|
|
8
|
+
|
|
9
|
+
依赖图、standing envelope 可观测性与本地流量取证的 GUI 收敛补丁。不改变 record schema、Remote wire 或
|
|
10
|
+
prompt 投影。
|
|
11
|
+
|
|
12
|
+
### 新增
|
|
13
|
+
|
|
14
|
+
- 依赖图新增执行/候选/历史泳道标题、SVG 方向箭头、历史点划线,以及沿边展开的 44px 命中区。
|
|
15
|
+
- Diagnostics 增加 standing envelope 估算:按 32 KiB cap 精确计算 `charter_read standing` 字节,显示条目/
|
|
16
|
+
交付物数、`maxPromptBytes`、id 开销和 `<80%` / `>=80%` / 超 cap 三态。
|
|
17
|
+
- `traffic-check` 增加 `charter_propose` 调用/拒绝统计与 display-key/unknown-id 分类、active charter surface
|
|
18
|
+
hash;新增 `traffic-diff` 基线对比。仅本地诊断,不上报、不埋点。
|
|
19
|
+
|
|
20
|
+
### 变更
|
|
21
|
+
|
|
22
|
+
- 移除未使用的 `BuildRelationGraphInput.ops` 输入,以及依赖图 viewport 的固定 `max-height`;画布随布局增长。
|
|
23
|
+
- 冻结稿/规格补充泳道标题、箭头、历史线型和 44px 边命中合同。
|
|
24
|
+
|
|
25
|
+
### 验证
|
|
26
|
+
|
|
27
|
+
- `npm run check`:41 文件 / **499 测试** PASS;十版本 token 覆盖 PASS。
|
|
28
|
+
- 浏览器审计覆盖泳道标题、箭头 marker、44px 命中区、自适应 viewport、860–1440 无横向溢出与 200% 页面
|
|
29
|
+
缩放;真实 AT/VoiceOver 仍是独立人工门禁。
|
|
30
|
+
- `verify:ui-metrics -- --gate=final` 与 0.3.1 源码门禁在最终树运行。
|
|
31
|
+
|
|
32
|
+
## 0.3.0 — 2026-11-13
|
|
33
|
+
|
|
34
|
+
Workspace、审阅中心、诊断与维护统一到文档感 GUI。不改变 record schema、Remote wire 或 prompt 投影。
|
|
35
|
+
|
|
36
|
+
### 新增
|
|
37
|
+
|
|
38
|
+
- 顶部下划线 tabs 取代左侧纵向导航;宽屏为 720px 文档列 + 280px Change Set rail,窄屏保留 modal sheet。
|
|
39
|
+
- 文档行、D 编号/字节右对齐元信息、quiet 行动作、虚线空态、skeleton、单行 notice;Change Set rail 为安静
|
|
40
|
+
margin note,含分组 op 和 quiet 撤销。
|
|
41
|
+
- px 几何依赖图:固定 184px 节点、三层解剖、候选/暂存/生效边语言、静态 legend、紧凑 inspector 和随状态变化的
|
|
42
|
+
disclosure 文案。
|
|
43
|
+
- Pane 页头保留已批准的 `v0.3.0` 版本 chip。
|
|
44
|
+
- `charter_read standing` 返回交付物稳定 id,供 `charter_propose.requires` 使用;`D<n>` 明确只是展示标签,
|
|
45
|
+
非法引用显式失败。
|
|
46
|
+
|
|
47
|
+
### 变更
|
|
48
|
+
|
|
49
|
+
- 审阅中心、诊断与维护共用同一文档字号、行、chip、notice 与焦点合同。
|
|
50
|
+
- client CSS 按归属 style tag upsert,热更新替换旧样式且不产生重复标签。
|
|
51
|
+
- Diagnostics 作为显式顶层路由,不再落到 context-preview 锚点。
|
|
52
|
+
|
|
53
|
+
### 验证
|
|
54
|
+
|
|
55
|
+
- `npm run check`:39 文件 / **492 测试** PASS;十版本 token 覆盖 PASS;
|
|
56
|
+
`verify:ui-metrics -- --gate=final` PASS。
|
|
57
|
+
- 十版本兼容矩阵 PASS;release-candidate workflow 执行 exact-artifact package/recovery、fresh profile 和
|
|
58
|
+
Gateway 门禁。
|
|
59
|
+
|
|
60
|
+
## 0.2.2 — 2026-11-11
|
|
8
61
|
|
|
9
62
|
依赖关系图形视图与显式依赖冲突确认。不改变 record schema、Host、Remote 或 prompt 投影。
|
|
10
63
|
|
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](LICENSE)
|
|
4
4
|
[](https://github.com/centella-cream/dsh-charter)
|
|
5
|
-
[](docs/design/compatibility.md)
|
|
6
6
|
[](package.json)
|
|
7
|
-
[](#status)
|
|
8
8
|
|
|
9
9
|
English | [中文](README.zh.md)
|
|
10
10
|
|
|
@@ -14,17 +14,23 @@ English | [中文](README.zh.md)
|
|
|
14
14
|
[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness). Goals, hard constraints,
|
|
15
15
|
deliverables, evidence, and dependency relationships survive compaction and remain visible and editable.
|
|
16
16
|
|
|
17
|
-

|
|
18
18
|
|
|
19
|
-
> The
|
|
20
|
-
>
|
|
19
|
+
> The Pane in a local Web profile: underline area tabs, a 720px document column, aligned document
|
|
20
|
+
> rows, and a compact execution-path disclosure. Screenshot uses synthetic demo values only.
|
|
21
|
+
|
|
22
|
+

|
|
23
|
+
|
|
24
|
+
> The execution-path dependency graph: lane headings, the three-column execution grid, and the state/type
|
|
25
|
+
> legend. Edge arrows and hit targets appear when dependencies exist. The semantic list remains authoritative.
|
|
21
26
|
|
|
22
27
|
## Contents
|
|
23
28
|
|
|
24
29
|
- [Status](#status)
|
|
30
|
+
- [Core capabilities](#core-capabilities)
|
|
31
|
+
- [Dependency relationships](#dependency-relationships)
|
|
32
|
+
- [Proposals, diagnostics, and recovery](#proposals-diagnostics-and-recovery)
|
|
25
33
|
- [Why](#why)
|
|
26
|
-
- [0.2 headline: constraint relationships](#02-headline-constraint-relationships)
|
|
27
|
-
- [Other 0.2 capabilities](#other-02-capabilities)
|
|
28
34
|
- [How it works](#how-it-works)
|
|
29
35
|
- [Install](#install)
|
|
30
36
|
- [Quick start](#quick-start)
|
|
@@ -39,32 +45,51 @@ deliverables, evidence, and dependency relationships survive compaction and rema
|
|
|
39
45
|
|
|
40
46
|
## Status
|
|
41
47
|
|
|
42
|
-
- **
|
|
43
|
-
dependency-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- **
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
- **
|
|
58
|
-
|
|
59
|
-
- **
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
48
|
+
- **Current development candidate:** `0.3.1` — the GUI convergence release. It keeps the frozen document-feel Pane and closes
|
|
49
|
+
the dependency-graph audit and standing-envelope observability gaps. It ships the document-feel Pane across
|
|
50
|
+
Workspace, Review Center, and Diagnostics; the dependency graph; the bounded DSH compatibility declaration;
|
|
51
|
+
and the Host tool fix that exposes deliverable ids to `charter_propose.requires`. **Not published yet;** latest published release is `0.3.0`.
|
|
52
|
+
- **Previous release:** `0.2.2` — dependency-graph workspace view, compact dependency list, and explicit
|
|
53
|
+
dependency-conflict confirmation.
|
|
54
|
+
- **Earlier release:** `0.2.1`; **primary DSH baseline:** `0.2.2-rc.3`; eleven declared DSH versions are
|
|
55
|
+
source-matrix verified.
|
|
56
|
+
- Versioning from `0.2.0` onward uses plain increments (`0.2.0`, `0.2.1`, `0.2.2`, `0.3.0`, `0.3.1`), never an `rc`
|
|
57
|
+
suffix.
|
|
58
|
+
|
|
59
|
+
## Core capabilities
|
|
60
|
+
|
|
61
|
+
### Document-feel Pane
|
|
62
|
+
|
|
63
|
+
- **One document, not a dashboard.** Workspace, Review Center, and Diagnostics share the same reading column,
|
|
64
|
+
type scale, row anatomy, chips, quiet links, and empty/skeleton states.
|
|
65
|
+
- **Underline area tabs, no left rail.** All widths use the top underline tabs; wide screens add a 720px
|
|
66
|
+
document column plus a 280px Change Set rail only while a Change Set is open.
|
|
67
|
+
- **Rows align.** Each row is `[status dot | text | right-aligned D-number and bytes]`; byte metadata and the
|
|
68
|
+
D-number share the text baseline. Row-level actions are quiet links, not a second button bar.
|
|
69
|
+
- **Staged changes speak one language.** A staged row uses a 2px business inset, a 5% tint, and a “Staged”
|
|
70
|
+
chip; the Change Set rail is a quiet margin note, not another card stack.
|
|
71
|
+
- **The graph is a real view, not a second authority.** The execution-path disclosure renders a px-geometry
|
|
72
|
+
graph with fixed 184px nodes, two-line truncation, status anatomy, edge states, and a compact inspector; the
|
|
73
|
+
semantic list remains authoritative.
|
|
74
|
+
- **Version visible.** The Pane header carries the installed version chip, revision, and prompt meter together.
|
|
75
|
+
|
|
76
|
+
### Dependency graph and diagnostics
|
|
77
|
+
|
|
78
|
+
- **Graph audit:** lane headings, directional SVG arrows, path-sized 44px edge hit targets, a dot-dash history
|
|
79
|
+
line, an adaptive-height canvas, and removal of the unused graph `ops` input.
|
|
80
|
+
- **Standing envelope warning:** Diagnostics estimates the exact `charter_read standing` result against the
|
|
81
|
+
32 KiB cap, with `<80%` / `>=80%` / over-cap states and the included id overhead.
|
|
82
|
+
- **Traffic forensics:** the local `traffic-check` reports `charter_propose` rejection categories and active
|
|
83
|
+
charter-surface hashes; `traffic-diff` compares before/after baselines. No runtime telemetry or upload is added.
|
|
84
|
+
|
|
85
|
+
### Compatibility and runtime
|
|
86
|
+
|
|
87
|
+
- DSH `0.2.2-rc.3` declarations plus a bounded `engines.dsh` 0.2-line range; exact `dshReleases`/peer list
|
|
88
|
+
remains the eleven-version matrix-verified support set.
|
|
89
|
+
- `charter_read standing` now exposes stable deliverable ids so the model can propose real `requires`
|
|
90
|
+
references; `D<n>` labels are documented as display-only, and invalid references fail explicitly.
|
|
91
|
+
- Desktop and Web plugin bundles hot-reload through the Host profile recomposition/client HMR path; CSS is
|
|
92
|
+
upserted by its owned style tag so a rebuilt stylesheet replaces the old one without duplicate tags.
|
|
68
93
|
|
|
69
94
|
## Why
|
|
70
95
|
|
|
@@ -94,16 +119,12 @@ permission boundary.
|
|
|
94
119
|
A charter is a declaration, not an enforcement policy. Use Host permissions, sandbox policy, hooks, or
|
|
95
120
|
execution guards for restrictions that must be machine-enforced.
|
|
96
121
|
|
|
97
|
-
##
|
|
122
|
+
## Dependency relationships
|
|
98
123
|
|
|
99
|
-
|
|
100
|
-
deliverable can declare **prerequisites** on other deliverables, and those relationships become part of the
|
|
124
|
+
Deliverables are not an independent, ordered checklist. A deliverable can declare **prerequisites** on other deliverables, and those relationships become part of the
|
|
101
125
|
stored contract, the validation boundary, the UI plan, and the model-visible prompt.
|
|
102
126
|
|
|
103
|
-
|
|
104
|
-
Tests (D1) ───────────┐
|
|
105
|
-
Migration (D2) ───────┴──> Release (D3)
|
|
106
|
-
```
|
|
127
|
+

|
|
107
128
|
|
|
108
129
|
- **Typed, validated edges.** Each deliverable may carry `requires: [id…]`. The Host rejects self-edges,
|
|
109
130
|
duplicate prerequisites, dangling references, inactive endpoints, and cycles. The whole Change Set fails
|
|
@@ -129,7 +150,7 @@ Migration (D2) ───────┴──> Release (D3)
|
|
|
129
150
|
|
|
130
151
|
Dependencies are a user-authored **execution constraint**, not an enforced sandbox or permission system.
|
|
131
152
|
|
|
132
|
-
##
|
|
153
|
+
## Proposals, diagnostics, and recovery
|
|
133
154
|
|
|
134
155
|
- Three primary areas: **Workspace**, **Review Center**, and **Diagnostics & Maintenance**.
|
|
135
156
|
- Record schema v2 with in-memory v1 migration, proposal batches, typed provenance, and objective proposals.
|
|
@@ -170,19 +191,17 @@ storage.
|
|
|
170
191
|
|
|
171
192
|
## Install
|
|
172
193
|
|
|
173
|
-
The latest
|
|
174
|
-
until promotion:
|
|
194
|
+
The latest published release is `0.3.0`:
|
|
175
195
|
|
|
176
196
|
```bash
|
|
177
|
-
dsh plugin --profile web add
|
|
197
|
+
dsh plugin --profile web add dsh-charter@0.3.0
|
|
178
198
|
```
|
|
179
199
|
|
|
180
|
-
|
|
200
|
+
The `0.3.1` development candidate is not published. Build/accept it from the working tree:
|
|
181
201
|
|
|
182
202
|
```bash
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
dsh plugin --profile web add ./dsh-charter-0.2.1.tgz
|
|
203
|
+
npm pack
|
|
204
|
+
dsh plugin --profile web add ./dsh-charter-0.3.1.tgz
|
|
186
205
|
```
|
|
187
206
|
|
|
188
207
|
For Desktop, use **Desktop → Plugins → Install/Update**, or import the same local tarball if your Desktop build
|
|
@@ -219,8 +238,8 @@ A Session that is not live in the current Host process is shown read-only; start
|
|
|
219
238
|
|
|
220
239
|
## The Charter tab
|
|
221
240
|
|
|
222
|
-
The Pane opens from the Session view.
|
|
223
|
-
|
|
241
|
+
The Pane opens from the Session view. All widths use the top underline area tabs; wide screens keep the
|
|
242
|
+
document column at 720px and open the Change Set as a 280px right-side margin note only when needed.
|
|
224
243
|
|
|
225
244
|
| Area | Purpose |
|
|
226
245
|
| --- | --- |
|
|
@@ -270,9 +289,14 @@ The only model-visible capacity is `maxPromptBytes`; `maxItems` and `maxPendingI
|
|
|
270
289
|
| `0.1.7-rc.2` | Supported (minimum) |
|
|
271
290
|
| `0.2.0-rc.1` / `0.2.0-rc.2` | Supported |
|
|
272
291
|
| `0.2.1-rc.1` / `0.2.1-rc.2` / `0.2.1-rc.3` / `0.2.1-rc.4` / `0.2.1-rc.5` | Supported |
|
|
273
|
-
| `0.2.2-rc.1` | Supported (primary baseline) |
|
|
292
|
+
| `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` | Supported (primary baseline: `0.2.2-rc.3`) |
|
|
274
293
|
| `0.3.x` | Not declared until verified |
|
|
275
294
|
|
|
295
|
+
`engines.dsh` uses a bounded 0.2-line range (`0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0`), evaluated with
|
|
296
|
+
prereleases by DSH's gate, so future 0.2.x prerelease updates do not require a plugin rebuild; the exact
|
|
297
|
+
`dshReleases`/peer list above remains the matrix-verified support set. Please report any 0.2.x update that
|
|
298
|
+
actually breaks the Pane.
|
|
299
|
+
|
|
276
300
|
"Supported" means typecheck, build, tests, and Remote/client smoke for that version, plus the profile gates
|
|
277
301
|
recorded in the [compatibility matrix](docs/design/compatibility.md). `0.1.7` and `0.2.0` have no per-Peer Remote
|
|
278
302
|
resource authorization; use them only in a trusted single-operator environment.
|
package/README.zh.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](LICENSE)
|
|
4
4
|
[](https://github.com/centella-cream/dsh-charter)
|
|
5
|
-
[](docs/design/compatibility.zh.md)
|
|
6
6
|
[](package.json)
|
|
7
|
-
[](#状态)
|
|
8
8
|
|
|
9
9
|
[English](README.md) | 中文
|
|
10
10
|
|
|
@@ -13,17 +13,22 @@
|
|
|
13
13
|
`dsh-charter` 是 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的持久化、用户所有的
|
|
14
14
|
会话契约插件。目标、硬约束、交付物、证据和依赖关系在上下文压缩后仍然保留,并且始终可查看、可编辑。
|
|
15
15
|
|
|
16
|
-

|
|
17
17
|
|
|
18
|
-
>
|
|
19
|
-
>
|
|
18
|
+
> 本地 Web profile 中的 Pane:顶部下划线 tabs、720px 文档列、对齐的文档行和可折叠执行路径。
|
|
19
|
+
> 截图仅使用合成演示数据。
|
|
20
|
+
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
> 执行路径依赖图:泳道标题、三列执行网格和状态/类型 legend;存在依赖时显示方向箭头与沿边命中区。语义列表始终是权威操作面。
|
|
20
24
|
|
|
21
25
|
## 目录
|
|
22
26
|
|
|
23
27
|
- [状态](#状态)
|
|
28
|
+
- [核心能力](#核心能力)
|
|
29
|
+
- [依赖关系](#依赖关系)
|
|
30
|
+
- [提案、诊断与恢复](#提案诊断与恢复)
|
|
24
31
|
- [为什么需要](#为什么需要)
|
|
25
|
-
- [0.2 核心亮点:约束关系](#02-核心亮点约束关系)
|
|
26
|
-
- [其他 0.2 能力](#其他-02-能力)
|
|
27
32
|
- [工作原理](#工作原理)
|
|
28
33
|
- [安装](#安装)
|
|
29
34
|
- [快速开始](#快速开始)
|
|
@@ -38,29 +43,45 @@
|
|
|
38
43
|
|
|
39
44
|
## 状态
|
|
40
45
|
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
-
|
|
63
|
-
|
|
46
|
+
- **当前开发候选:**`0.3.1` — GUI 收敛版本。保留冻结的文档感 Pane,并关闭依赖图审计和 standing envelope 可观测性缺口。
|
|
47
|
+
包含文档感 Pane、依赖关系图、有界 DSH 兼容声明,以及让 `charter_propose.requires` 可用交付物 id 的
|
|
48
|
+
Host 工具修复。**尚未发布**;最新已发布版本为 `0.3.0`。
|
|
49
|
+
- **上一版本:**`0.2.2` — 依赖关系图形视图、紧凑依赖列表和依赖冲突二次确认。
|
|
50
|
+
- **更早版本:**`0.2.1`;**主要 DSH 基线:**`0.2.2-rc.3`;十一个声明版本通过源码矩阵验证。
|
|
51
|
+
- 从 `0.2.0` 起版本号使用普通递增(`0.2.0`、`0.2.1`、`0.2.2`、`0.3.0`、`0.3.1`),不再使用 `rc` 后缀。
|
|
52
|
+
|
|
53
|
+
## 核心能力
|
|
54
|
+
|
|
55
|
+
### 文档感 Pane
|
|
56
|
+
|
|
57
|
+
- **一份文档,不是仪表盘。** Workspace、审阅中心和诊断与维护共用同一阅读列、字号阶、行解剖、chip、
|
|
58
|
+
quiet link 与空态/skeleton。
|
|
59
|
+
- **顶部下划线 tabs,无左侧纵向导航。** 所有宽度使用顶部 tabs;宽屏只在有 Change Set 时增加
|
|
60
|
+
720px 文档列 + 280px Change Set rail。
|
|
61
|
+
- **行对齐。** 每行是 `[状态圆点 | 正文 | 右对齐 D 编号与字节数]`;字节元信息、D 编号与正文首行共用
|
|
62
|
+
20px 行盒基线。行级轻动作用 quiet link,不额外堆按钮。
|
|
63
|
+
- **暂存语言统一。** 暂存行使用 2px business 内嵌强调条、5% 底色和“已暂存”chip;Change Set rail 是安静的
|
|
64
|
+
margin note,不再套一层卡片。
|
|
65
|
+
- **依赖图是增强视图,不是第二权威。** 执行路径 disclosure 内是 px 几何依赖图:固定 184px 节点、两行截断、
|
|
66
|
+
状态解剖、边状态和紧凑 inspector;语义列表始终是权威操作面。
|
|
67
|
+
- **版本可见。** Pane 页头同时显示已安装版本 chip、revision 和 prompt meter。
|
|
68
|
+
|
|
69
|
+
### 依赖图与诊断
|
|
70
|
+
|
|
71
|
+
- **依赖图审计:** 泳道标题、SVG 方向箭头、沿边展开的 44px 命中区、点划线历史边、自适应画布高度,并移除
|
|
72
|
+
未使用的 graph `ops` 输入。
|
|
73
|
+
- **Standing envelope 预警:** Diagnostics 按 32 KiB cap 精确估算 `charter_read standing` 结果,显示
|
|
74
|
+
`<80%` / `>=80%` / 超 cap 三态,并计入 id 开销。
|
|
75
|
+
- **流量取证:** 本地 `traffic-check` 增加 `charter_propose` 拒绝分类和 active charter surface hash;
|
|
76
|
+
`traffic-diff` 对比前后基线。不新增运行时埋点、不上报。
|
|
77
|
+
|
|
78
|
+
### 兼容性与运行时
|
|
79
|
+
|
|
80
|
+
- DSH `0.2.2-rc.3` 声明与有界 `engines.dsh` 0.2 线范围;精确 `dshReleases`/peer 列表仍是十一版本矩阵已验证支持集。
|
|
81
|
+
- `charter_read standing` 现在返回交付物稳定 id,模型可以提出真实 `requires` 引用;`D<n>` 明确只是展示标签,
|
|
82
|
+
非法引用显式失败。
|
|
83
|
+
- Desktop/Web 插件通过 Host profile 重组 + client HMR 热更新;CSS 按归属 style tag upsert,重载后替换旧样式,
|
|
84
|
+
不产生重复标签。
|
|
64
85
|
|
|
65
86
|
## 为什么需要
|
|
66
87
|
|
|
@@ -85,15 +106,12 @@
|
|
|
85
106
|
契约是声明,不是强制执行策略。需要机器强制的限制请使用 Host permissions、sandbox policy、hooks 或
|
|
86
107
|
执行守卫。
|
|
87
108
|
|
|
88
|
-
##
|
|
109
|
+
## 依赖关系
|
|
89
110
|
|
|
90
|
-
|
|
91
|
-
|
|
111
|
+
deliverable 不是一份互不相关的顺序清单。一个 deliverable 可以声明对其他 deliverable 的**前置约束**,
|
|
112
|
+
这些关系会进入存储契约、校验边界、UI 计划和模型可见 prompt。
|
|
92
113
|
|
|
93
|
-
|
|
94
|
-
测试 (D1) ────────────┐
|
|
95
|
-
迁移 (D2) ────────────┴──> 发布 (D3)
|
|
96
|
-
```
|
|
114
|
+

|
|
97
115
|
|
|
98
116
|
- **类型化、可校验的关系。**每个 deliverable 可携带 `requires: [id…]`。Host 拒绝自环、重复前置、
|
|
99
117
|
悬空引用、非 active 端点和环;整个 Change Set 原子失败,不会写入半张图。
|
|
@@ -106,10 +124,12 @@ deliverable 的**前置约束**,而这些关系会进入存储契约、校验
|
|
|
106
124
|
- **生命周期安全。**archive、restore、supersede、fork 和 proposal acceptance 都会校验或重映射关系;
|
|
107
125
|
`proposedRequires` 让 pending deliverable 引用候选前置条件,接受时解析为正式 requires。
|
|
108
126
|
- **有界。**关系集合同样受 record 和 prompt 预算约束,不引入独立的图正本。
|
|
127
|
+
- **依赖图视角。** 依赖图是局部 ego 视图,包含候选泳道和替代历史泳道;它不是第二权威,图上的编辑与列表
|
|
128
|
+
暂存同一组 Change Set ops。零依赖时使用有界孤立节点网格和明确的“添加前置”提示。
|
|
109
129
|
|
|
110
130
|
依赖是用户编写的**执行约束**,不是强制 sandbox 或权限系统。
|
|
111
131
|
|
|
112
|
-
##
|
|
132
|
+
## 提案、诊断与恢复
|
|
113
133
|
|
|
114
134
|
- 三个一级区域:**Workspace**、**Review Center**、**Diagnostics & Maintenance**。
|
|
115
135
|
- record schema v2、内存 v1 迁移、proposal batch、类型化 provenance 和 objective proposal。
|
|
@@ -149,18 +169,17 @@ compaction summary 返回只读草案,不写 storage。
|
|
|
149
169
|
|
|
150
170
|
## 安装
|
|
151
171
|
|
|
152
|
-
|
|
172
|
+
最新已发布版本是 `0.3.0`:
|
|
153
173
|
|
|
154
174
|
```bash
|
|
155
|
-
dsh plugin --profile web add
|
|
175
|
+
dsh plugin --profile web add dsh-charter@0.3.0
|
|
156
176
|
```
|
|
157
177
|
|
|
158
|
-
|
|
178
|
+
`0.3.1` 开发候选尚未发布;从工作区构建并验收:
|
|
159
179
|
|
|
160
180
|
```bash
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
dsh plugin --profile web add ./dsh-charter-0.2.1.tgz
|
|
181
|
+
npm pack
|
|
182
|
+
dsh plugin --profile web add ./dsh-charter-0.3.1.tgz
|
|
164
183
|
```
|
|
165
184
|
|
|
166
185
|
Desktop 请使用 **Desktop → Plugins → Install/Update**;若 Desktop 构建支持本地插件导入,也可导入同一
|
|
@@ -245,9 +264,13 @@ active-count 失败。
|
|
|
245
264
|
| `0.1.7-rc.2` | 支持(最低版本) |
|
|
246
265
|
| `0.2.0-rc.1` / `0.2.0-rc.2` | 支持 |
|
|
247
266
|
| `0.2.1-rc.1` / `0.2.1-rc.2` / `0.2.1-rc.3` / `0.2.1-rc.4` / `0.2.1-rc.5` | 支持 |
|
|
248
|
-
| `0.2.2-rc.1` |
|
|
267
|
+
| `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` | 支持(主基线:`0.2.2-rc.3`) |
|
|
249
268
|
| `0.3.x` | 验证前不声明 |
|
|
250
269
|
|
|
270
|
+
`engines.dsh` 使用有界的 0.2 线范围(`0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0`),DSH gate 会按 prerelease
|
|
271
|
+
语义求值,因此未来的 0.2.x prerelease 更新无需插件重新发版;上方精确的 `dshReleases`/peer 列表仍是矩阵已验证
|
|
272
|
+
支持集。若某个 0.2.x 更新确实破坏 Pane,请报告。
|
|
273
|
+
|
|
251
274
|
“支持”表示该版本通过 typecheck、build、测试和 Remote/client smoke,并具备[兼容矩阵](docs/design/compatibility.zh.md)
|
|
252
275
|
中记录的 profile 证据。`0.1.7` / `0.2.0` 没有 per-Peer Remote resource authorization,仅应在可信单操作者
|
|
253
276
|
环境中使用。
|
package/docs/README.md
CHANGED
|
@@ -21,7 +21,7 @@ A status block has this shape:
|
|
|
21
21
|
|
|
22
22
|
```text
|
|
23
23
|
> **Status:** Active
|
|
24
|
-
> **Version scope:** 0.2.2
|
|
24
|
+
> **Version scope:** 0.2.2
|
|
25
25
|
> **Baseline:** 2026-11-06
|
|
26
26
|
> **Authority:** docs/design/version-roadmap.zh.md
|
|
27
27
|
> **Supersedes / Superseded by:** none / <path or none>
|
|
@@ -50,8 +50,9 @@ same commit. Do not delete a historical decision just because it is inactive; mo
|
|
|
50
50
|
| Document | Status | Version scope | Notes |
|
|
51
51
|
| --- | --- | --- | --- |
|
|
52
52
|
| [design/charter-design-v1.md](design/charter-design-v1.md) | Active | 0.1 core; invariants apply to 0.2 | Core Charter invariants and v1 product baseline. |
|
|
53
|
-
| [design/charter-workspace-v2.zh.md](design/charter-workspace-v2.zh.md) |
|
|
54
|
-
| [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) |
|
|
53
|
+
| [design/charter-workspace-v2.zh.md](design/charter-workspace-v2.zh.md) | Active | 0.2.0 / 0.3.0 | Workspace, proposal timeline, dependencies; topic-scoped. |
|
|
54
|
+
| [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Active | 0.2.2 / 0.3.1 | Client-side dependency graph view. Source implementation lands on the 0.2.2 line; real browser/AT and W0-1/2/3 gate evidence remains pending. |
|
|
55
|
+
| [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 / 0.3.1 | All-section GUI refactor: design system, IA/routing, Change Set contract, Pane/store split, evidence gates. Frozen visual language (document-feel): [design/mockups/](design/mockups/README.md). |
|
|
55
56
|
| [design/version-roadmap.md](design/version-roadmap.md) | Active | whole line | Scope/version authority; Chinese is normative. |
|
|
56
57
|
| [design/compatibility.md](design/compatibility.md) | Active | declared DSH versions | Compatibility claims and matrix. |
|
|
57
58
|
| [history/2026-10-19-charter-design-v1-review.md](history/2026-10-19-charter-design-v1-review.md) | Historical | 0.1 | Frozen v1 design review. |
|
|
@@ -63,7 +64,7 @@ same commit. Do not delete a historical decision just because it is inactive; mo
|
|
|
63
64
|
| [release-notes/0.1.0-rc.5.md](release-notes/0.1.0-rc.5.md) | Historical | 0.1.0-rc.5 | Published npm release note. |
|
|
64
65
|
| [release-notes/0.1.0-rc.6.md](release-notes/0.1.0-rc.6.md) | Historical | 0.1.0-rc.6 | Published/accepted release note. |
|
|
65
66
|
| [release-notes/0.2.0.md](release-notes/0.2.0.md) | Historical | 0.2.0 | Published npm release and GitHub Release. |
|
|
66
|
-
| [release-notes/0.2.2.md](release-notes/0.2.2.md) |
|
|
67
|
+
| [release-notes/0.2.2.md](release-notes/0.2.2.md) | Historical | 0.2.2 | Published npm release and GitHub Release; dependency graph and conflict confirmation. |
|
|
67
68
|
| [release-notes/0.2.1.md](release-notes/0.2.1.md) | Historical | 0.2.1 | Published npm release and GitHub Release. |
|
|
68
69
|
|
|
69
70
|
## Maintenance rules
|
package/docs/README.zh.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
| 状态 | 含义 |
|
|
10
10
|
| --- | --- |
|
|
11
|
+
| `Proposed` | 设计提案:**未实现、非权威**;记录待选项,不得作为当前行为引用。进入版本范围前需先修订版本路线。 |
|
|
11
12
|
| `Active` | 当前权威或当前操作指南,持续维护。 |
|
|
12
13
|
| `Implemented — pending release acceptance` | 源码实现已存在并通过源码门禁,但发布/人工门禁尚未完成。 |
|
|
13
14
|
| `Historical` | 已完成或已放弃决策的冻结记录;只读,不作为当前指导。 |
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
|
|
20
21
|
```text
|
|
21
22
|
> **Status:** Active
|
|
22
|
-
> **Version scope:** 0.2.2
|
|
23
|
+
> **Version scope:** 0.2.2
|
|
23
24
|
> **Baseline:** 2026-11-06
|
|
24
25
|
> **Authority:** docs/design/version-roadmap.zh.md
|
|
25
26
|
> **Supersedes / Superseded by:** none / <路径或 none>
|
|
@@ -47,7 +48,9 @@
|
|
|
47
48
|
| 文档 | 状态 | 版本范围 | 说明 |
|
|
48
49
|
| --- | --- | --- | --- |
|
|
49
50
|
| [design/charter-design-v1.md](design/charter-design-v1.md) | Active | 0.1 核心;不变量适用于 0.2 | Charter 核心不变量与 v1 产品基线。 |
|
|
50
|
-
| [design/charter-workspace-v2.zh.md](design/charter-workspace-v2.zh.md) |
|
|
51
|
+
| [design/charter-workspace-v2.zh.md](design/charter-workspace-v2.zh.md) | Active | 0.2.0 / 0.3.0 / 0.3.1 | 工作区、提案时间线、依赖;专题范围。 |
|
|
52
|
+
| [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Active | 0.2.2 / 0.3.1 | 客户端依赖关系图形视图;源码已在 0.2.2 落地,真实浏览器/AT 与 W0-1/2/3 门禁证据仍待完成。 |
|
|
53
|
+
| [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 / 0.3.1 | 全栏目 GUI 全面重构:设计系统、IA/路由、Change Set 合同、Pane/store 拆分、证据门禁;视觉语言已冻结(文档感):[design/mockups/](design/mockups/README.md)。 |
|
|
51
54
|
| [design/version-roadmap.md](design/version-roadmap.md) | Active | 全版本线 | 范围与版本权威;中文为 normative。 |
|
|
52
55
|
| [design/compatibility.md](design/compatibility.md) | Active | 已声明 DSH 版本 | 兼容声明与矩阵。 |
|
|
53
56
|
| [history/2026-10-19-charter-design-v1-review.md](history/2026-10-19-charter-design-v1-review.md) | Historical | 0.1 | 冻结的 v1 设计评审。 |
|
|
@@ -59,7 +62,7 @@
|
|
|
59
62
|
| [release-notes/0.1.0-rc.5.md](release-notes/0.1.0-rc.5.md) | Historical | 0.1.0-rc.5 | 已发布 npm 版本的发布说明。 |
|
|
60
63
|
| [release-notes/0.1.0-rc.6.md](release-notes/0.1.0-rc.6.md) | Historical | 0.1.0-rc.6 | 已发布并验收的发布说明。 |
|
|
61
64
|
| [release-notes/0.2.0.md](release-notes/0.2.0.md) | Historical | 0.2.0 | 已发布 npm 版本和 GitHub Release。 |
|
|
62
|
-
| [release-notes/0.2.2.md](release-notes/0.2.2.md) |
|
|
65
|
+
| [release-notes/0.2.2.md](release-notes/0.2.2.md) | Historical | 0.2.2 | 已发布 npm 版本和 GitHub Release;依赖图与冲突二次确认。 |
|
|
63
66
|
| [release-notes/0.2.1.md](release-notes/0.2.1.md) | Historical | 0.2.1 | 已发布 npm 版本和 GitHub Release。 |
|
|
64
67
|
|
|
65
68
|
## 维护规则
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|