opencode-magi 0.0.0-dev-20260522105602 → 0.0.0-dev-20260522105819

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.
@@ -393,22 +393,20 @@ async function classifyChecks(input) {
393
393
  reviewer: reviewer.key,
394
394
  type: "classifier_failed",
395
395
  });
396
- return { reviewer: reviewer.key, output: undefined };
396
+ throw error;
397
397
  }
398
398
  }, { signal: input.signal });
399
399
  const threshold = majorityThreshold(reviewers.length);
400
400
  return {
401
401
  classified: input.checks.map((item) => {
402
- const successfulVotes = votes.filter((vote) => vote.output);
403
- const checkVotes = successfulVotes.map((vote) => {
404
- const check = vote.output?.checks.find((output) => output.name === item.check.name);
402
+ const checkVotes = votes.map((vote) => {
403
+ const check = vote.output.checks.find((output) => output.name === item.check.name);
405
404
  return {
406
405
  classification: check?.classification ?? "SCOPE_IN",
407
406
  reason: check?.reason ?? "Missing classification; treated as scope-in.",
408
407
  reviewer: vote.reviewer,
409
408
  };
410
409
  });
411
- const failures = votes.filter((vote) => !vote.output);
412
410
  const scopeIn = checkVotes.filter((vote) => vote.classification === "SCOPE_IN");
413
411
  const scopeOut = checkVotes.filter((vote) => vote.classification === "SCOPE_OUT");
414
412
  const classification = scopeOut.length >= threshold
@@ -422,9 +420,6 @@ async function classifyChecks(input) {
422
420
  const reasons = checkVotes
423
421
  .filter((vote) => vote.classification === classification)
424
422
  .map((vote) => `${vote.reviewer}: ${vote.reason}`);
425
- for (const failure of failures) {
426
- reasons.push(`${failure.reviewer}: classifier failed; vote ignored`);
427
- }
428
423
  return {
429
424
  check: item.check,
430
425
  classification,
@@ -112,7 +112,7 @@ function reviewStateToVerdict(state) {
112
112
  return "MERGE";
113
113
  if (state === "CHANGES_REQUESTED")
114
114
  return "CHANGES_REQUESTED";
115
- return "CLOSE";
115
+ throw new Error(`Unsupported GitHub review state: ${state}`);
116
116
  }
117
117
  function hasBlockingCiReports(reports) {
118
118
  return reports.some((report) => report.scopeInside.length || report.scopeOutsideUnresolved.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.0.0-dev-20260522105602",
3
+ "version": "0.0.0-dev-20260522105819",
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>",