opencode-magi 0.0.0-dev-20260520185430 → 0.0.0-dev-20260520185509

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.
@@ -401,8 +401,18 @@ export function isCancelledCheck(check) {
401
401
  export function isFailedCheck(check) {
402
402
  return check.bucket === "fail" || check.state === "FAILURE";
403
403
  }
404
- export async function fetchPullRequestChecks(exec, repository, pr) {
405
- const raw = await exec(`gh pr checks ${pr} --repo ${shellQuote(repoSpecifier(repository))} --json name,state,bucket,link,workflow`);
404
+ export async function fetchPullRequestChecks(exec, repository, pr, options = {}) {
405
+ let raw;
406
+ try {
407
+ raw = await exec(`gh pr checks ${pr} --repo ${shellQuote(repoSpecifier(repository))} --json name,state,bucket,link,workflow`);
408
+ }
409
+ catch (error) {
410
+ if (options.tolerateMissingChecks &&
411
+ /no checks reported on the '.+' branch/i.test(errorText(error))) {
412
+ return [];
413
+ }
414
+ throw error;
415
+ }
406
416
  return JSON.parse(raw);
407
417
  }
408
418
  export async function fetchWorkflowRunMeta(exec, repository, runId) {
@@ -221,7 +221,7 @@ async function watchRerunRuns(exec, repository, checks) {
221
221
  await Promise.all(runIds.map((runId) => watchRun(exec, repository, runId)));
222
222
  }
223
223
  async function checksForHead(input) {
224
- const checks = await fetchPullRequestChecks(input.exec, input.repository, input.pr);
224
+ const checks = await fetchPullRequestChecks(input.exec, input.repository, input.pr, { tolerateMissingChecks: Boolean(input.headSha) });
225
225
  const targetChecks = [];
226
226
  let hasAnyActionCheck = false;
227
227
  let hasTargetActionCheck = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.0.0-dev-20260520185430",
3
+ "version": "0.0.0-dev-20260520185509",
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>",