opencode-acp 1.17.1-pr.393.148 → 1.17.1-pr.393.150
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 +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10154,12 +10154,6 @@ function renderOverview(visibleMessages, summaryTokens, systemTokens, blocks, fe
|
|
|
10154
10154
|
}
|
|
10155
10155
|
}
|
|
10156
10156
|
if (!fetchFailed) {
|
|
10157
|
-
const pruneMap = ctx.state.prune.messages.byMessageId;
|
|
10158
|
-
const visibleRaw = rawMessages.filter((msg) => {
|
|
10159
|
-
const msgId = msg.info?.id || "";
|
|
10160
|
-
const entry = pruneMap.get(msgId);
|
|
10161
|
-
return !entry || entry.activeBlockIds.length === 0;
|
|
10162
|
-
});
|
|
10163
10157
|
if (ctx.config?.compress?.candidates === true) {
|
|
10164
10158
|
const candidates = renderCompressionCandidates(rawMessages, ctx);
|
|
10165
10159
|
if (candidates.length > 0) {
|
|
@@ -10167,6 +10161,12 @@ function renderOverview(visibleMessages, summaryTokens, systemTokens, blocks, fe
|
|
|
10167
10161
|
lines.push(...candidates);
|
|
10168
10162
|
}
|
|
10169
10163
|
} else {
|
|
10164
|
+
const pruneMap = ctx.state.prune.messages.byMessageId;
|
|
10165
|
+
const visibleRaw = rawMessages.filter((msg) => {
|
|
10166
|
+
const msgId = msg.info?.id || "";
|
|
10167
|
+
const entry = pruneMap.get(msgId);
|
|
10168
|
+
return !entry || entry.activeBlockIds.length === 0;
|
|
10169
|
+
});
|
|
10170
10170
|
const protectedRefs = ctx.config?.compress ? computeProtectedRefs(visibleRaw, ctx.state, ctx.config.compress) : /* @__PURE__ */ new Set();
|
|
10171
10171
|
const contextRanges = buildCompressibleRanges(
|
|
10172
10172
|
visibleRaw,
|
|
@@ -10553,7 +10553,7 @@ import { writeFile as writeFile2, mkdir as mkdir2 } from "fs/promises";
|
|
|
10553
10553
|
import { join as join4 } from "path";
|
|
10554
10554
|
import { existsSync as existsSync4 } from "fs";
|
|
10555
10555
|
import { homedir as homedir3 } from "os";
|
|
10556
|
-
var LOG_VERSION = true ? "1.17.1-pr.393.
|
|
10556
|
+
var LOG_VERSION = true ? "1.17.1-pr.393.150" : "dev";
|
|
10557
10557
|
var LEVEL_RANK = {
|
|
10558
10558
|
debug: 10,
|
|
10559
10559
|
info: 20,
|
|
@@ -13236,7 +13236,7 @@ var server = (async (ctx) => {
|
|
|
13236
13236
|
}
|
|
13237
13237
|
const logger = new Logger(config.debug, config.debug ? "debug" : config.logLevel);
|
|
13238
13238
|
logger.info("ACP plugin initialized", {
|
|
13239
|
-
version: true ? "1.17.1-pr.393.
|
|
13239
|
+
version: true ? "1.17.1-pr.393.150" : "dev",
|
|
13240
13240
|
workspace: ctx.directory,
|
|
13241
13241
|
logLevel: logger.level,
|
|
13242
13242
|
debug: config.debug,
|