@kenz1117/dsh-engram 0.11.2 → 0.11.4
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/lib/client.js +1 -1
- package/lib/client.js.map +1 -1
- package/lib/index.js +339 -138
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,21 @@
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.11.4] - 2026-11-02
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **#44(回填估算的内存雪崩)**:`engram_ingest_history` 估算模式(dryRun)为统计轮次把时间窗内**每个候选会话的完整转写**载入内存并全程持有——内存随会话数线性增长(报告者实测约 5.5MB/会话、峰值 5910MB),桌面宿主 4GB V8 堆顶直接 SIGABRT。现在转写延迟加载:估算数完轮次即弃(峰值 O(并发 4)),执行路径处理到该会话时再读(峰值 O(1));执行期读取失败(选中后被删/损坏)跳过该会话继续(`session-unreadable`),不再中断整批。
|
|
18
|
+
- **#45(信念巩固整批丢弃)**:`engram_reflect` 把最多 30 条候选**全文**塞进一次调用,输出预算却固定 900——输出必然截断、整批丢弃、 beliefs 页永远空着且无任何报错(报告者一晚攒了 110 条 pending)。现在候选原文截断(200 字,与 stale 证据同纪律)、按 10 条分片调用、输出预算按动作数缩放(底价 + 单动作配额,封顶 8000)、超预算对半递归重试;解析失败或单片仍超限时该片计入新的 `dropped` 计数,工具体明说可重跑补做——失败可见。
|
|
19
|
+
- **#46(Jev/OpenCode Go 协议不符)**:opencode.ai 系端点的 System One 通道要求稳定的 `x-opencode-session` 头,插件此前不发,Go 订阅下所有裁决请求必然 400 MissingSessionID。现在 opencode 端点自动带进程级稳定会话头;非 2xx 错误带上游响应体摘录(此前只有裸 `HTTP 400`),MissingSessionID / Model is unavailable / Insufficient funds 可直接分辨。订阅侧模型可用性(jev-1.13 不在 Go 的 /models 列表)属上游问题,插件无法修复。
|
|
20
|
+
|
|
21
|
+
## [0.11.3] - 2026-11-01
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **#42(整理合并不收敛)**:合并相似条目时只归档重复项、种子条目保持 active,留下「种子 + 新节点」这对重复 active——每次插件重载触发整理都重新匹配、重新刻写一份副本(issue 报告:同一条 fact 3 天累积 54 份、53 份归档)。现在两条合并路径(嵌入可用 / 不可用)都把双方送进 supersedes 链,每轮合并净减一组重复、一轮收敛;幸存节点继承种子向量(不再是向量检索盲区),importance 取组内最大。
|
|
26
|
+
- **#42 附带(摄取输出超预算永久卡轮)**:`INGEST_MAX_TOKENS` 硬编码 4000,长转写/一次贴进数百行日志的轮次提取输出必然超限,且同样输入重跑永远失败——回填轮次被永久卡死(184 轮回填中 2 轮因此失败)。现在超预算(max-tokens)自动对半切块重试:多段文本按段对半分、单段文本按换行边界对半切,切到最小粒度仍超限的块放弃(贡献 0 候选),整轮照常收口为 done 而非永久 pending;每块真实调用均先落会话日志(model-visible ⟺ logged),空答案重试漏记日志的破口一并补上。
|
|
27
|
+
|
|
13
28
|
## [0.11.2] - 2026-10-30
|
|
14
29
|
|
|
15
30
|
### Added
|
|
@@ -367,7 +382,10 @@
|
|
|
367
382
|
|
|
368
383
|
- 首个可用版本:`engram_*` 工具集、插件入口、画像注入、SQLite + FTS5 + 关系边 + op log 的本地存储。
|
|
369
384
|
|
|
370
|
-
[Unreleased]: https://github.com/kenz1117/dsh-engram/compare/v0.11.
|
|
385
|
+
[Unreleased]: https://github.com/kenz1117/dsh-engram/compare/v0.11.4...HEAD
|
|
386
|
+
[0.11.4]: https://github.com/kenz1117/dsh-engram/compare/v0.11.3...v0.11.4
|
|
387
|
+
[0.11.3]: https://github.com/kenz1117/dsh-engram/compare/v0.11.2...v0.11.3
|
|
388
|
+
[0.11.2]: https://github.com/kenz1117/dsh-engram/compare/v0.11.1...v0.11.2
|
|
371
389
|
[0.11.1]: https://github.com/kenz1117/dsh-engram/compare/v0.11.0...v0.11.1
|
|
372
390
|
[0.11.0]: https://github.com/kenz1117/dsh-engram/compare/v0.10.0...v0.11.0
|
|
373
391
|
[0.10.0]: https://github.com/kenz1117/dsh-engram/compare/v0.9.9...v0.10.0
|