opencode-magi 0.0.0-dev-20261027030404 → 0.0.0-dev-20261028021002
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.
|
@@ -23,12 +23,13 @@ export async function edit() {
|
|
|
23
23
|
repo: this.config.github.repo,
|
|
24
24
|
worktreePath: this.state.worktree.path,
|
|
25
25
|
});
|
|
26
|
+
let error = "Unknown error.";
|
|
26
27
|
const output = await retry(async (count, e) => {
|
|
27
28
|
const raw = await this.magi.promptSession(this.state.editor.sessionId, count === 1 ? taskMessage : await prompt.repair(e), this.context.signal);
|
|
28
29
|
await this.createAgentFile("edit", "editor", raw, count, cycle);
|
|
29
30
|
const parsed = prompt.parse(raw);
|
|
30
31
|
if (!prompt.validate(parsed))
|
|
31
|
-
throw new Error("Invalid output
|
|
32
|
+
throw new Error("Invalid output.");
|
|
32
33
|
const output = {
|
|
33
34
|
...parsed,
|
|
34
35
|
filesTouched: parsed.filesTouched ?? [],
|
|
@@ -46,13 +47,22 @@ export async function edit() {
|
|
|
46
47
|
error: async (e, count) => {
|
|
47
48
|
if (e instanceof MagiError)
|
|
48
49
|
throw e;
|
|
49
|
-
|
|
50
|
+
error = e instanceof Error ? e.message : String(e);
|
|
51
|
+
if (!error.endsWith("."))
|
|
52
|
+
error = error + ".";
|
|
53
|
+
await this.updateEvent(filterEmpty([
|
|
54
|
+
`Attempt ${count} failed to edit.`,
|
|
55
|
+
error,
|
|
56
|
+
count < this.config.output.repairAttempts
|
|
57
|
+
? "Retrying..."
|
|
58
|
+
: undefined,
|
|
59
|
+
]).join(" "));
|
|
50
60
|
},
|
|
51
61
|
retries: this.config.output.repairAttempts,
|
|
52
62
|
signal: this.context.signal,
|
|
53
63
|
});
|
|
54
64
|
if (!output)
|
|
55
|
-
throw new MagiError("blocked",
|
|
65
|
+
throw new MagiError("blocked", `Failed to edit. ${error}`);
|
|
56
66
|
await this.updateState({
|
|
57
67
|
editor: { outputs: [...(this.state.editor.outputs ?? []), output] },
|
|
58
68
|
});
|
|
@@ -117,12 +127,13 @@ export async function resolveConflict() {
|
|
|
117
127
|
repo: this.config.github.repo,
|
|
118
128
|
worktreePath: this.state.worktree.path,
|
|
119
129
|
});
|
|
130
|
+
let error = "Unknown error.";
|
|
120
131
|
const output = await retry(async (count, e) => {
|
|
121
132
|
const raw = await this.magi.promptSession(this.state.editor.sessionId, count === 1 ? taskMessage : await prompt.repair(e), this.context.signal);
|
|
122
133
|
await this.createAgentFile("conflict", "editor", raw, count, cycle);
|
|
123
134
|
const parsed = prompt.parse(raw);
|
|
124
135
|
if (!prompt.validate(parsed))
|
|
125
|
-
throw new Error("Invalid output
|
|
136
|
+
throw new Error("Invalid output.");
|
|
126
137
|
const diff = await this.exec(command("git", "diff", "--name-only", "--diff-filter=U"), options);
|
|
127
138
|
if (diff)
|
|
128
139
|
throw new Error("Merge conflicts remain.");
|
|
@@ -144,13 +155,22 @@ export async function resolveConflict() {
|
|
|
144
155
|
error: async (e, count) => {
|
|
145
156
|
if (e instanceof MagiError)
|
|
146
157
|
throw e;
|
|
147
|
-
|
|
158
|
+
error = e instanceof Error ? e.message : String(e);
|
|
159
|
+
if (!error.endsWith("."))
|
|
160
|
+
error = error + ".";
|
|
161
|
+
await this.updateEvent(filterEmpty([
|
|
162
|
+
`Attempt ${count} failed to resolve conflicts.`,
|
|
163
|
+
error,
|
|
164
|
+
count < this.config.output.repairAttempts
|
|
165
|
+
? "Retrying..."
|
|
166
|
+
: undefined,
|
|
167
|
+
]).join(" "));
|
|
148
168
|
},
|
|
149
169
|
retries: this.config.output.repairAttempts,
|
|
150
170
|
signal: this.context.signal,
|
|
151
171
|
});
|
|
152
172
|
if (!output)
|
|
153
|
-
throw new MagiError("blocked",
|
|
173
|
+
throw new MagiError("blocked", `Failed to resolve conflicts. ${error}`);
|
|
154
174
|
await this.updateState({
|
|
155
175
|
editor: { outputs: [...(this.state.editor.outputs ?? []), output] },
|
|
156
176
|
});
|
|
@@ -79,24 +79,34 @@ export async function postReviews() {
|
|
|
79
79
|
repo: this.config.github.repo,
|
|
80
80
|
verdict: this.state.pr.verdict,
|
|
81
81
|
});
|
|
82
|
+
let error = "Unknown error.";
|
|
82
83
|
const output = await retry(async (count, e) => {
|
|
83
84
|
const raw = await this.magi.promptSession(this.state.operator.sessionId, count === 1 ? taskMessage : await prompt.repair(e), this.context.signal);
|
|
84
85
|
await this.createAgentFile("comment", "operator", raw, count);
|
|
85
86
|
const parsed = prompt.parse(raw);
|
|
86
87
|
if (!prompt.validate(parsed))
|
|
87
|
-
throw new Error("Invalid output
|
|
88
|
+
throw new Error("Invalid output.");
|
|
88
89
|
return parsed.comment;
|
|
89
90
|
}, {
|
|
90
91
|
error: async (e, count) => {
|
|
91
92
|
if (e instanceof MagiError)
|
|
92
93
|
throw e;
|
|
93
|
-
|
|
94
|
+
error = e instanceof Error ? e.message : String(e);
|
|
95
|
+
if (!error.endsWith("."))
|
|
96
|
+
error = error + ".";
|
|
97
|
+
await this.updateEvent(filterEmpty([
|
|
98
|
+
`Attempt ${count} failed to generate comment by operator.`,
|
|
99
|
+
error,
|
|
100
|
+
count < this.config.output.repairAttempts
|
|
101
|
+
? "Retrying..."
|
|
102
|
+
: undefined,
|
|
103
|
+
]).join(" "));
|
|
94
104
|
},
|
|
95
105
|
retries: this.config.output.repairAttempts,
|
|
96
106
|
signal: this.context.signal,
|
|
97
107
|
});
|
|
98
108
|
if (!output)
|
|
99
|
-
throw new MagiError("blocked",
|
|
109
|
+
throw new MagiError("blocked", `Failed to generate comment by operator. ${error}`);
|
|
100
110
|
await this.updateEvent(`Generated comment by operator.`);
|
|
101
111
|
params.body = output;
|
|
102
112
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import picomatch from "picomatch";
|
|
2
2
|
import { MagiError } from "@/magi";
|
|
3
3
|
import { Prompt } from "@/prompts";
|
|
4
|
-
import { command, filterEmpty, isBoolean, isNumber, omitNullish, quote, retry, Worker, } from "@/utils";
|
|
4
|
+
import { command, filterEmpty, isBoolean, isNumber, omitNullish, quote, retry, wait, Worker, } from "@/utils";
|
|
5
5
|
const ci = {
|
|
6
6
|
isExcluded(exclude, { name }) {
|
|
7
7
|
return exclude.some((pattern) => {
|
|
@@ -150,24 +150,34 @@ export async function classifyChecks() {
|
|
|
150
150
|
if (!sessionId)
|
|
151
151
|
throw new Error(`No session ID found for reviewer ${id}.`);
|
|
152
152
|
await this.updateEvent(`Classifying CI checks with reviewer ${id}.`);
|
|
153
|
+
let error = "Unknown error.";
|
|
153
154
|
const output = await retry(async (count, e) => {
|
|
154
155
|
const raw = await this.magi.promptSession(sessionId, count === 1 ? taskMessage : await prompt.repair(e), this.context.signal);
|
|
155
156
|
await this.createAgentFile("ci-classification", id, raw, count);
|
|
156
157
|
const parsed = prompt.parse(raw);
|
|
157
158
|
if (!prompt.validate(parsed))
|
|
158
|
-
throw new Error(
|
|
159
|
+
throw new Error("Invalid output.");
|
|
159
160
|
return parsed;
|
|
160
161
|
}, {
|
|
161
162
|
error: async (e, count) => {
|
|
162
163
|
if (e instanceof MagiError)
|
|
163
164
|
throw e;
|
|
164
|
-
|
|
165
|
+
error = e instanceof Error ? e.message : String(e);
|
|
166
|
+
if (!error.endsWith("."))
|
|
167
|
+
error = error + ".";
|
|
168
|
+
await this.updateEvent(filterEmpty([
|
|
169
|
+
`Attempt ${count} failed to classify CI checks with reviewer ${id}.`,
|
|
170
|
+
error,
|
|
171
|
+
count < this.config.output.repairAttempts
|
|
172
|
+
? "Retrying..."
|
|
173
|
+
: undefined,
|
|
174
|
+
]).join(" "));
|
|
165
175
|
},
|
|
166
176
|
retries: this.config.output.repairAttempts,
|
|
167
177
|
signal: this.context.signal,
|
|
168
178
|
});
|
|
169
179
|
if (!output)
|
|
170
|
-
throw new MagiError("blocked", `
|
|
180
|
+
throw new MagiError("blocked", `Failed to classify CI checks with reviewer ${id}. ${error}`);
|
|
171
181
|
output.checks.forEach((data) => {
|
|
172
182
|
classifiedChecks[data.id][id] = {
|
|
173
183
|
comment: data.comment,
|
|
@@ -210,15 +220,12 @@ export async function rerunChecks() {
|
|
|
210
220
|
this.context.signal.throwIfAborted();
|
|
211
221
|
if (!this.state.pr?.checks)
|
|
212
222
|
throw new MagiError("blocked", "PR checks not found.");
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
passed: this.state.pr.checks.passed,
|
|
216
|
-
};
|
|
223
|
+
const previousChecks = this.state.pr.checks;
|
|
224
|
+
let checks = { ...previousChecks };
|
|
217
225
|
const failedChecks = checks.failed.filter(({ scope }) => !scope);
|
|
218
226
|
if (!failedChecks.length)
|
|
219
227
|
return;
|
|
220
228
|
await this.updateEvent(`Rerunning CI checks.`);
|
|
221
|
-
let label = failedChecks.map(({ name }) => name).join(", ");
|
|
222
229
|
if (this.state.dryRun) {
|
|
223
230
|
checks.passed = [
|
|
224
231
|
...checks.passed,
|
|
@@ -227,31 +234,39 @@ export async function rerunChecks() {
|
|
|
227
234
|
checks.failed = checks.failed.filter(({ scope }) => scope);
|
|
228
235
|
}
|
|
229
236
|
else {
|
|
230
|
-
|
|
237
|
+
for (let count = 1; count <= this.config.review.checks.retryFailedJobs; count++) {
|
|
238
|
+
const targets = checks.failed.filter(({ scope }) => !scope);
|
|
239
|
+
const label = targets.map(({ name }) => name).join(", ");
|
|
231
240
|
await this.updateEvent(`Rerunning checks ${label}.`);
|
|
232
|
-
|
|
233
|
-
.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
241
|
+
for (const target of targets) {
|
|
242
|
+
const check = checks.failed.find(({ name, workflow }) => name === target.name && workflow === target.workflow);
|
|
243
|
+
if (!check)
|
|
244
|
+
continue;
|
|
245
|
+
await rerunCheck.call(this, check.id);
|
|
246
|
+
for (;;) {
|
|
247
|
+
await watchChecks.call(this);
|
|
248
|
+
const next = await getChecks.call(this, false);
|
|
249
|
+
const result = [...next.failed, ...next.passed].find(({ name, workflow }) => name === check.name && workflow === check.workflow);
|
|
250
|
+
if (!next.pending.length && result && result.id !== check.id) {
|
|
251
|
+
await Promise.all(next.failed.map(async (check) => {
|
|
252
|
+
check.log = await getCheckLog.call(this, check.id);
|
|
253
|
+
}));
|
|
254
|
+
for (const key of ["failed", "passed"])
|
|
255
|
+
next[key] = next[key].map((check) => {
|
|
256
|
+
const { classifieds, scope } = previousChecks.failed.find(({ name, workflow }) => check.name === name && check.workflow === workflow) ?? {};
|
|
257
|
+
return omitNullish({ ...check, classifieds, scope });
|
|
258
|
+
});
|
|
259
|
+
checks = next;
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
await wait(1_000, this.context.signal);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
const remaining = checks.failed.filter(({ scope }) => !scope);
|
|
266
|
+
if (!remaining.length)
|
|
267
|
+
break;
|
|
268
|
+
await this.updateEvent(`Attempt ${count} failed to rerun checks ${remaining.map(({ name }) => name).join(", ")}.${count < this.config.review.checks.retryFailedJobs ? " Retrying..." : ""}`);
|
|
269
|
+
}
|
|
255
270
|
}
|
|
256
271
|
const passedChecksAfterRerun = checks.passed.filter((check) => "scope" in check && !check.scope);
|
|
257
272
|
const failedChecksAfterRerun = checks.failed.filter(({ scope }) => !scope);
|
|
@@ -286,7 +301,7 @@ export async function getMetadata() {
|
|
|
286
301
|
metadata: data,
|
|
287
302
|
};
|
|
288
303
|
}
|
|
289
|
-
async function getChecks() {
|
|
304
|
+
async function getChecks(includeLogs = true) {
|
|
290
305
|
const fields = "name,state,bucket,link,workflow";
|
|
291
306
|
const checks = {
|
|
292
307
|
excluded: [],
|
|
@@ -303,8 +318,10 @@ async function getChecks() {
|
|
|
303
318
|
checks.excluded.push(check);
|
|
304
319
|
}
|
|
305
320
|
else if (ci.isFailed(check)) {
|
|
306
|
-
const log =
|
|
307
|
-
|
|
321
|
+
const log = includeLogs
|
|
322
|
+
? await getCheckLog.call(this, check.id)
|
|
323
|
+
: undefined;
|
|
324
|
+
checks.failed.push(omitNullish({ ...check, log }));
|
|
308
325
|
}
|
|
309
326
|
else if (ci.isPassed(check)) {
|
|
310
327
|
checks.passed.push(check);
|
|
@@ -322,12 +339,38 @@ async function getChecks() {
|
|
|
322
339
|
}
|
|
323
340
|
async function getCheckLog(id) {
|
|
324
341
|
const log = await this.exec(command("gh", "run", "view", "--repo", this.state.repo, "--job", quote(id), "--log-failed"), { signal: this.context.signal });
|
|
325
|
-
|
|
342
|
+
const lines = log
|
|
326
343
|
// oxlint-disable-next-line no-control-regex
|
|
327
344
|
.replaceAll(/\u001B\[[0-9;]*m/g, "")
|
|
328
345
|
.split("\n")
|
|
329
|
-
.filter((line) => line.trim())
|
|
330
|
-
|
|
346
|
+
.filter((line) => line.trim());
|
|
347
|
+
const unknownStep = /^[^\t]*\tUNKNOWN STEP\t\s*(\S+)/;
|
|
348
|
+
if (!lines.some((line) => unknownStep.test(line)))
|
|
349
|
+
return lines.join("\n");
|
|
350
|
+
const raw = await this.exec(command("gh", "api", quote(`repos/${this.config.github.owner}/${this.config.github.repo}/actions/jobs/${id}`)), { signal: this.context.signal });
|
|
351
|
+
const { steps = [] } = JSON.parse(raw);
|
|
352
|
+
const ranges = steps.flatMap(({ completed_at, conclusion, started_at }) => {
|
|
353
|
+
if (conclusion !== "failure" || !started_at || !completed_at)
|
|
354
|
+
return [];
|
|
355
|
+
return [
|
|
356
|
+
{
|
|
357
|
+
// GitHub step timestamps have second precision, so include the final second.
|
|
358
|
+
end: Date.parse(completed_at) + 1_000,
|
|
359
|
+
start: Date.parse(started_at),
|
|
360
|
+
},
|
|
361
|
+
];
|
|
362
|
+
});
|
|
363
|
+
if (!ranges.length)
|
|
364
|
+
return lines.join("\n");
|
|
365
|
+
const filtered = lines.filter((line) => {
|
|
366
|
+
const match = line.match(unknownStep);
|
|
367
|
+
if (!match)
|
|
368
|
+
return true;
|
|
369
|
+
const time = Date.parse(match[1]);
|
|
370
|
+
return (Number.isNaN(time) ||
|
|
371
|
+
ranges.some(({ end, start }) => start <= time && time < end));
|
|
372
|
+
});
|
|
373
|
+
return (filtered.length ? filtered : lines).join("\n");
|
|
331
374
|
}
|
|
332
375
|
async function rerunCheck(id) {
|
|
333
376
|
await this.exec(command("gh", "run", "rerun", "--repo", this.state.repo, "--job", quote(id)), { signal: this.context.signal });
|
|
@@ -94,12 +94,13 @@ export async function review() {
|
|
|
94
94
|
repo: this.config.github.repo,
|
|
95
95
|
worktreePath: this.state.worktree.path,
|
|
96
96
|
}));
|
|
97
|
+
let error = "Unknown error.";
|
|
97
98
|
const output = await retry(async (count, e) => {
|
|
98
99
|
const raw = await this.magi.promptSession(sessionId, count === 1 ? taskMessage : await prompt.repair(e), this.context.signal);
|
|
99
100
|
await this.createAgentFile(rereview ? "rereview" : "review", id, raw, count, cycle);
|
|
100
101
|
const parsed = prompt.parse(raw);
|
|
101
102
|
if (!prompt.validate(parsed))
|
|
102
|
-
throw new Error(
|
|
103
|
+
throw new Error("Invalid output.");
|
|
103
104
|
validateThreadTargets(parsed, unresolvedThreads);
|
|
104
105
|
validateInlineCommentTargets(status, parsed, inlineCommentTargets);
|
|
105
106
|
const findings = parsed.findings ?? parsed.newFindings ?? [];
|
|
@@ -128,13 +129,22 @@ export async function review() {
|
|
|
128
129
|
error: async (e, count) => {
|
|
129
130
|
if (e instanceof MagiError)
|
|
130
131
|
throw e;
|
|
131
|
-
|
|
132
|
+
error = e instanceof Error ? e.message : String(e);
|
|
133
|
+
if (!error.endsWith("."))
|
|
134
|
+
error = error + ".";
|
|
135
|
+
await this.updateEvent(filterEmpty([
|
|
136
|
+
`Attempt ${count} failed to ${label} with reviewer ${id}.`,
|
|
137
|
+
error,
|
|
138
|
+
count < this.config.output.repairAttempts
|
|
139
|
+
? "Retrying..."
|
|
140
|
+
: undefined,
|
|
141
|
+
]).join(" "));
|
|
132
142
|
},
|
|
133
143
|
retries: this.config.output.repairAttempts,
|
|
134
144
|
signal: this.context.signal,
|
|
135
145
|
});
|
|
136
146
|
if (!output)
|
|
137
|
-
throw new MagiError("blocked", `
|
|
147
|
+
throw new MagiError("blocked", `Failed to ${label} with reviewer ${id}. ${error}`);
|
|
138
148
|
output.findings = output.findings?.map((finding) => ({
|
|
139
149
|
...finding,
|
|
140
150
|
state: "accepted",
|
|
@@ -203,25 +213,35 @@ export async function reconsiderClose() {
|
|
|
203
213
|
repo: this.config.github.repo,
|
|
204
214
|
});
|
|
205
215
|
await this.updateEvent(`Reconsidering close verdict with reviewer ${id}.`);
|
|
216
|
+
let error = "Unknown error.";
|
|
206
217
|
const output = await retry(async (count, e) => {
|
|
207
218
|
const raw = await this.magi.promptSession(sessionId, count === 1 ? taskMessage : await prompt.repair(e), this.context.signal);
|
|
208
219
|
await this.createAgentFile("close-reconsideration", id, raw, count, cycle);
|
|
209
220
|
const parsed = prompt.parse(raw);
|
|
210
221
|
if (!prompt.validate(parsed))
|
|
211
|
-
throw new Error(
|
|
222
|
+
throw new Error("Invalid output.");
|
|
212
223
|
validateInlineCommentTargets("initial", parsed, inlineCommentTargets);
|
|
213
224
|
return parsed;
|
|
214
225
|
}, {
|
|
215
226
|
error: async (e, count) => {
|
|
216
227
|
if (e instanceof MagiError)
|
|
217
228
|
throw e;
|
|
218
|
-
|
|
229
|
+
error = e instanceof Error ? e.message : String(e);
|
|
230
|
+
if (!error.endsWith("."))
|
|
231
|
+
error = error + ".";
|
|
232
|
+
await this.updateEvent(filterEmpty([
|
|
233
|
+
`Attempt ${count} failed to reconsider close verdict with reviewer ${id}.`,
|
|
234
|
+
error,
|
|
235
|
+
count < this.config.output.repairAttempts
|
|
236
|
+
? "Retrying..."
|
|
237
|
+
: undefined,
|
|
238
|
+
]).join(" "));
|
|
219
239
|
},
|
|
220
240
|
retries: this.config.output.repairAttempts,
|
|
221
241
|
signal: this.context.signal,
|
|
222
242
|
});
|
|
223
243
|
if (!output)
|
|
224
|
-
throw new MagiError("blocked", `
|
|
244
|
+
throw new MagiError("blocked", `Failed to reconsider close verdict with reviewer ${id}. ${error}`);
|
|
225
245
|
output.findings = output.findings?.map((finding) => ({
|
|
226
246
|
...finding,
|
|
227
247
|
state: "accepted",
|
|
@@ -269,12 +289,13 @@ async function collectAcceptedFindings(findings) {
|
|
|
269
289
|
pr: this.number.toString(),
|
|
270
290
|
repo: this.config.github.repo,
|
|
271
291
|
});
|
|
292
|
+
let error = "Unknown error.";
|
|
272
293
|
const output = await retry(async (count, e) => {
|
|
273
294
|
const raw = await this.magi.promptSession(sessionId, count === 1 ? taskMessage : await prompt.repair(e), this.context.signal);
|
|
274
295
|
await this.createAgentFile("finding-validation", id, raw, count);
|
|
275
296
|
const parsed = prompt.parse(raw);
|
|
276
297
|
if (!prompt.validate(parsed))
|
|
277
|
-
throw new Error(
|
|
298
|
+
throw new Error("Invalid output.");
|
|
278
299
|
const seen = new Set();
|
|
279
300
|
for (const vote of parsed.votes) {
|
|
280
301
|
if (vote.reviewer === id)
|
|
@@ -294,13 +315,22 @@ async function collectAcceptedFindings(findings) {
|
|
|
294
315
|
error: async (e, count) => {
|
|
295
316
|
if (e instanceof MagiError)
|
|
296
317
|
throw e;
|
|
297
|
-
|
|
318
|
+
error = e instanceof Error ? e.message : String(e);
|
|
319
|
+
if (!error.endsWith("."))
|
|
320
|
+
error = error + ".";
|
|
321
|
+
await this.updateEvent(filterEmpty([
|
|
322
|
+
`Attempt ${count} failed to validate review findings with reviewer ${id}.`,
|
|
323
|
+
error,
|
|
324
|
+
count < this.config.output.repairAttempts
|
|
325
|
+
? "Retrying..."
|
|
326
|
+
: undefined,
|
|
327
|
+
]).join(" "));
|
|
298
328
|
},
|
|
299
329
|
retries: this.config.output.repairAttempts,
|
|
300
330
|
signal: this.context.signal,
|
|
301
331
|
});
|
|
302
332
|
if (!output)
|
|
303
|
-
throw new MagiError("blocked", `
|
|
333
|
+
throw new MagiError("blocked", `Failed to validate review findings with reviewer ${id}. ${error}`);
|
|
304
334
|
return [id, output];
|
|
305
335
|
}))));
|
|
306
336
|
const threshold = Math.floor(this.config.review.reviewers.length / 2) + 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-magi",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20261028021002",
|
|
4
4
|
"description": "Multi-agent PR review and merge orchestration plugin for OpenCode.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hirotomo Yamada <hirotomo.yamada@avap.co.jp>",
|