opencode-acp 1.17.1-pr.393.150 → 1.18.0-pr.392.147
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,6 +10154,12 @@ 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
|
+
});
|
|
10157
10163
|
if (ctx.config?.compress?.candidates === true) {
|
|
10158
10164
|
const candidates = renderCompressionCandidates(rawMessages, ctx);
|
|
10159
10165
|
if (candidates.length > 0) {
|
|
@@ -10161,12 +10167,6 @@ function renderOverview(visibleMessages, summaryTokens, systemTokens, blocks, fe
|
|
|
10161
10167
|
lines.push(...candidates);
|
|
10162
10168
|
}
|
|
10163
10169
|
} 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.
|
|
10556
|
+
var LOG_VERSION = true ? "1.18.0-pr.392.147" : "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.
|
|
13239
|
+
version: true ? "1.18.0-pr.392.147" : "dev",
|
|
13240
13240
|
workspace: ctx.directory,
|
|
13241
13241
|
logLevel: logger.level,
|
|
13242
13242
|
debug: config.debug,
|