dsh-charter 0.1.0-rc.6 → 0.2.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 +54 -7
- package/CHANGELOG.zh.md +47 -6
- package/CONTRIBUTING.md +22 -1
- package/CONTRIBUTING.zh.md +17 -1
- package/README.md +158 -256
- package/README.zh.md +182 -260
- package/docs/README.md +73 -0
- package/docs/README.zh.md +70 -0
- package/docs/assets/charter-pane.zh.png +0 -0
- package/docs/design/{charter-design.md → charter-design-v1.md} +20 -9
- package/docs/design/{charter-design.zh.md → charter-design-v1.zh.md} +25 -6
- package/docs/design/charter-workspace-v2.zh.md +1805 -0
- package/docs/design/compatibility.md +12 -6
- package/docs/design/compatibility.zh.md +12 -6
- package/docs/design/version-roadmap.md +27 -21
- package/docs/design/version-roadmap.zh.md +26 -28
- 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} +9 -3
- package/docs/{design/rc5-stabilization-plan.zh.md → history/2026-10-27-release-0.1.0-rc.5-plan.zh.md} +8 -2
- package/docs/release-notes/0.1.0-rc.5.md +7 -2
- package/docs/release-notes/0.1.0-rc.6.md +12 -10
- package/docs/release-notes/0.2.0.md +54 -0
- package/docs/release-notes/0.2.1.md +56 -0
- package/docs/release-notes/README.md +6 -1
- package/docs/releasing.md +32 -42
- package/docs/releasing.zh.md +26 -35
- package/docs/research/charter-research.md +7 -1
- package/docs/research/charter-research.zh.md +7 -1
- package/docs/user-guide.md +31 -27
- package/docs/user-guide.zh.md +26 -22
- package/docs/verification.md +60 -34
- package/docs/verification.zh.md +40 -32
- package/lib/client/admission.d.ts +1 -1
- package/lib/client/draft-store.d.ts +5 -1
- package/lib/client/locales.d.ts +113 -4
- package/lib/client/preview.d.ts +7 -1
- package/lib/client/store.d.ts +27 -2
- package/lib/client.js +2767 -128
- 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/domain.d.ts +50 -0
- package/lib/host/service.d.ts +54 -3
- package/lib/host/tool.d.ts +1 -0
- package/lib/host/types.d.ts +245 -1
- package/lib/host/validators.d.ts +29 -0
- package/lib/index.js +3 -3
- package/lib/remote/service.d.ts +62 -1
- package/lib/remote/wire.d.ts +2355 -11
- package/lib/remote.js +1066 -22
- package/lib/service-CNjnvioR.js +3311 -0
- package/lib/version.d.ts +1 -1
- package/package.json +54 -50
- 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/lib/service-W66VErs6.js +0 -1609
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,54 @@ 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.1
|
|
8
|
+
## 0.2.1 — 2026-11-06 (release candidate)
|
|
9
|
+
|
|
10
|
+
Post-`0.2.0` UI, diagnostics, and recovery-cache patch. No record-schema bump; existing `0.2.0` records remain
|
|
11
|
+
readable.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Editable message proposals: selecting a user message preloads its full text into an editable body; edited
|
|
16
|
+
proposals use manual provenance and the Host rejects non-human actors.
|
|
17
|
+
- Bounded recovery cache in the owner-only `dsh_charter_archives_v1` domain with `listArchives`/`readArchive`
|
|
18
|
+
Remote entries: at most five snapshots per Session and 25 per profile, oldest-first eviction.
|
|
19
|
+
- Diagnostics separates fact validity checks from evidence integrity; proposal batches render the query-plane
|
|
20
|
+
`sourceIntegrity` without an extra Host round trip.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Message-proposal, diagnostics, and recovery forms use one label/description hierarchy; the Pane header follows
|
|
25
|
+
the lighter `dsh-context` page-title scale and spacing.
|
|
26
|
+
- Recovery lists cached snapshots directly; download export is independent from restore. Local JSON import stays
|
|
27
|
+
available as an advanced path.
|
|
28
|
+
- README capability list and Pane screenshot describe the current 0.2.1 UI.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- Message proposal state resets when the Session changes; diagnostics state and feedback reset as well.
|
|
33
|
+
- Same-revision query views retain proposal batch integrity after an Apply.
|
|
34
|
+
- Cache snapshots survive Host restarts; no Session-disposal purge, and profile-wide LRU bounds orphan entries.
|
|
35
|
+
- Restore wording distinguishes cached recovery from imported files.
|
|
36
|
+
|
|
37
|
+
## 0.2.0 — 2026-11-05
|
|
38
|
+
|
|
39
|
+
Workspace and dependency-plan upgrade. Versioning from this release onward uses plain increments
|
|
40
|
+
(`0.2.0`, `0.2.1`, ...) and never an `rc` suffix.
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
|
|
44
|
+
- 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.
|
|
45
|
+
- Three primary areas: Workspace, Review Center, and Diagnostics & Maintenance. Workspace surfaces the
|
|
46
|
+
current objective, invariants, dependency plan, and deliverables together.
|
|
47
|
+
- Deliverable `requires` dependencies with canonical graph validation (self-edge, dangling reference,
|
|
48
|
+
inactive endpoint, and cycle rejection), derived prerequisite/readiness states, dependency-aware prompt
|
|
49
|
+
rendering with stable `D<n>` local keys, and an editable prerequisite selector.
|
|
50
|
+
- Record schema v2 with in-memory v1 migration, proposal batches with typed source provenance,
|
|
51
|
+
objective-proposal lifecycle, and bounded item/proposal/change query plus `summary`/`watchSummary` Remote
|
|
52
|
+
projections. Query facet filters and final response caps remain tracked gaps.
|
|
53
|
+
- Review Center proposal-batch provenance and Change Set summary.
|
|
54
|
+
|
|
55
|
+
## 0.1.0-rc.6 — 2026-11-01
|
|
9
56
|
|
|
10
57
|
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.
|
|
11
58
|
|
|
@@ -28,7 +75,7 @@ Compatibility, UI, and observability candidate. No product runtime code path, re
|
|
|
28
75
|
### Documentation
|
|
29
76
|
|
|
30
77
|
- Consolidated the release, version, verification, compatibility, user-guide, and README documentation around
|
|
31
|
-
the
|
|
78
|
+
the release state: rc.6 accepted and published, rc.5 as the previous accepted release, and the historical rc.4 release.
|
|
32
79
|
- Removed stale pre-tag instructions and outdated install claims.
|
|
33
80
|
- 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.
|
|
34
81
|
- Added the version badge in the Charter header as an accepted rc.5 scope addition; the rc.6 client constant is
|
|
@@ -36,14 +83,14 @@ Compatibility, UI, and observability candidate. No product runtime code path, re
|
|
|
36
83
|
|
|
37
84
|
### Release state
|
|
38
85
|
|
|
39
|
-
- `0.1.0-rc.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
86
|
+
- `0.1.0-rc.6` passed formal acceptance and is published under npm `latest`/`next`; GitHub Release uses recovery tag
|
|
87
|
+
`v0.1.0-rc.6-republished`. `0.1.0-rc.5` remains the previous accepted release; its canonical GitHub tag/release is
|
|
88
|
+
pending restoration.
|
|
89
|
+
- `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`.
|
|
43
90
|
|
|
44
91
|
## 0.1.0-rc.5 — 2026-10-29
|
|
45
92
|
|
|
46
|
-
Pre-stable correctness and release-hardening candidate.
|
|
93
|
+
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
|
|
47
94
|
persistent schema version.
|
|
48
95
|
|
|
49
96
|
### Added
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -4,7 +4,47 @@
|
|
|
4
4
|
|
|
5
5
|
记录 `dsh-charter` 的重要变更。DSH 插件 ABI 仍在演进,项目保持 pre-1.0 版本线。
|
|
6
6
|
|
|
7
|
-
## 0.1
|
|
7
|
+
## 0.2.1 — 2026-11-06(发布候选)
|
|
8
|
+
|
|
9
|
+
`0.2.0` 之后的 UI、诊断和恢复缓存补丁。不改变 record schema;已有 `0.2.0` 记录保持可读。
|
|
10
|
+
|
|
11
|
+
### 新增
|
|
12
|
+
|
|
13
|
+
- 可编辑消息提案:选择用户消息后把完整正文带入可编辑框;编辑后的提案使用 manual provenance,Host 拒绝
|
|
14
|
+
非人类 actor。
|
|
15
|
+
- owner-only `dsh_charter_archives_v1` 恢复缓存与 `listArchives`/`readArchive` Remote 入口:每 Session
|
|
16
|
+
最多 5 份、整个 profile 最多 25 份,最旧优先淘汰。
|
|
17
|
+
- 诊断区拆分事实有效性验证和证据完整性;proposal batch 直接渲染查询面的 `sourceIntegrity`,不再额外请求
|
|
18
|
+
Host。
|
|
19
|
+
|
|
20
|
+
### 变更
|
|
21
|
+
|
|
22
|
+
- 消息提案、诊断和恢复表单共用同一套标签/说明层级;Pane 页头采用更轻量的 `dsh-context` 标题比例和间距。
|
|
23
|
+
- 恢复区直接列出缓存快照;下载导出与恢复解耦。本地 JSON 导入保留为高级路径。
|
|
24
|
+
- README 能力列表和 Pane 截图更新为当前 0.2.1 界面。
|
|
25
|
+
|
|
26
|
+
### 修复
|
|
27
|
+
|
|
28
|
+
- Session 切换时重置消息提案状态,同时重置诊断状态和反馈。
|
|
29
|
+
- Apply 后同 revision 的查询视图仍保留 proposal batch 的 integrity。
|
|
30
|
+
- 缓存快照在 Host 重启后保留;不再随 Session dispose 清空,并用 profile 级 LRU 限制孤儿条目。
|
|
31
|
+
- 恢复文案区分缓存恢复和文件导入。
|
|
32
|
+
|
|
33
|
+
## 0.2.0 — 2026-11-05
|
|
34
|
+
|
|
35
|
+
工作区与依赖计划升级。从该版本起使用普通递增版本号(`0.2.0`、`0.2.1`……),不再使用 `rc` 后缀。
|
|
36
|
+
|
|
37
|
+
### 新增
|
|
38
|
+
|
|
39
|
+
- 三个一级区域:Workspace、Review Center、Diagnostics & Maintenance。Workspace 同时呈现当前目标、
|
|
40
|
+
硬约束、依赖计划和交付物。
|
|
41
|
+
- 交付物 `requires` 依赖与 canonical 图校验(自依赖、悬空引用、inactive 端点、环拒绝),派生前置/就绪
|
|
42
|
+
状态,带稳定 `D<n>` 局部 key 的依赖感知 prompt,以及可编辑前置选择器。
|
|
43
|
+
- record schema v2 与内存 v1 迁移、带类型来源的 proposal batch、objective proposal 生命周期,以及有界
|
|
44
|
+
item/proposal/change query 和 `summary`/`watchSummary` Remote 投影。
|
|
45
|
+
- Review Center 的 proposal batch 来源和 Change Set 摘要。
|
|
46
|
+
|
|
47
|
+
## 0.1.0-rc.6 — 2026-11-01
|
|
8
48
|
|
|
9
49
|
兼容性、UI 与可观测性候选。除 DSH `0.2.1-rc.5` 元数据和缩短的模型可见 `charter_read` description 外,暂不包含产品运行时路径、record schema、Remote 方法、模型工具或 domain 变更。
|
|
10
50
|
|
|
@@ -24,8 +64,8 @@
|
|
|
24
64
|
|
|
25
65
|
### 文档
|
|
26
66
|
|
|
27
|
-
- 围绕实际发布状态统一 README、发布、版本、验证、兼容性和用户指南:rc.
|
|
28
|
-
rc.
|
|
67
|
+
- 围绕实际发布状态统一 README、发布、版本、验证、兼容性和用户指南:rc.6 已验收并发布,rc.5 为上一个已验收版本,
|
|
68
|
+
rc.4 为历史发布。
|
|
29
69
|
- 清理过期 pre-tag 指令和旧安装声明。
|
|
30
70
|
- 工具链 devDependencies 固定精确版本(React `18.3.1`、TypeScript `5.9.3`、`@types/node` `22.20.5`、`@tsdown/css` `0.22.2`),避免 rc.5 适配被范围解析漂移影响。
|
|
31
71
|
- rc.5 已接受的范围补充(Charter 页头版本徽标)保留;rc.6 客户端版本常量由现有 drift 测试与
|
|
@@ -33,8 +73,9 @@
|
|
|
33
73
|
|
|
34
74
|
### 发布状态
|
|
35
75
|
|
|
36
|
-
- `0.1.0-rc.
|
|
37
|
-
|
|
76
|
+
- `0.1.0-rc.6` 已正式验收并发布到 npm `latest`/`next`;GitHub Release 使用 recovery tag
|
|
77
|
+
`v0.1.0-rc.6-republished`。rc.5 为上一个已验收版本;规范 GitHub tag/release 待恢复。
|
|
78
|
+
- `0.1.0-rc.6` 已通过正式验收并发布到 npm `latest`/`next`;GitHub Release 使用 recovery tag `v0.1.0-rc.6-republished`。
|
|
38
79
|
|
|
39
80
|
## 0.1.0-rc.5 — 2026-10-29
|
|
40
81
|
|
|
@@ -60,7 +101,7 @@
|
|
|
60
101
|
- 以 `npm run check` 与当前 exact-artifact/packed smoke 命令为准;真实 Gateway、浏览器恢复、Desktop ABI 与
|
|
61
102
|
真实模型 compaction 仍是独立验收门禁。
|
|
62
103
|
- 不提升 record schema 版本、不改 domain;rc.4 记录保持可读。
|
|
63
|
-
- 发布状态:
|
|
104
|
+
- 发布状态:rc.5 已发布到 npm;规范 GitHub tag/release 待恢复。
|
|
64
105
|
|
|
65
106
|
## 0.1.0-rc.4 — 2026-10-27
|
|
66
107
|
|
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,25 @@ 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
|
+
|
|
45
|
+
Fixed path for every change:
|
|
46
|
+
|
|
47
|
+
1. Create a local non-`main` branch from local `main`.
|
|
48
|
+
2. Implement and run the local gates there.
|
|
49
|
+
3. Build an acceptance tarball/profile and perform **local human acceptance** against the exact build.
|
|
50
|
+
4. Only after acceptance: merge the branch into local `main` linearly.
|
|
51
|
+
5. Push `main` only. Protected actions on `main` are force-pushes, deletion, and non-linear merges, not a
|
|
52
|
+
PR review requirement.
|
|
53
|
+
|
|
54
|
+
No release, tag, or remote branch is created before local acceptance. Record the acceptance result in the
|
|
55
|
+
release verification notes.
|
|
56
|
+
|
|
57
|
+
External contributors may still open PRs from forks. The maintainer reviews and merges them locally under
|
|
58
|
+
the same main-only policy.
|
|
59
|
+
|
|
41
60
|
## Pull requests
|
|
42
61
|
|
|
43
62
|
A good pull request:
|
|
@@ -82,3 +101,5 @@ Do not open a public issue for a suspected vulnerability. Follow [SECURITY.md](S
|
|
|
82
101
|
## License
|
|
83
102
|
|
|
84
103
|
By contributing, you agree that your contribution is licensed under the MIT License.
|
|
104
|
+
|
|
105
|
+
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,20 @@ npm run check
|
|
|
40
40
|
|
|
41
41
|
`npm run build` 同时运行 Remote 和 client smoke 检查。
|
|
42
42
|
|
|
43
|
+
## 分支流程(单维护者)
|
|
44
|
+
|
|
45
|
+
远程仓库只保留 `main`。每个改动的固定路径:
|
|
46
|
+
|
|
47
|
+
1. 从本地 `main` 创建本地非 `main` 分支;
|
|
48
|
+
2. 在分支上实现并跑完本地门禁;
|
|
49
|
+
3. 构建验收 tarball/profile,对精确构建做**本地人工验收**;
|
|
50
|
+
4. 只有验收确认后,才线性合入本地 `main`;
|
|
51
|
+
5. 只推送 `main`。`main` 的保护是不允许 force-push、删除和非线性合并,而不是 PR review 要求。
|
|
52
|
+
|
|
53
|
+
本地验收前不创建 release/tag,也不推送远端分支;验收结果写入发布验证记录。
|
|
54
|
+
|
|
55
|
+
外部贡献者仍可从 fork 提交 PR;维护者按同样的 main-only 策略在本地审查和合并。
|
|
56
|
+
|
|
43
57
|
## Pull request
|
|
44
58
|
|
|
45
59
|
一个好的 PR:
|
|
@@ -84,3 +98,5 @@ docs: clarify budget overflow
|
|
|
84
98
|
## 许可证
|
|
85
99
|
|
|
86
100
|
提交贡献即表示你同意以 MIT License 授权该贡献。
|
|
101
|
+
|
|
102
|
+
文档变更必须遵循 [docs/README.md](docs/README.md)(命名、状态块和链接同步)。
|