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 +13 -9
- package/lib/snapshot.js +5 -4
- package/package.json +1 -1
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
|
-
//
|
|
78
|
-
//
|
|
79
|
-
//
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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',
|
|
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',
|
|
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
|
|
151
|
-
//
|
|
152
|
-
|
|
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