@oss-autopilot/core 3.33.1 → 3.34.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 +38 -1
- package/dist/cli.bundle.cjs +133 -123
- package/dist/commands/daily.js +5 -1
- package/dist/commands/dashboard-data.js +3 -1
- package/dist/commands/eval.d.ts +11 -0
- package/dist/commands/eval.js +11 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.js +1 -0
- package/dist/commands/ledger-backfill.d.ts +40 -0
- package/dist/commands/ledger-backfill.js +216 -0
- package/dist/commands/vet-list.js +16 -6
- package/dist/commands/vet.js +4 -2
- package/dist/core/close-reason.d.ts +25 -0
- package/dist/core/close-reason.js +28 -0
- package/dist/core/daily-logic.d.ts +12 -0
- package/dist/core/daily-logic.js +10 -0
- package/dist/core/eval-report.d.ts +55 -0
- package/dist/core/eval-report.js +211 -0
- package/dist/core/github-stats.d.ts +9 -0
- package/dist/core/github-stats.js +26 -0
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +2 -1
- package/dist/core/pick-snapshot.d.ts +23 -0
- package/dist/core/pick-snapshot.js +51 -0
- package/dist/core/state-schema.d.ts +117 -0
- package/dist/core/state-schema.js +48 -0
- package/dist/core/state.d.ts +22 -1
- package/dist/core/state.js +63 -10
- package/dist/core/types.d.ts +1 -1
- package/dist/formatters/json.d.ts +8 -0
- package/package.json +1 -1
package/dist/cli-registry.js
CHANGED
|
@@ -54,7 +54,7 @@ export function handleCommandError(err, json) {
|
|
|
54
54
|
* interface and its `*.contract.test.ts` golden snapshot is the only
|
|
55
55
|
* shape gate. Nothing fires at runtime if the producer drifts after
|
|
56
56
|
* the goldens were last updated.
|
|
57
|
-
* Commands: state (show/sync/unlink), vet, vet-list, track, comments,
|
|
57
|
+
* Commands: state (show/sync/unlink), vet, vet-list, ledger-backfill, eval, track, comments,
|
|
58
58
|
* startup, dismiss, undismiss, stats, and the five
|
|
59
59
|
* guidelines subcommands (list/view/store/reset/fetch-corpus/mark-extracted).
|
|
60
60
|
*
|
|
@@ -578,6 +578,43 @@ export const commands = [
|
|
|
578
578
|
}));
|
|
579
579
|
},
|
|
580
580
|
},
|
|
581
|
+
// ── Ledger Backfill ────────────────────────────────────────────────────
|
|
582
|
+
{
|
|
583
|
+
name: 'ledger-backfill',
|
|
584
|
+
register(program) {
|
|
585
|
+
program
|
|
586
|
+
.command('ledger-backfill')
|
|
587
|
+
.description('Fill missing outcome-ledger fields: opened date, closing issue, close reason, list vet score (#1824)')
|
|
588
|
+
.option('--path <file>', 'Path to issue list file (auto-detected if not specified)')
|
|
589
|
+
.option('--json', 'Output as JSON')
|
|
590
|
+
.action((options) => executeAction(options, async () => {
|
|
591
|
+
const { runLedgerBackfill } = await import('./commands/ledger-backfill.js');
|
|
592
|
+
return runLedgerBackfill({ issueListPath: options.path });
|
|
593
|
+
}, (data) => {
|
|
594
|
+
console.log(`\nQueried ${data.queried} ledger PRs (${data.unresolved} unresolved).`);
|
|
595
|
+
const f = data.filled;
|
|
596
|
+
console.log(` Filled: openedAt ${f.openedAt}, issueUrl ${f.issueUrl}, closeReason ${f.closeReason}, pick ${f.pick}`);
|
|
597
|
+
console.log(` List files scanned: ${data.listFiles.length}`);
|
|
598
|
+
if (data.gistSyncWarning)
|
|
599
|
+
console.log(` Warning: ${data.gistSyncWarning}`);
|
|
600
|
+
}));
|
|
601
|
+
},
|
|
602
|
+
},
|
|
603
|
+
// ── Eval ───────────────────────────────────────────────────────────────
|
|
604
|
+
{
|
|
605
|
+
name: 'eval',
|
|
606
|
+
localOnly: true,
|
|
607
|
+
register(program) {
|
|
608
|
+
program
|
|
609
|
+
.command('eval')
|
|
610
|
+
.description('Calibration and outcome report from the outcome ledger (#1825)')
|
|
611
|
+
.option('--json', 'Output as JSON')
|
|
612
|
+
.action((options) => executeAction(options, async () => {
|
|
613
|
+
const { runEval } = await import('./commands/eval.js');
|
|
614
|
+
return runEval();
|
|
615
|
+
}, (data) => console.log(data.markdown)));
|
|
616
|
+
},
|
|
617
|
+
},
|
|
581
618
|
// ── Skip Add ───────────────────────────────────────────────────────────
|
|
582
619
|
{
|
|
583
620
|
name: 'skip-add',
|