billion-context-omp 0.3.3-pr.146.13 → 0.3.3
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 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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);
|
|
@@ -1625,7 +1622,7 @@ function createCore(ports = {}) {
|
|
|
1625
1622
|
if (!hasBlockBoundaryRange && totalRangeChars < input.config.compress.minCompressRange) {
|
|
1626
1623
|
const live = activeBlocks(state).map((b) => b.blockId).sort((x, y) => numericBlockId(x) - numericBlockId(y));
|
|
1627
1624
|
const liveHint = live.length > 0 ? ` Current active blocks span ${live[0]}..${live[live.length - 1]} \u2014 retry with startId/endId set to active block IDs in that span.` : "";
|
|
1628
|
-
const gateMessage = resolvableCount === 0 && consumedRanges.length === 0 && unknownCount > 0 ? `None of the ${input.ranges.length} requested range(s) resolved \u2014 every ref failed with "does not exist in this session". Refs recorded before an earlier compress are stale: each successful compress renumbers the remaining refs. Run acp_status, then
|
|
1625
|
+
const gateMessage = resolvableCount === 0 && consumedRanges.length === 0 && unknownCount > 0 ? `None of the ${input.ranges.length} requested range(s) resolved \u2014 every ref failed with "does not exist in this session". Refs recorded before an earlier compress are stale: each successful compress renumbers the remaining refs. Run acp_status, then re-issue the compress in the same turn using only the refs it reports.` : consumedRanges.length > 0 ? `Requested range(s) already compressed (e.g. ${consumedRanges[0].startRef}..${consumedRanges[0].endRef}); remaining compressible content ${totalRangeChars} chars < min ${input.config.compress.minCompressRange}. Nothing to do.${liveHint}` : `Total compressible content too small (${totalRangeChars} chars across ${countedRanges} range(s), min ${input.config.compress.minCompressRange}). Combine more messages into your range(s) to meet the threshold.`;
|
|
1629
1626
|
return {
|
|
1630
1627
|
state: input.state,
|
|
1631
1628
|
result: {
|
|
@@ -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);
|