@oss-autopilot/core 3.42.5 → 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-pre-action.js +8 -3
- package/dist/cli-registry.js +428 -27
- package/dist/cli.bundle.cjs +212 -156
- package/dist/commands/check-integration.js +5 -1
- package/dist/commands/cleanup.d.ts +80 -0
- package/dist/commands/cleanup.js +334 -0
- package/dist/commands/comments.d.ts +14 -1
- package/dist/commands/comments.js +17 -5
- package/dist/commands/config.d.ts +2 -0
- package/dist/commands/config.js +63 -6
- package/dist/commands/daily-dismiss-filter.d.ts +7 -0
- package/dist/commands/daily-dismiss-filter.js +17 -1
- package/dist/commands/daily-ledger.d.ts +150 -0
- package/dist/commands/daily-ledger.js +248 -0
- package/dist/commands/daily-recent-prs.d.ts +26 -0
- package/dist/commands/daily-recent-prs.js +55 -0
- package/dist/commands/daily-render.d.ts +2 -1
- package/dist/commands/daily-render.js +4 -1
- package/dist/commands/daily.d.ts +5 -1
- package/dist/commands/daily.js +83 -93
- package/dist/commands/dashboard-cache.d.ts +2 -0
- package/dist/commands/dashboard-cache.js +33 -8
- package/dist/commands/dashboard-data.js +113 -69
- package/dist/commands/dashboard-gist-sync.js +3 -1
- package/dist/commands/dashboard-lifecycle.d.ts +36 -8
- package/dist/commands/dashboard-lifecycle.js +132 -39
- package/dist/commands/dashboard-process.d.ts +49 -1
- package/dist/commands/dashboard-process.js +111 -12
- package/dist/commands/dashboard-server.js +89 -23
- package/dist/commands/detect-formatters.js +1 -0
- package/dist/commands/dismiss.js +11 -7
- package/dist/commands/doctor.d.ts +15 -1
- package/dist/commands/doctor.js +66 -5
- package/dist/commands/draft.d.ts +77 -0
- package/dist/commands/draft.js +218 -0
- package/dist/commands/eval.js +1 -0
- package/dist/commands/fork-prune.d.ts +58 -0
- package/dist/commands/fork-prune.js +247 -0
- package/dist/commands/guidelines.d.ts +69 -2
- package/dist/commands/guidelines.js +158 -14
- package/dist/commands/index.d.ts +29 -4
- package/dist/commands/index.js +20 -3
- package/dist/commands/issue-thread.d.ts +46 -0
- package/dist/commands/issue-thread.js +123 -0
- package/dist/commands/ledger-backfill.d.ts +9 -0
- package/dist/commands/ledger-backfill.js +44 -1
- package/dist/commands/list-mark-done.d.ts +2 -1
- package/dist/commands/list-mark-done.js +3 -1
- package/dist/commands/list-move-tier.d.ts +2 -1
- package/dist/commands/list-move-tier.js +3 -1
- package/dist/commands/local-repos.js +10 -5
- package/dist/commands/locate-issue-list.d.ts +40 -17
- package/dist/commands/locate-issue-list.js +148 -88
- package/dist/commands/move.js +7 -1
- package/dist/commands/overnight-handoff.d.ts +17 -7
- package/dist/commands/overnight-handoff.js +36 -14
- package/dist/commands/overnight-push-prep.d.ts +14 -8
- package/dist/commands/overnight-push-prep.js +107 -35
- package/dist/commands/overnight-tool-rules.d.ts +54 -0
- package/dist/commands/overnight-tool-rules.js +217 -0
- package/dist/commands/overnight.d.ts +5 -6
- package/dist/commands/overnight.js +61 -140
- package/dist/commands/parse-list.js +7 -1
- package/dist/commands/policy.d.ts +90 -0
- package/dist/commands/policy.js +276 -0
- package/dist/commands/pr-create.d.ts +48 -0
- package/dist/commands/pr-create.js +200 -0
- package/dist/commands/pr-preflight.d.ts +69 -0
- package/dist/commands/pr-preflight.js +348 -0
- package/dist/commands/repo-vet.d.ts +9 -0
- package/dist/commands/repo-vet.js +36 -11
- package/dist/commands/scout-bridge.js +18 -8
- package/dist/commands/search.js +7 -0
- package/dist/commands/setup.d.ts +3 -3
- package/dist/commands/setup.js +160 -48
- package/dist/commands/skip-add.js +10 -1
- package/dist/commands/startup.d.ts +12 -3
- package/dist/commands/startup.js +82 -49
- package/dist/commands/state-cmd.d.ts +2 -0
- package/dist/commands/state-cmd.js +5 -1
- package/dist/commands/stats.js +1 -0
- package/dist/commands/status.js +6 -0
- package/dist/commands/strategy.js +1 -0
- package/dist/commands/validation.d.ts +5 -0
- package/dist/commands/validation.js +5 -0
- package/dist/commands/vet-list.d.ts +6 -0
- package/dist/commands/vet-list.js +26 -1
- package/dist/commands/vet.d.ts +20 -0
- package/dist/commands/vet.js +133 -2
- package/dist/commands/work.d.ts +4 -0
- package/dist/commands/work.js +34 -11
- package/dist/core/__fixtures__/prompt-injection-payloads.js +31 -0
- package/dist/core/anti-llm-policy.d.ts +3 -0
- package/dist/core/anti-llm-policy.js +3 -0
- package/dist/core/auth.js +2 -0
- package/dist/core/ci-analysis.d.ts +7 -2
- package/dist/core/ci-analysis.js +76 -21
- package/dist/core/commit-date.d.ts +45 -0
- package/dist/core/commit-date.js +45 -0
- 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 +94 -7
- package/dist/core/contributing.d.ts +2 -3
- package/dist/core/contributing.js +2 -3
- package/dist/core/daily-logic.d.ts +30 -5
- package/dist/core/daily-logic.js +68 -19
- package/dist/core/errors.d.ts +37 -3
- package/dist/core/errors.js +54 -5
- package/dist/core/fork-prune.d.ts +149 -0
- package/dist/core/fork-prune.js +333 -0
- package/dist/core/gist-health.d.ts +15 -3
- package/dist/core/gist-health.js +8 -0
- package/dist/core/gist-state-store.d.ts +24 -4
- package/dist/core/gist-state-store.js +98 -51
- package/dist/core/github-stats.d.ts +110 -16
- package/dist/core/github-stats.js +295 -110
- package/dist/core/http-cache.d.ts +0 -10
- package/dist/core/http-cache.js +0 -19
- package/dist/core/index.d.ts +13 -6
- package/dist/core/index.js +16 -6
- package/dist/core/issue-conversation.d.ts +8 -2
- package/dist/core/issue-conversation.js +31 -12
- package/dist/core/local-config.d.ts +95 -0
- package/dist/core/local-config.js +270 -0
- package/dist/core/merged-pr-notes.d.ts +2 -2
- package/dist/core/pacing.d.ts +41 -0
- package/dist/core/pacing.js +115 -0
- package/dist/core/pagination.d.ts +55 -0
- package/dist/core/pagination.js +59 -0
- package/dist/core/paths.d.ts +7 -0
- package/dist/core/paths.js +9 -0
- package/dist/core/pr-assembly.d.ts +2 -0
- package/dist/core/pr-assembly.js +6 -2
- package/dist/core/pr-graphql.d.ts +53 -4
- package/dist/core/pr-graphql.js +87 -14
- package/dist/core/pr-monitor.d.ts +35 -12
- package/dist/core/pr-monitor.js +110 -26
- package/dist/core/pr-preflight.d.ts +154 -0
- package/dist/core/pr-preflight.js +753 -0
- package/dist/core/pr-quality-rubric.d.ts +0 -6
- package/dist/core/pr-quality-rubric.js +0 -8
- package/dist/core/pr-template.d.ts +2 -0
- package/dist/core/pr-template.js +5 -1
- package/dist/core/prose-script.d.ts +72 -0
- package/dist/core/prose-script.js +223 -0
- package/dist/core/repo-policy.d.ts +111 -0
- package/dist/core/repo-policy.js +428 -0
- package/dist/core/repo-score-manager.d.ts +66 -0
- package/dist/core/repo-score-manager.js +140 -1
- package/dist/core/review-analysis.d.ts +49 -21
- package/dist/core/review-analysis.js +89 -15
- package/dist/core/reviewed-prs-fetch.js +11 -29
- package/dist/core/reviewed-prs.js +8 -15
- package/dist/core/stale-data.d.ts +78 -0
- package/dist/core/stale-data.js +153 -0
- package/dist/core/state-persistence.d.ts +62 -27
- package/dist/core/state-persistence.js +338 -119
- package/dist/core/state-schema.d.ts +152 -210
- package/dist/core/state-schema.js +232 -80
- package/dist/core/state.d.ts +81 -8
- package/dist/core/state.js +239 -46
- package/dist/core/status-determination.js +32 -12
- package/dist/core/strategy.js +3 -1
- package/dist/core/types.d.ts +22 -1
- package/dist/core/types.js +1 -0
- package/dist/core/untrusted-content.d.ts +30 -11
- package/dist/core/untrusted-content.js +95 -42
- package/dist/core/urls.d.ts +33 -0
- package/dist/core/urls.js +94 -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 +432 -10
- package/dist/formatters/json.js +156 -1
- package/package.json +6 -6
- package/dist/core/ci-enforced-tools.d.ts +0 -35
- package/dist/core/ci-enforced-tools.js +0 -109
- package/dist/core/comment-decision.d.ts +0 -79
- package/dist/core/comment-decision.js +0 -82
- package/dist/core/extraction-categories.d.ts +0 -55
- package/dist/core/extraction-categories.js +0 -108
- package/dist/core/follow-up-history.d.ts +0 -40
- package/dist/core/follow-up-history.js +0 -71
- package/dist/core/issue-effort.d.ts +0 -29
- package/dist/core/issue-effort.js +0 -47
- package/dist/core/maintainer-hints.d.ts +0 -23
- package/dist/core/maintainer-hints.js +0 -36
- package/dist/core/workflow-state.d.ts +0 -56
- package/dist/core/workflow-state.js +0 -101
- package/dist/dashboard/assets/chart-panel-DPKNBUts.js +0 -3
- package/dist/dashboard/assets/index-B25bZOYX.js +0 -55
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
import { z, type ZodType } from 'zod';
|
|
6
6
|
import type { AttentionSummary } from '../core/pr-attention.js';
|
|
7
7
|
import type { FetchedPR, DailyDigest, AgentState, RepoGroup, CommentedIssue, ShelvedPRRef, SearchPriority, CapacityAssessment, ActionableIssue, CompactActionableIssue, ActionMenu, WorkClaim } from '../core/types.js';
|
|
8
|
+
import type { RepoPolicySummary } from '../core/repo-policy.js';
|
|
8
9
|
import type { ContributionStats } from '../core/stats.js';
|
|
9
10
|
import type { RepoCapStatus } from '../core/repo-cap.js';
|
|
11
|
+
import type { PacingStatus } from '../core/pacing.js';
|
|
10
12
|
import type { PRCheckFailure } from '../core/pr-monitor.js';
|
|
11
13
|
import type { ClosedPRStatusUpdate } from '../core/closed-pr-status.js';
|
|
12
14
|
import type { MergedPRNotes } from '../core/merged-pr-notes.js';
|
|
@@ -70,7 +72,7 @@ export interface CompactRepoGroup {
|
|
|
70
72
|
* See `DailyWarning` and issue #1042 for the rationale — keeping this a
|
|
71
73
|
* fixed union so downstream consumers can switch on it without drift.
|
|
72
74
|
*/
|
|
73
|
-
export type DailyWarningPhase = 'fetch' | 'repo-scores' | 'analytics' | 'merge-loop' | 'partition' | 'dismiss-filter' | 'gist-init' | 'gist-checkpoint' | 'gist-staleness' | 'state-load' | 'closed-pr-status' | 'merged-pr-notes' | 'reviewed-prs';
|
|
75
|
+
export type DailyWarningPhase = 'fetch' | 'repo-scores' | 'analytics' | 'merge-loop' | 'partition' | 'dismiss-filter' | 'gist-init' | 'gist-checkpoint' | 'gist-staleness' | 'state-load' | 'closed-pr-status' | 'merged-pr-notes' | 'reviewed-prs' | 'issue-list';
|
|
74
76
|
/**
|
|
75
77
|
* A single non-fatal failure surfaced from the `daily` pipeline. Unlike
|
|
76
78
|
* `PRCheckFailure` (which is scoped to per-PR fetch errors), this covers
|
|
@@ -159,7 +161,7 @@ export interface DailyOutput {
|
|
|
159
161
|
/**
|
|
160
162
|
* Closed-unmerged PRs whose linked issue has not heard from the user since
|
|
161
163
|
* the close (#1863). Drives the `closed_pr_status` action-menu item; the
|
|
162
|
-
* workflow drafts a status comment per entry
|
|
164
|
+
* workflow drafts a status comment per entry as a draft file.
|
|
163
165
|
* Present only when at least one entry exists, so merge-free runs and
|
|
164
166
|
* goldens are unchanged. See {@link ClosedPRStatusUpdate}.
|
|
165
167
|
*/
|
|
@@ -168,7 +170,7 @@ export interface DailyOutput {
|
|
|
168
170
|
* Recently merged PRs carrying maintainer notes (thanks, a follow-up, a
|
|
169
171
|
* commit pushed on top) the user has not answered (#1861). Drives the
|
|
170
172
|
* `merged_pr_notes` action-menu item; the workflow classifies each note
|
|
171
|
-
* and drafts a reply
|
|
173
|
+
* and drafts a reply as a draft file. Note excerpts are fenced
|
|
172
174
|
* as untrusted GitHub content. Present only when at least one entry
|
|
173
175
|
* exists, so merge-free runs and goldens are unchanged. See
|
|
174
176
|
* {@link MergedPRNotes}.
|
|
@@ -179,7 +181,7 @@ export interface DailyOutput {
|
|
|
179
181
|
* replied since the user's last review or comment (#1857). Drives the
|
|
180
182
|
* `review_follow_ups` action-menu item; the workflow re-reviews the range
|
|
181
183
|
* (or the commit list when `rebased`) through review-panel and answers the
|
|
182
|
-
* questions
|
|
184
|
+
* questions in draft files. Excerpts and commit subjects are
|
|
183
185
|
* fenced as untrusted GitHub content. Never counted in capacity or
|
|
184
186
|
* `needsAddressingPRs`. Present only when at least one entry exists, so
|
|
185
187
|
* goldens are unchanged. See {@link ReviewedPRFollowUp}.
|
|
@@ -194,6 +196,8 @@ export interface DailyOutput {
|
|
|
194
196
|
* unchanged. See {@link WorkClaim}.
|
|
195
197
|
*/
|
|
196
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;
|
|
197
201
|
}
|
|
198
202
|
/** Work order for the host's background learnings extraction (#1696). */
|
|
199
203
|
export interface PendingLearnings {
|
|
@@ -201,6 +205,23 @@ export interface PendingLearnings {
|
|
|
201
205
|
repos: string[];
|
|
202
206
|
/** Total unextracted recently merged PRs across those repos. */
|
|
203
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;
|
|
204
225
|
}
|
|
205
226
|
/**
|
|
206
227
|
* Compact version of DailyOutput for reduced JSON payload size (#763).
|
|
@@ -242,6 +263,8 @@ export interface CompactDailyOutput {
|
|
|
242
263
|
reviewedPRs?: ReviewedPRFollowUp[];
|
|
243
264
|
/** Live work claims (#1856, #1852). See {@link DailyOutput.workClaims}. */
|
|
244
265
|
workClaims?: WorkClaim[];
|
|
266
|
+
/** Pacing counts (#1911). See {@link DailyOutput.pacing}. */
|
|
267
|
+
pacing?: PacingStatus;
|
|
245
268
|
}
|
|
246
269
|
/**
|
|
247
270
|
* Strip a full DailyOutput down to the compact subset (#763).
|
|
@@ -283,21 +306,37 @@ export declare const StatusOutputSchema: z.ZodObject<{
|
|
|
283
306
|
"merged-pr-notes": "merged-pr-notes";
|
|
284
307
|
"reviewed-prs": "reviewed-prs";
|
|
285
308
|
"closed-pr-status": "closed-pr-status";
|
|
286
|
-
"merge-loop": "merge-loop";
|
|
287
309
|
"repo-scores": "repo-scores";
|
|
288
310
|
analytics: "analytics";
|
|
311
|
+
"merge-loop": "merge-loop";
|
|
289
312
|
partition: "partition";
|
|
290
313
|
"dismiss-filter": "dismiss-filter";
|
|
291
314
|
"gist-init": "gist-init";
|
|
292
315
|
"gist-checkpoint": "gist-checkpoint";
|
|
293
316
|
"gist-staleness": "gist-staleness";
|
|
294
317
|
"state-load": "state-load";
|
|
318
|
+
"issue-list": "issue-list";
|
|
295
319
|
}>;
|
|
296
320
|
operation: z.ZodString;
|
|
297
321
|
message: z.ZodString;
|
|
298
322
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
299
323
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
300
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>>;
|
|
301
340
|
}, z.core.$strip>;
|
|
302
341
|
export type StatusOutput = z.infer<typeof StatusOutputSchema>;
|
|
303
342
|
export declare const StrategyResultSchema: z.ZodObject<{
|
|
@@ -503,15 +542,16 @@ export declare const DailyOutputSchema: z.ZodObject<{
|
|
|
503
542
|
"merged-pr-notes": "merged-pr-notes";
|
|
504
543
|
"reviewed-prs": "reviewed-prs";
|
|
505
544
|
"closed-pr-status": "closed-pr-status";
|
|
506
|
-
"merge-loop": "merge-loop";
|
|
507
545
|
"repo-scores": "repo-scores";
|
|
508
546
|
analytics: "analytics";
|
|
547
|
+
"merge-loop": "merge-loop";
|
|
509
548
|
partition: "partition";
|
|
510
549
|
"dismiss-filter": "dismiss-filter";
|
|
511
550
|
"gist-init": "gist-init";
|
|
512
551
|
"gist-checkpoint": "gist-checkpoint";
|
|
513
552
|
"gist-staleness": "gist-staleness";
|
|
514
553
|
"state-load": "state-load";
|
|
554
|
+
"issue-list": "issue-list";
|
|
515
555
|
}>;
|
|
516
556
|
operation: z.ZodString;
|
|
517
557
|
message: z.ZodString;
|
|
@@ -571,6 +611,12 @@ export declare const DailyOutputSchema: z.ZodObject<{
|
|
|
571
611
|
pendingLearnings: z.ZodOptional<z.ZodObject<{
|
|
572
612
|
repos: z.ZodArray<z.ZodString>;
|
|
573
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>>;
|
|
574
620
|
}, z.core.$strip>>;
|
|
575
621
|
closedPRStatusUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
576
622
|
prUrl: z.ZodString;
|
|
@@ -654,6 +700,21 @@ export declare const DailyOutputSchema: z.ZodObject<{
|
|
|
654
700
|
runId: z.ZodOptional<z.ZodString>;
|
|
655
701
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
656
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>>;
|
|
657
718
|
}, z.core.$strip>;
|
|
658
719
|
export declare const CompactDailyOutputSchema: z.ZodObject<{
|
|
659
720
|
digest: z.ZodObject<{
|
|
@@ -747,15 +808,16 @@ export declare const CompactDailyOutputSchema: z.ZodObject<{
|
|
|
747
808
|
"merged-pr-notes": "merged-pr-notes";
|
|
748
809
|
"reviewed-prs": "reviewed-prs";
|
|
749
810
|
"closed-pr-status": "closed-pr-status";
|
|
750
|
-
"merge-loop": "merge-loop";
|
|
751
811
|
"repo-scores": "repo-scores";
|
|
752
812
|
analytics: "analytics";
|
|
813
|
+
"merge-loop": "merge-loop";
|
|
753
814
|
partition: "partition";
|
|
754
815
|
"dismiss-filter": "dismiss-filter";
|
|
755
816
|
"gist-init": "gist-init";
|
|
756
817
|
"gist-checkpoint": "gist-checkpoint";
|
|
757
818
|
"gist-staleness": "gist-staleness";
|
|
758
819
|
"state-load": "state-load";
|
|
820
|
+
"issue-list": "issue-list";
|
|
759
821
|
}>;
|
|
760
822
|
operation: z.ZodString;
|
|
761
823
|
message: z.ZodString;
|
|
@@ -815,6 +877,12 @@ export declare const CompactDailyOutputSchema: z.ZodObject<{
|
|
|
815
877
|
pendingLearnings: z.ZodOptional<z.ZodObject<{
|
|
816
878
|
repos: z.ZodArray<z.ZodString>;
|
|
817
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>>;
|
|
818
886
|
}, z.core.$strip>>;
|
|
819
887
|
closedPRStatusUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
820
888
|
prUrl: z.ZodString;
|
|
@@ -898,14 +966,100 @@ export declare const CompactDailyOutputSchema: z.ZodObject<{
|
|
|
898
966
|
runId: z.ZodOptional<z.ZodString>;
|
|
899
967
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
900
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>>;
|
|
984
|
+
}, z.core.$strip>;
|
|
985
|
+
/** Enumerated fields of a repo's contribution policy (#1953); no quoted text, so no fence. */
|
|
986
|
+
export declare const RepoPolicySummarySchema: z.ZodObject<{
|
|
987
|
+
aiPolicy: z.ZodEnum<{
|
|
988
|
+
unknown: "unknown";
|
|
989
|
+
allowed: "allowed";
|
|
990
|
+
"disclosure-required": "disclosure-required";
|
|
991
|
+
banned: "banned";
|
|
992
|
+
}>;
|
|
993
|
+
cla: z.ZodEnum<{
|
|
994
|
+
required: "required";
|
|
995
|
+
none: "none";
|
|
996
|
+
unknown: "unknown";
|
|
997
|
+
}>;
|
|
998
|
+
commitRules: z.ZodArray<z.ZodString>;
|
|
999
|
+
prGate: z.ZodEnum<{
|
|
1000
|
+
none: "none";
|
|
1001
|
+
unknown: "unknown";
|
|
1002
|
+
"claim-first": "claim-first";
|
|
1003
|
+
"maintainer-label": "maintainer-label";
|
|
1004
|
+
"collaborators-only": "collaborators-only";
|
|
1005
|
+
}>;
|
|
1006
|
+
maxOpenAiPRs: z.ZodOptional<z.ZodNumber>;
|
|
1007
|
+
reviewedByUser: z.ZodBoolean;
|
|
1008
|
+
}, z.core.$strip>;
|
|
1009
|
+
/** `policy get` / `policy set` (#1953). Quoted repo text arrives in `<github-content>` fences. */
|
|
1010
|
+
export declare const PolicyGetOutputSchema: z.ZodObject<{
|
|
1011
|
+
repo: z.ZodString;
|
|
1012
|
+
policy: z.ZodNullable<z.ZodObject<{
|
|
1013
|
+
aiPolicy: z.ZodEnum<{
|
|
1014
|
+
unknown: "unknown";
|
|
1015
|
+
allowed: "allowed";
|
|
1016
|
+
"disclosure-required": "disclosure-required";
|
|
1017
|
+
banned: "banned";
|
|
1018
|
+
}>;
|
|
1019
|
+
cla: z.ZodEnum<{
|
|
1020
|
+
required: "required";
|
|
1021
|
+
none: "none";
|
|
1022
|
+
unknown: "unknown";
|
|
1023
|
+
}>;
|
|
1024
|
+
commitRules: z.ZodArray<z.ZodString>;
|
|
1025
|
+
prGate: z.ZodEnum<{
|
|
1026
|
+
none: "none";
|
|
1027
|
+
unknown: "unknown";
|
|
1028
|
+
"claim-first": "claim-first";
|
|
1029
|
+
"maintainer-label": "maintainer-label";
|
|
1030
|
+
"collaborators-only": "collaborators-only";
|
|
1031
|
+
}>;
|
|
1032
|
+
maxOpenAiPRs: z.ZodOptional<z.ZodNumber>;
|
|
1033
|
+
reviewedByUser: z.ZodBoolean;
|
|
1034
|
+
updatedAt: z.ZodString;
|
|
1035
|
+
blocklisted: z.ZodBoolean;
|
|
1036
|
+
disclosureText: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
gateLabel: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
sources: z.ZodOptional<z.ZodString>;
|
|
1039
|
+
}, z.core.$strip>>;
|
|
1040
|
+
blocklistChange: z.ZodOptional<z.ZodEnum<{
|
|
1041
|
+
removed: "removed";
|
|
1042
|
+
added: "added";
|
|
1043
|
+
}>>;
|
|
1044
|
+
gistSyncWarning: z.ZodOptional<z.ZodString>;
|
|
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;
|
|
901
1055
|
}, z.core.$strip>;
|
|
902
1056
|
/** Per-repo open-PR cap status (core/repo-cap.ts). */
|
|
903
1057
|
export declare const RepoCapStatusSchema: z.ZodObject<{
|
|
904
1058
|
repo: z.ZodString;
|
|
905
1059
|
openPRCount: z.ZodNumber;
|
|
906
1060
|
countSource: z.ZodEnum<{
|
|
907
|
-
digest: "digest";
|
|
908
1061
|
github: "github";
|
|
1062
|
+
digest: "digest";
|
|
909
1063
|
}>;
|
|
910
1064
|
mergedPRCount: z.ZodNumber;
|
|
911
1065
|
cold: z.ZodBoolean;
|
|
@@ -914,6 +1068,96 @@ export declare const RepoCapStatusSchema: z.ZodObject<{
|
|
|
914
1068
|
excluded: z.ZodBoolean;
|
|
915
1069
|
reason: z.ZodOptional<z.ZodString>;
|
|
916
1070
|
}, z.core.$strip>;
|
|
1071
|
+
/** `pr-preflight` (#1952). A later check is one more `checks` entry, so the shape does not change. */
|
|
1072
|
+
export declare const PrPreflightOutputSchema: z.ZodObject<{
|
|
1073
|
+
verdict: z.ZodEnum<{
|
|
1074
|
+
fail: "fail";
|
|
1075
|
+
pass: "pass";
|
|
1076
|
+
warn: "warn";
|
|
1077
|
+
}>;
|
|
1078
|
+
dir: z.ZodString;
|
|
1079
|
+
repo: z.ZodNullable<z.ZodString>;
|
|
1080
|
+
issueUrl: z.ZodNullable<z.ZodString>;
|
|
1081
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
1082
|
+
remote: z.ZodNullable<z.ZodString>;
|
|
1083
|
+
base: z.ZodNullable<z.ZodString>;
|
|
1084
|
+
mergeBase: z.ZodNullable<z.ZodString>;
|
|
1085
|
+
ahead: z.ZodNullable<z.ZodNumber>;
|
|
1086
|
+
behind: z.ZodNullable<z.ZodNumber>;
|
|
1087
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1088
|
+
id: z.ZodString;
|
|
1089
|
+
status: z.ZodEnum<{
|
|
1090
|
+
skipped: "skipped";
|
|
1091
|
+
fail: "fail";
|
|
1092
|
+
pass: "pass";
|
|
1093
|
+
warn: "warn";
|
|
1094
|
+
}>;
|
|
1095
|
+
summary: z.ZodString;
|
|
1096
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1097
|
+
}, z.core.$strip>>;
|
|
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>;
|
|
917
1161
|
export declare const SearchOutputSchema: z.ZodObject<{
|
|
918
1162
|
candidates: z.ZodArray<z.ZodObject<{
|
|
919
1163
|
issue: z.ZodObject<{
|
|
@@ -964,11 +1208,38 @@ export declare const SearchOutputSchema: z.ZodObject<{
|
|
|
964
1208
|
boostScore: z.ZodOptional<z.ZodNumber>;
|
|
965
1209
|
boostReasons: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
966
1210
|
diversitySlot: z.ZodOptional<z.ZodBoolean>;
|
|
1211
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
1212
|
+
aiPolicy: z.ZodEnum<{
|
|
1213
|
+
unknown: "unknown";
|
|
1214
|
+
allowed: "allowed";
|
|
1215
|
+
"disclosure-required": "disclosure-required";
|
|
1216
|
+
banned: "banned";
|
|
1217
|
+
}>;
|
|
1218
|
+
cla: z.ZodEnum<{
|
|
1219
|
+
required: "required";
|
|
1220
|
+
none: "none";
|
|
1221
|
+
unknown: "unknown";
|
|
1222
|
+
}>;
|
|
1223
|
+
commitRules: z.ZodArray<z.ZodString>;
|
|
1224
|
+
prGate: z.ZodEnum<{
|
|
1225
|
+
none: "none";
|
|
1226
|
+
unknown: "unknown";
|
|
1227
|
+
"claim-first": "claim-first";
|
|
1228
|
+
"maintainer-label": "maintainer-label";
|
|
1229
|
+
"collaborators-only": "collaborators-only";
|
|
1230
|
+
}>;
|
|
1231
|
+
maxOpenAiPRs: z.ZodOptional<z.ZodNumber>;
|
|
1232
|
+
reviewedByUser: z.ZodBoolean;
|
|
1233
|
+
}, z.core.$strip>>;
|
|
967
1234
|
}, z.core.$strip>>;
|
|
968
1235
|
excludedRepos: z.ZodArray<z.ZodString>;
|
|
969
1236
|
aiPolicyBlocklist: z.ZodArray<z.ZodString>;
|
|
970
1237
|
hiddenOwnPRCount: z.ZodNumber;
|
|
971
1238
|
reposAtCap: z.ZodArray<z.ZodString>;
|
|
1239
|
+
policyBannedRepos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1240
|
+
repo: z.ZodString;
|
|
1241
|
+
reviewedByUser: z.ZodBoolean;
|
|
1242
|
+
}, z.core.$strip>>>;
|
|
972
1243
|
rateLimitWarning: z.ZodOptional<z.ZodString>;
|
|
973
1244
|
skipListUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
974
1245
|
}, z.core.$strip>;
|
|
@@ -1022,6 +1293,29 @@ export declare const FeaturesOutputSchema: z.ZodObject<{
|
|
|
1022
1293
|
boostScore: z.ZodOptional<z.ZodNumber>;
|
|
1023
1294
|
boostReasons: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1024
1295
|
diversitySlot: z.ZodOptional<z.ZodBoolean>;
|
|
1296
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
1297
|
+
aiPolicy: z.ZodEnum<{
|
|
1298
|
+
unknown: "unknown";
|
|
1299
|
+
allowed: "allowed";
|
|
1300
|
+
"disclosure-required": "disclosure-required";
|
|
1301
|
+
banned: "banned";
|
|
1302
|
+
}>;
|
|
1303
|
+
cla: z.ZodEnum<{
|
|
1304
|
+
required: "required";
|
|
1305
|
+
none: "none";
|
|
1306
|
+
unknown: "unknown";
|
|
1307
|
+
}>;
|
|
1308
|
+
commitRules: z.ZodArray<z.ZodString>;
|
|
1309
|
+
prGate: z.ZodEnum<{
|
|
1310
|
+
none: "none";
|
|
1311
|
+
unknown: "unknown";
|
|
1312
|
+
"claim-first": "claim-first";
|
|
1313
|
+
"maintainer-label": "maintainer-label";
|
|
1314
|
+
"collaborators-only": "collaborators-only";
|
|
1315
|
+
}>;
|
|
1316
|
+
maxOpenAiPRs: z.ZodOptional<z.ZodNumber>;
|
|
1317
|
+
reviewedByUser: z.ZodBoolean;
|
|
1318
|
+
}, z.core.$strip>>;
|
|
1025
1319
|
horizon: z.ZodEnum<{
|
|
1026
1320
|
"quick-win": "quick-win";
|
|
1027
1321
|
"bigger-bet": "bigger-bet";
|
|
@@ -1076,6 +1370,29 @@ export declare const FeaturesOutputSchema: z.ZodObject<{
|
|
|
1076
1370
|
boostScore: z.ZodOptional<z.ZodNumber>;
|
|
1077
1371
|
boostReasons: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1078
1372
|
diversitySlot: z.ZodOptional<z.ZodBoolean>;
|
|
1373
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
1374
|
+
aiPolicy: z.ZodEnum<{
|
|
1375
|
+
unknown: "unknown";
|
|
1376
|
+
allowed: "allowed";
|
|
1377
|
+
"disclosure-required": "disclosure-required";
|
|
1378
|
+
banned: "banned";
|
|
1379
|
+
}>;
|
|
1380
|
+
cla: z.ZodEnum<{
|
|
1381
|
+
required: "required";
|
|
1382
|
+
none: "none";
|
|
1383
|
+
unknown: "unknown";
|
|
1384
|
+
}>;
|
|
1385
|
+
commitRules: z.ZodArray<z.ZodString>;
|
|
1386
|
+
prGate: z.ZodEnum<{
|
|
1387
|
+
none: "none";
|
|
1388
|
+
unknown: "unknown";
|
|
1389
|
+
"claim-first": "claim-first";
|
|
1390
|
+
"maintainer-label": "maintainer-label";
|
|
1391
|
+
"collaborators-only": "collaborators-only";
|
|
1392
|
+
}>;
|
|
1393
|
+
maxOpenAiPRs: z.ZodOptional<z.ZodNumber>;
|
|
1394
|
+
reviewedByUser: z.ZodBoolean;
|
|
1395
|
+
}, z.core.$strip>>;
|
|
1079
1396
|
horizon: z.ZodEnum<{
|
|
1080
1397
|
"quick-win": "quick-win";
|
|
1081
1398
|
"bigger-bet": "bigger-bet";
|
|
@@ -1180,15 +1497,58 @@ export declare const VerifyIssueOutputSchema: z.ZodObject<{
|
|
|
1180
1497
|
verdictReason: z.ZodString;
|
|
1181
1498
|
userLogin: z.ZodString;
|
|
1182
1499
|
}, z.core.$strip>;
|
|
1500
|
+
export declare const IssueThreadOutputSchema: z.ZodObject<{
|
|
1501
|
+
url: z.ZodString;
|
|
1502
|
+
owner: z.ZodString;
|
|
1503
|
+
repo: z.ZodString;
|
|
1504
|
+
number: z.ZodNumber;
|
|
1505
|
+
state: z.ZodString;
|
|
1506
|
+
title: z.ZodString;
|
|
1507
|
+
author: z.ZodNullable<z.ZodString>;
|
|
1508
|
+
authorAssociation: z.ZodNullable<z.ZodString>;
|
|
1509
|
+
createdAt: z.ZodString;
|
|
1510
|
+
body: z.ZodString;
|
|
1511
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
1512
|
+
author: z.ZodNullable<z.ZodString>;
|
|
1513
|
+
authorAssociation: z.ZodNullable<z.ZodString>;
|
|
1514
|
+
createdAt: z.ZodString;
|
|
1515
|
+
body: z.ZodString;
|
|
1516
|
+
}, z.core.$strip>>;
|
|
1517
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1518
|
+
phase: z.ZodEnum<{
|
|
1519
|
+
fetch: "fetch";
|
|
1520
|
+
"merged-pr-notes": "merged-pr-notes";
|
|
1521
|
+
"reviewed-prs": "reviewed-prs";
|
|
1522
|
+
"closed-pr-status": "closed-pr-status";
|
|
1523
|
+
"repo-scores": "repo-scores";
|
|
1524
|
+
analytics: "analytics";
|
|
1525
|
+
"merge-loop": "merge-loop";
|
|
1526
|
+
partition: "partition";
|
|
1527
|
+
"dismiss-filter": "dismiss-filter";
|
|
1528
|
+
"gist-init": "gist-init";
|
|
1529
|
+
"gist-checkpoint": "gist-checkpoint";
|
|
1530
|
+
"gist-staleness": "gist-staleness";
|
|
1531
|
+
"state-load": "state-load";
|
|
1532
|
+
"issue-list": "issue-list";
|
|
1533
|
+
}>;
|
|
1534
|
+
operation: z.ZodString;
|
|
1535
|
+
message: z.ZodString;
|
|
1536
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1538
|
+
}, z.core.$strip>>>;
|
|
1539
|
+
}, z.core.$strip>;
|
|
1540
|
+
export type IssueThreadOutput = z.infer<typeof IssueThreadOutputSchema>;
|
|
1183
1541
|
export declare const PostOutputSchema: z.ZodObject<{
|
|
1184
1542
|
commentUrl: z.ZodString;
|
|
1185
1543
|
url: z.ZodString;
|
|
1544
|
+
scriptMismatchWarning: z.ZodOptional<z.ZodString>;
|
|
1186
1545
|
}, z.core.$strip>;
|
|
1187
1546
|
export declare const ClaimOutputSchema: z.ZodObject<{
|
|
1188
1547
|
commentUrl: z.ZodString;
|
|
1189
1548
|
issueUrl: z.ZodString;
|
|
1190
1549
|
gistSyncWarning: z.ZodOptional<z.ZodString>;
|
|
1191
1550
|
stateSaveWarning: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
scriptMismatchWarning: z.ZodOptional<z.ZodString>;
|
|
1192
1552
|
}, z.core.$strip>;
|
|
1193
1553
|
export declare const InitOutputSchema: z.ZodObject<{
|
|
1194
1554
|
username: z.ZodString;
|
|
@@ -1238,6 +1598,7 @@ export declare const WorkFinishOutputSchema: z.ZodObject<{
|
|
|
1238
1598
|
}, z.core.$strip>;
|
|
1239
1599
|
export declare const WorkReleaseOutputSchema: z.ZodObject<{
|
|
1240
1600
|
released: z.ZodArray<z.ZodString>;
|
|
1601
|
+
recordedPR: z.ZodOptional<z.ZodString>;
|
|
1241
1602
|
gistSyncWarning: z.ZodOptional<z.ZodString>;
|
|
1242
1603
|
}, z.core.$strip>;
|
|
1243
1604
|
export declare const WorkListOutputSchema: z.ZodObject<{
|
|
@@ -1263,15 +1624,16 @@ export declare const WorkListOutputSchema: z.ZodObject<{
|
|
|
1263
1624
|
"merged-pr-notes": "merged-pr-notes";
|
|
1264
1625
|
"reviewed-prs": "reviewed-prs";
|
|
1265
1626
|
"closed-pr-status": "closed-pr-status";
|
|
1266
|
-
"merge-loop": "merge-loop";
|
|
1267
1627
|
"repo-scores": "repo-scores";
|
|
1268
1628
|
analytics: "analytics";
|
|
1629
|
+
"merge-loop": "merge-loop";
|
|
1269
1630
|
partition: "partition";
|
|
1270
1631
|
"dismiss-filter": "dismiss-filter";
|
|
1271
1632
|
"gist-init": "gist-init";
|
|
1272
1633
|
"gist-checkpoint": "gist-checkpoint";
|
|
1273
1634
|
"gist-staleness": "gist-staleness";
|
|
1274
1635
|
"state-load": "state-load";
|
|
1636
|
+
"issue-list": "issue-list";
|
|
1275
1637
|
}>;
|
|
1276
1638
|
operation: z.ZodString;
|
|
1277
1639
|
message: z.ZodString;
|
|
@@ -1326,10 +1688,12 @@ export declare const SetupOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1326
1688
|
}, z.core.$strip>]>;
|
|
1327
1689
|
export declare const ConfigCommandOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1328
1690
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1691
|
+
machinePathSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1329
1692
|
}, z.core.$strip>, z.ZodObject<{
|
|
1330
1693
|
success: z.ZodLiteral<true>;
|
|
1331
1694
|
key: z.ZodString;
|
|
1332
1695
|
value: z.ZodString;
|
|
1696
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1333
1697
|
gistSyncWarning: z.ZodOptional<z.ZodString>;
|
|
1334
1698
|
}, z.core.$strip>, z.ZodObject<{
|
|
1335
1699
|
keys: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
@@ -1394,6 +1758,29 @@ export declare const RepoVetOutputSchema: z.ZodObject<{
|
|
|
1394
1758
|
avoid: "avoid";
|
|
1395
1759
|
}>;
|
|
1396
1760
|
historyScore: z.ZodOptional<z.ZodNumber>;
|
|
1761
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
1762
|
+
aiPolicy: z.ZodEnum<{
|
|
1763
|
+
unknown: "unknown";
|
|
1764
|
+
allowed: "allowed";
|
|
1765
|
+
"disclosure-required": "disclosure-required";
|
|
1766
|
+
banned: "banned";
|
|
1767
|
+
}>;
|
|
1768
|
+
cla: z.ZodEnum<{
|
|
1769
|
+
required: "required";
|
|
1770
|
+
none: "none";
|
|
1771
|
+
unknown: "unknown";
|
|
1772
|
+
}>;
|
|
1773
|
+
commitRules: z.ZodArray<z.ZodString>;
|
|
1774
|
+
prGate: z.ZodEnum<{
|
|
1775
|
+
none: "none";
|
|
1776
|
+
unknown: "unknown";
|
|
1777
|
+
"claim-first": "claim-first";
|
|
1778
|
+
"maintainer-label": "maintainer-label";
|
|
1779
|
+
"collaborators-only": "collaborators-only";
|
|
1780
|
+
}>;
|
|
1781
|
+
maxOpenAiPRs: z.ZodOptional<z.ZodNumber>;
|
|
1782
|
+
reviewedByUser: z.ZodBoolean;
|
|
1783
|
+
}, z.core.$strip>>;
|
|
1397
1784
|
}, z.core.$strip>;
|
|
1398
1785
|
/**
|
|
1399
1786
|
* The CLI wrapper renames the core function's `repo` metadata object to
|
|
@@ -1680,11 +2067,13 @@ export interface SearchCandidate {
|
|
|
1680
2067
|
boostReasons?: string[];
|
|
1681
2068
|
/** True when this candidate filled a diversity slot (#1244). */
|
|
1682
2069
|
diversitySlot?: boolean;
|
|
2070
|
+
/** The repo's stored contribution policy (#1953), when one is recorded. */
|
|
2071
|
+
policy?: RepoPolicySummary;
|
|
1683
2072
|
}
|
|
1684
2073
|
export interface SearchOutput {
|
|
1685
2074
|
candidates: SearchCandidate[];
|
|
1686
2075
|
excludedRepos: string[];
|
|
1687
|
-
/** Repos
|
|
2076
|
+
/** Repos filtered from search results for banning AI-assisted contributions: `config.aiPolicyBlocklist` plus bans the user confirmed with `policy set` (#108, #1953). */
|
|
1688
2077
|
aiPolicyBlocklist: string[];
|
|
1689
2078
|
/** Candidates dropped because the authenticated user already has an open PR
|
|
1690
2079
|
* linked to the issue (#1354). Surfaced as a count so the filter is visible. */
|
|
@@ -1692,6 +2081,15 @@ export interface SearchOutput {
|
|
|
1692
2081
|
/** Repos left out of discovery because they are at the per-repo open-PR
|
|
1693
2082
|
* cap (`maxOpenPRsColdRepo` / `maxOpenPRsPerRepo`); empty when none. */
|
|
1694
2083
|
reposAtCap: string[];
|
|
2084
|
+
/**
|
|
2085
|
+
* Stored `banned` contribution policies (#1953). Reviewed ones are in
|
|
2086
|
+
* `aiPolicyBlocklist` and filtered; unreviewed ones (vet read them from the
|
|
2087
|
+
* docs) stay searchable, and their candidates carry `policy`. Absent when none.
|
|
2088
|
+
*/
|
|
2089
|
+
policyBannedRepos?: Array<{
|
|
2090
|
+
repo: string;
|
|
2091
|
+
reviewedByUser: boolean;
|
|
2092
|
+
}>;
|
|
1695
2093
|
/** Set when the seen-set write could not be pushed to the Gist (#1629);
|
|
1696
2094
|
* the local cache has it but the next startup's Gist refetch will drop it. */
|
|
1697
2095
|
gistSyncWarning?: string;
|
|
@@ -1731,7 +2129,14 @@ export interface TrackOutput {
|
|
|
1731
2129
|
};
|
|
1732
2130
|
}
|
|
1733
2131
|
export interface ConfigOutput {
|
|
2132
|
+
/** `issueListPath` and `skippedIssuesPath` are this machine's values in effect (#1950). */
|
|
1734
2133
|
config: AgentState['config'];
|
|
2134
|
+
/**
|
|
2135
|
+
* Where each shown path comes from: `set`, `adopted` or `probe` for a value
|
|
2136
|
+
* in this machine's `local-config.json`, `synced` for the shared config
|
|
2137
|
+
* fallback. Omitted when neither path is configured.
|
|
2138
|
+
*/
|
|
2139
|
+
machinePathSources?: Partial<Record<'issueListPath' | 'skippedIssuesPath' | 'localRepoScanPaths', 'set' | 'adopted' | 'probe' | 'synced'>>;
|
|
1735
2140
|
}
|
|
1736
2141
|
/** Info about a detected issue list file */
|
|
1737
2142
|
export interface IssueListInfo {
|
|
@@ -1800,6 +2205,12 @@ export interface StartupOutput {
|
|
|
1800
2205
|
* first `overnight` run.
|
|
1801
2206
|
*/
|
|
1802
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;
|
|
1803
2214
|
}
|
|
1804
2215
|
/**
|
|
1805
2216
|
* Compact version of StartupOutput for reduced JSON payload (#763).
|
|
@@ -1983,6 +2394,13 @@ export interface VetOutput {
|
|
|
1983
2394
|
* in `excludeRepos`; `reason` says which.
|
|
1984
2395
|
*/
|
|
1985
2396
|
repoCap?: RepoCapStatus;
|
|
2397
|
+
/**
|
|
2398
|
+
* The repo's contribution policy (#1953): what this vet read from its docs,
|
|
2399
|
+
* or the user's record when one is set, with `config.aiPolicyBlocklist`
|
|
2400
|
+
* read as a ban. `banned` makes the recommendation `skip`. Absent when
|
|
2401
|
+
* nothing is known. Quoted lines: `policy get`.
|
|
2402
|
+
*/
|
|
2403
|
+
policy?: RepoPolicySummary;
|
|
1986
2404
|
/** Set when the vet-time prediction (#1824) could not be saved locally. */
|
|
1987
2405
|
pickRecordError?: string;
|
|
1988
2406
|
/** Set when the saved prediction could not be pushed to the Gist. */
|
|
@@ -2027,6 +2445,8 @@ export interface CommentsOutput {
|
|
|
2027
2445
|
export interface PostOutput {
|
|
2028
2446
|
commentUrl: string;
|
|
2029
2447
|
url: string;
|
|
2448
|
+
/** Posted with `--allow-script-mismatch` over a script mismatch (#1909). */
|
|
2449
|
+
scriptMismatchWarning?: string;
|
|
2030
2450
|
}
|
|
2031
2451
|
/** Output of the claim command */
|
|
2032
2452
|
export interface ClaimOutput {
|
|
@@ -2040,6 +2460,8 @@ export interface ClaimOutput {
|
|
|
2040
2460
|
* runs will not monitor it. Absent on success.
|
|
2041
2461
|
*/
|
|
2042
2462
|
stateSaveWarning?: string;
|
|
2463
|
+
/** Claimed with `--allow-script-mismatch` over a script mismatch (#1909). */
|
|
2464
|
+
scriptMismatchWarning?: string;
|
|
2043
2465
|
}
|
|
2044
2466
|
/** Info about a local git clone (#84) */
|
|
2045
2467
|
export interface LocalRepoInfo {
|