dsh-agent-control-center 0.2.0 → 0.3.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 +45 -0
- package/README.md +6 -4
- package/README.zh.md +6 -4
- package/client.js +1997 -147
- package/docs/01-CONTRACT.md +1 -1
- package/docs/05-ACCEPTANCE-EVIDENCE.md +39 -0
- package/docs/07-GUIDE.md +1 -1
- package/docs/09-ARCHITECTURE.md +2 -2
- package/index.js +3 -1
- package/lib/modules/a-agents.js +90 -0
- package/lib/modules/j-instruction.js +624 -0
- package/lib/modules/k-export.js +540 -0
- package/package.json +1 -1
- package/scripts/verify.mjs +2 -0
- package/src/client/app.js +91 -3
- package/src/client/i18n/common.js +6 -0
- package/src/client/i18n/export.js +174 -0
- package/src/client/i18n/instruction.js +236 -0
- package/src/client/kernel.js +13 -0
- package/src/client/pages/agents.js +1 -0
- package/src/client/pages/diagnostics.js +1 -0
- package/src/client/pages/export.js +664 -0
- package/src/client/pages/instruction.js +648 -0
- package/src/client/pages/meta.js +1 -0
- package/src/client/pages/overview.js +1 -0
- package/src/client/pages/recovery.js +1 -0
- package/src/client/pages/sessions.js +1 -0
- package/src/client/pages/templates.js +1 -0
- package/src/client/pages/tools.js +1 -0
- package/src/client/pages/usage.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0 — 2026-11-29
|
|
4
|
+
|
|
5
|
+
Verified against DSH `0.2.2-rc.5` on an isolated profile. This release answers the
|
|
6
|
+
question the 0.2.x pages could not: *what does the model actually receive?*
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- **Instruction preview (module J, page 11)**: two read-only views.
|
|
11
|
+
*By files* reassembles the exact host format (`<system-reminder>` frame,
|
|
12
|
+
per-chain byte budget, `omitted`/`truncated` markers, compact-intro fallback)
|
|
13
|
+
and reports whether the result is byte-exact (`exact`). *By session* replays a
|
|
14
|
+
real session log and returns the `agent-instructions` blocks the host wrote,
|
|
15
|
+
verbatim, with `seq`/time/`baseline` flags — no reconstruction, no guessing.
|
|
16
|
+
A **compare** view shows the byte delta and explains it (files changed after the
|
|
17
|
+
baseline, truncation, or a different budget).
|
|
18
|
+
- **Session export (module K, page 12)**: read-only Markdown or JSON export of one
|
|
19
|
+
session's timeline inside a byte budget (256 KiB default, 1 MiB hard cap).
|
|
20
|
+
Events are appended one at a time and the export stops *before* an event that
|
|
21
|
+
would overflow, so a truncated export never contains half an event
|
|
22
|
+
(`truncated` + `omittedEvents` state the cut). Tool results keep their error
|
|
23
|
+
flag and a bounded preview; usage comes from the host's own counters. Fences
|
|
24
|
+
inside message text are escaped. Nothing is deleted, archived, or uploaded.
|
|
25
|
+
- **`agents.render`**: module A now exposes the host-format instruction text it
|
|
26
|
+
already knew how to compose, so the preview does not re-implement discovery or
|
|
27
|
+
budget logic.
|
|
28
|
+
- **Navigation groups**: the settings nav is grouped into *Sessions & insights* →
|
|
29
|
+
*Editing & instructions* → *Maintenance* (insight first so the landing page
|
|
30
|
+
stays first). Wide layout shows group headings, the mid tab bar shows group
|
|
31
|
+
separators, and the narrow `<select>` uses `optgroup`. Every page declares its
|
|
32
|
+
group explicitly; order-based inference remains as a fallback.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- Contract tests, the verify module table and the health payload now expect
|
|
37
|
+
**11 modules** instead of 9.
|
|
38
|
+
- `probe()` for the two new modules returns an empty `detail` on FULL, matching
|
|
39
|
+
the documented rule that a healthy module carries no explanation.
|
|
40
|
+
- Two page icons (`file-text`, `download`) were added to the icon table; unknown
|
|
41
|
+
names still fall back to the dot glyph.
|
|
42
|
+
|
|
43
|
+
### Tests
|
|
44
|
+
|
|
45
|
+
- 332 behaviour tests (309 → 332): 12 for instruction preview, 11 for session
|
|
46
|
+
export, plus the updated contract/registry expectations. All green.
|
|
47
|
+
|
|
3
48
|
## 0.2.0 — 2026-11-29
|
|
4
49
|
|
|
5
50
|
Verified against DSH `0.2.2-rc.5`. Everything below was exercised on an isolated
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Screenshots live in `docs/assets/` and are excluded from the npm tarball.*
|
|
|
23
23
|
## Pages and status
|
|
24
24
|
|
|
25
25
|
Runtime state comes from `GET /__agent-control-center/health`; the table records
|
|
26
|
-
what the 0.
|
|
26
|
+
what the 0.3.0 acceptance run actually proved (details and evidence levels in
|
|
27
27
|
[docs/05-ACCEPTANCE-EVIDENCE.md](docs/05-ACCEPTANCE-EVIDENCE.md)).
|
|
28
28
|
|
|
29
29
|
| Page | What it gives you | State | Why / data source |
|
|
@@ -35,6 +35,8 @@ what the 0.2.0 acceptance run actually proved (details and evidence levels in
|
|
|
35
35
|
| **Usage** | real token accounting (input / cache read / cache write / output / calls), local-day trend 30 days, provider/model split, date picker, retention, collection switch | FULL | Totals, idempotent replay, date-key validation and pruning were verified. Only a live "+1 call" before/after one real model call was not verified (it would consume a paid call). |
|
|
36
36
|
| **Agent info** | live agents, presets, default model, redacted export, field-level diff, import preview | FULL | Agents/presets/default model, redacted export and diff verified. Host configuration import is **BLOCKED by design**: the host has no safe public write path, so import writes only this plugin's own state and says so. |
|
|
37
37
|
| **Diagnostics** | 22 probes across ten groups with evidence/impact/action, Markdown and JSON export, safe repairs limited to the plugin's own storage, post-repair re-check | FULL | Baseline run: 19 ok / 2 warn / 1 unknown. Egress probing stays `unknown` permanently: the plugin never sends a network request to find out. |
|
|
38
|
+
| **Instruction preview** | read-only view of what the model received: files-side reassembly (labelled approximate, per-chain budget) vs the session-side bytes the host recorded, plus a byte diff | FULL | Live instance: files side 76,621 B exact (both chains inside budget); session side returned 29 recorded blocks (verifying the exact path); a drift of −19,483 B between a June baseline and today's files is surfaced with an explanation. |
|
|
39
|
+
| **Session export** | read-only Markdown/JSON export of one session inside a byte budget (256 KiB default, 1 MiB cap), cut at event boundaries with `truncated`/`omittedEvents` | FULL | Live instance: a 19,345-event session exported 262,069 B and reported 12,623 omitted events; no delete/archive/upload path exists. |
|
|
38
40
|
| **Templates** | six bundled templates in five categories, source and rendered preview, variable fill, line-level diff, apply through the AGENTS.md save pipeline, user-template CRUD | FULL | Apply was verified end-to-end through the AGENTS.md pipeline (backup + read-back hash). Templates are data only; executable content is rejected. |
|
|
39
41
|
| **Restart & Resume** | read-only detection of interrupted sessions from recorded event semantics, with evidence and confidence; never resumes anything | PARTIAL | Detection-only by design. Event-semantics detection was verified on a real corpus with no false positives; the `kill -9` crash scene itself was not reproduced (it needs an isolated profile and explicit authorization). |
|
|
40
42
|
|
|
@@ -54,7 +56,7 @@ dsh plugin --profile web add dsh-agent-control-center
|
|
|
54
56
|
|
|
55
57
|
# 2) from a packed tarball
|
|
56
58
|
npm pack
|
|
57
|
-
dsh plugin --profile web add ./dsh-agent-control-center-0.
|
|
59
|
+
dsh plugin --profile web add ./dsh-agent-control-center-0.3.0.tgz
|
|
58
60
|
|
|
59
61
|
# 3) from a local checkout
|
|
60
62
|
dsh plugin --profile web add /absolute/path/to/dsh-agent-control-center
|
|
@@ -65,7 +67,7 @@ Then restart the Web GUI (the Host half mounts its HTTP route at boot) and open
|
|
|
65
67
|
|
|
66
68
|
```bash
|
|
67
69
|
curl -s http://127.0.0.1:<gui-port>/__agent-control-center/health
|
|
68
|
-
# → {"ok":true,"value":{"version":"0.
|
|
70
|
+
# → {"ok":true,"value":{"version":"0.3.0", …, "modules":[ … 11 entries … ]}}
|
|
69
71
|
```
|
|
70
72
|
|
|
71
73
|
Uninstall with `dsh plugin --profile web remove dsh-agent-control-center`.
|
|
@@ -224,7 +226,7 @@ version cannot land.
|
|
|
224
226
|
|
|
225
227
|
| Item | Value |
|
|
226
228
|
|---|---|
|
|
227
|
-
| Plugin version | `0.
|
|
229
|
+
| Plugin version | `0.3.0` |
|
|
228
230
|
| DSH range | `>=0.2.1-rc.1 <0.3.0` (`engines.dsh` and `dsh.compatibility.dsh`) |
|
|
229
231
|
| Verified against | DSH `0.2.2-rc.5` (web profile), Node `v24.22.2`, Linux x86_64 |
|
|
230
232
|
| Node | `>=22.19` (CI: 22 and 24) |
|
package/README.zh.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
## 页面与状态
|
|
19
19
|
|
|
20
|
-
运行期状态来自 `GET /__agent-control-center/health`;下表记录 0.
|
|
20
|
+
运行期状态来自 `GET /__agent-control-center/health`;下表记录 0.3.0 验收实际证明了什么
|
|
21
21
|
(逐条证据与等级见 [docs/05-ACCEPTANCE-EVIDENCE.md](docs/05-ACCEPTANCE-EVIDENCE.md))。
|
|
22
22
|
|
|
23
23
|
| 页面 | 提供什么 | 状态 | 依据 / 数据来源 |
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
| **使用统计** | 真实 token 口径(输入 / 缓存读 / 缓存写 / 输出 / 调用次数)、近 30 天本地日趋势、provider/model 分布、日期选择、保留期、采集开关 | FULL | 总量、幂等回放、日期键校验与剪枝已验证。唯一未验证项是「真实模型调用前后 +1」的活体比对(会消耗一次付费调用)。 |
|
|
30
30
|
| **Agent 信息** | 活跃 Agent、预设、默认模型、脱敏导出、字段级 diff、导入预览 | FULL | Agent/预设/默认模型、脱敏导出与 diff 已验证。宿主配置导入按设计为 **BLOCKED**:宿主没有安全公开的写路径,导入只写本插件自有 state 并如实说明。 |
|
|
31
31
|
| **诊断** | 10 组共 22 项检查(证据/影响/建议)、Markdown 与 JSON 导出、仅限自有存储的安全修复、修复后复检 | FULL | 基线运行:19 通过 / 2 注意 / 1 未知。出网能力检查永久为 `unknown`:插件不会为了探测而发起网络请求。 |
|
|
32
|
+
| **指令预览** | 只读查看模型实际收到的指令:文件侧重组成(标注近似、附每条链预算)与会话侧宿主真实写入的字节,并给出逐字节差 | FULL | 真机:文件侧 76,621 B 精确(两条链都在预算内);会话侧取出 29 个已落盘指令块(验证精确通道);同一会话基线比今天磁盘小 19,483 B,页面给出差异原因。 |
|
|
33
|
+
| **会话导出** | 只读导出单个会话为 Markdown / JSON,带字节上限(默认 256 KiB、上限 1 MiB),按事件边界截断并标注 `truncated`/`omittedEvents` | FULL | 真机:一个 19,345 事件的会话导出 262,069 B 并标注省略 12,623 个事件;不存在删除/归档/上传路径。 |
|
|
32
34
|
| **模板** | 5 个分类共 6 个内置模板、源码与渲染双视图、变量填充、行级 diff、经 AGENTS.md 保存管线应用、用户模板 CRUD | FULL | 应用已端到端验证(先备份 + 回读 hash 一致)。模板只是数据,可执行内容会被拒绝。 |
|
|
33
35
|
| **中断恢复检测** | 从已记录的事件语义只读检测中断会话,给出证据与置信度;**绝不自动续跑** | PARTIAL | 按设计为检测档。事件语义检测在真实语料上验证且无误报;`kill -9` 崩溃现场本身未复现(需要隔离 profile 与明确授权)。 |
|
|
34
36
|
|
|
@@ -45,7 +47,7 @@ dsh plugin --profile web add dsh-agent-control-center
|
|
|
45
47
|
|
|
46
48
|
# 2) 从打包产物安装
|
|
47
49
|
npm pack
|
|
48
|
-
dsh plugin --profile web add ./dsh-agent-control-center-0.
|
|
50
|
+
dsh plugin --profile web add ./dsh-agent-control-center-0.3.0.tgz
|
|
49
51
|
|
|
50
52
|
# 3) 从本地 checkout 安装
|
|
51
53
|
dsh plugin --profile web add /绝对路径/dsh-agent-control-center
|
|
@@ -56,7 +58,7 @@ dsh plugin --profile web add /绝对路径/dsh-agent-control-center
|
|
|
56
58
|
|
|
57
59
|
```bash
|
|
58
60
|
curl -s http://127.0.0.1:<GUI端口>/__agent-control-center/health
|
|
59
|
-
# → {"ok":true,"value":{"version":"0.
|
|
61
|
+
# → {"ok":true,"value":{"version":"0.3.0", …, "modules":[ … 11 项 … ]}}
|
|
60
62
|
```
|
|
61
63
|
|
|
62
64
|
卸载:`dsh plugin --profile web remove dsh-agent-control-center`。
|
|
@@ -170,7 +172,7 @@ node scripts/release.mjs patch|minor|major [--dry-run] [--notes "text"]
|
|
|
170
172
|
|
|
171
173
|
| 项 | 值 |
|
|
172
174
|
|---|---|
|
|
173
|
-
| 插件版本 | `0.
|
|
175
|
+
| 插件版本 | `0.3.0` |
|
|
174
176
|
| 宿主区间 | `>=0.2.1-rc.1 <0.3.0`(`engines.dsh` 与 `dsh.compatibility.dsh`) |
|
|
175
177
|
| 验证环境 | DSH `0.2.2-rc.5`(web profile)、Node `v24.22.2`、Linux x86_64 |
|
|
176
178
|
| Node | `>=22.19`(CI:22 与 24) |
|