dsh-charter 0.3.0 → 0.3.2
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 +55 -0
- package/CHANGELOG.zh.md +48 -0
- package/README.md +52 -31
- package/README.zh.md +51 -30
- package/docs/README.md +2 -2
- package/docs/README.zh.md +3 -3
- 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-graph-root-text-200-0.3.2.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/charter-state-applied-0.3.2.png +0 -0
- package/docs/assets/charter-state-conflict-0.3.2.png +0 -0
- package/docs/assets/charter-state-empty-0.3.2.png +0 -0
- package/docs/assets/charter-state-forced-colors-0.3.2.png +0 -0
- package/docs/assets/charter-state-reduced-motion-0.3.2.png +0 -0
- package/docs/assets/charter-state-staged-0.3.2.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 +27 -21
- package/docs/design/charter-gui-v1.zh.md +46 -28
- package/docs/design/compatibility.md +5 -4
- package/docs/design/compatibility.zh.md +5 -4
- package/docs/design/mockups/mockup-graph.html +3 -1
- package/docs/design/mockups/mockup.css +4 -0
- package/docs/design/version-roadmap.md +7 -6
- package/docs/design/version-roadmap.zh.md +28 -12
- package/docs/release-notes/0.3.0.md +7 -3
- package/docs/release-notes/0.3.1.md +41 -0
- package/docs/release-notes/0.3.2.md +34 -0
- package/docs/release-notes/README.md +1 -1
- package/docs/releasing.md +4 -3
- package/docs/releasing.zh.md +4 -3
- package/docs/verification.md +104 -50
- package/docs/verification.zh.md +94 -46
- package/lib/client/DependencyGraph.d.ts +2 -0
- package/lib/client/DiagnosticsPage.d.ts +1 -1
- package/lib/client/locales.d.ts +18 -0
- package/lib/client/relation-graph.d.ts +0 -1
- package/lib/client.js +409 -109
- package/lib/core/standing-envelope.d.ts +31 -0
- package/lib/index.js +1 -1
- package/lib/remote.js +1 -1
- package/lib/{service-DO3Q9uB2.js → service-BSrE7Kbu.js} +39 -23
- package/lib/version.d.ts +1 -1
- package/package.json +15 -14
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="320" viewBox="0 0 960 320" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">依赖关系:测试与迁移是发布的前置条件</title>
|
|
3
|
+
<desc id="desc">三张交付物卡片。测试 D1 与迁移 D2 是发布 D3 的前置条件,带方向依赖箭头。</desc>
|
|
4
|
+
<style>
|
|
5
|
+
.surface { fill: #151820; }
|
|
6
|
+
.frame { fill: none; stroke: #2c333e; }
|
|
7
|
+
.kicker { fill: #8e98a8; font: 600 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .12em; }
|
|
8
|
+
.lane { fill: #6f7989; font: 500 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .04em; }
|
|
9
|
+
.node { fill: #1b1f27; stroke: #343c49; stroke-width: 1; }
|
|
10
|
+
.node-selected { stroke: #4ea1ff; }
|
|
11
|
+
.accent-done { fill: #3fb950; }
|
|
12
|
+
.accent-progress { fill: #4ea1ff; }
|
|
13
|
+
.accent-waiting { fill: #d29922; }
|
|
14
|
+
.node-key { fill: #7fb7ff; font: 600 12px/1.2 "SFMono-Regular", Consolas, monospace; }
|
|
15
|
+
.node-title { fill: #e8ebf1; font: 600 15px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
|
|
16
|
+
.node-meta { fill: #8f99a9; font: 400 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
|
|
17
|
+
.chip { fill: #242a34; stroke: #343c49; }
|
|
18
|
+
.chip-text { fill: #b9c2d0; font: 500 10px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
|
19
|
+
.status-done { fill: #3fb950; }
|
|
20
|
+
.status-progress { fill: #4ea1ff; }
|
|
21
|
+
.status-waiting { fill: #d29922; }
|
|
22
|
+
.edge { fill: none; stroke: #7d8798; stroke-width: 1.5; }
|
|
23
|
+
.edge-label { fill: #8e98a8; font: 400 10px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
|
24
|
+
.hint { fill: #7e8898; font: 400 11px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
|
25
|
+
.legend-line { fill: none; stroke: #7d8798; stroke-width: 1.5; }
|
|
26
|
+
.legend-dot { fill: #3fb950; }
|
|
27
|
+
</style>
|
|
28
|
+
<defs>
|
|
29
|
+
<marker id="arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto">
|
|
30
|
+
<path d="M0,0 L8,4 L0,8 z" fill="#7d8798"/>
|
|
31
|
+
</marker>
|
|
32
|
+
</defs>
|
|
33
|
+
|
|
34
|
+
<rect class="surface" x="0.5" y="0.5" width="959" height="319" rx="14"/>
|
|
35
|
+
<rect class="frame" x="0.5" y="0.5" width="959" height="319" rx="14"/>
|
|
36
|
+
|
|
37
|
+
<text class="kicker" x="32" y="36">执行路径</text>
|
|
38
|
+
<text class="lane" x="32" y="64">前置条件先于依赖项可见</text>
|
|
39
|
+
|
|
40
|
+
<!-- lane guide -->
|
|
41
|
+
<line x1="32" y1="80" x2="928" y2="80" stroke="#252c36" stroke-width="1"/>
|
|
42
|
+
<text class="lane" x="32" y="100">执行</text>
|
|
43
|
+
<text class="lane" x="520" y="100">依赖项</text>
|
|
44
|
+
|
|
45
|
+
<!-- D1 Tests -->
|
|
46
|
+
<g>
|
|
47
|
+
<rect class="node" x="32" y="118" width="236" height="82" rx="8"/>
|
|
48
|
+
<rect class="accent-done" x="32" y="118" width="3" height="82" rx="1.5"/>
|
|
49
|
+
<circle class="status-done" cx="52" cy="140" r="3"/>
|
|
50
|
+
<text class="node-key" x="62" y="144">D1</text>
|
|
51
|
+
<rect class="chip" x="190" y="128" width="62" height="20" rx="10"/>
|
|
52
|
+
<text class="chip-text" x="221" y="142" text-anchor="middle">已完成</text>
|
|
53
|
+
<text class="node-title" x="52" y="169">测试</text>
|
|
54
|
+
<text class="node-meta" x="52" y="188">无前置</text>
|
|
55
|
+
</g>
|
|
56
|
+
|
|
57
|
+
<!-- D2 Migration -->
|
|
58
|
+
<g>
|
|
59
|
+
<rect class="node" x="32" y="218" width="236" height="82" rx="8"/>
|
|
60
|
+
<rect class="accent-progress" x="32" y="218" width="3" height="82" rx="1.5"/>
|
|
61
|
+
<circle class="status-progress" cx="52" cy="240" r="3"/>
|
|
62
|
+
<text class="node-key" x="62" y="244">D2</text>
|
|
63
|
+
<rect class="chip" x="174" y="228" width="78" height="20" rx="10"/>
|
|
64
|
+
<text class="chip-text" x="213" y="242" text-anchor="middle">进行中</text>
|
|
65
|
+
<text class="node-title" x="52" y="269">迁移</text>
|
|
66
|
+
<text class="node-meta" x="52" y="288">无前置</text>
|
|
67
|
+
</g>
|
|
68
|
+
|
|
69
|
+
<!-- D3 Release -->
|
|
70
|
+
<g>
|
|
71
|
+
<rect class="node node-selected" x="520" y="160" width="260" height="98" rx="8"/>
|
|
72
|
+
<rect class="accent-waiting" x="520" y="160" width="3" height="98" rx="1.5"/>
|
|
73
|
+
<circle class="status-waiting" cx="540" cy="184" r="3"/>
|
|
74
|
+
<text class="node-key" x="550" y="188">D3</text>
|
|
75
|
+
<rect class="chip" x="700" y="174" width="66" height="20" rx="10"/>
|
|
76
|
+
<text class="chip-text" x="733" y="188" text-anchor="middle">等待</text>
|
|
77
|
+
<text class="node-title" x="540" y="217" fill="#e8ebf1">发布</text>
|
|
78
|
+
<text class="node-meta" x="540" y="237" fill="#8f99a9">2 个前置 · 等待 D1、D2</text>
|
|
79
|
+
</g>
|
|
80
|
+
|
|
81
|
+
<!-- edges: D1 -> D3 and D2 -> D3 -->
|
|
82
|
+
<path class="edge" d="M 268 158 C 340 158, 400 185, 516 196" marker-end="url(#arrow)"/>
|
|
83
|
+
<path class="edge" d="M 268 258 C 340 258, 400 225, 516 218" marker-end="url(#arrow)"/>
|
|
84
|
+
<text class="edge-label" x="338" y="142">依赖 D1</text>
|
|
85
|
+
<text class="edge-label" x="338" y="286">依赖 D2</text>
|
|
86
|
+
|
|
87
|
+
<!-- legend / note -->
|
|
88
|
+
<line class="legend-line" x1="32" y1="306" x2="62" y2="306"/>
|
|
89
|
+
<text class="hint" x="72" y="310">实线 = 生效依赖 · D1、D2 完成后 D3 才进入 prompt</text>
|
|
90
|
+
</svg>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# `dsh-charter` 依赖关系图形化视图设计(提案)
|
|
2
2
|
|
|
3
|
-
> **状态:** `
|
|
4
|
-
>
|
|
3
|
+
> **状态:** `Active`——0.2.2/0.3.1 已实现并发布;方向箭头、泳道标题、沿边 44px 命中路径和历史线型已发布。
|
|
4
|
+
> **公开已知缺口:** 真实 AT/VoiceOver、200% 根字号文本缩放、W0-1/2 实测仍属 0.3.2 跟踪项。
|
|
5
5
|
> ([charter-workspace-v2.zh.md](charter-workspace-v2.zh.md) §1.1)。
|
|
6
|
-
> **版本范围:** `0.2.2
|
|
6
|
+
> **版本范围:** `0.2.2` / `0.3.1` 已发布;`0.3.2` 负责真实 AT、根字号缩放和实测收敛。
|
|
7
7
|
> **形态:** **A —— 图形增强,语义列表常驻且为权威操作面**(已确认,§0.2)。
|
|
8
8
|
> **基准:** 2026-11-09,基于已发布 `0.2.1` 之后的开发树。
|
|
9
9
|
> **权威边界:** 版本范围由[版本路线](version-roadmap.zh.md)决定;不变量由 [v1 核心设计](charter-design-v1.zh.md)
|
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
> **替代/被替代:** 无 / 无。
|
|
13
13
|
> **实现就绪度:** 所有未尽事项的做法都在 **§10**,每项都有决定或"兜底值 + 测量方法 + 决策规则"。
|
|
14
14
|
> 因此实现可按兜底值开工,W0 实测后**只调参数、不改结构**(§10.10)。
|
|
15
|
+
>
|
|
16
|
+
> **0.3.1 几何决策:** 实现已采用固定 px 几何(184px 节点、`PX_PER_EM=18.4`、`PX_PER_EM_Y=22`)。
|
|
17
|
+
> 本文 D19 与 §3.7 的 em 契约保留为历史分析;当前权威几何规格是 [charter-gui-v1.zh.md](charter-gui-v1.zh.md) §5.7。
|
|
18
|
+
> **0.3.2 根字号处理:** 根字号 >16px 时整个画布按比例缩放(上限 200%),viewport 横向滚动;16/24/32px
|
|
19
|
+
> 实测无新增文本裁切。W0-2 的 page-scale 证据仍不等同于根字号证据。
|
|
15
20
|
|
|
16
21
|
## 0. 目标与形态取舍
|
|
17
22
|
|
|
@@ -54,8 +59,9 @@
|
|
|
54
59
|
候选边虚线**只读但可被方向键到达**(D9、D10、§3.4)。**替代关系同样在 v1 画出**:`supersedes` 边走第三条
|
|
55
60
|
`history` 泳道,端点是只读**幽灵节点**(点线、无 `D<n>`、无 rank、可被 `[`/`]` 与 `Enter` 到达),因此执行泳道
|
|
56
61
|
"rank = 执行序"的语义不受影响;本次 staged 的替代两端仍留在执行泳道并标"新增/删除"(D11、§10.1)。
|
|
57
|
-
8.
|
|
58
|
-
transform
|
|
62
|
+
8. **缩放**:实现采用 **固定 px 几何**;布局仍输出确定性 layout units,渲染层按 `PX_PER_EM=18.4` /
|
|
63
|
+
`PX_PER_EM_Y=22` 转 px,单一 wrapper transform;节点高度由字符数纯函数决定。200% **根字号文本缩放**尚未
|
|
64
|
+
由 W0-2 覆盖,W0-2 证据是字号 10/14/22 + 200% page scale(D19 的历史 em 推导已被 0.3.1 决策取代)。
|
|
59
65
|
9. **兼容性**:图形视图本身不动 record schema、迁移、fork、Host、Remote、wire、prompt。(§8 的 §6.5 冲突确认是
|
|
60
66
|
独立事项,它确实改了 core/Host/wire/client,但 wire 上是 optional 字段、不参与任何 digest 输入。)
|
|
61
67
|
**但兼容矩阵不豁免**:发布门禁仍要求对全部已声明版本与当前 untracked 版本重跑矩阵并重新绑定证据。
|
|
@@ -124,7 +130,7 @@
|
|
|
124
130
|
| --- | --- | --- |
|
|
125
131
|
| 屏幕阅读器读不到 canvas 像素;forced colors / 200% 文本缩放对位图无效;焦点需要 DOM 或手写 ARIA overlay | **外部事实** | 不能,只能适配 |
|
|
126
132
|
| SVG 内 ARIA role 与焦点行为跨浏览器/AT 差异大(`role="listitem"` 在 SVG 内不等于 HTML list item) | **外部事实** | 不能,按 §3.5 规避 |
|
|
127
|
-
| 200% 文本缩放只放大文本,不放大写死的 px 盒子 | **外部事实** |
|
|
133
|
+
| 200% 文本缩放只放大文本,不放大写死的 px 盒子 | **外部事实** | 0.3.1 已接受固定 px 几何;字号 10/14/22 + page scale 已有证据,根字号 32px 尚未验证 |
|
|
128
134
|
| bundle 必须单一自包含 factory,任何库都被内联 | **外部事实**(DSH 打包契约) | 不能 |
|
|
129
135
|
| 兼容矩阵是发布门禁 | **外部事实**(项目治理) | 不能 |
|
|
130
136
|
| §5.7 canvas 条款的措辞 | 内部选择 | 可议,但**本提案不需要改**(§1.3.1) |
|
|
@@ -221,7 +227,7 @@
|
|
|
221
227
|
| D16 | 新增 i18n 键中英成对(§3.9) | 项目语言配对规则 |
|
|
222
228
|
| D17 | **合规的可验证形式**:语义列表始终在 DOM 中、始终可聚焦可操作;隐藏图形区后**所有操作仍可在列表完成**;图上与 inspector 内不存在任何列表之外的独有操作 | §5.7 与 §1.3.1 的落点,必须有测试 |
|
|
223
229
|
| D18 | **默认焦点规则**:① `selectedItemId` 若在图中则用它;② 否则取拓扑序第一个 **`prerequisiteStatus === 'dependency-conflict'`** 的 active deliverable;③ 无冲突则第一个 `waiting`;④ 再无则拓扑序第一个 active deliverable;⑤ 无 active deliverable 但有候选边时,取 canonical order 第一个 pending 节点。展开图形区**不抢焦点** | `focusId` 可为 `undefined`,必须定义默认值。**必须看 `prerequisiteStatus` 而非 `executionDisplay`**:core 的 UI 组合规则会把冲突掩盖成 `in-progress`/`blocked`([dependencies.ts:125](../../src/core/dependencies.ts)),只看 `executionDisplay` 会选错节点——W0 原型实测复现 |
|
|
224
|
-
| D19 |
|
|
230
|
+
| D19 | **缩放契约(已被 0.3.1 决策取代)**:实现为全 px 几何(184px 节点、`PX_PER_EM=18.4`、`PX_PER_EM_Y=22`);布局函数输出 layout units,渲染层转 px;SVG 与 HTML 标签层在同一 wrapper 内、共用一个 CSS transform;节点高度由字符数纯函数决定,不做运行时测量 | 旧版 em 推导与固定 px 冲突;3.1 改用 px 并保持 184px 节点/两行截断。200% 根字号(32px)文本缩放仍未覆盖,不能引用 W0-2 的 page scale 证据 |
|
|
225
231
|
|
|
226
232
|
### 3.3 接口:语义层与几何层分离
|
|
227
233
|
|
|
@@ -279,7 +285,7 @@ export function layoutRelationGraph(
|
|
|
279
285
|
): GraphLayout
|
|
280
286
|
|
|
281
287
|
export interface GraphLayout {
|
|
282
|
-
/** 坐标单位是
|
|
288
|
+
/** 坐标单位是 layout units;渲染层按 PX_PER_EM/PX_PER_EM_Y 转 px(0.3.1) */
|
|
283
289
|
readonly nodes: readonly (RelationNode & {
|
|
284
290
|
readonly x: number; readonly y: number
|
|
285
291
|
readonly w: number; readonly h: number // h ∈ {3, 4.5}(em 倍数)
|
|
@@ -428,7 +434,7 @@ inspector 与列表看到);仍 > 60 → ② 深度锁 1;仍 > 60 → ③
|
|
|
428
434
|
|
|
429
435
|
### 3.7 视觉与缩放规格
|
|
430
436
|
|
|
431
|
-
|
|
437
|
+
**几何(px 渲染,0.3.1;em 推导保留为历史)**
|
|
432
438
|
|
|
433
439
|
以下数值满足两条硬不变式,否则节点必然重叠(W0 原型实测:违反时 6 节点样本出现 9 处重叠):
|
|
434
440
|
|
|
@@ -440,13 +446,13 @@ LINE_CAPACITY = floor((NODE_W − 2 × padding) / 摘要字号) (由几何
|
|
|
440
446
|
|
|
441
447
|
| 项 | 值 | 推导 |
|
|
442
448
|
| --- | --- | --- |
|
|
443
|
-
| 单位 | `--charter-graph-unit
|
|
444
|
-
| 节点宽 | `
|
|
445
|
-
| rank 列间距 | `
|
|
446
|
-
| 同 rank 行间距 | `
|
|
447
|
-
| 节点盒 |
|
|
449
|
+
| 单位 | layout units → px:`PX_PER_EM=18.4`、`PX_PER_EM_Y=22`(无 `--charter-graph-unit`) | 0.3.1 决策 |
|
|
450
|
+
| 节点宽 | `184px` = `10 × 18.4px`(min/max 由 W0 定) | 固定 px 几何 |
|
|
451
|
+
| rank 列间距 | `230px` = `12.5 × 18.4px` | 横向不重叠 |
|
|
452
|
+
| 同 rank 行间距 | `121px` = `5.5 × 22px` | 纵向不重叠 |
|
|
453
|
+
| 节点盒 | 高度 `66px` / `99px`(`3/4.5 × 22px`),`min-height: 44px` | D7 触控下限 |
|
|
448
454
|
| 节点圆角/边框 | 7px / 1px `--charter-border-soft` | 与现有 `charter-dependency` 行一致 |
|
|
449
|
-
| 每行容量 | `
|
|
455
|
+
| 每行容量 | 仍由 `NODE_W`、padding 与摘要字号推导为 11 个 CJK 等效字符 | W0-2 校准;px 化后需重新确认 |
|
|
450
456
|
| 节点文本 | HTML 层:`D<n>` 用 `--charter-brand` `0.6875em`/700(复用 `charter-dependency__key` 语言),摘要 `0.78em`,状态 `0.6875em` tertiary | 与现有列表视觉一致 |
|
|
451
457
|
| 边 | 三次贝塞尔水平走向,1.5px,箭头 8px,`vector-effect: non-scaling-stroke` | — |
|
|
452
458
|
| hit 线 | 同路径、透明、命中宽 ≥44px 等效 | D7 |
|
|
@@ -474,11 +480,11 @@ LINE_CAPACITY = floor((NODE_W − 2 × padding) / 摘要字号) (由几何
|
|
|
474
480
|
`weight` 按字符计权(CJK 计 1,拉丁/数字/空格计 0.5),
|
|
475
481
|
`LINE_CAPACITY = floor((NODE_W_EM − 2 × NODE_PADDING_EM) / SUMMARY_EM) = floor((10 − 1.25) / 0.78) = 11`
|
|
476
482
|
——即**每行约 11 个 CJK 字符或 22 个拉丁字符**,两行合计约 22 CJK / 44 拉丁。
|
|
477
|
-
节点高度只由 `labelLines` 决定(`
|
|
483
|
+
节点高度只由 `labelLines` 决定(`66px` / `99px`,即 `3/4.5 × 22px`),**不做运行时文本测量**,因此布局确定性成立、快照测试可行。
|
|
478
484
|
该常量**偏保守**(按参考字号的等宽估算,未按实际字体度量):保守方向只会让节点偏高,不会溢出;
|
|
479
485
|
W0-2 用"纯函数行数 vs 真实渲染行数"逐节点校准,若实测长期偏保守可上调常量(上调后必须重跑零重叠验收)。
|
|
480
|
-
3. 200%
|
|
481
|
-
|
|
486
|
+
3. 实现使用固定 px 节点;用户字号只影响语义列表。200% **页面缩放**会同比放大整个画布,不能证明
|
|
487
|
+
200% **根字号文本缩放**(32px)下固定 184px 盒不裁切;该场景仍待真实浏览器人工门禁。
|
|
482
488
|
4. 完整正文永远可得:accessible name 含**未截断**摘要、inspector 可展开全文、hover/focus 提供等价 tooltip;
|
|
483
489
|
tooltip 不承载唯一信息(§5.7)。
|
|
484
490
|
5. **单一变换**:SVG 与 HTML 标签层放在同一个 `position: relative` wrapper 内,缩放/平移只对 wrapper 施加
|
|
@@ -604,7 +610,7 @@ W0-1/2/3 与人工项的**执行步骤**见 §10.11,参数**定稿规则**见
|
|
|
604
610
|
| 图上编辑破坏 Change Set 原子性 | D4:图只 stage ops;Apply 保持唯一提交点与 previewDigest 校验;W3 等价性测试兜底 |
|
|
605
611
|
| SVG 内 ARIA 跨 AT 不一致 | 只用 `role="button"`/`role="link"` + roving tabindex + `aria-label`;不用 SVG list 语义;W0-3 用真实 AT 验证 |
|
|
606
612
|
| Tab 陷阱 / 键盘用户到不了列表 | D5 复合控件(图 = 1 个 Tab 停靠)+ 前置 skip 链接,卡片外到列表 ≤ 2 次 Tab |
|
|
607
|
-
| 200% 文本缩放导致节点溢出或两层错位 |
|
|
613
|
+
| 200% 文本缩放导致节点溢出或两层错位 | 0.3.1 全 px 几何、纯函数行数、单一 wrapper transform;W0-2 现有字号 10/14/22 + page scale 证据不覆盖根字号 32px,仍待人工 |
|
|
608
614
|
| 大图不可读 | D2 只做 ego 图 |
|
|
609
615
|
| pending 节点被误读为执行序 | D10:不给 rank/`D<n>`,独立泳道 + "未进入执行序"写进 accessible name 与角标 |
|
|
610
616
|
| 引入图形库导致 bundle 与无障碍失控 | D6 自研,零新依赖;W2 记录真实 bundle delta |
|
|
@@ -849,7 +855,7 @@ col(n) = base(n) + candRank(n)
|
|
|
849
855
|
**决定:CSS transform 施加在单一 wrapper 上,不用 viewBox 变换。**
|
|
850
856
|
|
|
851
857
|
- 理由:viewBox 缩放会同时缩放 stroke 与 SVG 内文本,与"浏览器文本缩放改根字号"叠加时互相干扰;
|
|
852
|
-
CSS transform 对 HTML 标签层与 SVG
|
|
858
|
+
CSS transform 对 HTML 标签层与 SVG 一视同仁;0.3.1 沿用 px 几何与"单一 transform"约束。
|
|
853
859
|
- 缩放档位:`0.75 / 1 / 1.25`,工具条按钮 + 键盘 `+` / `-` / `0`。
|
|
854
860
|
- **最小缩放 0.75**:「适应窗口」按内容与容器比值算 scale,但 clamp 到 ≥0.75;clamp 后仍放不下就保持
|
|
855
861
|
0.75 并允许平移,**不无限缩小**(避免文本缩到不可读,也避免与 200% 文本缩放叠加后失效)。
|
|
@@ -972,7 +978,7 @@ col(n) = base(n) + candRank(n)
|
|
|
972
978
|
| 参数 | 兜底值(可先按此实现) | 测量方法 | 决策规则 |
|
|
973
979
|
| --- | --- | --- | --- |
|
|
974
980
|
| D5 可导航元素阈值 | 60 | W0-3 真实键盘走查:从默认焦点遍历全图所需按键数与耗时(**含 history 泳道**) | 40 个元素可在 30 秒内走完且不迷失 → 保持 60;走查者报告疲劳/迷失 → 降到 40。降级路径不变(关 history → 锁深度 → 隐藏图形区) |
|
|
975
|
-
| §3.7 几何常量 | `NODE_W
|
|
981
|
+
| §3.7 几何常量 | `NODE_W=184px` / `RANK_PITCH=230px` / `ROW_PITCH=121px` / 高度 `66|99px`(已满足两条不变式) | W0-2 真实浏览器 | 只允许按 px 调 `NODE_W`(9–12 单位 ×18.4)与摘要字号;调后必须重算 `LINE_CAPACITY` 与两条不变式,并重跑 W0-0 零重叠 |
|
|
976
982
|
| `LINE_CAPACITY` | 11 | W0-2 逐节点比对纯函数行数 vs 真实行数 | 见 §10.6(按语言分别校准) |
|
|
977
983
|
| §3.1 两栏断点 | 容器 `<880px` 堆叠(沿用现有 container query 断点集合) | W0-1 五档宽度自动测量 | 取"最小的全部 PASS 宽度",且必须落在现有断点集合 `{880, 560, 520}` 内,不新增断点 |
|
|
978
984
|
| 图形区高度 | 基础 `22.5em`,附加带按行数增高 | W0-2 在 200% 缩放下确认能同时显示 ≥2 列 + 候选带 + history 带 | 不满足则提到 `26em`;仍不满足则改为容器高度自适应 + 内部滚动 |
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# `dsh-charter` 0.3.0 GUI 全面重构方案(所有栏目统一)
|
|
2
2
|
|
|
3
|
-
> **状态:** `Active` —— 0.3.0
|
|
4
|
-
>
|
|
5
|
-
> **版本范围:** `0.3.0
|
|
3
|
+
> **状态:** `Active` —— 0.3.0/0.3.1 已发布;0.3.2 无障碍与证据收敛进行中。
|
|
4
|
+
> 0.3.0/0.3.1 的发布树和 tag 不可重写;0.3.2 的人工 AT、200% 根字号和截图对账完成前不发布。
|
|
5
|
+
> **版本范围:** `0.3.0` / `0.3.1` 已发布;`0.3.2` 为当前纯客户端无障碍/证据补丁(不改 record/Remote/prompt/模型能力)。
|
|
6
6
|
> 版本决策见 §2.1。
|
|
7
|
-
> **基准:** 2026-11-
|
|
8
|
-
> [0.2.2 发布说明](../release-notes/0.2.2.md))。本文所有度量均在 `main` @ `433bdce` 的工作树上重测。
|
|
7
|
+
> **基准:** 2026-11-16,基于已发布的 `0.3.1` 发布树;0.3.2 证据在 `feat/0.3.2-a11y` 上采集。
|
|
9
8
|
> **权威边界:** 版本范围由[版本路线](version-roadmap.zh.md)决定;产品不变量由
|
|
10
9
|
> [v1 核心设计](charter-design-v1.zh.md)决定;Workspace/Proposal/依赖语义由
|
|
11
10
|
> [charter-workspace-v2.zh.md](charter-workspace-v2.zh.md) §5、§6 决定。本文只细化 GUI 呈现、交互状态与验证证据;
|
|
@@ -17,8 +16,7 @@
|
|
|
17
16
|
> record schema、迁移、Host service、Remote/wire、prompt 投影、模型工具面;DSH 兼容维护仅限版本声明,见 §2。
|
|
18
17
|
> **调研快照:** 2026-11-11;宿主 DSH `0.2.2-rc.1` 的设计 token 事实与社区插件/skill 榜单见附录 A–C。
|
|
19
18
|
> **评审修订:** 2026-11-11 独立评审的 4 个 P1、11 个 P2 与 2 个外围修正已全部并入(见附录 E)。
|
|
20
|
-
> **执行边界:**
|
|
21
|
-
> 不声称 0.3.0 可用或已发布。
|
|
19
|
+
> **执行边界:** `0.3.0`/`0.3.1` 已发布且不可变;`0.3.2` 仅在本地分支开发,人工验收前不合并/不发布。
|
|
22
20
|
|
|
23
21
|
## 0. 摘要
|
|
24
22
|
|
|
@@ -190,8 +188,7 @@ GUI 全面重构**不改变 record schema、迁移、Host service、Remote/wire
|
|
|
190
188
|
- 范围:Workspace、Review Center、Diagnostics & Maintenance **所有栏目**统一迁移到同一设计系统与交互合同;
|
|
191
189
|
设计 token 化、真实路由/滚动/焦点、Change Set 合同、Pane/store 拆分、DOM/浏览器可访问性与截图证据。
|
|
192
190
|
- 不做:0.2.3 单发、0.2.3+0.3.0 两段式(均不再作为实施路径)。
|
|
193
|
-
- 状态:W0
|
|
194
|
-
release/publish、不声称 0.3.0 可用或已发布。
|
|
191
|
+
- 状态:W0–W6 完成,用户已验收;`0.3.0` 已从 `main` 发布,tag/GitHub Release/npm 均已生效。
|
|
195
192
|
|
|
196
193
|
### 2.2 D0b:Change Set 呈现路径
|
|
197
194
|
|
|
@@ -554,9 +551,19 @@ canonical diff、reconcile 状态)。若 D0 选择改为内联卡片,则必
|
|
|
554
551
|
正文 13/20 两行截断 + 完整 title / readiness 脚注 12px tertiary`;左侧 3px 状态强调条
|
|
555
552
|
(done success / in-progress business / blocked warn / conflict error 且边框同色);候选 = 虚线边框;
|
|
556
553
|
暂存 = focus-ring outline;选中 = business 边框。
|
|
557
|
-
-
|
|
558
|
-
|
|
559
|
-
|
|
554
|
+
- **泳道**:执行 / 候选 / 历史三个泳道各有 18px 标题带(名称 + 条目数)与发丝分隔线;标题只作标识,
|
|
555
|
+
不进入 Tab 顺序。泳道空时不渲染标题带。
|
|
556
|
+
- **边状态语言**:实线 1.5px `label-tertiary` = 生效依赖(prerequisite → dependent,带同色 SVG 箭头);
|
|
557
|
+
2px business 虚线 = 已暂存新依赖(随 Change Set 原子提交);点线 = 候选提案依赖(接受后生效);
|
|
558
|
+
点划线 = 替代历史;错误色虚线 = 已暂存删除。画布底部 legend 按实际出现的边状态展示,history 出现时
|
|
559
|
+
增加第 4 项。箭头和线型共同表达方向/状态,不单靠列位置。
|
|
560
|
+
- **交互命中**:SVG 中叠一条沿 `edge.path` 的 44px 宽透明命中路径(不是中点圆钮);HTML button 仅保留
|
|
561
|
+
键盘语义与焦点。节点层在其上方,点击边不会遮挡节点;键盘仍通过图形区单 Tab + roving tab 访问。
|
|
562
|
+
- **画布高度**:不设固定 `max-height`;画布随布局高度增长,窄屏仍由 disclosure 折叠;200% 页面缩放下
|
|
563
|
+
由宿主滚动承载,不在图形区制造第二套固定像素视口。
|
|
564
|
+
- **根字号文本缩放(0.3.2)**:当根字号大于 16px 时,整个画布按 `min(2, rootFontPx / 16)` 等比缩放,
|
|
565
|
+
节点几何、文本、边、泳道和 44px 命中路径一起缩放;viewport 在放大后允许横向滚动,语义列表仍保持
|
|
566
|
+
正常文档流。200% 根字号实测由 0.3.2 证据记录,不再把 page-scale 的证据当作根字号证据。
|
|
560
567
|
- **inspector**:画布下方一行式区域(顶部发丝分隔):选中节点 `Dn + 正文 + 进度 chip` /
|
|
561
568
|
依赖与被依赖 outline chips / 暂存变更 chip / 右侧 [编辑][+ 依赖] ghost sm。不使用重面板。
|
|
562
569
|
- **边界**:语义列表始终是权威操作面;<880px 图形区随 disclosure 默认折叠且不渲染画布;节点为
|
|
@@ -572,7 +579,7 @@ canonical diff、reconcile 状态)。若 D0 选择改为内联卡片,则必
|
|
|
572
579
|
| W3 Review/状态收口(1d) | 次级区域与状态机 | Review 顺序、Diagnostics 预览锚点、notice 去重、skeleton、disabled 视觉权重、a11y 语义 | 六种状态各有唯一呈现;键盘遍历无死角 |
|
|
573
580
|
| W4 证据与发布(1–1.5d) | 可验收 | 截图矩阵(含 320)、滚动/Change Set/a11y 证据、livery 主题抽查、README/截图/verification/CHANGELOG/release notes 同步 | §8 全部证据完成;发布门禁按 `docs/releasing.md` |
|
|
574
581
|
| W5 结构终态(2–3d,0.3.0 范围内) | 宽屏与结构收口 | 完整 Change Set rail/sheet 交互(视觉按 §4.9 冻结稿)、Pane/store 拆分、DOM/浏览器 a11y 门禁工具 ADR | W1–W4 证据通过后实施;与 W1–W4 同一个 0.3.0 分支/版本 |
|
|
575
|
-
| W6 视觉语言落地(2–3d) |
|
|
582
|
+
| W6 视觉语言落地(2–3d) | 冻结稿对照实现(0.3.1 图审计修订 §5.7) | 按 §4.9/§5.7 将 `mockups/mockup.css` 合入 `charter.css` 并调整页面组件:容器规则(纯展示去卡片)、行解剖与基线对齐、下划线 tabs(移除左侧纵向导航)、吸顶条/rail 构成、空态/skeleton、依赖图 px 几何重建与 inspector;rail/inspector 文案全部 `t()` | before/after × 冻结稿并排对照评审通过(明暗 × 320–1440);`--gate=final` PASS;`npm run check` 全绿;用户字号 10/14/22 下图形无文本裁切 |
|
|
576
583
|
|
|
577
584
|
估计:W0–W6 合计 10–15 个工程日(不含人工验收等待;W2 因 Change Set 最小合同、W5 因 rail/sheet、
|
|
578
585
|
W6 因视觉落地增加),单分支、每阶段独立提交、`npm run check` 全绿才进入下一阶段。
|
|
@@ -616,9 +623,8 @@ W3 人工验收。证据:`.tmp/gui-acceptance/2026-11-12/w3-a11y-summary.md`
|
|
|
616
623
|
|
|
617
624
|
**W4 进度(2026-11-12,部分)**:开发 artifact(W5 后曾打包为 `dsh-charter-0.2.2.tgz`,SHA-256 `67c3e005…`)
|
|
618
625
|
已按审查删除,避免与已发布不可变 0.2.2 同名冲突;最终开发候选 `0.3.0`(`package.json`/`src/version.ts` 均为
|
|
619
|
-
0.3.0
|
|
620
|
-
profile
|
|
621
|
-
Desktop 的 Pane 由 Host profile 重组 + client bundle HMR 热替换(2026-11-12 实测无需重启);部署/回滚记录见 `.tmp/gui-acceptance/2026-11-12/acceptance-deploy.md`。
|
|
626
|
+
0.3.0,开发期构建)打包并部署到本地 `web` 与 `desktop` profile(node_modules 版本 0.3.0,client bundle 含 0.3.0):Web 验收服务运行在 `http://127.0.0.1:52080/`,
|
|
627
|
+
Desktop 的 Pane 由 Host profile 重组 + client bundle HMR 热替换(2026-11-12 实测无需重启);最终 0.3.0 已于 2026-11-13 正式发布。
|
|
622
628
|
exact artifact client 已通过 CDP 注入真实 Host 验证 Pane 与 Change Set rail;并完成 320/375/560/850/1440、
|
|
623
629
|
明/暗、forced-colors、reduced-motion、2x page-scale 的截图矩阵。**待完成**:fresh-profile Host+Session、Desktop
|
|
624
630
|
重启后的真实窗口、zh/en 切换、真实 AT 证据、README/verification 发布同步。
|
|
@@ -830,20 +836,32 @@ URL/commit、拒绝无许可证或行为不明的包;impeccable 的 launcher
|
|
|
830
836
|
- [x] 指标门禁全部达标(§0.1),结果记入 verification;统计口径与 `ui-metrics.mjs` 一致(`verify:ui-metrics --gate=final` 全项 PASS)。
|
|
831
837
|
- [x] 目标只渲染一次;全局预算只剩 2 类表达(字段级计数保留);Workspace ≤ 6 个兄弟块(`ui-metrics` legacy objective=0;WorkspacePage 4 个 section + notices)。
|
|
832
838
|
- [x] 所有“打开/跳转”落到锚点并聚焦;无 no-op(`section-routing` 测试 + 浏览器路由证据)。
|
|
833
|
-
- [
|
|
834
|
-
- [ ] W0 滚动所有权运行时探针(Web/Desktop × Composer 开合 ×
|
|
835
|
-
- [
|
|
836
|
-
- [ ] 明暗 × 中英 × 320/375/560/850/1440 ×
|
|
837
|
-
- [
|
|
838
|
-
- [ ] 键盘全路径 + 200% 缩放 + forced-colors + reduced-motion
|
|
839
|
-
- [ ] 与冻结稿(docs/design/mockups/)并排对照评审通过:明暗 × 320/375/560/850/1440 ×
|
|
839
|
+
- [x] clean 状态无常驻操作条;dirty/replay/conflict/unknown 各自唯一呈现(0.3.1 发布构建截图与 DOM 测试;六状态截图仍见 0.3.2 对账)。
|
|
840
|
+
- [ ] W0 滚动所有权运行时探针(Web/Desktop × Composer 开合 × 三种宽度)完成并冻结 → **0.3.2 跟踪项 A6**。
|
|
841
|
+
- [x] Change Set 按 v2 §5.7 最小合同(桌面 complementary region、窄屏 modal bottom sheet)通过键盘/焦点验收(现有 Pane 测试;真实 AT 仍见 A2)。
|
|
842
|
+
- [ ] 明暗 × 中英 × 320/375/560/850/1440 × 六状态截图完成,主截图来自验收构建且使用合成数据 → **0.3.2 跟踪项 A3**。
|
|
843
|
+
- [x] 字体偏好 10/14/22 下不破版;内容文字跟随、UI 文字固定阶(0.3.0/0.3.1 CDP 证据)。
|
|
844
|
+
- [ ] 键盘全路径 + 200% 缩放 + forced-colors + reduced-motion 通过 → **0.3.2 跟踪项 A1/A2/A3**。
|
|
845
|
+
- [ ] 与冻结稿(docs/design/mockups/)并排对照评审通过:明暗 × 320/375/560/850/1440 × 六状态 → **0.3.2 跟踪项 A4**。
|
|
840
846
|
- [x] 依赖图节点 px 几何 + 正文两行截断;用户字号 10/14/22 下无文本裁切、无节点溢出(`DependencyGraph.tsx` PX_PER_EM/PX_PER_EM_Y、184px;CDP scrollWidth/scrollHeight 检查)。
|
|
841
847
|
- [x] rail、inspector、图形工具条无原始枚举/op 类型串,全部走 locales(`changeset.*`/`deps.*`/`progress.*` 审计;`grep` 无原始状态串)。
|
|
842
848
|
- [x] 区域导航为顶部下划线 tabs(nav + aria-current);旧左侧纵向导航已移除(`charter-tabs`、`aria-current`;DOM 无 `.charter-nav`)。
|
|
843
|
-
- [x] 旧版 DSH token 覆盖审计完成(2026-11-
|
|
844
|
-
- [
|
|
845
|
-
- [
|
|
846
|
-
- [x]
|
|
849
|
+
- [x] 旧版 DSH token 覆盖审计完成(2026-11-13,11 版本 / 41 静态 token / 1 动态 fallback);兼容块为空且有门禁。
|
|
850
|
+
- [x] `npm run check`、兼容矩阵、exact artifact/fresh profile 门禁通过,证据按 CI/local/manual 标注(0.3.1 candidate/promotion run)。
|
|
851
|
+
- [x] README/README.zh、CHANGELOG、release notes、docs 索引、SHA256SUMS 同批更新;0.3.1 已 push/tag/publish。
|
|
852
|
+
- [x] 0.3.0/0.3.1 发布分支、tag、npm 和 GitHub Release 已由保护流程完成;历史 tag 不可变。
|
|
853
|
+
|
|
854
|
+
### 0.3.2 对账(2026-11-16)
|
|
855
|
+
|
|
856
|
+
| 附录 D 项 | 状态 | 后续动作 |
|
|
857
|
+
| --- | --- | --- |
|
|
858
|
+
| 指标门禁、路由、单次目标、locale/token 门禁 | 已完成 | 0.3.1 回归证据 |
|
|
859
|
+
| 发布元数据、tag、npm、SHA | 已完成(0.3.0/0.3.1) | 0.3.2 走同一 candidate/promotion 流程 |
|
|
860
|
+
| 六状态截图、forced-colors、reduced-motion、200% | 未完成 | 0.3.2 A1/A3 |
|
|
861
|
+
| 真实 VoiceOver/NVDA、W0-3 SVG 焦点 | 未完成 | 0.3.2 A2 |
|
|
862
|
+
| 冻结稿人工并排、Desktop 原生窗口 | 未完成 | 0.3.2 A4/A5 |
|
|
863
|
+
| W0-1 断点/栏宽、W0-2 行容量实测 | 未完成 | 0.3.2 A6 |
|
|
864
|
+
|
|
847
865
|
|
|
848
866
|
## 附录 E:变更记录
|
|
849
867
|
|
|
@@ -862,7 +880,7 @@ URL/commit、拒绝无许可证或行为不明的包;impeccable 的 launcher
|
|
|
862
880
|
| 2026-11-12 | 审查修复:W0 token 覆盖门禁(9 版本/35 静态 token/1 动态 fallback)落盘;rail 状态文案本地化;导航 a11y 文档统一为 nav+aria-current;补 `--ch-reading-max` 并移除 sticky 60px 魔法数字;dev artifact 删除以保护已发布 0.2.2。 |
|
|
863
881
|
| 2026-11-12 | 本地验收部署:`0.3.0` dev candidate(`1d1963f1…`)安装到本地 web+desktop profile;Web 验收服务 52080;Desktop 当时按重启验证。后续 2026-11-12 确认 Desktop 支持 bundle 热更新,见下方 W6 记录。 |
|
|
864
882
|
| 2026-11-12 | DSH rc.2 适配:声明 `0.2.2-rc.2`(engines/peers/dshReleases/token inventory/测试/文档),十版本矩阵 PASS;rc.2 兼容 artifact `31c4c61d…` 安装 web+desktop;engines 改为有界 0.2 线范围。 |
|
|
865
|
-
| 2026-11-12 | UX 减负:平铺 section、去除冗余小字/角标/免责声明、行内字节与重复进度标签移除、单一进度控件、空态/表单降噪;
|
|
883
|
+
| 2026-11-12 | UX 减负:平铺 section、去除冗余小字/角标/免责声明、行内字节与重复进度标签移除、单一进度控件、空态/表单降噪;498 测试 + final gate PASS;artifact `1d1963f1…` 已部署 web+desktop。 |
|
|
866
884
|
| 2026-11-12 | 本地验收部署:W6 验收构建 `dist/dsh-charter-0.3.0-w6-final.tgz`(`ab74591c…`,client `986f8403…`)已安装到本地 web+desktop profile;恢复 Pane 页头 `v0.3.0` 版本标识;Desktop 实测热更新(bundle 824ms / CSS 402ms / 最终 886ms;后续披露标签修复构建 `ab74591c…` 已热更新,tabs=3、style=1、无异常),无需重启;人工验收待完成。 |
|
|
867
885
|
| 2026-11-12 | W6 视觉语言落地(源码):按 docs/design/mockups 合入文档感 CSS 与组件——顶部下划线 tabs、720 文档列 + 280 Change Set rail、section/行解剖与对齐、36px 虚线空态、40/16/16 skeleton、quietlink/notice、依赖图 px 几何 + 紧凑 inspector;492/492 + final gate PASS;CDP 截图 320/850/1440,root/document 横向溢出 0,图形区 320/850 隐藏、1440 可见,字号 10/14/22 节点文本无裁切;冻结稿并排评审与人工验收仍待完成。 |
|
|
868
886
|
| 2026-11-12 | 视觉语言冻结(文档感):style tile + clean 首屏 / 脏态 rail / 依赖关系图三份高保真稿入库 `docs/design/mockups/`(含 `mockup.css` 参考实现与 `tokens.css` 宿主 token 快照);新增 §4.9 视觉冻结与 §5.7 依赖图规格;更新 §4.5/§4.7/§5.1/§5.2/§5.6/§8.3、D1/D5 决策与 W6 实施阶段;区域导航定为顶部下划线 tabs(去左侧纵向导航)。 |
|
|
@@ -29,25 +29,26 @@ This document answers three questions:
|
|
|
29
29
|
| `0.2.1-rc.4` | Supported | same |
|
|
30
30
|
| `0.2.1-rc.5` | Supported | same |
|
|
31
31
|
| `0.2.2-rc.1` | Supported (previous baseline) | same + real Web profile install/startup, boot graph, bundle HTTP |
|
|
32
|
-
| `0.2.2-rc.2` | Supported
|
|
32
|
+
| `0.2.2-rc.2` | Supported | typecheck, build, Vitest suite, remote/client smoke |
|
|
33
|
+
| `0.2.2-rc.3` | Supported (primary development baseline) | typecheck, build, Vitest suite, remote/client smoke, eleven-version source matrix |
|
|
33
34
|
| `0.1.5-rc.1` / `0.1.5-rc.2` / `0.1.5-rc.3` | Not supported | contract differences too large; see section 4 |
|
|
34
35
|
| `0.1.6-alpha.x` | Not supported | same generation as 0.1.5; not individually verified |
|
|
35
36
|
| `0.2.2-alpha.2` / `0.2.2-alpha.3` | Not supported | 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. |
|
|
36
37
|
| `0.3.x` | Not declared | major upgrade requires re-verification |
|
|
37
38
|
|
|
38
|
-
The DSH peer ranges and `engines.dsh` in `package.json`
|
|
39
|
+
The DSH peer ranges and `engines.dsh` in `package.json` cover exactly the eleven verified versions:
|
|
39
40
|
|
|
40
41
|
```text
|
|
41
42
|
engines.dsh:
|
|
42
43
|
0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0
|
|
43
44
|
|
|
44
45
|
verified peer ranges / dsh.compatibility.dshReleases:
|
|
45
|
-
0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 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 || 0.2.2-rc.1 || 0.2.2-rc.2
|
|
46
|
+
0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 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 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3
|
|
46
47
|
```
|
|
47
48
|
|
|
48
49
|
Token compatibility (0.3.0): the Pane consumes 41 static host design tokens plus one runtime
|
|
49
50
|
`--dsh-content-font-size` variable. The audit in `scripts/verify/token-coverage.mjs` checks that every static
|
|
50
|
-
token is defined by `@deepseek-ai/dsh-client-ui-theme` for every version above (2026-11-
|
|
51
|
+
token is defined by `@deepseek-ai/dsh-client-ui-theme` for every version above (2026-11-13: all present); the
|
|
51
52
|
runtime variable has a CSS fallback. No per-version fallback block is needed today; adding a host token requires
|
|
52
53
|
updating `scripts/verify/token-coverage.inventory.json` and passing the gate in `npm run check`.
|
|
53
54
|
|
|
@@ -29,25 +29,26 @@
|
|
|
29
29
|
| `0.2.1-rc.4` | 支持 | 同上 |
|
|
30
30
|
| `0.2.1-rc.5` | 支持 | 同上 |
|
|
31
31
|
| `0.2.2-rc.1` | 支持(上一基线) | 同上 + typecheck/build/Vitest/remote/client smoke + 真实 Web profile 安装/启动、boot graph、bundle HTTP |
|
|
32
|
-
| `0.2.2-rc.2` |
|
|
32
|
+
| `0.2.2-rc.2` | 支持 | typecheck/build/Vitest/remote/client smoke |
|
|
33
|
+
| `0.2.2-rc.3` | 支持(主开发基线) | typecheck/build/Vitest/remote/client smoke + 十一版本源码矩阵 |
|
|
33
34
|
| `0.1.5-rc.1` / `0.1.5-rc.2` / `0.1.5-rc.3` | 不支持 | 契约差异过大,见第 4 节 |
|
|
34
35
|
| `0.1.6-alpha.x` | 不支持 | 与 0.1.5 同代,未逐一验证 |
|
|
35
36
|
| `0.2.2-alpha.2` / `0.2.2-alpha.3` | 不支持 | strict-peer 安装失败:这些 alpha 版本要求 Cordis 4.0.6 alpha 图;0.2.2-rc.1 线固定 Cordis 4.1.0,不进入测试 |
|
|
36
37
|
| `0.3.x` | 未声明 | 大版本升级需要重新核验 |
|
|
37
38
|
|
|
38
|
-
`package.json` 的 DSH peer 范围与 `engines.dsh`
|
|
39
|
+
`package.json` 的 DSH peer 范围与 `engines.dsh` 覆盖已验证的十一个精确版本:
|
|
39
40
|
|
|
40
41
|
```text
|
|
41
42
|
engines.dsh:
|
|
42
43
|
0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0
|
|
43
44
|
|
|
44
45
|
已验证的 peer ranges / dsh.compatibility.dshReleases:
|
|
45
|
-
0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 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 || 0.2.2-rc.1 || 0.2.2-rc.2
|
|
46
|
+
0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 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 || 0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3
|
|
46
47
|
```
|
|
47
48
|
|
|
48
49
|
Token 兼容(0.3.0):Pane 使用 41 个静态宿主设计 token 和 1 个运行时变量
|
|
49
50
|
`--dsh-content-font-size`。`scripts/verify/token-coverage.mjs` 逐版本检查每个静态 token 是否由
|
|
50
|
-
`@deepseek-ai/dsh-client-ui-theme` 定义(2026-11-
|
|
51
|
+
`@deepseek-ai/dsh-client-ui-theme` 定义(2026-11-13 审计:全部存在);运行时变量带 CSS fallback。当前不需要
|
|
51
52
|
按版本兼容块;新增宿主 token 必须更新 `scripts/verify/token-coverage.inventory.json` 并通过
|
|
52
53
|
`npm run check` 中的 gate。
|
|
53
54
|
|
|
@@ -71,6 +71,8 @@
|
|
|
71
71
|
</div>
|
|
72
72
|
|
|
73
73
|
<div class="canvas" role="img" aria-label="交付物依赖图:D1 已完成,D2 进行中依赖 D1,D3 等待 D2,候选 D4 提议依赖 D2,另有一条已暂存的 D1 到 D3 依赖">
|
|
74
|
+
<span class="lane" style="top:0">执行 <b>3</b></span>
|
|
75
|
+
<span class="lane" style="top:208px">候选 <b>1</b></span>
|
|
74
76
|
<svg aria-hidden="true">
|
|
75
77
|
<defs>
|
|
76
78
|
<marker id="arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
|
@@ -136,7 +138,7 @@
|
|
|
136
138
|
</div>
|
|
137
139
|
</div>
|
|
138
140
|
|
|
139
|
-
<p class="graphnote">图形区仅作增强:语义列表始终是权威操作面,窄屏自动折叠为 disclosure。实线 = 生效依赖;蓝色虚线 = 已暂存的新依赖(随 Change Set 原子提交);点线 =
|
|
141
|
+
<p class="graphnote">图形区仅作增强:语义列表始终是权威操作面,窄屏自动折叠为 disclosure。实线 = 生效依赖;蓝色虚线 = 已暂存的新依赖(随 Change Set 原子提交);点线 = 候选提案依赖(接受后生效);点划线 = 替代历史。边带方向箭头,泳道标题只作标识,不改语义列表的权威地位。节点为固定 px 几何 + 两行截断 + 完整 title,修复旧版 em 布局在用户字号变化时的文本裁切。</p>
|
|
140
142
|
</div>
|
|
141
143
|
</details>
|
|
142
144
|
</section>
|
|
@@ -374,6 +374,10 @@ body {
|
|
|
374
374
|
.edge { stroke: var(--dsw-alias-label-tertiary); stroke-width: 1.5; fill: none; }
|
|
375
375
|
.edge--staged { stroke: var(--dsw-alias-state-business-primary); stroke-width: 2; stroke-dasharray: 5 4; }
|
|
376
376
|
.edge--proposed { stroke: var(--dsw-alias-label-tertiary); stroke-dasharray: 2 4; }
|
|
377
|
+
.edge--history { stroke: var(--dsw-alias-label-tertiary); stroke-dasharray: 8 3 2 3; }
|
|
378
|
+
.lane { position:absolute; z-index:3; left:0; right:0; display:flex; align-items:center; gap:6px; height:18px; padding:0 8px; border-bottom:var(--hairline) solid var(--dsw-alias-border-l2); color:var(--dsw-alias-label-tertiary); background:var(--dsw-alias-bg-base); font-size:var(--dsw-font-xxxs-11-font-size); font-weight:600; }
|
|
379
|
+
.lane b { color:var(--dsw-alias-label-secondary); font-weight:500; }
|
|
380
|
+
.swatch--history { border-top:1.5px dashed var(--dsw-alias-label-tertiary); }
|
|
377
381
|
|
|
378
382
|
/* 节点:固定 px 几何 + 两行截断(修复旧 em 布局的文本裁切) */
|
|
379
383
|
.node {
|
|
@@ -5,9 +5,8 @@ English | [中文](version-roadmap.zh.md)
|
|
|
5
5
|
> This English file is a non-normative summary. The Chinese roadmap is normative when details differ.
|
|
6
6
|
>
|
|
7
7
|
> **Status:** Active — version and scope authority.
|
|
8
|
-
> **Version scope:** 0.1 history, the published 0.2 line, and the 0.3 GUI
|
|
9
|
-
> **Baseline:** 2026-11-
|
|
10
|
-
> unreleased; plain increments, no `rc` suffix).
|
|
8
|
+
> **Version scope:** 0.1 history, the published 0.2 line, and the 0.3 GUI line and the published 0.3.1 convergence patch.
|
|
9
|
+
> **Baseline:** 2026-11-13; `0.2.2` and `0.3.0` are published; `0.3.1` is the published GUI convergence patch; `0.3.2` is the current accessibility/evidence candidate; `0.4.0` is the next feature line.
|
|
11
10
|
> **Authority:** Chinese [version-roadmap.zh.md](version-roadmap.zh.md) is normative for scope.
|
|
12
11
|
> **Supersedes / Superseded by:** none / none
|
|
13
12
|
|
|
@@ -26,7 +25,9 @@ The release path is:
|
|
|
26
25
|
→ 0.2.0 development → 0.2.0
|
|
27
26
|
→ 0.2.1 post-0.2.0 UI/diagnostics/recovery-cache patch
|
|
28
27
|
→ 0.2.2 dependency graph + §6.5 confirmation (client-only patch, published)
|
|
29
|
-
→ 0.3.0 all-section GUI refactor (client-only,
|
|
28
|
+
→ 0.3.0 all-section GUI refactor (client-only, published)
|
|
29
|
+
→ 0.3.1 dependency-graph/a11y convergence, envelope warning, local traffic forensics (client-only, published)
|
|
30
|
+
→ 0.4.0 existing-deliverable relation proposal + record schema v3 (scope decision pending)
|
|
30
31
|
```
|
|
31
32
|
|
|
32
33
|
**`0.1.0-rc.6`** is published and formally accepted; its GitHub Release uses recovery tag `v0.1.0-rc.6-republished`. **`0.1.0-rc.5`** is the previous accepted release and its canonical GitHub tag/release is pending restoration. `0.1.1-rc.1` remains a post-stable patch spelling, not another rc.6.
|
|
@@ -37,7 +38,7 @@ rc.5 fixed the correctness defect inside the promised 0.1 workflow: previously e
|
|
|
37
38
|
|
|
38
39
|
`0.2.0` is not a bucket for isolated improvements. It is a complete Charter workflow upgrade spanning existing-feature improvements, new capabilities, information architecture and interaction redesign, data-model evolution, query APIs, and client architecture.
|
|
39
40
|
|
|
40
|
-
`0.3.0` is the
|
|
41
|
+
`0.3.0` is the published GUI baseline: it unifies the GUI of Workspace, Review Center, and Diagnostics & Maintenance under one design system and interaction contract, and completes real routing, the Change Set contract, and the Pane/store split. The scope and acceptance plan live in [charter-gui-v1.zh.md](charter-gui-v1.zh.md) (`Active`). It was released on 2026-11-13. `0.3.1` was released on 2026-11-13; the next candidate line is `0.4.0`.
|
|
41
42
|
|
|
42
43
|
## 2. Current Release State
|
|
43
44
|
|
|
@@ -45,7 +46,7 @@ rc.5 fixed the correctness defect inside the promised 0.1 workflow: previously e
|
|
|
45
46
|
- `0.2.1` is published on npm (`latest`/`next`) and as GitHub Release `v0.2.1`; its tag, assets, and npm bytes are immutable.
|
|
46
47
|
- `0.2.0` is an earlier public release.
|
|
47
48
|
- `0.2.1` is a compatible post-`0.2.0` patch: editable message proposals, clearer diagnostics/typography, and an owner-only bounded recovery cache. It does not change `recordSchemaVersion` 2 or the model tool surface; the `dsh_charter_archives_v1` domain is a bounded derivative cache, not a second authority.
|
|
48
|
-
- `0.3.0`
|
|
49
|
+
- `0.3.0` was published on 2026-11-13. `0.3.1` was published on 2026-11-13 as the GUI convergence patch; `0.4.0` is the next candidate line.
|
|
49
50
|
- `0.1.0-rc.6` remains an earlier public release. Historical rc tags and releases are immutable.
|
|
50
51
|
|
|
51
52
|
## 3. Why rc.5
|