dsh-charter 0.3.2 → 0.3.3
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 +19 -1
- package/CHANGELOG.zh.md +18 -1
- package/README.md +46 -26
- package/README.zh.md +37 -21
- package/docs/README.md +2 -0
- package/docs/README.zh.md +2 -0
- package/docs/assets/charter-graph-0.3.3.png +0 -0
- package/docs/assets/charter-graph-0.3.3.zh.png +0 -0
- package/docs/assets/charter-pane-0.3.3.png +0 -0
- package/docs/assets/charter-pane-0.3.3.zh.png +0 -0
- package/docs/design/charter-draft-calibration-v1.zh.md +617 -0
- package/docs/design/charter-draft-extraction-v1.zh.md +346 -0
- package/docs/design/charter-gui-v1.zh.md +2 -2
- package/docs/design/compatibility.md +11 -5
- package/docs/design/compatibility.zh.md +10 -5
- package/docs/design/version-roadmap.md +9 -11
- package/docs/design/version-roadmap.zh.md +6 -4
- package/docs/release-notes/0.3.2.md +6 -5
- package/docs/release-notes/0.3.3.md +32 -0
- package/docs/release-notes/README.md +1 -1
- package/docs/releasing.md +6 -5
- package/docs/releasing.zh.md +6 -5
- package/docs/user-guide.md +16 -2
- package/docs/user-guide.zh.md +15 -2
- package/docs/verification.md +31 -23
- package/docs/verification.zh.md +32 -23
- package/lib/client/bootstrap-plan.d.ts +9 -1
- package/lib/client/draft-store.d.ts +12 -1
- package/lib/client/locales.d.ts +11 -0
- package/lib/client/pane-scope.d.ts +2 -0
- package/lib/client/store.d.ts +12 -1
- package/lib/client.js +328 -41
- package/lib/core/bootstrap.d.ts +14 -0
- package/lib/core/schemas.d.ts +3 -0
- package/lib/core/structured-bootstrap.d.ts +49 -0
- package/lib/core.js +2 -2
- package/lib/{fork-KSL6sovw.js → fork-h8Gx4AJd.js} +178 -166
- package/lib/host/draft-translation.d.ts +47 -0
- package/lib/host/service.d.ts +19 -1
- package/lib/host/types.d.ts +43 -0
- package/lib/index.js +3 -3
- package/lib/remote/service.d.ts +6 -1
- package/lib/remote/wire.d.ts +91 -2
- package/lib/remote.js +116 -4
- package/lib/{service-BSrE7Kbu.js → service-CPha5Ipx.js} +734 -42
- package/lib/version.d.ts +1 -1
- package/package.json +19 -18
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,25 @@ 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.3.
|
|
8
|
+
## 0.3.3 — 2026-11-24 (released)
|
|
9
|
+
|
|
10
|
+
Structured draft extraction and automatic zh/en language following. No record-schema, prompt-projection, or model-tool change.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `charter/bootstrapDraft`: structured candidates with stable refs, language tags, duplicate folding, and oversized/truncated markers.
|
|
15
|
+
- Sentence-boundary-only semantic splitting; no silent hard-split fragments.
|
|
16
|
+
- Exact and conservative prefix duplicate folding with representative, fold count, and member refs.
|
|
17
|
+
- Automatic zh/en normalization: when the draft language differs from the DSH UI locale, the Host performs one bounded strict-JSON translation call through the session model; missing/invalid models fall back to the source draft with a visible notice.
|
|
18
|
+
- Compatibility: DSH `0.2.2-rc.4` and `0.2.2-rc.5` added to `engines`/peer/`dshReleases`; thirteen-version local matrix covers the latest `0.2.2-rc.5` baseline.
|
|
19
|
+
- Additive `objective.initialize.clientRef` and structured `applyBootstrap` validation; legacy `charter/bootstrap` and `applyBootstrap` behavior stays byte-compatible.
|
|
20
|
+
|
|
21
|
+
### Verification
|
|
22
|
+
|
|
23
|
+
- Source gates and new structured/translation tests are expected on the final tree; run the full `npm run check` before release.
|
|
24
|
+
- This candidate is not published; `0.3.2` remains the latest published release.
|
|
25
|
+
|
|
26
|
+
## 0.3.2 — 2026-11-16
|
|
9
27
|
|
|
10
28
|
Accessibility/evidence convergence patch for the 0.3.x line. No record-schema, Remote-wire, or prompt change.
|
|
11
29
|
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -4,7 +4,24 @@
|
|
|
4
4
|
|
|
5
5
|
记录 `dsh-charter` 的重要变更。DSH 插件 ABI 仍在演进,项目保持 pre-1.0 版本线。
|
|
6
6
|
|
|
7
|
-
## 0.3.
|
|
7
|
+
## 0.3.3 — 2026-11-24(已发布)
|
|
8
|
+
|
|
9
|
+
结构化契约草案抽取与自动中英文语言跟随;不改变 record schema、prompt 投影或模型工具面。
|
|
10
|
+
|
|
11
|
+
### 新增
|
|
12
|
+
|
|
13
|
+
- `charter/bootstrapDraft`:带稳定 ref、语言标注、重复折叠和 oversized/截断标记的结构化候选。
|
|
14
|
+
- 只按句边界做语义保全切分,不再静默硬切碎片。
|
|
15
|
+
- 全等/保守前缀重复折叠为代表条目,并保留折叠计数与成员 ref。
|
|
16
|
+
- 自动中英文归一:草案语言与 DSH 界面语言不一致时,Host 通过当前会话模型做一次有界、严格 JSON 的翻译调用;模型缺失或响应不合格时保留原文草案并显示降级提示。
|
|
17
|
+
- `objective.initialize.clientRef` additive 字段与结构化 `applyBootstrap` 校验;legacy `charter/bootstrap` / `applyBootstrap` 行为保持字节兼容。
|
|
18
|
+
|
|
19
|
+
### 验证
|
|
20
|
+
|
|
21
|
+
- 最终树需通过 `npm run check`、结构化/翻译测试、兼容矩阵和 UI 指标门禁。
|
|
22
|
+
- 本候选未发布;`0.3.2` 仍是最新已发布版本。
|
|
23
|
+
|
|
24
|
+
## 0.3.2 — 2026-11-16
|
|
8
25
|
|
|
9
26
|
0.3.x 的无障碍/证据收敛补丁。不改变 record schema、Remote wire 或 prompt。
|
|
10
27
|
|
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,12 +14,12 @@ 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
19
|
> The Pane in a local Web profile: underline area tabs, a 720px document column, aligned document
|
|
20
20
|
> rows, and a compact execution-path disclosure. Screenshot uses synthetic demo values only.
|
|
21
21
|
|
|
22
|
-

