opencode-acp 1.14.25-pr.343.65 → 1.14.25-pr.343.78

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
@@ -1489,7 +1489,7 @@ var defaultConfig = {
1489
1489
  maxContextLimit: "80%",
1490
1490
  minContextLimit: "80%",
1491
1491
  nudgeFrequency: 5,
1492
- minNudgeContextPercent: 15,
1492
+ minNudgeContextPercent: 5,
1493
1493
  iterationNudgeThreshold: 15,
1494
1494
  nudgeForce: "soft",
1495
1495
  protectedTools: [...COMPRESS_DEFAULT_PROTECTED_TOOLS],
@@ -7639,11 +7639,11 @@ var injectCompressNudges = (state, config, logger, messages, prompts, compressio
7639
7639
  overMinLimit,
7640
7640
  overMaxLimit,
7641
7641
  lastNudgeTokens: growthReference,
7642
- minNudgeContextPercent: config.compress?.minNudgeContextPercent ?? 15,
7642
+ minNudgeContextPercent: config.compress?.minNudgeContextPercent ?? 5,
7643
7643
  nudgeGrowthTokens: effectiveThreshold
7644
7644
  });
7645
7645
  const growthSinceBaseline = currentTokens !== void 0 && growthReference !== void 0 ? currentTokens - growthReference : void 0;
7646
- const minNudgeFloorTokens = modelContextLimit !== void 0 ? Math.round((config.compress?.minNudgeContextPercent ?? 15) / 100 * modelContextLimit) : void 0;
7646
+ const minNudgeFloorTokens = modelContextLimit !== void 0 ? Math.round((config.compress?.minNudgeContextPercent ?? 5) / 100 * modelContextLimit) : void 0;
7647
7647
  const overMinNudgeFloor = minNudgeFloorTokens === void 0 || currentTokens === void 0 || currentTokens >= minNudgeFloorTokens;
7648
7648
  const nudgeAllowed = emergencyOverride || decision.shouldNudge && (overMaxLimit || overMinNudgeFloor) && growthSinceBaseline !== void 0 && growthSinceBaseline >= growthFloor;
7649
7649
  const effectiveTipsVariant = emergencyOverride ? "maxLimit" : decision.tipsVariant;
@@ -9112,7 +9112,7 @@ import { writeFile as writeFile2, mkdir as mkdir2 } from "fs/promises";
9112
9112
  import { join as join3 } from "path";
9113
9113
  import { existsSync as existsSync3 } from "fs";
9114
9114
  import { homedir as homedir3 } from "os";
9115
- var LOG_VERSION = true ? "1.14.25-pr.343.65" : "dev";
9115
+ var LOG_VERSION = true ? "1.14.25-pr.343.78" : "dev";
9116
9116
  var LEVEL_RANK = {
9117
9117
  debug: 10,
9118
9118
  info: 20,
@@ -11553,7 +11553,7 @@ var server = (async (ctx) => {
11553
11553
  }
11554
11554
  const logger = new Logger(config.debug, config.debug ? "debug" : config.logLevel);
11555
11555
  logger.info("ACP plugin initialized", {
11556
- version: true ? "1.14.25-pr.343.65" : "dev",
11556
+ version: true ? "1.14.25-pr.343.78" : "dev",
11557
11557
  workspace: ctx.directory,
11558
11558
  logLevel: logger.level,
11559
11559
  debug: config.debug,