@oss-autopilot/core 3.11.0 → 3.12.0

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.
@@ -311,6 +311,9 @@ export const commands = [
311
311
  }
312
312
  return runSearch({ maxResults });
313
313
  }, (data) => {
314
+ if (data.hiddenOwnPRCount > 0) {
315
+ console.log(`Hidden: ${data.hiddenOwnPRCount} candidate(s) were issues you already have open PRs for.`);
316
+ }
314
317
  if (data.candidates.length === 0) {
315
318
  if (data.rateLimitWarning) {
316
319
  console.warn(`\n${data.rateLimitWarning}\n`);
@@ -451,6 +454,32 @@ export const commands = [
451
454
  }));
452
455
  },
453
456
  },
457
+ // ── Verify Issue ───────────────────────────────────────────────────────
458
+ {
459
+ name: 'verify-issue',
460
+ register(program) {
461
+ program
462
+ .command('verify-issue <issue-url>')
463
+ .description('Deterministically verify issue state and linked-PR claims before vetting (#1353, #1354)')
464
+ .option('--json', 'Output as JSON')
465
+ .action(async (issueUrl, options) => {
466
+ const { VerifyIssueOutputSchema } = await import('./formatters/json.js');
467
+ await executeAction(options, async () => (await import('./commands/verify-issue.js')).runVerifyIssue({ issueUrl }), (data) => {
468
+ console.log(`\n${data.owner}/${data.repo}#${data.number}: ${data.title}`);
469
+ const reasonLabel = data.stateReason ? ` (${data.stateReason})` : '';
470
+ console.log(` State: ${data.state}${reasonLabel}${data.closedAt ? ` — closed ${data.closedAt}` : ''}`);
471
+ console.log(` Verdict: ${data.verdict} — ${data.verdictReason}`);
472
+ if (data.assignees.length > 0)
473
+ console.log(` Assignees: ${data.assignees.join(', ')}`);
474
+ for (const pr of data.linkedPRs) {
475
+ const own = pr.isOwn ? ' (yours)' : '';
476
+ const draft = pr.isDraft ? ' [draft]' : '';
477
+ console.log(` PR #${pr.number} [${pr.state}]${draft} ${pr.linkType} by ${pr.author ?? 'ghost'}${own}: ${pr.url}`);
478
+ }
479
+ }, VerifyIssueOutputSchema);
480
+ });
481
+ },
482
+ },
454
483
  // ── Vet List ──────────────────────────────────────────────────────────
455
484
  {
456
485
  name: 'vet-list',