@oss-autopilot/core 3.40.2 → 3.42.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 +4 -2
- package/dist/cli.bundle.cjs +163 -125
- package/dist/commands/features.js +1 -0
- package/dist/commands/scout-bridge.d.ts +5 -2
- package/dist/commands/scout-bridge.js +27 -3
- package/dist/commands/search.d.ts +15 -0
- package/dist/commands/search.js +30 -1
- package/dist/commands/setup.js +12 -0
- package/dist/commands/vet-list.js +1 -0
- package/dist/commands/vet.js +1 -0
- package/dist/core/config-registry.js +6 -0
- package/dist/core/state-schema.d.ts +6 -0
- package/dist/core/state-schema.js +6 -0
- package/dist/formatters/json.d.ts +7 -0
- package/dist/formatters/json.js +1 -0
- package/package.json +2 -2
package/dist/cli-registry.js
CHANGED
|
@@ -326,10 +326,11 @@ export const commands = [
|
|
|
326
326
|
.option('--strategy <strategies>', 'Comma-separated discovery phases to rotate through (merged,orgs,starred,broad,maintained,all). Omit for all. Each search runs one of them in turn unless --full is set.')
|
|
327
327
|
.option('--full', 'Run every enabled strategy in this search instead of one per search in rotation. More API calls, can take a few minutes.')
|
|
328
328
|
.option('--no-record', "Don't save surfaced issues or the rotation cursor to shared state. For scheduled searches on a second machine, so they don't hide issues from your own searches. Use with --full.")
|
|
329
|
+
.option('--exclude-file <path>', 'Leave out every GitHub issue URL found in this file, matched exactly as search prints them. For scheduled searches that keep their own seen list (see --no-record).')
|
|
329
330
|
.action(async (count, options) => {
|
|
330
331
|
const { SearchOutputSchema } = await import('./formatters/json.js');
|
|
331
332
|
await executeAction(options, async () => {
|
|
332
|
-
const { runSearch, MAX_SEARCH_RESULTS, DEFAULT_SEARCH_RESULTS, parseSearchStrategies } = await import('./commands/search.js');
|
|
333
|
+
const { runSearch, MAX_SEARCH_RESULTS, DEFAULT_SEARCH_RESULTS, parseSearchStrategies, readExcludeFile } = await import('./commands/search.js');
|
|
333
334
|
const strategies = parseSearchStrategies(options.strategy);
|
|
334
335
|
let maxResults = DEFAULT_SEARCH_RESULTS;
|
|
335
336
|
if (count !== undefined) {
|
|
@@ -346,7 +347,8 @@ export const commands = [
|
|
|
346
347
|
if (!options.json) {
|
|
347
348
|
console.log(`\nSearching for issues (max ${maxResults})...\n`);
|
|
348
349
|
}
|
|
349
|
-
|
|
350
|
+
const excludeUrls = options.excludeFile === undefined ? undefined : readExcludeFile(options.excludeFile);
|
|
351
|
+
return runSearch({ maxResults, strategies, full: options.full, record: options.record, excludeUrls });
|
|
350
352
|
}, (data) => {
|
|
351
353
|
if (data.hiddenOwnPRCount > 0) {
|
|
352
354
|
console.log(`Hidden: ${data.hiddenOwnPRCount} candidate(s) were issues you already have open PRs for.`);
|