@oss-autopilot/core 3.34.0 → 3.36.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 +24 -1
- package/dist/cli.bundle.cjs +136 -125
- package/dist/commands/daily.js +5 -2
- package/dist/commands/ledger-backfill.js +15 -9
- package/dist/commands/repo-cap.d.ts +10 -0
- package/dist/commands/repo-cap.js +23 -0
- package/dist/commands/scout-bridge.js +8 -2
- package/dist/commands/search.js +7 -1
- package/dist/commands/setup.js +6 -4
- package/dist/commands/vet-list.js +2 -0
- package/dist/commands/vet.js +2 -0
- package/dist/core/ci-analysis.js +14 -1
- package/dist/core/close-reason.d.ts +11 -0
- package/dist/core/close-reason.js +29 -1
- package/dist/core/comment-utils.d.ts +5 -2
- package/dist/core/comment-utils.js +11 -3
- package/dist/core/config-registry.js +12 -0
- package/dist/core/daily-logic.d.ts +3 -1
- package/dist/core/daily-logic.js +11 -3
- package/dist/core/eval-report.js +3 -1
- package/dist/core/gist-state-store.js +4 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/pr-assembly.d.ts +11 -1
- package/dist/core/pr-assembly.js +21 -4
- package/dist/core/pr-attention.d.ts +14 -0
- package/dist/core/pr-attention.js +18 -0
- package/dist/core/pr-graphql.d.ts +31 -1
- package/dist/core/pr-graphql.js +49 -5
- package/dist/core/pr-monitor.d.ts +37 -0
- package/dist/core/pr-monitor.js +42 -0
- package/dist/core/repo-cap.d.ts +46 -0
- package/dist/core/repo-cap.js +102 -0
- package/dist/core/review-analysis.d.ts +64 -0
- package/dist/core/review-analysis.js +92 -1
- package/dist/core/state-persistence.js +6 -2
- package/dist/core/state-schema.d.ts +285 -87
- package/dist/core/state-schema.js +91 -27
- package/dist/core/state.js +1 -0
- package/dist/core/status-determination.js +11 -11
- package/dist/core/types.d.ts +32 -2
- package/dist/formatters/json.d.ts +25 -0
- package/dist/formatters/json.js +13 -0
- package/package.json +1 -1
package/dist/cli-registry.js
CHANGED
|
@@ -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`);
|
|
@@ -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',
|