dsh-aurorix-agentbook 1.9.4 → 1.9.5

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/lib/host.js CHANGED
@@ -73,18 +73,22 @@ function readConfig(config) {
73
73
  enabled: get('enabled', true),
74
74
  injectSection: get('injectSection', false),
75
75
  injectSnapshot: get('injectSnapshot', true),
76
- // 这几个数字是「每轮重发的预算」,不是「能放多少」。
77
- // 快照随每一轮请求重发,所以体积直接乘以轮数:原来 60KB 一份,
78
- // 长会话里光记忆就吃掉几十万 token。默认收到能在不查库的情况下认得出
79
- // 「库里有没有相关条目」的最小规模——认不出的部分本来就该走检索。
80
- fullCount: Number(get('fullCount', 4)) || 0,
81
- briefCount: Number(get('briefCount', 8)) || 0,
82
- indexCount: Number(get('indexCount', 30)) || 0,
76
+ // 这几个数字是「每轮重发的内容规模」。快照随每轮请求重发,体积直接乘以轮数,
77
+ // 所以它们同时是费用上限和信息完整度两件事。
78
+ //
79
+ // 体积该省的地方是「同一件事说两遍」和「历史里堆副本」,不是记忆本身:
80
+ // 曾经试过把规模砍小来省字节,砍掉的直接是硬规则正文——rules 平面摘要
81
+ // 要把具体标识符与阈值带出来才能执行,只留标题等于删内容。实测完整内容
82
+ // 68.7KB 装得下,就不该为了好看的数字去截断。
83
+ // 这几个值沿用 1.9.3,没有下调。
84
+ fullCount: Number(get('fullCount', 6)) || 0,
85
+ briefCount: Number(get('briefCount', 12)) || 0,
86
+ indexCount: Number(get('indexCount', 120)) || 0,
83
87
  residentLimit: Number(get('residentLimit', 40)) || 40,
84
- briefChars: Number(get('briefChars', 80)) || 80,
88
+ briefChars: Number(get('briefChars', 110)) || 110,
85
89
  decayHalfLifeDays: Number(get('decayHalfLifeDays', 30)),
86
90
  accessBoost: Number(get('accessBoost', 80)),
87
- maxContextBytes: Number(get('maxContextBytes', 48000)) || 48000,
91
+ maxContextBytes: Number(get('maxContextBytes', 96000)) || 96000,
88
92
  refreshMs: Number(get('refreshMs', 15000)) || 15000,
89
93
  toolEnabled: get('toolEnabled', true) !== false,
90
94
  commandEnabled: get('commandEnabled', true) !== false,
package/lib/snapshot.js CHANGED
@@ -146,10 +146,11 @@ function scoreOf(record, access, now, halfLifeDays, accessBoost) {
146
146
  return base + boost - decay
147
147
  }
148
148
 
149
- // 规则条数多、密度高,摘要短一点就够认出是哪条;其余平面给足上下文。
150
- // rules 用 0 表示「摘要档只列标题」:规则标题平均 40 字节,本身已经把规则说清楚了,
151
- // 再附一段正文摘要等于同一条信息说两遍,白占 19KB/轮。
152
- const BRIEF_CHARS_BY_PLANE = { rules: 0 }
149
+ // 各平面摘要长度:给足能认出「是不是这条」的上下文。
150
+ // 曾经按 rules 标题已足够概括为由只列标题,结果把执行时必需的标识符删了——
151
+ // 「记忆机制分类与固定黑名单」这个标题看不到 `ENVIRONMENT_MEMORY` /
152
+ // `AURORIX_MEMORY` 两个分类名。体积不从记忆内容里省。
153
+ const BRIEF_CHARS_BY_PLANE = {}
153
154
 
154
155
  function renderTier(record, tier, briefChars) {
155
156
  const limit = BRIEF_CHARS_BY_PLANE[record.plane] ?? briefChars
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-aurorix-agentbook",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "dsh-aurorix-agentbook:给 dsh-go 与 Harness Web 接通 Aurorix 记忆库——原生界面(状态条/胶囊/菜单/面板/保险箱)与 Web 顶栏槽位面板,加宿主侧提示词注入、分层快照与八个工具。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",