@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.
@@ -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
- letter: z.ZodEnum<{
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
- letter: z.ZodEnum<{
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
- letter: z.ZodEnum<{
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
- * Letter grade (A/B/C/F) computed from the autopilot-tracked repoScore.
1264
- * Scout's `search` does not emit per-candidate projectHealth, so scout-side
1265
- * signals are treated as unknown; unscored repos grade 'F'. See #1043.
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
- letter: 'A' | 'B' | 'C' | 'F';
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 grade (#858): predicts whether a PR will merge. */
1539
+ /** Success-likelihood score (#858, 1-10): predicts whether a PR will merge. */
1554
1540
  grade: {
1555
- letter: 'A' | 'B' | 'C' | 'F';
1541
+ score: number;
1556
1542
  reason: string;
1557
1543
  };
1558
1544
  }
@@ -356,7 +356,7 @@ const SearchCandidateSchema = z.object({
356
356
  searchPriority: SearchPrioritySchema,
357
357
  viabilityScore: z.number(),
358
358
  grade: z.object({
359
- letter: z.enum(['A', 'B', 'C', 'F']),
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.14.4",
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.1",
57
+ "@oss-scout/core": "^1.2.2",
58
58
  "commander": "^15.0.0",
59
59
  "zod": "^4.4.3"
60
60
  },