@oss-autopilot/core 0.58.0 → 0.60.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 +54 -0
- package/dist/cli.bundle.cjs +151 -108
- package/dist/commands/comments.d.ts +28 -0
- package/dist/commands/comments.js +28 -0
- package/dist/commands/config.d.ts +11 -0
- package/dist/commands/config.js +11 -0
- package/dist/commands/daily.d.ts +26 -2
- package/dist/commands/daily.js +26 -2
- package/dist/commands/detect-formatters.d.ts +11 -0
- package/dist/commands/detect-formatters.js +24 -0
- package/dist/commands/dismiss.d.ts +17 -0
- package/dist/commands/dismiss.js +17 -0
- package/dist/commands/index.d.ts +3 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/init.d.ts +8 -0
- package/dist/commands/init.js +8 -0
- package/dist/commands/move.d.ts +10 -0
- package/dist/commands/move.js +10 -0
- package/dist/commands/search.d.ts +18 -0
- package/dist/commands/search.js +18 -0
- package/dist/commands/setup.d.ts +17 -0
- package/dist/commands/setup.js +17 -0
- package/dist/commands/shelve.d.ts +16 -0
- package/dist/commands/shelve.js +16 -0
- package/dist/commands/startup.d.ts +16 -7
- package/dist/commands/startup.js +16 -7
- package/dist/commands/status.d.ts +8 -0
- package/dist/commands/status.js +8 -0
- package/dist/commands/track.d.ts +16 -0
- package/dist/commands/track.js +16 -0
- package/dist/commands/vet.d.ts +8 -0
- package/dist/commands/vet.js +8 -0
- package/dist/core/daily-logic.d.ts +60 -7
- package/dist/core/daily-logic.js +52 -7
- package/dist/core/formatter-detection.d.ts +61 -0
- package/dist/core/formatter-detection.js +360 -0
- package/dist/core/github.d.ts +25 -2
- package/dist/core/github.js +25 -2
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/issue-discovery.d.ts +46 -6
- package/dist/core/issue-discovery.js +46 -6
- package/dist/core/logger.d.ts +13 -0
- package/dist/core/logger.js +13 -0
- package/dist/core/pr-monitor.d.ts +43 -8
- package/dist/core/pr-monitor.js +43 -8
- package/dist/core/state-persistence.d.ts +1 -0
- package/dist/core/state-persistence.js +46 -84
- package/dist/core/state-schema.d.ts +539 -0
- package/dist/core/state-schema.js +214 -0
- package/dist/core/state.d.ts +167 -0
- package/dist/core/state.js +167 -0
- package/dist/core/types.d.ts +4 -318
- package/dist/core/types.js +7 -41
- package/dist/formatters/json.d.ts +5 -0
- package/package.json +8 -4
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for all types persisted in state.json.
|
|
3
|
+
*
|
|
4
|
+
* This file is the single source of truth for persisted type shapes.
|
|
5
|
+
* Types are inferred via `z.infer<>` at the bottom of this file and
|
|
6
|
+
* re-exported through types.ts.
|
|
7
|
+
*
|
|
8
|
+
* Schemas are defined bottom-up (leaf types first, composites last).
|
|
9
|
+
* Unknown keys are stripped by default (Zod 4 behavior).
|
|
10
|
+
*/
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
export declare const IssueStatusSchema: z.ZodEnum<{
|
|
13
|
+
candidate: "candidate";
|
|
14
|
+
claimed: "claimed";
|
|
15
|
+
in_progress: "in_progress";
|
|
16
|
+
pr_submitted: "pr_submitted";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const FetchedPRStatusSchema: z.ZodEnum<{
|
|
19
|
+
needs_addressing: "needs_addressing";
|
|
20
|
+
waiting_on_maintainer: "waiting_on_maintainer";
|
|
21
|
+
}>;
|
|
22
|
+
export declare const ProjectCategorySchema: z.ZodEnum<{
|
|
23
|
+
nonprofit: "nonprofit";
|
|
24
|
+
devtools: "devtools";
|
|
25
|
+
infrastructure: "infrastructure";
|
|
26
|
+
"web-frameworks": "web-frameworks";
|
|
27
|
+
"data-ml": "data-ml";
|
|
28
|
+
education: "education";
|
|
29
|
+
}>;
|
|
30
|
+
export declare const IssueScopeSchema: z.ZodEnum<{
|
|
31
|
+
advanced: "advanced";
|
|
32
|
+
beginner: "beginner";
|
|
33
|
+
intermediate: "intermediate";
|
|
34
|
+
}>;
|
|
35
|
+
export declare const StateEventTypeSchema: z.ZodEnum<{
|
|
36
|
+
pr_tracked: "pr_tracked";
|
|
37
|
+
pr_merged: "pr_merged";
|
|
38
|
+
pr_closed: "pr_closed";
|
|
39
|
+
pr_dormant: "pr_dormant";
|
|
40
|
+
daily_check: "daily_check";
|
|
41
|
+
comment_posted: "comment_posted";
|
|
42
|
+
}>;
|
|
43
|
+
export declare const RepoSignalsSchema: z.ZodObject<{
|
|
44
|
+
hasActiveMaintainers: z.ZodBoolean;
|
|
45
|
+
isResponsive: z.ZodBoolean;
|
|
46
|
+
hasHostileComments: z.ZodBoolean;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const RepoScoreSchema: z.ZodObject<{
|
|
49
|
+
repo: z.ZodString;
|
|
50
|
+
score: z.ZodNumber;
|
|
51
|
+
mergedPRCount: z.ZodNumber;
|
|
52
|
+
closedWithoutMergeCount: z.ZodNumber;
|
|
53
|
+
avgResponseDays: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
lastMergedAt: z.ZodOptional<z.ZodString>;
|
|
55
|
+
lastEvaluatedAt: z.ZodString;
|
|
56
|
+
signals: z.ZodObject<{
|
|
57
|
+
hasActiveMaintainers: z.ZodBoolean;
|
|
58
|
+
isResponsive: z.ZodBoolean;
|
|
59
|
+
hasHostileComments: z.ZodBoolean;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export declare const StateEventSchema: z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
type: z.ZodEnum<{
|
|
67
|
+
pr_tracked: "pr_tracked";
|
|
68
|
+
pr_merged: "pr_merged";
|
|
69
|
+
pr_closed: "pr_closed";
|
|
70
|
+
pr_dormant: "pr_dormant";
|
|
71
|
+
daily_check: "daily_check";
|
|
72
|
+
comment_posted: "comment_posted";
|
|
73
|
+
}>;
|
|
74
|
+
at: z.ZodString;
|
|
75
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const StoredMergedPRSchema: z.ZodObject<{
|
|
78
|
+
url: z.ZodString;
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
mergedAt: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export declare const StoredClosedPRSchema: z.ZodObject<{
|
|
83
|
+
url: z.ZodString;
|
|
84
|
+
title: z.ZodString;
|
|
85
|
+
closedAt: z.ZodString;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export declare const ContributionGuidelinesSchema: z.ZodObject<{
|
|
88
|
+
branchNamingConvention: z.ZodOptional<z.ZodString>;
|
|
89
|
+
commitMessageFormat: z.ZodOptional<z.ZodString>;
|
|
90
|
+
prTitleFormat: z.ZodOptional<z.ZodString>;
|
|
91
|
+
requiredChecks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
|
+
testFramework: z.ZodOptional<z.ZodString>;
|
|
93
|
+
testCoverageRequired: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
testFileNaming: z.ZodOptional<z.ZodString>;
|
|
95
|
+
linter: z.ZodOptional<z.ZodString>;
|
|
96
|
+
formatter: z.ZodOptional<z.ZodString>;
|
|
97
|
+
styleGuideUrl: z.ZodOptional<z.ZodString>;
|
|
98
|
+
issueClaimProcess: z.ZodOptional<z.ZodString>;
|
|
99
|
+
reviewProcess: z.ZodOptional<z.ZodString>;
|
|
100
|
+
claRequired: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
rawContent: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export declare const IssueVettingResultSchema: z.ZodObject<{
|
|
104
|
+
passedAllChecks: z.ZodBoolean;
|
|
105
|
+
checks: z.ZodObject<{
|
|
106
|
+
noExistingPR: z.ZodBoolean;
|
|
107
|
+
notClaimed: z.ZodBoolean;
|
|
108
|
+
projectActive: z.ZodBoolean;
|
|
109
|
+
clearRequirements: z.ZodBoolean;
|
|
110
|
+
contributionGuidelinesFound: z.ZodBoolean;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
contributionGuidelines: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
branchNamingConvention: z.ZodOptional<z.ZodString>;
|
|
114
|
+
commitMessageFormat: z.ZodOptional<z.ZodString>;
|
|
115
|
+
prTitleFormat: z.ZodOptional<z.ZodString>;
|
|
116
|
+
requiredChecks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
testFramework: z.ZodOptional<z.ZodString>;
|
|
118
|
+
testCoverageRequired: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
testFileNaming: z.ZodOptional<z.ZodString>;
|
|
120
|
+
linter: z.ZodOptional<z.ZodString>;
|
|
121
|
+
formatter: z.ZodOptional<z.ZodString>;
|
|
122
|
+
styleGuideUrl: z.ZodOptional<z.ZodString>;
|
|
123
|
+
issueClaimProcess: z.ZodOptional<z.ZodString>;
|
|
124
|
+
reviewProcess: z.ZodOptional<z.ZodString>;
|
|
125
|
+
claRequired: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
rawContent: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
notes: z.ZodArray<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
export declare const TrackedIssueSchema: z.ZodObject<{
|
|
131
|
+
id: z.ZodNumber;
|
|
132
|
+
url: z.ZodString;
|
|
133
|
+
repo: z.ZodString;
|
|
134
|
+
number: z.ZodNumber;
|
|
135
|
+
title: z.ZodString;
|
|
136
|
+
status: z.ZodEnum<{
|
|
137
|
+
candidate: "candidate";
|
|
138
|
+
claimed: "claimed";
|
|
139
|
+
in_progress: "in_progress";
|
|
140
|
+
pr_submitted: "pr_submitted";
|
|
141
|
+
}>;
|
|
142
|
+
labels: z.ZodArray<z.ZodString>;
|
|
143
|
+
createdAt: z.ZodString;
|
|
144
|
+
updatedAt: z.ZodString;
|
|
145
|
+
vetted: z.ZodBoolean;
|
|
146
|
+
vettingResult: z.ZodOptional<z.ZodObject<{
|
|
147
|
+
passedAllChecks: z.ZodBoolean;
|
|
148
|
+
checks: z.ZodObject<{
|
|
149
|
+
noExistingPR: z.ZodBoolean;
|
|
150
|
+
notClaimed: z.ZodBoolean;
|
|
151
|
+
projectActive: z.ZodBoolean;
|
|
152
|
+
clearRequirements: z.ZodBoolean;
|
|
153
|
+
contributionGuidelinesFound: z.ZodBoolean;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
contributionGuidelines: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
branchNamingConvention: z.ZodOptional<z.ZodString>;
|
|
157
|
+
commitMessageFormat: z.ZodOptional<z.ZodString>;
|
|
158
|
+
prTitleFormat: z.ZodOptional<z.ZodString>;
|
|
159
|
+
requiredChecks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
160
|
+
testFramework: z.ZodOptional<z.ZodString>;
|
|
161
|
+
testCoverageRequired: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
testFileNaming: z.ZodOptional<z.ZodString>;
|
|
163
|
+
linter: z.ZodOptional<z.ZodString>;
|
|
164
|
+
formatter: z.ZodOptional<z.ZodString>;
|
|
165
|
+
styleGuideUrl: z.ZodOptional<z.ZodString>;
|
|
166
|
+
issueClaimProcess: z.ZodOptional<z.ZodString>;
|
|
167
|
+
reviewProcess: z.ZodOptional<z.ZodString>;
|
|
168
|
+
claRequired: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
rawContent: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
notes: z.ZodArray<z.ZodString>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
export declare const ShelvedPRRefSchema: z.ZodObject<{
|
|
175
|
+
number: z.ZodNumber;
|
|
176
|
+
url: z.ZodString;
|
|
177
|
+
title: z.ZodString;
|
|
178
|
+
repo: z.ZodString;
|
|
179
|
+
daysSinceActivity: z.ZodNumber;
|
|
180
|
+
status: z.ZodEnum<{
|
|
181
|
+
needs_addressing: "needs_addressing";
|
|
182
|
+
waiting_on_maintainer: "waiting_on_maintainer";
|
|
183
|
+
}>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
export declare const StatusOverrideSchema: z.ZodObject<{
|
|
186
|
+
status: z.ZodEnum<{
|
|
187
|
+
needs_addressing: "needs_addressing";
|
|
188
|
+
waiting_on_maintainer: "waiting_on_maintainer";
|
|
189
|
+
}>;
|
|
190
|
+
setAt: z.ZodString;
|
|
191
|
+
lastActivityAt: z.ZodString;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
export declare const AgentConfigSchema: z.ZodObject<{
|
|
194
|
+
setupComplete: z.ZodDefault<z.ZodBoolean>;
|
|
195
|
+
setupCompletedAt: z.ZodOptional<z.ZodString>;
|
|
196
|
+
maxActivePRs: z.ZodDefault<z.ZodNumber>;
|
|
197
|
+
dormantThresholdDays: z.ZodDefault<z.ZodNumber>;
|
|
198
|
+
approachingDormantDays: z.ZodDefault<z.ZodNumber>;
|
|
199
|
+
maxIssueAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
200
|
+
languages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
201
|
+
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
202
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
203
|
+
advanced: "advanced";
|
|
204
|
+
beginner: "beginner";
|
|
205
|
+
intermediate: "intermediate";
|
|
206
|
+
}>>>;
|
|
207
|
+
excludeRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
208
|
+
excludeOrgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
209
|
+
trustedProjects: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
210
|
+
githubUsername: z.ZodDefault<z.ZodString>;
|
|
211
|
+
minRepoScoreThreshold: z.ZodDefault<z.ZodNumber>;
|
|
212
|
+
starredRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
213
|
+
starredReposLastFetched: z.ZodOptional<z.ZodString>;
|
|
214
|
+
showHealthCheck: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
squashByDefault: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"ask">]>>;
|
|
216
|
+
localRepoScanPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
217
|
+
minStars: z.ZodDefault<z.ZodNumber>;
|
|
218
|
+
includeDocIssues: z.ZodDefault<z.ZodBoolean>;
|
|
219
|
+
aiPolicyBlocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
220
|
+
shelvedPRUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
221
|
+
dismissedIssues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
222
|
+
statusOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
223
|
+
status: z.ZodEnum<{
|
|
224
|
+
needs_addressing: "needs_addressing";
|
|
225
|
+
waiting_on_maintainer: "waiting_on_maintainer";
|
|
226
|
+
}>;
|
|
227
|
+
setAt: z.ZodString;
|
|
228
|
+
lastActivityAt: z.ZodString;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
issueListPath: z.ZodOptional<z.ZodString>;
|
|
231
|
+
projectCategories: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
232
|
+
nonprofit: "nonprofit";
|
|
233
|
+
devtools: "devtools";
|
|
234
|
+
infrastructure: "infrastructure";
|
|
235
|
+
"web-frameworks": "web-frameworks";
|
|
236
|
+
"data-ml": "data-ml";
|
|
237
|
+
education: "education";
|
|
238
|
+
}>>>;
|
|
239
|
+
preferredOrgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
export declare const LocalRepoCacheSchema: z.ZodObject<{
|
|
242
|
+
repos: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
243
|
+
path: z.ZodString;
|
|
244
|
+
exists: z.ZodBoolean;
|
|
245
|
+
currentBranch: z.ZodNullable<z.ZodString>;
|
|
246
|
+
}, z.core.$strip>>;
|
|
247
|
+
scanPaths: z.ZodArray<z.ZodString>;
|
|
248
|
+
cachedAt: z.ZodString;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export declare const ClosedPRSchema: z.ZodObject<{
|
|
251
|
+
url: z.ZodString;
|
|
252
|
+
repo: z.ZodString;
|
|
253
|
+
number: z.ZodNumber;
|
|
254
|
+
title: z.ZodString;
|
|
255
|
+
closedAt: z.ZodString;
|
|
256
|
+
closedBy: z.ZodOptional<z.ZodString>;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
export declare const MergedPRSchema: z.ZodObject<{
|
|
259
|
+
url: z.ZodString;
|
|
260
|
+
repo: z.ZodString;
|
|
261
|
+
number: z.ZodNumber;
|
|
262
|
+
title: z.ZodString;
|
|
263
|
+
mergedAt: z.ZodString;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
export declare const DailyDigestSummarySchema: z.ZodObject<{
|
|
266
|
+
totalActivePRs: z.ZodNumber;
|
|
267
|
+
totalNeedingAttention: z.ZodNumber;
|
|
268
|
+
totalMergedAllTime: z.ZodNumber;
|
|
269
|
+
mergeRate: z.ZodNumber;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
export declare const DailyDigestSchema: z.ZodObject<{
|
|
272
|
+
generatedAt: z.ZodString;
|
|
273
|
+
openPRs: z.ZodArray<z.ZodAny>;
|
|
274
|
+
needsAddressingPRs: z.ZodArray<z.ZodAny>;
|
|
275
|
+
waitingOnMaintainerPRs: z.ZodArray<z.ZodAny>;
|
|
276
|
+
recentlyClosedPRs: z.ZodArray<z.ZodObject<{
|
|
277
|
+
url: z.ZodString;
|
|
278
|
+
repo: z.ZodString;
|
|
279
|
+
number: z.ZodNumber;
|
|
280
|
+
title: z.ZodString;
|
|
281
|
+
closedAt: z.ZodString;
|
|
282
|
+
closedBy: z.ZodOptional<z.ZodString>;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
recentlyMergedPRs: z.ZodArray<z.ZodObject<{
|
|
285
|
+
url: z.ZodString;
|
|
286
|
+
repo: z.ZodString;
|
|
287
|
+
number: z.ZodNumber;
|
|
288
|
+
title: z.ZodString;
|
|
289
|
+
mergedAt: z.ZodString;
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
|
+
shelvedPRs: z.ZodArray<z.ZodObject<{
|
|
292
|
+
number: z.ZodNumber;
|
|
293
|
+
url: z.ZodString;
|
|
294
|
+
title: z.ZodString;
|
|
295
|
+
repo: z.ZodString;
|
|
296
|
+
daysSinceActivity: z.ZodNumber;
|
|
297
|
+
status: z.ZodEnum<{
|
|
298
|
+
needs_addressing: "needs_addressing";
|
|
299
|
+
waiting_on_maintainer: "waiting_on_maintainer";
|
|
300
|
+
}>;
|
|
301
|
+
}, z.core.$strip>>;
|
|
302
|
+
autoUnshelvedPRs: z.ZodArray<z.ZodObject<{
|
|
303
|
+
number: z.ZodNumber;
|
|
304
|
+
url: z.ZodString;
|
|
305
|
+
title: z.ZodString;
|
|
306
|
+
repo: z.ZodString;
|
|
307
|
+
daysSinceActivity: z.ZodNumber;
|
|
308
|
+
status: z.ZodEnum<{
|
|
309
|
+
needs_addressing: "needs_addressing";
|
|
310
|
+
waiting_on_maintainer: "waiting_on_maintainer";
|
|
311
|
+
}>;
|
|
312
|
+
}, z.core.$strip>>;
|
|
313
|
+
summary: z.ZodObject<{
|
|
314
|
+
totalActivePRs: z.ZodNumber;
|
|
315
|
+
totalNeedingAttention: z.ZodNumber;
|
|
316
|
+
totalMergedAllTime: z.ZodNumber;
|
|
317
|
+
mergeRate: z.ZodNumber;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
}, z.core.$strip>;
|
|
320
|
+
export declare const AgentStateSchema: z.ZodObject<{
|
|
321
|
+
version: z.ZodLiteral<2>;
|
|
322
|
+
repoScores: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
323
|
+
repo: z.ZodString;
|
|
324
|
+
score: z.ZodNumber;
|
|
325
|
+
mergedPRCount: z.ZodNumber;
|
|
326
|
+
closedWithoutMergeCount: z.ZodNumber;
|
|
327
|
+
avgResponseDays: z.ZodNullable<z.ZodNumber>;
|
|
328
|
+
lastMergedAt: z.ZodOptional<z.ZodString>;
|
|
329
|
+
lastEvaluatedAt: z.ZodString;
|
|
330
|
+
signals: z.ZodObject<{
|
|
331
|
+
hasActiveMaintainers: z.ZodBoolean;
|
|
332
|
+
isResponsive: z.ZodBoolean;
|
|
333
|
+
hasHostileComments: z.ZodBoolean;
|
|
334
|
+
}, z.core.$strip>;
|
|
335
|
+
stargazersCount: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
+
}, z.core.$strip>>>;
|
|
338
|
+
config: z.ZodDefault<z.ZodObject<{
|
|
339
|
+
setupComplete: z.ZodDefault<z.ZodBoolean>;
|
|
340
|
+
setupCompletedAt: z.ZodOptional<z.ZodString>;
|
|
341
|
+
maxActivePRs: z.ZodDefault<z.ZodNumber>;
|
|
342
|
+
dormantThresholdDays: z.ZodDefault<z.ZodNumber>;
|
|
343
|
+
approachingDormantDays: z.ZodDefault<z.ZodNumber>;
|
|
344
|
+
maxIssueAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
345
|
+
languages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
346
|
+
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
347
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
348
|
+
advanced: "advanced";
|
|
349
|
+
beginner: "beginner";
|
|
350
|
+
intermediate: "intermediate";
|
|
351
|
+
}>>>;
|
|
352
|
+
excludeRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
353
|
+
excludeOrgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
354
|
+
trustedProjects: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
355
|
+
githubUsername: z.ZodDefault<z.ZodString>;
|
|
356
|
+
minRepoScoreThreshold: z.ZodDefault<z.ZodNumber>;
|
|
357
|
+
starredRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
358
|
+
starredReposLastFetched: z.ZodOptional<z.ZodString>;
|
|
359
|
+
showHealthCheck: z.ZodOptional<z.ZodBoolean>;
|
|
360
|
+
squashByDefault: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"ask">]>>;
|
|
361
|
+
localRepoScanPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
362
|
+
minStars: z.ZodDefault<z.ZodNumber>;
|
|
363
|
+
includeDocIssues: z.ZodDefault<z.ZodBoolean>;
|
|
364
|
+
aiPolicyBlocklist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
365
|
+
shelvedPRUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
366
|
+
dismissedIssues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
367
|
+
statusOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
368
|
+
status: z.ZodEnum<{
|
|
369
|
+
needs_addressing: "needs_addressing";
|
|
370
|
+
waiting_on_maintainer: "waiting_on_maintainer";
|
|
371
|
+
}>;
|
|
372
|
+
setAt: z.ZodString;
|
|
373
|
+
lastActivityAt: z.ZodString;
|
|
374
|
+
}, z.core.$strip>>>;
|
|
375
|
+
issueListPath: z.ZodOptional<z.ZodString>;
|
|
376
|
+
projectCategories: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
377
|
+
nonprofit: "nonprofit";
|
|
378
|
+
devtools: "devtools";
|
|
379
|
+
infrastructure: "infrastructure";
|
|
380
|
+
"web-frameworks": "web-frameworks";
|
|
381
|
+
"data-ml": "data-ml";
|
|
382
|
+
education: "education";
|
|
383
|
+
}>>>;
|
|
384
|
+
preferredOrgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
387
|
+
id: z.ZodString;
|
|
388
|
+
type: z.ZodEnum<{
|
|
389
|
+
pr_tracked: "pr_tracked";
|
|
390
|
+
pr_merged: "pr_merged";
|
|
391
|
+
pr_closed: "pr_closed";
|
|
392
|
+
pr_dormant: "pr_dormant";
|
|
393
|
+
daily_check: "daily_check";
|
|
394
|
+
comment_posted: "comment_posted";
|
|
395
|
+
}>;
|
|
396
|
+
at: z.ZodString;
|
|
397
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
398
|
+
}, z.core.$strip>>>;
|
|
399
|
+
lastRunAt: z.ZodDefault<z.ZodString>;
|
|
400
|
+
lastDigestAt: z.ZodOptional<z.ZodString>;
|
|
401
|
+
lastDigest: z.ZodOptional<z.ZodObject<{
|
|
402
|
+
generatedAt: z.ZodString;
|
|
403
|
+
openPRs: z.ZodArray<z.ZodAny>;
|
|
404
|
+
needsAddressingPRs: z.ZodArray<z.ZodAny>;
|
|
405
|
+
waitingOnMaintainerPRs: z.ZodArray<z.ZodAny>;
|
|
406
|
+
recentlyClosedPRs: z.ZodArray<z.ZodObject<{
|
|
407
|
+
url: z.ZodString;
|
|
408
|
+
repo: z.ZodString;
|
|
409
|
+
number: z.ZodNumber;
|
|
410
|
+
title: z.ZodString;
|
|
411
|
+
closedAt: z.ZodString;
|
|
412
|
+
closedBy: z.ZodOptional<z.ZodString>;
|
|
413
|
+
}, z.core.$strip>>;
|
|
414
|
+
recentlyMergedPRs: z.ZodArray<z.ZodObject<{
|
|
415
|
+
url: z.ZodString;
|
|
416
|
+
repo: z.ZodString;
|
|
417
|
+
number: z.ZodNumber;
|
|
418
|
+
title: z.ZodString;
|
|
419
|
+
mergedAt: z.ZodString;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
shelvedPRs: z.ZodArray<z.ZodObject<{
|
|
422
|
+
number: z.ZodNumber;
|
|
423
|
+
url: z.ZodString;
|
|
424
|
+
title: z.ZodString;
|
|
425
|
+
repo: z.ZodString;
|
|
426
|
+
daysSinceActivity: z.ZodNumber;
|
|
427
|
+
status: z.ZodEnum<{
|
|
428
|
+
needs_addressing: "needs_addressing";
|
|
429
|
+
waiting_on_maintainer: "waiting_on_maintainer";
|
|
430
|
+
}>;
|
|
431
|
+
}, z.core.$strip>>;
|
|
432
|
+
autoUnshelvedPRs: z.ZodArray<z.ZodObject<{
|
|
433
|
+
number: z.ZodNumber;
|
|
434
|
+
url: z.ZodString;
|
|
435
|
+
title: z.ZodString;
|
|
436
|
+
repo: z.ZodString;
|
|
437
|
+
daysSinceActivity: z.ZodNumber;
|
|
438
|
+
status: z.ZodEnum<{
|
|
439
|
+
needs_addressing: "needs_addressing";
|
|
440
|
+
waiting_on_maintainer: "waiting_on_maintainer";
|
|
441
|
+
}>;
|
|
442
|
+
}, z.core.$strip>>;
|
|
443
|
+
summary: z.ZodObject<{
|
|
444
|
+
totalActivePRs: z.ZodNumber;
|
|
445
|
+
totalNeedingAttention: z.ZodNumber;
|
|
446
|
+
totalMergedAllTime: z.ZodNumber;
|
|
447
|
+
mergeRate: z.ZodNumber;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
monthlyMergedCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
451
|
+
monthlyClosedCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
452
|
+
monthlyOpenedCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
453
|
+
dailyActivityCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
454
|
+
localRepoCache: z.ZodOptional<z.ZodObject<{
|
|
455
|
+
repos: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
456
|
+
path: z.ZodString;
|
|
457
|
+
exists: z.ZodBoolean;
|
|
458
|
+
currentBranch: z.ZodNullable<z.ZodString>;
|
|
459
|
+
}, z.core.$strip>>;
|
|
460
|
+
scanPaths: z.ZodArray<z.ZodString>;
|
|
461
|
+
cachedAt: z.ZodString;
|
|
462
|
+
}, z.core.$strip>>;
|
|
463
|
+
mergedPRs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
464
|
+
url: z.ZodString;
|
|
465
|
+
title: z.ZodString;
|
|
466
|
+
mergedAt: z.ZodString;
|
|
467
|
+
}, z.core.$strip>>>;
|
|
468
|
+
closedPRs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
469
|
+
url: z.ZodString;
|
|
470
|
+
title: z.ZodString;
|
|
471
|
+
closedAt: z.ZodString;
|
|
472
|
+
}, z.core.$strip>>>;
|
|
473
|
+
activeIssues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
474
|
+
id: z.ZodNumber;
|
|
475
|
+
url: z.ZodString;
|
|
476
|
+
repo: z.ZodString;
|
|
477
|
+
number: z.ZodNumber;
|
|
478
|
+
title: z.ZodString;
|
|
479
|
+
status: z.ZodEnum<{
|
|
480
|
+
candidate: "candidate";
|
|
481
|
+
claimed: "claimed";
|
|
482
|
+
in_progress: "in_progress";
|
|
483
|
+
pr_submitted: "pr_submitted";
|
|
484
|
+
}>;
|
|
485
|
+
labels: z.ZodArray<z.ZodString>;
|
|
486
|
+
createdAt: z.ZodString;
|
|
487
|
+
updatedAt: z.ZodString;
|
|
488
|
+
vetted: z.ZodBoolean;
|
|
489
|
+
vettingResult: z.ZodOptional<z.ZodObject<{
|
|
490
|
+
passedAllChecks: z.ZodBoolean;
|
|
491
|
+
checks: z.ZodObject<{
|
|
492
|
+
noExistingPR: z.ZodBoolean;
|
|
493
|
+
notClaimed: z.ZodBoolean;
|
|
494
|
+
projectActive: z.ZodBoolean;
|
|
495
|
+
clearRequirements: z.ZodBoolean;
|
|
496
|
+
contributionGuidelinesFound: z.ZodBoolean;
|
|
497
|
+
}, z.core.$strip>;
|
|
498
|
+
contributionGuidelines: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
branchNamingConvention: z.ZodOptional<z.ZodString>;
|
|
500
|
+
commitMessageFormat: z.ZodOptional<z.ZodString>;
|
|
501
|
+
prTitleFormat: z.ZodOptional<z.ZodString>;
|
|
502
|
+
requiredChecks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
503
|
+
testFramework: z.ZodOptional<z.ZodString>;
|
|
504
|
+
testCoverageRequired: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
testFileNaming: z.ZodOptional<z.ZodString>;
|
|
506
|
+
linter: z.ZodOptional<z.ZodString>;
|
|
507
|
+
formatter: z.ZodOptional<z.ZodString>;
|
|
508
|
+
styleGuideUrl: z.ZodOptional<z.ZodString>;
|
|
509
|
+
issueClaimProcess: z.ZodOptional<z.ZodString>;
|
|
510
|
+
reviewProcess: z.ZodOptional<z.ZodString>;
|
|
511
|
+
claRequired: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
+
rawContent: z.ZodOptional<z.ZodString>;
|
|
513
|
+
}, z.core.$strip>>;
|
|
514
|
+
notes: z.ZodArray<z.ZodString>;
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
|
+
}, z.core.$strip>>>;
|
|
517
|
+
}, z.core.$strip>;
|
|
518
|
+
export type IssueStatus = z.infer<typeof IssueStatusSchema>;
|
|
519
|
+
export type FetchedPRStatus = z.infer<typeof FetchedPRStatusSchema>;
|
|
520
|
+
export type ProjectCategory = z.infer<typeof ProjectCategorySchema>;
|
|
521
|
+
export type IssueScope = z.infer<typeof IssueScopeSchema>;
|
|
522
|
+
export type StateEventType = z.infer<typeof StateEventTypeSchema>;
|
|
523
|
+
export type RepoSignals = z.infer<typeof RepoSignalsSchema>;
|
|
524
|
+
export type RepoScore = z.infer<typeof RepoScoreSchema>;
|
|
525
|
+
export type StateEvent = z.infer<typeof StateEventSchema>;
|
|
526
|
+
export type StoredMergedPR = z.infer<typeof StoredMergedPRSchema>;
|
|
527
|
+
export type StoredClosedPR = z.infer<typeof StoredClosedPRSchema>;
|
|
528
|
+
export type ContributionGuidelines = z.infer<typeof ContributionGuidelinesSchema>;
|
|
529
|
+
export type IssueVettingResult = z.infer<typeof IssueVettingResultSchema>;
|
|
530
|
+
export type TrackedIssue = z.infer<typeof TrackedIssueSchema>;
|
|
531
|
+
export type ShelvedPRRef = z.infer<typeof ShelvedPRRefSchema>;
|
|
532
|
+
export type StatusOverride = z.infer<typeof StatusOverrideSchema>;
|
|
533
|
+
export type AgentConfig = z.infer<typeof AgentConfigSchema>;
|
|
534
|
+
export type LocalRepoCache = z.infer<typeof LocalRepoCacheSchema>;
|
|
535
|
+
export type ClosedPR = z.infer<typeof ClosedPRSchema>;
|
|
536
|
+
export type MergedPR = z.infer<typeof MergedPRSchema>;
|
|
537
|
+
export type DailyDigestSummary = z.infer<typeof DailyDigestSummarySchema>;
|
|
538
|
+
export type DailyDigest = z.infer<typeof DailyDigestSchema>;
|
|
539
|
+
export type AgentState = z.infer<typeof AgentStateSchema>;
|