opencode-magi 0.0.0-dev-20260522092014 → 0.0.0-dev-20260522104439

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.
@@ -369,38 +369,9 @@ export async function fetchPullRequestSafetyMeta(exec, repository, pr) {
369
369
  }
370
370
  return { author, changedFiles, files, labels };
371
371
  }
372
- export async function waitForChecks(exec, repository, pr, enabled = repository.checks.waitBeforeReview) {
373
- if (!enabled)
374
- return undefined;
375
- const report = {
376
- attempts: 0,
377
- excluded: [],
378
- failed: [],
379
- rerun: [],
380
- scopeInside: [],
381
- scopeOutsideRecovered: [],
382
- scopeOutsideUnresolved: [],
383
- };
384
- try {
385
- await watchChecks(exec, repository, pr);
386
- return report;
387
- }
388
- catch {
389
- report.failed = applyCheckExclusions({
390
- checks: await fetchFailedChecks(exec, repository, pr),
391
- excluded: report.excluded,
392
- patterns: repository.checks.exclude,
393
- });
394
- return report;
395
- }
396
- }
397
372
  export async function watchChecks(exec, repository, pr) {
398
373
  await exec(`gh pr checks ${pr} --repo ${shellQuote(repoSpecifier(repository))} --watch`);
399
374
  }
400
- export async function fetchFailedChecks(exec, repository, pr) {
401
- const checks = await fetchPullRequestChecks(exec, repository, pr);
402
- return checks.filter((check) => isFailedCheck(check) || isCancelledCheck(check));
403
- }
404
375
  export function isCancelledCheck(check) {
405
376
  return check.bucket === "cancel" || check.state === "CANCELLED";
406
377
  }
package/dist/index.js CHANGED
@@ -306,6 +306,10 @@ function prMarkdownLink(repository, pr) {
306
306
  const url = `https://${host}/${repository.github.owner}/${repository.github.repo}/pull/${pr}`;
307
307
  return `[#${pr}](${url})`;
308
308
  }
309
+ export function formatRunStartMessage(command, repository, pr) {
310
+ const action = command === "merge" ? "merge flow" : "reviewing";
311
+ return `Started ${action} ${prMarkdownLink(repository, pr)}.`;
312
+ }
309
313
  function issueMarkdownLink(repository, issue) {
310
314
  const host = repository.github.host || "github.com";
311
315
  const url = `https://${host}/${repository.github.owner}/${repository.github.repo}/issues/${issue}`;
@@ -490,7 +494,7 @@ export const MagiPlugin = async ({ client, directory }) => {
490
494
  if (sync)
491
495
  return syncResult(runManager, states);
492
496
  return states
493
- .map((state) => `Started reviewing ${prMarkdownLink(repository, state.pr)}.`)
497
+ .map((state) => formatRunStartMessage("merge", repository, state.pr))
494
498
  .join("\n");
495
499
  },
496
500
  }),
@@ -535,7 +539,7 @@ export const MagiPlugin = async ({ client, directory }) => {
535
539
  if (sync)
536
540
  return syncResult(runManager, states);
537
541
  return states
538
- .map((state) => `Started reviewing ${prMarkdownLink(repository, state.pr)}.`)
542
+ .map((state) => formatRunStartMessage("review", repository, state.pr))
539
543
  .join("\n");
540
544
  },
541
545
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.0.0-dev-20260522092014",
3
+ "version": "0.0.0-dev-20260522104439",
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>",