@oss-autopilot/core 3.14.4 → 3.15.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 +1 -1
- package/dist/cli.bundle.cjs +73 -73
- package/dist/commands/scout-bridge.d.ts +8 -6
- package/dist/commands/scout-bridge.js +30 -8
- package/dist/commands/search.d.ts +14 -0
- package/dist/commands/search.js +39 -1
- package/dist/commands/skip-file-parser.d.ts +16 -0
- package/dist/commands/skip-file-parser.js +18 -6
- package/dist/core/issue-grading.d.ts +10 -10
- package/dist/core/issue-grading.js +35 -30
- package/dist/core/starred-repos.d.ts +26 -0
- package/dist/core/starred-repos.js +77 -0
- package/dist/core/state-schema.d.ts +19 -0
- package/dist/core/state-schema.js +22 -0
- package/dist/core/state.d.ts +12 -1
- package/dist/core/state.js +16 -0
- package/dist/core/types.d.ts +1 -1
- package/dist/formatters/json.d.ts +10 -24
- package/dist/formatters/json.js +1 -1
- package/package.json +2 -2
package/dist/core/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Core types for the Open Source Contribution Agent
|
|
3
3
|
*/
|
|
4
4
|
import type { FetchedPRStatus, RepoSignals, TrackedIssue, IssueVettingResult, IssueScope, DiffTool, AgentConfig, AgentState } from './state-schema.js';
|
|
5
|
-
export type { IssueStatus, FetchedPRStatus, ProjectCategory, IssueScope, DiffTool, RepoSignals, RepoScore, StoredMergedPR, StoredClosedPR, AnalyzedIssueConversation, ContributionGuidelines, IssueVettingResult, TrackedIssue, ShelvedPRRef, StatusOverride, AgentConfig, LocalRepoCache, ClosedPR, MergedPR, DailyDigest, AgentState, } from './state-schema.js';
|
|
5
|
+
export type { IssueStatus, FetchedPRStatus, ProjectCategory, IssueScope, DiffTool, RepoSignals, RepoScore, StoredMergedPR, StoredClosedPR, AnalyzedIssueConversation, ContributionGuidelines, IssueVettingResult, TrackedIssue, ShelvedPRRef, StatusOverride, AgentConfig, LocalRepoCache, ClosedPR, MergedPR, DailyDigest, AgentState, SearchSeenEntry, } from './state-schema.js';
|
|
6
6
|
/** CI pipeline status for a PR's latest commit. */
|
|
7
7
|
export type CIStatus = 'passing' | 'failing' | 'pending' | 'unknown';
|
|
8
8
|
/**
|
|
@@ -677,12 +677,7 @@ export declare const SearchOutputSchema: z.ZodObject<{
|
|
|
677
677
|
}>;
|
|
678
678
|
viabilityScore: z.ZodNumber;
|
|
679
679
|
grade: z.ZodObject<{
|
|
680
|
-
|
|
681
|
-
A: "A";
|
|
682
|
-
B: "B";
|
|
683
|
-
C: "C";
|
|
684
|
-
F: "F";
|
|
685
|
-
}>;
|
|
680
|
+
score: z.ZodNumber;
|
|
686
681
|
reason: z.ZodString;
|
|
687
682
|
}, z.core.$strip>;
|
|
688
683
|
repoScore: z.ZodOptional<z.ZodObject<{
|
|
@@ -738,12 +733,7 @@ export declare const FeaturesOutputSchema: z.ZodObject<{
|
|
|
738
733
|
}>;
|
|
739
734
|
viabilityScore: z.ZodNumber;
|
|
740
735
|
grade: z.ZodObject<{
|
|
741
|
-
|
|
742
|
-
A: "A";
|
|
743
|
-
B: "B";
|
|
744
|
-
C: "C";
|
|
745
|
-
F: "F";
|
|
746
|
-
}>;
|
|
736
|
+
score: z.ZodNumber;
|
|
747
737
|
reason: z.ZodString;
|
|
748
738
|
}, z.core.$strip>;
|
|
749
739
|
repoScore: z.ZodOptional<z.ZodObject<{
|
|
@@ -796,12 +786,7 @@ export declare const FeaturesOutputSchema: z.ZodObject<{
|
|
|
796
786
|
}>;
|
|
797
787
|
viabilityScore: z.ZodNumber;
|
|
798
788
|
grade: z.ZodObject<{
|
|
799
|
-
|
|
800
|
-
A: "A";
|
|
801
|
-
B: "B";
|
|
802
|
-
C: "C";
|
|
803
|
-
F: "F";
|
|
804
|
-
}>;
|
|
789
|
+
score: z.ZodNumber;
|
|
805
790
|
reason: z.ZodString;
|
|
806
791
|
}, z.core.$strip>;
|
|
807
792
|
repoScore: z.ZodOptional<z.ZodObject<{
|
|
@@ -1260,12 +1245,13 @@ export interface SearchCandidate {
|
|
|
1260
1245
|
/** 0-100 scale composite viability score. Sanitized on the boundary (#1043): out-of-contract values are coerced to 0 and logged. */
|
|
1261
1246
|
viabilityScore: number;
|
|
1262
1247
|
/**
|
|
1263
|
-
*
|
|
1264
|
-
* Scout's `search` does not emit per-candidate projectHealth, so
|
|
1265
|
-
* signals are treated as unknown; unscored repos
|
|
1248
|
+
* Success-likelihood score (1-10) computed from the autopilot-tracked
|
|
1249
|
+
* repoScore. Scout's `search` does not emit per-candidate projectHealth, so
|
|
1250
|
+
* scout-side signals are treated as unknown; unscored repos score 1. See
|
|
1251
|
+
* #1043.
|
|
1266
1252
|
*/
|
|
1267
1253
|
grade: {
|
|
1268
|
-
|
|
1254
|
+
score: number;
|
|
1269
1255
|
reason: string;
|
|
1270
1256
|
};
|
|
1271
1257
|
repoScore?: {
|
|
@@ -1550,9 +1536,9 @@ export interface VetOutput {
|
|
|
1550
1536
|
reasons: string[];
|
|
1551
1537
|
modelVersion: string;
|
|
1552
1538
|
} | null;
|
|
1553
|
-
/** Success-likelihood
|
|
1539
|
+
/** Success-likelihood score (#858, 1-10): predicts whether a PR will merge. */
|
|
1554
1540
|
grade: {
|
|
1555
|
-
|
|
1541
|
+
score: number;
|
|
1556
1542
|
reason: string;
|
|
1557
1543
|
};
|
|
1558
1544
|
}
|
package/dist/formatters/json.js
CHANGED
|
@@ -356,7 +356,7 @@ const SearchCandidateSchema = z.object({
|
|
|
356
356
|
searchPriority: SearchPrioritySchema,
|
|
357
357
|
viabilityScore: z.number(),
|
|
358
358
|
grade: z.object({
|
|
359
|
-
|
|
359
|
+
score: z.number().min(1).max(10),
|
|
360
360
|
reason: z.string(),
|
|
361
361
|
}),
|
|
362
362
|
repoScore: z
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
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.2",
|
|
58
58
|
"commander": "^15.0.0",
|
|
59
59
|
"zod": "^4.4.3"
|
|
60
60
|
},
|