opencode-acp 1.18.0-pr.392.147 → 1.18.0-pr.392.149

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
@@ -9150,7 +9150,7 @@ ${rules}`;
9150
9150
  const lines = [
9151
9151
  `[ACP Debug] Recommendation filter:`,
9152
9152
  ` Input: ${compressible.length} range(s), ${fmt(compressible.reduce((s, r) => s + r.tokens, 0))} tokens`,
9153
- candidatesEnabled ? ` Output: ${candidatePlan.candidates.length} candidate(s) (${candidatePlan.truncatedCount} truncated)` : ` Output: ${recommendedRanges.length} range(s) (last segment marked dangerous)`
9153
+ ` Output: ${candidatePlan.candidates.length} candidate(s) (${candidatePlan.truncatedCount} truncated)`
9154
9154
  ];
9155
9155
  logger.debug(lines.join("\n"));
9156
9156
  }
@@ -9162,7 +9162,7 @@ ${rules}`;
9162
9162
  const growth = currentTokens !== void 0 && (state.nudges.lastNudgeShownTokens ?? state.nudges.lastPerMessageNudgeTokens) !== void 0 ? currentTokens - (state.nudges.lastNudgeShownTokens ?? state.nudges.lastPerMessageNudgeTokens) : 0;
9163
9163
  const growthStr = growth > 0 ? ` (+${fmt(growth)} since last nudge)` : "";
9164
9164
  const plainTextTokens = composition.textTokens;
9165
- const efficiencyNote = effectiveTipsVariant !== "maxLimit" ? candidatesEnabled ? "\nThis is an efficiency nudge to compress early when content is no longer needed and keep context lean \u2014 not an overflow warning. A separate, stronger alert will appear if the context is actually full.\n\n" + COMPRESS_PHILOSOPHY : "\nThis is an efficiency nudge to compress early and keep context lean \u2014 not an overflow warning. A separate, stronger alert will appear if the context is actually full.\n\n" + COMPRESS_PHILOSOPHY : "";
9165
+ const efficiencyNote = effectiveTipsVariant !== "maxLimit" ? "\nThis is an efficiency nudge to compress early when content is no longer needed and keep context lean \u2014 not an overflow warning. A separate, stronger alert will appear if the context is actually full.\n\n" + COMPRESS_PHILOSOPHY : "";
9166
9166
  const sysPart = composition.systemTokens > 0 ? `${fmt(composition.systemTokens)} system (${pct2(composition.systemTokens)}%) | ` : "";
9167
9167
  let breakdown = `${efficiencyNote}
9168
9168
  Breakdown: ${sysPart}${fmt(composition.toolTokens)} tool (${pct2(composition.toolTokens)}%) | ${fmt(composition.summaryTokens)} summaries (${pct2(composition.summaryTokens)}%) | ${fmt(composition.codeTokens)} code (${pct2(composition.codeTokens)}%) | ${fmt(plainTextTokens)} text (${pct2(plainTextTokens)}%) | ${fmt(composition.reasoningTokens)} reasoning (${pct2(composition.reasoningTokens)}%)${growthStr}`;
@@ -10160,33 +10160,16 @@ function renderOverview(visibleMessages, summaryTokens, systemTokens, blocks, fe
10160
10160
  const entry = pruneMap.get(msgId);
10161
10161
  return !entry || entry.activeBlockIds.length === 0;
10162
10162
  });
10163
- if (ctx.config?.compress?.candidates === true) {
10164
- const candidates = renderCompressionCandidates(rawMessages, ctx);
10165
- if (candidates.length > 0) {
10166
- lines.push("");
10167
- lines.push(...candidates);
10168
- }
10169
- } else {
10170
- const protectedRefs = ctx.config?.compress ? computeProtectedRefs(visibleRaw, ctx.state, ctx.config.compress) : /* @__PURE__ */ new Set();
10171
- const contextRanges = buildCompressibleRanges(
10172
- visibleRaw,
10173
- ctx.state,
10174
- ctx.config?.compress?.protectedTools ?? [],
10175
- ctx.config?.protectedFilePatterns ?? [],
10176
- protectedRefs
10177
- );
10178
- if (contextRanges.compressible.length > 0 || contextRanges.protected.length > 0) {
10179
- lines.push("");
10180
- lines.push(
10181
- formatCompressibleRanges(contextRanges.compressible, contextRanges.protected)
10182
- );
10183
- }
10163
+ const candidates = renderCompressionCandidates(rawMessages, ctx);
10164
+ if (candidates.length > 0) {
10165
+ lines.push("");
10166
+ lines.push(...candidates);
10184
10167
  }
10185
10168
  }
10186
10169
  lines.push("");
10187
10170
  const hintTool = topToolName || "bash";
10188
10171
  lines.push(
10189
- ctx.config?.compress?.candidates === true ? `Tip: acp_status({scope:"uncompressed", view:"ranges"}) for raw ranges, or acp_status({scope:"uncompressed", view:"messages", tool:"${hintTool}"}) for per-message listing` : `Tip: acp_status({scope:"uncompressed", view:"messages", tool:"${hintTool}"}) for per-message listing`
10172
+ `Tip: acp_status({scope:"uncompressed", view:"ranges"}) for raw ranges, or acp_status({scope:"uncompressed", view:"messages", tool:"${hintTool}"}) for per-message listing`
10190
10173
  );
10191
10174
  return lines;
10192
10175
  }
@@ -10553,7 +10536,7 @@ import { writeFile as writeFile2, mkdir as mkdir2 } from "fs/promises";
10553
10536
  import { join as join4 } from "path";
10554
10537
  import { existsSync as existsSync4 } from "fs";
10555
10538
  import { homedir as homedir3 } from "os";
10556
- var LOG_VERSION = true ? "1.18.0-pr.392.147" : "dev";
10539
+ var LOG_VERSION = true ? "1.18.0-pr.392.149" : "dev";
10557
10540
  var LEVEL_RANK = {
10558
10541
  debug: 10,
10559
10542
  info: 20,
@@ -12766,7 +12749,7 @@ function createChatMessageTransformHandler(client, registry4, logger, config, pr
12766
12749
  });
12767
12750
  }
12768
12751
  const prePruneTokens = getCurrentTokenUsage(state, output.messages);
12769
- const candidateMessages = config.compress.candidates === true ? output.messages.slice() : void 0;
12752
+ const candidateMessages = output.messages.slice();
12770
12753
  prune(state, logger, config, output.messages);
12771
12754
  hideConsumedCompressCalls(state, output.messages);
12772
12755
  assignMessageRefs(state, output.messages);
@@ -13236,7 +13219,7 @@ var server = (async (ctx) => {
13236
13219
  }
13237
13220
  const logger = new Logger(config.debug, config.debug ? "debug" : config.logLevel);
13238
13221
  logger.info("ACP plugin initialized", {
13239
- version: true ? "1.18.0-pr.392.147" : "dev",
13222
+ version: true ? "1.18.0-pr.392.149" : "dev",
13240
13223
  workspace: ctx.directory,
13241
13224
  logLevel: logger.level,
13242
13225
  debug: config.debug,