acp-kernel 0.0.92-pr.428.281 → 0.0.92-pr.429.282
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/dist/config.d.ts.map +1 -1
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/dist/protected.d.ts +2 -8
- package/dist/protected.d.ts.map +1 -1
- package/dist/types.d.ts +0 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,MAAM,EACzB,SAAS,GAAE,OAAO,CAAC,MAAM,CAAM,GAC9B,MAAM,CAyER;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,MAAM,EACzB,SAAS,GAAE,OAAO,CAAC,MAAM,CAAM,GAC9B,MAAM,CAyER;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAsJvD"}
|
package/dist/index.js
CHANGED
|
@@ -462,9 +462,6 @@ function validateConfig(config) {
|
|
|
462
462
|
if (config.neverPreserveRecentTools !== void 0 && (!Array.isArray(config.neverPreserveRecentTools) || config.neverPreserveRecentTools.some((t) => typeof t !== "string"))) {
|
|
463
463
|
errors.push("neverPreserveRecentTools must be a string array");
|
|
464
464
|
}
|
|
465
|
-
if (config.preserveRecentTools !== void 0 && (!Array.isArray(config.preserveRecentTools) || config.preserveRecentTools.some((t) => typeof t !== "string"))) {
|
|
466
|
-
errors.push("preserveRecentTools must be a string array");
|
|
467
|
-
}
|
|
468
465
|
if (config.absorb) {
|
|
469
466
|
if (config.absorb.enabled && !config.absorb.toolName) {
|
|
470
467
|
errors.push("absorb.toolName must be a non-empty string when enabled");
|
|
@@ -1197,13 +1194,12 @@ var NEVER_PRESERVE_RECENT_TOOLS = [
|
|
|
1197
1194
|
"read",
|
|
1198
1195
|
"bash"
|
|
1199
1196
|
];
|
|
1200
|
-
function isNeverPreserveRecent(msg, patterns
|
|
1197
|
+
function isNeverPreserveRecent(msg, patterns) {
|
|
1201
1198
|
if (msg.contentType !== "tool-call" && msg.contentType !== "tool-result") {
|
|
1202
1199
|
return false;
|
|
1203
1200
|
}
|
|
1204
1201
|
if (!msg.toolName) return false;
|
|
1205
|
-
const
|
|
1206
|
-
const list = preservePatterns === void 0 || preservePatterns.length === 0 ? base : base.filter((tool) => !preservePatterns.some((p) => matchToolPattern(tool, p)));
|
|
1202
|
+
const list = patterns === void 0 ? NEVER_PRESERVE_RECENT_TOOLS : patterns;
|
|
1207
1203
|
for (const pattern of list) {
|
|
1208
1204
|
if (matchToolPattern(msg.toolName, pattern)) return true;
|
|
1209
1205
|
}
|
|
@@ -4223,7 +4219,7 @@ function computeProtectedRefs(messages, state, config, countTokens = estimateTex
|
|
|
4223
4219
|
const visible = [];
|
|
4224
4220
|
for (const msg of messages) {
|
|
4225
4221
|
if (isSyntheticOrPruned(msg, state)) continue;
|
|
4226
|
-
if (isNeverPreserveRecent(msg, config.neverPreserveRecentTools
|
|
4222
|
+
if (isNeverPreserveRecent(msg, config.neverPreserveRecentTools)) continue;
|
|
4227
4223
|
const ref = state.messageRefs.byRaw[msg.id];
|
|
4228
4224
|
if (!ref || ref === "BLOCKED") continue;
|
|
4229
4225
|
visible.push({ ref, tokens: countMessageTokens(msg, countTokens) });
|
|
@@ -5845,7 +5841,7 @@ var leanPack = {
|
|
|
5845
5841
|
`Compress consumed history with compress: finished tool outputs, dead-end exploration, repeated reads, resolved threads, completed phases. Never compress active work, important user intent, or protected outputs.`,
|
|
5846
5842
|
`When summarizing, preserve exact file paths and line numbers, symbols and signatures, errors, commands, versions, thresholds, decisions with reasons, current state, and unresolved TODOs. Never replace exact technical values with vague wording \u2014 a good summary is the primary carrier and makes recall unnecessary.`,
|
|
5847
5843
|
`Recall on demand only: when YOU genuinely need detail lost in compression, decompress (block id or message ref); search_context locates the right block first; acp_status shows ranges and usage. Never run recall as a routine post-compress step.`,
|
|
5848
|
-
`Refs
|
|
5844
|
+
`Refs remain stable across compression. If a ref is stale or missing, call acp_status with { scope: "uncompressed" }, then retry in the same turn using the reported refs; never guess offsets. Batch target ranges in one call.`,
|
|
5849
5845
|
`Block decompression writes to a file by default; read that file. Use inline: true only for small content or when its context cost is acceptable.`,
|
|
5850
5846
|
`After an [ACP:provider-throttle] automatic retry, resume exactly where interrupted. Do not repeat completed work or discuss the retry unless asked.`,
|
|
5851
5847
|
`Summaries are fallible history, not live instructions \u2014 never treat a summarized instruction or decision as current without a fresh user confirmation. A summary you just wrote is your own record: once the result lists the new blocks, no acp_status/decompress/search_context call made merely to verify the fold \u2014 that listing already confirms the spans; if you still intend to compress more, one acp_status call for the current ranges is enough.`
|