@oss-autopilot/core 3.43.0 → 3.44.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 +160 -6
- package/dist/cli.bundle.cjs +207 -180
- package/dist/commands/check-integration.js +4 -1
- package/dist/commands/cleanup.d.ts +6 -2
- package/dist/commands/cleanup.js +72 -7
- package/dist/commands/comments.d.ts +8 -1
- package/dist/commands/comments.js +11 -3
- package/dist/commands/config.d.ts +2 -0
- package/dist/commands/config.js +26 -1
- package/dist/commands/daily-ledger.d.ts +33 -5
- package/dist/commands/daily-ledger.js +36 -13
- package/dist/commands/daily-render.d.ts +2 -1
- package/dist/commands/daily-render.js +4 -1
- package/dist/commands/daily.d.ts +3 -0
- package/dist/commands/daily.js +25 -5
- package/dist/commands/dashboard-data.js +70 -61
- package/dist/commands/dashboard-lifecycle.d.ts +36 -8
- package/dist/commands/dashboard-lifecycle.js +131 -38
- package/dist/commands/dashboard-process.d.ts +35 -0
- package/dist/commands/dashboard-process.js +65 -5
- package/dist/commands/dismiss.js +7 -6
- package/dist/commands/doctor.js +1 -8
- package/dist/commands/fork-prune.d.ts +58 -0
- package/dist/commands/fork-prune.js +247 -0
- package/dist/commands/guidelines.d.ts +46 -1
- package/dist/commands/guidelines.js +111 -12
- package/dist/commands/index.d.ts +5 -0
- package/dist/commands/index.js +5 -0
- package/dist/commands/overnight-push-prep.d.ts +2 -1
- package/dist/commands/overnight-push-prep.js +3 -3
- package/dist/commands/policy.d.ts +5 -1
- package/dist/commands/policy.js +14 -1
- package/dist/commands/pr-create.d.ts +48 -0
- package/dist/commands/pr-create.js +200 -0
- package/dist/commands/pr-preflight.d.ts +28 -2
- package/dist/commands/pr-preflight.js +63 -9
- package/dist/commands/setup.js +120 -36
- package/dist/commands/startup.d.ts +7 -0
- package/dist/commands/startup.js +17 -0
- package/dist/commands/status.js +5 -0
- package/dist/commands/validation.d.ts +5 -0
- package/dist/commands/validation.js +5 -0
- package/dist/commands/vet-list.js +2 -2
- package/dist/commands/vet.d.ts +8 -0
- package/dist/commands/vet.js +15 -1
- package/dist/commands/work.d.ts +4 -0
- package/dist/commands/work.js +34 -11
- package/dist/core/commit-date.d.ts +31 -5
- package/dist/core/commit-date.js +36 -8
- package/dist/core/compliance-score.d.ts +3 -0
- package/dist/core/compliance-score.js +13 -9
- package/dist/core/config-registry.d.ts +27 -2
- package/dist/core/config-registry.js +83 -2
- package/dist/core/daily-logic.d.ts +4 -1
- package/dist/core/daily-logic.js +13 -2
- package/dist/core/fork-prune.d.ts +149 -0
- package/dist/core/fork-prune.js +333 -0
- package/dist/core/gist-state-store.js +4 -8
- package/dist/core/github-stats.d.ts +7 -1
- package/dist/core/github-stats.js +15 -15
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/local-config.js +2 -3
- package/dist/core/pacing.d.ts +41 -0
- package/dist/core/pacing.js +115 -0
- package/dist/core/pr-assembly.d.ts +2 -0
- package/dist/core/pr-graphql.d.ts +16 -1
- package/dist/core/pr-graphql.js +15 -3
- package/dist/core/pr-monitor.d.ts +6 -0
- package/dist/core/pr-monitor.js +46 -10
- package/dist/core/pr-preflight.d.ts +41 -0
- package/dist/core/pr-preflight.js +406 -17
- package/dist/core/prose-script.d.ts +72 -0
- package/dist/core/prose-script.js +223 -0
- package/dist/core/repo-policy.d.ts +8 -2
- package/dist/core/repo-policy.js +34 -6
- package/dist/core/repo-score-manager.d.ts +18 -0
- package/dist/core/repo-score-manager.js +29 -0
- package/dist/core/review-analysis.d.ts +15 -2
- package/dist/core/review-analysis.js +22 -5
- package/dist/core/stale-data.d.ts +44 -7
- package/dist/core/stale-data.js +46 -8
- package/dist/core/state-persistence.js +2 -4
- package/dist/core/state-schema.d.ts +39 -0
- package/dist/core/state-schema.js +68 -1
- package/dist/core/state.d.ts +21 -0
- package/dist/core/state.js +47 -0
- package/dist/core/status-determination.js +10 -8
- package/dist/core/untrusted-content.d.ts +3 -3
- package/dist/core/untrusted-content.js +26 -8
- package/dist/core/urls.d.ts +24 -0
- package/dist/core/urls.js +76 -0
- package/dist/dashboard/assets/chart-panel-B-nLVgzQ.js +3 -0
- package/dist/dashboard/assets/index-5IvMGokL.js +55 -0
- package/dist/dashboard/index.html +1 -1
- package/dist/formatters/json.d.ts +171 -5
- package/dist/formatters/json.js +79 -0
- package/package.json +6 -6
- package/dist/dashboard/assets/chart-panel-C_C1lFTI.js +0 -3
- package/dist/dashboard/assets/index-B--H66Jk.js +0 -55
|
@@ -8,6 +8,7 @@ import type { FetchedPR, DailyDigest, AgentState, RepoGroup, CommentedIssue, She
|
|
|
8
8
|
import type { RepoPolicySummary } from '../core/repo-policy.js';
|
|
9
9
|
import type { ContributionStats } from '../core/stats.js';
|
|
10
10
|
import type { RepoCapStatus } from '../core/repo-cap.js';
|
|
11
|
+
import type { PacingStatus } from '../core/pacing.js';
|
|
11
12
|
import type { PRCheckFailure } from '../core/pr-monitor.js';
|
|
12
13
|
import type { ClosedPRStatusUpdate } from '../core/closed-pr-status.js';
|
|
13
14
|
import type { MergedPRNotes } from '../core/merged-pr-notes.js';
|
|
@@ -195,6 +196,8 @@ export interface DailyOutput {
|
|
|
195
196
|
* unchanged. See {@link WorkClaim}.
|
|
196
197
|
*/
|
|
197
198
|
workClaims?: WorkClaim[];
|
|
199
|
+
/** New PRs and forks in the last 24 hours against the pacing caps (#1911); present only when a cap is set. */
|
|
200
|
+
pacing?: PacingStatus;
|
|
198
201
|
}
|
|
199
202
|
/** Work order for the host's background learnings extraction (#1696). */
|
|
200
203
|
export interface PendingLearnings {
|
|
@@ -202,6 +205,23 @@ export interface PendingLearnings {
|
|
|
202
205
|
repos: string[];
|
|
203
206
|
/** Total unextracted recently merged PRs across those repos. */
|
|
204
207
|
prCount: number;
|
|
208
|
+
/**
|
|
209
|
+
* One entry per repo in `repos` (same order) whose name matches
|
|
210
|
+
* `^[A-Za-z0-9-]+/[A-Za-z0-9._-]+$` (#2041): where its proposal
|
|
211
|
+
* file goes and whether one already waits for review, on this machine or
|
|
212
|
+
* another. Extract only repos whose `proposalAgeDays` is null.
|
|
213
|
+
*/
|
|
214
|
+
proposals: GuidelineProposalStatus[];
|
|
215
|
+
}
|
|
216
|
+
/** Whether a guideline proposal for a repo is waiting for review, and where (#2041). */
|
|
217
|
+
export interface GuidelineProposalStatus {
|
|
218
|
+
repo: string;
|
|
219
|
+
/** Where this machine keeps the repo's proposal. Write it here; the file need not exist yet. */
|
|
220
|
+
proposalPath: string;
|
|
221
|
+
/** Whole days since the waiting proposal was written, or null when none is waiting anywhere. */
|
|
222
|
+
proposalAgeDays: number | null;
|
|
223
|
+
/** True when the waiting proposal is the file at `proposalPath`; false with an age means another machine holds it. */
|
|
224
|
+
proposalOnThisMachine: boolean;
|
|
205
225
|
}
|
|
206
226
|
/**
|
|
207
227
|
* Compact version of DailyOutput for reduced JSON payload size (#763).
|
|
@@ -243,6 +263,8 @@ export interface CompactDailyOutput {
|
|
|
243
263
|
reviewedPRs?: ReviewedPRFollowUp[];
|
|
244
264
|
/** Live work claims (#1856, #1852). See {@link DailyOutput.workClaims}. */
|
|
245
265
|
workClaims?: WorkClaim[];
|
|
266
|
+
/** Pacing counts (#1911). See {@link DailyOutput.pacing}. */
|
|
267
|
+
pacing?: PacingStatus;
|
|
246
268
|
}
|
|
247
269
|
/**
|
|
248
270
|
* Strip a full DailyOutput down to the compact subset (#763).
|
|
@@ -284,9 +306,9 @@ export declare const StatusOutputSchema: z.ZodObject<{
|
|
|
284
306
|
"merged-pr-notes": "merged-pr-notes";
|
|
285
307
|
"reviewed-prs": "reviewed-prs";
|
|
286
308
|
"closed-pr-status": "closed-pr-status";
|
|
287
|
-
"merge-loop": "merge-loop";
|
|
288
309
|
"repo-scores": "repo-scores";
|
|
289
310
|
analytics: "analytics";
|
|
311
|
+
"merge-loop": "merge-loop";
|
|
290
312
|
partition: "partition";
|
|
291
313
|
"dismiss-filter": "dismiss-filter";
|
|
292
314
|
"gist-init": "gist-init";
|
|
@@ -300,6 +322,21 @@ export declare const StatusOutputSchema: z.ZodObject<{
|
|
|
300
322
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
301
323
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
302
324
|
}, z.core.$strip>>>;
|
|
325
|
+
pacing: z.ZodOptional<z.ZodObject<{
|
|
326
|
+
prs: z.ZodOptional<z.ZodObject<{
|
|
327
|
+
cap: z.ZodNumber;
|
|
328
|
+
count: z.ZodNumber;
|
|
329
|
+
atCap: z.ZodBoolean;
|
|
330
|
+
freesAt: z.ZodNullable<z.ZodString>;
|
|
331
|
+
}, z.core.$strip>>;
|
|
332
|
+
forks: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
cap: z.ZodNumber;
|
|
334
|
+
count: z.ZodNumber;
|
|
335
|
+
atCap: z.ZodBoolean;
|
|
336
|
+
freesAt: z.ZodNullable<z.ZodString>;
|
|
337
|
+
}, z.core.$strip>>;
|
|
338
|
+
countedAt: z.ZodNullable<z.ZodString>;
|
|
339
|
+
}, z.core.$strip>>;
|
|
303
340
|
}, z.core.$strip>;
|
|
304
341
|
export type StatusOutput = z.infer<typeof StatusOutputSchema>;
|
|
305
342
|
export declare const StrategyResultSchema: z.ZodObject<{
|
|
@@ -505,9 +542,9 @@ export declare const DailyOutputSchema: z.ZodObject<{
|
|
|
505
542
|
"merged-pr-notes": "merged-pr-notes";
|
|
506
543
|
"reviewed-prs": "reviewed-prs";
|
|
507
544
|
"closed-pr-status": "closed-pr-status";
|
|
508
|
-
"merge-loop": "merge-loop";
|
|
509
545
|
"repo-scores": "repo-scores";
|
|
510
546
|
analytics: "analytics";
|
|
547
|
+
"merge-loop": "merge-loop";
|
|
511
548
|
partition: "partition";
|
|
512
549
|
"dismiss-filter": "dismiss-filter";
|
|
513
550
|
"gist-init": "gist-init";
|
|
@@ -574,6 +611,12 @@ export declare const DailyOutputSchema: z.ZodObject<{
|
|
|
574
611
|
pendingLearnings: z.ZodOptional<z.ZodObject<{
|
|
575
612
|
repos: z.ZodArray<z.ZodString>;
|
|
576
613
|
prCount: z.ZodNumber;
|
|
614
|
+
proposals: z.ZodArray<z.ZodObject<{
|
|
615
|
+
repo: z.ZodString;
|
|
616
|
+
proposalPath: z.ZodString;
|
|
617
|
+
proposalAgeDays: z.ZodNullable<z.ZodNumber>;
|
|
618
|
+
proposalOnThisMachine: z.ZodBoolean;
|
|
619
|
+
}, z.core.$strip>>;
|
|
577
620
|
}, z.core.$strip>>;
|
|
578
621
|
closedPRStatusUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
579
622
|
prUrl: z.ZodString;
|
|
@@ -657,6 +700,21 @@ export declare const DailyOutputSchema: z.ZodObject<{
|
|
|
657
700
|
runId: z.ZodOptional<z.ZodString>;
|
|
658
701
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
659
702
|
}, z.core.$loose>>>;
|
|
703
|
+
pacing: z.ZodOptional<z.ZodObject<{
|
|
704
|
+
prs: z.ZodOptional<z.ZodObject<{
|
|
705
|
+
cap: z.ZodNumber;
|
|
706
|
+
count: z.ZodNumber;
|
|
707
|
+
atCap: z.ZodBoolean;
|
|
708
|
+
freesAt: z.ZodNullable<z.ZodString>;
|
|
709
|
+
}, z.core.$strip>>;
|
|
710
|
+
forks: z.ZodOptional<z.ZodObject<{
|
|
711
|
+
cap: z.ZodNumber;
|
|
712
|
+
count: z.ZodNumber;
|
|
713
|
+
atCap: z.ZodBoolean;
|
|
714
|
+
freesAt: z.ZodNullable<z.ZodString>;
|
|
715
|
+
}, z.core.$strip>>;
|
|
716
|
+
countedAt: z.ZodNullable<z.ZodString>;
|
|
717
|
+
}, z.core.$strip>>;
|
|
660
718
|
}, z.core.$strip>;
|
|
661
719
|
export declare const CompactDailyOutputSchema: z.ZodObject<{
|
|
662
720
|
digest: z.ZodObject<{
|
|
@@ -750,9 +808,9 @@ export declare const CompactDailyOutputSchema: z.ZodObject<{
|
|
|
750
808
|
"merged-pr-notes": "merged-pr-notes";
|
|
751
809
|
"reviewed-prs": "reviewed-prs";
|
|
752
810
|
"closed-pr-status": "closed-pr-status";
|
|
753
|
-
"merge-loop": "merge-loop";
|
|
754
811
|
"repo-scores": "repo-scores";
|
|
755
812
|
analytics: "analytics";
|
|
813
|
+
"merge-loop": "merge-loop";
|
|
756
814
|
partition: "partition";
|
|
757
815
|
"dismiss-filter": "dismiss-filter";
|
|
758
816
|
"gist-init": "gist-init";
|
|
@@ -819,6 +877,12 @@ export declare const CompactDailyOutputSchema: z.ZodObject<{
|
|
|
819
877
|
pendingLearnings: z.ZodOptional<z.ZodObject<{
|
|
820
878
|
repos: z.ZodArray<z.ZodString>;
|
|
821
879
|
prCount: z.ZodNumber;
|
|
880
|
+
proposals: z.ZodArray<z.ZodObject<{
|
|
881
|
+
repo: z.ZodString;
|
|
882
|
+
proposalPath: z.ZodString;
|
|
883
|
+
proposalAgeDays: z.ZodNullable<z.ZodNumber>;
|
|
884
|
+
proposalOnThisMachine: z.ZodBoolean;
|
|
885
|
+
}, z.core.$strip>>;
|
|
822
886
|
}, z.core.$strip>>;
|
|
823
887
|
closedPRStatusUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
824
888
|
prUrl: z.ZodString;
|
|
@@ -902,6 +966,21 @@ export declare const CompactDailyOutputSchema: z.ZodObject<{
|
|
|
902
966
|
runId: z.ZodOptional<z.ZodString>;
|
|
903
967
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
904
968
|
}, z.core.$loose>>>;
|
|
969
|
+
pacing: z.ZodOptional<z.ZodObject<{
|
|
970
|
+
prs: z.ZodOptional<z.ZodObject<{
|
|
971
|
+
cap: z.ZodNumber;
|
|
972
|
+
count: z.ZodNumber;
|
|
973
|
+
atCap: z.ZodBoolean;
|
|
974
|
+
freesAt: z.ZodNullable<z.ZodString>;
|
|
975
|
+
}, z.core.$strip>>;
|
|
976
|
+
forks: z.ZodOptional<z.ZodObject<{
|
|
977
|
+
cap: z.ZodNumber;
|
|
978
|
+
count: z.ZodNumber;
|
|
979
|
+
atCap: z.ZodBoolean;
|
|
980
|
+
freesAt: z.ZodNullable<z.ZodString>;
|
|
981
|
+
}, z.core.$strip>>;
|
|
982
|
+
countedAt: z.ZodNullable<z.ZodString>;
|
|
983
|
+
}, z.core.$strip>>;
|
|
905
984
|
}, z.core.$strip>;
|
|
906
985
|
/** Enumerated fields of a repo's contribution policy (#1953); no quoted text, so no fence. */
|
|
907
986
|
export declare const RepoPolicySummarySchema: z.ZodObject<{
|
|
@@ -955,6 +1034,7 @@ export declare const PolicyGetOutputSchema: z.ZodObject<{
|
|
|
955
1034
|
updatedAt: z.ZodString;
|
|
956
1035
|
blocklisted: z.ZodBoolean;
|
|
957
1036
|
disclosureText: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
gateLabel: z.ZodOptional<z.ZodString>;
|
|
958
1038
|
sources: z.ZodOptional<z.ZodString>;
|
|
959
1039
|
}, z.core.$strip>>;
|
|
960
1040
|
blocklistChange: z.ZodOptional<z.ZodEnum<{
|
|
@@ -963,6 +1043,16 @@ export declare const PolicyGetOutputSchema: z.ZodObject<{
|
|
|
963
1043
|
}>>;
|
|
964
1044
|
gistSyncWarning: z.ZodOptional<z.ZodString>;
|
|
965
1045
|
}, z.core.$strip>;
|
|
1046
|
+
/** `dashboard launch --json` (#2039). Mirrors `DashboardLaunchOutput` in commands/dashboard-lifecycle.ts. */
|
|
1047
|
+
export declare const DashboardLaunchOutputSchema: z.ZodObject<{
|
|
1048
|
+
status: z.ZodEnum<{
|
|
1049
|
+
launched: "launched";
|
|
1050
|
+
already_running: "already_running";
|
|
1051
|
+
}>;
|
|
1052
|
+
url: z.ZodString;
|
|
1053
|
+
port: z.ZodNumber;
|
|
1054
|
+
logFile: z.ZodString;
|
|
1055
|
+
}, z.core.$strip>;
|
|
966
1056
|
/** Per-repo open-PR cap status (core/repo-cap.ts). */
|
|
967
1057
|
export declare const RepoCapStatusSchema: z.ZodObject<{
|
|
968
1058
|
repo: z.ZodString;
|
|
@@ -1006,6 +1096,68 @@ export declare const PrPreflightOutputSchema: z.ZodObject<{
|
|
|
1006
1096
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1007
1097
|
}, z.core.$strip>>;
|
|
1008
1098
|
}, z.core.$strip>;
|
|
1099
|
+
/** `pr-create` (#2085): the PR it opened and the preflight checks it passed. */
|
|
1100
|
+
export declare const PrCreateOutputSchema: z.ZodObject<{
|
|
1101
|
+
prUrl: z.ZodString;
|
|
1102
|
+
number: z.ZodNumber;
|
|
1103
|
+
repo: z.ZodString;
|
|
1104
|
+
base: z.ZodString;
|
|
1105
|
+
head: z.ZodString;
|
|
1106
|
+
draft: z.ZodBoolean;
|
|
1107
|
+
alreadyExisted: z.ZodBoolean;
|
|
1108
|
+
verdict: z.ZodEnum<{
|
|
1109
|
+
fail: "fail";
|
|
1110
|
+
pass: "pass";
|
|
1111
|
+
warn: "warn";
|
|
1112
|
+
}>;
|
|
1113
|
+
accepted: z.ZodArray<z.ZodString>;
|
|
1114
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1115
|
+
id: z.ZodString;
|
|
1116
|
+
status: z.ZodEnum<{
|
|
1117
|
+
skipped: "skipped";
|
|
1118
|
+
fail: "fail";
|
|
1119
|
+
pass: "pass";
|
|
1120
|
+
warn: "warn";
|
|
1121
|
+
}>;
|
|
1122
|
+
summary: z.ZodString;
|
|
1123
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1124
|
+
}, z.core.$strip>>;
|
|
1125
|
+
}, z.core.$strip>;
|
|
1126
|
+
/** `fork-prune` (#1912): one row per fork, the set digest, and on apply what was deleted or skipped. */
|
|
1127
|
+
export declare const ForkPruneOutputSchema: z.ZodObject<{
|
|
1128
|
+
mode: z.ZodEnum<{
|
|
1129
|
+
apply: "apply";
|
|
1130
|
+
"dry-run": "dry-run";
|
|
1131
|
+
}>;
|
|
1132
|
+
login: z.ZodString;
|
|
1133
|
+
forks: z.ZodArray<z.ZodObject<{
|
|
1134
|
+
repo: z.ZodString;
|
|
1135
|
+
parent: z.ZodNullable<z.ZodString>;
|
|
1136
|
+
verdict: z.ZodEnum<{
|
|
1137
|
+
PRUNE: "PRUNE";
|
|
1138
|
+
KEEP: "KEEP";
|
|
1139
|
+
}>;
|
|
1140
|
+
branchCount: z.ZodNumber;
|
|
1141
|
+
openPRsToFork: z.ZodNumber;
|
|
1142
|
+
hasOpenPRFromFork: z.ZodBoolean;
|
|
1143
|
+
ownBranches: z.ZodArray<z.ZodObject<{
|
|
1144
|
+
name: z.ZodString;
|
|
1145
|
+
prStates: z.ZodArray<z.ZodString>;
|
|
1146
|
+
}, z.core.$strip>>;
|
|
1147
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
1148
|
+
}, z.core.$strip>>;
|
|
1149
|
+
prunable: z.ZodNumber;
|
|
1150
|
+
kept: z.ZodNumber;
|
|
1151
|
+
setDigest: z.ZodString;
|
|
1152
|
+
applyCommand: z.ZodOptional<z.ZodString>;
|
|
1153
|
+
requests: z.ZodNumber;
|
|
1154
|
+
deleted: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1155
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1156
|
+
repo: z.ZodString;
|
|
1157
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
1158
|
+
}, z.core.$strip>>>;
|
|
1159
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1160
|
+
}, z.core.$strip>;
|
|
1009
1161
|
export declare const SearchOutputSchema: z.ZodObject<{
|
|
1010
1162
|
candidates: z.ZodArray<z.ZodObject<{
|
|
1011
1163
|
issue: z.ZodObject<{
|
|
@@ -1368,9 +1520,9 @@ export declare const IssueThreadOutputSchema: z.ZodObject<{
|
|
|
1368
1520
|
"merged-pr-notes": "merged-pr-notes";
|
|
1369
1521
|
"reviewed-prs": "reviewed-prs";
|
|
1370
1522
|
"closed-pr-status": "closed-pr-status";
|
|
1371
|
-
"merge-loop": "merge-loop";
|
|
1372
1523
|
"repo-scores": "repo-scores";
|
|
1373
1524
|
analytics: "analytics";
|
|
1525
|
+
"merge-loop": "merge-loop";
|
|
1374
1526
|
partition: "partition";
|
|
1375
1527
|
"dismiss-filter": "dismiss-filter";
|
|
1376
1528
|
"gist-init": "gist-init";
|
|
@@ -1389,12 +1541,14 @@ export type IssueThreadOutput = z.infer<typeof IssueThreadOutputSchema>;
|
|
|
1389
1541
|
export declare const PostOutputSchema: z.ZodObject<{
|
|
1390
1542
|
commentUrl: z.ZodString;
|
|
1391
1543
|
url: z.ZodString;
|
|
1544
|
+
scriptMismatchWarning: z.ZodOptional<z.ZodString>;
|
|
1392
1545
|
}, z.core.$strip>;
|
|
1393
1546
|
export declare const ClaimOutputSchema: z.ZodObject<{
|
|
1394
1547
|
commentUrl: z.ZodString;
|
|
1395
1548
|
issueUrl: z.ZodString;
|
|
1396
1549
|
gistSyncWarning: z.ZodOptional<z.ZodString>;
|
|
1397
1550
|
stateSaveWarning: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
scriptMismatchWarning: z.ZodOptional<z.ZodString>;
|
|
1398
1552
|
}, z.core.$strip>;
|
|
1399
1553
|
export declare const InitOutputSchema: z.ZodObject<{
|
|
1400
1554
|
username: z.ZodString;
|
|
@@ -1444,6 +1598,7 @@ export declare const WorkFinishOutputSchema: z.ZodObject<{
|
|
|
1444
1598
|
}, z.core.$strip>;
|
|
1445
1599
|
export declare const WorkReleaseOutputSchema: z.ZodObject<{
|
|
1446
1600
|
released: z.ZodArray<z.ZodString>;
|
|
1601
|
+
recordedPR: z.ZodOptional<z.ZodString>;
|
|
1447
1602
|
gistSyncWarning: z.ZodOptional<z.ZodString>;
|
|
1448
1603
|
}, z.core.$strip>;
|
|
1449
1604
|
export declare const WorkListOutputSchema: z.ZodObject<{
|
|
@@ -1469,9 +1624,9 @@ export declare const WorkListOutputSchema: z.ZodObject<{
|
|
|
1469
1624
|
"merged-pr-notes": "merged-pr-notes";
|
|
1470
1625
|
"reviewed-prs": "reviewed-prs";
|
|
1471
1626
|
"closed-pr-status": "closed-pr-status";
|
|
1472
|
-
"merge-loop": "merge-loop";
|
|
1473
1627
|
"repo-scores": "repo-scores";
|
|
1474
1628
|
analytics: "analytics";
|
|
1629
|
+
"merge-loop": "merge-loop";
|
|
1475
1630
|
partition: "partition";
|
|
1476
1631
|
"dismiss-filter": "dismiss-filter";
|
|
1477
1632
|
"gist-init": "gist-init";
|
|
@@ -1538,6 +1693,7 @@ export declare const ConfigCommandOutputSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
1538
1693
|
success: z.ZodLiteral<true>;
|
|
1539
1694
|
key: z.ZodString;
|
|
1540
1695
|
value: z.ZodString;
|
|
1696
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1541
1697
|
gistSyncWarning: z.ZodOptional<z.ZodString>;
|
|
1542
1698
|
}, z.core.$strip>, z.ZodObject<{
|
|
1543
1699
|
keys: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
@@ -2049,6 +2205,12 @@ export interface StartupOutput {
|
|
|
2049
2205
|
* first `overnight` run.
|
|
2050
2206
|
*/
|
|
2051
2207
|
overnight?: import('../commands/overnight.js').OvernightFreshness;
|
|
2208
|
+
/**
|
|
2209
|
+
* Overnight worktrees and rejected state copies past retention under the
|
|
2210
|
+
* data directory (#2049), counted from directory listings. Absent when the
|
|
2211
|
+
* count failed. `oss-autopilot cleanup` says which worktrees are removable.
|
|
2212
|
+
*/
|
|
2213
|
+
staleData?: import('../core/stale-data.js').StaleDataCounts;
|
|
2052
2214
|
}
|
|
2053
2215
|
/**
|
|
2054
2216
|
* Compact version of StartupOutput for reduced JSON payload (#763).
|
|
@@ -2283,6 +2445,8 @@ export interface CommentsOutput {
|
|
|
2283
2445
|
export interface PostOutput {
|
|
2284
2446
|
commentUrl: string;
|
|
2285
2447
|
url: string;
|
|
2448
|
+
/** Posted with `--allow-script-mismatch` over a script mismatch (#1909). */
|
|
2449
|
+
scriptMismatchWarning?: string;
|
|
2286
2450
|
}
|
|
2287
2451
|
/** Output of the claim command */
|
|
2288
2452
|
export interface ClaimOutput {
|
|
@@ -2296,6 +2460,8 @@ export interface ClaimOutput {
|
|
|
2296
2460
|
* runs will not monitor it. Absent on success.
|
|
2297
2461
|
*/
|
|
2298
2462
|
stateSaveWarning?: string;
|
|
2463
|
+
/** Claimed with `--allow-script-mismatch` over a script mismatch (#1909). */
|
|
2464
|
+
scriptMismatchWarning?: string;
|
|
2299
2465
|
}
|
|
2300
2466
|
/** Info about a local git clone (#84) */
|
|
2301
2467
|
export interface LocalRepoInfo {
|
package/dist/formatters/json.js
CHANGED
|
@@ -49,6 +49,7 @@ export function toCompactDailyOutput(output) {
|
|
|
49
49
|
mergedPRNotes: output.mergedPRNotes,
|
|
50
50
|
reviewedPRs: output.reviewedPRs,
|
|
51
51
|
workClaims: output.workClaims,
|
|
52
|
+
pacing: output.pacing,
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
@@ -122,6 +123,18 @@ const DailyWarningSchema = z.object({
|
|
|
122
123
|
timestamp: z.string().optional(),
|
|
123
124
|
details: z.record(z.string(), z.unknown()).optional(),
|
|
124
125
|
});
|
|
126
|
+
const PacingCountSchema = z.object({
|
|
127
|
+
cap: z.number().int().positive(),
|
|
128
|
+
count: z.number().int().nonnegative(),
|
|
129
|
+
atCap: z.boolean(),
|
|
130
|
+
freesAt: z.string().nullable(),
|
|
131
|
+
});
|
|
132
|
+
/** Pacing caps and counts (#1911, core/pacing.ts); present only when a cap is set. */
|
|
133
|
+
const PacingStatusSchema = z.object({
|
|
134
|
+
prs: PacingCountSchema.optional(),
|
|
135
|
+
forks: PacingCountSchema.optional(),
|
|
136
|
+
countedAt: z.string().nullable(),
|
|
137
|
+
});
|
|
125
138
|
export const StatusOutputSchema = z.object({
|
|
126
139
|
stats: z.object({
|
|
127
140
|
mergedPRs: z.number().int().nonnegative(),
|
|
@@ -135,6 +148,7 @@ export const StatusOutputSchema = z.object({
|
|
|
135
148
|
offline: z.boolean().optional(),
|
|
136
149
|
lastUpdated: z.string().optional(),
|
|
137
150
|
warnings: z.array(DailyWarningSchema).optional(),
|
|
151
|
+
pacing: PacingStatusSchema.optional(),
|
|
138
152
|
});
|
|
139
153
|
// ── Daily output schemas (#1146) ─────────────────────────────────────
|
|
140
154
|
//
|
|
@@ -305,10 +319,18 @@ export const AttentionSummarySchema = z.object({
|
|
|
305
319
|
dormantFollowup: z.number().int().nonnegative(),
|
|
306
320
|
waiting: z.number().int().nonnegative(),
|
|
307
321
|
});
|
|
322
|
+
/** Mirrors {@link GuidelineProposalStatus} (#2041). */
|
|
323
|
+
const GuidelineProposalStatusSchema = z.object({
|
|
324
|
+
repo: z.string(),
|
|
325
|
+
proposalPath: z.string(),
|
|
326
|
+
proposalAgeDays: z.number().int().nonnegative().nullable(),
|
|
327
|
+
proposalOnThisMachine: z.boolean(),
|
|
328
|
+
});
|
|
308
329
|
/** Mirrors {@link MergedPRListUpdate} (#1463). */
|
|
309
330
|
const PendingLearningsSchema = z.object({
|
|
310
331
|
repos: z.array(z.string()),
|
|
311
332
|
prCount: z.number().int().nonnegative(),
|
|
333
|
+
proposals: z.array(GuidelineProposalStatusSchema),
|
|
312
334
|
});
|
|
313
335
|
const MergedPRListUpdateSchema = z.object({
|
|
314
336
|
prUrl: z.string(),
|
|
@@ -399,6 +421,7 @@ export const DailyOutputSchema = z.object({
|
|
|
399
421
|
mergedPRNotes: z.array(MergedPRNotesSchema).optional(),
|
|
400
422
|
reviewedPRs: z.array(ReviewedPRFollowUpSchema).optional(),
|
|
401
423
|
workClaims: z.array(WorkClaimSchema).optional(),
|
|
424
|
+
pacing: PacingStatusSchema.optional(),
|
|
402
425
|
});
|
|
403
426
|
export const CompactDailyOutputSchema = z.object({
|
|
404
427
|
digest: DailyDigestCompactSchema,
|
|
@@ -417,6 +440,7 @@ export const CompactDailyOutputSchema = z.object({
|
|
|
417
440
|
mergedPRNotes: z.array(MergedPRNotesSchema).optional(),
|
|
418
441
|
reviewedPRs: z.array(ReviewedPRFollowUpSchema).optional(),
|
|
419
442
|
workClaims: z.array(WorkClaimSchema).optional(),
|
|
443
|
+
pacing: PacingStatusSchema.optional(),
|
|
420
444
|
});
|
|
421
445
|
// ── Search output schema (#1147) ─────────────────────────────────────
|
|
422
446
|
const SearchPrioritySchema = z.enum(['merged_pr', 'preferred_org', 'starred', 'normal']);
|
|
@@ -447,11 +471,19 @@ export const PolicyGetOutputSchema = z.object({
|
|
|
447
471
|
updatedAt: z.string(),
|
|
448
472
|
blocklisted: z.boolean(),
|
|
449
473
|
disclosureText: z.string().optional(),
|
|
474
|
+
gateLabel: z.string().optional(),
|
|
450
475
|
sources: z.string().optional(),
|
|
451
476
|
}).nullable(),
|
|
452
477
|
blocklistChange: z.enum(['added', 'removed']).optional(),
|
|
453
478
|
gistSyncWarning: z.string().optional(),
|
|
454
479
|
});
|
|
480
|
+
/** `dashboard launch --json` (#2039). Mirrors `DashboardLaunchOutput` in commands/dashboard-lifecycle.ts. */
|
|
481
|
+
export const DashboardLaunchOutputSchema = z.object({
|
|
482
|
+
status: z.enum(['launched', 'already_running']),
|
|
483
|
+
url: z.string(),
|
|
484
|
+
port: z.number(),
|
|
485
|
+
logFile: z.string(),
|
|
486
|
+
});
|
|
455
487
|
const SearchCandidateSchema = z.object({
|
|
456
488
|
issue: z.object({
|
|
457
489
|
repo: z.string(),
|
|
@@ -527,6 +559,46 @@ export const PrPreflightOutputSchema = z.object({
|
|
|
527
559
|
behind: z.number().int().nonnegative().nullable(),
|
|
528
560
|
checks: z.array(PrPreflightCheckSchema),
|
|
529
561
|
});
|
|
562
|
+
/** `pr-create` (#2085): the PR it opened and the preflight checks it passed. */
|
|
563
|
+
export const PrCreateOutputSchema = z.object({
|
|
564
|
+
prUrl: z.string(),
|
|
565
|
+
number: z.number().int().positive(),
|
|
566
|
+
repo: z.string(),
|
|
567
|
+
base: z.string(),
|
|
568
|
+
head: z.string(),
|
|
569
|
+
draft: z.boolean(),
|
|
570
|
+
alreadyExisted: z.boolean(),
|
|
571
|
+
verdict: z.enum(['pass', 'warn', 'fail']),
|
|
572
|
+
accepted: z.array(z.string()),
|
|
573
|
+
checks: z.array(PrPreflightCheckSchema),
|
|
574
|
+
});
|
|
575
|
+
const ForkOwnBranchSchema = z.object({ name: z.string(), prStates: z.array(z.string()) });
|
|
576
|
+
const ForkStringsSchema = z.array(z.string());
|
|
577
|
+
const ForkRowSchema = z.object({
|
|
578
|
+
repo: z.string(),
|
|
579
|
+
parent: z.string().nullable(),
|
|
580
|
+
verdict: z.enum(['PRUNE', 'KEEP']),
|
|
581
|
+
branchCount: z.number().int().nonnegative(),
|
|
582
|
+
openPRsToFork: z.number().int().nonnegative(),
|
|
583
|
+
hasOpenPRFromFork: z.boolean(),
|
|
584
|
+
ownBranches: z.array(ForkOwnBranchSchema),
|
|
585
|
+
reasons: ForkStringsSchema,
|
|
586
|
+
});
|
|
587
|
+
const ForkSkipSchema = z.object({ repo: z.string(), reasons: ForkStringsSchema });
|
|
588
|
+
/** `fork-prune` (#1912): one row per fork, the set digest, and on apply what was deleted or skipped. */
|
|
589
|
+
export const ForkPruneOutputSchema = z.object({
|
|
590
|
+
mode: z.enum(['dry-run', 'apply']),
|
|
591
|
+
login: z.string(),
|
|
592
|
+
forks: z.array(ForkRowSchema),
|
|
593
|
+
prunable: z.number().int().nonnegative(),
|
|
594
|
+
kept: z.number().int().nonnegative(),
|
|
595
|
+
setDigest: z.string(),
|
|
596
|
+
applyCommand: z.string().optional(),
|
|
597
|
+
requests: z.number().int().nonnegative(),
|
|
598
|
+
deleted: ForkStringsSchema.optional(),
|
|
599
|
+
skipped: z.array(ForkSkipSchema).optional(),
|
|
600
|
+
error: z.string().optional(),
|
|
601
|
+
});
|
|
530
602
|
const PolicyBanSchema = z.object({ repo: z.string(), reviewedByUser: z.boolean() });
|
|
531
603
|
export const SearchOutputSchema = z.object({
|
|
532
604
|
candidates: z.array(SearchCandidateSchema),
|
|
@@ -664,6 +736,8 @@ export const IssueThreadOutputSchema = z.object({
|
|
|
664
736
|
export const PostOutputSchema = z.object({
|
|
665
737
|
commentUrl: z.string(),
|
|
666
738
|
url: z.string(),
|
|
739
|
+
// Posted with --allow-script-mismatch over a script mismatch (#1909). Absent otherwise.
|
|
740
|
+
scriptMismatchWarning: z.string().optional(),
|
|
667
741
|
});
|
|
668
742
|
export const ClaimOutputSchema = z.object({
|
|
669
743
|
commentUrl: z.string(),
|
|
@@ -673,6 +747,8 @@ export const ClaimOutputSchema = z.object({
|
|
|
673
747
|
// Claim comment posted but local state save threw — claim is live but
|
|
674
748
|
// untracked (#1448). Optional: absent on clean runs.
|
|
675
749
|
stateSaveWarning: z.string().optional(),
|
|
750
|
+
// Claimed with --allow-script-mismatch over a script mismatch (#1909). Absent otherwise.
|
|
751
|
+
scriptMismatchWarning: z.string().optional(),
|
|
676
752
|
});
|
|
677
753
|
export const InitOutputSchema = z.object({
|
|
678
754
|
username: z.string(),
|
|
@@ -694,6 +770,7 @@ export const WorkFinishOutputSchema = z.object({
|
|
|
694
770
|
});
|
|
695
771
|
export const WorkReleaseOutputSchema = z.object({
|
|
696
772
|
released: z.array(z.string()),
|
|
773
|
+
recordedPR: z.string().optional(),
|
|
697
774
|
gistSyncWarning: z.string().optional(),
|
|
698
775
|
});
|
|
699
776
|
export const WorkListOutputSchema = z.object({
|
|
@@ -763,6 +840,8 @@ const ConfigSetOutputSchema = z.object({
|
|
|
763
840
|
success: z.literal(true),
|
|
764
841
|
key: z.string(),
|
|
765
842
|
value: z.string(),
|
|
843
|
+
// Setup's warnings when a setup-scoped key is set through config (#1913).
|
|
844
|
+
warnings: z.array(z.string()).optional(),
|
|
766
845
|
// Post-mutation Gist checkpoint failure (#1440). Optional: absent on clean runs.
|
|
767
846
|
gistSyncWarning: z.string().optional(),
|
|
768
847
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.44.0",
|
|
4
4
|
"description": "CLI and core library for managing open source contributions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
"@octokit/plugin-throttling": "^11.0.5",
|
|
57
57
|
"@octokit/rest": "^22.0.1",
|
|
58
58
|
"@oss-scout/core": "^1.14.2",
|
|
59
|
-
"commander": "^15.
|
|
59
|
+
"commander": "^15.1.0",
|
|
60
60
|
"zod": "^4.6.7"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/node": "^26.
|
|
64
|
-
"@vitest/coverage-v8": "^5.
|
|
63
|
+
"@types/node": "^26.6.6",
|
|
64
|
+
"@vitest/coverage-v8": "^5.1.1",
|
|
65
65
|
"esbuild": "^0.28.2",
|
|
66
|
-
"tsx": "^4.23.
|
|
66
|
+
"tsx": "^4.23.15",
|
|
67
67
|
"typedoc": "^0.28.20",
|
|
68
68
|
"typescript": "^6.0.3",
|
|
69
|
-
"vitest": "^5.
|
|
69
|
+
"vitest": "^5.1.1"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsc",
|