@oss-autopilot/core 3.23.0 → 3.25.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 +27 -1
- package/dist/cli.bundle.cjs +115 -112
- package/dist/commands/daily.d.ts +8 -1
- package/dist/commands/daily.js +33 -3
- package/dist/commands/features.js +5 -11
- package/dist/commands/guidelines.d.ts +15 -0
- package/dist/commands/guidelines.js +22 -0
- package/dist/commands/overnight-push-prep.js +5 -1
- package/dist/commands/overnight.d.ts +32 -1
- package/dist/commands/overnight.js +67 -4
- package/dist/commands/search.js +11 -15
- package/dist/commands/setup.js +9 -0
- package/dist/commands/skip-add.js +1 -1
- package/dist/commands/startup.js +12 -2
- package/dist/core/config-registry.js +7 -1
- package/dist/core/issue-grading.d.ts +8 -10
- package/dist/core/issue-grading.js +8 -10
- package/dist/core/pr-graphql.d.ts +1 -0
- package/dist/core/pr-graphql.js +14 -6
- package/dist/core/state-schema.d.ts +2 -0
- package/dist/core/state-schema.js +6 -0
- package/dist/core/state.d.ts +14 -0
- package/dist/core/state.js +19 -0
- package/dist/formatters/json.d.ts +34 -0
- package/dist/formatters/json.js +14 -0
- package/package.json +2 -2
package/dist/cli-registry.js
CHANGED
|
@@ -56,7 +56,7 @@ export function handleCommandError(err, json) {
|
|
|
56
56
|
* the goldens were last updated.
|
|
57
57
|
* Commands: state (show/sync/unlink), vet, vet-list, track, comments,
|
|
58
58
|
* startup, dismiss, undismiss, stats, and the five
|
|
59
|
-
* guidelines subcommands (list/view/store/reset/fetch-corpus).
|
|
59
|
+
* guidelines subcommands (list/view/store/reset/fetch-corpus/mark-extracted).
|
|
60
60
|
*
|
|
61
61
|
* (`dashboard serve` is exempt: it has no `--json` mode.)
|
|
62
62
|
*
|
|
@@ -1375,6 +1375,22 @@ export const commands = [
|
|
|
1375
1375
|
console.log(` Warning: ${data.gistSyncWarning}`);
|
|
1376
1376
|
});
|
|
1377
1377
|
});
|
|
1378
|
+
group
|
|
1379
|
+
.command('report')
|
|
1380
|
+
.description('Print the latest morning report: the local file, or the copy the overnight machine published to the Gist (#1698)')
|
|
1381
|
+
.option('--json', 'Output as JSON')
|
|
1382
|
+
.action(async (options) => {
|
|
1383
|
+
const { OvernightReportOutputSchema } = await import('./formatters/json.js');
|
|
1384
|
+
await executeAction(options, async () => (await import('./commands/overnight.js')).runOvernightReport(), (data) => {
|
|
1385
|
+
if (data.content === null) {
|
|
1386
|
+
console.log(`No overnight report readable: ${data.reportPath} is not on this machine and nothing has been published to the Gist`);
|
|
1387
|
+
return;
|
|
1388
|
+
}
|
|
1389
|
+
if (data.source === 'gist')
|
|
1390
|
+
console.log(`(from the Gist; the file lives on the overnight machine at ${data.reportPath})\n`);
|
|
1391
|
+
process.stdout.write(data.content.endsWith('\n') ? data.content : `${data.content}\n`);
|
|
1392
|
+
}, OvernightReportOutputSchema);
|
|
1393
|
+
});
|
|
1378
1394
|
group
|
|
1379
1395
|
.command('push-prep')
|
|
1380
1396
|
.description('Push the prepared branches of the latest run to prep/* on your fork (#1698). Post-tick step for a scheduler; the model never runs it')
|
|
@@ -1536,6 +1552,16 @@ Load it with:
|
|
|
1536
1552
|
console.log(`Stored ${data.byteSize} bytes of guidelines for ${data.repo}.`);
|
|
1537
1553
|
});
|
|
1538
1554
|
});
|
|
1555
|
+
group
|
|
1556
|
+
.command('mark-extracted')
|
|
1557
|
+
.description('Stamp learningsExtractedAt on fetched PRs of a repo so daily stops reporting them as unextracted (#1696)')
|
|
1558
|
+
.requiredOption('--repo <owner/repo>', 'Repository identifier')
|
|
1559
|
+
.option('--json', 'Output as JSON')
|
|
1560
|
+
.action(async (options) => {
|
|
1561
|
+
await executeAction(options, async () => (await import('./commands/guidelines.js')).runMarkExtracted({ repo: options.repo }), (data) => {
|
|
1562
|
+
console.log(`Marked ${data.marked} PR(s) in ${data.repo} as extracted.`);
|
|
1563
|
+
});
|
|
1564
|
+
});
|
|
1539
1565
|
group
|
|
1540
1566
|
.command('reset')
|
|
1541
1567
|
.description('Tombstone the guidelines file for a repo (subsequent reads return null)')
|