billion-context-omp 0.3.3-pr.145.10 → 0.3.3-pr.146.13

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 CHANGED
@@ -1,3 +1,6 @@
1
+ // src/index.ts
2
+ import { settings } from "@oh-my-pi/pi-coding-agent";
3
+
1
4
  // node_modules/acp-kernel/dist/chunk-MWXUJVMN.js
2
5
  import { createRequire } from "module";
3
6
  var require2 = createRequire(import.meta.url);
@@ -1622,7 +1625,7 @@ function createCore(ports = {}) {
1622
1625
  if (!hasBlockBoundaryRange && totalRangeChars < input.config.compress.minCompressRange) {
1623
1626
  const live = activeBlocks(state).map((b) => b.blockId).sort((x, y) => numericBlockId(x) - numericBlockId(y));
1624
1627
  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.` : "";
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.`;
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 call the compress tool again using only the refs it reports.` : consumedRanges.length > 0 ? `Requested range(s) already compressed (e.g. ${consumedRanges[0].startRef}..${consumedRanges[0].endRef}) \u2014 your refs are stale: a prior compress renumbered the remaining refs, so this range now falls inside an active block. Run acp_status, then call the compress tool again using only the CURRENT compressible ranges it reports.${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.`;
1626
1629
  return {
1627
1630
  state: input.state,
1628
1631
  result: {
@@ -6557,8 +6560,16 @@ function applyUserConfig(adapter, user) {
6557
6560
  }
6558
6561
 
6559
6562
  // src/index.ts
6563
+ function disableHostCompaction() {
6564
+ try {
6565
+ settings.override("compaction.enabled", false);
6566
+ settings.override("compaction.strategy", "off");
6567
+ } catch {
6568
+ }
6569
+ }
6560
6570
  function createAcpExtension(adapter = {}) {
6561
6571
  return (pi) => {
6572
+ disableHostCompaction();
6562
6573
  const runtime = createRuntime(adapter);
6563
6574
  const warnDelivery = makeDeliveryWarner();
6564
6575
  wireSessionLifecycle(pi, runtime);