billion-context-omp 0.3.2-pr.142.7 → 0.3.2-pr.143.8
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 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
import { settings } from "@oh-my-pi/pi-coding-agent";
|
|
3
|
-
|
|
4
1
|
// node_modules/acp-kernel/dist/chunk-MWXUJVMN.js
|
|
5
2
|
import { createRequire } from "module";
|
|
6
3
|
var require2 = createRequire(import.meta.url);
|
|
@@ -4910,7 +4907,7 @@ function isViewFlip(foldedLen, lcp) {
|
|
|
4910
4907
|
}
|
|
4911
4908
|
function preserveCompressedSlot(prev) {
|
|
4912
4909
|
const slot = freshSlot(prev);
|
|
4913
|
-
slot.state = { ...slot.state, blocks: prev.state.blocks, messageRefs: prev.state.messageRefs, stats: prev.state.stats };
|
|
4910
|
+
slot.state = { ...slot.state, blocks: prev.state.blocks, messageRefs: prev.state.messageRefs, stats: prev.state.stats, nextBlockId: prev.state.nextBlockId, nextRunId: prev.state.nextRunId };
|
|
4914
4911
|
slot.appliedCallIds = new Set(prev.appliedCallIds);
|
|
4915
4912
|
return slot;
|
|
4916
4913
|
}
|
|
@@ -4974,7 +4971,7 @@ function createRuntime(adapter) {
|
|
|
4974
4971
|
lcp = 0;
|
|
4975
4972
|
}
|
|
4976
4973
|
if (lcp === 0 && slot.state.blocks.length > 0) {
|
|
4977
|
-
const presentIds = new Set(
|
|
4974
|
+
const presentIds = new Set(stream.map((m) => m.id));
|
|
4978
4975
|
const surviving = slot.state.blocks.filter((b) => b.active === false || b.effectiveMessageIds.some((id) => presentIds.has(id)));
|
|
4979
4976
|
if (surviving.length < slot.state.blocks.length) {
|
|
4980
4977
|
debug.event("fold-purge-stale-blocks", { sid, before: slot.state.blocks.length, after: surviving.length });
|
|
@@ -6560,16 +6557,8 @@ function applyUserConfig(adapter, user) {
|
|
|
6560
6557
|
}
|
|
6561
6558
|
|
|
6562
6559
|
// src/index.ts
|
|
6563
|
-
function disableHostCompaction() {
|
|
6564
|
-
try {
|
|
6565
|
-
settings.override("compaction.enabled", false);
|
|
6566
|
-
settings.override("compaction.strategy", "off");
|
|
6567
|
-
} catch {
|
|
6568
|
-
}
|
|
6569
|
-
}
|
|
6570
6560
|
function createAcpExtension(adapter = {}) {
|
|
6571
6561
|
return (pi) => {
|
|
6572
|
-
disableHostCompaction();
|
|
6573
6562
|
const runtime = createRuntime(adapter);
|
|
6574
6563
|
const warnDelivery = makeDeliveryWarner();
|
|
6575
6564
|
wireSessionLifecycle(pi, runtime);
|