dsh-gokifu-compact 1.8.0 → 1.8.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # 更新记录
2
2
 
3
+ ## 1.8.1 — 2026-10-29
4
+
5
+ ### doctor:一天的 fold 收益一眼可见
6
+
7
+ - 新增「今天 fold 的总量」:`N 次(M 个会话)· 合计遮蔽 X tokens` —— 数据来自各会话棋谱的
8
+ `foldMarks`(按 fold 发生的 `at` 过滤,不按文件 mtime),不用翻会话日志
9
+ - 实测(2026-10-29):今天 26 次 fold / 12 个会话 / 遮蔽 **2,304,388 tokens**;重启后 **0 失败**
10
+ - 「上次 fold 的成本」继续显示真实 usage(含 provider 缓存字段:一次缓存命中的 fold 只有
11
+ 5,329 新输入 + 647,168 缓存读,冷启动那次则是 629,184 全新输入)
12
+
3
13
  ## 1.8.0 — 2026-10-29
4
14
 
5
15
  ### 配置 id 统一 + 安装改成「两条命令、不用手改 YAML」
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-gokifu-compact",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "DSH context-compression backend with a **go game record (kifu)** DAG: node = position, edge = attempted move + result. Incremental fold (each span summarized once), failure memory that survives compaction, transposition detection (chess-engine style), and a tiny hot ledger rebuilt every step.",
5
5
  "type": "module",
6
6
  "main": "src/engine.mjs",