@oss-autopilot/core 3.17.3 → 3.19.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 +5 -3
- package/dist/cli.bundle.cjs +61 -61
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/index.js +1 -1
- package/dist/commands/search.d.ts +25 -0
- package/dist/commands/search.js +38 -0
- package/package.json +5 -5
package/dist/cli-registry.js
CHANGED
|
@@ -319,11 +319,13 @@ 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
|
-
|
|
326
|
+
const { runSearch, MAX_SEARCH_RESULTS, DEFAULT_SEARCH_RESULTS, parseSearchStrategies } = await import('./commands/search.js');
|
|
327
|
+
const strategies = parseSearchStrategies(options.strategy);
|
|
328
|
+
let maxResults = DEFAULT_SEARCH_RESULTS;
|
|
327
329
|
if (count !== undefined) {
|
|
328
330
|
const parsed = Number(count);
|
|
329
331
|
if (!Number.isFinite(parsed) || parsed < 1 || !Number.isInteger(parsed)) {
|
|
@@ -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.`);
|