@oss-autopilot/core 3.17.2 → 3.18.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.
@@ -319,10 +319,12 @@ export const commands = [
319
319
  .command('search [count]')
320
320
  .description('Search for new issues to work on')
321
321
  .option('--json', 'Output as JSON')
322
+ .option('--strategy <strategies>', "Comma-separated discovery phases to run (merged,starred,broad,maintained,all). Omit to run scout's default staged pipeline.")
322
323
  .action(async (count, options) => {
323
324
  const { SearchOutputSchema } = await import('./formatters/json.js');
324
325
  await executeAction(options, async () => {
325
- const { runSearch, MAX_SEARCH_RESULTS } = await import('./commands/search.js');
326
+ const { runSearch, MAX_SEARCH_RESULTS, parseSearchStrategies } = await import('./commands/search.js');
327
+ const strategies = parseSearchStrategies(options.strategy);
326
328
  let maxResults = 5;
327
329
  if (count !== undefined) {
328
330
  const parsed = Number(count);
@@ -338,7 +340,7 @@ export const commands = [
338
340
  if (!options.json) {
339
341
  console.log(`\nSearching for issues (max ${maxResults})...\n`);
340
342
  }
341
- return runSearch({ maxResults });
343
+ return runSearch({ maxResults, strategies });
342
344
  }, (data) => {
343
345
  if (data.hiddenOwnPRCount > 0) {
344
346
  console.log(`Hidden: ${data.hiddenOwnPRCount} candidate(s) were issues you already have open PRs for.`);