@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.
- package/dist/cli-registry.js +29 -0
- package/dist/cli.bundle.cjs +144 -91
- package/dist/commands/daily-render.d.ts +2 -1
- package/dist/commands/daily-render.js +8 -2
- package/dist/commands/daily.d.ts +3 -1
- package/dist/commands/daily.js +7 -2
- package/dist/commands/dashboard-data.js +14 -5
- package/dist/commands/dashboard-server.js +7 -2
- package/dist/commands/index.d.ts +2 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/list-move-tier.d.ts +11 -3
- package/dist/commands/list-move-tier.js +18 -7
- package/dist/commands/search.js +17 -3
- package/dist/commands/verify-issue.d.ts +20 -0
- package/dist/commands/verify-issue.js +32 -0
- package/dist/core/daily-logic.js +65 -52
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +2 -0
- package/dist/core/issue-verification.d.ts +91 -0
- package/dist/core/issue-verification.js +270 -0
- package/dist/core/pr-attention.d.ts +52 -0
- package/dist/core/pr-attention.js +76 -0
- package/dist/core/types.d.ts +7 -0
- package/dist/formatters/json.d.ts +74 -1
- package/dist/formatters/json.js +43 -1
- package/package.json +2 -2
package/dist/cli-registry.js
CHANGED
|
@@ -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',
|