opencode-acp 1.14.25-pr.345.68 → 1.14.25-pr.345.79

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/README.md CHANGED
@@ -325,9 +325,10 @@ Each level overrides the previous, so project settings take priority over global
325
325
  // compression nudges (based on nudgeFrequency), so compression is
326
326
  // much more likely. Accepts: number or "X%" of model context window.
327
327
  "maxContextLimit": "80%",
328
- // Soft lower threshold for reminder nudges: below this, growth/turn/iteration
329
- // reminders are off (compression less likely). At/above this, reminders
330
- // are on. Accepts: number or "X%" of model context window.
328
+ // Soft lower threshold for turn/iteration reminder nudges: below this,
329
+ // those reminders are off (compression less likely). At/above this, they
330
+ // are on. Growth nudges have their own floor: minNudgeContextPercent.
331
+ // Accepts: number or "X%" of model context window.
331
332
  "minContextLimit": "80%",
332
333
  // Optional per-model override for maxContextLimit by providerID/modelID.
333
334
  // If present, this wins over the global maxContextLimit.
package/README.zh-CN.md CHANGED
@@ -279,9 +279,10 @@ ACP 使用自己的配置文件,按以下顺序搜索:
279
279
  // compression nudges (based on nudgeFrequency), so compression is
280
280
  // much more likely. Accepts: number or "X%" of model context window.
281
281
  "maxContextLimit": "55%",
282
- // Soft lower threshold for reminder nudges: below this, turn/iteration
283
- // reminders are off (compression less likely). At/above this, reminders
284
- // are on. Accepts: number or "X%" of model context window.
282
+ // Soft lower threshold for turn/iteration reminder nudges: below this,
283
+ // those reminders are off (compression less likely). At/above this, they
284
+ // are on. Growth nudges have their own floor: minNudgeContextPercent.
285
+ // Accepts: number or "X%" of model context window.
285
286
  "minContextLimit": "45%",
286
287
  // Optional per-model override for maxContextLimit by providerID/modelID.
287
288
  // If present, this wins over the global maxContextLimit.
package/dist/index.js CHANGED
@@ -1491,7 +1491,7 @@ var defaultConfig = {
1491
1491
  maxContextLimit: "80%",
1492
1492
  minContextLimit: "80%",
1493
1493
  nudgeFrequency: 5,
1494
- minNudgeContextPercent: 15,
1494
+ minNudgeContextPercent: 5,
1495
1495
  iterationNudgeThreshold: 15,
1496
1496
  nudgeForce: "soft",
1497
1497
  protectedTools: [...COMPRESS_DEFAULT_PROTECTED_TOOLS],
@@ -6942,7 +6942,7 @@ function resolveMinNudgeFloorTokens(config, modelContextLimit, providerId, model
6942
6942
  if (modelContextLimit === void 0) {
6943
6943
  return void 0;
6944
6944
  }
6945
- return Math.round((config.compress.minNudgeContextPercent ?? 15) / 100 * modelContextLimit);
6945
+ return Math.round((config.compress.minNudgeContextPercent ?? 5) / 100 * modelContextLimit);
6946
6946
  }
6947
6947
  function isContextOverLimits(config, state, providerId, modelId, messages) {
6948
6948
  const summaryTokenExtension = config.compress.summaryBuffer ? getActiveSummaryTokenUsage(
@@ -7674,7 +7674,7 @@ var injectCompressNudges = (state, config, logger, messages, prompts, compressio
7674
7674
  overMinLimit,
7675
7675
  overMaxLimit,
7676
7676
  lastNudgeTokens: growthReference,
7677
- minNudgeContextPercent: config.compress?.minNudgeContextPercent ?? 15,
7677
+ minNudgeContextPercent: config.compress?.minNudgeContextPercent ?? 5,
7678
7678
  nudgeGrowthTokens: effectiveThreshold
7679
7679
  });
7680
7680
  const growthSinceBaseline = currentTokens !== void 0 && growthReference !== void 0 ? currentTokens - growthReference : void 0;
@@ -9152,7 +9152,7 @@ import { writeFile as writeFile2, mkdir as mkdir2 } from "fs/promises";
9152
9152
  import { join as join3 } from "path";
9153
9153
  import { existsSync as existsSync3 } from "fs";
9154
9154
  import { homedir as homedir3 } from "os";
9155
- var LOG_VERSION = true ? "1.14.25-pr.345.68" : "dev";
9155
+ var LOG_VERSION = true ? "1.14.25-pr.345.79" : "dev";
9156
9156
  var LEVEL_RANK = {
9157
9157
  debug: 10,
9158
9158
  info: 20,
@@ -11593,7 +11593,7 @@ var server = (async (ctx) => {
11593
11593
  }
11594
11594
  const logger = new Logger(config.debug, config.debug ? "debug" : config.logLevel);
11595
11595
  logger.info("ACP plugin initialized", {
11596
- version: true ? "1.14.25-pr.345.68" : "dev",
11596
+ version: true ? "1.14.25-pr.345.79" : "dev",
11597
11597
  workspace: ctx.directory,
11598
11598
  logLevel: logger.level,
11599
11599
  debug: config.debug,