acp-kernel 0.0.59-pr.225.76 → 0.0.59-pr.226.77
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/{chunk-UX4LINT7.js → chunk-C4EQEGJ4.js} +14 -2
- package/dist/chunk-C4EQEGJ4.js.map +1 -0
- package/dist/compress.d.ts +6 -4
- package/dist/compress.d.ts.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/hide-consumed.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +111 -106
- package/dist/index.js.map +1 -1
- package/dist/persist/index.js +1 -1
- package/dist/recommend.d.ts.map +1 -1
- package/dist/state.d.ts +9 -0
- package/dist/state.d.ts.map +1 -1
- package/dist/strip-reasoning.d.ts +23 -0
- package/dist/strip-reasoning.d.ts.map +1 -0
- package/dist/sync.d.ts.map +1 -1
- package/dist/types.d.ts +9 -13
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-UX4LINT7.js.map +0 -1
|
@@ -33,11 +33,21 @@ function blockById(state, blockId) {
|
|
|
33
33
|
function activeBlocks(state) {
|
|
34
34
|
return state.blocks.filter((block) => block.active);
|
|
35
35
|
}
|
|
36
|
+
function baseMessageId(id) {
|
|
37
|
+
const hash = id.indexOf("#");
|
|
38
|
+
return hash === -1 ? id : id.slice(0, hash);
|
|
39
|
+
}
|
|
40
|
+
function isIdCovered(covered, id) {
|
|
41
|
+
return covered.has(id) || covered.has(baseMessageId(id));
|
|
42
|
+
}
|
|
36
43
|
function coveredMessageIds(state) {
|
|
37
44
|
const covered = /* @__PURE__ */ new Set();
|
|
38
45
|
for (const block of state.blocks) {
|
|
39
46
|
if (!block.active) continue;
|
|
40
|
-
for (const id of block.effectiveMessageIds)
|
|
47
|
+
for (const id of block.effectiveMessageIds) {
|
|
48
|
+
covered.add(id);
|
|
49
|
+
covered.add(baseMessageId(id));
|
|
50
|
+
}
|
|
41
51
|
}
|
|
42
52
|
return covered;
|
|
43
53
|
}
|
|
@@ -64,8 +74,10 @@ export {
|
|
|
64
74
|
allocateRunId,
|
|
65
75
|
blockById,
|
|
66
76
|
activeBlocks,
|
|
77
|
+
baseMessageId,
|
|
78
|
+
isIdCovered,
|
|
67
79
|
coveredMessageIds,
|
|
68
80
|
highestActiveTier,
|
|
69
81
|
advanceSurvival
|
|
70
82
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
83
|
+
//# sourceMappingURL=chunk-C4EQEGJ4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/state.ts"],"sourcesContent":["import type { CompressionBlock, CompressionState } from \"./types.js\";\n\nexport function createInitialState(): CompressionState {\n return {\n blocks: [],\n messageRefs: { byRaw: {}, byRef: {} },\n tokenSnapshot: {},\n nudge: {\n lastPerMessageNudgeTokens: 0,\n lastNudgeShownTokens: 0,\n baselineTokens: 0,\n anchors: {},\n lastShownByTier: {},\n },\n stats: { tokensCompressed: 0, compressionCount: 0, absorbedTokens: 0 },\n absorbed: [],\n nextBlockId: 1,\n nextRunId: 1,\n };\n}\n\nexport function allocateBlockId(state: CompressionState): string {\n const id = state.nextBlockId;\n state.nextBlockId = Math.max(1, id) + 1;\n return `b${id}`;\n}\n\nexport function allocateRunId(state: CompressionState): string {\n const id = state.nextRunId;\n state.nextRunId = Math.max(1, id) + 1;\n return `r${id}`;\n}\n\nexport function blockById(\n state: CompressionState,\n blockId: string,\n): CompressionBlock | undefined {\n return state.blocks.find((block) => block.blockId === blockId);\n}\n\nexport function activeBlocks(state: CompressionState): CompressionBlock[] {\n return state.blocks.filter((block) => block.active);\n}\n\n/**\n * Host projections may append a `#suffix` to a core message id (e.g.\n * `base#callId`, `base#r0`) to represent a variant of the same logical\n * message. Coverage is defined on the base id: a message is covered when any\n * sibling projection of it is covered by an active block.\n */\nexport function baseMessageId(id: string): string {\n const hash = id.indexOf(\"#\");\n return hash === -1 ? id : id.slice(0, hash);\n}\n\n/** True when `id` or any sibling projection of it is in `covered`. */\nexport function isIdCovered(covered: Set<string>, id: string): boolean {\n return covered.has(id) || covered.has(baseMessageId(id));\n}\n\nexport function coveredMessageIds(state: CompressionState): Set<string> {\n const covered = new Set<string>();\n for (const block of state.blocks) {\n if (!block.active) continue;\n for (const id of block.effectiveMessageIds) {\n covered.add(id);\n covered.add(baseMessageId(id));\n }\n }\n return covered;\n}\n\nexport function highestActiveTier(state: CompressionState): 0 | 1 | 2 | 3 {\n let highest: 0 | 1 | 2 | 3 = 0;\n for (const block of state.blocks) {\n if (block.active && block.tier > highest) highest = block.tier;\n }\n return highest;\n}\n\nexport function advanceSurvival(\n state: CompressionState,\n promotionThreshold: number,\n): void {\n for (const block of state.blocks) {\n if (!block.active) continue;\n block.survivedCount += 1;\n if (block.survivedCount >= promotionThreshold) {\n block.generation = \"old\";\n }\n }\n}\n"],"mappings":";AAEO,SAAS,qBAAuC;AACrD,SAAO;AAAA,IACL,QAAQ,CAAC;AAAA,IACT,aAAa,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,EAAE;AAAA,IACpC,eAAe,CAAC;AAAA,IAChB,OAAO;AAAA,MACL,2BAA2B;AAAA,MAC3B,sBAAsB;AAAA,MACtB,gBAAgB;AAAA,MAChB,SAAS,CAAC;AAAA,MACV,iBAAiB,CAAC;AAAA,IACpB;AAAA,IACA,OAAO,EAAE,kBAAkB,GAAG,kBAAkB,GAAG,gBAAgB,EAAE;AAAA,IACrE,UAAU,CAAC;AAAA,IACX,aAAa;AAAA,IACb,WAAW;AAAA,EACb;AACF;AAEO,SAAS,gBAAgB,OAAiC;AAC/D,QAAM,KAAK,MAAM;AACjB,QAAM,cAAc,KAAK,IAAI,GAAG,EAAE,IAAI;AACtC,SAAO,IAAI,EAAE;AACf;AAEO,SAAS,cAAc,OAAiC;AAC7D,QAAM,KAAK,MAAM;AACjB,QAAM,YAAY,KAAK,IAAI,GAAG,EAAE,IAAI;AACpC,SAAO,IAAI,EAAE;AACf;AAEO,SAAS,UACd,OACA,SAC8B;AAC9B,SAAO,MAAM,OAAO,KAAK,CAAC,UAAU,MAAM,YAAY,OAAO;AAC/D;AAEO,SAAS,aAAa,OAA6C;AACxE,SAAO,MAAM,OAAO,OAAO,CAAC,UAAU,MAAM,MAAM;AACpD;AAQO,SAAS,cAAc,IAAoB;AAChD,QAAM,OAAO,GAAG,QAAQ,GAAG;AAC3B,SAAO,SAAS,KAAK,KAAK,GAAG,MAAM,GAAG,IAAI;AAC5C;AAGO,SAAS,YAAY,SAAsB,IAAqB;AACrE,SAAO,QAAQ,IAAI,EAAE,KAAK,QAAQ,IAAI,cAAc,EAAE,CAAC;AACzD;AAEO,SAAS,kBAAkB,OAAsC;AACtE,QAAM,UAAU,oBAAI,IAAY;AAChC,aAAW,SAAS,MAAM,QAAQ;AAChC,QAAI,CAAC,MAAM,OAAQ;AACnB,eAAW,MAAM,MAAM,qBAAqB;AAC1C,cAAQ,IAAI,EAAE;AACd,cAAQ,IAAI,cAAc,EAAE,CAAC;AAAA,IAC/B;AAAA,EACF;AACA,SAAO;AACT;AAEO,SAAS,kBAAkB,OAAwC;AACxE,MAAI,UAAyB;AAC7B,aAAW,SAAS,MAAM,QAAQ;AAChC,QAAI,MAAM,UAAU,MAAM,OAAO,QAAS,WAAU,MAAM;AAAA,EAC5D;AACA,SAAO;AACT;AAEO,SAAS,gBACd,OACA,oBACM;AACN,aAAW,SAAS,MAAM,QAAQ;AAChC,QAAI,CAAC,MAAM,OAAQ;AACnB,UAAM,iBAAiB;AACvB,QAAI,MAAM,iBAAiB,oBAAoB;AAC7C,YAAM,aAAa;AAAA,IACrB;AAAA,EACF;AACF;","names":[]}
|
package/dist/compress.d.ts
CHANGED
|
@@ -18,10 +18,12 @@ export interface ProcessTurnInput {
|
|
|
18
18
|
state: CompressionState;
|
|
19
19
|
config: Config;
|
|
20
20
|
tokenCount: number;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
21
|
+
/**
|
|
22
|
+
* Host-reported context mass the kernel cannot see (wire-level replayed
|
|
23
|
+
* reasoning, system prompt, provider overhead). Folded into usage and
|
|
24
|
+
* pressure so the pressure band tracks real provider-side usage instead of
|
|
25
|
+
* only the kernel-visible view.
|
|
26
|
+
*/
|
|
25
27
|
extraTokens?: number;
|
|
26
28
|
/**
|
|
27
29
|
* Which messages get an <acp> ref tag injected into their text
|
package/dist/compress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compress.d.ts","sourceRoot":"","sources":["../src/compress.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compress.d.ts","sourceRoot":"","sources":["../src/compress.ts"],"names":[],"mappings":"AAUA,OAAO,EAAkC,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAehF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAEhB,MAAM,EAEN,WAAW,EAGX,iBAAiB,EAEjB,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,KAAK;IACpB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACxC;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;IACxD,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,sBAAsB,CAAC;IACvE,YAAY,IAAI,YAAY,EAAE,CAAC;IAC/B,UAAU,CACR,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,gBAAgB,GACtB,gBAAgB,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IACnE,MAAM,CACJ,KAAK,EAAE,gBAAgB,EACvB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,GACb,YAAY,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,EAAE,CAAC;IACJ,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACnC;AAgED,wBAAgB,UAAU,CAAC,KAAK,GAAE,KAAU,GAAG,eAAe,CA0U7D;AAk9BD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
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,
|
|
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,CAgDR;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CA+DvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hide-consumed.d.ts","sourceRoot":"","sources":["../src/hide-consumed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAYhE,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"hide-consumed.d.ts","sourceRoot":"","sources":["../src/hide-consumed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAYhE,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CAClB;AAiED,wBAAgB,yBAAyB,CACrC,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,WAAW,EAAE,GACxB,kBAAkB,CAmFpB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./types.js";
|
|
2
2
|
export { createCore } from "./compress.js";
|
|
3
3
|
export type { Ports, CompressionCore, ProcessTurnInput, ApplyCompressionInput, } from "./compress.js";
|
|
4
|
-
export { createInitialState, allocateBlockId, allocateRunId, blockById, activeBlocks, coveredMessageIds, highestActiveTier, advanceSurvival, } from "./state.js";
|
|
4
|
+
export { createInitialState, allocateBlockId, allocateRunId, blockById, activeBlocks, coveredMessageIds, highestActiveTier, advanceSurvival, baseMessageId, isIdCovered, } from "./state.js";
|
|
5
5
|
export { defaultConfig, validateConfig } from "./config.js";
|
|
6
6
|
export * from "./compress-tools.js";
|
|
7
7
|
export { assignRefs, highestUsedIndex, emptyRefMap, indexToRef, refToIndex, refForRaw, rawForRef, BLOCKED_REF, } from "./refs.js";
|
|
@@ -25,6 +25,8 @@ export { renderHandoff, renderMessage, matchSession } from "./handoff.js";
|
|
|
25
25
|
export type { HandoffInput, HandoffMeta, HandoffBlockFull } from "./handoff.js";
|
|
26
26
|
export { hideConsumedCompressCalls } from "./hide-consumed.js";
|
|
27
27
|
export type { HideConsumedResult } from "./hide-consumed.js";
|
|
28
|
+
export { stripReasoningByRound, isRealUserMessage } from "./strip-reasoning.js";
|
|
29
|
+
export type { StripReasoningResult } from "./strip-reasoning.js";
|
|
28
30
|
export { ABSORB_TOOL_NAME, ABSORB_TOOL, ABSORB_TOOL_OPENAI, } from "./compress-tools.js";
|
|
29
31
|
export { ABSORB_PROMPT_MARKER, DEFAULT_ABSORB_CONFIG, resolveAbsorbConfig, buildAbsorbPrompt, buildAbsorbSystemPrompt, isAbsorbCandidate, hideAbsorbedMessages, appendAbsorbPrompts, parseAbsorbInput, applyAbsorb, } from "./absorb.js";
|
|
30
32
|
export type { AbsorbInput, AbsorbOutcome, ParsedAbsorb, AppendAbsorbPromptsResult, } from "./absorb.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EACV,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -18,11 +18,13 @@ import {
|
|
|
18
18
|
advanceSurvival,
|
|
19
19
|
allocateBlockId,
|
|
20
20
|
allocateRunId,
|
|
21
|
+
baseMessageId,
|
|
21
22
|
blockById,
|
|
22
23
|
coveredMessageIds,
|
|
23
24
|
createInitialState,
|
|
24
|
-
highestActiveTier
|
|
25
|
-
|
|
25
|
+
highestActiveTier,
|
|
26
|
+
isIdCovered
|
|
27
|
+
} from "./chunk-C4EQEGJ4.js";
|
|
26
28
|
|
|
27
29
|
// src/refs.ts
|
|
28
30
|
var REF_WIDTH = 5;
|
|
@@ -133,17 +135,6 @@ function prune(messages, state, options = {}) {
|
|
|
133
135
|
)
|
|
134
136
|
);
|
|
135
137
|
}
|
|
136
|
-
function isCovered(id, covered) {
|
|
137
|
-
if (covered.has(id)) return true;
|
|
138
|
-
const hash = id.indexOf("#");
|
|
139
|
-
if (hash <= 0) return false;
|
|
140
|
-
const base = id.substring(0, hash);
|
|
141
|
-
if (covered.has(base)) return true;
|
|
142
|
-
for (const coveredId of covered) {
|
|
143
|
-
if (coveredId.startsWith(`${base}#`)) return true;
|
|
144
|
-
}
|
|
145
|
-
return false;
|
|
146
|
-
}
|
|
147
138
|
function collectSummaryAnchors(state, indexById, summaryIndexById) {
|
|
148
139
|
const anchors = [];
|
|
149
140
|
for (const block of activeBlocks(state)) {
|
|
@@ -188,7 +179,7 @@ function rebuildMessages(messages, covered, firstUserIndex, anchors) {
|
|
|
188
179
|
result.push(messages[index]);
|
|
189
180
|
continue;
|
|
190
181
|
}
|
|
191
|
-
if (
|
|
182
|
+
if (isIdCovered(covered, messages[index].id)) continue;
|
|
192
183
|
if (isRenderedSummaryMessage(messages[index]) && anchoredSummaryIds.has(messages[index].id))
|
|
193
184
|
continue;
|
|
194
185
|
result.push(messages[index]);
|
|
@@ -254,6 +245,7 @@ function stripOrphanedReasoning(messages) {
|
|
|
254
245
|
// src/sync.ts
|
|
255
246
|
function syncBlocks(messages, state) {
|
|
256
247
|
const presentIds = new Set(messages.map((message) => message.id));
|
|
248
|
+
const presentBases = new Set(messages.map((message) => baseMessageId(message.id)));
|
|
257
249
|
const deactivated = [];
|
|
258
250
|
const result = {
|
|
259
251
|
blocks: state.blocks.map((block) => ({
|
|
@@ -300,7 +292,9 @@ function syncBlocks(messages, state) {
|
|
|
300
292
|
continue;
|
|
301
293
|
}
|
|
302
294
|
block.active = true;
|
|
303
|
-
const stillPresent = block.effectiveMessageIds.some(
|
|
295
|
+
const stillPresent = block.effectiveMessageIds.some(
|
|
296
|
+
(id) => presentIds.has(id) || presentBases.has(baseMessageId(id))
|
|
297
|
+
) || presentIds.has(summaryMessageId(block.blockId));
|
|
304
298
|
if (!stillPresent) {
|
|
305
299
|
block.active = false;
|
|
306
300
|
deactivated.push(block.blockId);
|
|
@@ -338,6 +332,7 @@ function defaultConfig(modelContextLimit, overrides = {}) {
|
|
|
338
332
|
preserveRecentMessages: 5,
|
|
339
333
|
preserveRecentTokens: 5e3,
|
|
340
334
|
modelContextLimit,
|
|
335
|
+
reasoningReplay: "always",
|
|
341
336
|
absorb: {
|
|
342
337
|
enabled: false,
|
|
343
338
|
toolName: "absorb",
|
|
@@ -374,6 +369,9 @@ function validateConfig(config) {
|
|
|
374
369
|
if (config.nudge.minPressureBenefitTokens !== void 0 && (!Number.isFinite(config.nudge.minPressureBenefitTokens) || config.nudge.minPressureBenefitTokens < 0)) {
|
|
375
370
|
errors.push("nudge.minPressureBenefitTokens must be finite and >= 0");
|
|
376
371
|
}
|
|
372
|
+
if (config.reasoningReplay !== void 0 && config.reasoningReplay !== "always" && config.reasoningReplay !== "open-round" && config.reasoningReplay !== "never") {
|
|
373
|
+
errors.push('reasoningReplay must be "always", "open-round", or "never"');
|
|
374
|
+
}
|
|
377
375
|
if (config.promotionThreshold < 1) {
|
|
378
376
|
errors.push("promotionThreshold must be >= 1");
|
|
379
377
|
}
|
|
@@ -677,57 +675,45 @@ var KEEP_LAST_ORPHANED = 2;
|
|
|
677
675
|
function rangeKey(startRef, endRef) {
|
|
678
676
|
return `${startRef}::${endRef}`;
|
|
679
677
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
678
|
+
var LT = "<";
|
|
679
|
+
var GT = ">";
|
|
680
|
+
var REF_TAG_PREFIX_RE = new RegExp(
|
|
681
|
+
"^" + LT + "acp [^" + GT + "]*" + GT + "m\\d{1,5}" + LT + "/acp" + GT + "\\n?"
|
|
682
|
+
);
|
|
683
|
+
var SUMMARY_STUB_CHARS = 200;
|
|
684
|
+
function stubSummary(entry) {
|
|
685
|
+
const summary = entry.summary;
|
|
686
|
+
if (typeof summary === "string" && summary.length > SUMMARY_STUB_CHARS) {
|
|
687
|
+
return { ...entry, summary: summary.slice(0, SUMMARY_STUB_CHARS) + "\u2026" };
|
|
688
|
+
}
|
|
689
|
+
return entry;
|
|
690
|
+
}
|
|
691
|
+
function entryRef(entry, ...fields) {
|
|
692
|
+
for (const field of fields) {
|
|
693
|
+
const value = entry[field];
|
|
694
|
+
if (typeof value === "string") return value;
|
|
695
|
+
}
|
|
696
|
+
return "";
|
|
697
|
+
}
|
|
698
|
+
function rewriteCompressText(text, liveKeys) {
|
|
684
699
|
let parsed;
|
|
685
700
|
try {
|
|
686
|
-
parsed = JSON.parse(
|
|
701
|
+
parsed = JSON.parse((text ?? "").replace(REF_TAG_PREFIX_RE, ""));
|
|
687
702
|
} catch {
|
|
688
703
|
return null;
|
|
689
704
|
}
|
|
690
705
|
if (!parsed || typeof parsed !== "object") return null;
|
|
691
706
|
const obj = parsed;
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
}
|
|
695
|
-
function rewriteCompressText(text, liveKeys) {
|
|
696
|
-
const parsed = parseCallText(text);
|
|
697
|
-
if (!parsed) return null;
|
|
698
|
-
const { prefix, obj, content } = parsed;
|
|
707
|
+
const content = obj.content;
|
|
708
|
+
if (!Array.isArray(content) || content.length === 0) return null;
|
|
699
709
|
const kept = content.filter((entry) => {
|
|
700
710
|
if (!entry || typeof entry !== "object") return false;
|
|
701
|
-
const
|
|
702
|
-
const
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
});
|
|
711
|
+
const s = entryRef(entry, "startRef", "startId", "messageId");
|
|
712
|
+
const e = entryRef(entry, "endRef", "endId", "messageId");
|
|
713
|
+
return liveKeys.has(rangeKey(s, e));
|
|
714
|
+
}).map(stubSummary);
|
|
706
715
|
if (kept.length === 0) return null;
|
|
707
|
-
return
|
|
708
|
-
}
|
|
709
|
-
var SUMMARY_STUB_CHARS = 200;
|
|
710
|
-
function compactEntry(entry) {
|
|
711
|
-
if (!entry || typeof entry !== "object") return entry;
|
|
712
|
-
const e = entry;
|
|
713
|
-
if (typeof e.summary !== "string" || e.summary.length <= SUMMARY_STUB_CHARS) return entry;
|
|
714
|
-
return { ...e, summary: `${e.summary.slice(0, SUMMARY_STUB_CHARS - 1)}\u2026` };
|
|
715
|
-
}
|
|
716
|
-
function serializeCompacted(obj, content) {
|
|
717
|
-
let changed = false;
|
|
718
|
-
const compacted = content.map((entry) => {
|
|
719
|
-
const out = compactEntry(entry);
|
|
720
|
-
if (out !== entry) changed = true;
|
|
721
|
-
return out;
|
|
722
|
-
});
|
|
723
|
-
return { text: JSON.stringify({ ...obj, content: compacted }), changed };
|
|
724
|
-
}
|
|
725
|
-
function compactCompressText(text) {
|
|
726
|
-
const parsed = parseCallText(text);
|
|
727
|
-
if (!parsed) return null;
|
|
728
|
-
const { prefix, obj, content } = parsed;
|
|
729
|
-
const { text: out, changed } = serializeCompacted(obj, content);
|
|
730
|
-
return changed ? prefix + out : null;
|
|
716
|
+
return JSON.stringify({ ...obj, content: kept });
|
|
731
717
|
}
|
|
732
718
|
function hideConsumedCompressCalls(state, messages) {
|
|
733
719
|
const allBlockCallIds = /* @__PURE__ */ new Set();
|
|
@@ -786,11 +772,6 @@ function hideConsumedCompressCalls(state, messages) {
|
|
|
786
772
|
continue;
|
|
787
773
|
}
|
|
788
774
|
}
|
|
789
|
-
const compacted = compactCompressText(message.text);
|
|
790
|
-
if (compacted !== null) {
|
|
791
|
-
result.push({ ...message, text: compacted });
|
|
792
|
-
continue;
|
|
793
|
-
}
|
|
794
775
|
}
|
|
795
776
|
result.push(message);
|
|
796
777
|
}
|
|
@@ -1574,12 +1555,12 @@ function classifyType(message) {
|
|
|
1574
1555
|
function escapeRegex(s) {
|
|
1575
1556
|
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1576
1557
|
}
|
|
1577
|
-
var
|
|
1578
|
-
var
|
|
1579
|
-
var TAG_OPEN =
|
|
1580
|
-
var TAG_CLOSE =
|
|
1558
|
+
var LT2 = "<";
|
|
1559
|
+
var GT2 = ">";
|
|
1560
|
+
var TAG_OPEN = LT2 + "acp ";
|
|
1561
|
+
var TAG_CLOSE = LT2 + "/acp" + GT2;
|
|
1581
1562
|
function acpTag(ref, tokens, type) {
|
|
1582
|
-
return TAG_OPEN + 'tokens="' + formatTokens(tokens) + '" type="' + type + '"' +
|
|
1563
|
+
return TAG_OPEN + 'tokens="' + formatTokens(tokens) + '" type="' + type + '"' + GT2 + ref + TAG_CLOSE;
|
|
1583
1564
|
}
|
|
1584
1565
|
function renderMessage(message, map, countTokens, strategy, snapshot = null) {
|
|
1585
1566
|
const ref = refForRaw(map, message.id);
|
|
@@ -1589,7 +1570,7 @@ function renderMessage(message, map, countTokens, strategy, snapshot = null) {
|
|
|
1589
1570
|
return message;
|
|
1590
1571
|
}
|
|
1591
1572
|
const ownTagRe = new RegExp(
|
|
1592
|
-
"^" + escapeRegex(TAG_OPEN) + "[^>]*" +
|
|
1573
|
+
"^" + escapeRegex(TAG_OPEN) + "[^>]*" + GT2 + escapeRegex(ref) + escapeRegex(TAG_CLOSE) + "\\n?"
|
|
1593
1574
|
);
|
|
1594
1575
|
const cleanText = (message.text || "").replace(ownTagRe, "");
|
|
1595
1576
|
const tokens = snapshot ? snapshot[ref] ?? (snapshot[ref] = countTokens(cleanText)) : countTokens(cleanText);
|
|
@@ -1699,6 +1680,39 @@ function adjustBoundariesForReasoningPairs(startIndex, endIndex, messages) {
|
|
|
1699
1680
|
return { startIndex: newStartIndex, endIndex: newEndIndex };
|
|
1700
1681
|
}
|
|
1701
1682
|
|
|
1683
|
+
// src/strip-reasoning.ts
|
|
1684
|
+
function isRealUserMessage(message) {
|
|
1685
|
+
return message.role === "user" && message.contentType === "text";
|
|
1686
|
+
}
|
|
1687
|
+
function stripReasoningByRound(messages, mode) {
|
|
1688
|
+
if (mode === "always") return { messages, stripped: 0 };
|
|
1689
|
+
let cutoff;
|
|
1690
|
+
if (mode === "never") {
|
|
1691
|
+
cutoff = messages.length;
|
|
1692
|
+
} else {
|
|
1693
|
+
let lastRealUserIndex = -1;
|
|
1694
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
1695
|
+
if (isRealUserMessage(messages[i])) {
|
|
1696
|
+
lastRealUserIndex = i;
|
|
1697
|
+
break;
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
if (lastRealUserIndex === -1) return { messages, stripped: 0 };
|
|
1701
|
+
cutoff = lastRealUserIndex + 1;
|
|
1702
|
+
}
|
|
1703
|
+
let stripped = 0;
|
|
1704
|
+
const kept = [];
|
|
1705
|
+
for (let i = 0; i < messages.length; i++) {
|
|
1706
|
+
const message = messages[i];
|
|
1707
|
+
if (message.contentType === "reasoning" && i < cutoff) {
|
|
1708
|
+
stripped++;
|
|
1709
|
+
continue;
|
|
1710
|
+
}
|
|
1711
|
+
kept.push(message);
|
|
1712
|
+
}
|
|
1713
|
+
return { messages: kept, stripped };
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1702
1716
|
// src/recommend.ts
|
|
1703
1717
|
function estimateTextTokens(text) {
|
|
1704
1718
|
return Math.ceil(text.length / 4);
|
|
@@ -1708,8 +1722,12 @@ function isToolMessage(message) {
|
|
|
1708
1722
|
}
|
|
1709
1723
|
function isSyntheticOrPruned(message, state) {
|
|
1710
1724
|
if (message.text?.startsWith("[Compressed conversation section]")) return true;
|
|
1725
|
+
const base = baseMessageId(message.id);
|
|
1711
1726
|
for (const block of state.blocks) {
|
|
1712
|
-
if (block.active && block.effectiveMessageIds.
|
|
1727
|
+
if (block.active && block.effectiveMessageIds.some(
|
|
1728
|
+
(id) => id === message.id || baseMessageId(id) === base
|
|
1729
|
+
))
|
|
1730
|
+
return true;
|
|
1713
1731
|
}
|
|
1714
1732
|
return false;
|
|
1715
1733
|
}
|
|
@@ -1930,8 +1948,11 @@ function danglingMessageRefs(state, messages, spec) {
|
|
|
1930
1948
|
if (!parsed || parsed.kind !== "message") continue;
|
|
1931
1949
|
const rawId = state.messageRefs.byRef[parsed.raw] ?? state.messageRefs.byRef[indexToRef(parsed.numericId)];
|
|
1932
1950
|
if (!rawId || visible.has(rawId)) continue;
|
|
1951
|
+
const base = baseMessageId(rawId);
|
|
1933
1952
|
const covered = state.blocks.some(
|
|
1934
|
-
(block) => block.active && block.effectiveMessageIds.
|
|
1953
|
+
(block) => block.active && block.effectiveMessageIds.some(
|
|
1954
|
+
(id) => id === rawId || baseMessageId(id) === base
|
|
1955
|
+
)
|
|
1935
1956
|
);
|
|
1936
1957
|
if (!covered) dangling.push(parsed.raw);
|
|
1937
1958
|
}
|
|
@@ -1952,7 +1973,7 @@ function createCore(ports = {}) {
|
|
|
1952
1973
|
input.config,
|
|
1953
1974
|
countTokens
|
|
1954
1975
|
);
|
|
1955
|
-
const preExistingCoverage =
|
|
1976
|
+
const preExistingCoverage = coveredMessageIds(state);
|
|
1956
1977
|
const classifications = /* @__PURE__ */ new Map();
|
|
1957
1978
|
const classificationErrors = [];
|
|
1958
1979
|
const consumedRanges = [];
|
|
@@ -2162,8 +2183,8 @@ function createCore(ports = {}) {
|
|
|
2162
2183
|
const base = [
|
|
2163
2184
|
assignRefsNode,
|
|
2164
2185
|
syncBlocksNode,
|
|
2165
|
-
pruneNode,
|
|
2166
2186
|
stripReasoningNode,
|
|
2187
|
+
pruneNode,
|
|
2167
2188
|
absorbHideNode,
|
|
2168
2189
|
absorbPromptNode,
|
|
2169
2190
|
filterNode,
|
|
@@ -2205,40 +2226,27 @@ var syncBlocksNode = {
|
|
|
2205
2226
|
return { ...io, state: synced.state };
|
|
2206
2227
|
}
|
|
2207
2228
|
};
|
|
2229
|
+
var stripReasoningNode = {
|
|
2230
|
+
name: "strip-reasoning",
|
|
2231
|
+
enabled: (_io, ctx) => ctx.config.reasoningReplay === "open-round" || ctx.config.reasoningReplay === "never",
|
|
2232
|
+
run(io, ctx) {
|
|
2233
|
+
const { messages, stripped } = stripReasoningByRound(
|
|
2234
|
+
io.messages,
|
|
2235
|
+
ctx.config.reasoningReplay
|
|
2236
|
+
);
|
|
2237
|
+
return {
|
|
2238
|
+
...io,
|
|
2239
|
+
messages,
|
|
2240
|
+
effects: { ...io.effects, reasoningStrippedCount: stripped }
|
|
2241
|
+
};
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
2208
2244
|
var pruneNode = {
|
|
2209
2245
|
name: "prune",
|
|
2210
2246
|
run(io) {
|
|
2211
2247
|
return { ...io, messages: prune(io.messages, io.state) };
|
|
2212
2248
|
}
|
|
2213
2249
|
};
|
|
2214
|
-
var stripReasoningNode = {
|
|
2215
|
-
name: "strip-reasoning",
|
|
2216
|
-
run(io, ctx) {
|
|
2217
|
-
const policy = ctx.config.reasoningReplay ?? "always";
|
|
2218
|
-
if (policy === "always") return io;
|
|
2219
|
-
const messages = io.messages;
|
|
2220
|
-
if (policy === "never") {
|
|
2221
|
-
const kept2 = messages.filter((m) => m.contentType !== "reasoning");
|
|
2222
|
-
return kept2.length === messages.length ? io : { ...io, messages: kept2 };
|
|
2223
|
-
}
|
|
2224
|
-
let boundary = -1;
|
|
2225
|
-
for (let i = messages.length - 1; i >= 0; i--) {
|
|
2226
|
-
const m = messages[i];
|
|
2227
|
-
if (m.role === "user" && m.contentType === "text") {
|
|
2228
|
-
boundary = i;
|
|
2229
|
-
break;
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
if (boundary < 0) return io;
|
|
2233
|
-
let changed = false;
|
|
2234
|
-
const kept = messages.filter((m, i) => {
|
|
2235
|
-
if (m.contentType !== "reasoning" || i >= boundary) return true;
|
|
2236
|
-
changed = true;
|
|
2237
|
-
return false;
|
|
2238
|
-
});
|
|
2239
|
-
return changed ? { ...io, messages: kept } : io;
|
|
2240
|
-
}
|
|
2241
|
-
};
|
|
2242
2250
|
var absorbHideNode = {
|
|
2243
2251
|
name: "absorb-hide",
|
|
2244
2252
|
enabled: (io) => (io.state.absorbed?.length ?? 0) > 0,
|
|
@@ -2590,13 +2598,6 @@ function resolveTargetTier(state, nestedBlockIds, isBlockBoundary) {
|
|
|
2590
2598
|
}
|
|
2591
2599
|
return minTier;
|
|
2592
2600
|
}
|
|
2593
|
-
function collectCoverage(state) {
|
|
2594
|
-
const coverage = /* @__PURE__ */ new Set();
|
|
2595
|
-
for (const block of activeBlocks(state)) {
|
|
2596
|
-
for (const id of block.effectiveMessageIds) coverage.add(id);
|
|
2597
|
-
}
|
|
2598
|
-
return coverage;
|
|
2599
|
-
}
|
|
2600
2601
|
function resolveAdaptiveGrowth(modelContextLimit, nudge) {
|
|
2601
2602
|
if (!modelContextLimit || modelContextLimit <= 0) return nudge.growthFloor;
|
|
2602
2603
|
return Math.min(
|
|
@@ -4137,6 +4138,7 @@ export {
|
|
|
4137
4138
|
applyAbsorb,
|
|
4138
4139
|
applyMessageFilters,
|
|
4139
4140
|
assignRefs,
|
|
4141
|
+
baseMessageId,
|
|
4140
4142
|
blockById,
|
|
4141
4143
|
blockDocs,
|
|
4142
4144
|
blockVisibleInRange,
|
|
@@ -4175,7 +4177,9 @@ export {
|
|
|
4175
4177
|
highestUsedIndex,
|
|
4176
4178
|
indexToRef,
|
|
4177
4179
|
isAbsorbCandidate,
|
|
4180
|
+
isIdCovered,
|
|
4178
4181
|
isMessageProtected,
|
|
4182
|
+
isRealUserMessage,
|
|
4179
4183
|
isRenderedSummaryMessage,
|
|
4180
4184
|
isSummaryMessageId,
|
|
4181
4185
|
listMessageFilters,
|
|
@@ -4209,6 +4213,7 @@ export {
|
|
|
4209
4213
|
searchBlocks,
|
|
4210
4214
|
searchBlocksAsync,
|
|
4211
4215
|
setDocCacheCap,
|
|
4216
|
+
stripReasoningByRound,
|
|
4212
4217
|
summaryMessageId,
|
|
4213
4218
|
syncBlocks,
|
|
4214
4219
|
truncateLargeToolOutputs,
|