@oss-autopilot/core 3.41.0 → 3.42.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.
- package/dist/cli.bundle.cjs +147 -128
- package/dist/commands/features.js +1 -0
- package/dist/commands/scout-bridge.js +1 -0
- package/dist/commands/search.js +1 -0
- 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
|
@@ -76,6 +76,7 @@ function toFeaturesCandidate(scoutCandidate, getState) {
|
|
|
76
76
|
reasonsToApprove: scoutCandidate.reasonsToApprove,
|
|
77
77
|
reasonsToSkip: scoutCandidate.reasonsToSkip,
|
|
78
78
|
searchPriority: scoutCandidate.searchPriority,
|
|
79
|
+
...(scoutCandidate.complexityUnlocked && { complexityUnlocked: true }),
|
|
79
80
|
viabilityScore: sanitizeViabilityScore(scoutCandidate.viabilityScore),
|
|
80
81
|
grade,
|
|
81
82
|
repoScore: repoScoreRecord
|
|
@@ -203,6 +203,7 @@ export function buildScoutState(diagnostics, excludeUrls = []) {
|
|
|
203
203
|
interPhaseDelayMs: 0,
|
|
204
204
|
broadPhaseDelayMs: 0,
|
|
205
205
|
skipBroadWhenSufficientResults: config.skipBroadWhenSufficientResults,
|
|
206
|
+
complexIssues: config.complexIssues === 'warm' ? 'warm' : 'off',
|
|
206
207
|
persistence: config.persistence,
|
|
207
208
|
slmTriageModel: config.slmTriageModel,
|
|
208
209
|
slmTriageHost: config.slmTriageHost,
|
package/dist/commands/search.js
CHANGED
|
@@ -288,6 +288,7 @@ export async function runSearch(options) {
|
|
|
288
288
|
reasonsToApprove: c.reasonsToApprove,
|
|
289
289
|
reasonsToSkip: c.reasonsToSkip,
|
|
290
290
|
searchPriority: c.searchPriority,
|
|
291
|
+
...(c.complexityUnlocked && { complexityUnlocked: true }),
|
|
291
292
|
viabilityScore: sanitizeViabilityScore(c.viabilityScore),
|
|
292
293
|
grade,
|
|
293
294
|
repoScore: repoScoreRecord
|
package/dist/commands/setup.js
CHANGED
|
@@ -22,6 +22,12 @@ function parseNonNegativeInt(value, settingName) {
|
|
|
22
22
|
}
|
|
23
23
|
return parsed;
|
|
24
24
|
}
|
|
25
|
+
function parseComplexIssues(value) {
|
|
26
|
+
if (value !== 'off' && value !== 'warm') {
|
|
27
|
+
throw new ValidationError(`Invalid value for complexIssues: "${value}". Must be "off" or "warm".`);
|
|
28
|
+
}
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
25
31
|
/**
|
|
26
32
|
* Interactive setup wizard or direct setting application.
|
|
27
33
|
*
|
|
@@ -348,6 +354,12 @@ export async function runSetup(options) {
|
|
|
348
354
|
results[key] = String(threshold);
|
|
349
355
|
break;
|
|
350
356
|
}
|
|
357
|
+
case 'complexIssues': {
|
|
358
|
+
const mode = parseComplexIssues(value);
|
|
359
|
+
stateManager.updateConfig({ complexIssues: mode });
|
|
360
|
+
results[key] = mode;
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
351
363
|
case 'healthCheckFreshnessMinutes': {
|
|
352
364
|
const minutes = parsePositiveInt(value, 'healthCheckFreshnessMinutes');
|
|
353
365
|
stateManager.updateConfig({ healthCheckFreshnessMinutes: minutes });
|
|
@@ -227,6 +227,7 @@ export async function runVetList(options = {}) {
|
|
|
227
227
|
recommendation: reconcileRecommendation(candidate.recommendation, grade),
|
|
228
228
|
reasonsToApprove: candidate.reasonsToApprove,
|
|
229
229
|
reasonsToSkip: candidate.reasonsToSkip,
|
|
230
|
+
...(candidate.complexityUnlocked && { complexityUnlocked: true }),
|
|
230
231
|
projectHealth: candidate.projectHealth,
|
|
231
232
|
vettingResult: candidate.vettingResult,
|
|
232
233
|
antiLLMPolicy: candidate.antiLLMPolicy,
|
package/dist/commands/vet.js
CHANGED
|
@@ -42,6 +42,7 @@ export async function runVet(options) {
|
|
|
42
42
|
recommendation: reconcileRecommendation(candidate.recommendation, grade),
|
|
43
43
|
reasonsToApprove: candidate.reasonsToApprove,
|
|
44
44
|
reasonsToSkip: candidate.reasonsToSkip,
|
|
45
|
+
...(candidate.complexityUnlocked && { complexityUnlocked: true }),
|
|
45
46
|
projectHealth: candidate.projectHealth,
|
|
46
47
|
vettingResult: candidate.vettingResult,
|
|
47
48
|
antiLLMPolicy: candidate.antiLLMPolicy,
|
|
@@ -104,6 +104,12 @@ export const CONFIG_KEY_REGISTRY = [
|
|
|
104
104
|
settableVia: 'setup',
|
|
105
105
|
valueHint: 'non-negative integer (0 disables)',
|
|
106
106
|
},
|
|
107
|
+
{
|
|
108
|
+
key: 'complexIssues',
|
|
109
|
+
description: 'Surface larger issues in repos where you already have a merged PR: only a PR that closes the issue counts as an existing PR, and maintainer-filed issues pass without code in the body.',
|
|
110
|
+
settableVia: 'setup',
|
|
111
|
+
valueHint: 'off|warm',
|
|
112
|
+
},
|
|
107
113
|
{
|
|
108
114
|
key: 'minRepoScoreThreshold',
|
|
109
115
|
description: 'Minimum repo maintainer-health score required for discovery (0–10).',
|
|
@@ -319,6 +319,7 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
319
319
|
approachingDormantDays: z.ZodDefault<z.ZodNumber>;
|
|
320
320
|
maxIssueAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
321
321
|
skipBroadWhenSufficientResults: z.ZodDefault<z.ZodNumber>;
|
|
322
|
+
complexIssues: z.ZodDefault<z.ZodCustom<"off" | (string & {}) | "warm", "off" | (string & {}) | "warm">>;
|
|
322
323
|
languages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
323
324
|
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
324
325
|
scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -389,6 +390,7 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
389
390
|
approachingDormantDays: number;
|
|
390
391
|
maxIssueAgeDays: number;
|
|
391
392
|
skipBroadWhenSufficientResults: number;
|
|
393
|
+
complexIssues: "off" | (string & {}) | "warm";
|
|
392
394
|
languages: string[];
|
|
393
395
|
labels: string[];
|
|
394
396
|
excludeRepos: string[];
|
|
@@ -441,6 +443,7 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
441
443
|
approachingDormantDays: number;
|
|
442
444
|
maxIssueAgeDays: number;
|
|
443
445
|
skipBroadWhenSufficientResults: number;
|
|
446
|
+
complexIssues: "off" | (string & {}) | "warm";
|
|
444
447
|
languages: string[];
|
|
445
448
|
labels: string[];
|
|
446
449
|
excludeRepos: string[];
|
|
@@ -747,6 +750,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
747
750
|
approachingDormantDays: z.ZodDefault<z.ZodNumber>;
|
|
748
751
|
maxIssueAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
749
752
|
skipBroadWhenSufficientResults: z.ZodDefault<z.ZodNumber>;
|
|
753
|
+
complexIssues: z.ZodDefault<z.ZodCustom<"off" | (string & {}) | "warm", "off" | (string & {}) | "warm">>;
|
|
750
754
|
languages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
751
755
|
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
752
756
|
scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -817,6 +821,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
817
821
|
approachingDormantDays: number;
|
|
818
822
|
maxIssueAgeDays: number;
|
|
819
823
|
skipBroadWhenSufficientResults: number;
|
|
824
|
+
complexIssues: "off" | (string & {}) | "warm";
|
|
820
825
|
languages: string[];
|
|
821
826
|
labels: string[];
|
|
822
827
|
excludeRepos: string[];
|
|
@@ -869,6 +874,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
869
874
|
approachingDormantDays: number;
|
|
870
875
|
maxIssueAgeDays: number;
|
|
871
876
|
skipBroadWhenSufficientResults: number;
|
|
877
|
+
complexIssues: "off" | (string & {}) | "warm";
|
|
872
878
|
languages: string[];
|
|
873
879
|
labels: string[];
|
|
874
880
|
excludeRepos: string[];
|
|
@@ -298,6 +298,12 @@ export const AgentConfigSchema = z
|
|
|
298
298
|
// found (0 disables — broad always runs). Affinity/starred-repo candidates do
|
|
299
299
|
// not count, so the broad phase still surfaces repos you haven't touched.
|
|
300
300
|
skipBroadWhenSufficientResults: z.number().min(0).default(8),
|
|
301
|
+
// Passed to scout as its `complexIssues` preference. "warm" relaxes vetting
|
|
302
|
+
// in repos the user already has a merged PR in, so larger and
|
|
303
|
+
// maintainer-filed issues surface there. "off" keeps one rule set everywhere.
|
|
304
|
+
// Open enum: a later release may add a mode, and this one must still load
|
|
305
|
+
// the shared state. Anything but "warm" reads as off (scout-bridge.ts).
|
|
306
|
+
complexIssues: openEnum(['off', 'warm']).default('off'),
|
|
301
307
|
languages: z.array(z.string()).default(['typescript', 'javascript']),
|
|
302
308
|
labels: z.array(z.string()).default(['good first issue', 'help wanted']),
|
|
303
309
|
scope: z.array(IssueScopeSchema).optional(),
|
|
@@ -937,6 +937,7 @@ export declare const SearchOutputSchema: z.ZodObject<{
|
|
|
937
937
|
preferred_org: "preferred_org";
|
|
938
938
|
starred: "starred";
|
|
939
939
|
}>;
|
|
940
|
+
complexityUnlocked: z.ZodOptional<z.ZodLiteral<true>>;
|
|
940
941
|
viabilityScore: z.ZodNumber;
|
|
941
942
|
grade: z.ZodObject<{
|
|
942
943
|
score: z.ZodNumber;
|
|
@@ -994,6 +995,7 @@ export declare const FeaturesOutputSchema: z.ZodObject<{
|
|
|
994
995
|
preferred_org: "preferred_org";
|
|
995
996
|
starred: "starred";
|
|
996
997
|
}>;
|
|
998
|
+
complexityUnlocked: z.ZodOptional<z.ZodLiteral<true>>;
|
|
997
999
|
viabilityScore: z.ZodNumber;
|
|
998
1000
|
grade: z.ZodObject<{
|
|
999
1001
|
score: z.ZodNumber;
|
|
@@ -1047,6 +1049,7 @@ export declare const FeaturesOutputSchema: z.ZodObject<{
|
|
|
1047
1049
|
preferred_org: "preferred_org";
|
|
1048
1050
|
starred: "starred";
|
|
1049
1051
|
}>;
|
|
1052
|
+
complexityUnlocked: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1050
1053
|
viabilityScore: z.ZodNumber;
|
|
1051
1054
|
grade: z.ZodObject<{
|
|
1052
1055
|
score: z.ZodNumber;
|
|
@@ -1643,6 +1646,8 @@ export interface SearchCandidate {
|
|
|
1643
1646
|
reasonsToApprove: string[];
|
|
1644
1647
|
reasonsToSkip: string[];
|
|
1645
1648
|
searchPriority: SearchPriority;
|
|
1649
|
+
/** Set when the `complexIssues` setting unlocked this repo: size is not a reason to pass on the issue. */
|
|
1650
|
+
complexityUnlocked?: true;
|
|
1646
1651
|
/** 0-100 scale composite viability score. Sanitized on the boundary (#1043): out-of-contract values are coerced to 0 and logged. */
|
|
1647
1652
|
viabilityScore: number;
|
|
1648
1653
|
/**
|
|
@@ -1924,6 +1929,8 @@ export interface VetOutput {
|
|
|
1924
1929
|
recommendation: 'approve' | 'skip' | 'needs_review';
|
|
1925
1930
|
reasonsToApprove: string[];
|
|
1926
1931
|
reasonsToSkip: string[];
|
|
1932
|
+
/** Set when the `complexIssues` setting unlocked this repo: size is not a reason to pass on the issue. */
|
|
1933
|
+
complexityUnlocked?: true;
|
|
1927
1934
|
projectHealth: unknown;
|
|
1928
1935
|
vettingResult: unknown;
|
|
1929
1936
|
/**
|
package/dist/formatters/json.js
CHANGED
|
@@ -443,6 +443,7 @@ const SearchCandidateSchema = z.object({
|
|
|
443
443
|
reasonsToApprove: z.array(z.string()),
|
|
444
444
|
reasonsToSkip: z.array(z.string()),
|
|
445
445
|
searchPriority: SearchPrioritySchema,
|
|
446
|
+
complexityUnlocked: z.literal(true).optional(),
|
|
446
447
|
viabilityScore: z.number(),
|
|
447
448
|
grade: z.object({
|
|
448
449
|
score: z.number().min(1).max(10),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.42.1",
|
|
4
4
|
"description": "CLI and core library for managing open source contributions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@octokit/plugin-retry": "^8.1.1",
|
|
56
56
|
"@octokit/plugin-throttling": "^11.0.5",
|
|
57
57
|
"@octokit/rest": "^22.0.1",
|
|
58
|
-
"@oss-scout/core": "^1.
|
|
58
|
+
"@oss-scout/core": "^1.14.1",
|
|
59
59
|
"commander": "^15.0.0",
|
|
60
60
|
"zod": "^4.6.7"
|
|
61
61
|
},
|