billion-context 0.1.109-pr.768.607 → 0.1.109-pr.768.609
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/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62083,11 +62083,12 @@ function prepareResponsesCompact(body, parsed, session, req, core, config, log2)
|
|
|
62083
62083
|
}
|
|
62084
62084
|
const viewed = applyAbsorbView(turn.messages, turn.state, compactConfig, session.stats.lastInputTokens);
|
|
62085
62085
|
const processed = repairResponsesAssistantOrdering(stripKernelSummaries(viewed, turn.state), projection.msgs);
|
|
62086
|
-
|
|
62086
|
+
let output = patchResponsesInput(projection, processed);
|
|
62087
62087
|
if (typeof output === "string") {
|
|
62088
62088
|
session.state = prevState;
|
|
62089
62089
|
return base;
|
|
62090
62090
|
}
|
|
62091
|
+
output = hoistTrappedToolItems(output);
|
|
62091
62092
|
snapshotMessages(session, projection.msgs);
|
|
62092
62093
|
markDirty(session);
|
|
62093
62094
|
log2("info", `[${session.id}] codex compact intercepted (endpoint); forged history with ${output.length} item(s), upstream not contacted`);
|