@oss-autopilot/core 3.42.4 → 3.43.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 +272 -25
- package/dist/cli.bundle.cjs +183 -154
- package/dist/commands/check-integration.js +1 -0
- package/dist/commands/cleanup.d.ts +76 -0
- package/dist/commands/cleanup.js +269 -0
- package/dist/commands/comments.d.ts +6 -0
- package/dist/commands/comments.js +6 -2
- package/dist/commands/config.js +37 -5
- 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 +122 -0
- package/dist/commands/daily-ledger.js +225 -0
- package/dist/commands/daily-recent-prs.d.ts +26 -0
- package/dist/commands/daily-recent-prs.js +55 -0
- package/dist/commands/daily.d.ts +2 -1
- package/dist/commands/daily.js +59 -89
- package/dist/commands/dashboard-cache.d.ts +2 -0
- package/dist/commands/dashboard-cache.js +33 -8
- package/dist/commands/dashboard-data.js +71 -36
- package/dist/commands/dashboard-gist-sync.js +3 -1
- package/dist/commands/dashboard-lifecycle.js +1 -1
- package/dist/commands/dashboard-process.d.ts +14 -1
- package/dist/commands/dashboard-process.js +46 -7
- package/dist/commands/dashboard-server.js +89 -23
- package/dist/commands/detect-formatters.js +1 -0
- package/dist/commands/dismiss.js +5 -2
- package/dist/commands/doctor.d.ts +15 -1
- package/dist/commands/doctor.js +73 -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/guidelines.d.ts +23 -1
- package/dist/commands/guidelines.js +49 -4
- package/dist/commands/index.d.ts +24 -4
- package/dist/commands/index.js +15 -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 +13 -8
- package/dist/commands/overnight-push-prep.js +106 -34
- 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 +86 -0
- package/dist/commands/policy.js +263 -0
- package/dist/commands/pr-preflight.d.ts +43 -0
- package/dist/commands/pr-preflight.js +294 -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 +46 -18
- package/dist/commands/skip-add.js +10 -1
- package/dist/commands/startup.d.ts +5 -3
- package/dist/commands/startup.js +65 -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 +1 -0
- package/dist/commands/strategy.js +1 -0
- package/dist/commands/vet-list.d.ts +6 -0
- package/dist/commands/vet-list.js +25 -0
- package/dist/commands/vet.d.ts +12 -0
- package/dist/commands/vet.js +118 -1
- 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/checklist-analysis.js +50 -12
- package/dist/core/ci-analysis.d.ts +7 -2
- package/dist/core/ci-analysis.js +76 -21
- package/dist/core/comment-utils.d.ts +1 -1
- package/dist/core/comment-utils.js +7 -1
- package/dist/core/commit-date.d.ts +19 -0
- package/dist/core/commit-date.js +17 -0
- package/dist/core/compliance-score.js +11 -7
- package/dist/core/config-registry.js +11 -5
- package/dist/core/contributing.d.ts +2 -3
- package/dist/core/contributing.js +2 -3
- package/dist/core/daily-logic.d.ts +27 -5
- package/dist/core/daily-logic.js +57 -19
- package/dist/core/errors.d.ts +37 -3
- package/dist/core/errors.js +54 -5
- 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 +97 -46
- package/dist/core/github-stats.d.ts +104 -16
- package/dist/core/github-stats.js +282 -97
- package/dist/core/http-cache.d.ts +0 -10
- package/dist/core/http-cache.js +0 -19
- package/dist/core/index.d.ts +12 -5
- package/dist/core/index.js +15 -5
- 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 +271 -0
- package/dist/core/merged-pr-notes.d.ts +2 -2
- 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.js +6 -2
- package/dist/core/pr-graphql.d.ts +37 -3
- package/dist/core/pr-graphql.js +73 -12
- package/dist/core/pr-monitor.d.ts +29 -12
- package/dist/core/pr-monitor.js +71 -23
- package/dist/core/pr-preflight.d.ts +113 -0
- package/dist/core/pr-preflight.js +364 -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/repo-policy.d.ts +105 -0
- package/dist/core/repo-policy.js +400 -0
- package/dist/core/repo-score-manager.d.ts +48 -0
- package/dist/core/repo-score-manager.js +111 -1
- package/dist/core/review-analysis.d.ts +34 -19
- package/dist/core/review-analysis.js +74 -19
- package/dist/core/reviewed-prs-fetch.js +11 -29
- package/dist/core/reviewed-prs.js +8 -15
- package/dist/core/stale-data.d.ts +41 -0
- package/dist/core/stale-data.js +115 -0
- package/dist/core/state-persistence.d.ts +62 -27
- package/dist/core/state-persistence.js +338 -117
- package/dist/core/state-schema.d.ts +113 -210
- package/dist/core/state-schema.js +165 -80
- package/dist/core/state.d.ts +60 -8
- package/dist/core/state.js +192 -46
- package/dist/core/status-determination.js +26 -8
- 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 +77 -42
- package/dist/core/urls.d.ts +9 -0
- package/dist/core/urls.js +18 -0
- package/dist/dashboard/assets/{chart-panel-DPKNBUts.js → chart-panel-C_C1lFTI.js} +1 -1
- package/dist/dashboard/assets/{index-B25bZOYX.js → index-B--H66Jk.js} +1 -1
- package/dist/dashboard/index.html +1 -1
- package/dist/formatters/json.d.ts +262 -6
- package/dist/formatters/json.js +77 -1
- package/package.json +1 -1
- 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
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* marked `.passthrough()` (#1831): see the note above AgentStateSchema.
|
|
11
11
|
*/
|
|
12
12
|
import { z } from 'zod';
|
|
13
|
+
/** Narrows an {@link openEnum} value to the values this release knows (#2005). */
|
|
14
|
+
export declare function isKnownValue<T extends string>(values: readonly T[], value: string): value is T;
|
|
13
15
|
/** Drops the `[k: string]: unknown` index signature `.passthrough()` adds to an inferred type. */
|
|
14
16
|
type KnownKeys<T> = {
|
|
15
17
|
[K in keyof T as string extends K ? never : K]: T[K];
|
|
@@ -146,58 +148,6 @@ export declare const StoredClosedPRSchema: z.ZodObject<{
|
|
|
146
148
|
commentsFetchedAt: z.ZodOptional<z.ZodString>;
|
|
147
149
|
learningsExtractedAt: z.ZodOptional<z.ZodString>;
|
|
148
150
|
}, z.core.$loose>;
|
|
149
|
-
export declare const AnalyzedIssueConversationSchema: z.ZodObject<{
|
|
150
|
-
url: z.ZodString;
|
|
151
|
-
repo: z.ZodString;
|
|
152
|
-
analyzedAt: z.ZodString;
|
|
153
|
-
}, z.core.$strip>;
|
|
154
|
-
/**
|
|
155
|
-
* One entry in a PR's follow-up history (#1277). Tier matches the
|
|
156
|
-
* cadence labels in `skills/pr-etiquette/SKILL.md` (light_check_in
|
|
157
|
-
* for 7-13 days, direct_check_in for 14-29 days, final_check_in for
|
|
158
|
-
* 30+ days). The `draftPath` is optional so an entry recorded from a
|
|
159
|
-
* direct `gh pr comment` (no draft) still validates.
|
|
160
|
-
*/
|
|
161
|
-
export declare const FollowUpEntrySchema: z.ZodObject<{
|
|
162
|
-
tier: z.ZodEnum<{
|
|
163
|
-
light_check_in: "light_check_in";
|
|
164
|
-
direct_check_in: "direct_check_in";
|
|
165
|
-
final_check_in: "final_check_in";
|
|
166
|
-
}>;
|
|
167
|
-
timestamp: z.ZodString;
|
|
168
|
-
draftPath: z.ZodOptional<z.ZodString>;
|
|
169
|
-
}, z.core.$strip>;
|
|
170
|
-
export type FollowUpEntry = z.infer<typeof FollowUpEntrySchema>;
|
|
171
|
-
/**
|
|
172
|
-
* Pause-point snapshot for resumable workflows (#1280). When the user
|
|
173
|
-
* picks "Done for now" inside `draft-first-workflow.md`,
|
|
174
|
-
* `work-through-issues.md`, or `pre-commit-review.md`, the workflow
|
|
175
|
-
* records its position here. The next `/oss` run consults this state
|
|
176
|
-
* and offers "Resume / Restart / Discard" instead of restarting from
|
|
177
|
-
* the beginning.
|
|
178
|
-
*
|
|
179
|
-
* `stepData` is intentionally typed as `Record<string, unknown>` so
|
|
180
|
-
* each workflow can persist whatever per-step context it needs to
|
|
181
|
-
* resume cleanly (compliance-gap skip list, last review pass count,
|
|
182
|
-
* etc.) without forcing a tagged-union schema in shared state.
|
|
183
|
-
*/
|
|
184
|
-
export declare const WorkflowStateSchema: z.ZodObject<{
|
|
185
|
-
workflowName: z.ZodEnum<{
|
|
186
|
-
"draft-first": "draft-first";
|
|
187
|
-
"work-through-issues": "work-through-issues";
|
|
188
|
-
"pre-commit-review": "pre-commit-review";
|
|
189
|
-
}>;
|
|
190
|
-
currentStep: z.ZodString;
|
|
191
|
-
branchName: z.ZodOptional<z.ZodString>;
|
|
192
|
-
issueContext: z.ZodOptional<z.ZodObject<{
|
|
193
|
-
title: z.ZodString;
|
|
194
|
-
url: z.ZodString;
|
|
195
|
-
}, z.core.$strip>>;
|
|
196
|
-
completedSteps: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
197
|
-
stepData: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
198
|
-
lastUpdatedAt: z.ZodString;
|
|
199
|
-
}, z.core.$strip>;
|
|
200
|
-
export type WorkflowState = z.infer<typeof WorkflowStateSchema>;
|
|
201
151
|
export declare const ContributionGuidelinesSchema: z.ZodObject<{
|
|
202
152
|
branchNamingConvention: z.ZodOptional<z.ZodString>;
|
|
203
153
|
commitMessageFormat: z.ZodOptional<z.ZodString>;
|
|
@@ -247,12 +197,7 @@ export declare const TrackedIssueSchema: z.ZodObject<{
|
|
|
247
197
|
repo: z.ZodString;
|
|
248
198
|
number: z.ZodNumber;
|
|
249
199
|
title: z.ZodString;
|
|
250
|
-
status: z.
|
|
251
|
-
candidate: "candidate";
|
|
252
|
-
claimed: "claimed";
|
|
253
|
-
in_progress: "in_progress";
|
|
254
|
-
pr_submitted: "pr_submitted";
|
|
255
|
-
}>;
|
|
200
|
+
status: z.ZodCustom<"candidate" | (string & {}) | "claimed" | "in_progress" | "pr_submitted", "candidate" | (string & {}) | "claimed" | "in_progress" | "pr_submitted">;
|
|
256
201
|
labels: z.ZodArray<z.ZodString>;
|
|
257
202
|
createdAt: z.ZodString;
|
|
258
203
|
updatedAt: z.ZodString;
|
|
@@ -291,26 +236,17 @@ export declare const ShelvedPRRefSchema: z.ZodObject<{
|
|
|
291
236
|
title: z.ZodString;
|
|
292
237
|
repo: z.ZodString;
|
|
293
238
|
daysSinceActivity: z.ZodNumber;
|
|
294
|
-
status: z.
|
|
295
|
-
needs_addressing: "needs_addressing";
|
|
296
|
-
waiting_on_maintainer: "waiting_on_maintainer";
|
|
297
|
-
}>;
|
|
239
|
+
status: z.ZodCustom<(string & {}) | "needs_addressing" | "waiting_on_maintainer", (string & {}) | "needs_addressing" | "waiting_on_maintainer">;
|
|
298
240
|
}, z.core.$strip>;
|
|
299
241
|
export declare const StatusOverrideSchema: z.ZodObject<{
|
|
300
|
-
status: z.
|
|
301
|
-
needs_addressing: "needs_addressing";
|
|
302
|
-
waiting_on_maintainer: "waiting_on_maintainer";
|
|
303
|
-
}>;
|
|
242
|
+
status: z.ZodCustom<(string & {}) | "needs_addressing" | "waiting_on_maintainer", (string & {}) | "needs_addressing" | "waiting_on_maintainer">;
|
|
304
243
|
setAt: z.ZodString;
|
|
305
244
|
lastActivityAt: z.ZodString;
|
|
306
245
|
}, z.core.$strip>;
|
|
307
246
|
export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
308
247
|
setupComplete: z.ZodDefault<z.ZodBoolean>;
|
|
309
248
|
setupCompletedAt: z.ZodOptional<z.ZodString>;
|
|
310
|
-
persistence: z.ZodDefault<z.
|
|
311
|
-
local: "local";
|
|
312
|
-
gist: "gist";
|
|
313
|
-
}>>;
|
|
249
|
+
persistence: z.ZodDefault<z.ZodCustom<(string & {}) | "local" | "gist", (string & {}) | "local" | "gist">>;
|
|
314
250
|
maxActivePRs: z.ZodDefault<z.ZodNumber>;
|
|
315
251
|
maxOpenPRsPerRepo: z.ZodDefault<z.ZodNumber>;
|
|
316
252
|
maxOpenPRsColdRepo: z.ZodDefault<z.ZodNumber>;
|
|
@@ -322,11 +258,7 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
322
258
|
complexIssues: z.ZodDefault<z.ZodCustom<"off" | (string & {}) | "warm", "off" | (string & {}) | "warm">>;
|
|
323
259
|
languages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
324
260
|
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
325
|
-
scope: z.ZodOptional<z.ZodArray<z.
|
|
326
|
-
advanced: "advanced";
|
|
327
|
-
beginner: "beginner";
|
|
328
|
-
intermediate: "intermediate";
|
|
329
|
-
}>>>;
|
|
261
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodCustom<"advanced" | (string & {}) | "beginner" | "intermediate", "advanced" | (string & {}) | "beginner" | "intermediate">>>;
|
|
330
262
|
excludeRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
331
263
|
excludeOrgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
332
264
|
untrackedOrgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -343,33 +275,22 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
343
275
|
includeDocIssues: z.ZodDefault<z.ZodBoolean>;
|
|
344
276
|
aiPolicyBlocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
345
277
|
shelvedPRUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
278
|
+
shelvedPRInfo: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
279
|
+
at: z.ZodString;
|
|
280
|
+
reasons: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
281
|
+
}, z.core.$strip>>>;
|
|
346
282
|
dismissedIssues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
347
283
|
dismissedPRHeads: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
348
284
|
statusOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
349
|
-
status: z.
|
|
350
|
-
needs_addressing: "needs_addressing";
|
|
351
|
-
waiting_on_maintainer: "waiting_on_maintainer";
|
|
352
|
-
}>;
|
|
285
|
+
status: z.ZodCustom<(string & {}) | "needs_addressing" | "waiting_on_maintainer", (string & {}) | "needs_addressing" | "waiting_on_maintainer">;
|
|
353
286
|
setAt: z.ZodString;
|
|
354
287
|
lastActivityAt: z.ZodString;
|
|
355
288
|
}, z.core.$strip>>>;
|
|
356
289
|
issueListPath: z.ZodOptional<z.ZodString>;
|
|
357
290
|
skippedIssuesPath: z.ZodOptional<z.ZodString>;
|
|
358
|
-
projectCategories: z.ZodDefault<z.ZodArray<z.
|
|
359
|
-
nonprofit: "nonprofit";
|
|
360
|
-
devtools: "devtools";
|
|
361
|
-
infrastructure: "infrastructure";
|
|
362
|
-
"web-frameworks": "web-frameworks";
|
|
363
|
-
"data-ml": "data-ml";
|
|
364
|
-
education: "education";
|
|
365
|
-
}>>>;
|
|
291
|
+
projectCategories: z.ZodDefault<z.ZodArray<z.ZodCustom<(string & {}) | "nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education", (string & {}) | "nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education">>>;
|
|
366
292
|
preferredOrgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
367
|
-
diffTool: z.ZodDefault<z.
|
|
368
|
-
inline: "inline";
|
|
369
|
-
custom: "custom";
|
|
370
|
-
sourcetree: "sourcetree";
|
|
371
|
-
vscode: "vscode";
|
|
372
|
-
}>>;
|
|
293
|
+
diffTool: z.ZodDefault<z.ZodCustom<"inline" | "custom" | (string & {}) | "sourcetree" | "vscode", "inline" | "custom" | (string & {}) | "sourcetree" | "vscode">>;
|
|
373
294
|
diffToolCustomCommand: z.ZodOptional<z.ZodString>;
|
|
374
295
|
autoExtractLearnings: z.ZodDefault<z.ZodBoolean>;
|
|
375
296
|
autoFormatBeforePush: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -381,7 +302,7 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
381
302
|
}, z.core.$loose>, z.ZodTransform<{
|
|
382
303
|
[x: string]: unknown;
|
|
383
304
|
setupComplete: boolean;
|
|
384
|
-
persistence: "local" | "gist";
|
|
305
|
+
persistence: (string & {}) | "local" | "gist";
|
|
385
306
|
maxActivePRs: number;
|
|
386
307
|
maxOpenPRsPerRepo: number;
|
|
387
308
|
maxOpenPRsColdRepo: number;
|
|
@@ -406,11 +327,15 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
406
327
|
includeDocIssues: boolean;
|
|
407
328
|
aiPolicyBlocklist: string[];
|
|
408
329
|
shelvedPRUrls: string[];
|
|
330
|
+
shelvedPRInfo: Record<string, {
|
|
331
|
+
at: string;
|
|
332
|
+
reasons?: string[] | undefined;
|
|
333
|
+
}>;
|
|
409
334
|
dismissedIssues: Record<string, string>;
|
|
410
335
|
dismissedPRHeads: Record<string, string>;
|
|
411
|
-
projectCategories: ("nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
336
|
+
projectCategories: ((string & {}) | "nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
412
337
|
preferredOrgs: string[];
|
|
413
|
-
diffTool: "inline" | "custom" | "sourcetree" | "vscode";
|
|
338
|
+
diffTool: "inline" | "custom" | (string & {}) | "sourcetree" | "vscode";
|
|
414
339
|
autoExtractLearnings: boolean;
|
|
415
340
|
autoFormatBeforePush: boolean;
|
|
416
341
|
trustOwnRepoWrites: boolean;
|
|
@@ -418,12 +343,12 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
418
343
|
slmTriageModel: string;
|
|
419
344
|
slmTriageHost: string;
|
|
420
345
|
setupCompletedAt?: string | undefined;
|
|
421
|
-
scope?: ("advanced" | "beginner" | "intermediate")[] | undefined;
|
|
346
|
+
scope?: ("advanced" | (string & {}) | "beginner" | "intermediate")[] | undefined;
|
|
422
347
|
excludeOrgs?: string[] | undefined;
|
|
423
348
|
starredReposLastFetched?: string | undefined;
|
|
424
349
|
localRepoScanPaths?: string[] | undefined;
|
|
425
350
|
statusOverrides?: Record<string, {
|
|
426
|
-
status: "needs_addressing" | "waiting_on_maintainer";
|
|
351
|
+
status: (string & {}) | "needs_addressing" | "waiting_on_maintainer";
|
|
427
352
|
setAt: string;
|
|
428
353
|
lastActivityAt: string;
|
|
429
354
|
}> | undefined;
|
|
@@ -434,7 +359,7 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
434
359
|
}, {
|
|
435
360
|
[x: string]: unknown;
|
|
436
361
|
setupComplete: boolean;
|
|
437
|
-
persistence: "local" | "gist";
|
|
362
|
+
persistence: (string & {}) | "local" | "gist";
|
|
438
363
|
maxActivePRs: number;
|
|
439
364
|
maxOpenPRsPerRepo: number;
|
|
440
365
|
maxOpenPRsColdRepo: number;
|
|
@@ -459,11 +384,15 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
459
384
|
includeDocIssues: boolean;
|
|
460
385
|
aiPolicyBlocklist: string[];
|
|
461
386
|
shelvedPRUrls: string[];
|
|
387
|
+
shelvedPRInfo: Record<string, {
|
|
388
|
+
at: string;
|
|
389
|
+
reasons?: string[] | undefined;
|
|
390
|
+
}>;
|
|
462
391
|
dismissedIssues: Record<string, string>;
|
|
463
392
|
dismissedPRHeads: Record<string, string>;
|
|
464
|
-
projectCategories: ("nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
393
|
+
projectCategories: ((string & {}) | "nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
465
394
|
preferredOrgs: string[];
|
|
466
|
-
diffTool: "inline" | "custom" | "sourcetree" | "vscode";
|
|
395
|
+
diffTool: "inline" | "custom" | (string & {}) | "sourcetree" | "vscode";
|
|
467
396
|
autoExtractLearnings: boolean;
|
|
468
397
|
autoFormatBeforePush: boolean;
|
|
469
398
|
trustOwnRepoWrites: boolean;
|
|
@@ -471,12 +400,12 @@ export declare const AgentConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
471
400
|
slmTriageModel: string;
|
|
472
401
|
slmTriageHost: string;
|
|
473
402
|
setupCompletedAt?: string | undefined;
|
|
474
|
-
scope?: ("advanced" | "beginner" | "intermediate")[] | undefined;
|
|
403
|
+
scope?: ("advanced" | (string & {}) | "beginner" | "intermediate")[] | undefined;
|
|
475
404
|
excludeOrgs?: string[] | undefined;
|
|
476
405
|
starredReposLastFetched?: string | undefined;
|
|
477
406
|
localRepoScanPaths?: string[] | undefined;
|
|
478
407
|
statusOverrides?: Record<string, {
|
|
479
|
-
status: "needs_addressing" | "waiting_on_maintainer";
|
|
408
|
+
status: (string & {}) | "needs_addressing" | "waiting_on_maintainer";
|
|
480
409
|
setAt: string;
|
|
481
410
|
lastActivityAt: string;
|
|
482
411
|
}> | undefined;
|
|
@@ -532,10 +461,7 @@ export declare const FetchedPRSchema: z.ZodObject<{
|
|
|
532
461
|
url: z.ZodString;
|
|
533
462
|
repo: z.ZodString;
|
|
534
463
|
number: z.ZodNumber;
|
|
535
|
-
status: z.
|
|
536
|
-
needs_addressing: "needs_addressing";
|
|
537
|
-
waiting_on_maintainer: "waiting_on_maintainer";
|
|
538
|
-
}>;
|
|
464
|
+
status: z.ZodCustom<(string & {}) | "needs_addressing" | "waiting_on_maintainer", (string & {}) | "needs_addressing" | "waiting_on_maintainer">;
|
|
539
465
|
}, z.core.$loose>;
|
|
540
466
|
export declare const DailyDigestSchema: z.ZodPreprocess<z.ZodObject<{
|
|
541
467
|
generatedAt: z.ZodString;
|
|
@@ -567,10 +493,7 @@ export declare const DailyDigestSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
567
493
|
title: z.ZodString;
|
|
568
494
|
repo: z.ZodString;
|
|
569
495
|
daysSinceActivity: z.ZodNumber;
|
|
570
|
-
status: z.
|
|
571
|
-
needs_addressing: "needs_addressing";
|
|
572
|
-
waiting_on_maintainer: "waiting_on_maintainer";
|
|
573
|
-
}>;
|
|
496
|
+
status: z.ZodCustom<(string & {}) | "needs_addressing" | "waiting_on_maintainer", (string & {}) | "needs_addressing" | "waiting_on_maintainer">;
|
|
574
497
|
}, z.core.$strip>>;
|
|
575
498
|
autoUnshelvedPRs: z.ZodArray<z.ZodObject<{
|
|
576
499
|
number: z.ZodNumber;
|
|
@@ -578,10 +501,7 @@ export declare const DailyDigestSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
578
501
|
title: z.ZodString;
|
|
579
502
|
repo: z.ZodString;
|
|
580
503
|
daysSinceActivity: z.ZodNumber;
|
|
581
|
-
status: z.
|
|
582
|
-
needs_addressing: "needs_addressing";
|
|
583
|
-
waiting_on_maintainer: "waiting_on_maintainer";
|
|
584
|
-
}>;
|
|
504
|
+
status: z.ZodCustom<(string & {}) | "needs_addressing" | "waiting_on_maintainer", (string & {}) | "needs_addressing" | "waiting_on_maintainer">;
|
|
585
505
|
}, z.core.$strip>>;
|
|
586
506
|
summary: z.ZodObject<{
|
|
587
507
|
totalActivePRs: z.ZodNumber;
|
|
@@ -629,10 +549,7 @@ export declare const OvernightPreparedSchema: z.ZodObject<{
|
|
|
629
549
|
export declare const OvernightImplementAttemptSchema: z.ZodObject<{
|
|
630
550
|
url: z.ZodString;
|
|
631
551
|
attemptedAt: z.ZodString;
|
|
632
|
-
outcome: z.
|
|
633
|
-
blocked: "blocked";
|
|
634
|
-
prepared: "prepared";
|
|
635
|
-
}>;
|
|
552
|
+
outcome: z.ZodCustom<"blocked" | (string & {}) | "prepared", "blocked" | (string & {}) | "prepared">;
|
|
636
553
|
note: z.ZodOptional<z.ZodString>;
|
|
637
554
|
}, z.core.$loose>;
|
|
638
555
|
export declare const OvernightRecordSchema: z.ZodObject<{
|
|
@@ -655,10 +572,7 @@ export declare const OvernightRecordSchema: z.ZodObject<{
|
|
|
655
572
|
implementAttempts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
656
573
|
url: z.ZodString;
|
|
657
574
|
attemptedAt: z.ZodString;
|
|
658
|
-
outcome: z.
|
|
659
|
-
blocked: "blocked";
|
|
660
|
-
prepared: "prepared";
|
|
661
|
-
}>;
|
|
575
|
+
outcome: z.ZodCustom<"blocked" | (string & {}) | "prepared", "blocked" | (string & {}) | "prepared">;
|
|
662
576
|
note: z.ZodOptional<z.ZodString>;
|
|
663
577
|
}, z.core.$loose>>>;
|
|
664
578
|
}, z.core.$loose>;
|
|
@@ -712,10 +626,50 @@ export declare function malformedWorkClaimCount(raw: unknown, parsed: {
|
|
|
712
626
|
* kept (root, config, repoScores, the outcome ledger and pick snapshots,
|
|
713
627
|
* lastOvernight, searchRotation) are `.passthrough()`; schemas regenerated on
|
|
714
628
|
* every run (lastDigest) or rarely extended still strip. Persisted enums that
|
|
715
|
-
* grow (closeReason, pick source) accept unknown strings via {@link openEnum}.
|
|
629
|
+
* grow (closeReason, pick source, statuses, config modes; #2005) accept unknown strings via {@link openEnum}.
|
|
716
630
|
* Inferred types drop the passthrough index signature ({@link KnownKeys}) so a
|
|
717
631
|
* misspelled key still fails to compile.
|
|
632
|
+
*
|
|
633
|
+
* Retired root fields are dropped from the schema, not stripped: passthrough
|
|
634
|
+
* keeps an older client's `analyzedIssueConversations`, `prFollowUpHistory`
|
|
635
|
+
* and `workflowState` verbatim (#1948), so that client still parses its own data.
|
|
718
636
|
*/
|
|
637
|
+
/** One user approval of a repo's stored guidelines text (#1929). */
|
|
638
|
+
export declare const GuidelinesReviewSchema: z.ZodObject<{
|
|
639
|
+
reviewedAt: z.ZodString;
|
|
640
|
+
sha256: z.ZodString;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
/** Longest quoted source line or disclosure text a repo policy keeps (#1953): the text is from other people's repos. */
|
|
643
|
+
export declare const POLICY_QUOTE_MAX = 200;
|
|
644
|
+
export declare const RepoPolicySchema: z.ZodObject<{
|
|
645
|
+
aiPolicy: z.ZodEnum<{
|
|
646
|
+
unknown: "unknown";
|
|
647
|
+
allowed: "allowed";
|
|
648
|
+
"disclosure-required": "disclosure-required";
|
|
649
|
+
banned: "banned";
|
|
650
|
+
}>;
|
|
651
|
+
disclosureText: z.ZodOptional<z.ZodString>;
|
|
652
|
+
cla: z.ZodEnum<{
|
|
653
|
+
required: "required";
|
|
654
|
+
none: "none";
|
|
655
|
+
unknown: "unknown";
|
|
656
|
+
}>;
|
|
657
|
+
commitRules: z.ZodArray<z.ZodString>;
|
|
658
|
+
prGate: z.ZodEnum<{
|
|
659
|
+
none: "none";
|
|
660
|
+
unknown: "unknown";
|
|
661
|
+
"claim-first": "claim-first";
|
|
662
|
+
"maintainer-label": "maintainer-label";
|
|
663
|
+
"collaborators-only": "collaborators-only";
|
|
664
|
+
}>;
|
|
665
|
+
maxOpenAiPRs: z.ZodOptional<z.ZodNumber>;
|
|
666
|
+
source: z.ZodArray<z.ZodObject<{
|
|
667
|
+
file: z.ZodString;
|
|
668
|
+
quotedLine: z.ZodString;
|
|
669
|
+
}, z.core.$strip>>;
|
|
670
|
+
reviewedByUser: z.ZodBoolean;
|
|
671
|
+
updatedAt: z.ZodString;
|
|
672
|
+
}, z.core.$strip>;
|
|
719
673
|
export declare const AgentStateSchema: z.ZodObject<{
|
|
720
674
|
version: z.ZodLiteral<4>;
|
|
721
675
|
gistId: z.ZodOptional<z.ZodString>;
|
|
@@ -738,10 +692,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
738
692
|
config: z.ZodDefault<z.ZodPipe<z.ZodObject<{
|
|
739
693
|
setupComplete: z.ZodDefault<z.ZodBoolean>;
|
|
740
694
|
setupCompletedAt: z.ZodOptional<z.ZodString>;
|
|
741
|
-
persistence: z.ZodDefault<z.
|
|
742
|
-
local: "local";
|
|
743
|
-
gist: "gist";
|
|
744
|
-
}>>;
|
|
695
|
+
persistence: z.ZodDefault<z.ZodCustom<(string & {}) | "local" | "gist", (string & {}) | "local" | "gist">>;
|
|
745
696
|
maxActivePRs: z.ZodDefault<z.ZodNumber>;
|
|
746
697
|
maxOpenPRsPerRepo: z.ZodDefault<z.ZodNumber>;
|
|
747
698
|
maxOpenPRsColdRepo: z.ZodDefault<z.ZodNumber>;
|
|
@@ -753,11 +704,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
753
704
|
complexIssues: z.ZodDefault<z.ZodCustom<"off" | (string & {}) | "warm", "off" | (string & {}) | "warm">>;
|
|
754
705
|
languages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
755
706
|
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
756
|
-
scope: z.ZodOptional<z.ZodArray<z.
|
|
757
|
-
advanced: "advanced";
|
|
758
|
-
beginner: "beginner";
|
|
759
|
-
intermediate: "intermediate";
|
|
760
|
-
}>>>;
|
|
707
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodCustom<"advanced" | (string & {}) | "beginner" | "intermediate", "advanced" | (string & {}) | "beginner" | "intermediate">>>;
|
|
761
708
|
excludeRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
762
709
|
excludeOrgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
763
710
|
untrackedOrgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -774,33 +721,22 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
774
721
|
includeDocIssues: z.ZodDefault<z.ZodBoolean>;
|
|
775
722
|
aiPolicyBlocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
776
723
|
shelvedPRUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
724
|
+
shelvedPRInfo: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
725
|
+
at: z.ZodString;
|
|
726
|
+
reasons: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
727
|
+
}, z.core.$strip>>>;
|
|
777
728
|
dismissedIssues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
778
729
|
dismissedPRHeads: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
779
730
|
statusOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
780
|
-
status: z.
|
|
781
|
-
needs_addressing: "needs_addressing";
|
|
782
|
-
waiting_on_maintainer: "waiting_on_maintainer";
|
|
783
|
-
}>;
|
|
731
|
+
status: z.ZodCustom<(string & {}) | "needs_addressing" | "waiting_on_maintainer", (string & {}) | "needs_addressing" | "waiting_on_maintainer">;
|
|
784
732
|
setAt: z.ZodString;
|
|
785
733
|
lastActivityAt: z.ZodString;
|
|
786
734
|
}, z.core.$strip>>>;
|
|
787
735
|
issueListPath: z.ZodOptional<z.ZodString>;
|
|
788
736
|
skippedIssuesPath: z.ZodOptional<z.ZodString>;
|
|
789
|
-
projectCategories: z.ZodDefault<z.ZodArray<z.
|
|
790
|
-
nonprofit: "nonprofit";
|
|
791
|
-
devtools: "devtools";
|
|
792
|
-
infrastructure: "infrastructure";
|
|
793
|
-
"web-frameworks": "web-frameworks";
|
|
794
|
-
"data-ml": "data-ml";
|
|
795
|
-
education: "education";
|
|
796
|
-
}>>>;
|
|
737
|
+
projectCategories: z.ZodDefault<z.ZodArray<z.ZodCustom<(string & {}) | "nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education", (string & {}) | "nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education">>>;
|
|
797
738
|
preferredOrgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
798
|
-
diffTool: z.ZodDefault<z.
|
|
799
|
-
inline: "inline";
|
|
800
|
-
custom: "custom";
|
|
801
|
-
sourcetree: "sourcetree";
|
|
802
|
-
vscode: "vscode";
|
|
803
|
-
}>>;
|
|
739
|
+
diffTool: z.ZodDefault<z.ZodCustom<"inline" | "custom" | (string & {}) | "sourcetree" | "vscode", "inline" | "custom" | (string & {}) | "sourcetree" | "vscode">>;
|
|
804
740
|
diffToolCustomCommand: z.ZodOptional<z.ZodString>;
|
|
805
741
|
autoExtractLearnings: z.ZodDefault<z.ZodBoolean>;
|
|
806
742
|
autoFormatBeforePush: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -812,7 +748,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
812
748
|
}, z.core.$loose>, z.ZodTransform<{
|
|
813
749
|
[x: string]: unknown;
|
|
814
750
|
setupComplete: boolean;
|
|
815
|
-
persistence: "local" | "gist";
|
|
751
|
+
persistence: (string & {}) | "local" | "gist";
|
|
816
752
|
maxActivePRs: number;
|
|
817
753
|
maxOpenPRsPerRepo: number;
|
|
818
754
|
maxOpenPRsColdRepo: number;
|
|
@@ -837,11 +773,15 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
837
773
|
includeDocIssues: boolean;
|
|
838
774
|
aiPolicyBlocklist: string[];
|
|
839
775
|
shelvedPRUrls: string[];
|
|
776
|
+
shelvedPRInfo: Record<string, {
|
|
777
|
+
at: string;
|
|
778
|
+
reasons?: string[] | undefined;
|
|
779
|
+
}>;
|
|
840
780
|
dismissedIssues: Record<string, string>;
|
|
841
781
|
dismissedPRHeads: Record<string, string>;
|
|
842
|
-
projectCategories: ("nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
782
|
+
projectCategories: ((string & {}) | "nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
843
783
|
preferredOrgs: string[];
|
|
844
|
-
diffTool: "inline" | "custom" | "sourcetree" | "vscode";
|
|
784
|
+
diffTool: "inline" | "custom" | (string & {}) | "sourcetree" | "vscode";
|
|
845
785
|
autoExtractLearnings: boolean;
|
|
846
786
|
autoFormatBeforePush: boolean;
|
|
847
787
|
trustOwnRepoWrites: boolean;
|
|
@@ -849,12 +789,12 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
849
789
|
slmTriageModel: string;
|
|
850
790
|
slmTriageHost: string;
|
|
851
791
|
setupCompletedAt?: string | undefined;
|
|
852
|
-
scope?: ("advanced" | "beginner" | "intermediate")[] | undefined;
|
|
792
|
+
scope?: ("advanced" | (string & {}) | "beginner" | "intermediate")[] | undefined;
|
|
853
793
|
excludeOrgs?: string[] | undefined;
|
|
854
794
|
starredReposLastFetched?: string | undefined;
|
|
855
795
|
localRepoScanPaths?: string[] | undefined;
|
|
856
796
|
statusOverrides?: Record<string, {
|
|
857
|
-
status: "needs_addressing" | "waiting_on_maintainer";
|
|
797
|
+
status: (string & {}) | "needs_addressing" | "waiting_on_maintainer";
|
|
858
798
|
setAt: string;
|
|
859
799
|
lastActivityAt: string;
|
|
860
800
|
}> | undefined;
|
|
@@ -865,7 +805,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
865
805
|
}, {
|
|
866
806
|
[x: string]: unknown;
|
|
867
807
|
setupComplete: boolean;
|
|
868
|
-
persistence: "local" | "gist";
|
|
808
|
+
persistence: (string & {}) | "local" | "gist";
|
|
869
809
|
maxActivePRs: number;
|
|
870
810
|
maxOpenPRsPerRepo: number;
|
|
871
811
|
maxOpenPRsColdRepo: number;
|
|
@@ -890,11 +830,15 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
890
830
|
includeDocIssues: boolean;
|
|
891
831
|
aiPolicyBlocklist: string[];
|
|
892
832
|
shelvedPRUrls: string[];
|
|
833
|
+
shelvedPRInfo: Record<string, {
|
|
834
|
+
at: string;
|
|
835
|
+
reasons?: string[] | undefined;
|
|
836
|
+
}>;
|
|
893
837
|
dismissedIssues: Record<string, string>;
|
|
894
838
|
dismissedPRHeads: Record<string, string>;
|
|
895
|
-
projectCategories: ("nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
839
|
+
projectCategories: ((string & {}) | "nonprofit" | "devtools" | "infrastructure" | "web-frameworks" | "data-ml" | "education")[];
|
|
896
840
|
preferredOrgs: string[];
|
|
897
|
-
diffTool: "inline" | "custom" | "sourcetree" | "vscode";
|
|
841
|
+
diffTool: "inline" | "custom" | (string & {}) | "sourcetree" | "vscode";
|
|
898
842
|
autoExtractLearnings: boolean;
|
|
899
843
|
autoFormatBeforePush: boolean;
|
|
900
844
|
trustOwnRepoWrites: boolean;
|
|
@@ -902,12 +846,12 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
902
846
|
slmTriageModel: string;
|
|
903
847
|
slmTriageHost: string;
|
|
904
848
|
setupCompletedAt?: string | undefined;
|
|
905
|
-
scope?: ("advanced" | "beginner" | "intermediate")[] | undefined;
|
|
849
|
+
scope?: ("advanced" | (string & {}) | "beginner" | "intermediate")[] | undefined;
|
|
906
850
|
excludeOrgs?: string[] | undefined;
|
|
907
851
|
starredReposLastFetched?: string | undefined;
|
|
908
852
|
localRepoScanPaths?: string[] | undefined;
|
|
909
853
|
statusOverrides?: Record<string, {
|
|
910
|
-
status: "needs_addressing" | "waiting_on_maintainer";
|
|
854
|
+
status: (string & {}) | "needs_addressing" | "waiting_on_maintainer";
|
|
911
855
|
setAt: string;
|
|
912
856
|
lastActivityAt: string;
|
|
913
857
|
}> | undefined;
|
|
@@ -949,10 +893,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
949
893
|
title: z.ZodString;
|
|
950
894
|
repo: z.ZodString;
|
|
951
895
|
daysSinceActivity: z.ZodNumber;
|
|
952
|
-
status: z.
|
|
953
|
-
needs_addressing: "needs_addressing";
|
|
954
|
-
waiting_on_maintainer: "waiting_on_maintainer";
|
|
955
|
-
}>;
|
|
896
|
+
status: z.ZodCustom<(string & {}) | "needs_addressing" | "waiting_on_maintainer", (string & {}) | "needs_addressing" | "waiting_on_maintainer">;
|
|
956
897
|
}, z.core.$strip>>;
|
|
957
898
|
autoUnshelvedPRs: z.ZodArray<z.ZodObject<{
|
|
958
899
|
number: z.ZodNumber;
|
|
@@ -960,10 +901,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
960
901
|
title: z.ZodString;
|
|
961
902
|
repo: z.ZodString;
|
|
962
903
|
daysSinceActivity: z.ZodNumber;
|
|
963
|
-
status: z.
|
|
964
|
-
needs_addressing: "needs_addressing";
|
|
965
|
-
waiting_on_maintainer: "waiting_on_maintainer";
|
|
966
|
-
}>;
|
|
904
|
+
status: z.ZodCustom<(string & {}) | "needs_addressing" | "waiting_on_maintainer", (string & {}) | "needs_addressing" | "waiting_on_maintainer">;
|
|
967
905
|
}, z.core.$strip>>;
|
|
968
906
|
summary: z.ZodObject<{
|
|
969
907
|
totalActivePRs: z.ZodNumber;
|
|
@@ -1044,23 +982,13 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
1044
982
|
commentsFetchedAt: z.ZodOptional<z.ZodString>;
|
|
1045
983
|
learningsExtractedAt: z.ZodOptional<z.ZodString>;
|
|
1046
984
|
}, z.core.$loose>>>;
|
|
1047
|
-
analyzedIssueConversations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1048
|
-
url: z.ZodString;
|
|
1049
|
-
repo: z.ZodString;
|
|
1050
|
-
analyzedAt: z.ZodString;
|
|
1051
|
-
}, z.core.$strip>>>;
|
|
1052
985
|
activeIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1053
986
|
id: z.ZodNumber;
|
|
1054
987
|
url: z.ZodString;
|
|
1055
988
|
repo: z.ZodString;
|
|
1056
989
|
number: z.ZodNumber;
|
|
1057
990
|
title: z.ZodString;
|
|
1058
|
-
status: z.
|
|
1059
|
-
candidate: "candidate";
|
|
1060
|
-
claimed: "claimed";
|
|
1061
|
-
in_progress: "in_progress";
|
|
1062
|
-
pr_submitted: "pr_submitted";
|
|
1063
|
-
}>;
|
|
991
|
+
status: z.ZodCustom<"candidate" | (string & {}) | "claimed" | "in_progress" | "pr_submitted", "candidate" | (string & {}) | "claimed" | "in_progress" | "pr_submitted">;
|
|
1064
992
|
labels: z.ZodArray<z.ZodString>;
|
|
1065
993
|
createdAt: z.ZodString;
|
|
1066
994
|
updatedAt: z.ZodString;
|
|
@@ -1093,31 +1021,6 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
1093
1021
|
notes: z.ZodArray<z.ZodString>;
|
|
1094
1022
|
}, z.core.$strip>>;
|
|
1095
1023
|
}, z.core.$strip>>>;
|
|
1096
|
-
prFollowUpHistory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1097
|
-
tier: z.ZodEnum<{
|
|
1098
|
-
light_check_in: "light_check_in";
|
|
1099
|
-
direct_check_in: "direct_check_in";
|
|
1100
|
-
final_check_in: "final_check_in";
|
|
1101
|
-
}>;
|
|
1102
|
-
timestamp: z.ZodString;
|
|
1103
|
-
draftPath: z.ZodOptional<z.ZodString>;
|
|
1104
|
-
}, z.core.$strip>>>>;
|
|
1105
|
-
workflowState: z.ZodOptional<z.ZodObject<{
|
|
1106
|
-
workflowName: z.ZodEnum<{
|
|
1107
|
-
"draft-first": "draft-first";
|
|
1108
|
-
"work-through-issues": "work-through-issues";
|
|
1109
|
-
"pre-commit-review": "pre-commit-review";
|
|
1110
|
-
}>;
|
|
1111
|
-
currentStep: z.ZodString;
|
|
1112
|
-
branchName: z.ZodOptional<z.ZodString>;
|
|
1113
|
-
issueContext: z.ZodOptional<z.ZodObject<{
|
|
1114
|
-
title: z.ZodString;
|
|
1115
|
-
url: z.ZodString;
|
|
1116
|
-
}, z.core.$strip>>;
|
|
1117
|
-
completedSteps: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1118
|
-
stepData: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1119
|
-
lastUpdatedAt: z.ZodString;
|
|
1120
|
-
}, z.core.$strip>>;
|
|
1121
1024
|
searchSeen: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1122
1025
|
url: z.ZodString;
|
|
1123
1026
|
lastSeenAt: z.ZodString;
|
|
@@ -1157,10 +1060,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
1157
1060
|
implementAttempts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1158
1061
|
url: z.ZodString;
|
|
1159
1062
|
attemptedAt: z.ZodString;
|
|
1160
|
-
outcome: z.
|
|
1161
|
-
blocked: "blocked";
|
|
1162
|
-
prepared: "prepared";
|
|
1163
|
-
}>;
|
|
1063
|
+
outcome: z.ZodCustom<"blocked" | (string & {}) | "prepared", "blocked" | (string & {}) | "prepared">;
|
|
1164
1064
|
note: z.ZodOptional<z.ZodString>;
|
|
1165
1065
|
}, z.core.$loose>>>;
|
|
1166
1066
|
}, z.core.$loose>>;
|
|
@@ -1187,7 +1087,11 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
1187
1087
|
runId?: string | undefined;
|
|
1188
1088
|
finishedAt?: string | undefined;
|
|
1189
1089
|
}[], unknown[]>>;
|
|
1090
|
+
guidelinesReviews: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1091
|
+
repoPolicies: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1190
1092
|
}, z.core.$loose>;
|
|
1093
|
+
export type GuidelinesReview = z.infer<typeof GuidelinesReviewSchema>;
|
|
1094
|
+
export type RepoPolicy = z.infer<typeof RepoPolicySchema>;
|
|
1191
1095
|
export type IssueStatus = z.infer<typeof IssueStatusSchema>;
|
|
1192
1096
|
export type FetchedPRStatus = z.infer<typeof FetchedPRStatusSchema>;
|
|
1193
1097
|
export type ProjectCategory = z.infer<typeof ProjectCategorySchema>;
|
|
@@ -1206,7 +1110,6 @@ export type RepoSignals = z.infer<typeof RepoSignalsSchema>;
|
|
|
1206
1110
|
export type RepoScore = KnownKeys<z.infer<typeof RepoScoreSchema>>;
|
|
1207
1111
|
export type StoredMergedPR = KnownKeys<z.infer<typeof StoredMergedPRSchema>>;
|
|
1208
1112
|
export type StoredClosedPR = KnownKeys<z.infer<typeof StoredClosedPRSchema>>;
|
|
1209
|
-
export type AnalyzedIssueConversation = z.infer<typeof AnalyzedIssueConversationSchema>;
|
|
1210
1113
|
export type ContributionGuidelines = z.infer<typeof ContributionGuidelinesSchema>;
|
|
1211
1114
|
export type IssueVettingResult = z.infer<typeof IssueVettingResultSchema>;
|
|
1212
1115
|
export type TrackedIssue = z.infer<typeof TrackedIssueSchema>;
|