billion-context-pi 0.1.74-pr.486.282 → 0.1.74
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 +1 -55
- package/dist/index.js.map +1 -1
- package/dist/runtime.d.ts +0 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7157,32 +7157,6 @@ function createRuntime(adapter) {
|
|
|
7157
7157
|
function dropSizeDivergence(sid) {
|
|
7158
7158
|
sizeDivergenceStreaks.delete(sid);
|
|
7159
7159
|
}
|
|
7160
|
-
const terminalEscapeEpisodes = /* @__PURE__ */ new Set();
|
|
7161
|
-
function noteTerminalEscape(sid, active) {
|
|
7162
|
-
if (!active) {
|
|
7163
|
-
terminalEscapeEpisodes.delete(sid);
|
|
7164
|
-
return false;
|
|
7165
|
-
}
|
|
7166
|
-
if (terminalEscapeEpisodes.has(sid)) return false;
|
|
7167
|
-
terminalEscapeEpisodes.add(sid);
|
|
7168
|
-
return true;
|
|
7169
|
-
}
|
|
7170
|
-
function dropTerminalEscape(sid) {
|
|
7171
|
-
terminalEscapeEpisodes.delete(sid);
|
|
7172
|
-
}
|
|
7173
|
-
const truncationSkipEpisodes = /* @__PURE__ */ new Set();
|
|
7174
|
-
function noteTruncationSkipped(sid, active) {
|
|
7175
|
-
if (!active) {
|
|
7176
|
-
truncationSkipEpisodes.delete(sid);
|
|
7177
|
-
return false;
|
|
7178
|
-
}
|
|
7179
|
-
if (truncationSkipEpisodes.has(sid)) return false;
|
|
7180
|
-
truncationSkipEpisodes.add(sid);
|
|
7181
|
-
return true;
|
|
7182
|
-
}
|
|
7183
|
-
function dropTruncationSkipped(sid) {
|
|
7184
|
-
truncationSkipEpisodes.delete(sid);
|
|
7185
|
-
}
|
|
7186
7160
|
const strictEchoLogged = /* @__PURE__ */ new Set();
|
|
7187
7161
|
const compressOutcomes = /* @__PURE__ */ new Map();
|
|
7188
7162
|
function compressTrackerFor(sid) {
|
|
@@ -7353,7 +7327,7 @@ function createRuntime(adapter) {
|
|
|
7353
7327
|
return promptsRef;
|
|
7354
7328
|
}, setPrompts: (p) => {
|
|
7355
7329
|
promptsRef = p;
|
|
7356
|
-
}, markNudgeShown, nudgeShownFor, nudgeShownTokensFor, clearNudgeTracking, clearNudgeTokenStamps, noteCompressOutcomes, compressRetryCappedFor, clearCompressRetryTracking, liveContextLimit, configFor, reasoningDropFor, reloadConfig, stateFor, save, deriveChildState: deriveChild, acquireLock, overflowFor, overflowDrop, noteDeadCompress, clearDeadCompress, throttleFor, throttleDrop, noteTokenScale, dropTokenScale, noteHostUsage, dropHostUsageSamples, noteSizeDivergence, dropSizeDivergence
|
|
7330
|
+
}, markNudgeShown, nudgeShownFor, nudgeShownTokensFor, clearNudgeTracking, clearNudgeTokenStamps, noteCompressOutcomes, compressRetryCappedFor, clearCompressRetryTracking, liveContextLimit, configFor, reasoningDropFor, reloadConfig, stateFor, save, deriveChildState: deriveChild, acquireLock, overflowFor, overflowDrop, noteDeadCompress, clearDeadCompress, throttleFor, throttleDrop, noteTokenScale, dropTokenScale, noteHostUsage, dropHostUsageSamples, noteSizeDivergence, dropSizeDivergence };
|
|
7357
7331
|
}
|
|
7358
7332
|
|
|
7359
7333
|
// node_modules/typebox/build/system/memory/memory.mjs
|
|
@@ -20358,8 +20332,6 @@ function wireSessionLifecycle(pi, runtime, standDownIfProxied) {
|
|
|
20358
20332
|
runtime.clearCompressRetryTracking(ctx.sessionManager.getSessionId());
|
|
20359
20333
|
runtime.dropHostUsageSamples(ctx.sessionManager.getSessionId());
|
|
20360
20334
|
runtime.dropSizeDivergence(ctx.sessionManager.getSessionId());
|
|
20361
|
-
runtime.dropTerminalEscape(ctx.sessionManager.getSessionId());
|
|
20362
|
-
runtime.dropTruncationSkipped(ctx.sessionManager.getSessionId());
|
|
20363
20335
|
resetDelegateUsage();
|
|
20364
20336
|
setDelegateDisplayUsage("separate");
|
|
20365
20337
|
setDelegatePolicy(DEFAULT_DELEGATE_POLICY);
|
|
@@ -20426,8 +20398,6 @@ function wireSessionLifecycle(pi, runtime, standDownIfProxied) {
|
|
|
20426
20398
|
runtime.clearCompressRetryTracking(sid);
|
|
20427
20399
|
runtime.dropHostUsageSamples(sid);
|
|
20428
20400
|
runtime.dropSizeDivergence(sid);
|
|
20429
|
-
runtime.dropTerminalEscape(sid);
|
|
20430
|
-
runtime.dropTruncationSkipped(sid);
|
|
20431
20401
|
delegateStatusWidget.dispose();
|
|
20432
20402
|
closeLogStream();
|
|
20433
20403
|
});
|
|
@@ -20511,30 +20481,6 @@ function wireContextTransform(pi, runtime, standDownIfProxied) {
|
|
|
20511
20481
|
});
|
|
20512
20482
|
const turn = runtime.core.processTurn({ messages: coreMessages, state, config, tokenCount });
|
|
20513
20483
|
await runtime.save(turn.state, ctx);
|
|
20514
|
-
if (turn.terminalEscape) {
|
|
20515
|
-
if (runtime.noteTerminalEscape(sid, true)) {
|
|
20516
|
-
logWarn("overflow", {
|
|
20517
|
-
sid,
|
|
20518
|
-
event: "terminal-escape",
|
|
20519
|
-
stuckEvents: turn.terminalEscape.stuckEvents,
|
|
20520
|
-
usage: turn.terminalEscape.usage,
|
|
20521
|
-
tokens: turn.terminalEscape.tokenCount,
|
|
20522
|
-
limit: turn.terminalEscape.modelContextLimit
|
|
20523
|
-
});
|
|
20524
|
-
if (ctx.hasUI) {
|
|
20525
|
-
ctx.ui.notify(`[ACP] \u26A0\uFE0F ${turn.terminalEscape.message}`);
|
|
20526
|
-
}
|
|
20527
|
-
}
|
|
20528
|
-
} else {
|
|
20529
|
-
runtime.noteTerminalEscape(sid, false);
|
|
20530
|
-
}
|
|
20531
|
-
if (turn.truncationSkipped) {
|
|
20532
|
-
if (runtime.noteTruncationSkipped(sid, true)) {
|
|
20533
|
-
logWarn("overflow", { sid, event: "truncation-skipped", detail: turn.truncationSkipped });
|
|
20534
|
-
}
|
|
20535
|
-
} else {
|
|
20536
|
-
runtime.noteTruncationSkipped(sid, false);
|
|
20537
|
-
}
|
|
20538
20484
|
logInfo("turn", {
|
|
20539
20485
|
sid,
|
|
20540
20486
|
model: ctx.model?.id ?? null,
|