opencode-acp 1.14.16-pr.299.6 → 1.14.16-pr.302.8
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 +11 -13
- package/dist/index.js.map +1 -1
- package/dist/lib/compress/quality-gate/index.d.ts +1 -1
- package/dist/lib/compress/quality-gate/index.d.ts.map +1 -1
- package/dist/lib/compress/quality-gate/rejection.d.ts +0 -1
- package/dist/lib/compress/quality-gate/rejection.d.ts.map +1 -1
- package/dist/lib/compress/range.d.ts.map +1 -1
- package/dist/lib/state/types.d.ts +2 -1
- package/dist/lib/state/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5672,11 +5672,6 @@ exact values, errors). Then add "acknowledgeRisk": true to the compress tool cal
|
|
|
5672
5672
|
Without acknowledgeRisk: true, the compression will be rejected again.`;
|
|
5673
5673
|
return new Error(message);
|
|
5674
5674
|
}
|
|
5675
|
-
function buildPreemptiveAcknowledgeError() {
|
|
5676
|
-
return new Error(
|
|
5677
|
-
'Parameter "acknowledgeRisk": true was provided, but no quality gate rejection is pending. This parameter is only valid immediately after a compression was rejected by the quality gate. Remove it and try again.'
|
|
5678
|
-
);
|
|
5679
|
-
}
|
|
5680
5675
|
|
|
5681
5676
|
// lib/compress/pipeline.ts
|
|
5682
5677
|
function snapshotCompressionState(state) {
|
|
@@ -6150,13 +6145,13 @@ function createCompressRangeTool(factoryCtx) {
|
|
|
6150
6145
|
}
|
|
6151
6146
|
const acknowledgeRisk = args.acknowledgeRisk === true;
|
|
6152
6147
|
const qualityGateRetryPendingBefore = ctx.state.qualityGateRetryPending;
|
|
6153
|
-
|
|
6154
|
-
|
|
6148
|
+
const bypassQuality = acknowledgeRisk && ctx.state.qualityGateRetryPending;
|
|
6149
|
+
const ignoredAcknowledgeRisk = acknowledgeRisk && !ctx.state.qualityGateRetryPending;
|
|
6150
|
+
if (ignoredAcknowledgeRisk) {
|
|
6151
|
+
ctx.logger.warn("compress: acknowledgeRisk ignored \u2014 no quality gate rejection pending");
|
|
6155
6152
|
}
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
} else {
|
|
6159
|
-
ctx.state.qualityGateRetryPending = false;
|
|
6153
|
+
ctx.state.qualityGateRetryPending = false;
|
|
6154
|
+
if (!bypassQuality) {
|
|
6160
6155
|
for (const plan of preparedPlans) {
|
|
6161
6156
|
const result = evaluatePreCommitQuality(
|
|
6162
6157
|
rawMessages,
|
|
@@ -6232,7 +6227,10 @@ function createCompressRangeTool(factoryCtx) {
|
|
|
6232
6227
|
const skippedNote = phantomSkipNotice !== null ? `
|
|
6233
6228
|
\u26A0\uFE0F ${phantomSkipNotice}
|
|
6234
6229
|
` : "";
|
|
6235
|
-
|
|
6230
|
+
const ackNote = ignoredAcknowledgeRisk ? `
|
|
6231
|
+
\u26A0\uFE0F acknowledgeRisk was ignored: no quality gate rejection was pending, so quality checks ran normally. Only pass it when retrying immediately after a quality gate rejection.
|
|
6232
|
+
` : "";
|
|
6233
|
+
return `Compressed ${totalCompressedMessages} messages into ${COMPRESSED_BLOCK_HEADER}.${skippedNote}${ackNote}
|
|
6236
6234
|
IMPORTANT: This was an automatic context compression. You MUST continue your previous task exactly where you left off. Do NOT ask the user what to do next.
|
|
6237
6235
|
\u{1F4A1} Tip: Use search_context('keyword') to find compressed content when you need it later.`;
|
|
6238
6236
|
}
|
|
@@ -8949,7 +8947,7 @@ import { writeFile as writeFile2, mkdir as mkdir2 } from "fs/promises";
|
|
|
8949
8947
|
import { join as join3 } from "path";
|
|
8950
8948
|
import { existsSync as existsSync3 } from "fs";
|
|
8951
8949
|
import { homedir as homedir3 } from "os";
|
|
8952
|
-
var LOG_VERSION = true ? "1.14.16-pr.
|
|
8950
|
+
var LOG_VERSION = true ? "1.14.16-pr.302.8" : "dev";
|
|
8953
8951
|
var Logger = class {
|
|
8954
8952
|
logDir;
|
|
8955
8953
|
enabled;
|