@oss-autopilot/core 0.44.3 → 0.44.15

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.
@@ -116,6 +116,11 @@ export const commands = [
116
116
  }
117
117
  maxResults = parsed;
118
118
  }
119
+ const MAX_SEARCH_RESULTS = 100;
120
+ if (maxResults > MAX_SEARCH_RESULTS) {
121
+ console.warn(`Capping search to ${MAX_SEARCH_RESULTS} results (requested: ${maxResults})`);
122
+ maxResults = MAX_SEARCH_RESULTS;
123
+ }
119
124
  if (!options.json) {
120
125
  console.log(`\nSearching for issues (max ${maxResults})...\n`);
121
126
  }
@@ -932,4 +937,60 @@ export const commands = [
932
937
  });
933
938
  },
934
939
  },
940
+ // ── Override Status ────────────────────────────────────────────────────
941
+ {
942
+ name: 'override',
943
+ localOnly: true,
944
+ register(program) {
945
+ program
946
+ .command('override <pr-url> <status>')
947
+ .description('Manually override PR status (needs_addressing or waiting_on_maintainer)')
948
+ .option('--json', 'Output as JSON')
949
+ .action(async (prUrl, status, options) => {
950
+ try {
951
+ const { runOverride } = await import('./commands/override.js');
952
+ const data = await runOverride({ prUrl, status });
953
+ if (options.json) {
954
+ outputJson(data);
955
+ }
956
+ else {
957
+ console.log(`Override set: ${prUrl} → ${data.status}`);
958
+ console.log('This override will auto-clear when the PR has new activity.');
959
+ }
960
+ }
961
+ catch (err) {
962
+ handleCommandError(err, options.json);
963
+ }
964
+ });
965
+ },
966
+ },
967
+ // ── Clear Override ────────────────────────────────────────────────────
968
+ {
969
+ name: 'clear-override',
970
+ localOnly: true,
971
+ register(program) {
972
+ program
973
+ .command('clear-override <pr-url>')
974
+ .description('Clear a manual status override for a PR')
975
+ .option('--json', 'Output as JSON')
976
+ .action(async (prUrl, options) => {
977
+ try {
978
+ const { runClearOverride } = await import('./commands/override.js');
979
+ const data = await runClearOverride({ prUrl });
980
+ if (options.json) {
981
+ outputJson(data);
982
+ }
983
+ else if (data.cleared) {
984
+ console.log(`Override cleared: ${prUrl}`);
985
+ }
986
+ else {
987
+ console.log('No override was set for this PR.');
988
+ }
989
+ }
990
+ catch (err) {
991
+ handleCommandError(err, options.json);
992
+ }
993
+ });
994
+ },
995
+ },
935
996
  ];