|
|
23
23
|
|
|
24
24
|
> The execution-path dependency graph: lane headings, the three-column execution grid, and the state/type
|
|
25
25
|
> legend. Edge arrows and hit targets appear when dependencies exist. The semantic list remains authoritative.
|
|
@@ -45,16 +45,12 @@ deliverables, evidence, and dependency relationships survive compaction and rema
|
|
|
45
45
|
|
|
46
46
|
## Status
|
|
47
47
|
|
|
48
|
-
- **Current
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
dependency-conflict confirmation.
|
|
55
|
-
- **Earlier release:** `0.2.1`; **primary DSH baseline:** `0.2.2-rc.3`; eleven declared DSH versions are
|
|
56
|
-
source-matrix verified.
|
|
57
|
-
- 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`
|
|
48
|
+
- **Current release:** `0.3.3` — structured draft extraction with automatic zh/en language normalization,
|
|
49
|
+
duplicate folding, stable candidate refs, deferred non-blocking translation, and adaptive batch handling for
|
|
50
|
+
custom model latency. Published to npm `latest`/`next` and GitHub Release `v0.3.3`.
|
|
51
|
+
- **Previous release:** `0.3.2` — accessibility/evidence convergence; `0.3.1` and `0.3.0` are earlier baselines.
|
|
52
|
+
**Primary DSH baseline:** `0.2.2-rc.5`; thirteen declared DSH versions are source-matrix verified.
|
|
53
|
+
- Versioning from `0.2.0` onward uses plain increments (`0.2.0`, `0.2.1`, `0.2.2`, `0.3.0`, `0.3.1`, `0.3.2`, `0.3.3`), never an `rc`
|
|
58
54
|
suffix.
|
|
59
55
|
|
|
60
56
|
## Core capabilities
|
|
@@ -89,14 +85,29 @@ deliverables, evidence, and dependency relationships survive compaction and rema
|
|
|
89
85
|
(up to 200%) so node text, edges, lanes, and hit targets stay aligned; the viewport becomes scrollable rather
|
|
90
86
|
than clipping the graph.
|
|
91
87
|
- **Final-build evidence:** empty, staged, applied, and conflict-confirmation states, forced-colors and
|
|
92
|
-
reduced-motion captures, plus breakpoint/scaling measurements
|
|
88
|
+
reduced-motion captures, plus breakpoint/scaling measurements were recorded for the 0.3.2 release.
|
|
93
89
|
- **Known manual gates:** real VoiceOver/NVDA and native Desktop-window evidence are not claimed by automated
|
|
94
90
|
AX-tree or renderer screenshots.
|
|
95
91
|
|
|
92
|
+
### Structured draft extraction and language following
|
|
93
|
+
|
|
94
|
+
- **Semantic extraction:** candidates are split only at sentence boundaries; an oversized sentence is kept
|
|
95
|
+
whole and marked instead of being cut into fragments, and explicit truncation records the original byte count.
|
|
96
|
+
- **Duplicate folding:** exact and conservative prefix duplicates are folded into one representative with a
|
|
97
|
+
fold count and member refs, so repeated constraints do not flood the review.
|
|
98
|
+
- **Language following:** when the reviewed draft language differs from the DSH UI language (`zh`/`en`), the
|
|
99
|
+
Host renders the source-language draft first, then performs bounded, strict-JSON translation calls through the
|
|
100
|
+
configured session model in the background and replaces the draft only while it is still pristine. If no model is
|
|
101
|
+
available or the response is invalid, the source-language draft remains usable with a visible fallback notice.
|
|
102
|
+
The automatic call sends the compaction draft/current-charter text to that configured model; the plugin stores no
|
|
103
|
+
API key and adds no telemetry or upload path. Set `languageFollow: false` in the profile config to disable the
|
|
104
|
+
automatic model call; deterministic extraction/folding still runs and the source-language draft remains usable.
|
|
105
|
+
`languageFollowTimeoutMs` bounds each background batch (default 60s); failed batches split/retry and successful candidates are kept. Custom-API users can set `languageFollowProvider`/`languageFollowModel` to pin normalization to a dedicated model.
|
|
106
|
+
|
|
96
107
|
### Compatibility and runtime
|
|
97
108
|
|
|
98
|
-
- DSH `0.2.2-rc.
|
|
99
|
-
remains the
|
|
109
|
+
- DSH `0.2.2-rc.5` declarations plus a bounded `engines.dsh` 0.2-line range; exact `dshReleases`/peer list
|
|
110
|
+
remains the thirteen-version matrix-verified support set.
|
|
100
111
|
- `charter_read standing` now exposes stable deliverable ids so the model can propose real `requires`
|
|
101
112
|
references; `D<n>` labels are documented as display-only, and invalid references fail explicitly.
|
|
102
113
|
- Desktop and Web plugin bundles hot-reload through the Host profile recomposition/client HMR path; CSS is
|
|
@@ -202,18 +213,17 @@ storage.
|
|
|
202
213
|
|
|
203
214
|
## Install
|
|
204
215
|
|
|
205
|
-
The
|
|
216
|
+
The current release is `0.3.3`:
|
|
206
217
|
|
|
207
218
|
```bash
|
|
208
|
-
dsh plugin --profile web add dsh-charter@0.3.
|
|
219
|
+
dsh plugin --profile web add dsh-charter@0.3.3
|
|
209
220
|
```
|
|
210
221
|
|
|
211
|
-
|
|
222
|
+
For air-gapped machines or exact-artifact verification:
|
|
212
223
|
|
|
213
224
|
```bash
|
|
214
|
-
npm pack
|
|
215
|
-
dsh plugin --profile web add ./dsh-charter-0.3.
|
|
216
|
-
dsh plugin --profile web add ./dsh-charter-0.3.1.tgz
|
|
225
|
+
npm pack dsh-charter@0.3.3
|
|
226
|
+
dsh plugin --profile web add ./dsh-charter-0.3.3.tgz
|
|
217
227
|
```
|
|
218
228
|
|
|
219
229
|
For Desktop, use **Desktop → Plugins → Install/Update**, or import the same local tarball if your Desktop build
|
|
@@ -222,8 +232,9 @@ that profile.
|
|
|
222
232
|
|
|
223
233
|
### Requirements
|
|
224
234
|
|
|
225
|
-
- DSH: only the versions listed in the [compatibility matrix](docs/design/compatibility.md) are supported
|
|
226
|
-
`0.2.1+` is required for per-Peer
|
|
235
|
+
- DSH: only the versions listed in the [compatibility matrix](docs/design/compatibility.md) are supported;
|
|
236
|
+
the current primary baseline is `0.2.2-rc.5` (thirteen-version local matrix). `0.2.1+` is required for per-Peer
|
|
237
|
+
Remote resource authorization.
|
|
227
238
|
- Node.js **`^22.19.0 || >=24.0.0`**.
|
|
228
239
|
- A Web or Desktop profile.
|
|
229
240
|
|
|
@@ -274,6 +285,11 @@ Defaults live in `cordis.patch.yml`. Override them in the profile patch:
|
|
|
274
285
|
maxObjectiveBytes: 4096
|
|
275
286
|
maxItemBytes: 1024
|
|
276
287
|
contextOrder: 130
|
|
288
|
+
languageFollow: true
|
|
289
|
+
languageFollowTimeoutMs: 60000
|
|
290
|
+
# Optional dedicated translation route; omit to use the session model.
|
|
291
|
+
languageFollowProvider: your-provider
|
|
292
|
+
languageFollowModel: your-fast-model
|
|
277
293
|
```
|
|
278
294
|
|
|
279
295
|
| Field | Default | Meaning |
|
|
@@ -291,6 +307,10 @@ Defaults live in `cordis.patch.yml`. Override them in the profile patch:
|
|
|
291
307
|
| `maintenanceLimit` | 16 | recent initialize/restore receipts |
|
|
292
308
|
| `maxRecoveryBytes` | 4194304 | full recovery-archive budget |
|
|
293
309
|
| `contextOrder` | 130 | runtime-context order |
|
|
310
|
+
| `languageFollow` | true | normalize a review draft to the active `zh`/`en` DSH language through the session model; set `false` to disable the automatic call |
|
|
311
|
+
| `languageFollowTimeoutMs` | 60000 | upper bound for one background translation call; per-batch failures split and keep source text |
|
|
312
|
+
| `languageFollowProvider` | unset | optional provider route for language normalization; requires `languageFollowModel` |
|
|
313
|
+
| `languageFollowModel` | unset | optional model for language normalization; omit both to use the current session model |
|
|
294
314
|
|
|
295
315
|
The only model-visible capacity is `maxPromptBytes`; `maxItems` and `maxPendingItems` bound storage.
|
|
296
316
|
|
|
@@ -301,7 +321,7 @@ The only model-visible capacity is `maxPromptBytes`; `maxItems` and `maxPendingI
|
|
|
301
321
|
| `0.1.7-rc.2` | Supported (minimum) |
|
|
302
322
|
| `0.2.0-rc.1` / `0.2.0-rc.2` | Supported |
|
|
303
323
|
| `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 |
|
|
304
|
-
| `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` | Supported (primary baseline: `0.2.2-rc.
|
|
324
|
+
| `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` / `0.2.2-rc.4` / `0.2.2-rc.5` | Supported (primary baseline: `0.2.2-rc.5`) |
|
|
305
325
|
| `0.3.x` | Not declared until verified |
|
|
306
326
|
|
|
307
327
|
`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
|
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,12 +13,12 @@
|
|
|
13
13
|
`dsh-charter` 是 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的持久化、用户所有的
|
|
14
14
|
会话契约插件。目标、硬约束、交付物、证据和依赖关系在上下文压缩后仍然保留,并且始终可查看、可编辑。
|
|
15
15
|
|
|
16
|
-

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

|
|
22
22
|
|
|
23
23
|
> 执行路径依赖图:泳道标题、三列执行网格和状态/类型 legend;存在依赖时显示方向箭头与沿边命中区。语义列表始终是权威操作面。
|
|
24
24
|
|
|
@@ -43,12 +43,10 @@
|
|
|
43
43
|
|
|
44
44
|
## 状态
|
|
45
45
|
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
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` 后缀。
|
|
46
|
+
- **当前发布:**`0.3.3` — 结构化契约草案抽取、自动中英文语言归一、相似重复折叠、稳定候选 ref、非阻塞后台翻译,以及针对自定义模型延迟的自适应分批。已发布到 npm `latest`/`next` 和 GitHub Release `v0.3.3`。
|
|
47
|
+
- **上一版本:**`0.3.2` — 无障碍/证据收敛;`0.3.1`、`0.3.0` 是更早基线。
|
|
48
|
+
**主要 DSH 基线:**`0.2.2-rc.5`;十三个声明版本通过源码矩阵验证。
|
|
49
|
+
- 从 `0.2.0` 起版本号使用普通递增(`0.2.0`、`0.2.1`、`0.2.2`、`0.3.0`、`0.3.1`、`0.3.2`、`0.3.3`),不再使用 `rc` 后缀。
|
|
52
50
|
|
|
53
51
|
## 核心能力
|
|
54
52
|
|
|
@@ -80,13 +78,23 @@
|
|
|
80
78
|
- **根字号图形缩放:** 根字号大于 16px 时,画布作为整体等比缩放(最多 200%),节点文本、边、泳道和命中区
|
|
81
79
|
保持对齐;viewport 改为可滚动,而不是裁切图形。
|
|
82
80
|
- **最终构建证据:** 空/暂存/已应用/冲突确认状态、forced-colors 与 reduced-motion 截图,以及断点/缩放
|
|
83
|
-
|
|
81
|
+
测量记录于 0.3.2 发布。
|
|
84
82
|
- **仍待人工门禁:** 真实 VoiceOver/NVDA 与 Desktop 原生窗口证据;自动化 AX-tree 或 renderer 截图不计为
|
|
85
83
|
已通过。
|
|
86
84
|
|
|
85
|
+
### 结构化草案抽取与语言跟随
|
|
86
|
+
|
|
87
|
+
- **语义保全:**只按句边界切分;超长句整段保留并标记,不再硬切成碎片;显式截断记录原始字节数。
|
|
88
|
+
- **相似重复折叠:**全等/保守前缀重复折叠为代表条目,并保留折叠计数与成员 ref。
|
|
89
|
+
- **语言跟随:**草案语言与 DSH 界面语言(`zh`/`en`)不一致时,Host 不等待模型:先立即返回源语言草案,再在后台通过当前会话模型做有界、严格 JSON 的分批翻译,并在草案仍未被操作时替换。模型不可用或响应不合格时
|
|
90
|
+
保留原文草案并显示降级提示,不阻断审阅。自动调用会把压缩草案/当前契约
|
|
91
|
+
文本发送到该会话配置的模型;插件不保存 API key,也不新增遥测或上传。可在 profile 设置
|
|
92
|
+
`languageFollow: false` 关闭自动调用;结构化抽取/折叠仍生效,源语言草案仍可用。
|
|
93
|
+
`languageFollowTimeoutMs` 限制每批后台翻译等待(默认 60 秒);失败批会拆分重试并保留成功候选。自定义 API 用户可设置 `languageFollowProvider`/`languageFollowModel` 固定专用翻译模型。
|
|
94
|
+
|
|
87
95
|
### 兼容性与运行时
|
|
88
96
|
|
|
89
|
-
- DSH `0.2.2-rc.
|
|
97
|
+
- DSH `0.2.2-rc.5` 声明与有界 `engines.dsh` 0.2 线范围;精确 `dshReleases`/peer 列表仍是十三版本矩阵已验证支持集。
|
|
90
98
|
- `charter_read standing` 现在返回交付物稳定 id,模型可以提出真实 `requires` 引用;`D<n>` 明确只是展示标签,
|
|
91
99
|
非法引用显式失败。
|
|
92
100
|
- Desktop/Web 插件通过 Host profile 重组 + client HMR 热更新;CSS 按归属 style tag upsert,重载后替换旧样式,
|
|
@@ -178,18 +186,17 @@ compaction summary 返回只读草案,不写 storage。
|
|
|
178
186
|
|
|
179
187
|
## 安装
|
|
180
188
|
|
|
181
|
-
|
|
189
|
+
当前发布版本是 `0.3.3`:
|
|
182
190
|
|
|
183
191
|
```bash
|
|
184
|
-
dsh plugin --profile web add dsh-charter@0.3.
|
|
192
|
+
dsh plugin --profile web add dsh-charter@0.3.3
|
|
185
193
|
```
|
|
186
194
|
|
|
187
|
-
|
|
195
|
+
离线机器或需要精确验证 artifact 时:
|
|
188
196
|
|
|
189
197
|
```bash
|
|
190
|
-
npm pack
|
|
191
|
-
dsh plugin --profile web add ./dsh-charter-0.3.
|
|
192
|
-
dsh plugin --profile web add ./dsh-charter-0.3.1.tgz
|
|
198
|
+
npm pack dsh-charter@0.3.3
|
|
199
|
+
dsh plugin --profile web add ./dsh-charter-0.3.3.tgz
|
|
193
200
|
```
|
|
194
201
|
|
|
195
202
|
Desktop 请使用 **Desktop → Plugins → Install/Update**;若 Desktop 构建支持本地插件导入,也可导入同一
|
|
@@ -197,8 +204,8 @@ tarball。`dsh plugin --profile desktop` 会被拥有该 profile 的 Electron
|
|
|
197
204
|
|
|
198
205
|
### 要求
|
|
199
206
|
|
|
200
|
-
- DSH:仅支持[兼容矩阵](docs/design/compatibility.zh.md)
|
|
201
|
-
resource authorization。
|
|
207
|
+
- DSH:仅支持[兼容矩阵](docs/design/compatibility.zh.md)中列出的版本;当前主基线是 `0.2.2-rc.5`
|
|
208
|
+
(十三版本本地矩阵);`0.2.1+` 才具备 per-Peer Remote resource authorization。
|
|
202
209
|
- Node.js **`^22.19.0 || >=24.0.0`**。
|
|
203
210
|
- Web 或 Desktop profile。
|
|
204
211
|
|
|
@@ -247,6 +254,11 @@ active-count 失败。
|
|
|
247
254
|
maxObjectiveBytes: 4096
|
|
248
255
|
maxItemBytes: 1024
|
|
249
256
|
contextOrder: 130
|
|
257
|
+
languageFollow: true
|
|
258
|
+
languageFollowTimeoutMs: 60000
|
|
259
|
+
# 可选:专用翻译路由;省略则使用当前会话模型
|
|
260
|
+
languageFollowProvider: your-provider
|
|
261
|
+
languageFollowModel: your-fast-model
|
|
250
262
|
```
|
|
251
263
|
|
|
252
264
|
| 字段 | 默认值 | 含义 |
|
|
@@ -264,6 +276,10 @@ active-count 失败。
|
|
|
264
276
|
| `maintenanceLimit` | 16 | 最近 initialize/restore receipt |
|
|
265
277
|
| `maxRecoveryBytes` | 4194304 | 完整 recovery archive 预算 |
|
|
266
278
|
| `contextOrder` | 130 | runtime-context 顺序 |
|
|
279
|
+
| `languageFollow` | true | 按当前 `zh`/`en` DSH 界面语言通过模型归一草案;设为 `false` 关闭自动调用 |
|
|
280
|
+
| `languageFollowTimeoutMs` | 60000 | 单批后台翻译等待上限;失败批会拆分并保留源文 |
|
|
281
|
+
| `languageFollowProvider` | 未设置 | 可选专用翻译 provider;需同时设置 model |
|
|
282
|
+
| `languageFollowModel` | 未设置 | 可选专用翻译模型;两者都不设时使用当前会话模型 |
|
|
267
283
|
|
|
268
284
|
模型可见容量只有 `maxPromptBytes`;`maxItems` 和 `maxPendingItems` 约束存储。
|
|
269
285
|
|
|
@@ -274,7 +290,7 @@ active-count 失败。
|
|
|
274
290
|
| `0.1.7-rc.2` | 支持(最低版本) |
|
|
275
291
|
| `0.2.0-rc.1` / `0.2.0-rc.2` | 支持 |
|
|
276
292
|
| `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` | 支持 |
|
|
277
|
-
| `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` | 支持(主基线:`0.2.2-rc.
|
|
293
|
+
| `0.2.2-rc.1` / `0.2.2-rc.2` / `0.2.2-rc.3` / `0.2.2-rc.4` / `0.2.2-rc.5` | 支持(主基线:`0.2.2-rc.5`) |
|
|
278
294
|
| `0.3.x` | 验证前不声明 |
|
|
279
295
|
|
|
280
296
|
`engines.dsh` 使用有界的 0.2 线范围(`0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0`),DSH gate 会按 prerelease
|
package/docs/README.md
CHANGED
|
@@ -53,6 +53,8 @@ same commit. Do not delete a historical decision just because it is inactive; mo
|
|
|
53
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
54
|
| [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Active | 0.2.2 / 0.3.1 / 0.3.2 | Client-side dependency graph view. Source implementation lands on the 0.2.2 line; real browser evidence is recorded; real AT and W0-1/2/3 remain 0.3.2 gates. |
|
|
55
55
|
| [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 / 0.3.1 / 0.3.2 | 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). |
|
|
56
|
+
| [design/charter-draft-extraction-v1.zh.md](design/charter-draft-extraction-v1.zh.md) | Implemented — pending release acceptance | 0.3.3 | Draft-extraction quality and automatic zh/en language following: semantics-preserving splits, near-duplicate folding, structured candidates with stable refs, bounded background batch translation with per-batch retry/partial fallback and optional dedicated model. Implemented locally; release acceptance pending. |
|
|
57
|
+
| [design/charter-draft-calibration-v1.zh.md](design/charter-draft-calibration-v1.zh.md) | Proposed | 0.4.0 candidate | Future advanced draft calibration: semantic aggregation, original-vs-calibrated diff review, quality A/B; host-managed `ctx.llm` opt-in, zero record-schema change; depends on the implemented 0.3.3 extraction layer. |
|
|
56
58
|
| [design/version-roadmap.md](design/version-roadmap.md) | Active | whole line | Scope/version authority; Chinese is normative. |
|
|
57
59
|
| [design/compatibility.md](design/compatibility.md) | Active | declared DSH versions | Compatibility claims and matrix. |
|
|
58
60
|
| [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. |
|
package/docs/README.zh.md
CHANGED
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
| [design/charter-workspace-v2.zh.md](design/charter-workspace-v2.zh.md) | Active | 0.2.0 / 0.3.0 / 0.3.1 / 0.3.2 | 工作区、提案时间线、依赖;专题范围。 |
|
|
52
52
|
| [design/charter-dependency-graph-v1.zh.md](design/charter-dependency-graph-v1.zh.md) | Active | 0.2.2 / 0.3.1 / 0.3.2 | 客户端依赖关系图形视图;源码已在 0.2.2 落地,真实浏览器证据已记录;真实 AT 与 W0-1/2/3 仍属 0.3.2 门禁。 |
|
|
53
53
|
| [design/charter-gui-v1.zh.md](design/charter-gui-v1.zh.md) | Active | 0.3.0 / 0.3.1 / 0.3.2 | 全栏目 GUI 全面重构:设计系统、IA/路由、Change Set 合同、Pane/store 拆分、证据门禁;视觉语言已冻结(文档感):[design/mockups/](design/mockups/README.md)。 |
|
|
54
|
+
| [design/charter-draft-extraction-v1.zh.md](design/charter-draft-extraction-v1.zh.md) | Implemented — pending release acceptance | 0.3.3 | 契约草案抽取质量与自动中英文语言跟随:语义保全切分、近重复折叠、结构化候选与稳定 ref、宿主模型后台分批翻译、每批重试/partial 回退与可选专用模型;已本地实现,待发布验收。 |
|
|
55
|
+
| [design/charter-draft-calibration-v1.zh.md](design/charter-draft-calibration-v1.zh.md) | Proposed | 0.4.0 候选 | 后续高级草案校准:语义聚合、原文 diff 审阅、质量 A/B;宿主托管 `ctx.llm` opt-in,零 record schema 变更;依赖已实现的 0.3.3 抽取层。 |
|
|
54
56
|
| [design/version-roadmap.md](design/version-roadmap.md) | Active | 全版本线 | 范围与版本权威;中文为 normative。 |
|
|
55
57
|
| [design/compatibility.md](design/compatibility.md) | Active | 已声明 DSH 版本 | 兼容声明与矩阵。 |
|
|
56
58
|
| [history/2026-10-19-charter-design-v1-review.md](history/2026-10-19-charter-design-v1-review.md) | Historical | 0.1 | 冻结的 v1 设计评审。 |
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|