opencode-acp 1.14.25-pr.345.69 → 1.14.25-pr.345.80
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
|
@@ -1491,7 +1491,7 @@ var defaultConfig = {
|
|
|
1491
1491
|
maxContextLimit: "80%",
|
|
1492
1492
|
minContextLimit: "80%",
|
|
1493
1493
|
nudgeFrequency: 5,
|
|
1494
|
-
minNudgeContextPercent:
|
|
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 ??
|
|
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 ??
|
|
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.
|
|
9155
|
+
var LOG_VERSION = true ? "1.14.25-pr.345.80" : "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.
|
|
11596
|
+
version: true ? "1.14.25-pr.345.80" : "dev",
|
|
11597
11597
|
workspace: ctx.directory,
|
|
11598
11598
|
logLevel: logger.level,
|
|
11599
11599
|
debug: config.debug,
|