@oss-autopilot/core 3.33.1 → 3.35.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 +38 -1
- package/dist/cli.bundle.cjs +133 -123
- package/dist/commands/daily.js +5 -1
- package/dist/commands/dashboard-data.js +3 -1
- package/dist/commands/eval.d.ts +11 -0
- package/dist/commands/eval.js +11 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.js +1 -0
- package/dist/commands/ledger-backfill.d.ts +40 -0
- package/dist/commands/ledger-backfill.js +222 -0
- package/dist/commands/vet-list.js +16 -6
- package/dist/commands/vet.js +4 -2
- package/dist/core/close-reason.d.ts +36 -0
- package/dist/core/close-reason.js +56 -0
- package/dist/core/daily-logic.d.ts +12 -0
- package/dist/core/daily-logic.js +10 -0
- package/dist/core/eval-report.d.ts +55 -0
- package/dist/core/eval-report.js +213 -0
- package/dist/core/gist-state-store.js +4 -1
- package/dist/core/github-stats.d.ts +9 -0
- package/dist/core/github-stats.js +26 -0
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +2 -1
- package/dist/core/pick-snapshot.d.ts +23 -0
- package/dist/core/pick-snapshot.js +51 -0
- package/dist/core/state-persistence.js +6 -2
- package/dist/core/state-schema.d.ts +337 -34
- package/dist/core/state-schema.js +125 -22
- package/dist/core/state.d.ts +22 -1
- package/dist/core/state.js +64 -10
- package/dist/core/types.d.ts +1 -1
- package/dist/formatters/json.d.ts +8 -0
- package/package.json +1 -1
|
@@ -6,9 +6,14 @@
|
|
|
6
6
|
* re-exported through types.ts.
|
|
7
7
|
*
|
|
8
8
|
* Schemas are defined bottom-up (leaf types first, composites last).
|
|
9
|
-
* Unknown keys are stripped by default (Zod 4 behavior)
|
|
9
|
+
* Unknown keys are stripped by default (Zod 4 behavior), EXCEPT on the schemas
|
|
10
|
+
* marked `.passthrough()` (#1831): see the note above AgentStateSchema.
|
|
10
11
|
*/
|
|
11
12
|
import { z } from 'zod';
|
|
13
|
+
/** Drops the `[k: string]: unknown` index signature `.passthrough()` adds to an inferred type. */
|
|
14
|
+
type KnownKeys<T> = {
|
|
15
|
+
[K in keyof T as string extends K ? never : K]: T[K];
|
|
16
|
+
};
|
|
12
17
|
import type { FetchedPR } from './types.js';
|
|
13
18
|
export declare const IssueStatusSchema: z.ZodEnum<{
|
|
14
19
|
candidate: "candidate";
|
|
@@ -59,8 +64,34 @@ export declare const RepoScoreSchema: z.ZodObject<{
|
|
|
59
64
|
}, z.core.$strip>;
|
|
60
65
|
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
61
66
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
-
}, z.core.$
|
|
67
|
+
}, z.core.$loose>;
|
|
68
|
+
/**
|
|
69
|
+
* What the tool predicted about an issue when it was vetted (#1824). Recorded
|
|
70
|
+
* by `vet` / `vet-list` keyed by issue URL, then copied onto the outcome
|
|
71
|
+
* ledger entry of the PR that closes that issue, so outcomes can be compared
|
|
72
|
+
* against the prediction that picked them (calibration).
|
|
73
|
+
*/
|
|
74
|
+
export declare const PickSnapshotSchema: z.ZodObject<{
|
|
75
|
+
issueUrl: z.ZodString;
|
|
76
|
+
grade: z.ZodNumber;
|
|
77
|
+
recommendation: z.ZodString;
|
|
78
|
+
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
source: z.ZodCustom<(string & {}) | "vet" | "vet-list" | "list", (string & {}) | "vet" | "vet-list" | "list">;
|
|
80
|
+
capturedAt: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$loose>;
|
|
63
82
|
export declare const StoredMergedPRSchema: z.ZodObject<{
|
|
83
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
84
|
+
pick: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
issueUrl: z.ZodString;
|
|
86
|
+
grade: z.ZodNumber;
|
|
87
|
+
recommendation: z.ZodString;
|
|
88
|
+
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
source: z.ZodCustom<(string & {}) | "vet" | "vet-list" | "list", (string & {}) | "vet" | "vet-list" | "list">;
|
|
90
|
+
capturedAt: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, z.core.$loose>>;
|
|
92
|
+
lastReviewDecision: z.ZodOptional<z.ZodString>;
|
|
93
|
+
lastCiStatus: z.ZodOptional<z.ZodString>;
|
|
94
|
+
backfilledAt: z.ZodOptional<z.ZodString>;
|
|
64
95
|
url: z.ZodString;
|
|
65
96
|
title: z.ZodString;
|
|
66
97
|
mergedAt: z.ZodString;
|
|
@@ -68,8 +99,22 @@ export declare const StoredMergedPRSchema: z.ZodObject<{
|
|
|
68
99
|
firstMaintainerResponseAt: z.ZodOptional<z.ZodString>;
|
|
69
100
|
commentsFetchedAt: z.ZodOptional<z.ZodString>;
|
|
70
101
|
learningsExtractedAt: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, z.core.$
|
|
102
|
+
}, z.core.$loose>;
|
|
72
103
|
export declare const StoredClosedPRSchema: z.ZodObject<{
|
|
104
|
+
closeReason: z.ZodOptional<z.ZodCustom<"unknown" | "rejected" | (string & {}) | "ai-policy" | "superseded" | "stale" | "self-closed", "unknown" | "rejected" | (string & {}) | "ai-policy" | "superseded" | "stale" | "self-closed">>;
|
|
105
|
+
selfCloseReason: z.ZodOptional<z.ZodCustom<(string & {}) | "superseded" | "no-traction" | "after-feedback" | "no-response", (string & {}) | "superseded" | "no-traction" | "after-feedback" | "no-response">>;
|
|
106
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
107
|
+
pick: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
issueUrl: z.ZodString;
|
|
109
|
+
grade: z.ZodNumber;
|
|
110
|
+
recommendation: z.ZodString;
|
|
111
|
+
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
source: z.ZodCustom<(string & {}) | "vet" | "vet-list" | "list", (string & {}) | "vet" | "vet-list" | "list">;
|
|
113
|
+
capturedAt: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$loose>>;
|
|
115
|
+
lastReviewDecision: z.ZodOptional<z.ZodString>;
|
|
116
|
+
lastCiStatus: z.ZodOptional<z.ZodString>;
|
|
117
|
+
backfilledAt: z.ZodOptional<z.ZodString>;
|
|
73
118
|
url: z.ZodString;
|
|
74
119
|
title: z.ZodString;
|
|
75
120
|
closedAt: z.ZodString;
|
|
@@ -77,7 +122,7 @@ export declare const StoredClosedPRSchema: z.ZodObject<{
|
|
|
77
122
|
firstMaintainerResponseAt: z.ZodOptional<z.ZodString>;
|
|
78
123
|
commentsFetchedAt: z.ZodOptional<z.ZodString>;
|
|
79
124
|
learningsExtractedAt: z.ZodOptional<z.ZodString>;
|
|
80
|
-
}, z.core.$
|
|
125
|
+
}, z.core.$loose>;
|
|
81
126
|
export declare const AnalyzedIssueConversationSchema: z.ZodObject<{
|
|
82
127
|
url: z.ZodString;
|
|
83
128
|
repo: z.ZodString;
|
|
@@ -236,7 +281,7 @@ export declare const StatusOverrideSchema: z.ZodObject<{
|
|
|
236
281
|
setAt: z.ZodString;
|
|
237
282
|
lastActivityAt: z.ZodString;
|
|
238
283
|
}, z.core.$strip>;
|
|
239
|
-
export declare const AgentConfigSchema: z.ZodObject<{
|
|
284
|
+
export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
240
285
|
setupComplete: z.ZodDefault<z.ZodBoolean>;
|
|
241
286
|
setupCompletedAt: z.ZodOptional<z.ZodString>;
|
|
242
287
|
persistence: z.ZodDefault<z.ZodEnum<{
|
|
@@ -305,7 +350,103 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
305
350
|
reviewMaxPasses: z.ZodOptional<z.ZodNumber>;
|
|
306
351
|
slmTriageModel: z.ZodDefault<z.ZodString>;
|
|
307
352
|
slmTriageHost: z.ZodDefault<z.ZodString>;
|
|
308
|
-
}, z.core.$
|
|
353
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
354
|
+
[x: string]: unknown;
|
|
355
|
+
setupComplete: boolean;
|
|
356
|
+
persistence: "local" | "gist";
|
|
357
|
+
maxActivePRs: number;
|
|
358
|
+
dormantThresholdDays: number;
|
|
359
|
+
approachingDormantDays: number;
|
|
360
|
+
maxIssueAgeDays: number;
|
|
361
|
+
skipBroadWhenSufficientResults: number;
|
|
362
|
+
languages: string[];
|
|
363
|
+
labels: string[];
|
|
364
|
+
excludeRepos: string[];
|
|
365
|
+
untrackedOrgs: string[];
|
|
366
|
+
avoidRepos: string[];
|
|
367
|
+
boostIssueTypes: string[];
|
|
368
|
+
trustedProjects: string[];
|
|
369
|
+
githubUsername: string;
|
|
370
|
+
minRepoScoreThreshold: number;
|
|
371
|
+
starredRepos: string[];
|
|
372
|
+
squashByDefault: boolean | "ask";
|
|
373
|
+
minStars: number;
|
|
374
|
+
includeDocIssues: boolean;
|
|
375
|
+
aiPolicyBlocklist: string[];
|
|
376
|
+
shelvedPRUrls: string[];
|
|
377
|
+
dismissedIssues: Record<string, string>;
|
|
378
|
+
projectCategories: ("nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
379
|
+
preferredOrgs: string[];
|
|
380
|
+
diffTool: "inline" | "custom" | "sourcetree" | "vscode";
|
|
381
|
+
autoExtractLearnings: boolean;
|
|
382
|
+
autoFormatBeforePush: boolean;
|
|
383
|
+
trustOwnRepoWrites: boolean;
|
|
384
|
+
healthCheckFreshnessMinutes: number;
|
|
385
|
+
slmTriageModel: string;
|
|
386
|
+
slmTriageHost: string;
|
|
387
|
+
setupCompletedAt?: string | undefined;
|
|
388
|
+
scope?: ("advanced" | "beginner" | "intermediate")[] | undefined;
|
|
389
|
+
excludeOrgs?: string[] | undefined;
|
|
390
|
+
starredReposLastFetched?: string | undefined;
|
|
391
|
+
localRepoScanPaths?: string[] | undefined;
|
|
392
|
+
statusOverrides?: Record<string, {
|
|
393
|
+
status: "needs_addressing" | "waiting_on_maintainer";
|
|
394
|
+
setAt: string;
|
|
395
|
+
lastActivityAt: string;
|
|
396
|
+
}> | undefined;
|
|
397
|
+
issueListPath?: string | undefined;
|
|
398
|
+
skippedIssuesPath?: string | undefined;
|
|
399
|
+
diffToolCustomCommand?: string | undefined;
|
|
400
|
+
reviewMaxPasses?: number | undefined;
|
|
401
|
+
}, {
|
|
402
|
+
[x: string]: unknown;
|
|
403
|
+
setupComplete: boolean;
|
|
404
|
+
persistence: "local" | "gist";
|
|
405
|
+
maxActivePRs: number;
|
|
406
|
+
dormantThresholdDays: number;
|
|
407
|
+
approachingDormantDays: number;
|
|
408
|
+
maxIssueAgeDays: number;
|
|
409
|
+
skipBroadWhenSufficientResults: number;
|
|
410
|
+
languages: string[];
|
|
411
|
+
labels: string[];
|
|
412
|
+
excludeRepos: string[];
|
|
413
|
+
untrackedOrgs: string[];
|
|
414
|
+
avoidRepos: string[];
|
|
415
|
+
boostIssueTypes: string[];
|
|
416
|
+
trustedProjects: string[];
|
|
417
|
+
githubUsername: string;
|
|
418
|
+
minRepoScoreThreshold: number;
|
|
419
|
+
starredRepos: string[];
|
|
420
|
+
squashByDefault: boolean | "ask";
|
|
421
|
+
minStars: number;
|
|
422
|
+
includeDocIssues: boolean;
|
|
423
|
+
aiPolicyBlocklist: string[];
|
|
424
|
+
shelvedPRUrls: string[];
|
|
425
|
+
dismissedIssues: Record<string, string>;
|
|
426
|
+
projectCategories: ("nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
427
|
+
preferredOrgs: string[];
|
|
428
|
+
diffTool: "inline" | "custom" | "sourcetree" | "vscode";
|
|
429
|
+
autoExtractLearnings: boolean;
|
|
430
|
+
autoFormatBeforePush: boolean;
|
|
431
|
+
trustOwnRepoWrites: boolean;
|
|
432
|
+
healthCheckFreshnessMinutes: number;
|
|
433
|
+
slmTriageModel: string;
|
|
434
|
+
slmTriageHost: string;
|
|
435
|
+
setupCompletedAt?: string | undefined;
|
|
436
|
+
scope?: ("advanced" | "beginner" | "intermediate")[] | undefined;
|
|
437
|
+
excludeOrgs?: string[] | undefined;
|
|
438
|
+
starredReposLastFetched?: string | undefined;
|
|
439
|
+
localRepoScanPaths?: string[] | undefined;
|
|
440
|
+
statusOverrides?: Record<string, {
|
|
441
|
+
status: "needs_addressing" | "waiting_on_maintainer";
|
|
442
|
+
setAt: string;
|
|
443
|
+
lastActivityAt: string;
|
|
444
|
+
}> | undefined;
|
|
445
|
+
issueListPath?: string | undefined;
|
|
446
|
+
skippedIssuesPath?: string | undefined;
|
|
447
|
+
diffToolCustomCommand?: string | undefined;
|
|
448
|
+
reviewMaxPasses?: number | undefined;
|
|
449
|
+
}>>;
|
|
309
450
|
export declare const LocalRepoCacheSchema: z.ZodObject<{
|
|
310
451
|
repos: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
311
452
|
path: z.ZodString;
|
|
@@ -323,6 +464,7 @@ export declare const ClosedPRSchema: z.ZodObject<{
|
|
|
323
464
|
closedAt: z.ZodString;
|
|
324
465
|
closedBy: z.ZodOptional<z.ZodString>;
|
|
325
466
|
openedAt: z.ZodOptional<z.ZodString>;
|
|
467
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
326
468
|
}, z.core.$strip>;
|
|
327
469
|
export declare const MergedPRSchema: z.ZodObject<{
|
|
328
470
|
url: z.ZodString;
|
|
@@ -331,6 +473,7 @@ export declare const MergedPRSchema: z.ZodObject<{
|
|
|
331
473
|
title: z.ZodString;
|
|
332
474
|
mergedAt: z.ZodString;
|
|
333
475
|
openedAt: z.ZodOptional<z.ZodString>;
|
|
476
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
334
477
|
}, z.core.$strip>;
|
|
335
478
|
export declare const DailyDigestSummarySchema: z.ZodObject<{
|
|
336
479
|
totalActivePRs: z.ZodNumber;
|
|
@@ -369,6 +512,7 @@ export declare const DailyDigestSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
369
512
|
closedAt: z.ZodString;
|
|
370
513
|
closedBy: z.ZodOptional<z.ZodString>;
|
|
371
514
|
openedAt: z.ZodOptional<z.ZodString>;
|
|
515
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
372
516
|
}, z.core.$strip>>;
|
|
373
517
|
recentlyMergedPRs: z.ZodArray<z.ZodObject<{
|
|
374
518
|
url: z.ZodString;
|
|
@@ -377,6 +521,7 @@ export declare const DailyDigestSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
377
521
|
title: z.ZodString;
|
|
378
522
|
mergedAt: z.ZodString;
|
|
379
523
|
openedAt: z.ZodOptional<z.ZodString>;
|
|
524
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
380
525
|
}, z.core.$strip>>;
|
|
381
526
|
shelvedPRs: z.ZodArray<z.ZodObject<{
|
|
382
527
|
number: z.ZodNumber;
|
|
@@ -436,7 +581,7 @@ export declare const OvernightPreparedSchema: z.ZodObject<{
|
|
|
436
581
|
pushedAt: z.ZodOptional<z.ZodString>;
|
|
437
582
|
compareUrl: z.ZodOptional<z.ZodString>;
|
|
438
583
|
pushProblem: z.ZodOptional<z.ZodString>;
|
|
439
|
-
}, z.core.$
|
|
584
|
+
}, z.core.$loose>;
|
|
440
585
|
/** The latest overnight run (#1574); `startup` surfaces its freshness. */
|
|
441
586
|
/**
|
|
442
587
|
* One list issue the overnight run tried to implement (#1715). Kept across
|
|
@@ -451,7 +596,7 @@ export declare const OvernightImplementAttemptSchema: z.ZodObject<{
|
|
|
451
596
|
prepared: "prepared";
|
|
452
597
|
}>;
|
|
453
598
|
note: z.ZodOptional<z.ZodString>;
|
|
454
|
-
}, z.core.$
|
|
599
|
+
}, z.core.$loose>;
|
|
455
600
|
export declare const OvernightRecordSchema: z.ZodObject<{
|
|
456
601
|
runAt: z.ZodString;
|
|
457
602
|
reportPath: z.ZodString;
|
|
@@ -467,7 +612,7 @@ export declare const OvernightRecordSchema: z.ZodObject<{
|
|
|
467
612
|
pushedAt: z.ZodOptional<z.ZodString>;
|
|
468
613
|
compareUrl: z.ZodOptional<z.ZodString>;
|
|
469
614
|
pushProblem: z.ZodOptional<z.ZodString>;
|
|
470
|
-
}, z.core.$
|
|
615
|
+
}, z.core.$loose>>>;
|
|
471
616
|
implementUrl: z.ZodOptional<z.ZodString>;
|
|
472
617
|
implementAttempts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
473
618
|
url: z.ZodString;
|
|
@@ -477,14 +622,14 @@ export declare const OvernightRecordSchema: z.ZodObject<{
|
|
|
477
622
|
prepared: "prepared";
|
|
478
623
|
}>;
|
|
479
624
|
note: z.ZodOptional<z.ZodString>;
|
|
480
|
-
}, z.core.$
|
|
481
|
-
}, z.core.$
|
|
625
|
+
}, z.core.$loose>>>;
|
|
626
|
+
}, z.core.$loose>;
|
|
482
627
|
/**
|
|
483
628
|
* Mirrors oss-scout's `searchRotation`: the broad-phase language cursor, the
|
|
484
629
|
* repo-window cursors of the capped phases, and the round-robin strategy
|
|
485
|
-
* cursor (oss-scout 1.7.0).
|
|
486
|
-
*
|
|
487
|
-
*
|
|
630
|
+
* cursor (oss-scout 1.7.0). List every cursor so it gets its default;
|
|
631
|
+
* passthrough (#1831) keeps a cursor added by a newer bundled scout instead of
|
|
632
|
+
* resetting it to 0 on this release's next save.
|
|
488
633
|
*/
|
|
489
634
|
export declare const SearchRotationSchema: z.ZodObject<{
|
|
490
635
|
languageOffset: z.ZodDefault<z.ZodNumber>;
|
|
@@ -493,7 +638,18 @@ export declare const SearchRotationSchema: z.ZodObject<{
|
|
|
493
638
|
maintainedOffset: z.ZodDefault<z.ZodNumber>;
|
|
494
639
|
strategyOffset: z.ZodDefault<z.ZodNumber>;
|
|
495
640
|
lastRotatedAt: z.ZodOptional<z.ZodString>;
|
|
496
|
-
}, z.core.$
|
|
641
|
+
}, z.core.$loose>;
|
|
642
|
+
/**
|
|
643
|
+
* Forward compatibility (#1831). The state Gist is shared by clients on
|
|
644
|
+
* different releases, and a strict parse let an older client drop a newer
|
|
645
|
+
* release's fields on its next save. Schemas for data that is written once and
|
|
646
|
+
* kept (root, config, repoScores, the outcome ledger and pick snapshots,
|
|
647
|
+
* lastOvernight, searchRotation) are `.passthrough()`; schemas regenerated on
|
|
648
|
+
* every run (lastDigest) or rarely extended still strip. Persisted enums that
|
|
649
|
+
* grow (closeReason, pick source) accept unknown strings via {@link openEnum}.
|
|
650
|
+
* Inferred types drop the passthrough index signature ({@link KnownKeys}) so a
|
|
651
|
+
* misspelled key still fails to compile.
|
|
652
|
+
*/
|
|
497
653
|
export declare const AgentStateSchema: z.ZodObject<{
|
|
498
654
|
version: z.ZodLiteral<4>;
|
|
499
655
|
gistId: z.ZodOptional<z.ZodString>;
|
|
@@ -512,8 +668,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
512
668
|
}, z.core.$strip>;
|
|
513
669
|
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
514
670
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
515
|
-
}, z.core.$
|
|
516
|
-
config: z.ZodDefault<z.ZodObject<{
|
|
671
|
+
}, z.core.$loose>>>;
|
|
672
|
+
config: z.ZodDefault<z.ZodPipe<z.ZodObject<{
|
|
517
673
|
setupComplete: z.ZodDefault<z.ZodBoolean>;
|
|
518
674
|
setupCompletedAt: z.ZodOptional<z.ZodString>;
|
|
519
675
|
persistence: z.ZodDefault<z.ZodEnum<{
|
|
@@ -582,7 +738,103 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
582
738
|
reviewMaxPasses: z.ZodOptional<z.ZodNumber>;
|
|
583
739
|
slmTriageModel: z.ZodDefault<z.ZodString>;
|
|
584
740
|
slmTriageHost: z.ZodDefault<z.ZodString>;
|
|
585
|
-
}, z.core.$
|
|
741
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
742
|
+
[x: string]: unknown;
|
|
743
|
+
setupComplete: boolean;
|
|
744
|
+
persistence: "local" | "gist";
|
|
745
|
+
maxActivePRs: number;
|
|
746
|
+
dormantThresholdDays: number;
|
|
747
|
+
approachingDormantDays: number;
|
|
748
|
+
maxIssueAgeDays: number;
|
|
749
|
+
skipBroadWhenSufficientResults: number;
|
|
750
|
+
languages: string[];
|
|
751
|
+
labels: string[];
|
|
752
|
+
excludeRepos: string[];
|
|
753
|
+
untrackedOrgs: string[];
|
|
754
|
+
avoidRepos: string[];
|
|
755
|
+
boostIssueTypes: string[];
|
|
756
|
+
trustedProjects: string[];
|
|
757
|
+
githubUsername: string;
|
|
758
|
+
minRepoScoreThreshold: number;
|
|
759
|
+
starredRepos: string[];
|
|
760
|
+
squashByDefault: boolean | "ask";
|
|
761
|
+
minStars: number;
|
|
762
|
+
includeDocIssues: boolean;
|
|
763
|
+
aiPolicyBlocklist: string[];
|
|
764
|
+
shelvedPRUrls: string[];
|
|
765
|
+
dismissedIssues: Record<string, string>;
|
|
766
|
+
projectCategories: ("nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
767
|
+
preferredOrgs: string[];
|
|
768
|
+
diffTool: "inline" | "custom" | "sourcetree" | "vscode";
|
|
769
|
+
autoExtractLearnings: boolean;
|
|
770
|
+
autoFormatBeforePush: boolean;
|
|
771
|
+
trustOwnRepoWrites: boolean;
|
|
772
|
+
healthCheckFreshnessMinutes: number;
|
|
773
|
+
slmTriageModel: string;
|
|
774
|
+
slmTriageHost: string;
|
|
775
|
+
setupCompletedAt?: string | undefined;
|
|
776
|
+
scope?: ("advanced" | "beginner" | "intermediate")[] | undefined;
|
|
777
|
+
excludeOrgs?: string[] | undefined;
|
|
778
|
+
starredReposLastFetched?: string | undefined;
|
|
779
|
+
localRepoScanPaths?: string[] | undefined;
|
|
780
|
+
statusOverrides?: Record<string, {
|
|
781
|
+
status: "needs_addressing" | "waiting_on_maintainer";
|
|
782
|
+
setAt: string;
|
|
783
|
+
lastActivityAt: string;
|
|
784
|
+
}> | undefined;
|
|
785
|
+
issueListPath?: string | undefined;
|
|
786
|
+
skippedIssuesPath?: string | undefined;
|
|
787
|
+
diffToolCustomCommand?: string | undefined;
|
|
788
|
+
reviewMaxPasses?: number | undefined;
|
|
789
|
+
}, {
|
|
790
|
+
[x: string]: unknown;
|
|
791
|
+
setupComplete: boolean;
|
|
792
|
+
persistence: "local" | "gist";
|
|
793
|
+
maxActivePRs: number;
|
|
794
|
+
dormantThresholdDays: number;
|
|
795
|
+
approachingDormantDays: number;
|
|
796
|
+
maxIssueAgeDays: number;
|
|
797
|
+
skipBroadWhenSufficientResults: number;
|
|
798
|
+
languages: string[];
|
|
799
|
+
labels: string[];
|
|
800
|
+
excludeRepos: string[];
|
|
801
|
+
untrackedOrgs: string[];
|
|
802
|
+
avoidRepos: string[];
|
|
803
|
+
boostIssueTypes: string[];
|
|
804
|
+
trustedProjects: string[];
|
|
805
|
+
githubUsername: string;
|
|
806
|
+
minRepoScoreThreshold: number;
|
|
807
|
+
starredRepos: string[];
|
|
808
|
+
squashByDefault: boolean | "ask";
|
|
809
|
+
minStars: number;
|
|
810
|
+
includeDocIssues: boolean;
|
|
811
|
+
aiPolicyBlocklist: string[];
|
|
812
|
+
shelvedPRUrls: string[];
|
|
813
|
+
dismissedIssues: Record<string, string>;
|
|
814
|
+
projectCategories: ("nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
815
|
+
preferredOrgs: string[];
|
|
816
|
+
diffTool: "inline" | "custom" | "sourcetree" | "vscode";
|
|
817
|
+
autoExtractLearnings: boolean;
|
|
818
|
+
autoFormatBeforePush: boolean;
|
|
819
|
+
trustOwnRepoWrites: boolean;
|
|
820
|
+
healthCheckFreshnessMinutes: number;
|
|
821
|
+
slmTriageModel: string;
|
|
822
|
+
slmTriageHost: string;
|
|
823
|
+
setupCompletedAt?: string | undefined;
|
|
824
|
+
scope?: ("advanced" | "beginner" | "intermediate")[] | undefined;
|
|
825
|
+
excludeOrgs?: string[] | undefined;
|
|
826
|
+
starredReposLastFetched?: string | undefined;
|
|
827
|
+
localRepoScanPaths?: string[] | undefined;
|
|
828
|
+
statusOverrides?: Record<string, {
|
|
829
|
+
status: "needs_addressing" | "waiting_on_maintainer";
|
|
830
|
+
setAt: string;
|
|
831
|
+
lastActivityAt: string;
|
|
832
|
+
}> | undefined;
|
|
833
|
+
issueListPath?: string | undefined;
|
|
834
|
+
skippedIssuesPath?: string | undefined;
|
|
835
|
+
diffToolCustomCommand?: string | undefined;
|
|
836
|
+
reviewMaxPasses?: number | undefined;
|
|
837
|
+
}>>>;
|
|
586
838
|
lastRunAt: z.ZodDefault<z.ZodString>;
|
|
587
839
|
lastDigestAt: z.ZodOptional<z.ZodString>;
|
|
588
840
|
lastStrategyAt: z.ZodOptional<z.ZodString>;
|
|
@@ -599,6 +851,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
599
851
|
closedAt: z.ZodString;
|
|
600
852
|
closedBy: z.ZodOptional<z.ZodString>;
|
|
601
853
|
openedAt: z.ZodOptional<z.ZodString>;
|
|
854
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
602
855
|
}, z.core.$strip>>;
|
|
603
856
|
recentlyMergedPRs: z.ZodArray<z.ZodObject<{
|
|
604
857
|
url: z.ZodString;
|
|
@@ -607,6 +860,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
607
860
|
title: z.ZodString;
|
|
608
861
|
mergedAt: z.ZodString;
|
|
609
862
|
openedAt: z.ZodOptional<z.ZodString>;
|
|
863
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
610
864
|
}, z.core.$strip>>;
|
|
611
865
|
shelvedPRs: z.ZodArray<z.ZodObject<{
|
|
612
866
|
number: z.ZodNumber;
|
|
@@ -650,6 +904,18 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
650
904
|
cachedAt: z.ZodString;
|
|
651
905
|
}, z.core.$strip>>;
|
|
652
906
|
mergedPRs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
907
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
908
|
+
pick: z.ZodOptional<z.ZodObject<{
|
|
909
|
+
issueUrl: z.ZodString;
|
|
910
|
+
grade: z.ZodNumber;
|
|
911
|
+
recommendation: z.ZodString;
|
|
912
|
+
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
913
|
+
source: z.ZodCustom<(string & {}) | "vet" | "vet-list" | "list", (string & {}) | "vet" | "vet-list" | "list">;
|
|
914
|
+
capturedAt: z.ZodOptional<z.ZodString>;
|
|
915
|
+
}, z.core.$loose>>;
|
|
916
|
+
lastReviewDecision: z.ZodOptional<z.ZodString>;
|
|
917
|
+
lastCiStatus: z.ZodOptional<z.ZodString>;
|
|
918
|
+
backfilledAt: z.ZodOptional<z.ZodString>;
|
|
653
919
|
url: z.ZodString;
|
|
654
920
|
title: z.ZodString;
|
|
655
921
|
mergedAt: z.ZodString;
|
|
@@ -657,8 +923,22 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
657
923
|
firstMaintainerResponseAt: z.ZodOptional<z.ZodString>;
|
|
658
924
|
commentsFetchedAt: z.ZodOptional<z.ZodString>;
|
|
659
925
|
learningsExtractedAt: z.ZodOptional<z.ZodString>;
|
|
660
|
-
}, z.core.$
|
|
926
|
+
}, z.core.$loose>>>;
|
|
661
927
|
closedPRs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
928
|
+
closeReason: z.ZodOptional<z.ZodCustom<"unknown" | "rejected" | (string & {}) | "ai-policy" | "superseded" | "stale" | "self-closed", "unknown" | "rejected" | (string & {}) | "ai-policy" | "superseded" | "stale" | "self-closed">>;
|
|
929
|
+
selfCloseReason: z.ZodOptional<z.ZodCustom<(string & {}) | "superseded" | "no-traction" | "after-feedback" | "no-response", (string & {}) | "superseded" | "no-traction" | "after-feedback" | "no-response">>;
|
|
930
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
931
|
+
pick: z.ZodOptional<z.ZodObject<{
|
|
932
|
+
issueUrl: z.ZodString;
|
|
933
|
+
grade: z.ZodNumber;
|
|
934
|
+
recommendation: z.ZodString;
|
|
935
|
+
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
936
|
+
source: z.ZodCustom<(string & {}) | "vet" | "vet-list" | "list", (string & {}) | "vet" | "vet-list" | "list">;
|
|
937
|
+
capturedAt: z.ZodOptional<z.ZodString>;
|
|
938
|
+
}, z.core.$loose>>;
|
|
939
|
+
lastReviewDecision: z.ZodOptional<z.ZodString>;
|
|
940
|
+
lastCiStatus: z.ZodOptional<z.ZodString>;
|
|
941
|
+
backfilledAt: z.ZodOptional<z.ZodString>;
|
|
662
942
|
url: z.ZodString;
|
|
663
943
|
title: z.ZodString;
|
|
664
944
|
closedAt: z.ZodString;
|
|
@@ -666,7 +946,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
666
946
|
firstMaintainerResponseAt: z.ZodOptional<z.ZodString>;
|
|
667
947
|
commentsFetchedAt: z.ZodOptional<z.ZodString>;
|
|
668
948
|
learningsExtractedAt: z.ZodOptional<z.ZodString>;
|
|
669
|
-
}, z.core.$
|
|
949
|
+
}, z.core.$loose>>>;
|
|
670
950
|
analyzedIssueConversations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
671
951
|
url: z.ZodString;
|
|
672
952
|
repo: z.ZodString;
|
|
@@ -745,6 +1025,14 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
745
1025
|
url: z.ZodString;
|
|
746
1026
|
lastSeenAt: z.ZodString;
|
|
747
1027
|
}, z.core.$strip>>>;
|
|
1028
|
+
pickSnapshots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1029
|
+
issueUrl: z.ZodString;
|
|
1030
|
+
grade: z.ZodNumber;
|
|
1031
|
+
recommendation: z.ZodString;
|
|
1032
|
+
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
1033
|
+
source: z.ZodCustom<(string & {}) | "vet" | "vet-list" | "list", (string & {}) | "vet" | "vet-list" | "list">;
|
|
1034
|
+
capturedAt: z.ZodOptional<z.ZodString>;
|
|
1035
|
+
}, z.core.$loose>>>;
|
|
748
1036
|
lastOvernight: z.ZodOptional<z.ZodObject<{
|
|
749
1037
|
runAt: z.ZodString;
|
|
750
1038
|
reportPath: z.ZodString;
|
|
@@ -760,7 +1048,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
760
1048
|
pushedAt: z.ZodOptional<z.ZodString>;
|
|
761
1049
|
compareUrl: z.ZodOptional<z.ZodString>;
|
|
762
1050
|
pushProblem: z.ZodOptional<z.ZodString>;
|
|
763
|
-
}, z.core.$
|
|
1051
|
+
}, z.core.$loose>>>;
|
|
764
1052
|
implementUrl: z.ZodOptional<z.ZodString>;
|
|
765
1053
|
implementAttempts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
766
1054
|
url: z.ZodString;
|
|
@@ -770,8 +1058,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
770
1058
|
prepared: "prepared";
|
|
771
1059
|
}>;
|
|
772
1060
|
note: z.ZodOptional<z.ZodString>;
|
|
773
|
-
}, z.core.$
|
|
774
|
-
}, z.core.$
|
|
1061
|
+
}, z.core.$loose>>>;
|
|
1062
|
+
}, z.core.$loose>>;
|
|
775
1063
|
searchRotation: z.ZodOptional<z.ZodObject<{
|
|
776
1064
|
languageOffset: z.ZodDefault<z.ZodNumber>;
|
|
777
1065
|
phase0Offset: z.ZodDefault<z.ZodNumber>;
|
|
@@ -779,32 +1067,47 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
779
1067
|
maintainedOffset: z.ZodDefault<z.ZodNumber>;
|
|
780
1068
|
strategyOffset: z.ZodDefault<z.ZodNumber>;
|
|
781
1069
|
lastRotatedAt: z.ZodOptional<z.ZodString>;
|
|
782
|
-
}, z.core.$
|
|
783
|
-
}, z.core.$
|
|
1070
|
+
}, z.core.$loose>>;
|
|
1071
|
+
}, z.core.$loose>;
|
|
784
1072
|
export type IssueStatus = z.infer<typeof IssueStatusSchema>;
|
|
785
1073
|
export type FetchedPRStatus = z.infer<typeof FetchedPRStatusSchema>;
|
|
786
1074
|
export type ProjectCategory = z.infer<typeof ProjectCategorySchema>;
|
|
787
1075
|
export type IssueScope = z.infer<typeof IssueScopeSchema>;
|
|
788
1076
|
export type DiffTool = z.infer<typeof DiffToolSchema>;
|
|
789
1077
|
export type SearchSeenEntry = z.infer<typeof SearchSeenEntrySchema>;
|
|
790
|
-
export type
|
|
791
|
-
export type
|
|
792
|
-
export type
|
|
793
|
-
export type
|
|
1078
|
+
export type PickSnapshot = KnownKeys<z.infer<typeof PickSnapshotSchema>>;
|
|
1079
|
+
export type OvernightPrepared = KnownKeys<z.infer<typeof OvernightPreparedSchema>>;
|
|
1080
|
+
export type OvernightRecord = KnownKeys<z.infer<typeof OvernightRecordSchema>>;
|
|
1081
|
+
export type OvernightImplementAttempt = KnownKeys<z.infer<typeof OvernightImplementAttemptSchema>>;
|
|
1082
|
+
export type SearchRotation = KnownKeys<z.infer<typeof SearchRotationSchema>>;
|
|
794
1083
|
export type RepoSignals = z.infer<typeof RepoSignalsSchema>;
|
|
795
|
-
export type RepoScore = z.infer<typeof RepoScoreSchema
|
|
796
|
-
export type StoredMergedPR = z.infer<typeof StoredMergedPRSchema
|
|
797
|
-
export type StoredClosedPR = z.infer<typeof StoredClosedPRSchema
|
|
1084
|
+
export type RepoScore = KnownKeys<z.infer<typeof RepoScoreSchema>>;
|
|
1085
|
+
export type StoredMergedPR = KnownKeys<z.infer<typeof StoredMergedPRSchema>>;
|
|
1086
|
+
export type StoredClosedPR = KnownKeys<z.infer<typeof StoredClosedPRSchema>>;
|
|
798
1087
|
export type AnalyzedIssueConversation = z.infer<typeof AnalyzedIssueConversationSchema>;
|
|
799
1088
|
export type ContributionGuidelines = z.infer<typeof ContributionGuidelinesSchema>;
|
|
800
1089
|
export type IssueVettingResult = z.infer<typeof IssueVettingResultSchema>;
|
|
801
1090
|
export type TrackedIssue = z.infer<typeof TrackedIssueSchema>;
|
|
802
1091
|
export type ShelvedPRRef = z.infer<typeof ShelvedPRRefSchema>;
|
|
803
1092
|
export type StatusOverride = z.infer<typeof StatusOverrideSchema>;
|
|
804
|
-
export type AgentConfig = z.infer<typeof AgentConfigSchema
|
|
1093
|
+
export type AgentConfig = KnownKeys<z.infer<typeof AgentConfigSchema>>;
|
|
805
1094
|
export type LocalRepoCache = z.infer<typeof LocalRepoCacheSchema>;
|
|
806
1095
|
export type ClosedPR = z.infer<typeof ClosedPRSchema>;
|
|
807
1096
|
export type MergedPR = z.infer<typeof MergedPRSchema>;
|
|
808
1097
|
export type DailyDigestSummary = z.infer<typeof DailyDigestSummarySchema>;
|
|
809
1098
|
export type DailyDigest = z.infer<typeof DailyDigestSchema>;
|
|
810
|
-
|
|
1099
|
+
type RawAgentState = z.infer<typeof AgentStateSchema>;
|
|
1100
|
+
export type AgentState = Omit<KnownKeys<RawAgentState>, 'config' | 'repoScores' | 'mergedPRs' | 'closedPRs' | 'pickSnapshots' | 'lastOvernight' | 'searchRotation'> & {
|
|
1101
|
+
config: AgentConfig;
|
|
1102
|
+
repoScores: Record<string, RepoScore>;
|
|
1103
|
+
mergedPRs?: StoredMergedPR[];
|
|
1104
|
+
closedPRs?: StoredClosedPR[];
|
|
1105
|
+
pickSnapshots: PickSnapshot[];
|
|
1106
|
+
lastOvernight?: OvernightRecord;
|
|
1107
|
+
searchRotation?: SearchRotation;
|
|
1108
|
+
};
|
|
1109
|
+
/** Top-level state keys this release does not know, i.e. written by another (usually newer) release (#1831). */
|
|
1110
|
+
export declare function unknownStateKeys(raw: unknown): string[];
|
|
1111
|
+
/** Warning tail for state written by a newer release (#1831), shared by the Gist and local loaders. */
|
|
1112
|
+
export declare const NEWER_WRITER_HINT: string;
|
|
1113
|
+
export {};
|