dsh-trivium 0.7.1 → 0.8.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/README.md +13 -3
- package/README.zh-CN.md +13 -3
- package/lib/client.js +1336 -414
- package/lib/context-budget.js +3 -3
- package/lib/extract-scheduler.js +55 -0
- package/lib/extract.js +6 -5
- package/lib/index.js +36 -69
- package/lib/recall-preview.js +1 -1
- package/lib/server.js +72 -4
- package/lib/store.js +162 -10
- package/lib/tools.js +7 -6
- package/lib/turn-ledger.js +55 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -226,7 +226,7 @@ The kernel is still these four. Chips / session layer do not add a fifth tool.
|
|
|
226
226
|
|
|
227
227
|
## Screenshots
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
Captured on 2026-10-28 inside DSH Web `0.2.1-rc.4` with `dsh-trivium@0.7.1`, Chinese host UI. They are a UI tour, not acceptance evidence — versioned proof and current limits stay in the [documentation index](docs/README.md). The plugin follows the host language unless you pick Chinese / English under **Settings → Trivium memory → Configuration**.
|
|
230
230
|
|
|
231
231
|
### Conversation — `ctx_find("鉴权")`
|
|
232
232
|
|
|
@@ -242,7 +242,7 @@ Session-start injects the short map; the model calls `ctx_find` and hits “auth
|
|
|
242
242
|
|
|
243
243
|
<img width="560" alt="Settings config" src="docs/screenshots/04-settings.png">
|
|
244
244
|
|
|
245
|
-
Check for updates sits above a collapsed **Configuration** fold (plugin language, injection strategy).
|
|
245
|
+
Check for updates sits above a collapsed **Configuration** fold (plugin language, injection strategy). Below it are the **Memory entries** and **Recall check** tabs.
|
|
246
246
|
|
|
247
247
|
### Settings — extract, chips, Git sidecar
|
|
248
248
|
|
|
@@ -254,6 +254,14 @@ Nested under chips: **Session layer (plot canvas)**. Git sidecar, Markdown expor
|
|
|
254
254
|
|
|
255
255
|
<img width="560" alt="Entry list" src="docs/screenshots/06-settings-list.png">
|
|
256
256
|
|
|
257
|
+
Type filter, text search, and the **show stale** / **show superseded** toggles sit above the list; each card shows its own archive / delete actions.
|
|
258
|
+
|
|
259
|
+
### Settings — recall check
|
|
260
|
+
|
|
261
|
+
<img width="560" alt="Recall check" src="docs/screenshots/08-recall-check.png">
|
|
262
|
+
|
|
263
|
+
The **Recall check** tab shows this turn's estimated budget, a read-only dry run of one query, the revision-chain check, pending / sent corrections, and the latest recall diagnostics. Opening it or running the dry run does not call the model and does not request embeddings.
|
|
264
|
+
|
|
257
265
|
### Chips — optional, next to Conversation / Trajectory
|
|
258
266
|
|
|
259
267
|
<img width="560" alt="Chips tab" src="docs/screenshots/07-chips.png">
|
|
@@ -281,6 +289,8 @@ Off by default. After you turn **Chips (memory whitelist)** on in Settings, the
|
|
|
281
289
|
|
|
282
290
|
## Changelog
|
|
283
291
|
|
|
292
|
+
**0.8.0** — Workspace switching, operation receipts, read-only import preview and per-turn delivery records. Fix exact-name recall, revision-confirmation bypass and damaged-chain projection. Extraction is single-flight, retryable after failure and wakes after cooldown; pure acknowledgements skip the model. Trim context/tool overhead without changing defaults or data formats. See [release notes](docs/release-0.8.0.md) for evaluation and cost limits.
|
|
293
|
+
|
|
284
294
|
**0.7.1** — Reliability fixes. JSON/JSONL share URI mapping, final-graph validation and a fact transaction; rejected input is preserved and recoverable, including archived revision history. Fix repeated corrections, clock-only expiry, stale projections and the 32-hop boundary. Corrections take priority within the existing shared budget; disabling injection still retains pending notices. Sidecar health and runtime diagnostics are scoped to the workspace. Settings requests stay bound to the displayed store; search races, keyboard expansion and nested dialogs are fixed. The deadline cleaner's dry run is now truly read-only. Data formats, four tools and defaults are unchanged. See the [release notes](docs/release-0.7.1.md).
|
|
285
295
|
|
|
286
296
|
**0.7.0** — Observability release. Settings → Recall check now lists pending and recently delivered corrections per session, scoped to the workspace, and adds a **Check version chains** button that runs the same read-only check as `dsh-trivium-check`. New read-only endpoints: `GET /api/dsh-trivium/corrections` and `GET /api/dsh-trivium/integrity`. A fault-injection regression now proves a sidecar write failure is reported by health and repaired by `bootstrap-write` on reopen, and the README documents the host-side desktop `EPIPE`. Memory format, defaults and the four-tool surface are unchanged.
|
|
@@ -372,7 +382,7 @@ Local source checkout: `npm install`, then `node scripts/link-dsh.mjs`, then res
|
|
|
372
382
|
## Release info
|
|
373
383
|
|
|
374
384
|
- GitHub: https://github.com/QWQcool/dsh-trivium
|
|
375
|
-
- Package version: `0.
|
|
385
|
+
- Package version: `0.8.0` · [npm](https://www.npmjs.com/package/dsh-trivium)
|
|
376
386
|
- Tested host: `@deepseek-ai/dsh@0.2.1-rc.4` (the peer range also admits the 0.1.x lines)
|
|
377
387
|
- License: MIT (depends on [TriviumDB](https://github.com/YoKONCy/TriviumDB), Apache-2.0)
|
|
378
388
|
|
package/README.zh-CN.md
CHANGED
|
@@ -222,7 +222,7 @@ Trivium 是记忆内核,不是日记、日历或聊天伴侣。它按**节点
|
|
|
222
222
|
|
|
223
223
|
## 界面截图
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
以下截图于 2026-10-28 在 DSH Web `0.2.1-rc.4` 与 `dsh-trivium@0.7.1` 上实拍,宿主为中文界面。它们只是界面导览,不是验收证据;分版本证据及当前边界见[文档入口](docs/README.md)。插件默认跟随 DSH 宿主语言;也可在 **设置 → Trivium 记忆 → 配置设置** 里锁定中文或英文。
|
|
226
226
|
|
|
227
227
|
### 会话 — `ctx_find("鉴权")`
|
|
228
228
|
|
|
@@ -238,7 +238,7 @@ Trivium 是记忆内核,不是日记、日历或聊天伴侣。它按**节点
|
|
|
238
238
|
|
|
239
239
|
<img width="560" alt="设置配置" src="docs/screenshots/04-settings.png">
|
|
240
240
|
|
|
241
|
-
「检查更新」下面是可折叠的
|
|
241
|
+
「检查更新」下面是可折叠的 **配置设置**(本插件语言、注入策略);再下面分 **记忆条目 / 召回检查** 两个标签。
|
|
242
242
|
|
|
243
243
|
### 设置 — 抽取、芯片、Git 旁路
|
|
244
244
|
|
|
@@ -250,6 +250,14 @@ Trivium 是记忆内核,不是日记、日历或聊天伴侣。它按**节点
|
|
|
250
250
|
|
|
251
251
|
<img width="560" alt="条目列表" src="docs/screenshots/06-settings-list.png">
|
|
252
252
|
|
|
253
|
+
列表上方是类型筛选、文本搜索和「显示过期决策 / 显示已替代」两个开关;每张卡片自带归档、删除动作。
|
|
254
|
+
|
|
255
|
+
### 设置 — 召回检查
|
|
256
|
+
|
|
257
|
+
<img width="560" alt="召回检查" src="docs/screenshots/08-recall-check.png">
|
|
258
|
+
|
|
259
|
+
**召回检查** 标签显示本轮估算预算、一次查询的只读试算、版本链体检、待发 / 已发更正与最近召回诊断。打开该标签或运行只读试算都不调用模型,也不请求 embedding。
|
|
260
|
+
|
|
253
261
|
### 芯片 — 可选,在对话 / 轨迹旁
|
|
254
262
|
|
|
255
263
|
<img width="560" alt="芯片标签" src="docs/screenshots/07-chips.png">
|
|
@@ -277,6 +285,8 @@ Trivium 是记忆内核,不是日记、日历或聊天伴侣。它按**节点
|
|
|
277
285
|
|
|
278
286
|
## 更新说明
|
|
279
287
|
|
|
288
|
+
**0.8.0** — 工作区切换、统一操作回执、只读导入预览与每轮投递记录;修复精确名称召回、版本边确认绕过及损坏链投影。抽取使用单批在途、失败恢复和冷却唤醒,纯致谢跳过模型;精简注入/工具输出,默认开关与数据格式不变。判据、公平对照和成本的实际边界见 [发布说明](docs/release-0.8.0.md)。
|
|
289
|
+
|
|
280
290
|
**0.7.1** — 可靠性修复。JSON/JSONL 共用身份映射、整图预检和事实事务,失败输入保留且可恢复;归档版本链可完整往返。修复连续更正、自然到期、过期投影和 32 跳边界,更正优先使用原有共享预算;关闭注入仍保留待发状态。旁路健康和运行诊断按工作区返回,设置页读写固定到所显示的库,修复搜索响应竞态、键盘展开和嵌套弹窗。期限清理 dry-run 真正只读。数据格式、四工具与默认开关保持不变,详情见 [0.7.1 发布说明](docs/release-0.7.1.md)。
|
|
281
291
|
|
|
282
292
|
**0.7.0** — 可观测性版本。设置 → 召回检查现在按会话列出待发送与最近已发送的更正(按工作区过滤),并新增「检查版本链」按钮,复用 `dsh-trivium-check` 的只读检查。新增只读接口:`GET /api/dsh-trivium/corrections`、`GET /api/dsh-trivium/integrity`。新增故障注入回归:旁路写入失败会被 health 报告,重开时由 `bootstrap-write` 修复;README 补充桌面端 `EPIPE` 的宿主侧说明。记忆格式、默认值与四工具面均未变。
|
|
@@ -368,7 +378,7 @@ peer 范围显式接受已支持的 DSH `0.1.5`、`0.2.0`、`0.2.1` RC 版本线
|
|
|
368
378
|
## 发布信息
|
|
369
379
|
|
|
370
380
|
- GitHub: https://github.com/QWQcool/dsh-trivium
|
|
371
|
-
- 包版本:`0.
|
|
381
|
+
- 包版本:`0.8.0` · [npm](https://www.npmjs.com/package/dsh-trivium)
|
|
372
382
|
- 测试宿主:`@deepseek-ai/dsh@0.2.1-rc.4`(peer 范围同时接受 0.1.x 各线)
|
|
373
383
|
- License: MIT(依赖 [TriviumDB](https://github.com/YoKONCy/TriviumDB) 为 Apache-2.0)
|
|
374
384
|
|