@oss-autopilot/core 3.15.2 → 3.16.1
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.
|
@@ -113,7 +113,7 @@ export function buildScoutState(diagnostics) {
|
|
|
113
113
|
minRepoScoreThreshold: config.minRepoScoreThreshold,
|
|
114
114
|
interPhaseDelayMs: 30_000,
|
|
115
115
|
broadPhaseDelayMs: 90_000,
|
|
116
|
-
skipBroadWhenSufficientResults:
|
|
116
|
+
skipBroadWhenSufficientResults: config.skipBroadWhenSufficientResults,
|
|
117
117
|
persistence: config.persistence,
|
|
118
118
|
slmTriageModel: config.slmTriageModel,
|
|
119
119
|
slmTriageHost: config.slmTriageHost,
|
package/dist/commands/setup.js
CHANGED
|
@@ -15,6 +15,13 @@ function parsePositiveInt(value, settingName) {
|
|
|
15
15
|
}
|
|
16
16
|
return parsed;
|
|
17
17
|
}
|
|
18
|
+
function parseNonNegativeInt(value, settingName) {
|
|
19
|
+
const parsed = Number(value);
|
|
20
|
+
if (!Number.isInteger(parsed) || parsed < 0) {
|
|
21
|
+
throw new ValidationError(`Invalid value for ${settingName}: "${value}". Must be a non-negative integer.`);
|
|
22
|
+
}
|
|
23
|
+
return parsed;
|
|
24
|
+
}
|
|
18
25
|
/**
|
|
19
26
|
* Interactive setup wizard or direct setting application.
|
|
20
27
|
*
|
|
@@ -308,6 +315,26 @@ export async function runSetup(options) {
|
|
|
308
315
|
results[key] = value || '(cleared)';
|
|
309
316
|
break;
|
|
310
317
|
}
|
|
318
|
+
case 'skipBroadWhenSufficientResults': {
|
|
319
|
+
// 0 is valid and meaningful ("always run the broad phase"), so this
|
|
320
|
+
// key allows zero unlike the positive-int keys above.
|
|
321
|
+
const threshold = parseNonNegativeInt(value, 'skipBroadWhenSufficientResults');
|
|
322
|
+
stateManager.updateConfig({ skipBroadWhenSufficientResults: threshold });
|
|
323
|
+
results[key] = String(threshold);
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
case 'healthCheckFreshnessMinutes': {
|
|
327
|
+
const minutes = parsePositiveInt(value, 'healthCheckFreshnessMinutes');
|
|
328
|
+
stateManager.updateConfig({ healthCheckFreshnessMinutes: minutes });
|
|
329
|
+
results[key] = String(minutes);
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
case 'reviewMaxPasses': {
|
|
333
|
+
const passes = parsePositiveInt(value, 'reviewMaxPasses');
|
|
334
|
+
stateManager.updateConfig({ reviewMaxPasses: passes });
|
|
335
|
+
results[key] = String(passes);
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
311
338
|
case 'complete': {
|
|
312
339
|
if (value === 'true') {
|
|
313
340
|
stateManager.markSetupComplete();
|
|
@@ -80,6 +80,12 @@ export const CONFIG_KEY_REGISTRY = [
|
|
|
80
80
|
settableVia: 'setup',
|
|
81
81
|
valueHint: 'positive integer',
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
key: 'skipBroadWhenSufficientResults',
|
|
85
|
+
description: 'Skip the broad discovery phase once this many candidates from new repos are found (0 = always run the broad phase). Affinity/starred-repo candidates do not count toward it.',
|
|
86
|
+
settableVia: 'setup',
|
|
87
|
+
valueHint: 'non-negative integer (0 disables)',
|
|
88
|
+
},
|
|
83
89
|
{
|
|
84
90
|
key: 'minRepoScoreThreshold',
|
|
85
91
|
description: 'Minimum repo maintainer-health score required for discovery (0–10).',
|
|
@@ -247,6 +247,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
247
247
|
dormantThresholdDays: z.ZodDefault<z.ZodNumber>;
|
|
248
248
|
approachingDormantDays: z.ZodDefault<z.ZodNumber>;
|
|
249
249
|
maxIssueAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
250
|
+
skipBroadWhenSufficientResults: z.ZodDefault<z.ZodNumber>;
|
|
250
251
|
languages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
251
252
|
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
252
253
|
scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -447,6 +448,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
447
448
|
dormantThresholdDays: z.ZodDefault<z.ZodNumber>;
|
|
448
449
|
approachingDormantDays: z.ZodDefault<z.ZodNumber>;
|
|
449
450
|
maxIssueAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
451
|
+
skipBroadWhenSufficientResults: z.ZodDefault<z.ZodNumber>;
|
|
450
452
|
languages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
451
453
|
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
452
454
|
scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -192,6 +192,10 @@ export const AgentConfigSchema = z.object({
|
|
|
192
192
|
dormantThresholdDays: z.number().default(30),
|
|
193
193
|
approachingDormantDays: z.number().default(25),
|
|
194
194
|
maxIssueAgeDays: z.number().default(90),
|
|
195
|
+
// Skip the broad discovery phase once this many candidates from NEW repos are
|
|
196
|
+
// found (0 disables — broad always runs). Affinity/starred-repo candidates do
|
|
197
|
+
// not count, so the broad phase still surfaces repos you haven't touched.
|
|
198
|
+
skipBroadWhenSufficientResults: z.number().min(0).default(8),
|
|
195
199
|
languages: z.array(z.string()).default(['typescript', 'javascript']),
|
|
196
200
|
labels: z.array(z.string()).default(['good first issue', 'help wanted']),
|
|
197
201
|
scope: z.array(IssueScopeSchema).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.1",
|
|
4
4
|
"description": "CLI and core library for managing open source contributions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@octokit/plugin-throttling": "^11.0.3",
|
|
56
56
|
"@octokit/rest": "^22.0.1",
|
|
57
|
-
"@oss-scout/core": "^1.2.
|
|
57
|
+
"@oss-scout/core": "^1.2.4",
|
|
58
58
|
"commander": "^15.0.0",
|
|
59
59
|
"zod": "^4.4.3"
|
|
60
60
|
},
|