opencode-plugin-flow 4.1.10 → 4.1.12

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.
@@ -0,0 +1,123 @@
1
+ import { z } from "zod";
2
+ export type RuntimeResponse = Record<string, unknown>;
3
+ export declare const FlowPlanSaveSchema: z.ZodObject<{
4
+ goal: z.ZodOptional<z.ZodString>;
5
+ plan: z.ZodOptional<z.ZodObject<{
6
+ summary: z.ZodString;
7
+ overview: z.ZodString;
8
+ requirements: z.ZodDefault<z.ZodArray<z.ZodString>>;
9
+ decisions: z.ZodDefault<z.ZodArray<z.ZodString>>;
10
+ finalReviewPolicy: z.ZodOptional<z.ZodEnum<{
11
+ broad: "broad";
12
+ detailed: "detailed";
13
+ }>>;
14
+ features: z.ZodArray<z.ZodObject<{
15
+ summary: z.ZodString;
16
+ id: z.ZodString;
17
+ title: z.ZodString;
18
+ status: z.ZodOptional<z.ZodEnum<{
19
+ pending: "pending";
20
+ in_progress: "in_progress";
21
+ completed: "completed";
22
+ blocked: "blocked";
23
+ }>>;
24
+ targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
+ validation: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
+ }, z.core.$strict>>;
28
+ }, z.core.$strict>>;
29
+ }, z.core.$strict>;
30
+ export declare const FlowRunStartSchema: z.ZodObject<{
31
+ featureId: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strict>;
33
+ export declare const FlowFeatureResetSchema: z.ZodObject<{
34
+ featureId: z.ZodString;
35
+ }, z.core.$strict>;
36
+ export declare const FlowSessionCloseSchema: z.ZodObject<{
37
+ kind: z.ZodEnum<{
38
+ completed: "completed";
39
+ deferred: "deferred";
40
+ abandoned: "abandoned";
41
+ }>;
42
+ summary: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strict>;
44
+ export declare const FlowFeatureCompleteToolSchema: z.ZodObject<{
45
+ status: z.ZodEnum<{
46
+ ok: "ok";
47
+ needs_input: "needs_input";
48
+ }>;
49
+ featureId: z.ZodString;
50
+ summary: z.ZodString;
51
+ artifactsChanged: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
+ path: z.ZodString;
53
+ }, z.core.$strict>>>;
54
+ validationRun: z.ZodOptional<z.ZodArray<z.ZodObject<{
55
+ command: z.ZodString;
56
+ status: z.ZodEnum<{
57
+ passed: "passed";
58
+ failed: "failed";
59
+ }>;
60
+ summary: z.ZodString;
61
+ }, z.core.$strict>>>;
62
+ validationScope: z.ZodOptional<z.ZodEnum<{
63
+ targeted: "targeted";
64
+ broad: "broad";
65
+ }>>;
66
+ featureReview: z.ZodOptional<z.ZodObject<{
67
+ status: z.ZodEnum<{
68
+ passed: "passed";
69
+ failed: "failed";
70
+ }>;
71
+ summary: z.ZodString;
72
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
73
+ summary: z.ZodString;
74
+ severity: z.ZodDefault<z.ZodEnum<{
75
+ blocking: "blocking";
76
+ advisory: "advisory";
77
+ }>>;
78
+ }, z.core.$strict>>>;
79
+ }, z.core.$strict>>;
80
+ finalReview: z.ZodOptional<z.ZodObject<{
81
+ status: z.ZodEnum<{
82
+ passed: "passed";
83
+ failed: "failed";
84
+ }>;
85
+ summary: z.ZodString;
86
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
87
+ summary: z.ZodString;
88
+ severity: z.ZodDefault<z.ZodEnum<{
89
+ blocking: "blocking";
90
+ advisory: "advisory";
91
+ }>>;
92
+ }, z.core.$strict>>>;
93
+ reviewDepth: z.ZodEnum<{
94
+ broad: "broad";
95
+ detailed: "detailed";
96
+ }>;
97
+ }, z.core.$strict>>;
98
+ outcome: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
99
+ kind: z.ZodDefault<z.ZodEnum<{
100
+ completed: "completed";
101
+ blocked: "blocked";
102
+ needs_input: "needs_input";
103
+ replan_required: "replan_required";
104
+ }>>;
105
+ summary: z.ZodOptional<z.ZodString>;
106
+ resolutionHint: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ kind: z.ZodDefault<z.ZodEnum<{
109
+ blocked: "blocked";
110
+ needs_input: "needs_input";
111
+ replan_required: "replan_required";
112
+ }>>;
113
+ summary: z.ZodString;
114
+ resolutionHint: z.ZodOptional<z.ZodString>;
115
+ }, z.core.$strict>]>>;
116
+ }, z.core.$strict>;
117
+ export declare function flowStatus(worktree: string): Promise<RuntimeResponse>;
118
+ export declare function flowPlanSave(worktree: string, input: unknown): Promise<RuntimeResponse>;
119
+ export declare function flowPlanApprove(worktree: string): Promise<RuntimeResponse>;
120
+ export declare function flowRunStart(worktree: string, input: unknown): Promise<RuntimeResponse>;
121
+ export declare function flowFeatureComplete(worktree: string, input: unknown): Promise<RuntimeResponse>;
122
+ export declare function flowFeatureReset(worktree: string, input: unknown): Promise<RuntimeResponse>;
123
+ export declare function flowSessionClose(worktree: string, input: unknown): Promise<RuntimeResponse>;
@@ -0,0 +1,9 @@
1
+ type StrictJsonObjectParseResult = {
2
+ ok: true;
3
+ value: Record<string, unknown>;
4
+ } | {
5
+ ok: false;
6
+ error: string;
7
+ };
8
+ export declare function parseStrictJsonObject(raw: string, label: string): StrictJsonObjectParseResult;
9
+ export {};
@@ -0,0 +1,490 @@
1
+ import { z } from "zod";
2
+ export declare const FEATURE_ID_PATTERN: RegExp;
3
+ export declare const FEATURE_ID_MESSAGE = "Feature ids must be lowercase kebab-case";
4
+ export declare const FeatureStatusSchema: z.ZodEnum<{
5
+ pending: "pending";
6
+ in_progress: "in_progress";
7
+ completed: "completed";
8
+ blocked: "blocked";
9
+ }>;
10
+ export declare const SessionStatusSchema: z.ZodEnum<{
11
+ completed: "completed";
12
+ blocked: "blocked";
13
+ planning: "planning";
14
+ ready: "ready";
15
+ running: "running";
16
+ }>;
17
+ export declare const ReviewStatusSchema: z.ZodEnum<{
18
+ passed: "passed";
19
+ failed: "failed";
20
+ }>;
21
+ export declare const ValidationStatusSchema: z.ZodEnum<{
22
+ passed: "passed";
23
+ failed: "failed";
24
+ }>;
25
+ export declare const ValidationScopeSchema: z.ZodEnum<{
26
+ targeted: "targeted";
27
+ broad: "broad";
28
+ }>;
29
+ export declare const FinalReviewPolicySchema: z.ZodEnum<{
30
+ broad: "broad";
31
+ detailed: "detailed";
32
+ }>;
33
+ export declare const ReviewFindingSchema: z.ZodObject<{
34
+ summary: z.ZodString;
35
+ severity: z.ZodDefault<z.ZodEnum<{
36
+ blocking: "blocking";
37
+ advisory: "advisory";
38
+ }>>;
39
+ }, z.core.$strict>;
40
+ export declare const ReviewSchema: z.ZodObject<{
41
+ status: z.ZodEnum<{
42
+ passed: "passed";
43
+ failed: "failed";
44
+ }>;
45
+ summary: z.ZodString;
46
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
47
+ summary: z.ZodString;
48
+ severity: z.ZodDefault<z.ZodEnum<{
49
+ blocking: "blocking";
50
+ advisory: "advisory";
51
+ }>>;
52
+ }, z.core.$strict>>>;
53
+ }, z.core.$strict>;
54
+ export declare const FinalReviewSchema: z.ZodObject<{
55
+ status: z.ZodEnum<{
56
+ passed: "passed";
57
+ failed: "failed";
58
+ }>;
59
+ summary: z.ZodString;
60
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
61
+ summary: z.ZodString;
62
+ severity: z.ZodDefault<z.ZodEnum<{
63
+ blocking: "blocking";
64
+ advisory: "advisory";
65
+ }>>;
66
+ }, z.core.$strict>>>;
67
+ reviewDepth: z.ZodEnum<{
68
+ broad: "broad";
69
+ detailed: "detailed";
70
+ }>;
71
+ }, z.core.$strict>;
72
+ export declare const ValidationRunSchema: z.ZodObject<{
73
+ command: z.ZodString;
74
+ status: z.ZodEnum<{
75
+ passed: "passed";
76
+ failed: "failed";
77
+ }>;
78
+ summary: z.ZodString;
79
+ }, z.core.$strict>;
80
+ export declare const ArtifactSchema: z.ZodObject<{
81
+ path: z.ZodString;
82
+ }, z.core.$strict>;
83
+ export declare const FeatureSchema: z.ZodObject<{
84
+ id: z.ZodString;
85
+ title: z.ZodString;
86
+ summary: z.ZodString;
87
+ status: z.ZodDefault<z.ZodEnum<{
88
+ pending: "pending";
89
+ in_progress: "in_progress";
90
+ completed: "completed";
91
+ blocked: "blocked";
92
+ }>>;
93
+ targets: z.ZodDefault<z.ZodArray<z.ZodString>>;
94
+ validation: z.ZodDefault<z.ZodArray<z.ZodString>>;
95
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
96
+ }, z.core.$strict>;
97
+ export declare const PlanSchema: z.ZodObject<{
98
+ summary: z.ZodString;
99
+ overview: z.ZodString;
100
+ requirements: z.ZodDefault<z.ZodArray<z.ZodString>>;
101
+ decisions: z.ZodDefault<z.ZodArray<z.ZodString>>;
102
+ finalReviewPolicy: z.ZodDefault<z.ZodEnum<{
103
+ broad: "broad";
104
+ detailed: "detailed";
105
+ }>>;
106
+ features: z.ZodArray<z.ZodObject<{
107
+ id: z.ZodString;
108
+ title: z.ZodString;
109
+ summary: z.ZodString;
110
+ status: z.ZodDefault<z.ZodEnum<{
111
+ pending: "pending";
112
+ in_progress: "in_progress";
113
+ completed: "completed";
114
+ blocked: "blocked";
115
+ }>>;
116
+ targets: z.ZodDefault<z.ZodArray<z.ZodString>>;
117
+ validation: z.ZodDefault<z.ZodArray<z.ZodString>>;
118
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
119
+ }, z.core.$strict>>;
120
+ }, z.core.$strict>;
121
+ export declare const PlanInputSchema: z.ZodObject<{
122
+ summary: z.ZodString;
123
+ overview: z.ZodString;
124
+ requirements: z.ZodDefault<z.ZodArray<z.ZodString>>;
125
+ decisions: z.ZodDefault<z.ZodArray<z.ZodString>>;
126
+ finalReviewPolicy: z.ZodOptional<z.ZodEnum<{
127
+ broad: "broad";
128
+ detailed: "detailed";
129
+ }>>;
130
+ features: z.ZodArray<z.ZodObject<{
131
+ summary: z.ZodString;
132
+ id: z.ZodString;
133
+ title: z.ZodString;
134
+ status: z.ZodOptional<z.ZodEnum<{
135
+ pending: "pending";
136
+ in_progress: "in_progress";
137
+ completed: "completed";
138
+ blocked: "blocked";
139
+ }>>;
140
+ targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
+ validation: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ }, z.core.$strict>>;
144
+ }, z.core.$strict>;
145
+ export declare const WorkerOutcomeSchema: z.ZodObject<{
146
+ kind: z.ZodDefault<z.ZodEnum<{
147
+ completed: "completed";
148
+ blocked: "blocked";
149
+ needs_input: "needs_input";
150
+ replan_required: "replan_required";
151
+ }>>;
152
+ summary: z.ZodOptional<z.ZodString>;
153
+ resolutionHint: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strict>;
155
+ export declare const NeedsInputOutcomeSchema: z.ZodObject<{
156
+ kind: z.ZodDefault<z.ZodEnum<{
157
+ blocked: "blocked";
158
+ needs_input: "needs_input";
159
+ replan_required: "replan_required";
160
+ }>>;
161
+ summary: z.ZodString;
162
+ resolutionHint: z.ZodOptional<z.ZodString>;
163
+ }, z.core.$strict>;
164
+ export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
165
+ status: z.ZodLiteral<"ok">;
166
+ featureId: z.ZodString;
167
+ summary: z.ZodString;
168
+ artifactsChanged: z.ZodDefault<z.ZodArray<z.ZodObject<{
169
+ path: z.ZodString;
170
+ }, z.core.$strict>>>;
171
+ validationRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
172
+ command: z.ZodString;
173
+ status: z.ZodEnum<{
174
+ passed: "passed";
175
+ failed: "failed";
176
+ }>;
177
+ summary: z.ZodString;
178
+ }, z.core.$strict>>>;
179
+ validationScope: z.ZodEnum<{
180
+ targeted: "targeted";
181
+ broad: "broad";
182
+ }>;
183
+ featureReview: z.ZodObject<{
184
+ status: z.ZodEnum<{
185
+ passed: "passed";
186
+ failed: "failed";
187
+ }>;
188
+ summary: z.ZodString;
189
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
190
+ summary: z.ZodString;
191
+ severity: z.ZodDefault<z.ZodEnum<{
192
+ blocking: "blocking";
193
+ advisory: "advisory";
194
+ }>>;
195
+ }, z.core.$strict>>>;
196
+ }, z.core.$strict>;
197
+ finalReview: z.ZodOptional<z.ZodObject<{
198
+ status: z.ZodEnum<{
199
+ passed: "passed";
200
+ failed: "failed";
201
+ }>;
202
+ summary: z.ZodString;
203
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
204
+ summary: z.ZodString;
205
+ severity: z.ZodDefault<z.ZodEnum<{
206
+ blocking: "blocking";
207
+ advisory: "advisory";
208
+ }>>;
209
+ }, z.core.$strict>>>;
210
+ reviewDepth: z.ZodEnum<{
211
+ broad: "broad";
212
+ detailed: "detailed";
213
+ }>;
214
+ }, z.core.$strict>>;
215
+ outcome: z.ZodOptional<z.ZodObject<{
216
+ kind: z.ZodDefault<z.ZodEnum<{
217
+ completed: "completed";
218
+ blocked: "blocked";
219
+ needs_input: "needs_input";
220
+ replan_required: "replan_required";
221
+ }>>;
222
+ summary: z.ZodOptional<z.ZodString>;
223
+ resolutionHint: z.ZodOptional<z.ZodString>;
224
+ }, z.core.$strict>>;
225
+ }, z.core.$strict>, z.ZodObject<{
226
+ status: z.ZodLiteral<"needs_input">;
227
+ featureId: z.ZodString;
228
+ summary: z.ZodString;
229
+ artifactsChanged: z.ZodDefault<z.ZodArray<z.ZodObject<{
230
+ path: z.ZodString;
231
+ }, z.core.$strict>>>;
232
+ validationRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
233
+ command: z.ZodString;
234
+ status: z.ZodEnum<{
235
+ passed: "passed";
236
+ failed: "failed";
237
+ }>;
238
+ summary: z.ZodString;
239
+ }, z.core.$strict>>>;
240
+ validationScope: z.ZodOptional<z.ZodEnum<{
241
+ targeted: "targeted";
242
+ broad: "broad";
243
+ }>>;
244
+ featureReview: z.ZodOptional<z.ZodObject<{
245
+ status: z.ZodEnum<{
246
+ passed: "passed";
247
+ failed: "failed";
248
+ }>;
249
+ summary: z.ZodString;
250
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
251
+ summary: z.ZodString;
252
+ severity: z.ZodDefault<z.ZodEnum<{
253
+ blocking: "blocking";
254
+ advisory: "advisory";
255
+ }>>;
256
+ }, z.core.$strict>>>;
257
+ }, z.core.$strict>>;
258
+ finalReview: z.ZodOptional<z.ZodObject<{
259
+ status: z.ZodEnum<{
260
+ passed: "passed";
261
+ failed: "failed";
262
+ }>;
263
+ summary: z.ZodString;
264
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
265
+ summary: z.ZodString;
266
+ severity: z.ZodDefault<z.ZodEnum<{
267
+ blocking: "blocking";
268
+ advisory: "advisory";
269
+ }>>;
270
+ }, z.core.$strict>>>;
271
+ reviewDepth: z.ZodEnum<{
272
+ broad: "broad";
273
+ detailed: "detailed";
274
+ }>;
275
+ }, z.core.$strict>>;
276
+ outcome: z.ZodObject<{
277
+ kind: z.ZodDefault<z.ZodEnum<{
278
+ blocked: "blocked";
279
+ needs_input: "needs_input";
280
+ replan_required: "replan_required";
281
+ }>>;
282
+ summary: z.ZodString;
283
+ resolutionHint: z.ZodOptional<z.ZodString>;
284
+ }, z.core.$strict>;
285
+ }, z.core.$strict>], "status">;
286
+ export declare const ExecutionHistoryEntrySchema: z.ZodObject<{
287
+ featureId: z.ZodString;
288
+ status: z.ZodEnum<{
289
+ completed: "completed";
290
+ blocked: "blocked";
291
+ needs_input: "needs_input";
292
+ }>;
293
+ summary: z.ZodString;
294
+ recordedAt: z.ZodString;
295
+ artifactsChanged: z.ZodDefault<z.ZodArray<z.ZodObject<{
296
+ path: z.ZodString;
297
+ }, z.core.$strict>>>;
298
+ validationRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
299
+ command: z.ZodString;
300
+ status: z.ZodEnum<{
301
+ passed: "passed";
302
+ failed: "failed";
303
+ }>;
304
+ summary: z.ZodString;
305
+ }, z.core.$strict>>>;
306
+ validationScope: z.ZodOptional<z.ZodEnum<{
307
+ targeted: "targeted";
308
+ broad: "broad";
309
+ }>>;
310
+ featureReview: z.ZodOptional<z.ZodObject<{
311
+ status: z.ZodEnum<{
312
+ passed: "passed";
313
+ failed: "failed";
314
+ }>;
315
+ summary: z.ZodString;
316
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
317
+ summary: z.ZodString;
318
+ severity: z.ZodDefault<z.ZodEnum<{
319
+ blocking: "blocking";
320
+ advisory: "advisory";
321
+ }>>;
322
+ }, z.core.$strict>>>;
323
+ }, z.core.$strict>>;
324
+ finalReview: z.ZodOptional<z.ZodObject<{
325
+ status: z.ZodEnum<{
326
+ passed: "passed";
327
+ failed: "failed";
328
+ }>;
329
+ summary: z.ZodString;
330
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
331
+ summary: z.ZodString;
332
+ severity: z.ZodDefault<z.ZodEnum<{
333
+ blocking: "blocking";
334
+ advisory: "advisory";
335
+ }>>;
336
+ }, z.core.$strict>>>;
337
+ reviewDepth: z.ZodEnum<{
338
+ broad: "broad";
339
+ detailed: "detailed";
340
+ }>;
341
+ }, z.core.$strict>>;
342
+ outcome: z.ZodOptional<z.ZodObject<{
343
+ kind: z.ZodDefault<z.ZodEnum<{
344
+ completed: "completed";
345
+ blocked: "blocked";
346
+ needs_input: "needs_input";
347
+ replan_required: "replan_required";
348
+ }>>;
349
+ summary: z.ZodOptional<z.ZodString>;
350
+ resolutionHint: z.ZodOptional<z.ZodString>;
351
+ }, z.core.$strict>>;
352
+ }, z.core.$strict>;
353
+ export declare const SessionSchema: z.ZodObject<{
354
+ version: z.ZodLiteral<2>;
355
+ id: z.ZodString;
356
+ goal: z.ZodString;
357
+ status: z.ZodEnum<{
358
+ completed: "completed";
359
+ blocked: "blocked";
360
+ planning: "planning";
361
+ ready: "ready";
362
+ running: "running";
363
+ }>;
364
+ approval: z.ZodEnum<{
365
+ pending: "pending";
366
+ approved: "approved";
367
+ }>;
368
+ plan: z.ZodNullable<z.ZodObject<{
369
+ summary: z.ZodString;
370
+ overview: z.ZodString;
371
+ requirements: z.ZodDefault<z.ZodArray<z.ZodString>>;
372
+ decisions: z.ZodDefault<z.ZodArray<z.ZodString>>;
373
+ finalReviewPolicy: z.ZodDefault<z.ZodEnum<{
374
+ broad: "broad";
375
+ detailed: "detailed";
376
+ }>>;
377
+ features: z.ZodArray<z.ZodObject<{
378
+ id: z.ZodString;
379
+ title: z.ZodString;
380
+ summary: z.ZodString;
381
+ status: z.ZodDefault<z.ZodEnum<{
382
+ pending: "pending";
383
+ in_progress: "in_progress";
384
+ completed: "completed";
385
+ blocked: "blocked";
386
+ }>>;
387
+ targets: z.ZodDefault<z.ZodArray<z.ZodString>>;
388
+ validation: z.ZodDefault<z.ZodArray<z.ZodString>>;
389
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
390
+ }, z.core.$strict>>;
391
+ }, z.core.$strict>>;
392
+ activeFeatureId: z.ZodNullable<z.ZodString>;
393
+ history: z.ZodDefault<z.ZodArray<z.ZodObject<{
394
+ featureId: z.ZodString;
395
+ status: z.ZodEnum<{
396
+ completed: "completed";
397
+ blocked: "blocked";
398
+ needs_input: "needs_input";
399
+ }>;
400
+ summary: z.ZodString;
401
+ recordedAt: z.ZodString;
402
+ artifactsChanged: z.ZodDefault<z.ZodArray<z.ZodObject<{
403
+ path: z.ZodString;
404
+ }, z.core.$strict>>>;
405
+ validationRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
406
+ command: z.ZodString;
407
+ status: z.ZodEnum<{
408
+ passed: "passed";
409
+ failed: "failed";
410
+ }>;
411
+ summary: z.ZodString;
412
+ }, z.core.$strict>>>;
413
+ validationScope: z.ZodOptional<z.ZodEnum<{
414
+ targeted: "targeted";
415
+ broad: "broad";
416
+ }>>;
417
+ featureReview: z.ZodOptional<z.ZodObject<{
418
+ status: z.ZodEnum<{
419
+ passed: "passed";
420
+ failed: "failed";
421
+ }>;
422
+ summary: z.ZodString;
423
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
424
+ summary: z.ZodString;
425
+ severity: z.ZodDefault<z.ZodEnum<{
426
+ blocking: "blocking";
427
+ advisory: "advisory";
428
+ }>>;
429
+ }, z.core.$strict>>>;
430
+ }, z.core.$strict>>;
431
+ finalReview: z.ZodOptional<z.ZodObject<{
432
+ status: z.ZodEnum<{
433
+ passed: "passed";
434
+ failed: "failed";
435
+ }>;
436
+ summary: z.ZodString;
437
+ blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
438
+ summary: z.ZodString;
439
+ severity: z.ZodDefault<z.ZodEnum<{
440
+ blocking: "blocking";
441
+ advisory: "advisory";
442
+ }>>;
443
+ }, z.core.$strict>>>;
444
+ reviewDepth: z.ZodEnum<{
445
+ broad: "broad";
446
+ detailed: "detailed";
447
+ }>;
448
+ }, z.core.$strict>>;
449
+ outcome: z.ZodOptional<z.ZodObject<{
450
+ kind: z.ZodDefault<z.ZodEnum<{
451
+ completed: "completed";
452
+ blocked: "blocked";
453
+ needs_input: "needs_input";
454
+ replan_required: "replan_required";
455
+ }>>;
456
+ summary: z.ZodOptional<z.ZodString>;
457
+ resolutionHint: z.ZodOptional<z.ZodString>;
458
+ }, z.core.$strict>>;
459
+ }, z.core.$strict>>>;
460
+ closure: z.ZodNullable<z.ZodObject<{
461
+ kind: z.ZodEnum<{
462
+ completed: "completed";
463
+ deferred: "deferred";
464
+ abandoned: "abandoned";
465
+ }>;
466
+ summary: z.ZodString;
467
+ recordedAt: z.ZodString;
468
+ }, z.core.$strict>>;
469
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
470
+ tool: z.ZodString;
471
+ summary: z.ZodString;
472
+ recovery: z.ZodOptional<z.ZodString>;
473
+ recordedAt: z.ZodString;
474
+ }, z.core.$strict>>>;
475
+ timestamps: z.ZodObject<{
476
+ createdAt: z.ZodString;
477
+ updatedAt: z.ZodString;
478
+ completedAt: z.ZodNullable<z.ZodString>;
479
+ }, z.core.$strict>;
480
+ }, z.core.$strict>;
481
+ export type Artifact = z.infer<typeof ArtifactSchema>;
482
+ export type ExecutionHistoryEntry = z.infer<typeof ExecutionHistoryEntrySchema>;
483
+ export type Feature = z.infer<typeof FeatureSchema>;
484
+ export type FinalReview = z.infer<typeof FinalReviewSchema>;
485
+ export type Plan = z.infer<typeof PlanSchema>;
486
+ export type PlanInput = z.input<typeof PlanInputSchema>;
487
+ export type Review = z.infer<typeof ReviewSchema>;
488
+ export type Session = z.infer<typeof SessionSchema>;
489
+ export type ValidationRun = z.infer<typeof ValidationRunSchema>;
490
+ export type WorkerResult = z.infer<typeof WorkerResultSchema>;
@@ -0,0 +1,2 @@
1
+ export declare function setNowForTests(next: (() => string) | null): void;
2
+ export declare function nowIso(): string;