dsh-charter 0.1.0-rc.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -2
- package/CHANGELOG.zh.md +50 -2
- package/CONTRIBUTING.md +12 -1
- package/CONTRIBUTING.zh.md +10 -1
- package/README.md +146 -235
- package/README.zh.md +170 -239
- package/docs/README.md +72 -0
- package/docs/README.zh.md +69 -0
- package/docs/assets/charter-pane.zh.png +0 -0
- package/docs/design/{charter-design.md → charter-design-v1.md} +15 -8
- package/docs/design/{charter-design.zh.md → charter-design-v1.zh.md} +13 -6
- package/docs/design/charter-workspace-v2.zh.md +1804 -0
- package/docs/design/compatibility.md +14 -7
- package/docs/design/compatibility.zh.md +14 -7
- package/docs/design/version-roadmap.md +30 -21
- package/docs/design/version-roadmap.zh.md +32 -22
- package/docs/{design/charter-design-review.md → history/2026-10-19-charter-design-v1-review.md} +9 -3
- package/docs/{design/charter-design-review.zh.md → history/2026-10-19-charter-design-v1-review.zh.md} +9 -3
- package/docs/{design/rc5-stabilization-plan.md → history/2026-10-27-release-0.1.0-rc.5-plan.md} +7 -1
- package/docs/{design/rc5-stabilization-plan.zh.md → history/2026-10-27-release-0.1.0-rc.5-plan.zh.md} +7 -1
- package/docs/release-notes/0.1.0-rc.5.md +7 -2
- package/docs/release-notes/0.1.0-rc.6.md +41 -0
- package/docs/release-notes/0.2.0.md +54 -0
- package/docs/release-notes/README.md +6 -1
- package/docs/releasing.md +87 -141
- package/docs/releasing.zh.md +70 -109
- package/docs/research/charter-research.md +7 -1
- package/docs/research/charter-research.zh.md +7 -1
- package/docs/user-guide.md +25 -20
- package/docs/user-guide.zh.md +21 -18
- package/docs/verification.md +102 -27
- package/docs/verification.zh.md +82 -25
- package/lib/client/admission.d.ts +1 -1
- package/lib/client/draft-store.d.ts +5 -1
- package/lib/client/locales.d.ts +101 -0
- package/lib/client/preview.d.ts +7 -1
- package/lib/client/store.d.ts +22 -2
- package/lib/client.js +2413 -123
- package/lib/core/change-set.d.ts +26 -0
- package/lib/core/commands.d.ts +5 -1
- package/lib/core/dependencies.d.ts +23 -0
- package/lib/core/errors.d.ts +1 -1
- package/lib/core/limits.d.ts +2 -0
- package/lib/core/prompt.d.ts +1 -0
- package/lib/core/query.d.ts +33 -0
- package/lib/core/record.d.ts +10 -1
- package/lib/core/schemas.d.ts +1801 -150
- package/lib/core/source-integrity.d.ts +1 -0
- package/lib/core/source-registry.d.ts +54 -0
- package/lib/core.js +2 -2
- package/lib/{fork-BbVgPMR6.js → fork-D5HVDV1i.js} +1212 -137
- package/lib/host/service.d.ts +37 -3
- package/lib/host/tool.d.ts +1 -0
- package/lib/host/types.d.ts +211 -1
- package/lib/host/validators.d.ts +29 -0
- package/lib/index.js +3 -3
- package/lib/remote/service.d.ts +55 -1
- package/lib/remote/wire.d.ts +2231 -11
- package/lib/remote.js +918 -5
- package/lib/{service-CGsWgySd.js → service-C3A59BG5.js} +1568 -44
- package/lib/version.d.ts +1 -1
- package/package.json +64 -59
- package/docs/assets/charter-pane.dark.png +0 -0
- package/docs/assets/charter-pane.en.png +0 -0
- package/docs/assets/charter-pane.narrow.png +0 -0
- package/docs/assets/charter-pane.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,63 @@ 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.2.0 — release candidate
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Workspace and dependency-plan upgrade. Versioning from this release onward uses plain increments
|
|
11
|
+
(`0.2.0`, `0.2.1`, ...) and never an `rc` suffix.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- DSH `0.2.2-rc.1` compatibility across `engines.dsh`, every DSH peer range, `dsh.compatibility.dshReleases`, the tracked nine-version matrix, and its lockfile.
|
|
16
|
+
- Three primary areas: Workspace, Review Center, and Diagnostics & Maintenance. Workspace surfaces the
|
|
17
|
+
current objective, invariants, dependency plan, and deliverables together.
|
|
18
|
+
- Deliverable `requires` dependencies with canonical graph validation (self-edge, dangling reference,
|
|
19
|
+
inactive endpoint, and cycle rejection), derived prerequisite/readiness states, dependency-aware prompt
|
|
20
|
+
rendering with stable `D<n>` local keys, and an editable prerequisite selector.
|
|
21
|
+
- Record schema v2 with in-memory v1 migration, proposal batches with typed source provenance,
|
|
22
|
+
objective-proposal lifecycle, and bounded item/proposal/change query plus `summary`/`watchSummary` Remote
|
|
23
|
+
projections. Query facet filters and final response caps remain tracked gaps.
|
|
24
|
+
- Review Center proposal-batch provenance and Change Set summary.
|
|
25
|
+
|
|
26
|
+
## 0.1.0-rc.6 — 2026-11-01
|
|
27
|
+
|
|
28
|
+
Compatibility, UI, and observability candidate. No product runtime code path, record schema, Remote method, model tool, or domain change beyond DSH `0.2.1-rc.5` metadata and the shortened model-facing `charter_read` description.
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- DSH `0.2.1-rc.5` compatibility across `engines.dsh`, every DSH peer range, `dsh.compatibility.dshReleases`, the tracked matrix, and its lockfile; the Web/Desktop client entry remains the same `dsh.client` bundle.
|
|
33
|
+
- A help affordance on every Charter navigation section; hovering or focusing the `?` badge shows a one-sentence
|
|
34
|
+
description of Overview, Objective, Invariants, Deliverables, History draft, Context, or Storage & recovery.
|
|
35
|
+
- The Context preview has Formatted JSON and Exact text modes. Formatted JSON is pretty-printed for reading, while
|
|
36
|
+
the exact view and byte counter retain the model-visible bytes.
|
|
37
|
+
|
|
38
|
+
### Observability
|
|
39
|
+
|
|
40
|
+
- Added `scripts/verify/traffic-check.mjs`, a read-only Session transcript checker reporting model attempts,
|
|
41
|
+
active-surface/historical/epoch snapshots, section churn, duplicate bytes, tool-schema bytes, token usage, and
|
|
42
|
+
redundant `charter_read` candidates.
|
|
43
|
+
- Shortened the `charter_read` description to discourage redundant reads when the standing charter is already in
|
|
44
|
+
runtime context.
|
|
45
|
+
|
|
46
|
+
### Documentation
|
|
47
|
+
|
|
48
|
+
- Consolidated the release, version, verification, compatibility, user-guide, and README documentation around
|
|
49
|
+
the release state: rc.6 accepted and published, rc.5 as the previous accepted release, and the historical rc.4 release.
|
|
50
|
+
- Removed stale pre-tag instructions and outdated install claims.
|
|
51
|
+
- Pinned the toolchain devDependencies to exact versions (React `18.3.1`, TypeScript `5.9.3`, `@types/node` `22.20.5`, `@tsdown/css` `0.22.2`) so the rc.5 compatibility update does not drift with range resolution.
|
|
52
|
+
- Added the version badge in the Charter header as an accepted rc.5 scope addition; the rc.6 client constant is
|
|
53
|
+
synchronized with `package.json` by the existing drift test.
|
|
54
|
+
|
|
55
|
+
### Release state
|
|
56
|
+
|
|
57
|
+
- `0.1.0-rc.6` passed formal acceptance and is published under npm `latest`/`next`; GitHub Release uses recovery tag
|
|
58
|
+
`v0.1.0-rc.6-republished`. `0.1.0-rc.5` remains the previous accepted release; its canonical GitHub tag/release is
|
|
59
|
+
pending restoration.
|
|
60
|
+
- `0.1.0-rc.6` passed formal acceptance and is published under npm `latest`/`next`; GitHub Release uses recovery tag `v0.1.0-rc.6-republished`.
|
|
61
|
+
|
|
62
|
+
## 0.1.0-rc.5 — 2026-10-29
|
|
63
|
+
|
|
64
|
+
Pre-stable correctness and release-hardening candidate. Candidate-green; rc.5 is now published to npm, while its canonical GitHub tag/release is pending restoration. No new 0.2 capability, domain, Remote method, or
|
|
11
65
|
persistent schema version.
|
|
12
66
|
|
|
13
67
|
### Added
|
|
@@ -33,6 +87,7 @@ persistent schema version.
|
|
|
33
87
|
- `npm run check` and the current exact-artifact/packed smoke commands are the source of truth; real Gateway,
|
|
34
88
|
browser recovery, Desktop ABI, and real-model compaction remain separate acceptance gates.
|
|
35
89
|
- No record schema version bump and no domain change; rc.4 records remain readable.
|
|
90
|
+
- Release state: tag `v0.1.0-rc.5` exists, exact artifact SHA-256 is recorded in `SHA256SUMS`; rc.5 is not published to npm yet.
|
|
36
91
|
|
|
37
92
|
## 0.1.0-rc.4 — 2026-10-27
|
|
38
93
|
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -4,9 +4,56 @@
|
|
|
4
4
|
|
|
5
5
|
记录 `dsh-charter` 的重要变更。DSH 插件 ABI 仍在演进,项目保持 pre-1.0 版本线。
|
|
6
6
|
|
|
7
|
-
## 0.
|
|
7
|
+
## 0.2.0 — 发布候选
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
工作区与依赖计划升级。从该版本起使用普通递增版本号(`0.2.0`、`0.2.1`……),不再使用 `rc` 后缀。
|
|
10
|
+
|
|
11
|
+
### 新增
|
|
12
|
+
|
|
13
|
+
- 三个一级区域:Workspace、Review Center、Diagnostics & Maintenance。Workspace 同时呈现当前目标、
|
|
14
|
+
硬约束、依赖计划和交付物。
|
|
15
|
+
- 交付物 `requires` 依赖与 canonical 图校验(自依赖、悬空引用、inactive 端点、环拒绝),派生前置/就绪
|
|
16
|
+
状态,带稳定 `D<n>` 局部 key 的依赖感知 prompt,以及可编辑前置选择器。
|
|
17
|
+
- record schema v2 与内存 v1 迁移、带类型来源的 proposal batch、objective proposal 生命周期,以及有界
|
|
18
|
+
item/proposal/change query 和 `summary`/`watchSummary` Remote 投影。
|
|
19
|
+
- Review Center 的 proposal batch 来源和 Change Set 摘要。
|
|
20
|
+
|
|
21
|
+
## 0.1.0-rc.6 — 2026-11-01
|
|
22
|
+
|
|
23
|
+
兼容性、UI 与可观测性候选。除 DSH `0.2.1-rc.5` 元数据和缩短的模型可见 `charter_read` description 外,暂不包含产品运行时路径、record schema、Remote 方法、模型工具或 domain 变更。
|
|
24
|
+
|
|
25
|
+
### 新增
|
|
26
|
+
|
|
27
|
+
- 适配 DSH `0.2.1-rc.5`:同步 `engines.dsh`、所有 DSH peer range、`dsh.compatibility.dshReleases`、受控矩阵和 lockfile;Web/Desktop 共用同一个 `dsh.client` bundle,无需改 API。
|
|
28
|
+
- 每个会话契约导航栏目增加帮助入口;悬停/聚焦 `?` 徽标会显示一句话说明:概览、目标、硬约束、交付物、
|
|
29
|
+
历史草案、上下文、存储与恢复。
|
|
30
|
+
- 上下文预览增加“格式化 JSON / 精确文本”两种模式。格式化 JSON 便于阅读;精确视图和字节计数仍使用模型实际
|
|
31
|
+
可见的原始字节。
|
|
32
|
+
|
|
33
|
+
### 可观测性
|
|
34
|
+
|
|
35
|
+
- 新增 `scripts/verify/traffic-check.mjs`:只读分析 Session transcript,输出 model attempts、active/historical/
|
|
36
|
+
epoch snapshots、section churn、重复字节、tool schema 字节、token usage,以及冗余 `charter_read` 候选。
|
|
37
|
+
- 缩短 `charter_read` description,避免在 standing charter 已进入 runtime context 时鼓励重复读取。
|
|
38
|
+
|
|
39
|
+
### 文档
|
|
40
|
+
|
|
41
|
+
- 围绕实际发布状态统一 README、发布、版本、验证、兼容性和用户指南:rc.6 已验收并发布,rc.5 为上一个已验收版本,
|
|
42
|
+
rc.4 为历史发布。
|
|
43
|
+
- 清理过期 pre-tag 指令和旧安装声明。
|
|
44
|
+
- 工具链 devDependencies 固定精确版本(React `18.3.1`、TypeScript `5.9.3`、`@types/node` `22.20.5`、`@tsdown/css` `0.22.2`),避免 rc.5 适配被范围解析漂移影响。
|
|
45
|
+
- rc.5 已接受的范围补充(Charter 页头版本徽标)保留;rc.6 客户端版本常量由现有 drift 测试与
|
|
46
|
+
`package.json` 同步。
|
|
47
|
+
|
|
48
|
+
### 发布状态
|
|
49
|
+
|
|
50
|
+
- `0.1.0-rc.6` 已正式验收并发布到 npm `latest`/`next`;GitHub Release 使用 recovery tag
|
|
51
|
+
`v0.1.0-rc.6-republished`。rc.5 为上一个已验收版本;规范 GitHub tag/release 待恢复。
|
|
52
|
+
- `0.1.0-rc.6` 已通过正式验收并发布到 npm `latest`/`next`;GitHub Release 使用 recovery tag `v0.1.0-rc.6-republished`。
|
|
53
|
+
|
|
54
|
+
## 0.1.0-rc.5 — 2026-10-29
|
|
55
|
+
|
|
56
|
+
稳定版前的正确性与发布硬化候选。已打 tag 且 candidate 全绿;npm 发布和 GitHub Release 仍待完成。不新增 0.2 能力、domain、Remote 方法或持久 schema 版本。
|
|
10
57
|
|
|
11
58
|
### 新增
|
|
12
59
|
|
|
@@ -28,6 +75,7 @@
|
|
|
28
75
|
- 以 `npm run check` 与当前 exact-artifact/packed smoke 命令为准;真实 Gateway、浏览器恢复、Desktop ABI 与
|
|
29
76
|
真实模型 compaction 仍是独立验收门禁。
|
|
30
77
|
- 不提升 record schema 版本、不改 domain;rc.4 记录保持可读。
|
|
78
|
+
- 发布状态:rc.5 已发布到 npm;规范 GitHub tag/release 待恢复。
|
|
31
79
|
|
|
32
80
|
## 0.1.0-rc.4 — 2026-10-27
|
|
33
81
|
|
package/CONTRIBUTING.md
CHANGED
|
@@ -7,7 +7,7 @@ contributions are focused bug reports, compatibility data, and changes that pres
|
|
|
7
7
|
|
|
8
8
|
## Before you start
|
|
9
9
|
|
|
10
|
-
Read the [design specification](docs/design/charter-design.md), especially:
|
|
10
|
+
Read the [design specification](docs/design/charter-design-v1.md), especially:
|
|
11
11
|
|
|
12
12
|
- user-authored text must remain **user role**;
|
|
13
13
|
- the model must not gain write capability;
|
|
@@ -38,6 +38,15 @@ npm run check
|
|
|
38
38
|
|
|
39
39
|
`npm run build` also runs the Remote and client smoke checks.
|
|
40
40
|
|
|
41
|
+
## Branch workflow (solo maintainer)
|
|
42
|
+
|
|
43
|
+
The remote keeps only `main`. Do development on local non-`main` branches; do not push those branches.
|
|
44
|
+
Run the local gates, merge into local `main` linearly, then push `main`. Protected actions on `main` are
|
|
45
|
+
force-pushes, deletion, and non-linear merges, not a PR review requirement.
|
|
46
|
+
|
|
47
|
+
External contributors may still open PRs from forks. The maintainer reviews and merges them locally under
|
|
48
|
+
the same main-only policy.
|
|
49
|
+
|
|
41
50
|
## Pull requests
|
|
42
51
|
|
|
43
52
|
A good pull request:
|
|
@@ -82,3 +91,5 @@ Do not open a public issue for a suspected vulnerability. Follow [SECURITY.md](S
|
|
|
82
91
|
## License
|
|
83
92
|
|
|
84
93
|
By contributing, you agree that your contribution is licensed under the MIT License.
|
|
94
|
+
|
|
95
|
+
Documentation changes must follow [docs/README.md](docs/README.md) (naming, status blocks, and link updates).
|
package/CONTRIBUTING.zh.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
## 开始之前
|
|
9
9
|
|
|
10
|
-
先阅读[设计规格](docs/design/charter-design.zh.md),重点确认:
|
|
10
|
+
先阅读[设计规格](docs/design/charter-design-v1.zh.md),重点确认:
|
|
11
11
|
|
|
12
12
|
- 用户正文必须保持 **user role**;
|
|
13
13
|
- 模型不能获得写能力;
|
|
@@ -40,6 +40,13 @@ npm run check
|
|
|
40
40
|
|
|
41
41
|
`npm run build` 同时运行 Remote 和 client smoke 检查。
|
|
42
42
|
|
|
43
|
+
## 分支流程(单维护者)
|
|
44
|
+
|
|
45
|
+
远程仓库只保留 `main`。开发在本地非 `main` 分支进行,不推送开发分支;完成本地门禁后线性合入本地
|
|
46
|
+
`main`,再推送 `main`。`main` 的保护是不允许 force-push、删除和非线性合并,而不是 PR review 要求。
|
|
47
|
+
|
|
48
|
+
外部贡献者仍可从 fork 提交 PR;维护者按同样的 main-only 策略在本地审查和合并。
|
|
49
|
+
|
|
43
50
|
## Pull request
|
|
44
51
|
|
|
45
52
|
一个好的 PR:
|
|
@@ -84,3 +91,5 @@ docs: clarify budget overflow
|
|
|
84
91
|
## 许可证
|
|
85
92
|
|
|
86
93
|
提交贡献即表示你同意以 MIT License 授权该贡献。
|
|
94
|
+
|
|
95
|
+
文档变更必须遵循 [docs/README.md](docs/README.md)(命名、状态块和链接同步)。
|