@oss-autopilot/core 3.23.0 → 3.24.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.
@@ -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
  *
@@ -1536,6 +1536,16 @@ Load it with:
1536
1536
  console.log(`Stored ${data.byteSize} bytes of guidelines for ${data.repo}.`);
1537
1537
  });
1538
1538
  });
1539
+ group
1540
+ .command('mark-extracted')
1541
+ .description('Stamp learningsExtractedAt on fetched PRs of a repo so daily stops reporting them as unextracted (#1696)')
1542
+ .requiredOption('--repo <owner/repo>', 'Repository identifier')
1543
+ .option('--json', 'Output as JSON')
1544
+ .action(async (options) => {
1545
+ await executeAction(options, async () => (await import('./commands/guidelines.js')).runMarkExtracted({ repo: options.repo }), (data) => {
1546
+ console.log(`Marked ${data.marked} PR(s) in ${data.repo} as extracted.`);
1547
+ });
1548
+ });
1539
1549
  group
1540
1550
  .command('reset')
1541
1551
  .description('Tombstone the guidelines file for a repo (subsequent reads return null)')