@oss-autopilot/core 3.35.0 → 3.37.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.
Files changed (49) hide show
  1. package/dist/cli-registry.js +25 -2
  2. package/dist/cli.bundle.cjs +142 -118
  3. package/dist/commands/daily.js +21 -2
  4. package/dist/commands/ledger-backfill.d.ts +7 -0
  5. package/dist/commands/ledger-backfill.js +116 -6
  6. package/dist/commands/repo-cap.d.ts +10 -0
  7. package/dist/commands/repo-cap.js +23 -0
  8. package/dist/commands/scout-bridge.js +8 -2
  9. package/dist/commands/search.js +7 -1
  10. package/dist/commands/setup.js +6 -4
  11. package/dist/commands/vet-list.js +20 -17
  12. package/dist/commands/vet.js +29 -2
  13. package/dist/core/ci-analysis.js +14 -1
  14. package/dist/core/comment-utils.d.ts +5 -2
  15. package/dist/core/comment-utils.js +11 -3
  16. package/dist/core/config-registry.js +12 -0
  17. package/dist/core/daily-logic.d.ts +36 -1
  18. package/dist/core/daily-logic.js +113 -3
  19. package/dist/core/eval-report.d.ts +8 -0
  20. package/dist/core/eval-report.js +81 -4
  21. package/dist/core/index.d.ts +4 -4
  22. package/dist/core/index.js +4 -4
  23. package/dist/core/issue-verification.d.ts +12 -0
  24. package/dist/core/issue-verification.js +18 -0
  25. package/dist/core/pick-snapshot.d.ts +19 -2
  26. package/dist/core/pick-snapshot.js +27 -1
  27. package/dist/core/pr-assembly.d.ts +11 -1
  28. package/dist/core/pr-assembly.js +21 -4
  29. package/dist/core/pr-attention.d.ts +14 -0
  30. package/dist/core/pr-attention.js +18 -0
  31. package/dist/core/pr-graphql.d.ts +31 -1
  32. package/dist/core/pr-graphql.js +49 -5
  33. package/dist/core/pr-monitor.d.ts +37 -6
  34. package/dist/core/pr-monitor.js +41 -12
  35. package/dist/core/repo-cap.d.ts +46 -0
  36. package/dist/core/repo-cap.js +102 -0
  37. package/dist/core/repo-score-manager.d.ts +0 -13
  38. package/dist/core/repo-score-manager.js +0 -24
  39. package/dist/core/review-analysis.d.ts +98 -14
  40. package/dist/core/review-analysis.js +145 -25
  41. package/dist/core/state-schema.d.ts +58 -0
  42. package/dist/core/state-schema.js +37 -0
  43. package/dist/core/state.d.ts +8 -15
  44. package/dist/core/state.js +19 -24
  45. package/dist/core/status-determination.js +11 -11
  46. package/dist/core/types.d.ts +32 -2
  47. package/dist/formatters/json.d.ts +29 -0
  48. package/dist/formatters/json.js +17 -0
  49. package/package.json +1 -1
@@ -48,7 +48,7 @@ export function handleCommandError(err, json) {
48
48
  * verify-issue, skip-add, list-move-tier, list-mark-done,
49
49
  * compliance-score, post, claim, config, init, setup, checkSetup,
50
50
  * parse-issue-list, orphan-files, doctor, local-repos, move,
51
- * pr-template, repo-vet, detect-formatters.
51
+ * pr-template, repo-cap, repo-vet, detect-formatters.
52
52
  *
53
53
  * 2. **Goldens-only**: no Zod schema exists; the command returns a TS
54
54
  * interface and its `*.contract.test.ts` golden snapshot is the only
@@ -351,6 +351,9 @@ export const commands = [
351
351
  if (data.hiddenOwnPRCount > 0) {
352
352
  console.log(`Hidden: ${data.hiddenOwnPRCount} candidate(s) were issues you already have open PRs for.`);
353
353
  }
354
+ if (data.reposAtCap.length > 0) {
355
+ console.log(`Skipped repos at your open-PR cap: ${data.reposAtCap.join(', ')}.`);
356
+ }
354
357
  if (data.candidates.length === 0) {
355
358
  if (data.rateLimitWarning) {
356
359
  console.warn(`\n${data.rateLimitWarning}\n`);
@@ -593,7 +596,7 @@ export const commands = [
593
596
  }, (data) => {
594
597
  console.log(`\nQueried ${data.queried} ledger PRs (${data.unresolved} unresolved).`);
595
598
  const f = data.filled;
596
- console.log(` Filled: openedAt ${f.openedAt}, issueUrl ${f.issueUrl}, closeReason ${f.closeReason}, pick ${f.pick}`);
599
+ console.log(` Filled: openedAt ${f.openedAt}, issueUrl ${f.issueUrl}, closeReason ${f.closeReason}, pick ${f.pick}, firstMaintainerResponseAt ${f.firstMaintainerResponseAt}`);
597
600
  console.log(` List files scanned: ${data.listFiles.length}`);
598
601
  if (data.gistSyncWarning)
599
602
  console.log(` Warning: ${data.gistSyncWarning}`);
@@ -1297,6 +1300,26 @@ export const commands = [
1297
1300
  });
1298
1301
  },
1299
1302
  },
1303
+ // ── Repo Cap ─────────────────────────────────────────────────────────
1304
+ {
1305
+ name: 'repo-cap',
1306
+ register(program) {
1307
+ program
1308
+ .command('repo-cap <repo>')
1309
+ .description('Check `owner/repo` against your per-repo open-PR cap (live open-PR count from GitHub) and excludeRepos')
1310
+ .option('--json', 'Output as JSON')
1311
+ .action(async (repo, options) => {
1312
+ const { RepoCapStatusSchema } = await import('./formatters/json.js');
1313
+ const { runRepoCap } = await import('./commands/repo-cap.js');
1314
+ await executeAction(options, () => runRepoCap({ repo }), (data) => {
1315
+ const capText = data.cap > 0 ? `${data.openPRCount}/${data.cap}` : `${data.openPRCount} (no cap)`;
1316
+ console.log(`\n${data.repo}: ${capText} open PRs, ${data.mergedPRCount} merged`);
1317
+ if (data.reason)
1318
+ console.log(` Warning: ${data.reason}`);
1319
+ }, RepoCapStatusSchema);
1320
+ });
1321
+ },
1322
+ },
1300
1323
  // ── Repo Vet (#1271) ────────────────────────────────────────────────
1301
1324
  {
1302
1325
  name: 'repo-vet',