@algosuite/vo-mcp 0.2.0-beta.51 → 0.2.0-beta.52
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/runner-cli.js +16 -1
- package/dist/runner-cli.js.map +4 -4
- package/package.json +1 -1
package/dist/runner-cli.js
CHANGED
|
@@ -10237,6 +10237,20 @@ var init_account_usage2 = __esm({
|
|
|
10237
10237
|
}
|
|
10238
10238
|
});
|
|
10239
10239
|
|
|
10240
|
+
// ../../scripts/virtual-office/code-runner/agent-unfixable-checks.mjs
|
|
10241
|
+
function hasAgentFixableFailure(failedChecks) {
|
|
10242
|
+
const failed2 = Array.isArray(failedChecks) ? failedChecks : [];
|
|
10243
|
+
if (failed2.length === 0) return true;
|
|
10244
|
+
return !failed2.every((name) => AGENT_UNFIXABLE_CHECKS.has(name));
|
|
10245
|
+
}
|
|
10246
|
+
var AGENT_UNFIXABLE_CHECKS;
|
|
10247
|
+
var init_agent_unfixable_checks = __esm({
|
|
10248
|
+
"../../scripts/virtual-office/code-runner/agent-unfixable-checks.mjs"() {
|
|
10249
|
+
"use strict";
|
|
10250
|
+
AGENT_UNFIXABLE_CHECKS = /* @__PURE__ */ new Set(["merge-gate", "overlap-check"]);
|
|
10251
|
+
}
|
|
10252
|
+
});
|
|
10253
|
+
|
|
10240
10254
|
// ../../scripts/virtual-office/code-runner/ci-repair-evidence.mjs
|
|
10241
10255
|
function extractWorkflowRunIds(links = []) {
|
|
10242
10256
|
const ids = [];
|
|
@@ -10912,7 +10926,7 @@ function decideWatchAction(pr, fixAttempts, maxFixAttempts, entry = {}, maxResum
|
|
|
10912
10926
|
if (pr.ci === "pending") return "wait";
|
|
10913
10927
|
return (entry.resumeAttempts || 0) < maxResumeAttempts ? "resume" : "wait";
|
|
10914
10928
|
}
|
|
10915
|
-
if (pr.ci === "failing" && entry.allowFixDispatch !== false && (fixAttempts || 0) < maxFixAttempts) return "fix";
|
|
10929
|
+
if (pr.ci === "failing" && hasAgentFixableFailure(pr.failedChecks) && entry.allowFixDispatch !== false && (fixAttempts || 0) < maxFixAttempts) return "fix";
|
|
10916
10930
|
if (autoMergeEnabled && pr.ci === "passing" && pr.mergeState === "CLEAN" && !pr.isDraft && !entry.mergeTerminal && !mergeEnqueueActive(entry, nowMs) && (entry.mergeAttempts || 0) < 3) return "merge";
|
|
10917
10931
|
return "wait";
|
|
10918
10932
|
}
|
|
@@ -11202,6 +11216,7 @@ var DEFAULT_STATE_FILE, FAIL_CONCLUSIONS;
|
|
|
11202
11216
|
var init_pr_watcher = __esm({
|
|
11203
11217
|
"../../scripts/virtual-office/code-runner/pr-watcher.mjs"() {
|
|
11204
11218
|
"use strict";
|
|
11219
|
+
init_agent_unfixable_checks();
|
|
11205
11220
|
init_ci_repair_evidence();
|
|
11206
11221
|
init_pr_watcher_failure_confirmation();
|
|
11207
11222
|
init_superseded_pr_source();
|