@abhinav2203/codeflow-core 0.1.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.
@@ -0,0 +1,4448 @@
1
+ import { z } from "zod";
2
+ export declare const executionModeSchema: z.ZodEnum<{
3
+ essential: "essential";
4
+ yolo: "yolo";
5
+ }>;
6
+ export type ExecutionMode = z.infer<typeof executionModeSchema>;
7
+ export declare const blueprintPhaseSchema: z.ZodEnum<{
8
+ spec: "spec";
9
+ implementation: "implementation";
10
+ integration: "integration";
11
+ }>;
12
+ export type BlueprintPhase = z.infer<typeof blueprintPhaseSchema>;
13
+ export declare const nodeStatusSchema: z.ZodEnum<{
14
+ spec_only: "spec_only";
15
+ implemented: "implemented";
16
+ verified: "verified";
17
+ connected: "connected";
18
+ }>;
19
+ export type NodeStatus = z.infer<typeof nodeStatusSchema>;
20
+ export declare const nodeKindSchema: z.ZodEnum<{
21
+ function: "function";
22
+ module: "module";
23
+ api: "api";
24
+ class: "class";
25
+ "ui-screen": "ui-screen";
26
+ }>;
27
+ export type BlueprintNodeKind = z.infer<typeof nodeKindSchema>;
28
+ export declare const edgeKindSchema: z.ZodEnum<{
29
+ imports: "imports";
30
+ calls: "calls";
31
+ inherits: "inherits";
32
+ renders: "renders";
33
+ emits: "emits";
34
+ consumes: "consumes";
35
+ "reads-state": "reads-state";
36
+ "writes-state": "writes-state";
37
+ }>;
38
+ export type BlueprintEdgeKind = z.infer<typeof edgeKindSchema>;
39
+ export declare const traceStatusSchema: z.ZodEnum<{
40
+ idle: "idle";
41
+ success: "success";
42
+ warning: "warning";
43
+ error: "error";
44
+ }>;
45
+ export type TraceStatus = z.infer<typeof traceStatusSchema>;
46
+ export declare const outputProvenanceSchema: z.ZodEnum<{
47
+ deterministic: "deterministic";
48
+ ai: "ai";
49
+ heuristic: "heuristic";
50
+ simulated: "simulated";
51
+ observed: "observed";
52
+ }>;
53
+ export type OutputProvenance = z.infer<typeof outputProvenanceSchema>;
54
+ export declare const featureMaturitySchema: z.ZodEnum<{
55
+ production: "production";
56
+ preview: "preview";
57
+ experimental: "experimental";
58
+ scaffold: "scaffold";
59
+ }>;
60
+ export type FeatureMaturity = z.infer<typeof featureMaturitySchema>;
61
+ export declare const contractFieldSchema: z.ZodObject<{
62
+ name: z.ZodString;
63
+ type: z.ZodString;
64
+ description: z.ZodOptional<z.ZodString>;
65
+ }, z.core.$strip>;
66
+ export type ContractField = z.infer<typeof contractFieldSchema>;
67
+ export declare const designCallSchema: z.ZodObject<{
68
+ target: z.ZodString;
69
+ kind: z.ZodOptional<z.ZodEnum<{
70
+ imports: "imports";
71
+ calls: "calls";
72
+ inherits: "inherits";
73
+ renders: "renders";
74
+ emits: "emits";
75
+ consumes: "consumes";
76
+ "reads-state": "reads-state";
77
+ "writes-state": "writes-state";
78
+ }>>;
79
+ description: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>;
81
+ export type DesignCall = z.infer<typeof designCallSchema>;
82
+ export declare const methodSpecSchema: z.ZodObject<{
83
+ name: z.ZodString;
84
+ signature: z.ZodOptional<z.ZodString>;
85
+ summary: z.ZodString;
86
+ inputs: z.ZodArray<z.ZodObject<{
87
+ name: z.ZodString;
88
+ type: z.ZodString;
89
+ description: z.ZodOptional<z.ZodString>;
90
+ }, z.core.$strip>>;
91
+ outputs: z.ZodArray<z.ZodObject<{
92
+ name: z.ZodString;
93
+ type: z.ZodString;
94
+ description: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strip>>;
96
+ sideEffects: z.ZodArray<z.ZodString>;
97
+ calls: z.ZodArray<z.ZodObject<{
98
+ target: z.ZodString;
99
+ kind: z.ZodOptional<z.ZodEnum<{
100
+ imports: "imports";
101
+ calls: "calls";
102
+ inherits: "inherits";
103
+ renders: "renders";
104
+ emits: "emits";
105
+ consumes: "consumes";
106
+ "reads-state": "reads-state";
107
+ "writes-state": "writes-state";
108
+ }>>;
109
+ description: z.ZodOptional<z.ZodString>;
110
+ }, z.core.$strip>>;
111
+ }, z.core.$strip>;
112
+ export type MethodSpec = z.infer<typeof methodSpecSchema>;
113
+ export declare const codeContractSchema: z.ZodObject<{
114
+ summary: z.ZodString;
115
+ responsibilities: z.ZodArray<z.ZodString>;
116
+ inputs: z.ZodArray<z.ZodObject<{
117
+ name: z.ZodString;
118
+ type: z.ZodString;
119
+ description: z.ZodOptional<z.ZodString>;
120
+ }, z.core.$strip>>;
121
+ outputs: z.ZodArray<z.ZodObject<{
122
+ name: z.ZodString;
123
+ type: z.ZodString;
124
+ description: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$strip>>;
126
+ attributes: z.ZodArray<z.ZodObject<{
127
+ name: z.ZodString;
128
+ type: z.ZodString;
129
+ description: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strip>>;
131
+ methods: z.ZodArray<z.ZodObject<{
132
+ name: z.ZodString;
133
+ signature: z.ZodOptional<z.ZodString>;
134
+ summary: z.ZodString;
135
+ inputs: z.ZodArray<z.ZodObject<{
136
+ name: z.ZodString;
137
+ type: z.ZodString;
138
+ description: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$strip>>;
140
+ outputs: z.ZodArray<z.ZodObject<{
141
+ name: z.ZodString;
142
+ type: z.ZodString;
143
+ description: z.ZodOptional<z.ZodString>;
144
+ }, z.core.$strip>>;
145
+ sideEffects: z.ZodArray<z.ZodString>;
146
+ calls: z.ZodArray<z.ZodObject<{
147
+ target: z.ZodString;
148
+ kind: z.ZodOptional<z.ZodEnum<{
149
+ imports: "imports";
150
+ calls: "calls";
151
+ inherits: "inherits";
152
+ renders: "renders";
153
+ emits: "emits";
154
+ consumes: "consumes";
155
+ "reads-state": "reads-state";
156
+ "writes-state": "writes-state";
157
+ }>>;
158
+ description: z.ZodOptional<z.ZodString>;
159
+ }, z.core.$strip>>;
160
+ }, z.core.$strip>>;
161
+ sideEffects: z.ZodArray<z.ZodString>;
162
+ errors: z.ZodArray<z.ZodString>;
163
+ dependencies: z.ZodArray<z.ZodString>;
164
+ calls: z.ZodArray<z.ZodObject<{
165
+ target: z.ZodString;
166
+ kind: z.ZodOptional<z.ZodEnum<{
167
+ imports: "imports";
168
+ calls: "calls";
169
+ inherits: "inherits";
170
+ renders: "renders";
171
+ emits: "emits";
172
+ consumes: "consumes";
173
+ "reads-state": "reads-state";
174
+ "writes-state": "writes-state";
175
+ }>>;
176
+ description: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strip>>;
178
+ uiAccess: z.ZodArray<z.ZodString>;
179
+ backendAccess: z.ZodArray<z.ZodString>;
180
+ notes: z.ZodArray<z.ZodString>;
181
+ }, z.core.$strip>;
182
+ export type CodeContract = z.infer<typeof codeContractSchema>;
183
+ export declare const sourceRefSchema: z.ZodObject<{
184
+ kind: z.ZodEnum<{
185
+ prd: "prd";
186
+ repo: "repo";
187
+ generated: "generated";
188
+ trace: "trace";
189
+ }>;
190
+ path: z.ZodOptional<z.ZodString>;
191
+ symbol: z.ZodOptional<z.ZodString>;
192
+ section: z.ZodOptional<z.ZodString>;
193
+ detail: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strip>;
195
+ export type SourceRef = z.infer<typeof sourceRefSchema>;
196
+ export declare const traceStateSchema: z.ZodObject<{
197
+ status: z.ZodEnum<{
198
+ idle: "idle";
199
+ success: "success";
200
+ warning: "warning";
201
+ error: "error";
202
+ }>;
203
+ count: z.ZodNumber;
204
+ errors: z.ZodNumber;
205
+ totalDurationMs: z.ZodNumber;
206
+ lastSpanIds: z.ZodArray<z.ZodString>;
207
+ }, z.core.$strip>;
208
+ export type TraceState = z.infer<typeof traceStateSchema>;
209
+ export declare const nodeVerificationSchema: z.ZodObject<{
210
+ verifiedAt: z.ZodString;
211
+ status: z.ZodEnum<{
212
+ success: "success";
213
+ failure: "failure";
214
+ }>;
215
+ stdout: z.ZodString;
216
+ stderr: z.ZodString;
217
+ exitCode: z.ZodOptional<z.ZodNumber>;
218
+ }, z.core.$strip>;
219
+ export type NodeVerification = z.infer<typeof nodeVerificationSchema>;
220
+ export declare const mcpToolSchema: z.ZodObject<{
221
+ name: z.ZodString;
222
+ description: z.ZodOptional<z.ZodString>;
223
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
224
+ }, z.core.$strip>;
225
+ export type McpTool = z.infer<typeof mcpToolSchema>;
226
+ export declare const mcpServerConfigSchema: z.ZodObject<{
227
+ serverUrl: z.ZodString;
228
+ label: z.ZodOptional<z.ZodString>;
229
+ headersRef: z.ZodOptional<z.ZodString>;
230
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
231
+ }, z.core.$strip>;
232
+ export type McpServerConfig = z.infer<typeof mcpServerConfigSchema>;
233
+ export declare const mcpToolResultContentSchema: z.ZodObject<{
234
+ type: z.ZodString;
235
+ text: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$strip>;
237
+ export type McpToolResultContent = z.infer<typeof mcpToolResultContentSchema>;
238
+ export declare const mcpToolResultSchema: z.ZodObject<{
239
+ content: z.ZodArray<z.ZodObject<{
240
+ type: z.ZodString;
241
+ text: z.ZodOptional<z.ZodString>;
242
+ }, z.core.$strip>>;
243
+ isError: z.ZodOptional<z.ZodBoolean>;
244
+ }, z.core.$strip>;
245
+ export type McpToolResult = z.infer<typeof mcpToolResultSchema>;
246
+ export declare const blueprintNodeSchema: z.ZodObject<{
247
+ id: z.ZodString;
248
+ kind: z.ZodEnum<{
249
+ function: "function";
250
+ module: "module";
251
+ api: "api";
252
+ class: "class";
253
+ "ui-screen": "ui-screen";
254
+ }>;
255
+ name: z.ZodString;
256
+ summary: z.ZodString;
257
+ path: z.ZodOptional<z.ZodString>;
258
+ ownerId: z.ZodOptional<z.ZodString>;
259
+ signature: z.ZodOptional<z.ZodString>;
260
+ contract: z.ZodObject<{
261
+ summary: z.ZodString;
262
+ responsibilities: z.ZodArray<z.ZodString>;
263
+ inputs: z.ZodArray<z.ZodObject<{
264
+ name: z.ZodString;
265
+ type: z.ZodString;
266
+ description: z.ZodOptional<z.ZodString>;
267
+ }, z.core.$strip>>;
268
+ outputs: z.ZodArray<z.ZodObject<{
269
+ name: z.ZodString;
270
+ type: z.ZodString;
271
+ description: z.ZodOptional<z.ZodString>;
272
+ }, z.core.$strip>>;
273
+ attributes: z.ZodArray<z.ZodObject<{
274
+ name: z.ZodString;
275
+ type: z.ZodString;
276
+ description: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strip>>;
278
+ methods: z.ZodArray<z.ZodObject<{
279
+ name: z.ZodString;
280
+ signature: z.ZodOptional<z.ZodString>;
281
+ summary: z.ZodString;
282
+ inputs: z.ZodArray<z.ZodObject<{
283
+ name: z.ZodString;
284
+ type: z.ZodString;
285
+ description: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strip>>;
287
+ outputs: z.ZodArray<z.ZodObject<{
288
+ name: z.ZodString;
289
+ type: z.ZodString;
290
+ description: z.ZodOptional<z.ZodString>;
291
+ }, z.core.$strip>>;
292
+ sideEffects: z.ZodArray<z.ZodString>;
293
+ calls: z.ZodArray<z.ZodObject<{
294
+ target: z.ZodString;
295
+ kind: z.ZodOptional<z.ZodEnum<{
296
+ imports: "imports";
297
+ calls: "calls";
298
+ inherits: "inherits";
299
+ renders: "renders";
300
+ emits: "emits";
301
+ consumes: "consumes";
302
+ "reads-state": "reads-state";
303
+ "writes-state": "writes-state";
304
+ }>>;
305
+ description: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$strip>>;
307
+ }, z.core.$strip>>;
308
+ sideEffects: z.ZodArray<z.ZodString>;
309
+ errors: z.ZodArray<z.ZodString>;
310
+ dependencies: z.ZodArray<z.ZodString>;
311
+ calls: z.ZodArray<z.ZodObject<{
312
+ target: z.ZodString;
313
+ kind: z.ZodOptional<z.ZodEnum<{
314
+ imports: "imports";
315
+ calls: "calls";
316
+ inherits: "inherits";
317
+ renders: "renders";
318
+ emits: "emits";
319
+ consumes: "consumes";
320
+ "reads-state": "reads-state";
321
+ "writes-state": "writes-state";
322
+ }>>;
323
+ description: z.ZodOptional<z.ZodString>;
324
+ }, z.core.$strip>>;
325
+ uiAccess: z.ZodArray<z.ZodString>;
326
+ backendAccess: z.ZodArray<z.ZodString>;
327
+ notes: z.ZodArray<z.ZodString>;
328
+ }, z.core.$strip>;
329
+ sourceRefs: z.ZodArray<z.ZodObject<{
330
+ kind: z.ZodEnum<{
331
+ prd: "prd";
332
+ repo: "repo";
333
+ generated: "generated";
334
+ trace: "trace";
335
+ }>;
336
+ path: z.ZodOptional<z.ZodString>;
337
+ symbol: z.ZodOptional<z.ZodString>;
338
+ section: z.ZodOptional<z.ZodString>;
339
+ detail: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$strip>>;
341
+ generatedRefs: z.ZodArray<z.ZodString>;
342
+ traceRefs: z.ZodArray<z.ZodString>;
343
+ traceState: z.ZodOptional<z.ZodObject<{
344
+ status: z.ZodEnum<{
345
+ idle: "idle";
346
+ success: "success";
347
+ warning: "warning";
348
+ error: "error";
349
+ }>;
350
+ count: z.ZodNumber;
351
+ errors: z.ZodNumber;
352
+ totalDurationMs: z.ZodNumber;
353
+ lastSpanIds: z.ZodArray<z.ZodString>;
354
+ }, z.core.$strip>>;
355
+ status: z.ZodDefault<z.ZodEnum<{
356
+ spec_only: "spec_only";
357
+ implemented: "implemented";
358
+ verified: "verified";
359
+ connected: "connected";
360
+ }>>;
361
+ specDraft: z.ZodOptional<z.ZodString>;
362
+ implementationDraft: z.ZodOptional<z.ZodString>;
363
+ lastVerification: z.ZodOptional<z.ZodObject<{
364
+ verifiedAt: z.ZodString;
365
+ status: z.ZodEnum<{
366
+ success: "success";
367
+ failure: "failure";
368
+ }>;
369
+ stdout: z.ZodString;
370
+ stderr: z.ZodString;
371
+ exitCode: z.ZodOptional<z.ZodNumber>;
372
+ }, z.core.$strip>>;
373
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
374
+ serverUrl: z.ZodString;
375
+ label: z.ZodOptional<z.ZodString>;
376
+ headersRef: z.ZodOptional<z.ZodString>;
377
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
378
+ }, z.core.$strip>>>;
379
+ }, z.core.$strip>;
380
+ export type BlueprintNode = z.input<typeof blueprintNodeSchema>;
381
+ export type MaterializedBlueprintNode = z.infer<typeof blueprintNodeSchema>;
382
+ export declare const blueprintEdgeSchema: z.ZodObject<{
383
+ from: z.ZodString;
384
+ to: z.ZodString;
385
+ kind: z.ZodEnum<{
386
+ imports: "imports";
387
+ calls: "calls";
388
+ inherits: "inherits";
389
+ renders: "renders";
390
+ emits: "emits";
391
+ consumes: "consumes";
392
+ "reads-state": "reads-state";
393
+ "writes-state": "writes-state";
394
+ }>;
395
+ label: z.ZodOptional<z.ZodString>;
396
+ required: z.ZodBoolean;
397
+ confidence: z.ZodNumber;
398
+ }, z.core.$strip>;
399
+ export type BlueprintEdge = z.infer<typeof blueprintEdgeSchema>;
400
+ export declare const workflowPathSchema: z.ZodObject<{
401
+ name: z.ZodString;
402
+ steps: z.ZodArray<z.ZodString>;
403
+ }, z.core.$strip>;
404
+ export type WorkflowPath = z.infer<typeof workflowPathSchema>;
405
+ export declare const blueprintGraphSchema: z.ZodObject<{
406
+ projectName: z.ZodString;
407
+ mode: z.ZodEnum<{
408
+ essential: "essential";
409
+ yolo: "yolo";
410
+ }>;
411
+ phase: z.ZodDefault<z.ZodEnum<{
412
+ spec: "spec";
413
+ implementation: "implementation";
414
+ integration: "integration";
415
+ }>>;
416
+ generatedAt: z.ZodString;
417
+ nodes: z.ZodArray<z.ZodObject<{
418
+ id: z.ZodString;
419
+ kind: z.ZodEnum<{
420
+ function: "function";
421
+ module: "module";
422
+ api: "api";
423
+ class: "class";
424
+ "ui-screen": "ui-screen";
425
+ }>;
426
+ name: z.ZodString;
427
+ summary: z.ZodString;
428
+ path: z.ZodOptional<z.ZodString>;
429
+ ownerId: z.ZodOptional<z.ZodString>;
430
+ signature: z.ZodOptional<z.ZodString>;
431
+ contract: z.ZodObject<{
432
+ summary: z.ZodString;
433
+ responsibilities: z.ZodArray<z.ZodString>;
434
+ inputs: z.ZodArray<z.ZodObject<{
435
+ name: z.ZodString;
436
+ type: z.ZodString;
437
+ description: z.ZodOptional<z.ZodString>;
438
+ }, z.core.$strip>>;
439
+ outputs: z.ZodArray<z.ZodObject<{
440
+ name: z.ZodString;
441
+ type: z.ZodString;
442
+ description: z.ZodOptional<z.ZodString>;
443
+ }, z.core.$strip>>;
444
+ attributes: z.ZodArray<z.ZodObject<{
445
+ name: z.ZodString;
446
+ type: z.ZodString;
447
+ description: z.ZodOptional<z.ZodString>;
448
+ }, z.core.$strip>>;
449
+ methods: z.ZodArray<z.ZodObject<{
450
+ name: z.ZodString;
451
+ signature: z.ZodOptional<z.ZodString>;
452
+ summary: z.ZodString;
453
+ inputs: z.ZodArray<z.ZodObject<{
454
+ name: z.ZodString;
455
+ type: z.ZodString;
456
+ description: z.ZodOptional<z.ZodString>;
457
+ }, z.core.$strip>>;
458
+ outputs: z.ZodArray<z.ZodObject<{
459
+ name: z.ZodString;
460
+ type: z.ZodString;
461
+ description: z.ZodOptional<z.ZodString>;
462
+ }, z.core.$strip>>;
463
+ sideEffects: z.ZodArray<z.ZodString>;
464
+ calls: z.ZodArray<z.ZodObject<{
465
+ target: z.ZodString;
466
+ kind: z.ZodOptional<z.ZodEnum<{
467
+ imports: "imports";
468
+ calls: "calls";
469
+ inherits: "inherits";
470
+ renders: "renders";
471
+ emits: "emits";
472
+ consumes: "consumes";
473
+ "reads-state": "reads-state";
474
+ "writes-state": "writes-state";
475
+ }>>;
476
+ description: z.ZodOptional<z.ZodString>;
477
+ }, z.core.$strip>>;
478
+ }, z.core.$strip>>;
479
+ sideEffects: z.ZodArray<z.ZodString>;
480
+ errors: z.ZodArray<z.ZodString>;
481
+ dependencies: z.ZodArray<z.ZodString>;
482
+ calls: z.ZodArray<z.ZodObject<{
483
+ target: z.ZodString;
484
+ kind: z.ZodOptional<z.ZodEnum<{
485
+ imports: "imports";
486
+ calls: "calls";
487
+ inherits: "inherits";
488
+ renders: "renders";
489
+ emits: "emits";
490
+ consumes: "consumes";
491
+ "reads-state": "reads-state";
492
+ "writes-state": "writes-state";
493
+ }>>;
494
+ description: z.ZodOptional<z.ZodString>;
495
+ }, z.core.$strip>>;
496
+ uiAccess: z.ZodArray<z.ZodString>;
497
+ backendAccess: z.ZodArray<z.ZodString>;
498
+ notes: z.ZodArray<z.ZodString>;
499
+ }, z.core.$strip>;
500
+ sourceRefs: z.ZodArray<z.ZodObject<{
501
+ kind: z.ZodEnum<{
502
+ prd: "prd";
503
+ repo: "repo";
504
+ generated: "generated";
505
+ trace: "trace";
506
+ }>;
507
+ path: z.ZodOptional<z.ZodString>;
508
+ symbol: z.ZodOptional<z.ZodString>;
509
+ section: z.ZodOptional<z.ZodString>;
510
+ detail: z.ZodOptional<z.ZodString>;
511
+ }, z.core.$strip>>;
512
+ generatedRefs: z.ZodArray<z.ZodString>;
513
+ traceRefs: z.ZodArray<z.ZodString>;
514
+ traceState: z.ZodOptional<z.ZodObject<{
515
+ status: z.ZodEnum<{
516
+ idle: "idle";
517
+ success: "success";
518
+ warning: "warning";
519
+ error: "error";
520
+ }>;
521
+ count: z.ZodNumber;
522
+ errors: z.ZodNumber;
523
+ totalDurationMs: z.ZodNumber;
524
+ lastSpanIds: z.ZodArray<z.ZodString>;
525
+ }, z.core.$strip>>;
526
+ status: z.ZodDefault<z.ZodEnum<{
527
+ spec_only: "spec_only";
528
+ implemented: "implemented";
529
+ verified: "verified";
530
+ connected: "connected";
531
+ }>>;
532
+ specDraft: z.ZodOptional<z.ZodString>;
533
+ implementationDraft: z.ZodOptional<z.ZodString>;
534
+ lastVerification: z.ZodOptional<z.ZodObject<{
535
+ verifiedAt: z.ZodString;
536
+ status: z.ZodEnum<{
537
+ success: "success";
538
+ failure: "failure";
539
+ }>;
540
+ stdout: z.ZodString;
541
+ stderr: z.ZodString;
542
+ exitCode: z.ZodOptional<z.ZodNumber>;
543
+ }, z.core.$strip>>;
544
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
545
+ serverUrl: z.ZodString;
546
+ label: z.ZodOptional<z.ZodString>;
547
+ headersRef: z.ZodOptional<z.ZodString>;
548
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
549
+ }, z.core.$strip>>>;
550
+ }, z.core.$strip>>;
551
+ edges: z.ZodArray<z.ZodObject<{
552
+ from: z.ZodString;
553
+ to: z.ZodString;
554
+ kind: z.ZodEnum<{
555
+ imports: "imports";
556
+ calls: "calls";
557
+ inherits: "inherits";
558
+ renders: "renders";
559
+ emits: "emits";
560
+ consumes: "consumes";
561
+ "reads-state": "reads-state";
562
+ "writes-state": "writes-state";
563
+ }>;
564
+ label: z.ZodOptional<z.ZodString>;
565
+ required: z.ZodBoolean;
566
+ confidence: z.ZodNumber;
567
+ }, z.core.$strip>>;
568
+ workflows: z.ZodArray<z.ZodObject<{
569
+ name: z.ZodString;
570
+ steps: z.ZodArray<z.ZodString>;
571
+ }, z.core.$strip>>;
572
+ warnings: z.ZodArray<z.ZodString>;
573
+ }, z.core.$strip>;
574
+ export type BlueprintGraph = z.input<typeof blueprintGraphSchema>;
575
+ export type MaterializedBlueprintGraph = z.infer<typeof blueprintGraphSchema>;
576
+ export declare const executionTaskSchema: z.ZodObject<{
577
+ id: z.ZodString;
578
+ nodeId: z.ZodString;
579
+ title: z.ZodString;
580
+ kind: z.ZodEnum<{
581
+ function: "function";
582
+ module: "module";
583
+ api: "api";
584
+ class: "class";
585
+ "ui-screen": "ui-screen";
586
+ }>;
587
+ dependsOn: z.ZodArray<z.ZodString>;
588
+ ownerPath: z.ZodOptional<z.ZodString>;
589
+ batchIndex: z.ZodNumber;
590
+ }, z.core.$strip>;
591
+ export type ExecutionTask = z.infer<typeof executionTaskSchema>;
592
+ export declare const executionBatchSchema: z.ZodObject<{
593
+ index: z.ZodNumber;
594
+ taskIds: z.ZodArray<z.ZodString>;
595
+ }, z.core.$strip>;
596
+ export type ExecutionBatch = z.infer<typeof executionBatchSchema>;
597
+ export declare const executionTaskStatusSchema: z.ZodEnum<{
598
+ pending: "pending";
599
+ completed: "completed";
600
+ skipped: "skipped";
601
+ blocked: "blocked";
602
+ }>;
603
+ export type ExecutionTaskStatus = z.infer<typeof executionTaskStatusSchema>;
604
+ export declare const executionStepKindSchema: z.ZodEnum<{
605
+ node: "node";
606
+ method: "method";
607
+ edge: "edge";
608
+ test: "test";
609
+ }>;
610
+ export type ExecutionStepKind = z.infer<typeof executionStepKindSchema>;
611
+ export declare const executionStepStatusSchema: z.ZodEnum<{
612
+ warning: "warning";
613
+ pending: "pending";
614
+ skipped: "skipped";
615
+ blocked: "blocked";
616
+ running: "running";
617
+ passed: "passed";
618
+ failed: "failed";
619
+ }>;
620
+ export type ExecutionStepStatus = z.infer<typeof executionStepStatusSchema>;
621
+ export declare const contractCheckStageSchema: z.ZodEnum<{
622
+ output: "output";
623
+ input: "input";
624
+ test: "test";
625
+ handoff: "handoff";
626
+ "side-effect": "side-effect";
627
+ }>;
628
+ export type ContractCheckStage = z.infer<typeof contractCheckStageSchema>;
629
+ export declare const contractCheckSchema: z.ZodObject<{
630
+ stage: z.ZodEnum<{
631
+ output: "output";
632
+ input: "input";
633
+ test: "test";
634
+ handoff: "handoff";
635
+ "side-effect": "side-effect";
636
+ }>;
637
+ status: z.ZodEnum<{
638
+ warning: "warning";
639
+ skipped: "skipped";
640
+ passed: "passed";
641
+ failed: "failed";
642
+ }>;
643
+ expected: z.ZodOptional<z.ZodString>;
644
+ actualPreview: z.ZodOptional<z.ZodString>;
645
+ message: z.ZodString;
646
+ }, z.core.$strip>;
647
+ export type ContractCheck = z.infer<typeof contractCheckSchema>;
648
+ export declare const executionArtifactSchema: z.ZodObject<{
649
+ id: z.ZodString;
650
+ sourceNodeId: z.ZodString;
651
+ targetNodeId: z.ZodOptional<z.ZodString>;
652
+ edgeId: z.ZodOptional<z.ZodString>;
653
+ declaredType: z.ZodOptional<z.ZodString>;
654
+ actualType: z.ZodOptional<z.ZodString>;
655
+ preview: z.ZodString;
656
+ serializedValue: z.ZodOptional<z.ZodString>;
657
+ }, z.core.$strip>;
658
+ export type ExecutionArtifact = z.infer<typeof executionArtifactSchema>;
659
+ export declare const executionStepSchema: z.ZodObject<{
660
+ id: z.ZodString;
661
+ runId: z.ZodString;
662
+ taskId: z.ZodOptional<z.ZodString>;
663
+ kind: z.ZodEnum<{
664
+ node: "node";
665
+ method: "method";
666
+ edge: "edge";
667
+ test: "test";
668
+ }>;
669
+ nodeId: z.ZodString;
670
+ parentNodeId: z.ZodOptional<z.ZodString>;
671
+ methodName: z.ZodOptional<z.ZodString>;
672
+ edgeId: z.ZodOptional<z.ZodString>;
673
+ status: z.ZodEnum<{
674
+ warning: "warning";
675
+ pending: "pending";
676
+ skipped: "skipped";
677
+ blocked: "blocked";
678
+ running: "running";
679
+ passed: "passed";
680
+ failed: "failed";
681
+ }>;
682
+ startedAt: z.ZodString;
683
+ completedAt: z.ZodString;
684
+ durationMs: z.ZodNumber;
685
+ stdout: z.ZodDefault<z.ZodString>;
686
+ stderr: z.ZodDefault<z.ZodString>;
687
+ message: z.ZodString;
688
+ blockedByStepId: z.ZodOptional<z.ZodString>;
689
+ inputPreview: z.ZodOptional<z.ZodString>;
690
+ outputPreview: z.ZodOptional<z.ZodString>;
691
+ artifactIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
692
+ contractChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
693
+ stage: z.ZodEnum<{
694
+ output: "output";
695
+ input: "input";
696
+ test: "test";
697
+ handoff: "handoff";
698
+ "side-effect": "side-effect";
699
+ }>;
700
+ status: z.ZodEnum<{
701
+ warning: "warning";
702
+ skipped: "skipped";
703
+ passed: "passed";
704
+ failed: "failed";
705
+ }>;
706
+ expected: z.ZodOptional<z.ZodString>;
707
+ actualPreview: z.ZodOptional<z.ZodString>;
708
+ message: z.ZodString;
709
+ }, z.core.$strip>>>;
710
+ }, z.core.$strip>;
711
+ export type ExecutionStep = z.infer<typeof executionStepSchema>;
712
+ export declare const executionSummarySchema: z.ZodObject<{
713
+ passed: z.ZodNumber;
714
+ failed: z.ZodNumber;
715
+ blocked: z.ZodNumber;
716
+ skipped: z.ZodNumber;
717
+ warning: z.ZodNumber;
718
+ }, z.core.$strip>;
719
+ export type ExecutionSummary = z.infer<typeof executionSummarySchema>;
720
+ export declare const runtimeTestCaseSchema: z.ZodObject<{
721
+ id: z.ZodString;
722
+ nodeId: z.ZodString;
723
+ title: z.ZodString;
724
+ kind: z.ZodEnum<{
725
+ "happy-path": "happy-path";
726
+ "edge-case": "edge-case";
727
+ "invalid-input": "invalid-input";
728
+ }>;
729
+ input: z.ZodString;
730
+ expectation: z.ZodEnum<{
731
+ warning: "warning";
732
+ pass: "pass";
733
+ fail: "fail";
734
+ }>;
735
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
736
+ }, z.core.$strip>;
737
+ export type RuntimeTestCase = z.infer<typeof runtimeTestCaseSchema>;
738
+ export declare const runtimeTestResultSchema: z.ZodObject<{
739
+ caseId: z.ZodString;
740
+ title: z.ZodString;
741
+ kind: z.ZodEnum<{
742
+ "happy-path": "happy-path";
743
+ "edge-case": "edge-case";
744
+ "invalid-input": "invalid-input";
745
+ }>;
746
+ status: z.ZodEnum<{
747
+ warning: "warning";
748
+ pending: "pending";
749
+ skipped: "skipped";
750
+ blocked: "blocked";
751
+ running: "running";
752
+ passed: "passed";
753
+ failed: "failed";
754
+ }>;
755
+ message: z.ZodString;
756
+ stepIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
757
+ }, z.core.$strip>;
758
+ export type RuntimeTestResult = z.infer<typeof runtimeTestResultSchema>;
759
+ export declare const runPlanSchema: z.ZodObject<{
760
+ generatedAt: z.ZodString;
761
+ tasks: z.ZodArray<z.ZodObject<{
762
+ id: z.ZodString;
763
+ nodeId: z.ZodString;
764
+ title: z.ZodString;
765
+ kind: z.ZodEnum<{
766
+ function: "function";
767
+ module: "module";
768
+ api: "api";
769
+ class: "class";
770
+ "ui-screen": "ui-screen";
771
+ }>;
772
+ dependsOn: z.ZodArray<z.ZodString>;
773
+ ownerPath: z.ZodOptional<z.ZodString>;
774
+ batchIndex: z.ZodNumber;
775
+ }, z.core.$strip>>;
776
+ batches: z.ZodArray<z.ZodObject<{
777
+ index: z.ZodNumber;
778
+ taskIds: z.ZodArray<z.ZodString>;
779
+ }, z.core.$strip>>;
780
+ warnings: z.ZodArray<z.ZodString>;
781
+ }, z.core.$strip>;
782
+ export type RunPlan = z.infer<typeof runPlanSchema>;
783
+ export declare const taskExecutionResultSchema: z.ZodObject<{
784
+ taskId: z.ZodString;
785
+ nodeId: z.ZodString;
786
+ status: z.ZodEnum<{
787
+ pending: "pending";
788
+ completed: "completed";
789
+ skipped: "skipped";
790
+ blocked: "blocked";
791
+ }>;
792
+ batchIndex: z.ZodNumber;
793
+ outputPaths: z.ZodArray<z.ZodString>;
794
+ managedRegionIds: z.ZodArray<z.ZodString>;
795
+ message: z.ZodString;
796
+ }, z.core.$strip>;
797
+ export type TaskExecutionResult = z.infer<typeof taskExecutionResultSchema>;
798
+ export declare const ownershipRecordSchema: z.ZodObject<{
799
+ path: z.ZodString;
800
+ nodeId: z.ZodString;
801
+ managedRegionIds: z.ZodArray<z.ZodString>;
802
+ generatedAt: z.ZodString;
803
+ }, z.core.$strip>;
804
+ export type OwnershipRecord = z.infer<typeof ownershipRecordSchema>;
805
+ export declare const executionReportSchema: z.ZodObject<{
806
+ startedAt: z.ZodString;
807
+ completedAt: z.ZodString;
808
+ results: z.ZodArray<z.ZodObject<{
809
+ taskId: z.ZodString;
810
+ nodeId: z.ZodString;
811
+ status: z.ZodEnum<{
812
+ pending: "pending";
813
+ completed: "completed";
814
+ skipped: "skipped";
815
+ blocked: "blocked";
816
+ }>;
817
+ batchIndex: z.ZodNumber;
818
+ outputPaths: z.ZodArray<z.ZodString>;
819
+ managedRegionIds: z.ZodArray<z.ZodString>;
820
+ message: z.ZodString;
821
+ }, z.core.$strip>>;
822
+ ownership: z.ZodArray<z.ZodObject<{
823
+ path: z.ZodString;
824
+ nodeId: z.ZodString;
825
+ managedRegionIds: z.ZodArray<z.ZodString>;
826
+ generatedAt: z.ZodString;
827
+ }, z.core.$strip>>;
828
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
829
+ id: z.ZodString;
830
+ runId: z.ZodString;
831
+ taskId: z.ZodOptional<z.ZodString>;
832
+ kind: z.ZodEnum<{
833
+ node: "node";
834
+ method: "method";
835
+ edge: "edge";
836
+ test: "test";
837
+ }>;
838
+ nodeId: z.ZodString;
839
+ parentNodeId: z.ZodOptional<z.ZodString>;
840
+ methodName: z.ZodOptional<z.ZodString>;
841
+ edgeId: z.ZodOptional<z.ZodString>;
842
+ status: z.ZodEnum<{
843
+ warning: "warning";
844
+ pending: "pending";
845
+ skipped: "skipped";
846
+ blocked: "blocked";
847
+ running: "running";
848
+ passed: "passed";
849
+ failed: "failed";
850
+ }>;
851
+ startedAt: z.ZodString;
852
+ completedAt: z.ZodString;
853
+ durationMs: z.ZodNumber;
854
+ stdout: z.ZodDefault<z.ZodString>;
855
+ stderr: z.ZodDefault<z.ZodString>;
856
+ message: z.ZodString;
857
+ blockedByStepId: z.ZodOptional<z.ZodString>;
858
+ inputPreview: z.ZodOptional<z.ZodString>;
859
+ outputPreview: z.ZodOptional<z.ZodString>;
860
+ artifactIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
861
+ contractChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
862
+ stage: z.ZodEnum<{
863
+ output: "output";
864
+ input: "input";
865
+ test: "test";
866
+ handoff: "handoff";
867
+ "side-effect": "side-effect";
868
+ }>;
869
+ status: z.ZodEnum<{
870
+ warning: "warning";
871
+ skipped: "skipped";
872
+ passed: "passed";
873
+ failed: "failed";
874
+ }>;
875
+ expected: z.ZodOptional<z.ZodString>;
876
+ actualPreview: z.ZodOptional<z.ZodString>;
877
+ message: z.ZodString;
878
+ }, z.core.$strip>>>;
879
+ }, z.core.$strip>>>;
880
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
881
+ id: z.ZodString;
882
+ sourceNodeId: z.ZodString;
883
+ targetNodeId: z.ZodOptional<z.ZodString>;
884
+ edgeId: z.ZodOptional<z.ZodString>;
885
+ declaredType: z.ZodOptional<z.ZodString>;
886
+ actualType: z.ZodOptional<z.ZodString>;
887
+ preview: z.ZodString;
888
+ serializedValue: z.ZodOptional<z.ZodString>;
889
+ }, z.core.$strip>>>;
890
+ summary: z.ZodOptional<z.ZodObject<{
891
+ passed: z.ZodNumber;
892
+ failed: z.ZodNumber;
893
+ blocked: z.ZodNumber;
894
+ skipped: z.ZodNumber;
895
+ warning: z.ZodNumber;
896
+ }, z.core.$strip>>;
897
+ }, z.core.$strip>;
898
+ export type ExecutionReport = z.infer<typeof executionReportSchema>;
899
+ export declare const riskFactorSchema: z.ZodObject<{
900
+ code: z.ZodString;
901
+ message: z.ZodString;
902
+ score: z.ZodNumber;
903
+ }, z.core.$strip>;
904
+ export type RiskFactor = z.infer<typeof riskFactorSchema>;
905
+ export declare const riskReportSchema: z.ZodObject<{
906
+ score: z.ZodNumber;
907
+ level: z.ZodEnum<{
908
+ low: "low";
909
+ medium: "medium";
910
+ high: "high";
911
+ }>;
912
+ requiresApproval: z.ZodBoolean;
913
+ factors: z.ZodArray<z.ZodObject<{
914
+ code: z.ZodString;
915
+ message: z.ZodString;
916
+ score: z.ZodNumber;
917
+ }, z.core.$strip>>;
918
+ }, z.core.$strip>;
919
+ export type RiskReport = z.infer<typeof riskReportSchema>;
920
+ export declare const approvalRecordSchema: z.ZodObject<{
921
+ id: z.ZodString;
922
+ action: z.ZodEnum<{
923
+ export: "export";
924
+ }>;
925
+ projectName: z.ZodString;
926
+ status: z.ZodEnum<{
927
+ pending: "pending";
928
+ approved: "approved";
929
+ }>;
930
+ fingerprint: z.ZodString;
931
+ requestedAt: z.ZodString;
932
+ approvedAt: z.ZodOptional<z.ZodString>;
933
+ outputDir: z.ZodString;
934
+ runPlan: z.ZodObject<{
935
+ generatedAt: z.ZodString;
936
+ tasks: z.ZodArray<z.ZodObject<{
937
+ id: z.ZodString;
938
+ nodeId: z.ZodString;
939
+ title: z.ZodString;
940
+ kind: z.ZodEnum<{
941
+ function: "function";
942
+ module: "module";
943
+ api: "api";
944
+ class: "class";
945
+ "ui-screen": "ui-screen";
946
+ }>;
947
+ dependsOn: z.ZodArray<z.ZodString>;
948
+ ownerPath: z.ZodOptional<z.ZodString>;
949
+ batchIndex: z.ZodNumber;
950
+ }, z.core.$strip>>;
951
+ batches: z.ZodArray<z.ZodObject<{
952
+ index: z.ZodNumber;
953
+ taskIds: z.ZodArray<z.ZodString>;
954
+ }, z.core.$strip>>;
955
+ warnings: z.ZodArray<z.ZodString>;
956
+ }, z.core.$strip>;
957
+ riskReport: z.ZodObject<{
958
+ score: z.ZodNumber;
959
+ level: z.ZodEnum<{
960
+ low: "low";
961
+ medium: "medium";
962
+ high: "high";
963
+ }>;
964
+ requiresApproval: z.ZodBoolean;
965
+ factors: z.ZodArray<z.ZodObject<{
966
+ code: z.ZodString;
967
+ message: z.ZodString;
968
+ score: z.ZodNumber;
969
+ }, z.core.$strip>>;
970
+ }, z.core.$strip>;
971
+ }, z.core.$strip>;
972
+ export type ApprovalRecord = z.infer<typeof approvalRecordSchema>;
973
+ export declare const artifactValidationStateSchema: z.ZodEnum<{
974
+ scaffold: "scaffold";
975
+ validated: "validated";
976
+ draft: "draft";
977
+ }>;
978
+ export type ArtifactValidationState = z.infer<typeof artifactValidationStateSchema>;
979
+ export declare const exportArtifactSchema: z.ZodObject<{
980
+ nodeId: z.ZodOptional<z.ZodString>;
981
+ nodeName: z.ZodOptional<z.ZodString>;
982
+ nodeKind: z.ZodOptional<z.ZodEnum<{
983
+ function: "function";
984
+ module: "module";
985
+ api: "api";
986
+ class: "class";
987
+ "ui-screen": "ui-screen";
988
+ }>>;
989
+ relativePath: z.ZodString;
990
+ artifactType: z.ZodEnum<{
991
+ integration: "integration";
992
+ ownership: "ownership";
993
+ code: "code";
994
+ documentation: "documentation";
995
+ blueprint: "blueprint";
996
+ canvas: "canvas";
997
+ }>;
998
+ validationState: z.ZodEnum<{
999
+ scaffold: "scaffold";
1000
+ validated: "validated";
1001
+ draft: "draft";
1002
+ }>;
1003
+ provenance: z.ZodEnum<{
1004
+ deterministic: "deterministic";
1005
+ ai: "ai";
1006
+ heuristic: "heuristic";
1007
+ simulated: "simulated";
1008
+ observed: "observed";
1009
+ }>;
1010
+ maturity: z.ZodEnum<{
1011
+ production: "production";
1012
+ preview: "preview";
1013
+ experimental: "experimental";
1014
+ scaffold: "scaffold";
1015
+ }>;
1016
+ generatedAt: z.ZodString;
1017
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1018
+ }, z.core.$strip>;
1019
+ export type ExportArtifact = z.infer<typeof exportArtifactSchema>;
1020
+ export declare const exportResultSchema: z.ZodObject<{
1021
+ rootDir: z.ZodString;
1022
+ blueprintPath: z.ZodString;
1023
+ canvasPath: z.ZodString;
1024
+ docsDir: z.ZodString;
1025
+ stubsDir: z.ZodString;
1026
+ artifactManifestPath: z.ZodOptional<z.ZodString>;
1027
+ artifactSummary: z.ZodOptional<z.ZodObject<{
1028
+ total: z.ZodNumber;
1029
+ validated: z.ZodNumber;
1030
+ draft: z.ZodNumber;
1031
+ scaffold: z.ZodNumber;
1032
+ }, z.core.$strip>>;
1033
+ phaseManifestPath: z.ZodOptional<z.ZodString>;
1034
+ integrationEntrypointPath: z.ZodOptional<z.ZodString>;
1035
+ ownershipPath: z.ZodOptional<z.ZodString>;
1036
+ obsidianIndexPath: z.ZodOptional<z.ZodString>;
1037
+ diffPath: z.ZodOptional<z.ZodString>;
1038
+ sandboxDir: z.ZodOptional<z.ZodString>;
1039
+ checkpointDir: z.ZodOptional<z.ZodString>;
1040
+ }, z.core.$strip>;
1041
+ export type ExportResult = z.infer<typeof exportResultSchema>;
1042
+ export declare const persistedSessionSchema: z.ZodObject<{
1043
+ sessionId: z.ZodString;
1044
+ projectName: z.ZodString;
1045
+ updatedAt: z.ZodString;
1046
+ graph: z.ZodObject<{
1047
+ projectName: z.ZodString;
1048
+ mode: z.ZodEnum<{
1049
+ essential: "essential";
1050
+ yolo: "yolo";
1051
+ }>;
1052
+ phase: z.ZodDefault<z.ZodEnum<{
1053
+ spec: "spec";
1054
+ implementation: "implementation";
1055
+ integration: "integration";
1056
+ }>>;
1057
+ generatedAt: z.ZodString;
1058
+ nodes: z.ZodArray<z.ZodObject<{
1059
+ id: z.ZodString;
1060
+ kind: z.ZodEnum<{
1061
+ function: "function";
1062
+ module: "module";
1063
+ api: "api";
1064
+ class: "class";
1065
+ "ui-screen": "ui-screen";
1066
+ }>;
1067
+ name: z.ZodString;
1068
+ summary: z.ZodString;
1069
+ path: z.ZodOptional<z.ZodString>;
1070
+ ownerId: z.ZodOptional<z.ZodString>;
1071
+ signature: z.ZodOptional<z.ZodString>;
1072
+ contract: z.ZodObject<{
1073
+ summary: z.ZodString;
1074
+ responsibilities: z.ZodArray<z.ZodString>;
1075
+ inputs: z.ZodArray<z.ZodObject<{
1076
+ name: z.ZodString;
1077
+ type: z.ZodString;
1078
+ description: z.ZodOptional<z.ZodString>;
1079
+ }, z.core.$strip>>;
1080
+ outputs: z.ZodArray<z.ZodObject<{
1081
+ name: z.ZodString;
1082
+ type: z.ZodString;
1083
+ description: z.ZodOptional<z.ZodString>;
1084
+ }, z.core.$strip>>;
1085
+ attributes: z.ZodArray<z.ZodObject<{
1086
+ name: z.ZodString;
1087
+ type: z.ZodString;
1088
+ description: z.ZodOptional<z.ZodString>;
1089
+ }, z.core.$strip>>;
1090
+ methods: z.ZodArray<z.ZodObject<{
1091
+ name: z.ZodString;
1092
+ signature: z.ZodOptional<z.ZodString>;
1093
+ summary: z.ZodString;
1094
+ inputs: z.ZodArray<z.ZodObject<{
1095
+ name: z.ZodString;
1096
+ type: z.ZodString;
1097
+ description: z.ZodOptional<z.ZodString>;
1098
+ }, z.core.$strip>>;
1099
+ outputs: z.ZodArray<z.ZodObject<{
1100
+ name: z.ZodString;
1101
+ type: z.ZodString;
1102
+ description: z.ZodOptional<z.ZodString>;
1103
+ }, z.core.$strip>>;
1104
+ sideEffects: z.ZodArray<z.ZodString>;
1105
+ calls: z.ZodArray<z.ZodObject<{
1106
+ target: z.ZodString;
1107
+ kind: z.ZodOptional<z.ZodEnum<{
1108
+ imports: "imports";
1109
+ calls: "calls";
1110
+ inherits: "inherits";
1111
+ renders: "renders";
1112
+ emits: "emits";
1113
+ consumes: "consumes";
1114
+ "reads-state": "reads-state";
1115
+ "writes-state": "writes-state";
1116
+ }>>;
1117
+ description: z.ZodOptional<z.ZodString>;
1118
+ }, z.core.$strip>>;
1119
+ }, z.core.$strip>>;
1120
+ sideEffects: z.ZodArray<z.ZodString>;
1121
+ errors: z.ZodArray<z.ZodString>;
1122
+ dependencies: z.ZodArray<z.ZodString>;
1123
+ calls: z.ZodArray<z.ZodObject<{
1124
+ target: z.ZodString;
1125
+ kind: z.ZodOptional<z.ZodEnum<{
1126
+ imports: "imports";
1127
+ calls: "calls";
1128
+ inherits: "inherits";
1129
+ renders: "renders";
1130
+ emits: "emits";
1131
+ consumes: "consumes";
1132
+ "reads-state": "reads-state";
1133
+ "writes-state": "writes-state";
1134
+ }>>;
1135
+ description: z.ZodOptional<z.ZodString>;
1136
+ }, z.core.$strip>>;
1137
+ uiAccess: z.ZodArray<z.ZodString>;
1138
+ backendAccess: z.ZodArray<z.ZodString>;
1139
+ notes: z.ZodArray<z.ZodString>;
1140
+ }, z.core.$strip>;
1141
+ sourceRefs: z.ZodArray<z.ZodObject<{
1142
+ kind: z.ZodEnum<{
1143
+ prd: "prd";
1144
+ repo: "repo";
1145
+ generated: "generated";
1146
+ trace: "trace";
1147
+ }>;
1148
+ path: z.ZodOptional<z.ZodString>;
1149
+ symbol: z.ZodOptional<z.ZodString>;
1150
+ section: z.ZodOptional<z.ZodString>;
1151
+ detail: z.ZodOptional<z.ZodString>;
1152
+ }, z.core.$strip>>;
1153
+ generatedRefs: z.ZodArray<z.ZodString>;
1154
+ traceRefs: z.ZodArray<z.ZodString>;
1155
+ traceState: z.ZodOptional<z.ZodObject<{
1156
+ status: z.ZodEnum<{
1157
+ idle: "idle";
1158
+ success: "success";
1159
+ warning: "warning";
1160
+ error: "error";
1161
+ }>;
1162
+ count: z.ZodNumber;
1163
+ errors: z.ZodNumber;
1164
+ totalDurationMs: z.ZodNumber;
1165
+ lastSpanIds: z.ZodArray<z.ZodString>;
1166
+ }, z.core.$strip>>;
1167
+ status: z.ZodDefault<z.ZodEnum<{
1168
+ spec_only: "spec_only";
1169
+ implemented: "implemented";
1170
+ verified: "verified";
1171
+ connected: "connected";
1172
+ }>>;
1173
+ specDraft: z.ZodOptional<z.ZodString>;
1174
+ implementationDraft: z.ZodOptional<z.ZodString>;
1175
+ lastVerification: z.ZodOptional<z.ZodObject<{
1176
+ verifiedAt: z.ZodString;
1177
+ status: z.ZodEnum<{
1178
+ success: "success";
1179
+ failure: "failure";
1180
+ }>;
1181
+ stdout: z.ZodString;
1182
+ stderr: z.ZodString;
1183
+ exitCode: z.ZodOptional<z.ZodNumber>;
1184
+ }, z.core.$strip>>;
1185
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1186
+ serverUrl: z.ZodString;
1187
+ label: z.ZodOptional<z.ZodString>;
1188
+ headersRef: z.ZodOptional<z.ZodString>;
1189
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1190
+ }, z.core.$strip>>>;
1191
+ }, z.core.$strip>>;
1192
+ edges: z.ZodArray<z.ZodObject<{
1193
+ from: z.ZodString;
1194
+ to: z.ZodString;
1195
+ kind: z.ZodEnum<{
1196
+ imports: "imports";
1197
+ calls: "calls";
1198
+ inherits: "inherits";
1199
+ renders: "renders";
1200
+ emits: "emits";
1201
+ consumes: "consumes";
1202
+ "reads-state": "reads-state";
1203
+ "writes-state": "writes-state";
1204
+ }>;
1205
+ label: z.ZodOptional<z.ZodString>;
1206
+ required: z.ZodBoolean;
1207
+ confidence: z.ZodNumber;
1208
+ }, z.core.$strip>>;
1209
+ workflows: z.ZodArray<z.ZodObject<{
1210
+ name: z.ZodString;
1211
+ steps: z.ZodArray<z.ZodString>;
1212
+ }, z.core.$strip>>;
1213
+ warnings: z.ZodArray<z.ZodString>;
1214
+ }, z.core.$strip>;
1215
+ runPlan: z.ZodObject<{
1216
+ generatedAt: z.ZodString;
1217
+ tasks: z.ZodArray<z.ZodObject<{
1218
+ id: z.ZodString;
1219
+ nodeId: z.ZodString;
1220
+ title: z.ZodString;
1221
+ kind: z.ZodEnum<{
1222
+ function: "function";
1223
+ module: "module";
1224
+ api: "api";
1225
+ class: "class";
1226
+ "ui-screen": "ui-screen";
1227
+ }>;
1228
+ dependsOn: z.ZodArray<z.ZodString>;
1229
+ ownerPath: z.ZodOptional<z.ZodString>;
1230
+ batchIndex: z.ZodNumber;
1231
+ }, z.core.$strip>>;
1232
+ batches: z.ZodArray<z.ZodObject<{
1233
+ index: z.ZodNumber;
1234
+ taskIds: z.ZodArray<z.ZodString>;
1235
+ }, z.core.$strip>>;
1236
+ warnings: z.ZodArray<z.ZodString>;
1237
+ }, z.core.$strip>;
1238
+ lastRiskReport: z.ZodOptional<z.ZodObject<{
1239
+ score: z.ZodNumber;
1240
+ level: z.ZodEnum<{
1241
+ low: "low";
1242
+ medium: "medium";
1243
+ high: "high";
1244
+ }>;
1245
+ requiresApproval: z.ZodBoolean;
1246
+ factors: z.ZodArray<z.ZodObject<{
1247
+ code: z.ZodString;
1248
+ message: z.ZodString;
1249
+ score: z.ZodNumber;
1250
+ }, z.core.$strip>>;
1251
+ }, z.core.$strip>>;
1252
+ lastExportResult: z.ZodOptional<z.ZodObject<{
1253
+ rootDir: z.ZodString;
1254
+ blueprintPath: z.ZodString;
1255
+ canvasPath: z.ZodString;
1256
+ docsDir: z.ZodString;
1257
+ stubsDir: z.ZodString;
1258
+ artifactManifestPath: z.ZodOptional<z.ZodString>;
1259
+ artifactSummary: z.ZodOptional<z.ZodObject<{
1260
+ total: z.ZodNumber;
1261
+ validated: z.ZodNumber;
1262
+ draft: z.ZodNumber;
1263
+ scaffold: z.ZodNumber;
1264
+ }, z.core.$strip>>;
1265
+ phaseManifestPath: z.ZodOptional<z.ZodString>;
1266
+ integrationEntrypointPath: z.ZodOptional<z.ZodString>;
1267
+ ownershipPath: z.ZodOptional<z.ZodString>;
1268
+ obsidianIndexPath: z.ZodOptional<z.ZodString>;
1269
+ diffPath: z.ZodOptional<z.ZodString>;
1270
+ sandboxDir: z.ZodOptional<z.ZodString>;
1271
+ checkpointDir: z.ZodOptional<z.ZodString>;
1272
+ }, z.core.$strip>>;
1273
+ lastExecutionReport: z.ZodOptional<z.ZodObject<{
1274
+ startedAt: z.ZodString;
1275
+ completedAt: z.ZodString;
1276
+ results: z.ZodArray<z.ZodObject<{
1277
+ taskId: z.ZodString;
1278
+ nodeId: z.ZodString;
1279
+ status: z.ZodEnum<{
1280
+ pending: "pending";
1281
+ completed: "completed";
1282
+ skipped: "skipped";
1283
+ blocked: "blocked";
1284
+ }>;
1285
+ batchIndex: z.ZodNumber;
1286
+ outputPaths: z.ZodArray<z.ZodString>;
1287
+ managedRegionIds: z.ZodArray<z.ZodString>;
1288
+ message: z.ZodString;
1289
+ }, z.core.$strip>>;
1290
+ ownership: z.ZodArray<z.ZodObject<{
1291
+ path: z.ZodString;
1292
+ nodeId: z.ZodString;
1293
+ managedRegionIds: z.ZodArray<z.ZodString>;
1294
+ generatedAt: z.ZodString;
1295
+ }, z.core.$strip>>;
1296
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
1297
+ id: z.ZodString;
1298
+ runId: z.ZodString;
1299
+ taskId: z.ZodOptional<z.ZodString>;
1300
+ kind: z.ZodEnum<{
1301
+ node: "node";
1302
+ method: "method";
1303
+ edge: "edge";
1304
+ test: "test";
1305
+ }>;
1306
+ nodeId: z.ZodString;
1307
+ parentNodeId: z.ZodOptional<z.ZodString>;
1308
+ methodName: z.ZodOptional<z.ZodString>;
1309
+ edgeId: z.ZodOptional<z.ZodString>;
1310
+ status: z.ZodEnum<{
1311
+ warning: "warning";
1312
+ pending: "pending";
1313
+ skipped: "skipped";
1314
+ blocked: "blocked";
1315
+ running: "running";
1316
+ passed: "passed";
1317
+ failed: "failed";
1318
+ }>;
1319
+ startedAt: z.ZodString;
1320
+ completedAt: z.ZodString;
1321
+ durationMs: z.ZodNumber;
1322
+ stdout: z.ZodDefault<z.ZodString>;
1323
+ stderr: z.ZodDefault<z.ZodString>;
1324
+ message: z.ZodString;
1325
+ blockedByStepId: z.ZodOptional<z.ZodString>;
1326
+ inputPreview: z.ZodOptional<z.ZodString>;
1327
+ outputPreview: z.ZodOptional<z.ZodString>;
1328
+ artifactIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1329
+ contractChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1330
+ stage: z.ZodEnum<{
1331
+ output: "output";
1332
+ input: "input";
1333
+ test: "test";
1334
+ handoff: "handoff";
1335
+ "side-effect": "side-effect";
1336
+ }>;
1337
+ status: z.ZodEnum<{
1338
+ warning: "warning";
1339
+ skipped: "skipped";
1340
+ passed: "passed";
1341
+ failed: "failed";
1342
+ }>;
1343
+ expected: z.ZodOptional<z.ZodString>;
1344
+ actualPreview: z.ZodOptional<z.ZodString>;
1345
+ message: z.ZodString;
1346
+ }, z.core.$strip>>>;
1347
+ }, z.core.$strip>>>;
1348
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1349
+ id: z.ZodString;
1350
+ sourceNodeId: z.ZodString;
1351
+ targetNodeId: z.ZodOptional<z.ZodString>;
1352
+ edgeId: z.ZodOptional<z.ZodString>;
1353
+ declaredType: z.ZodOptional<z.ZodString>;
1354
+ actualType: z.ZodOptional<z.ZodString>;
1355
+ preview: z.ZodString;
1356
+ serializedValue: z.ZodOptional<z.ZodString>;
1357
+ }, z.core.$strip>>>;
1358
+ summary: z.ZodOptional<z.ZodObject<{
1359
+ passed: z.ZodNumber;
1360
+ failed: z.ZodNumber;
1361
+ blocked: z.ZodNumber;
1362
+ skipped: z.ZodNumber;
1363
+ warning: z.ZodNumber;
1364
+ }, z.core.$strip>>;
1365
+ }, z.core.$strip>>;
1366
+ approvalIds: z.ZodArray<z.ZodString>;
1367
+ }, z.core.$strip>;
1368
+ export type PersistedSession = z.infer<typeof persistedSessionSchema>;
1369
+ export declare const runRecordSchema: z.ZodObject<{
1370
+ id: z.ZodString;
1371
+ projectName: z.ZodString;
1372
+ action: z.ZodEnum<{
1373
+ export: "export";
1374
+ build: "build";
1375
+ }>;
1376
+ createdAt: z.ZodString;
1377
+ runPlan: z.ZodObject<{
1378
+ generatedAt: z.ZodString;
1379
+ tasks: z.ZodArray<z.ZodObject<{
1380
+ id: z.ZodString;
1381
+ nodeId: z.ZodString;
1382
+ title: z.ZodString;
1383
+ kind: z.ZodEnum<{
1384
+ function: "function";
1385
+ module: "module";
1386
+ api: "api";
1387
+ class: "class";
1388
+ "ui-screen": "ui-screen";
1389
+ }>;
1390
+ dependsOn: z.ZodArray<z.ZodString>;
1391
+ ownerPath: z.ZodOptional<z.ZodString>;
1392
+ batchIndex: z.ZodNumber;
1393
+ }, z.core.$strip>>;
1394
+ batches: z.ZodArray<z.ZodObject<{
1395
+ index: z.ZodNumber;
1396
+ taskIds: z.ZodArray<z.ZodString>;
1397
+ }, z.core.$strip>>;
1398
+ warnings: z.ZodArray<z.ZodString>;
1399
+ }, z.core.$strip>;
1400
+ riskReport: z.ZodOptional<z.ZodObject<{
1401
+ score: z.ZodNumber;
1402
+ level: z.ZodEnum<{
1403
+ low: "low";
1404
+ medium: "medium";
1405
+ high: "high";
1406
+ }>;
1407
+ requiresApproval: z.ZodBoolean;
1408
+ factors: z.ZodArray<z.ZodObject<{
1409
+ code: z.ZodString;
1410
+ message: z.ZodString;
1411
+ score: z.ZodNumber;
1412
+ }, z.core.$strip>>;
1413
+ }, z.core.$strip>>;
1414
+ approvalId: z.ZodOptional<z.ZodString>;
1415
+ executionReport: z.ZodOptional<z.ZodObject<{
1416
+ startedAt: z.ZodString;
1417
+ completedAt: z.ZodString;
1418
+ results: z.ZodArray<z.ZodObject<{
1419
+ taskId: z.ZodString;
1420
+ nodeId: z.ZodString;
1421
+ status: z.ZodEnum<{
1422
+ pending: "pending";
1423
+ completed: "completed";
1424
+ skipped: "skipped";
1425
+ blocked: "blocked";
1426
+ }>;
1427
+ batchIndex: z.ZodNumber;
1428
+ outputPaths: z.ZodArray<z.ZodString>;
1429
+ managedRegionIds: z.ZodArray<z.ZodString>;
1430
+ message: z.ZodString;
1431
+ }, z.core.$strip>>;
1432
+ ownership: z.ZodArray<z.ZodObject<{
1433
+ path: z.ZodString;
1434
+ nodeId: z.ZodString;
1435
+ managedRegionIds: z.ZodArray<z.ZodString>;
1436
+ generatedAt: z.ZodString;
1437
+ }, z.core.$strip>>;
1438
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
1439
+ id: z.ZodString;
1440
+ runId: z.ZodString;
1441
+ taskId: z.ZodOptional<z.ZodString>;
1442
+ kind: z.ZodEnum<{
1443
+ node: "node";
1444
+ method: "method";
1445
+ edge: "edge";
1446
+ test: "test";
1447
+ }>;
1448
+ nodeId: z.ZodString;
1449
+ parentNodeId: z.ZodOptional<z.ZodString>;
1450
+ methodName: z.ZodOptional<z.ZodString>;
1451
+ edgeId: z.ZodOptional<z.ZodString>;
1452
+ status: z.ZodEnum<{
1453
+ warning: "warning";
1454
+ pending: "pending";
1455
+ skipped: "skipped";
1456
+ blocked: "blocked";
1457
+ running: "running";
1458
+ passed: "passed";
1459
+ failed: "failed";
1460
+ }>;
1461
+ startedAt: z.ZodString;
1462
+ completedAt: z.ZodString;
1463
+ durationMs: z.ZodNumber;
1464
+ stdout: z.ZodDefault<z.ZodString>;
1465
+ stderr: z.ZodDefault<z.ZodString>;
1466
+ message: z.ZodString;
1467
+ blockedByStepId: z.ZodOptional<z.ZodString>;
1468
+ inputPreview: z.ZodOptional<z.ZodString>;
1469
+ outputPreview: z.ZodOptional<z.ZodString>;
1470
+ artifactIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1471
+ contractChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1472
+ stage: z.ZodEnum<{
1473
+ output: "output";
1474
+ input: "input";
1475
+ test: "test";
1476
+ handoff: "handoff";
1477
+ "side-effect": "side-effect";
1478
+ }>;
1479
+ status: z.ZodEnum<{
1480
+ warning: "warning";
1481
+ skipped: "skipped";
1482
+ passed: "passed";
1483
+ failed: "failed";
1484
+ }>;
1485
+ expected: z.ZodOptional<z.ZodString>;
1486
+ actualPreview: z.ZodOptional<z.ZodString>;
1487
+ message: z.ZodString;
1488
+ }, z.core.$strip>>>;
1489
+ }, z.core.$strip>>>;
1490
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1491
+ id: z.ZodString;
1492
+ sourceNodeId: z.ZodString;
1493
+ targetNodeId: z.ZodOptional<z.ZodString>;
1494
+ edgeId: z.ZodOptional<z.ZodString>;
1495
+ declaredType: z.ZodOptional<z.ZodString>;
1496
+ actualType: z.ZodOptional<z.ZodString>;
1497
+ preview: z.ZodString;
1498
+ serializedValue: z.ZodOptional<z.ZodString>;
1499
+ }, z.core.$strip>>>;
1500
+ summary: z.ZodOptional<z.ZodObject<{
1501
+ passed: z.ZodNumber;
1502
+ failed: z.ZodNumber;
1503
+ blocked: z.ZodNumber;
1504
+ skipped: z.ZodNumber;
1505
+ warning: z.ZodNumber;
1506
+ }, z.core.$strip>>;
1507
+ }, z.core.$strip>>;
1508
+ exportResult: z.ZodOptional<z.ZodObject<{
1509
+ rootDir: z.ZodString;
1510
+ blueprintPath: z.ZodString;
1511
+ canvasPath: z.ZodString;
1512
+ docsDir: z.ZodString;
1513
+ stubsDir: z.ZodString;
1514
+ artifactManifestPath: z.ZodOptional<z.ZodString>;
1515
+ artifactSummary: z.ZodOptional<z.ZodObject<{
1516
+ total: z.ZodNumber;
1517
+ validated: z.ZodNumber;
1518
+ draft: z.ZodNumber;
1519
+ scaffold: z.ZodNumber;
1520
+ }, z.core.$strip>>;
1521
+ phaseManifestPath: z.ZodOptional<z.ZodString>;
1522
+ integrationEntrypointPath: z.ZodOptional<z.ZodString>;
1523
+ ownershipPath: z.ZodOptional<z.ZodString>;
1524
+ obsidianIndexPath: z.ZodOptional<z.ZodString>;
1525
+ diffPath: z.ZodOptional<z.ZodString>;
1526
+ sandboxDir: z.ZodOptional<z.ZodString>;
1527
+ checkpointDir: z.ZodOptional<z.ZodString>;
1528
+ }, z.core.$strip>>;
1529
+ }, z.core.$strip>;
1530
+ export type RunRecord = z.infer<typeof runRecordSchema>;
1531
+ export declare const traceSpanSchema: z.ZodObject<{
1532
+ spanId: z.ZodString;
1533
+ traceId: z.ZodString;
1534
+ name: z.ZodString;
1535
+ blueprintNodeId: z.ZodOptional<z.ZodString>;
1536
+ path: z.ZodOptional<z.ZodString>;
1537
+ status: z.ZodEnum<{
1538
+ success: "success";
1539
+ warning: "warning";
1540
+ error: "error";
1541
+ }>;
1542
+ durationMs: z.ZodNumber;
1543
+ runtime: z.ZodDefault<z.ZodString>;
1544
+ provenance: z.ZodDefault<z.ZodEnum<{
1545
+ deterministic: "deterministic";
1546
+ ai: "ai";
1547
+ heuristic: "heuristic";
1548
+ simulated: "simulated";
1549
+ observed: "observed";
1550
+ }>>;
1551
+ timestamp: z.ZodOptional<z.ZodString>;
1552
+ }, z.core.$strip>;
1553
+ export type TraceSpan = z.input<typeof traceSpanSchema>;
1554
+ export type MaterializedTraceSpan = z.infer<typeof traceSpanSchema>;
1555
+ export declare const observabilityLogSchema: z.ZodObject<{
1556
+ id: z.ZodString;
1557
+ level: z.ZodEnum<{
1558
+ error: "error";
1559
+ debug: "debug";
1560
+ info: "info";
1561
+ warn: "warn";
1562
+ }>;
1563
+ message: z.ZodString;
1564
+ blueprintNodeId: z.ZodOptional<z.ZodString>;
1565
+ path: z.ZodOptional<z.ZodString>;
1566
+ runtime: z.ZodDefault<z.ZodString>;
1567
+ timestamp: z.ZodString;
1568
+ }, z.core.$strip>;
1569
+ export type ObservabilityLog = z.infer<typeof observabilityLogSchema>;
1570
+ export declare const observabilityIngestRequestSchema: z.ZodObject<{
1571
+ projectName: z.ZodString;
1572
+ spans: z.ZodDefault<z.ZodArray<z.ZodObject<{
1573
+ spanId: z.ZodString;
1574
+ traceId: z.ZodString;
1575
+ name: z.ZodString;
1576
+ blueprintNodeId: z.ZodOptional<z.ZodString>;
1577
+ path: z.ZodOptional<z.ZodString>;
1578
+ status: z.ZodEnum<{
1579
+ success: "success";
1580
+ warning: "warning";
1581
+ error: "error";
1582
+ }>;
1583
+ durationMs: z.ZodNumber;
1584
+ runtime: z.ZodDefault<z.ZodString>;
1585
+ provenance: z.ZodDefault<z.ZodEnum<{
1586
+ deterministic: "deterministic";
1587
+ ai: "ai";
1588
+ heuristic: "heuristic";
1589
+ simulated: "simulated";
1590
+ observed: "observed";
1591
+ }>>;
1592
+ timestamp: z.ZodOptional<z.ZodString>;
1593
+ }, z.core.$strip>>>;
1594
+ logs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1595
+ id: z.ZodString;
1596
+ level: z.ZodEnum<{
1597
+ error: "error";
1598
+ debug: "debug";
1599
+ info: "info";
1600
+ warn: "warn";
1601
+ }>;
1602
+ message: z.ZodString;
1603
+ blueprintNodeId: z.ZodOptional<z.ZodString>;
1604
+ path: z.ZodOptional<z.ZodString>;
1605
+ runtime: z.ZodDefault<z.ZodString>;
1606
+ timestamp: z.ZodString;
1607
+ }, z.core.$strip>>>;
1608
+ }, z.core.$strip>;
1609
+ export type ObservabilityIngestRequest = z.infer<typeof observabilityIngestRequestSchema>;
1610
+ export declare const observabilitySnapshotSchema: z.ZodObject<{
1611
+ projectName: z.ZodString;
1612
+ updatedAt: z.ZodString;
1613
+ spans: z.ZodArray<z.ZodObject<{
1614
+ spanId: z.ZodString;
1615
+ traceId: z.ZodString;
1616
+ name: z.ZodString;
1617
+ blueprintNodeId: z.ZodOptional<z.ZodString>;
1618
+ path: z.ZodOptional<z.ZodString>;
1619
+ status: z.ZodEnum<{
1620
+ success: "success";
1621
+ warning: "warning";
1622
+ error: "error";
1623
+ }>;
1624
+ durationMs: z.ZodNumber;
1625
+ runtime: z.ZodDefault<z.ZodString>;
1626
+ provenance: z.ZodDefault<z.ZodEnum<{
1627
+ deterministic: "deterministic";
1628
+ ai: "ai";
1629
+ heuristic: "heuristic";
1630
+ simulated: "simulated";
1631
+ observed: "observed";
1632
+ }>>;
1633
+ timestamp: z.ZodOptional<z.ZodString>;
1634
+ }, z.core.$strip>>;
1635
+ logs: z.ZodArray<z.ZodObject<{
1636
+ id: z.ZodString;
1637
+ level: z.ZodEnum<{
1638
+ error: "error";
1639
+ debug: "debug";
1640
+ info: "info";
1641
+ warn: "warn";
1642
+ }>;
1643
+ message: z.ZodString;
1644
+ blueprintNodeId: z.ZodOptional<z.ZodString>;
1645
+ path: z.ZodOptional<z.ZodString>;
1646
+ runtime: z.ZodDefault<z.ZodString>;
1647
+ timestamp: z.ZodString;
1648
+ }, z.core.$strip>>;
1649
+ graph: z.ZodOptional<z.ZodObject<{
1650
+ projectName: z.ZodString;
1651
+ mode: z.ZodEnum<{
1652
+ essential: "essential";
1653
+ yolo: "yolo";
1654
+ }>;
1655
+ phase: z.ZodDefault<z.ZodEnum<{
1656
+ spec: "spec";
1657
+ implementation: "implementation";
1658
+ integration: "integration";
1659
+ }>>;
1660
+ generatedAt: z.ZodString;
1661
+ nodes: z.ZodArray<z.ZodObject<{
1662
+ id: z.ZodString;
1663
+ kind: z.ZodEnum<{
1664
+ function: "function";
1665
+ module: "module";
1666
+ api: "api";
1667
+ class: "class";
1668
+ "ui-screen": "ui-screen";
1669
+ }>;
1670
+ name: z.ZodString;
1671
+ summary: z.ZodString;
1672
+ path: z.ZodOptional<z.ZodString>;
1673
+ ownerId: z.ZodOptional<z.ZodString>;
1674
+ signature: z.ZodOptional<z.ZodString>;
1675
+ contract: z.ZodObject<{
1676
+ summary: z.ZodString;
1677
+ responsibilities: z.ZodArray<z.ZodString>;
1678
+ inputs: z.ZodArray<z.ZodObject<{
1679
+ name: z.ZodString;
1680
+ type: z.ZodString;
1681
+ description: z.ZodOptional<z.ZodString>;
1682
+ }, z.core.$strip>>;
1683
+ outputs: z.ZodArray<z.ZodObject<{
1684
+ name: z.ZodString;
1685
+ type: z.ZodString;
1686
+ description: z.ZodOptional<z.ZodString>;
1687
+ }, z.core.$strip>>;
1688
+ attributes: z.ZodArray<z.ZodObject<{
1689
+ name: z.ZodString;
1690
+ type: z.ZodString;
1691
+ description: z.ZodOptional<z.ZodString>;
1692
+ }, z.core.$strip>>;
1693
+ methods: z.ZodArray<z.ZodObject<{
1694
+ name: z.ZodString;
1695
+ signature: z.ZodOptional<z.ZodString>;
1696
+ summary: z.ZodString;
1697
+ inputs: z.ZodArray<z.ZodObject<{
1698
+ name: z.ZodString;
1699
+ type: z.ZodString;
1700
+ description: z.ZodOptional<z.ZodString>;
1701
+ }, z.core.$strip>>;
1702
+ outputs: z.ZodArray<z.ZodObject<{
1703
+ name: z.ZodString;
1704
+ type: z.ZodString;
1705
+ description: z.ZodOptional<z.ZodString>;
1706
+ }, z.core.$strip>>;
1707
+ sideEffects: z.ZodArray<z.ZodString>;
1708
+ calls: z.ZodArray<z.ZodObject<{
1709
+ target: z.ZodString;
1710
+ kind: z.ZodOptional<z.ZodEnum<{
1711
+ imports: "imports";
1712
+ calls: "calls";
1713
+ inherits: "inherits";
1714
+ renders: "renders";
1715
+ emits: "emits";
1716
+ consumes: "consumes";
1717
+ "reads-state": "reads-state";
1718
+ "writes-state": "writes-state";
1719
+ }>>;
1720
+ description: z.ZodOptional<z.ZodString>;
1721
+ }, z.core.$strip>>;
1722
+ }, z.core.$strip>>;
1723
+ sideEffects: z.ZodArray<z.ZodString>;
1724
+ errors: z.ZodArray<z.ZodString>;
1725
+ dependencies: z.ZodArray<z.ZodString>;
1726
+ calls: z.ZodArray<z.ZodObject<{
1727
+ target: z.ZodString;
1728
+ kind: z.ZodOptional<z.ZodEnum<{
1729
+ imports: "imports";
1730
+ calls: "calls";
1731
+ inherits: "inherits";
1732
+ renders: "renders";
1733
+ emits: "emits";
1734
+ consumes: "consumes";
1735
+ "reads-state": "reads-state";
1736
+ "writes-state": "writes-state";
1737
+ }>>;
1738
+ description: z.ZodOptional<z.ZodString>;
1739
+ }, z.core.$strip>>;
1740
+ uiAccess: z.ZodArray<z.ZodString>;
1741
+ backendAccess: z.ZodArray<z.ZodString>;
1742
+ notes: z.ZodArray<z.ZodString>;
1743
+ }, z.core.$strip>;
1744
+ sourceRefs: z.ZodArray<z.ZodObject<{
1745
+ kind: z.ZodEnum<{
1746
+ prd: "prd";
1747
+ repo: "repo";
1748
+ generated: "generated";
1749
+ trace: "trace";
1750
+ }>;
1751
+ path: z.ZodOptional<z.ZodString>;
1752
+ symbol: z.ZodOptional<z.ZodString>;
1753
+ section: z.ZodOptional<z.ZodString>;
1754
+ detail: z.ZodOptional<z.ZodString>;
1755
+ }, z.core.$strip>>;
1756
+ generatedRefs: z.ZodArray<z.ZodString>;
1757
+ traceRefs: z.ZodArray<z.ZodString>;
1758
+ traceState: z.ZodOptional<z.ZodObject<{
1759
+ status: z.ZodEnum<{
1760
+ idle: "idle";
1761
+ success: "success";
1762
+ warning: "warning";
1763
+ error: "error";
1764
+ }>;
1765
+ count: z.ZodNumber;
1766
+ errors: z.ZodNumber;
1767
+ totalDurationMs: z.ZodNumber;
1768
+ lastSpanIds: z.ZodArray<z.ZodString>;
1769
+ }, z.core.$strip>>;
1770
+ status: z.ZodDefault<z.ZodEnum<{
1771
+ spec_only: "spec_only";
1772
+ implemented: "implemented";
1773
+ verified: "verified";
1774
+ connected: "connected";
1775
+ }>>;
1776
+ specDraft: z.ZodOptional<z.ZodString>;
1777
+ implementationDraft: z.ZodOptional<z.ZodString>;
1778
+ lastVerification: z.ZodOptional<z.ZodObject<{
1779
+ verifiedAt: z.ZodString;
1780
+ status: z.ZodEnum<{
1781
+ success: "success";
1782
+ failure: "failure";
1783
+ }>;
1784
+ stdout: z.ZodString;
1785
+ stderr: z.ZodString;
1786
+ exitCode: z.ZodOptional<z.ZodNumber>;
1787
+ }, z.core.$strip>>;
1788
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1789
+ serverUrl: z.ZodString;
1790
+ label: z.ZodOptional<z.ZodString>;
1791
+ headersRef: z.ZodOptional<z.ZodString>;
1792
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1793
+ }, z.core.$strip>>>;
1794
+ }, z.core.$strip>>;
1795
+ edges: z.ZodArray<z.ZodObject<{
1796
+ from: z.ZodString;
1797
+ to: z.ZodString;
1798
+ kind: z.ZodEnum<{
1799
+ imports: "imports";
1800
+ calls: "calls";
1801
+ inherits: "inherits";
1802
+ renders: "renders";
1803
+ emits: "emits";
1804
+ consumes: "consumes";
1805
+ "reads-state": "reads-state";
1806
+ "writes-state": "writes-state";
1807
+ }>;
1808
+ label: z.ZodOptional<z.ZodString>;
1809
+ required: z.ZodBoolean;
1810
+ confidence: z.ZodNumber;
1811
+ }, z.core.$strip>>;
1812
+ workflows: z.ZodArray<z.ZodObject<{
1813
+ name: z.ZodString;
1814
+ steps: z.ZodArray<z.ZodString>;
1815
+ }, z.core.$strip>>;
1816
+ warnings: z.ZodArray<z.ZodString>;
1817
+ }, z.core.$strip>>;
1818
+ }, z.core.$strip>;
1819
+ export type ObservabilitySnapshot = z.infer<typeof observabilitySnapshotSchema>;
1820
+ export declare const conflictKindSchema: z.ZodEnum<{
1821
+ "missing-in-repo": "missing-in-repo";
1822
+ "missing-in-blueprint": "missing-in-blueprint";
1823
+ "signature-mismatch": "signature-mismatch";
1824
+ "summary-mismatch": "summary-mismatch";
1825
+ }>;
1826
+ export type ConflictKind = z.infer<typeof conflictKindSchema>;
1827
+ export declare const conflictRecordSchema: z.ZodObject<{
1828
+ kind: z.ZodEnum<{
1829
+ "missing-in-repo": "missing-in-repo";
1830
+ "missing-in-blueprint": "missing-in-blueprint";
1831
+ "signature-mismatch": "signature-mismatch";
1832
+ "summary-mismatch": "summary-mismatch";
1833
+ }>;
1834
+ nodeId: z.ZodOptional<z.ZodString>;
1835
+ path: z.ZodOptional<z.ZodString>;
1836
+ blueprintValue: z.ZodOptional<z.ZodString>;
1837
+ repoValue: z.ZodOptional<z.ZodString>;
1838
+ message: z.ZodString;
1839
+ suggestedAction: z.ZodString;
1840
+ }, z.core.$strip>;
1841
+ export type ConflictRecord = z.infer<typeof conflictRecordSchema>;
1842
+ export declare const conflictReportSchema: z.ZodObject<{
1843
+ checkedAt: z.ZodString;
1844
+ repoPath: z.ZodString;
1845
+ conflicts: z.ZodArray<z.ZodObject<{
1846
+ kind: z.ZodEnum<{
1847
+ "missing-in-repo": "missing-in-repo";
1848
+ "missing-in-blueprint": "missing-in-blueprint";
1849
+ "signature-mismatch": "signature-mismatch";
1850
+ "summary-mismatch": "summary-mismatch";
1851
+ }>;
1852
+ nodeId: z.ZodOptional<z.ZodString>;
1853
+ path: z.ZodOptional<z.ZodString>;
1854
+ blueprintValue: z.ZodOptional<z.ZodString>;
1855
+ repoValue: z.ZodOptional<z.ZodString>;
1856
+ message: z.ZodString;
1857
+ suggestedAction: z.ZodString;
1858
+ }, z.core.$strip>>;
1859
+ }, z.core.$strip>;
1860
+ export type ConflictReport = z.infer<typeof conflictReportSchema>;
1861
+ export declare const conflictCheckRequestSchema: z.ZodObject<{
1862
+ graph: z.ZodObject<{
1863
+ projectName: z.ZodString;
1864
+ mode: z.ZodEnum<{
1865
+ essential: "essential";
1866
+ yolo: "yolo";
1867
+ }>;
1868
+ phase: z.ZodDefault<z.ZodEnum<{
1869
+ spec: "spec";
1870
+ implementation: "implementation";
1871
+ integration: "integration";
1872
+ }>>;
1873
+ generatedAt: z.ZodString;
1874
+ nodes: z.ZodArray<z.ZodObject<{
1875
+ id: z.ZodString;
1876
+ kind: z.ZodEnum<{
1877
+ function: "function";
1878
+ module: "module";
1879
+ api: "api";
1880
+ class: "class";
1881
+ "ui-screen": "ui-screen";
1882
+ }>;
1883
+ name: z.ZodString;
1884
+ summary: z.ZodString;
1885
+ path: z.ZodOptional<z.ZodString>;
1886
+ ownerId: z.ZodOptional<z.ZodString>;
1887
+ signature: z.ZodOptional<z.ZodString>;
1888
+ contract: z.ZodObject<{
1889
+ summary: z.ZodString;
1890
+ responsibilities: z.ZodArray<z.ZodString>;
1891
+ inputs: z.ZodArray<z.ZodObject<{
1892
+ name: z.ZodString;
1893
+ type: z.ZodString;
1894
+ description: z.ZodOptional<z.ZodString>;
1895
+ }, z.core.$strip>>;
1896
+ outputs: z.ZodArray<z.ZodObject<{
1897
+ name: z.ZodString;
1898
+ type: z.ZodString;
1899
+ description: z.ZodOptional<z.ZodString>;
1900
+ }, z.core.$strip>>;
1901
+ attributes: z.ZodArray<z.ZodObject<{
1902
+ name: z.ZodString;
1903
+ type: z.ZodString;
1904
+ description: z.ZodOptional<z.ZodString>;
1905
+ }, z.core.$strip>>;
1906
+ methods: z.ZodArray<z.ZodObject<{
1907
+ name: z.ZodString;
1908
+ signature: z.ZodOptional<z.ZodString>;
1909
+ summary: z.ZodString;
1910
+ inputs: z.ZodArray<z.ZodObject<{
1911
+ name: z.ZodString;
1912
+ type: z.ZodString;
1913
+ description: z.ZodOptional<z.ZodString>;
1914
+ }, z.core.$strip>>;
1915
+ outputs: z.ZodArray<z.ZodObject<{
1916
+ name: z.ZodString;
1917
+ type: z.ZodString;
1918
+ description: z.ZodOptional<z.ZodString>;
1919
+ }, z.core.$strip>>;
1920
+ sideEffects: z.ZodArray<z.ZodString>;
1921
+ calls: z.ZodArray<z.ZodObject<{
1922
+ target: z.ZodString;
1923
+ kind: z.ZodOptional<z.ZodEnum<{
1924
+ imports: "imports";
1925
+ calls: "calls";
1926
+ inherits: "inherits";
1927
+ renders: "renders";
1928
+ emits: "emits";
1929
+ consumes: "consumes";
1930
+ "reads-state": "reads-state";
1931
+ "writes-state": "writes-state";
1932
+ }>>;
1933
+ description: z.ZodOptional<z.ZodString>;
1934
+ }, z.core.$strip>>;
1935
+ }, z.core.$strip>>;
1936
+ sideEffects: z.ZodArray<z.ZodString>;
1937
+ errors: z.ZodArray<z.ZodString>;
1938
+ dependencies: z.ZodArray<z.ZodString>;
1939
+ calls: z.ZodArray<z.ZodObject<{
1940
+ target: z.ZodString;
1941
+ kind: z.ZodOptional<z.ZodEnum<{
1942
+ imports: "imports";
1943
+ calls: "calls";
1944
+ inherits: "inherits";
1945
+ renders: "renders";
1946
+ emits: "emits";
1947
+ consumes: "consumes";
1948
+ "reads-state": "reads-state";
1949
+ "writes-state": "writes-state";
1950
+ }>>;
1951
+ description: z.ZodOptional<z.ZodString>;
1952
+ }, z.core.$strip>>;
1953
+ uiAccess: z.ZodArray<z.ZodString>;
1954
+ backendAccess: z.ZodArray<z.ZodString>;
1955
+ notes: z.ZodArray<z.ZodString>;
1956
+ }, z.core.$strip>;
1957
+ sourceRefs: z.ZodArray<z.ZodObject<{
1958
+ kind: z.ZodEnum<{
1959
+ prd: "prd";
1960
+ repo: "repo";
1961
+ generated: "generated";
1962
+ trace: "trace";
1963
+ }>;
1964
+ path: z.ZodOptional<z.ZodString>;
1965
+ symbol: z.ZodOptional<z.ZodString>;
1966
+ section: z.ZodOptional<z.ZodString>;
1967
+ detail: z.ZodOptional<z.ZodString>;
1968
+ }, z.core.$strip>>;
1969
+ generatedRefs: z.ZodArray<z.ZodString>;
1970
+ traceRefs: z.ZodArray<z.ZodString>;
1971
+ traceState: z.ZodOptional<z.ZodObject<{
1972
+ status: z.ZodEnum<{
1973
+ idle: "idle";
1974
+ success: "success";
1975
+ warning: "warning";
1976
+ error: "error";
1977
+ }>;
1978
+ count: z.ZodNumber;
1979
+ errors: z.ZodNumber;
1980
+ totalDurationMs: z.ZodNumber;
1981
+ lastSpanIds: z.ZodArray<z.ZodString>;
1982
+ }, z.core.$strip>>;
1983
+ status: z.ZodDefault<z.ZodEnum<{
1984
+ spec_only: "spec_only";
1985
+ implemented: "implemented";
1986
+ verified: "verified";
1987
+ connected: "connected";
1988
+ }>>;
1989
+ specDraft: z.ZodOptional<z.ZodString>;
1990
+ implementationDraft: z.ZodOptional<z.ZodString>;
1991
+ lastVerification: z.ZodOptional<z.ZodObject<{
1992
+ verifiedAt: z.ZodString;
1993
+ status: z.ZodEnum<{
1994
+ success: "success";
1995
+ failure: "failure";
1996
+ }>;
1997
+ stdout: z.ZodString;
1998
+ stderr: z.ZodString;
1999
+ exitCode: z.ZodOptional<z.ZodNumber>;
2000
+ }, z.core.$strip>>;
2001
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2002
+ serverUrl: z.ZodString;
2003
+ label: z.ZodOptional<z.ZodString>;
2004
+ headersRef: z.ZodOptional<z.ZodString>;
2005
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2006
+ }, z.core.$strip>>>;
2007
+ }, z.core.$strip>>;
2008
+ edges: z.ZodArray<z.ZodObject<{
2009
+ from: z.ZodString;
2010
+ to: z.ZodString;
2011
+ kind: z.ZodEnum<{
2012
+ imports: "imports";
2013
+ calls: "calls";
2014
+ inherits: "inherits";
2015
+ renders: "renders";
2016
+ emits: "emits";
2017
+ consumes: "consumes";
2018
+ "reads-state": "reads-state";
2019
+ "writes-state": "writes-state";
2020
+ }>;
2021
+ label: z.ZodOptional<z.ZodString>;
2022
+ required: z.ZodBoolean;
2023
+ confidence: z.ZodNumber;
2024
+ }, z.core.$strip>>;
2025
+ workflows: z.ZodArray<z.ZodObject<{
2026
+ name: z.ZodString;
2027
+ steps: z.ZodArray<z.ZodString>;
2028
+ }, z.core.$strip>>;
2029
+ warnings: z.ZodArray<z.ZodString>;
2030
+ }, z.core.$strip>;
2031
+ repoPath: z.ZodString;
2032
+ }, z.core.$strip>;
2033
+ export type ConflictCheckRequest = z.infer<typeof conflictCheckRequestSchema>;
2034
+ export declare const buildBlueprintRequestSchema: z.ZodObject<{
2035
+ projectName: z.ZodString;
2036
+ repoPath: z.ZodOptional<z.ZodString>;
2037
+ prdText: z.ZodOptional<z.ZodString>;
2038
+ mode: z.ZodEnum<{
2039
+ essential: "essential";
2040
+ yolo: "yolo";
2041
+ }>;
2042
+ }, z.core.$strip>;
2043
+ export type BuildBlueprintRequest = z.infer<typeof buildBlueprintRequestSchema>;
2044
+ export declare const exportBlueprintRequestSchema: z.ZodObject<{
2045
+ graph: z.ZodObject<{
2046
+ projectName: z.ZodString;
2047
+ mode: z.ZodEnum<{
2048
+ essential: "essential";
2049
+ yolo: "yolo";
2050
+ }>;
2051
+ phase: z.ZodDefault<z.ZodEnum<{
2052
+ spec: "spec";
2053
+ implementation: "implementation";
2054
+ integration: "integration";
2055
+ }>>;
2056
+ generatedAt: z.ZodString;
2057
+ nodes: z.ZodArray<z.ZodObject<{
2058
+ id: z.ZodString;
2059
+ kind: z.ZodEnum<{
2060
+ function: "function";
2061
+ module: "module";
2062
+ api: "api";
2063
+ class: "class";
2064
+ "ui-screen": "ui-screen";
2065
+ }>;
2066
+ name: z.ZodString;
2067
+ summary: z.ZodString;
2068
+ path: z.ZodOptional<z.ZodString>;
2069
+ ownerId: z.ZodOptional<z.ZodString>;
2070
+ signature: z.ZodOptional<z.ZodString>;
2071
+ contract: z.ZodObject<{
2072
+ summary: z.ZodString;
2073
+ responsibilities: z.ZodArray<z.ZodString>;
2074
+ inputs: z.ZodArray<z.ZodObject<{
2075
+ name: z.ZodString;
2076
+ type: z.ZodString;
2077
+ description: z.ZodOptional<z.ZodString>;
2078
+ }, z.core.$strip>>;
2079
+ outputs: z.ZodArray<z.ZodObject<{
2080
+ name: z.ZodString;
2081
+ type: z.ZodString;
2082
+ description: z.ZodOptional<z.ZodString>;
2083
+ }, z.core.$strip>>;
2084
+ attributes: z.ZodArray<z.ZodObject<{
2085
+ name: z.ZodString;
2086
+ type: z.ZodString;
2087
+ description: z.ZodOptional<z.ZodString>;
2088
+ }, z.core.$strip>>;
2089
+ methods: z.ZodArray<z.ZodObject<{
2090
+ name: z.ZodString;
2091
+ signature: z.ZodOptional<z.ZodString>;
2092
+ summary: z.ZodString;
2093
+ inputs: z.ZodArray<z.ZodObject<{
2094
+ name: z.ZodString;
2095
+ type: z.ZodString;
2096
+ description: z.ZodOptional<z.ZodString>;
2097
+ }, z.core.$strip>>;
2098
+ outputs: z.ZodArray<z.ZodObject<{
2099
+ name: z.ZodString;
2100
+ type: z.ZodString;
2101
+ description: z.ZodOptional<z.ZodString>;
2102
+ }, z.core.$strip>>;
2103
+ sideEffects: z.ZodArray<z.ZodString>;
2104
+ calls: z.ZodArray<z.ZodObject<{
2105
+ target: z.ZodString;
2106
+ kind: z.ZodOptional<z.ZodEnum<{
2107
+ imports: "imports";
2108
+ calls: "calls";
2109
+ inherits: "inherits";
2110
+ renders: "renders";
2111
+ emits: "emits";
2112
+ consumes: "consumes";
2113
+ "reads-state": "reads-state";
2114
+ "writes-state": "writes-state";
2115
+ }>>;
2116
+ description: z.ZodOptional<z.ZodString>;
2117
+ }, z.core.$strip>>;
2118
+ }, z.core.$strip>>;
2119
+ sideEffects: z.ZodArray<z.ZodString>;
2120
+ errors: z.ZodArray<z.ZodString>;
2121
+ dependencies: z.ZodArray<z.ZodString>;
2122
+ calls: z.ZodArray<z.ZodObject<{
2123
+ target: z.ZodString;
2124
+ kind: z.ZodOptional<z.ZodEnum<{
2125
+ imports: "imports";
2126
+ calls: "calls";
2127
+ inherits: "inherits";
2128
+ renders: "renders";
2129
+ emits: "emits";
2130
+ consumes: "consumes";
2131
+ "reads-state": "reads-state";
2132
+ "writes-state": "writes-state";
2133
+ }>>;
2134
+ description: z.ZodOptional<z.ZodString>;
2135
+ }, z.core.$strip>>;
2136
+ uiAccess: z.ZodArray<z.ZodString>;
2137
+ backendAccess: z.ZodArray<z.ZodString>;
2138
+ notes: z.ZodArray<z.ZodString>;
2139
+ }, z.core.$strip>;
2140
+ sourceRefs: z.ZodArray<z.ZodObject<{
2141
+ kind: z.ZodEnum<{
2142
+ prd: "prd";
2143
+ repo: "repo";
2144
+ generated: "generated";
2145
+ trace: "trace";
2146
+ }>;
2147
+ path: z.ZodOptional<z.ZodString>;
2148
+ symbol: z.ZodOptional<z.ZodString>;
2149
+ section: z.ZodOptional<z.ZodString>;
2150
+ detail: z.ZodOptional<z.ZodString>;
2151
+ }, z.core.$strip>>;
2152
+ generatedRefs: z.ZodArray<z.ZodString>;
2153
+ traceRefs: z.ZodArray<z.ZodString>;
2154
+ traceState: z.ZodOptional<z.ZodObject<{
2155
+ status: z.ZodEnum<{
2156
+ idle: "idle";
2157
+ success: "success";
2158
+ warning: "warning";
2159
+ error: "error";
2160
+ }>;
2161
+ count: z.ZodNumber;
2162
+ errors: z.ZodNumber;
2163
+ totalDurationMs: z.ZodNumber;
2164
+ lastSpanIds: z.ZodArray<z.ZodString>;
2165
+ }, z.core.$strip>>;
2166
+ status: z.ZodDefault<z.ZodEnum<{
2167
+ spec_only: "spec_only";
2168
+ implemented: "implemented";
2169
+ verified: "verified";
2170
+ connected: "connected";
2171
+ }>>;
2172
+ specDraft: z.ZodOptional<z.ZodString>;
2173
+ implementationDraft: z.ZodOptional<z.ZodString>;
2174
+ lastVerification: z.ZodOptional<z.ZodObject<{
2175
+ verifiedAt: z.ZodString;
2176
+ status: z.ZodEnum<{
2177
+ success: "success";
2178
+ failure: "failure";
2179
+ }>;
2180
+ stdout: z.ZodString;
2181
+ stderr: z.ZodString;
2182
+ exitCode: z.ZodOptional<z.ZodNumber>;
2183
+ }, z.core.$strip>>;
2184
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2185
+ serverUrl: z.ZodString;
2186
+ label: z.ZodOptional<z.ZodString>;
2187
+ headersRef: z.ZodOptional<z.ZodString>;
2188
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2189
+ }, z.core.$strip>>>;
2190
+ }, z.core.$strip>>;
2191
+ edges: z.ZodArray<z.ZodObject<{
2192
+ from: z.ZodString;
2193
+ to: z.ZodString;
2194
+ kind: z.ZodEnum<{
2195
+ imports: "imports";
2196
+ calls: "calls";
2197
+ inherits: "inherits";
2198
+ renders: "renders";
2199
+ emits: "emits";
2200
+ consumes: "consumes";
2201
+ "reads-state": "reads-state";
2202
+ "writes-state": "writes-state";
2203
+ }>;
2204
+ label: z.ZodOptional<z.ZodString>;
2205
+ required: z.ZodBoolean;
2206
+ confidence: z.ZodNumber;
2207
+ }, z.core.$strip>>;
2208
+ workflows: z.ZodArray<z.ZodObject<{
2209
+ name: z.ZodString;
2210
+ steps: z.ZodArray<z.ZodString>;
2211
+ }, z.core.$strip>>;
2212
+ warnings: z.ZodArray<z.ZodString>;
2213
+ }, z.core.$strip>;
2214
+ outputDir: z.ZodOptional<z.ZodString>;
2215
+ approvalId: z.ZodOptional<z.ZodString>;
2216
+ codeDrafts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2217
+ }, z.core.$strip>;
2218
+ export type ExportBlueprintRequest = z.infer<typeof exportBlueprintRequestSchema>;
2219
+ export declare const approvalActionRequestSchema: z.ZodObject<{
2220
+ approvalId: z.ZodString;
2221
+ }, z.core.$strip>;
2222
+ export type ApprovalActionRequest = z.infer<typeof approvalActionRequestSchema>;
2223
+ export declare const runtimeExecutionRequestSchema: z.ZodObject<{
2224
+ graph: z.ZodObject<{
2225
+ projectName: z.ZodString;
2226
+ mode: z.ZodEnum<{
2227
+ essential: "essential";
2228
+ yolo: "yolo";
2229
+ }>;
2230
+ phase: z.ZodDefault<z.ZodEnum<{
2231
+ spec: "spec";
2232
+ implementation: "implementation";
2233
+ integration: "integration";
2234
+ }>>;
2235
+ generatedAt: z.ZodString;
2236
+ nodes: z.ZodArray<z.ZodObject<{
2237
+ id: z.ZodString;
2238
+ kind: z.ZodEnum<{
2239
+ function: "function";
2240
+ module: "module";
2241
+ api: "api";
2242
+ class: "class";
2243
+ "ui-screen": "ui-screen";
2244
+ }>;
2245
+ name: z.ZodString;
2246
+ summary: z.ZodString;
2247
+ path: z.ZodOptional<z.ZodString>;
2248
+ ownerId: z.ZodOptional<z.ZodString>;
2249
+ signature: z.ZodOptional<z.ZodString>;
2250
+ contract: z.ZodObject<{
2251
+ summary: z.ZodString;
2252
+ responsibilities: z.ZodArray<z.ZodString>;
2253
+ inputs: z.ZodArray<z.ZodObject<{
2254
+ name: z.ZodString;
2255
+ type: z.ZodString;
2256
+ description: z.ZodOptional<z.ZodString>;
2257
+ }, z.core.$strip>>;
2258
+ outputs: z.ZodArray<z.ZodObject<{
2259
+ name: z.ZodString;
2260
+ type: z.ZodString;
2261
+ description: z.ZodOptional<z.ZodString>;
2262
+ }, z.core.$strip>>;
2263
+ attributes: z.ZodArray<z.ZodObject<{
2264
+ name: z.ZodString;
2265
+ type: z.ZodString;
2266
+ description: z.ZodOptional<z.ZodString>;
2267
+ }, z.core.$strip>>;
2268
+ methods: z.ZodArray<z.ZodObject<{
2269
+ name: z.ZodString;
2270
+ signature: z.ZodOptional<z.ZodString>;
2271
+ summary: z.ZodString;
2272
+ inputs: z.ZodArray<z.ZodObject<{
2273
+ name: z.ZodString;
2274
+ type: z.ZodString;
2275
+ description: z.ZodOptional<z.ZodString>;
2276
+ }, z.core.$strip>>;
2277
+ outputs: z.ZodArray<z.ZodObject<{
2278
+ name: z.ZodString;
2279
+ type: z.ZodString;
2280
+ description: z.ZodOptional<z.ZodString>;
2281
+ }, z.core.$strip>>;
2282
+ sideEffects: z.ZodArray<z.ZodString>;
2283
+ calls: z.ZodArray<z.ZodObject<{
2284
+ target: z.ZodString;
2285
+ kind: z.ZodOptional<z.ZodEnum<{
2286
+ imports: "imports";
2287
+ calls: "calls";
2288
+ inherits: "inherits";
2289
+ renders: "renders";
2290
+ emits: "emits";
2291
+ consumes: "consumes";
2292
+ "reads-state": "reads-state";
2293
+ "writes-state": "writes-state";
2294
+ }>>;
2295
+ description: z.ZodOptional<z.ZodString>;
2296
+ }, z.core.$strip>>;
2297
+ }, z.core.$strip>>;
2298
+ sideEffects: z.ZodArray<z.ZodString>;
2299
+ errors: z.ZodArray<z.ZodString>;
2300
+ dependencies: z.ZodArray<z.ZodString>;
2301
+ calls: z.ZodArray<z.ZodObject<{
2302
+ target: z.ZodString;
2303
+ kind: z.ZodOptional<z.ZodEnum<{
2304
+ imports: "imports";
2305
+ calls: "calls";
2306
+ inherits: "inherits";
2307
+ renders: "renders";
2308
+ emits: "emits";
2309
+ consumes: "consumes";
2310
+ "reads-state": "reads-state";
2311
+ "writes-state": "writes-state";
2312
+ }>>;
2313
+ description: z.ZodOptional<z.ZodString>;
2314
+ }, z.core.$strip>>;
2315
+ uiAccess: z.ZodArray<z.ZodString>;
2316
+ backendAccess: z.ZodArray<z.ZodString>;
2317
+ notes: z.ZodArray<z.ZodString>;
2318
+ }, z.core.$strip>;
2319
+ sourceRefs: z.ZodArray<z.ZodObject<{
2320
+ kind: z.ZodEnum<{
2321
+ prd: "prd";
2322
+ repo: "repo";
2323
+ generated: "generated";
2324
+ trace: "trace";
2325
+ }>;
2326
+ path: z.ZodOptional<z.ZodString>;
2327
+ symbol: z.ZodOptional<z.ZodString>;
2328
+ section: z.ZodOptional<z.ZodString>;
2329
+ detail: z.ZodOptional<z.ZodString>;
2330
+ }, z.core.$strip>>;
2331
+ generatedRefs: z.ZodArray<z.ZodString>;
2332
+ traceRefs: z.ZodArray<z.ZodString>;
2333
+ traceState: z.ZodOptional<z.ZodObject<{
2334
+ status: z.ZodEnum<{
2335
+ idle: "idle";
2336
+ success: "success";
2337
+ warning: "warning";
2338
+ error: "error";
2339
+ }>;
2340
+ count: z.ZodNumber;
2341
+ errors: z.ZodNumber;
2342
+ totalDurationMs: z.ZodNumber;
2343
+ lastSpanIds: z.ZodArray<z.ZodString>;
2344
+ }, z.core.$strip>>;
2345
+ status: z.ZodDefault<z.ZodEnum<{
2346
+ spec_only: "spec_only";
2347
+ implemented: "implemented";
2348
+ verified: "verified";
2349
+ connected: "connected";
2350
+ }>>;
2351
+ specDraft: z.ZodOptional<z.ZodString>;
2352
+ implementationDraft: z.ZodOptional<z.ZodString>;
2353
+ lastVerification: z.ZodOptional<z.ZodObject<{
2354
+ verifiedAt: z.ZodString;
2355
+ status: z.ZodEnum<{
2356
+ success: "success";
2357
+ failure: "failure";
2358
+ }>;
2359
+ stdout: z.ZodString;
2360
+ stderr: z.ZodString;
2361
+ exitCode: z.ZodOptional<z.ZodNumber>;
2362
+ }, z.core.$strip>>;
2363
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2364
+ serverUrl: z.ZodString;
2365
+ label: z.ZodOptional<z.ZodString>;
2366
+ headersRef: z.ZodOptional<z.ZodString>;
2367
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2368
+ }, z.core.$strip>>>;
2369
+ }, z.core.$strip>>;
2370
+ edges: z.ZodArray<z.ZodObject<{
2371
+ from: z.ZodString;
2372
+ to: z.ZodString;
2373
+ kind: z.ZodEnum<{
2374
+ imports: "imports";
2375
+ calls: "calls";
2376
+ inherits: "inherits";
2377
+ renders: "renders";
2378
+ emits: "emits";
2379
+ consumes: "consumes";
2380
+ "reads-state": "reads-state";
2381
+ "writes-state": "writes-state";
2382
+ }>;
2383
+ label: z.ZodOptional<z.ZodString>;
2384
+ required: z.ZodBoolean;
2385
+ confidence: z.ZodNumber;
2386
+ }, z.core.$strip>>;
2387
+ workflows: z.ZodArray<z.ZodObject<{
2388
+ name: z.ZodString;
2389
+ steps: z.ZodArray<z.ZodString>;
2390
+ }, z.core.$strip>>;
2391
+ warnings: z.ZodArray<z.ZodString>;
2392
+ }, z.core.$strip>;
2393
+ targetNodeId: z.ZodOptional<z.ZodString>;
2394
+ input: z.ZodString;
2395
+ codeDrafts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2396
+ includeGeneratedTests: z.ZodOptional<z.ZodBoolean>;
2397
+ }, z.core.$strip>;
2398
+ export type RuntimeExecutionRequest = z.infer<typeof runtimeExecutionRequestSchema>;
2399
+ export declare const runtimeExecutionResultSchema: z.ZodObject<{
2400
+ success: z.ZodBoolean;
2401
+ stdout: z.ZodString;
2402
+ stderr: z.ZodString;
2403
+ exitCode: z.ZodNullable<z.ZodNumber>;
2404
+ durationMs: z.ZodNumber;
2405
+ executedPath: z.ZodOptional<z.ZodString>;
2406
+ error: z.ZodOptional<z.ZodString>;
2407
+ runId: z.ZodOptional<z.ZodString>;
2408
+ entryNodeId: z.ZodOptional<z.ZodString>;
2409
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2410
+ id: z.ZodString;
2411
+ runId: z.ZodString;
2412
+ taskId: z.ZodOptional<z.ZodString>;
2413
+ kind: z.ZodEnum<{
2414
+ node: "node";
2415
+ method: "method";
2416
+ edge: "edge";
2417
+ test: "test";
2418
+ }>;
2419
+ nodeId: z.ZodString;
2420
+ parentNodeId: z.ZodOptional<z.ZodString>;
2421
+ methodName: z.ZodOptional<z.ZodString>;
2422
+ edgeId: z.ZodOptional<z.ZodString>;
2423
+ status: z.ZodEnum<{
2424
+ warning: "warning";
2425
+ pending: "pending";
2426
+ skipped: "skipped";
2427
+ blocked: "blocked";
2428
+ running: "running";
2429
+ passed: "passed";
2430
+ failed: "failed";
2431
+ }>;
2432
+ startedAt: z.ZodString;
2433
+ completedAt: z.ZodString;
2434
+ durationMs: z.ZodNumber;
2435
+ stdout: z.ZodDefault<z.ZodString>;
2436
+ stderr: z.ZodDefault<z.ZodString>;
2437
+ message: z.ZodString;
2438
+ blockedByStepId: z.ZodOptional<z.ZodString>;
2439
+ inputPreview: z.ZodOptional<z.ZodString>;
2440
+ outputPreview: z.ZodOptional<z.ZodString>;
2441
+ artifactIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2442
+ contractChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2443
+ stage: z.ZodEnum<{
2444
+ output: "output";
2445
+ input: "input";
2446
+ test: "test";
2447
+ handoff: "handoff";
2448
+ "side-effect": "side-effect";
2449
+ }>;
2450
+ status: z.ZodEnum<{
2451
+ warning: "warning";
2452
+ skipped: "skipped";
2453
+ passed: "passed";
2454
+ failed: "failed";
2455
+ }>;
2456
+ expected: z.ZodOptional<z.ZodString>;
2457
+ actualPreview: z.ZodOptional<z.ZodString>;
2458
+ message: z.ZodString;
2459
+ }, z.core.$strip>>>;
2460
+ }, z.core.$strip>>>;
2461
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2462
+ id: z.ZodString;
2463
+ sourceNodeId: z.ZodString;
2464
+ targetNodeId: z.ZodOptional<z.ZodString>;
2465
+ edgeId: z.ZodOptional<z.ZodString>;
2466
+ declaredType: z.ZodOptional<z.ZodString>;
2467
+ actualType: z.ZodOptional<z.ZodString>;
2468
+ preview: z.ZodString;
2469
+ serializedValue: z.ZodOptional<z.ZodString>;
2470
+ }, z.core.$strip>>>;
2471
+ summary: z.ZodOptional<z.ZodObject<{
2472
+ passed: z.ZodNumber;
2473
+ failed: z.ZodNumber;
2474
+ blocked: z.ZodNumber;
2475
+ skipped: z.ZodNumber;
2476
+ warning: z.ZodNumber;
2477
+ }, z.core.$strip>>;
2478
+ testCases: z.ZodDefault<z.ZodArray<z.ZodObject<{
2479
+ id: z.ZodString;
2480
+ nodeId: z.ZodString;
2481
+ title: z.ZodString;
2482
+ kind: z.ZodEnum<{
2483
+ "happy-path": "happy-path";
2484
+ "edge-case": "edge-case";
2485
+ "invalid-input": "invalid-input";
2486
+ }>;
2487
+ input: z.ZodString;
2488
+ expectation: z.ZodEnum<{
2489
+ warning: "warning";
2490
+ pass: "pass";
2491
+ fail: "fail";
2492
+ }>;
2493
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2494
+ }, z.core.$strip>>>;
2495
+ testResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
2496
+ caseId: z.ZodString;
2497
+ title: z.ZodString;
2498
+ kind: z.ZodEnum<{
2499
+ "happy-path": "happy-path";
2500
+ "edge-case": "edge-case";
2501
+ "invalid-input": "invalid-input";
2502
+ }>;
2503
+ status: z.ZodEnum<{
2504
+ warning: "warning";
2505
+ pending: "pending";
2506
+ skipped: "skipped";
2507
+ blocked: "blocked";
2508
+ running: "running";
2509
+ passed: "passed";
2510
+ failed: "failed";
2511
+ }>;
2512
+ message: z.ZodString;
2513
+ stepIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2514
+ }, z.core.$strip>>>;
2515
+ }, z.core.$strip>;
2516
+ export type RuntimeExecutionResult = z.infer<typeof runtimeExecutionResultSchema>;
2517
+ export declare const runtimeTestRequestSchema: z.ZodObject<{
2518
+ graph: z.ZodObject<{
2519
+ projectName: z.ZodString;
2520
+ mode: z.ZodEnum<{
2521
+ essential: "essential";
2522
+ yolo: "yolo";
2523
+ }>;
2524
+ phase: z.ZodDefault<z.ZodEnum<{
2525
+ spec: "spec";
2526
+ implementation: "implementation";
2527
+ integration: "integration";
2528
+ }>>;
2529
+ generatedAt: z.ZodString;
2530
+ nodes: z.ZodArray<z.ZodObject<{
2531
+ id: z.ZodString;
2532
+ kind: z.ZodEnum<{
2533
+ function: "function";
2534
+ module: "module";
2535
+ api: "api";
2536
+ class: "class";
2537
+ "ui-screen": "ui-screen";
2538
+ }>;
2539
+ name: z.ZodString;
2540
+ summary: z.ZodString;
2541
+ path: z.ZodOptional<z.ZodString>;
2542
+ ownerId: z.ZodOptional<z.ZodString>;
2543
+ signature: z.ZodOptional<z.ZodString>;
2544
+ contract: z.ZodObject<{
2545
+ summary: z.ZodString;
2546
+ responsibilities: z.ZodArray<z.ZodString>;
2547
+ inputs: z.ZodArray<z.ZodObject<{
2548
+ name: z.ZodString;
2549
+ type: z.ZodString;
2550
+ description: z.ZodOptional<z.ZodString>;
2551
+ }, z.core.$strip>>;
2552
+ outputs: z.ZodArray<z.ZodObject<{
2553
+ name: z.ZodString;
2554
+ type: z.ZodString;
2555
+ description: z.ZodOptional<z.ZodString>;
2556
+ }, z.core.$strip>>;
2557
+ attributes: z.ZodArray<z.ZodObject<{
2558
+ name: z.ZodString;
2559
+ type: z.ZodString;
2560
+ description: z.ZodOptional<z.ZodString>;
2561
+ }, z.core.$strip>>;
2562
+ methods: z.ZodArray<z.ZodObject<{
2563
+ name: z.ZodString;
2564
+ signature: z.ZodOptional<z.ZodString>;
2565
+ summary: z.ZodString;
2566
+ inputs: z.ZodArray<z.ZodObject<{
2567
+ name: z.ZodString;
2568
+ type: z.ZodString;
2569
+ description: z.ZodOptional<z.ZodString>;
2570
+ }, z.core.$strip>>;
2571
+ outputs: z.ZodArray<z.ZodObject<{
2572
+ name: z.ZodString;
2573
+ type: z.ZodString;
2574
+ description: z.ZodOptional<z.ZodString>;
2575
+ }, z.core.$strip>>;
2576
+ sideEffects: z.ZodArray<z.ZodString>;
2577
+ calls: z.ZodArray<z.ZodObject<{
2578
+ target: z.ZodString;
2579
+ kind: z.ZodOptional<z.ZodEnum<{
2580
+ imports: "imports";
2581
+ calls: "calls";
2582
+ inherits: "inherits";
2583
+ renders: "renders";
2584
+ emits: "emits";
2585
+ consumes: "consumes";
2586
+ "reads-state": "reads-state";
2587
+ "writes-state": "writes-state";
2588
+ }>>;
2589
+ description: z.ZodOptional<z.ZodString>;
2590
+ }, z.core.$strip>>;
2591
+ }, z.core.$strip>>;
2592
+ sideEffects: z.ZodArray<z.ZodString>;
2593
+ errors: z.ZodArray<z.ZodString>;
2594
+ dependencies: z.ZodArray<z.ZodString>;
2595
+ calls: z.ZodArray<z.ZodObject<{
2596
+ target: z.ZodString;
2597
+ kind: z.ZodOptional<z.ZodEnum<{
2598
+ imports: "imports";
2599
+ calls: "calls";
2600
+ inherits: "inherits";
2601
+ renders: "renders";
2602
+ emits: "emits";
2603
+ consumes: "consumes";
2604
+ "reads-state": "reads-state";
2605
+ "writes-state": "writes-state";
2606
+ }>>;
2607
+ description: z.ZodOptional<z.ZodString>;
2608
+ }, z.core.$strip>>;
2609
+ uiAccess: z.ZodArray<z.ZodString>;
2610
+ backendAccess: z.ZodArray<z.ZodString>;
2611
+ notes: z.ZodArray<z.ZodString>;
2612
+ }, z.core.$strip>;
2613
+ sourceRefs: z.ZodArray<z.ZodObject<{
2614
+ kind: z.ZodEnum<{
2615
+ prd: "prd";
2616
+ repo: "repo";
2617
+ generated: "generated";
2618
+ trace: "trace";
2619
+ }>;
2620
+ path: z.ZodOptional<z.ZodString>;
2621
+ symbol: z.ZodOptional<z.ZodString>;
2622
+ section: z.ZodOptional<z.ZodString>;
2623
+ detail: z.ZodOptional<z.ZodString>;
2624
+ }, z.core.$strip>>;
2625
+ generatedRefs: z.ZodArray<z.ZodString>;
2626
+ traceRefs: z.ZodArray<z.ZodString>;
2627
+ traceState: z.ZodOptional<z.ZodObject<{
2628
+ status: z.ZodEnum<{
2629
+ idle: "idle";
2630
+ success: "success";
2631
+ warning: "warning";
2632
+ error: "error";
2633
+ }>;
2634
+ count: z.ZodNumber;
2635
+ errors: z.ZodNumber;
2636
+ totalDurationMs: z.ZodNumber;
2637
+ lastSpanIds: z.ZodArray<z.ZodString>;
2638
+ }, z.core.$strip>>;
2639
+ status: z.ZodDefault<z.ZodEnum<{
2640
+ spec_only: "spec_only";
2641
+ implemented: "implemented";
2642
+ verified: "verified";
2643
+ connected: "connected";
2644
+ }>>;
2645
+ specDraft: z.ZodOptional<z.ZodString>;
2646
+ implementationDraft: z.ZodOptional<z.ZodString>;
2647
+ lastVerification: z.ZodOptional<z.ZodObject<{
2648
+ verifiedAt: z.ZodString;
2649
+ status: z.ZodEnum<{
2650
+ success: "success";
2651
+ failure: "failure";
2652
+ }>;
2653
+ stdout: z.ZodString;
2654
+ stderr: z.ZodString;
2655
+ exitCode: z.ZodOptional<z.ZodNumber>;
2656
+ }, z.core.$strip>>;
2657
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2658
+ serverUrl: z.ZodString;
2659
+ label: z.ZodOptional<z.ZodString>;
2660
+ headersRef: z.ZodOptional<z.ZodString>;
2661
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2662
+ }, z.core.$strip>>>;
2663
+ }, z.core.$strip>>;
2664
+ edges: z.ZodArray<z.ZodObject<{
2665
+ from: z.ZodString;
2666
+ to: z.ZodString;
2667
+ kind: z.ZodEnum<{
2668
+ imports: "imports";
2669
+ calls: "calls";
2670
+ inherits: "inherits";
2671
+ renders: "renders";
2672
+ emits: "emits";
2673
+ consumes: "consumes";
2674
+ "reads-state": "reads-state";
2675
+ "writes-state": "writes-state";
2676
+ }>;
2677
+ label: z.ZodOptional<z.ZodString>;
2678
+ required: z.ZodBoolean;
2679
+ confidence: z.ZodNumber;
2680
+ }, z.core.$strip>>;
2681
+ workflows: z.ZodArray<z.ZodObject<{
2682
+ name: z.ZodString;
2683
+ steps: z.ZodArray<z.ZodString>;
2684
+ }, z.core.$strip>>;
2685
+ warnings: z.ZodArray<z.ZodString>;
2686
+ }, z.core.$strip>;
2687
+ nodeId: z.ZodString;
2688
+ seedInput: z.ZodOptional<z.ZodString>;
2689
+ codeDrafts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2690
+ }, z.core.$strip>;
2691
+ export type RuntimeTestRequest = z.infer<typeof runtimeTestRequestSchema>;
2692
+ export declare const runtimeTestResponseSchema: z.ZodObject<{
2693
+ nodeId: z.ZodString;
2694
+ testCases: z.ZodArray<z.ZodObject<{
2695
+ id: z.ZodString;
2696
+ nodeId: z.ZodString;
2697
+ title: z.ZodString;
2698
+ kind: z.ZodEnum<{
2699
+ "happy-path": "happy-path";
2700
+ "edge-case": "edge-case";
2701
+ "invalid-input": "invalid-input";
2702
+ }>;
2703
+ input: z.ZodString;
2704
+ expectation: z.ZodEnum<{
2705
+ warning: "warning";
2706
+ pass: "pass";
2707
+ fail: "fail";
2708
+ }>;
2709
+ notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
2710
+ }, z.core.$strip>>;
2711
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
2712
+ caseId: z.ZodString;
2713
+ title: z.ZodString;
2714
+ kind: z.ZodEnum<{
2715
+ "happy-path": "happy-path";
2716
+ "edge-case": "edge-case";
2717
+ "invalid-input": "invalid-input";
2718
+ }>;
2719
+ status: z.ZodEnum<{
2720
+ warning: "warning";
2721
+ pending: "pending";
2722
+ skipped: "skipped";
2723
+ blocked: "blocked";
2724
+ running: "running";
2725
+ passed: "passed";
2726
+ failed: "failed";
2727
+ }>;
2728
+ message: z.ZodString;
2729
+ stepIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2730
+ }, z.core.$strip>>>;
2731
+ runId: z.ZodOptional<z.ZodString>;
2732
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
2733
+ id: z.ZodString;
2734
+ runId: z.ZodString;
2735
+ taskId: z.ZodOptional<z.ZodString>;
2736
+ kind: z.ZodEnum<{
2737
+ node: "node";
2738
+ method: "method";
2739
+ edge: "edge";
2740
+ test: "test";
2741
+ }>;
2742
+ nodeId: z.ZodString;
2743
+ parentNodeId: z.ZodOptional<z.ZodString>;
2744
+ methodName: z.ZodOptional<z.ZodString>;
2745
+ edgeId: z.ZodOptional<z.ZodString>;
2746
+ status: z.ZodEnum<{
2747
+ warning: "warning";
2748
+ pending: "pending";
2749
+ skipped: "skipped";
2750
+ blocked: "blocked";
2751
+ running: "running";
2752
+ passed: "passed";
2753
+ failed: "failed";
2754
+ }>;
2755
+ startedAt: z.ZodString;
2756
+ completedAt: z.ZodString;
2757
+ durationMs: z.ZodNumber;
2758
+ stdout: z.ZodDefault<z.ZodString>;
2759
+ stderr: z.ZodDefault<z.ZodString>;
2760
+ message: z.ZodString;
2761
+ blockedByStepId: z.ZodOptional<z.ZodString>;
2762
+ inputPreview: z.ZodOptional<z.ZodString>;
2763
+ outputPreview: z.ZodOptional<z.ZodString>;
2764
+ artifactIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2765
+ contractChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2766
+ stage: z.ZodEnum<{
2767
+ output: "output";
2768
+ input: "input";
2769
+ test: "test";
2770
+ handoff: "handoff";
2771
+ "side-effect": "side-effect";
2772
+ }>;
2773
+ status: z.ZodEnum<{
2774
+ warning: "warning";
2775
+ skipped: "skipped";
2776
+ passed: "passed";
2777
+ failed: "failed";
2778
+ }>;
2779
+ expected: z.ZodOptional<z.ZodString>;
2780
+ actualPreview: z.ZodOptional<z.ZodString>;
2781
+ message: z.ZodString;
2782
+ }, z.core.$strip>>>;
2783
+ }, z.core.$strip>>>;
2784
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2785
+ id: z.ZodString;
2786
+ sourceNodeId: z.ZodString;
2787
+ targetNodeId: z.ZodOptional<z.ZodString>;
2788
+ edgeId: z.ZodOptional<z.ZodString>;
2789
+ declaredType: z.ZodOptional<z.ZodString>;
2790
+ actualType: z.ZodOptional<z.ZodString>;
2791
+ preview: z.ZodString;
2792
+ serializedValue: z.ZodOptional<z.ZodString>;
2793
+ }, z.core.$strip>>>;
2794
+ summary: z.ZodOptional<z.ZodObject<{
2795
+ passed: z.ZodNumber;
2796
+ failed: z.ZodNumber;
2797
+ blocked: z.ZodNumber;
2798
+ skipped: z.ZodNumber;
2799
+ warning: z.ZodNumber;
2800
+ }, z.core.$strip>>;
2801
+ }, z.core.$strip>;
2802
+ export type RuntimeTestResponse = z.infer<typeof runtimeTestResponseSchema>;
2803
+ export declare const ghostNodeSchema: z.ZodObject<{
2804
+ id: z.ZodString;
2805
+ kind: z.ZodEnum<{
2806
+ function: "function";
2807
+ module: "module";
2808
+ api: "api";
2809
+ class: "class";
2810
+ "ui-screen": "ui-screen";
2811
+ }>;
2812
+ name: z.ZodString;
2813
+ summary: z.ZodString;
2814
+ reason: z.ZodString;
2815
+ provenance: z.ZodDefault<z.ZodEnum<{
2816
+ deterministic: "deterministic";
2817
+ ai: "ai";
2818
+ heuristic: "heuristic";
2819
+ simulated: "simulated";
2820
+ observed: "observed";
2821
+ }>>;
2822
+ maturity: z.ZodDefault<z.ZodEnum<{
2823
+ production: "production";
2824
+ preview: "preview";
2825
+ experimental: "experimental";
2826
+ scaffold: "scaffold";
2827
+ }>>;
2828
+ suggestedEdge: z.ZodOptional<z.ZodObject<{
2829
+ from: z.ZodString;
2830
+ to: z.ZodString;
2831
+ kind: z.ZodEnum<{
2832
+ imports: "imports";
2833
+ calls: "calls";
2834
+ inherits: "inherits";
2835
+ renders: "renders";
2836
+ emits: "emits";
2837
+ consumes: "consumes";
2838
+ "reads-state": "reads-state";
2839
+ "writes-state": "writes-state";
2840
+ }>;
2841
+ }, z.core.$strip>>;
2842
+ }, z.core.$strip>;
2843
+ export type GhostNode = z.input<typeof ghostNodeSchema>;
2844
+ export type MaterializedGhostNode = z.infer<typeof ghostNodeSchema>;
2845
+ export declare const ghostSuggestionsResponseSchema: z.ZodObject<{
2846
+ suggestions: z.ZodArray<z.ZodObject<{
2847
+ id: z.ZodString;
2848
+ kind: z.ZodEnum<{
2849
+ function: "function";
2850
+ module: "module";
2851
+ api: "api";
2852
+ class: "class";
2853
+ "ui-screen": "ui-screen";
2854
+ }>;
2855
+ name: z.ZodString;
2856
+ summary: z.ZodString;
2857
+ reason: z.ZodString;
2858
+ provenance: z.ZodDefault<z.ZodEnum<{
2859
+ deterministic: "deterministic";
2860
+ ai: "ai";
2861
+ heuristic: "heuristic";
2862
+ simulated: "simulated";
2863
+ observed: "observed";
2864
+ }>>;
2865
+ maturity: z.ZodDefault<z.ZodEnum<{
2866
+ production: "production";
2867
+ preview: "preview";
2868
+ experimental: "experimental";
2869
+ scaffold: "scaffold";
2870
+ }>>;
2871
+ suggestedEdge: z.ZodOptional<z.ZodObject<{
2872
+ from: z.ZodString;
2873
+ to: z.ZodString;
2874
+ kind: z.ZodEnum<{
2875
+ imports: "imports";
2876
+ calls: "calls";
2877
+ inherits: "inherits";
2878
+ renders: "renders";
2879
+ emits: "emits";
2880
+ consumes: "consumes";
2881
+ "reads-state": "reads-state";
2882
+ "writes-state": "writes-state";
2883
+ }>;
2884
+ }, z.core.$strip>>;
2885
+ }, z.core.$strip>>;
2886
+ }, z.core.$strip>;
2887
+ export type GhostSuggestionsResponse = z.infer<typeof ghostSuggestionsResponseSchema>;
2888
+ export declare const emptyContract: () => CodeContract;
2889
+ export declare const idleTraceState: () => TraceState;
2890
+ export declare const graphBranchSchema: z.ZodObject<{
2891
+ id: z.ZodString;
2892
+ name: z.ZodString;
2893
+ description: z.ZodOptional<z.ZodString>;
2894
+ projectName: z.ZodString;
2895
+ parentBranchId: z.ZodOptional<z.ZodString>;
2896
+ createdAt: z.ZodString;
2897
+ graph: z.ZodObject<{
2898
+ projectName: z.ZodString;
2899
+ mode: z.ZodEnum<{
2900
+ essential: "essential";
2901
+ yolo: "yolo";
2902
+ }>;
2903
+ phase: z.ZodDefault<z.ZodEnum<{
2904
+ spec: "spec";
2905
+ implementation: "implementation";
2906
+ integration: "integration";
2907
+ }>>;
2908
+ generatedAt: z.ZodString;
2909
+ nodes: z.ZodArray<z.ZodObject<{
2910
+ id: z.ZodString;
2911
+ kind: z.ZodEnum<{
2912
+ function: "function";
2913
+ module: "module";
2914
+ api: "api";
2915
+ class: "class";
2916
+ "ui-screen": "ui-screen";
2917
+ }>;
2918
+ name: z.ZodString;
2919
+ summary: z.ZodString;
2920
+ path: z.ZodOptional<z.ZodString>;
2921
+ ownerId: z.ZodOptional<z.ZodString>;
2922
+ signature: z.ZodOptional<z.ZodString>;
2923
+ contract: z.ZodObject<{
2924
+ summary: z.ZodString;
2925
+ responsibilities: z.ZodArray<z.ZodString>;
2926
+ inputs: z.ZodArray<z.ZodObject<{
2927
+ name: z.ZodString;
2928
+ type: z.ZodString;
2929
+ description: z.ZodOptional<z.ZodString>;
2930
+ }, z.core.$strip>>;
2931
+ outputs: z.ZodArray<z.ZodObject<{
2932
+ name: z.ZodString;
2933
+ type: z.ZodString;
2934
+ description: z.ZodOptional<z.ZodString>;
2935
+ }, z.core.$strip>>;
2936
+ attributes: z.ZodArray<z.ZodObject<{
2937
+ name: z.ZodString;
2938
+ type: z.ZodString;
2939
+ description: z.ZodOptional<z.ZodString>;
2940
+ }, z.core.$strip>>;
2941
+ methods: z.ZodArray<z.ZodObject<{
2942
+ name: z.ZodString;
2943
+ signature: z.ZodOptional<z.ZodString>;
2944
+ summary: z.ZodString;
2945
+ inputs: z.ZodArray<z.ZodObject<{
2946
+ name: z.ZodString;
2947
+ type: z.ZodString;
2948
+ description: z.ZodOptional<z.ZodString>;
2949
+ }, z.core.$strip>>;
2950
+ outputs: z.ZodArray<z.ZodObject<{
2951
+ name: z.ZodString;
2952
+ type: z.ZodString;
2953
+ description: z.ZodOptional<z.ZodString>;
2954
+ }, z.core.$strip>>;
2955
+ sideEffects: z.ZodArray<z.ZodString>;
2956
+ calls: z.ZodArray<z.ZodObject<{
2957
+ target: z.ZodString;
2958
+ kind: z.ZodOptional<z.ZodEnum<{
2959
+ imports: "imports";
2960
+ calls: "calls";
2961
+ inherits: "inherits";
2962
+ renders: "renders";
2963
+ emits: "emits";
2964
+ consumes: "consumes";
2965
+ "reads-state": "reads-state";
2966
+ "writes-state": "writes-state";
2967
+ }>>;
2968
+ description: z.ZodOptional<z.ZodString>;
2969
+ }, z.core.$strip>>;
2970
+ }, z.core.$strip>>;
2971
+ sideEffects: z.ZodArray<z.ZodString>;
2972
+ errors: z.ZodArray<z.ZodString>;
2973
+ dependencies: z.ZodArray<z.ZodString>;
2974
+ calls: z.ZodArray<z.ZodObject<{
2975
+ target: z.ZodString;
2976
+ kind: z.ZodOptional<z.ZodEnum<{
2977
+ imports: "imports";
2978
+ calls: "calls";
2979
+ inherits: "inherits";
2980
+ renders: "renders";
2981
+ emits: "emits";
2982
+ consumes: "consumes";
2983
+ "reads-state": "reads-state";
2984
+ "writes-state": "writes-state";
2985
+ }>>;
2986
+ description: z.ZodOptional<z.ZodString>;
2987
+ }, z.core.$strip>>;
2988
+ uiAccess: z.ZodArray<z.ZodString>;
2989
+ backendAccess: z.ZodArray<z.ZodString>;
2990
+ notes: z.ZodArray<z.ZodString>;
2991
+ }, z.core.$strip>;
2992
+ sourceRefs: z.ZodArray<z.ZodObject<{
2993
+ kind: z.ZodEnum<{
2994
+ prd: "prd";
2995
+ repo: "repo";
2996
+ generated: "generated";
2997
+ trace: "trace";
2998
+ }>;
2999
+ path: z.ZodOptional<z.ZodString>;
3000
+ symbol: z.ZodOptional<z.ZodString>;
3001
+ section: z.ZodOptional<z.ZodString>;
3002
+ detail: z.ZodOptional<z.ZodString>;
3003
+ }, z.core.$strip>>;
3004
+ generatedRefs: z.ZodArray<z.ZodString>;
3005
+ traceRefs: z.ZodArray<z.ZodString>;
3006
+ traceState: z.ZodOptional<z.ZodObject<{
3007
+ status: z.ZodEnum<{
3008
+ idle: "idle";
3009
+ success: "success";
3010
+ warning: "warning";
3011
+ error: "error";
3012
+ }>;
3013
+ count: z.ZodNumber;
3014
+ errors: z.ZodNumber;
3015
+ totalDurationMs: z.ZodNumber;
3016
+ lastSpanIds: z.ZodArray<z.ZodString>;
3017
+ }, z.core.$strip>>;
3018
+ status: z.ZodDefault<z.ZodEnum<{
3019
+ spec_only: "spec_only";
3020
+ implemented: "implemented";
3021
+ verified: "verified";
3022
+ connected: "connected";
3023
+ }>>;
3024
+ specDraft: z.ZodOptional<z.ZodString>;
3025
+ implementationDraft: z.ZodOptional<z.ZodString>;
3026
+ lastVerification: z.ZodOptional<z.ZodObject<{
3027
+ verifiedAt: z.ZodString;
3028
+ status: z.ZodEnum<{
3029
+ success: "success";
3030
+ failure: "failure";
3031
+ }>;
3032
+ stdout: z.ZodString;
3033
+ stderr: z.ZodString;
3034
+ exitCode: z.ZodOptional<z.ZodNumber>;
3035
+ }, z.core.$strip>>;
3036
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3037
+ serverUrl: z.ZodString;
3038
+ label: z.ZodOptional<z.ZodString>;
3039
+ headersRef: z.ZodOptional<z.ZodString>;
3040
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3041
+ }, z.core.$strip>>>;
3042
+ }, z.core.$strip>>;
3043
+ edges: z.ZodArray<z.ZodObject<{
3044
+ from: z.ZodString;
3045
+ to: z.ZodString;
3046
+ kind: z.ZodEnum<{
3047
+ imports: "imports";
3048
+ calls: "calls";
3049
+ inherits: "inherits";
3050
+ renders: "renders";
3051
+ emits: "emits";
3052
+ consumes: "consumes";
3053
+ "reads-state": "reads-state";
3054
+ "writes-state": "writes-state";
3055
+ }>;
3056
+ label: z.ZodOptional<z.ZodString>;
3057
+ required: z.ZodBoolean;
3058
+ confidence: z.ZodNumber;
3059
+ }, z.core.$strip>>;
3060
+ workflows: z.ZodArray<z.ZodObject<{
3061
+ name: z.ZodString;
3062
+ steps: z.ZodArray<z.ZodString>;
3063
+ }, z.core.$strip>>;
3064
+ warnings: z.ZodArray<z.ZodString>;
3065
+ }, z.core.$strip>;
3066
+ }, z.core.$strip>;
3067
+ export type GraphBranch = z.infer<typeof graphBranchSchema>;
3068
+ export declare const nodeDiffKindSchema: z.ZodEnum<{
3069
+ added: "added";
3070
+ removed: "removed";
3071
+ modified: "modified";
3072
+ unchanged: "unchanged";
3073
+ }>;
3074
+ export type NodeDiffKind = z.infer<typeof nodeDiffKindSchema>;
3075
+ export declare const edgeDiffKindSchema: z.ZodEnum<{
3076
+ added: "added";
3077
+ removed: "removed";
3078
+ unchanged: "unchanged";
3079
+ }>;
3080
+ export type EdgeDiffKind = z.infer<typeof edgeDiffKindSchema>;
3081
+ export declare const nodeDiffSchema: z.ZodObject<{
3082
+ nodeId: z.ZodString;
3083
+ name: z.ZodString;
3084
+ kind: z.ZodEnum<{
3085
+ added: "added";
3086
+ removed: "removed";
3087
+ modified: "modified";
3088
+ unchanged: "unchanged";
3089
+ }>;
3090
+ before: z.ZodOptional<z.ZodObject<{
3091
+ id: z.ZodString;
3092
+ kind: z.ZodEnum<{
3093
+ function: "function";
3094
+ module: "module";
3095
+ api: "api";
3096
+ class: "class";
3097
+ "ui-screen": "ui-screen";
3098
+ }>;
3099
+ name: z.ZodString;
3100
+ summary: z.ZodString;
3101
+ path: z.ZodOptional<z.ZodString>;
3102
+ ownerId: z.ZodOptional<z.ZodString>;
3103
+ signature: z.ZodOptional<z.ZodString>;
3104
+ contract: z.ZodObject<{
3105
+ summary: z.ZodString;
3106
+ responsibilities: z.ZodArray<z.ZodString>;
3107
+ inputs: z.ZodArray<z.ZodObject<{
3108
+ name: z.ZodString;
3109
+ type: z.ZodString;
3110
+ description: z.ZodOptional<z.ZodString>;
3111
+ }, z.core.$strip>>;
3112
+ outputs: z.ZodArray<z.ZodObject<{
3113
+ name: z.ZodString;
3114
+ type: z.ZodString;
3115
+ description: z.ZodOptional<z.ZodString>;
3116
+ }, z.core.$strip>>;
3117
+ attributes: z.ZodArray<z.ZodObject<{
3118
+ name: z.ZodString;
3119
+ type: z.ZodString;
3120
+ description: z.ZodOptional<z.ZodString>;
3121
+ }, z.core.$strip>>;
3122
+ methods: z.ZodArray<z.ZodObject<{
3123
+ name: z.ZodString;
3124
+ signature: z.ZodOptional<z.ZodString>;
3125
+ summary: z.ZodString;
3126
+ inputs: z.ZodArray<z.ZodObject<{
3127
+ name: z.ZodString;
3128
+ type: z.ZodString;
3129
+ description: z.ZodOptional<z.ZodString>;
3130
+ }, z.core.$strip>>;
3131
+ outputs: z.ZodArray<z.ZodObject<{
3132
+ name: z.ZodString;
3133
+ type: z.ZodString;
3134
+ description: z.ZodOptional<z.ZodString>;
3135
+ }, z.core.$strip>>;
3136
+ sideEffects: z.ZodArray<z.ZodString>;
3137
+ calls: z.ZodArray<z.ZodObject<{
3138
+ target: z.ZodString;
3139
+ kind: z.ZodOptional<z.ZodEnum<{
3140
+ imports: "imports";
3141
+ calls: "calls";
3142
+ inherits: "inherits";
3143
+ renders: "renders";
3144
+ emits: "emits";
3145
+ consumes: "consumes";
3146
+ "reads-state": "reads-state";
3147
+ "writes-state": "writes-state";
3148
+ }>>;
3149
+ description: z.ZodOptional<z.ZodString>;
3150
+ }, z.core.$strip>>;
3151
+ }, z.core.$strip>>;
3152
+ sideEffects: z.ZodArray<z.ZodString>;
3153
+ errors: z.ZodArray<z.ZodString>;
3154
+ dependencies: z.ZodArray<z.ZodString>;
3155
+ calls: z.ZodArray<z.ZodObject<{
3156
+ target: z.ZodString;
3157
+ kind: z.ZodOptional<z.ZodEnum<{
3158
+ imports: "imports";
3159
+ calls: "calls";
3160
+ inherits: "inherits";
3161
+ renders: "renders";
3162
+ emits: "emits";
3163
+ consumes: "consumes";
3164
+ "reads-state": "reads-state";
3165
+ "writes-state": "writes-state";
3166
+ }>>;
3167
+ description: z.ZodOptional<z.ZodString>;
3168
+ }, z.core.$strip>>;
3169
+ uiAccess: z.ZodArray<z.ZodString>;
3170
+ backendAccess: z.ZodArray<z.ZodString>;
3171
+ notes: z.ZodArray<z.ZodString>;
3172
+ }, z.core.$strip>;
3173
+ sourceRefs: z.ZodArray<z.ZodObject<{
3174
+ kind: z.ZodEnum<{
3175
+ prd: "prd";
3176
+ repo: "repo";
3177
+ generated: "generated";
3178
+ trace: "trace";
3179
+ }>;
3180
+ path: z.ZodOptional<z.ZodString>;
3181
+ symbol: z.ZodOptional<z.ZodString>;
3182
+ section: z.ZodOptional<z.ZodString>;
3183
+ detail: z.ZodOptional<z.ZodString>;
3184
+ }, z.core.$strip>>;
3185
+ generatedRefs: z.ZodArray<z.ZodString>;
3186
+ traceRefs: z.ZodArray<z.ZodString>;
3187
+ traceState: z.ZodOptional<z.ZodObject<{
3188
+ status: z.ZodEnum<{
3189
+ idle: "idle";
3190
+ success: "success";
3191
+ warning: "warning";
3192
+ error: "error";
3193
+ }>;
3194
+ count: z.ZodNumber;
3195
+ errors: z.ZodNumber;
3196
+ totalDurationMs: z.ZodNumber;
3197
+ lastSpanIds: z.ZodArray<z.ZodString>;
3198
+ }, z.core.$strip>>;
3199
+ status: z.ZodDefault<z.ZodEnum<{
3200
+ spec_only: "spec_only";
3201
+ implemented: "implemented";
3202
+ verified: "verified";
3203
+ connected: "connected";
3204
+ }>>;
3205
+ specDraft: z.ZodOptional<z.ZodString>;
3206
+ implementationDraft: z.ZodOptional<z.ZodString>;
3207
+ lastVerification: z.ZodOptional<z.ZodObject<{
3208
+ verifiedAt: z.ZodString;
3209
+ status: z.ZodEnum<{
3210
+ success: "success";
3211
+ failure: "failure";
3212
+ }>;
3213
+ stdout: z.ZodString;
3214
+ stderr: z.ZodString;
3215
+ exitCode: z.ZodOptional<z.ZodNumber>;
3216
+ }, z.core.$strip>>;
3217
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3218
+ serverUrl: z.ZodString;
3219
+ label: z.ZodOptional<z.ZodString>;
3220
+ headersRef: z.ZodOptional<z.ZodString>;
3221
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3222
+ }, z.core.$strip>>>;
3223
+ }, z.core.$strip>>;
3224
+ after: z.ZodOptional<z.ZodObject<{
3225
+ id: z.ZodString;
3226
+ kind: z.ZodEnum<{
3227
+ function: "function";
3228
+ module: "module";
3229
+ api: "api";
3230
+ class: "class";
3231
+ "ui-screen": "ui-screen";
3232
+ }>;
3233
+ name: z.ZodString;
3234
+ summary: z.ZodString;
3235
+ path: z.ZodOptional<z.ZodString>;
3236
+ ownerId: z.ZodOptional<z.ZodString>;
3237
+ signature: z.ZodOptional<z.ZodString>;
3238
+ contract: z.ZodObject<{
3239
+ summary: z.ZodString;
3240
+ responsibilities: z.ZodArray<z.ZodString>;
3241
+ inputs: z.ZodArray<z.ZodObject<{
3242
+ name: z.ZodString;
3243
+ type: z.ZodString;
3244
+ description: z.ZodOptional<z.ZodString>;
3245
+ }, z.core.$strip>>;
3246
+ outputs: z.ZodArray<z.ZodObject<{
3247
+ name: z.ZodString;
3248
+ type: z.ZodString;
3249
+ description: z.ZodOptional<z.ZodString>;
3250
+ }, z.core.$strip>>;
3251
+ attributes: z.ZodArray<z.ZodObject<{
3252
+ name: z.ZodString;
3253
+ type: z.ZodString;
3254
+ description: z.ZodOptional<z.ZodString>;
3255
+ }, z.core.$strip>>;
3256
+ methods: z.ZodArray<z.ZodObject<{
3257
+ name: z.ZodString;
3258
+ signature: z.ZodOptional<z.ZodString>;
3259
+ summary: z.ZodString;
3260
+ inputs: z.ZodArray<z.ZodObject<{
3261
+ name: z.ZodString;
3262
+ type: z.ZodString;
3263
+ description: z.ZodOptional<z.ZodString>;
3264
+ }, z.core.$strip>>;
3265
+ outputs: z.ZodArray<z.ZodObject<{
3266
+ name: z.ZodString;
3267
+ type: z.ZodString;
3268
+ description: z.ZodOptional<z.ZodString>;
3269
+ }, z.core.$strip>>;
3270
+ sideEffects: z.ZodArray<z.ZodString>;
3271
+ calls: z.ZodArray<z.ZodObject<{
3272
+ target: z.ZodString;
3273
+ kind: z.ZodOptional<z.ZodEnum<{
3274
+ imports: "imports";
3275
+ calls: "calls";
3276
+ inherits: "inherits";
3277
+ renders: "renders";
3278
+ emits: "emits";
3279
+ consumes: "consumes";
3280
+ "reads-state": "reads-state";
3281
+ "writes-state": "writes-state";
3282
+ }>>;
3283
+ description: z.ZodOptional<z.ZodString>;
3284
+ }, z.core.$strip>>;
3285
+ }, z.core.$strip>>;
3286
+ sideEffects: z.ZodArray<z.ZodString>;
3287
+ errors: z.ZodArray<z.ZodString>;
3288
+ dependencies: z.ZodArray<z.ZodString>;
3289
+ calls: z.ZodArray<z.ZodObject<{
3290
+ target: z.ZodString;
3291
+ kind: z.ZodOptional<z.ZodEnum<{
3292
+ imports: "imports";
3293
+ calls: "calls";
3294
+ inherits: "inherits";
3295
+ renders: "renders";
3296
+ emits: "emits";
3297
+ consumes: "consumes";
3298
+ "reads-state": "reads-state";
3299
+ "writes-state": "writes-state";
3300
+ }>>;
3301
+ description: z.ZodOptional<z.ZodString>;
3302
+ }, z.core.$strip>>;
3303
+ uiAccess: z.ZodArray<z.ZodString>;
3304
+ backendAccess: z.ZodArray<z.ZodString>;
3305
+ notes: z.ZodArray<z.ZodString>;
3306
+ }, z.core.$strip>;
3307
+ sourceRefs: z.ZodArray<z.ZodObject<{
3308
+ kind: z.ZodEnum<{
3309
+ prd: "prd";
3310
+ repo: "repo";
3311
+ generated: "generated";
3312
+ trace: "trace";
3313
+ }>;
3314
+ path: z.ZodOptional<z.ZodString>;
3315
+ symbol: z.ZodOptional<z.ZodString>;
3316
+ section: z.ZodOptional<z.ZodString>;
3317
+ detail: z.ZodOptional<z.ZodString>;
3318
+ }, z.core.$strip>>;
3319
+ generatedRefs: z.ZodArray<z.ZodString>;
3320
+ traceRefs: z.ZodArray<z.ZodString>;
3321
+ traceState: z.ZodOptional<z.ZodObject<{
3322
+ status: z.ZodEnum<{
3323
+ idle: "idle";
3324
+ success: "success";
3325
+ warning: "warning";
3326
+ error: "error";
3327
+ }>;
3328
+ count: z.ZodNumber;
3329
+ errors: z.ZodNumber;
3330
+ totalDurationMs: z.ZodNumber;
3331
+ lastSpanIds: z.ZodArray<z.ZodString>;
3332
+ }, z.core.$strip>>;
3333
+ status: z.ZodDefault<z.ZodEnum<{
3334
+ spec_only: "spec_only";
3335
+ implemented: "implemented";
3336
+ verified: "verified";
3337
+ connected: "connected";
3338
+ }>>;
3339
+ specDraft: z.ZodOptional<z.ZodString>;
3340
+ implementationDraft: z.ZodOptional<z.ZodString>;
3341
+ lastVerification: z.ZodOptional<z.ZodObject<{
3342
+ verifiedAt: z.ZodString;
3343
+ status: z.ZodEnum<{
3344
+ success: "success";
3345
+ failure: "failure";
3346
+ }>;
3347
+ stdout: z.ZodString;
3348
+ stderr: z.ZodString;
3349
+ exitCode: z.ZodOptional<z.ZodNumber>;
3350
+ }, z.core.$strip>>;
3351
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3352
+ serverUrl: z.ZodString;
3353
+ label: z.ZodOptional<z.ZodString>;
3354
+ headersRef: z.ZodOptional<z.ZodString>;
3355
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3356
+ }, z.core.$strip>>>;
3357
+ }, z.core.$strip>>;
3358
+ impactedEdgeCount: z.ZodNumber;
3359
+ }, z.core.$strip>;
3360
+ export type NodeDiff = z.infer<typeof nodeDiffSchema>;
3361
+ export declare const edgeDiffSchema: z.ZodObject<{
3362
+ from: z.ZodString;
3363
+ to: z.ZodString;
3364
+ edgeKind: z.ZodEnum<{
3365
+ imports: "imports";
3366
+ calls: "calls";
3367
+ inherits: "inherits";
3368
+ renders: "renders";
3369
+ emits: "emits";
3370
+ consumes: "consumes";
3371
+ "reads-state": "reads-state";
3372
+ "writes-state": "writes-state";
3373
+ }>;
3374
+ diffKind: z.ZodEnum<{
3375
+ added: "added";
3376
+ removed: "removed";
3377
+ unchanged: "unchanged";
3378
+ }>;
3379
+ }, z.core.$strip>;
3380
+ export type EdgeDiff = z.infer<typeof edgeDiffSchema>;
3381
+ export declare const branchDiffSchema: z.ZodObject<{
3382
+ baseId: z.ZodString;
3383
+ compareId: z.ZodString;
3384
+ addedNodes: z.ZodNumber;
3385
+ removedNodes: z.ZodNumber;
3386
+ modifiedNodes: z.ZodNumber;
3387
+ addedEdges: z.ZodNumber;
3388
+ removedEdges: z.ZodNumber;
3389
+ impactedNodeIds: z.ZodArray<z.ZodString>;
3390
+ nodeDiffs: z.ZodArray<z.ZodObject<{
3391
+ nodeId: z.ZodString;
3392
+ name: z.ZodString;
3393
+ kind: z.ZodEnum<{
3394
+ added: "added";
3395
+ removed: "removed";
3396
+ modified: "modified";
3397
+ unchanged: "unchanged";
3398
+ }>;
3399
+ before: z.ZodOptional<z.ZodObject<{
3400
+ id: z.ZodString;
3401
+ kind: z.ZodEnum<{
3402
+ function: "function";
3403
+ module: "module";
3404
+ api: "api";
3405
+ class: "class";
3406
+ "ui-screen": "ui-screen";
3407
+ }>;
3408
+ name: z.ZodString;
3409
+ summary: z.ZodString;
3410
+ path: z.ZodOptional<z.ZodString>;
3411
+ ownerId: z.ZodOptional<z.ZodString>;
3412
+ signature: z.ZodOptional<z.ZodString>;
3413
+ contract: z.ZodObject<{
3414
+ summary: z.ZodString;
3415
+ responsibilities: z.ZodArray<z.ZodString>;
3416
+ inputs: z.ZodArray<z.ZodObject<{
3417
+ name: z.ZodString;
3418
+ type: z.ZodString;
3419
+ description: z.ZodOptional<z.ZodString>;
3420
+ }, z.core.$strip>>;
3421
+ outputs: z.ZodArray<z.ZodObject<{
3422
+ name: z.ZodString;
3423
+ type: z.ZodString;
3424
+ description: z.ZodOptional<z.ZodString>;
3425
+ }, z.core.$strip>>;
3426
+ attributes: z.ZodArray<z.ZodObject<{
3427
+ name: z.ZodString;
3428
+ type: z.ZodString;
3429
+ description: z.ZodOptional<z.ZodString>;
3430
+ }, z.core.$strip>>;
3431
+ methods: z.ZodArray<z.ZodObject<{
3432
+ name: z.ZodString;
3433
+ signature: z.ZodOptional<z.ZodString>;
3434
+ summary: z.ZodString;
3435
+ inputs: z.ZodArray<z.ZodObject<{
3436
+ name: z.ZodString;
3437
+ type: z.ZodString;
3438
+ description: z.ZodOptional<z.ZodString>;
3439
+ }, z.core.$strip>>;
3440
+ outputs: z.ZodArray<z.ZodObject<{
3441
+ name: z.ZodString;
3442
+ type: z.ZodString;
3443
+ description: z.ZodOptional<z.ZodString>;
3444
+ }, z.core.$strip>>;
3445
+ sideEffects: z.ZodArray<z.ZodString>;
3446
+ calls: z.ZodArray<z.ZodObject<{
3447
+ target: z.ZodString;
3448
+ kind: z.ZodOptional<z.ZodEnum<{
3449
+ imports: "imports";
3450
+ calls: "calls";
3451
+ inherits: "inherits";
3452
+ renders: "renders";
3453
+ emits: "emits";
3454
+ consumes: "consumes";
3455
+ "reads-state": "reads-state";
3456
+ "writes-state": "writes-state";
3457
+ }>>;
3458
+ description: z.ZodOptional<z.ZodString>;
3459
+ }, z.core.$strip>>;
3460
+ }, z.core.$strip>>;
3461
+ sideEffects: z.ZodArray<z.ZodString>;
3462
+ errors: z.ZodArray<z.ZodString>;
3463
+ dependencies: z.ZodArray<z.ZodString>;
3464
+ calls: z.ZodArray<z.ZodObject<{
3465
+ target: z.ZodString;
3466
+ kind: z.ZodOptional<z.ZodEnum<{
3467
+ imports: "imports";
3468
+ calls: "calls";
3469
+ inherits: "inherits";
3470
+ renders: "renders";
3471
+ emits: "emits";
3472
+ consumes: "consumes";
3473
+ "reads-state": "reads-state";
3474
+ "writes-state": "writes-state";
3475
+ }>>;
3476
+ description: z.ZodOptional<z.ZodString>;
3477
+ }, z.core.$strip>>;
3478
+ uiAccess: z.ZodArray<z.ZodString>;
3479
+ backendAccess: z.ZodArray<z.ZodString>;
3480
+ notes: z.ZodArray<z.ZodString>;
3481
+ }, z.core.$strip>;
3482
+ sourceRefs: z.ZodArray<z.ZodObject<{
3483
+ kind: z.ZodEnum<{
3484
+ prd: "prd";
3485
+ repo: "repo";
3486
+ generated: "generated";
3487
+ trace: "trace";
3488
+ }>;
3489
+ path: z.ZodOptional<z.ZodString>;
3490
+ symbol: z.ZodOptional<z.ZodString>;
3491
+ section: z.ZodOptional<z.ZodString>;
3492
+ detail: z.ZodOptional<z.ZodString>;
3493
+ }, z.core.$strip>>;
3494
+ generatedRefs: z.ZodArray<z.ZodString>;
3495
+ traceRefs: z.ZodArray<z.ZodString>;
3496
+ traceState: z.ZodOptional<z.ZodObject<{
3497
+ status: z.ZodEnum<{
3498
+ idle: "idle";
3499
+ success: "success";
3500
+ warning: "warning";
3501
+ error: "error";
3502
+ }>;
3503
+ count: z.ZodNumber;
3504
+ errors: z.ZodNumber;
3505
+ totalDurationMs: z.ZodNumber;
3506
+ lastSpanIds: z.ZodArray<z.ZodString>;
3507
+ }, z.core.$strip>>;
3508
+ status: z.ZodDefault<z.ZodEnum<{
3509
+ spec_only: "spec_only";
3510
+ implemented: "implemented";
3511
+ verified: "verified";
3512
+ connected: "connected";
3513
+ }>>;
3514
+ specDraft: z.ZodOptional<z.ZodString>;
3515
+ implementationDraft: z.ZodOptional<z.ZodString>;
3516
+ lastVerification: z.ZodOptional<z.ZodObject<{
3517
+ verifiedAt: z.ZodString;
3518
+ status: z.ZodEnum<{
3519
+ success: "success";
3520
+ failure: "failure";
3521
+ }>;
3522
+ stdout: z.ZodString;
3523
+ stderr: z.ZodString;
3524
+ exitCode: z.ZodOptional<z.ZodNumber>;
3525
+ }, z.core.$strip>>;
3526
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3527
+ serverUrl: z.ZodString;
3528
+ label: z.ZodOptional<z.ZodString>;
3529
+ headersRef: z.ZodOptional<z.ZodString>;
3530
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3531
+ }, z.core.$strip>>>;
3532
+ }, z.core.$strip>>;
3533
+ after: z.ZodOptional<z.ZodObject<{
3534
+ id: z.ZodString;
3535
+ kind: z.ZodEnum<{
3536
+ function: "function";
3537
+ module: "module";
3538
+ api: "api";
3539
+ class: "class";
3540
+ "ui-screen": "ui-screen";
3541
+ }>;
3542
+ name: z.ZodString;
3543
+ summary: z.ZodString;
3544
+ path: z.ZodOptional<z.ZodString>;
3545
+ ownerId: z.ZodOptional<z.ZodString>;
3546
+ signature: z.ZodOptional<z.ZodString>;
3547
+ contract: z.ZodObject<{
3548
+ summary: z.ZodString;
3549
+ responsibilities: z.ZodArray<z.ZodString>;
3550
+ inputs: z.ZodArray<z.ZodObject<{
3551
+ name: z.ZodString;
3552
+ type: z.ZodString;
3553
+ description: z.ZodOptional<z.ZodString>;
3554
+ }, z.core.$strip>>;
3555
+ outputs: z.ZodArray<z.ZodObject<{
3556
+ name: z.ZodString;
3557
+ type: z.ZodString;
3558
+ description: z.ZodOptional<z.ZodString>;
3559
+ }, z.core.$strip>>;
3560
+ attributes: z.ZodArray<z.ZodObject<{
3561
+ name: z.ZodString;
3562
+ type: z.ZodString;
3563
+ description: z.ZodOptional<z.ZodString>;
3564
+ }, z.core.$strip>>;
3565
+ methods: z.ZodArray<z.ZodObject<{
3566
+ name: z.ZodString;
3567
+ signature: z.ZodOptional<z.ZodString>;
3568
+ summary: z.ZodString;
3569
+ inputs: z.ZodArray<z.ZodObject<{
3570
+ name: z.ZodString;
3571
+ type: z.ZodString;
3572
+ description: z.ZodOptional<z.ZodString>;
3573
+ }, z.core.$strip>>;
3574
+ outputs: z.ZodArray<z.ZodObject<{
3575
+ name: z.ZodString;
3576
+ type: z.ZodString;
3577
+ description: z.ZodOptional<z.ZodString>;
3578
+ }, z.core.$strip>>;
3579
+ sideEffects: z.ZodArray<z.ZodString>;
3580
+ calls: z.ZodArray<z.ZodObject<{
3581
+ target: z.ZodString;
3582
+ kind: z.ZodOptional<z.ZodEnum<{
3583
+ imports: "imports";
3584
+ calls: "calls";
3585
+ inherits: "inherits";
3586
+ renders: "renders";
3587
+ emits: "emits";
3588
+ consumes: "consumes";
3589
+ "reads-state": "reads-state";
3590
+ "writes-state": "writes-state";
3591
+ }>>;
3592
+ description: z.ZodOptional<z.ZodString>;
3593
+ }, z.core.$strip>>;
3594
+ }, z.core.$strip>>;
3595
+ sideEffects: z.ZodArray<z.ZodString>;
3596
+ errors: z.ZodArray<z.ZodString>;
3597
+ dependencies: z.ZodArray<z.ZodString>;
3598
+ calls: z.ZodArray<z.ZodObject<{
3599
+ target: z.ZodString;
3600
+ kind: z.ZodOptional<z.ZodEnum<{
3601
+ imports: "imports";
3602
+ calls: "calls";
3603
+ inherits: "inherits";
3604
+ renders: "renders";
3605
+ emits: "emits";
3606
+ consumes: "consumes";
3607
+ "reads-state": "reads-state";
3608
+ "writes-state": "writes-state";
3609
+ }>>;
3610
+ description: z.ZodOptional<z.ZodString>;
3611
+ }, z.core.$strip>>;
3612
+ uiAccess: z.ZodArray<z.ZodString>;
3613
+ backendAccess: z.ZodArray<z.ZodString>;
3614
+ notes: z.ZodArray<z.ZodString>;
3615
+ }, z.core.$strip>;
3616
+ sourceRefs: z.ZodArray<z.ZodObject<{
3617
+ kind: z.ZodEnum<{
3618
+ prd: "prd";
3619
+ repo: "repo";
3620
+ generated: "generated";
3621
+ trace: "trace";
3622
+ }>;
3623
+ path: z.ZodOptional<z.ZodString>;
3624
+ symbol: z.ZodOptional<z.ZodString>;
3625
+ section: z.ZodOptional<z.ZodString>;
3626
+ detail: z.ZodOptional<z.ZodString>;
3627
+ }, z.core.$strip>>;
3628
+ generatedRefs: z.ZodArray<z.ZodString>;
3629
+ traceRefs: z.ZodArray<z.ZodString>;
3630
+ traceState: z.ZodOptional<z.ZodObject<{
3631
+ status: z.ZodEnum<{
3632
+ idle: "idle";
3633
+ success: "success";
3634
+ warning: "warning";
3635
+ error: "error";
3636
+ }>;
3637
+ count: z.ZodNumber;
3638
+ errors: z.ZodNumber;
3639
+ totalDurationMs: z.ZodNumber;
3640
+ lastSpanIds: z.ZodArray<z.ZodString>;
3641
+ }, z.core.$strip>>;
3642
+ status: z.ZodDefault<z.ZodEnum<{
3643
+ spec_only: "spec_only";
3644
+ implemented: "implemented";
3645
+ verified: "verified";
3646
+ connected: "connected";
3647
+ }>>;
3648
+ specDraft: z.ZodOptional<z.ZodString>;
3649
+ implementationDraft: z.ZodOptional<z.ZodString>;
3650
+ lastVerification: z.ZodOptional<z.ZodObject<{
3651
+ verifiedAt: z.ZodString;
3652
+ status: z.ZodEnum<{
3653
+ success: "success";
3654
+ failure: "failure";
3655
+ }>;
3656
+ stdout: z.ZodString;
3657
+ stderr: z.ZodString;
3658
+ exitCode: z.ZodOptional<z.ZodNumber>;
3659
+ }, z.core.$strip>>;
3660
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3661
+ serverUrl: z.ZodString;
3662
+ label: z.ZodOptional<z.ZodString>;
3663
+ headersRef: z.ZodOptional<z.ZodString>;
3664
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3665
+ }, z.core.$strip>>>;
3666
+ }, z.core.$strip>>;
3667
+ impactedEdgeCount: z.ZodNumber;
3668
+ }, z.core.$strip>>;
3669
+ edgeDiffs: z.ZodArray<z.ZodObject<{
3670
+ from: z.ZodString;
3671
+ to: z.ZodString;
3672
+ edgeKind: z.ZodEnum<{
3673
+ imports: "imports";
3674
+ calls: "calls";
3675
+ inherits: "inherits";
3676
+ renders: "renders";
3677
+ emits: "emits";
3678
+ consumes: "consumes";
3679
+ "reads-state": "reads-state";
3680
+ "writes-state": "writes-state";
3681
+ }>;
3682
+ diffKind: z.ZodEnum<{
3683
+ added: "added";
3684
+ removed: "removed";
3685
+ unchanged: "unchanged";
3686
+ }>;
3687
+ }, z.core.$strip>>;
3688
+ }, z.core.$strip>;
3689
+ export type BranchDiff = z.infer<typeof branchDiffSchema>;
3690
+ /**
3691
+ * A single frame in a VCR recording, representing the cumulative state of the
3692
+ * architecture graph immediately after a particular trace span was processed.
3693
+ */
3694
+ export declare const vcrFrameSchema: z.ZodObject<{
3695
+ frameIndex: z.ZodNumber;
3696
+ spanId: z.ZodString;
3697
+ label: z.ZodString;
3698
+ timestamp: z.ZodOptional<z.ZodString>;
3699
+ nodeId: z.ZodOptional<z.ZodString>;
3700
+ nodeName: z.ZodOptional<z.ZodString>;
3701
+ status: z.ZodEnum<{
3702
+ idle: "idle";
3703
+ success: "success";
3704
+ warning: "warning";
3705
+ error: "error";
3706
+ }>;
3707
+ durationMs: z.ZodNumber;
3708
+ nodeStates: z.ZodRecord<z.ZodString, z.ZodObject<{
3709
+ status: z.ZodEnum<{
3710
+ idle: "idle";
3711
+ success: "success";
3712
+ warning: "warning";
3713
+ error: "error";
3714
+ }>;
3715
+ count: z.ZodNumber;
3716
+ errors: z.ZodNumber;
3717
+ totalDurationMs: z.ZodNumber;
3718
+ lastSpanIds: z.ZodArray<z.ZodString>;
3719
+ }, z.core.$strip>>;
3720
+ }, z.core.$strip>;
3721
+ export type VcrFrame = z.infer<typeof vcrFrameSchema>;
3722
+ /** A complete VCR recording derived from an observability snapshot. */
3723
+ export declare const vcrRecordingSchema: z.ZodObject<{
3724
+ projectName: z.ZodString;
3725
+ recordedAt: z.ZodString;
3726
+ frames: z.ZodArray<z.ZodObject<{
3727
+ frameIndex: z.ZodNumber;
3728
+ spanId: z.ZodString;
3729
+ label: z.ZodString;
3730
+ timestamp: z.ZodOptional<z.ZodString>;
3731
+ nodeId: z.ZodOptional<z.ZodString>;
3732
+ nodeName: z.ZodOptional<z.ZodString>;
3733
+ status: z.ZodEnum<{
3734
+ idle: "idle";
3735
+ success: "success";
3736
+ warning: "warning";
3737
+ error: "error";
3738
+ }>;
3739
+ durationMs: z.ZodNumber;
3740
+ nodeStates: z.ZodRecord<z.ZodString, z.ZodObject<{
3741
+ status: z.ZodEnum<{
3742
+ idle: "idle";
3743
+ success: "success";
3744
+ warning: "warning";
3745
+ error: "error";
3746
+ }>;
3747
+ count: z.ZodNumber;
3748
+ errors: z.ZodNumber;
3749
+ totalDurationMs: z.ZodNumber;
3750
+ lastSpanIds: z.ZodArray<z.ZodString>;
3751
+ }, z.core.$strip>>;
3752
+ }, z.core.$strip>>;
3753
+ totalSpans: z.ZodNumber;
3754
+ }, z.core.$strip>;
3755
+ export type VcrRecording = z.infer<typeof vcrRecordingSchema>;
3756
+ /**
3757
+ * A single named user journey inferred from a group of trace spans that share
3758
+ * the same traceId. The steps are the node IDs visited in chronological order.
3759
+ */
3760
+ export declare const userFlowSchema: z.ZodObject<{
3761
+ traceId: z.ZodString;
3762
+ name: z.ZodString;
3763
+ nodeIds: z.ZodArray<z.ZodString>;
3764
+ startedAt: z.ZodOptional<z.ZodString>;
3765
+ endedAt: z.ZodOptional<z.ZodString>;
3766
+ status: z.ZodEnum<{
3767
+ success: "success";
3768
+ warning: "warning";
3769
+ error: "error";
3770
+ }>;
3771
+ provenance: z.ZodEnum<{
3772
+ deterministic: "deterministic";
3773
+ ai: "ai";
3774
+ heuristic: "heuristic";
3775
+ simulated: "simulated";
3776
+ observed: "observed";
3777
+ }>;
3778
+ totalDurationMs: z.ZodNumber;
3779
+ spanCount: z.ZodNumber;
3780
+ }, z.core.$strip>;
3781
+ export type UserFlow = z.infer<typeof userFlowSchema>;
3782
+ /**
3783
+ * A point-in-time snapshot of the Digital Twin state: which nodes are active
3784
+ * right now and what user flows have been observed.
3785
+ */
3786
+ export declare const digitalTwinSnapshotSchema: z.ZodObject<{
3787
+ projectName: z.ZodString;
3788
+ computedAt: z.ZodString;
3789
+ maturity: z.ZodEnum<{
3790
+ production: "production";
3791
+ preview: "preview";
3792
+ experimental: "experimental";
3793
+ scaffold: "scaffold";
3794
+ }>;
3795
+ activeNodeIds: z.ZodArray<z.ZodString>;
3796
+ flows: z.ZodArray<z.ZodObject<{
3797
+ traceId: z.ZodString;
3798
+ name: z.ZodString;
3799
+ nodeIds: z.ZodArray<z.ZodString>;
3800
+ startedAt: z.ZodOptional<z.ZodString>;
3801
+ endedAt: z.ZodOptional<z.ZodString>;
3802
+ status: z.ZodEnum<{
3803
+ success: "success";
3804
+ warning: "warning";
3805
+ error: "error";
3806
+ }>;
3807
+ provenance: z.ZodEnum<{
3808
+ deterministic: "deterministic";
3809
+ ai: "ai";
3810
+ heuristic: "heuristic";
3811
+ simulated: "simulated";
3812
+ observed: "observed";
3813
+ }>;
3814
+ totalDurationMs: z.ZodNumber;
3815
+ spanCount: z.ZodNumber;
3816
+ }, z.core.$strip>>;
3817
+ observedSpanCount: z.ZodNumber;
3818
+ simulatedSpanCount: z.ZodNumber;
3819
+ observedFlowCount: z.ZodNumber;
3820
+ simulatedFlowCount: z.ZodNumber;
3821
+ activeWindowSecs: z.ZodNumber;
3822
+ }, z.core.$strip>;
3823
+ export type DigitalTwinSnapshot = z.infer<typeof digitalTwinSnapshotSchema>;
3824
+ /**
3825
+ * Request body for POST /api/digital-twin/simulate.
3826
+ * Describes a user action that should be simulated in the Digital Twin.
3827
+ */
3828
+ export declare const simulateActionRequestSchema: z.ZodObject<{
3829
+ projectName: z.ZodString;
3830
+ nodeIds: z.ZodArray<z.ZodString>;
3831
+ label: z.ZodOptional<z.ZodString>;
3832
+ runtime: z.ZodOptional<z.ZodString>;
3833
+ }, z.core.$strip>;
3834
+ export type SimulateActionRequest = z.infer<typeof simulateActionRequestSchema>;
3835
+ /** The architectural style applied to a generated variant. */
3836
+ export declare const architectureStyleSchema: z.ZodEnum<{
3837
+ monolith: "monolith";
3838
+ microservices: "microservices";
3839
+ serverless: "serverless";
3840
+ }>;
3841
+ export type ArchitectureStyle = z.infer<typeof architectureStyleSchema>;
3842
+ /** Benchmark scores (0–100, higher is better) for a single architecture variant. */
3843
+ export declare const variantBenchmarkSchema: z.ZodObject<{
3844
+ scalability: z.ZodNumber;
3845
+ estimatedCostScore: z.ZodNumber;
3846
+ performance: z.ZodNumber;
3847
+ maintainability: z.ZodNumber;
3848
+ fitness: z.ZodNumber;
3849
+ }, z.core.$strip>;
3850
+ export type VariantBenchmark = z.infer<typeof variantBenchmarkSchema>;
3851
+ /** A single architecture variant produced during the evolutionary tournament. */
3852
+ export declare const architectureVariantSchema: z.ZodObject<{
3853
+ id: z.ZodString;
3854
+ style: z.ZodEnum<{
3855
+ monolith: "monolith";
3856
+ microservices: "microservices";
3857
+ serverless: "serverless";
3858
+ }>;
3859
+ generation: z.ZodNumber;
3860
+ graph: z.ZodObject<{
3861
+ projectName: z.ZodString;
3862
+ mode: z.ZodEnum<{
3863
+ essential: "essential";
3864
+ yolo: "yolo";
3865
+ }>;
3866
+ phase: z.ZodDefault<z.ZodEnum<{
3867
+ spec: "spec";
3868
+ implementation: "implementation";
3869
+ integration: "integration";
3870
+ }>>;
3871
+ generatedAt: z.ZodString;
3872
+ nodes: z.ZodArray<z.ZodObject<{
3873
+ id: z.ZodString;
3874
+ kind: z.ZodEnum<{
3875
+ function: "function";
3876
+ module: "module";
3877
+ api: "api";
3878
+ class: "class";
3879
+ "ui-screen": "ui-screen";
3880
+ }>;
3881
+ name: z.ZodString;
3882
+ summary: z.ZodString;
3883
+ path: z.ZodOptional<z.ZodString>;
3884
+ ownerId: z.ZodOptional<z.ZodString>;
3885
+ signature: z.ZodOptional<z.ZodString>;
3886
+ contract: z.ZodObject<{
3887
+ summary: z.ZodString;
3888
+ responsibilities: z.ZodArray<z.ZodString>;
3889
+ inputs: z.ZodArray<z.ZodObject<{
3890
+ name: z.ZodString;
3891
+ type: z.ZodString;
3892
+ description: z.ZodOptional<z.ZodString>;
3893
+ }, z.core.$strip>>;
3894
+ outputs: z.ZodArray<z.ZodObject<{
3895
+ name: z.ZodString;
3896
+ type: z.ZodString;
3897
+ description: z.ZodOptional<z.ZodString>;
3898
+ }, z.core.$strip>>;
3899
+ attributes: z.ZodArray<z.ZodObject<{
3900
+ name: z.ZodString;
3901
+ type: z.ZodString;
3902
+ description: z.ZodOptional<z.ZodString>;
3903
+ }, z.core.$strip>>;
3904
+ methods: z.ZodArray<z.ZodObject<{
3905
+ name: z.ZodString;
3906
+ signature: z.ZodOptional<z.ZodString>;
3907
+ summary: z.ZodString;
3908
+ inputs: z.ZodArray<z.ZodObject<{
3909
+ name: z.ZodString;
3910
+ type: z.ZodString;
3911
+ description: z.ZodOptional<z.ZodString>;
3912
+ }, z.core.$strip>>;
3913
+ outputs: z.ZodArray<z.ZodObject<{
3914
+ name: z.ZodString;
3915
+ type: z.ZodString;
3916
+ description: z.ZodOptional<z.ZodString>;
3917
+ }, z.core.$strip>>;
3918
+ sideEffects: z.ZodArray<z.ZodString>;
3919
+ calls: z.ZodArray<z.ZodObject<{
3920
+ target: z.ZodString;
3921
+ kind: z.ZodOptional<z.ZodEnum<{
3922
+ imports: "imports";
3923
+ calls: "calls";
3924
+ inherits: "inherits";
3925
+ renders: "renders";
3926
+ emits: "emits";
3927
+ consumes: "consumes";
3928
+ "reads-state": "reads-state";
3929
+ "writes-state": "writes-state";
3930
+ }>>;
3931
+ description: z.ZodOptional<z.ZodString>;
3932
+ }, z.core.$strip>>;
3933
+ }, z.core.$strip>>;
3934
+ sideEffects: z.ZodArray<z.ZodString>;
3935
+ errors: z.ZodArray<z.ZodString>;
3936
+ dependencies: z.ZodArray<z.ZodString>;
3937
+ calls: z.ZodArray<z.ZodObject<{
3938
+ target: z.ZodString;
3939
+ kind: z.ZodOptional<z.ZodEnum<{
3940
+ imports: "imports";
3941
+ calls: "calls";
3942
+ inherits: "inherits";
3943
+ renders: "renders";
3944
+ emits: "emits";
3945
+ consumes: "consumes";
3946
+ "reads-state": "reads-state";
3947
+ "writes-state": "writes-state";
3948
+ }>>;
3949
+ description: z.ZodOptional<z.ZodString>;
3950
+ }, z.core.$strip>>;
3951
+ uiAccess: z.ZodArray<z.ZodString>;
3952
+ backendAccess: z.ZodArray<z.ZodString>;
3953
+ notes: z.ZodArray<z.ZodString>;
3954
+ }, z.core.$strip>;
3955
+ sourceRefs: z.ZodArray<z.ZodObject<{
3956
+ kind: z.ZodEnum<{
3957
+ prd: "prd";
3958
+ repo: "repo";
3959
+ generated: "generated";
3960
+ trace: "trace";
3961
+ }>;
3962
+ path: z.ZodOptional<z.ZodString>;
3963
+ symbol: z.ZodOptional<z.ZodString>;
3964
+ section: z.ZodOptional<z.ZodString>;
3965
+ detail: z.ZodOptional<z.ZodString>;
3966
+ }, z.core.$strip>>;
3967
+ generatedRefs: z.ZodArray<z.ZodString>;
3968
+ traceRefs: z.ZodArray<z.ZodString>;
3969
+ traceState: z.ZodOptional<z.ZodObject<{
3970
+ status: z.ZodEnum<{
3971
+ idle: "idle";
3972
+ success: "success";
3973
+ warning: "warning";
3974
+ error: "error";
3975
+ }>;
3976
+ count: z.ZodNumber;
3977
+ errors: z.ZodNumber;
3978
+ totalDurationMs: z.ZodNumber;
3979
+ lastSpanIds: z.ZodArray<z.ZodString>;
3980
+ }, z.core.$strip>>;
3981
+ status: z.ZodDefault<z.ZodEnum<{
3982
+ spec_only: "spec_only";
3983
+ implemented: "implemented";
3984
+ verified: "verified";
3985
+ connected: "connected";
3986
+ }>>;
3987
+ specDraft: z.ZodOptional<z.ZodString>;
3988
+ implementationDraft: z.ZodOptional<z.ZodString>;
3989
+ lastVerification: z.ZodOptional<z.ZodObject<{
3990
+ verifiedAt: z.ZodString;
3991
+ status: z.ZodEnum<{
3992
+ success: "success";
3993
+ failure: "failure";
3994
+ }>;
3995
+ stdout: z.ZodString;
3996
+ stderr: z.ZodString;
3997
+ exitCode: z.ZodOptional<z.ZodNumber>;
3998
+ }, z.core.$strip>>;
3999
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
4000
+ serverUrl: z.ZodString;
4001
+ label: z.ZodOptional<z.ZodString>;
4002
+ headersRef: z.ZodOptional<z.ZodString>;
4003
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
4004
+ }, z.core.$strip>>>;
4005
+ }, z.core.$strip>>;
4006
+ edges: z.ZodArray<z.ZodObject<{
4007
+ from: z.ZodString;
4008
+ to: z.ZodString;
4009
+ kind: z.ZodEnum<{
4010
+ imports: "imports";
4011
+ calls: "calls";
4012
+ inherits: "inherits";
4013
+ renders: "renders";
4014
+ emits: "emits";
4015
+ consumes: "consumes";
4016
+ "reads-state": "reads-state";
4017
+ "writes-state": "writes-state";
4018
+ }>;
4019
+ label: z.ZodOptional<z.ZodString>;
4020
+ required: z.ZodBoolean;
4021
+ confidence: z.ZodNumber;
4022
+ }, z.core.$strip>>;
4023
+ workflows: z.ZodArray<z.ZodObject<{
4024
+ name: z.ZodString;
4025
+ steps: z.ZodArray<z.ZodString>;
4026
+ }, z.core.$strip>>;
4027
+ warnings: z.ZodArray<z.ZodString>;
4028
+ }, z.core.$strip>;
4029
+ benchmark: z.ZodObject<{
4030
+ scalability: z.ZodNumber;
4031
+ estimatedCostScore: z.ZodNumber;
4032
+ performance: z.ZodNumber;
4033
+ maintainability: z.ZodNumber;
4034
+ fitness: z.ZodNumber;
4035
+ }, z.core.$strip>;
4036
+ provenance: z.ZodEnum<{
4037
+ deterministic: "deterministic";
4038
+ ai: "ai";
4039
+ heuristic: "heuristic";
4040
+ simulated: "simulated";
4041
+ observed: "observed";
4042
+ }>;
4043
+ maturity: z.ZodEnum<{
4044
+ production: "production";
4045
+ preview: "preview";
4046
+ experimental: "experimental";
4047
+ scaffold: "scaffold";
4048
+ }>;
4049
+ rank: z.ZodNumber;
4050
+ }, z.core.$strip>;
4051
+ export type ArchitectureVariant = z.infer<typeof architectureVariantSchema>;
4052
+ /** Complete result of a genetic architecture tournament. */
4053
+ export declare const tournamentResultSchema: z.ZodObject<{
4054
+ projectName: z.ZodString;
4055
+ evolvedAt: z.ZodString;
4056
+ provenance: z.ZodEnum<{
4057
+ deterministic: "deterministic";
4058
+ ai: "ai";
4059
+ heuristic: "heuristic";
4060
+ simulated: "simulated";
4061
+ observed: "observed";
4062
+ }>;
4063
+ maturity: z.ZodEnum<{
4064
+ production: "production";
4065
+ preview: "preview";
4066
+ experimental: "experimental";
4067
+ scaffold: "scaffold";
4068
+ }>;
4069
+ generationCount: z.ZodNumber;
4070
+ populationSize: z.ZodNumber;
4071
+ variants: z.ZodArray<z.ZodObject<{
4072
+ id: z.ZodString;
4073
+ style: z.ZodEnum<{
4074
+ monolith: "monolith";
4075
+ microservices: "microservices";
4076
+ serverless: "serverless";
4077
+ }>;
4078
+ generation: z.ZodNumber;
4079
+ graph: z.ZodObject<{
4080
+ projectName: z.ZodString;
4081
+ mode: z.ZodEnum<{
4082
+ essential: "essential";
4083
+ yolo: "yolo";
4084
+ }>;
4085
+ phase: z.ZodDefault<z.ZodEnum<{
4086
+ spec: "spec";
4087
+ implementation: "implementation";
4088
+ integration: "integration";
4089
+ }>>;
4090
+ generatedAt: z.ZodString;
4091
+ nodes: z.ZodArray<z.ZodObject<{
4092
+ id: z.ZodString;
4093
+ kind: z.ZodEnum<{
4094
+ function: "function";
4095
+ module: "module";
4096
+ api: "api";
4097
+ class: "class";
4098
+ "ui-screen": "ui-screen";
4099
+ }>;
4100
+ name: z.ZodString;
4101
+ summary: z.ZodString;
4102
+ path: z.ZodOptional<z.ZodString>;
4103
+ ownerId: z.ZodOptional<z.ZodString>;
4104
+ signature: z.ZodOptional<z.ZodString>;
4105
+ contract: z.ZodObject<{
4106
+ summary: z.ZodString;
4107
+ responsibilities: z.ZodArray<z.ZodString>;
4108
+ inputs: z.ZodArray<z.ZodObject<{
4109
+ name: z.ZodString;
4110
+ type: z.ZodString;
4111
+ description: z.ZodOptional<z.ZodString>;
4112
+ }, z.core.$strip>>;
4113
+ outputs: z.ZodArray<z.ZodObject<{
4114
+ name: z.ZodString;
4115
+ type: z.ZodString;
4116
+ description: z.ZodOptional<z.ZodString>;
4117
+ }, z.core.$strip>>;
4118
+ attributes: z.ZodArray<z.ZodObject<{
4119
+ name: z.ZodString;
4120
+ type: z.ZodString;
4121
+ description: z.ZodOptional<z.ZodString>;
4122
+ }, z.core.$strip>>;
4123
+ methods: z.ZodArray<z.ZodObject<{
4124
+ name: z.ZodString;
4125
+ signature: z.ZodOptional<z.ZodString>;
4126
+ summary: z.ZodString;
4127
+ inputs: z.ZodArray<z.ZodObject<{
4128
+ name: z.ZodString;
4129
+ type: z.ZodString;
4130
+ description: z.ZodOptional<z.ZodString>;
4131
+ }, z.core.$strip>>;
4132
+ outputs: z.ZodArray<z.ZodObject<{
4133
+ name: z.ZodString;
4134
+ type: z.ZodString;
4135
+ description: z.ZodOptional<z.ZodString>;
4136
+ }, z.core.$strip>>;
4137
+ sideEffects: z.ZodArray<z.ZodString>;
4138
+ calls: z.ZodArray<z.ZodObject<{
4139
+ target: z.ZodString;
4140
+ kind: z.ZodOptional<z.ZodEnum<{
4141
+ imports: "imports";
4142
+ calls: "calls";
4143
+ inherits: "inherits";
4144
+ renders: "renders";
4145
+ emits: "emits";
4146
+ consumes: "consumes";
4147
+ "reads-state": "reads-state";
4148
+ "writes-state": "writes-state";
4149
+ }>>;
4150
+ description: z.ZodOptional<z.ZodString>;
4151
+ }, z.core.$strip>>;
4152
+ }, z.core.$strip>>;
4153
+ sideEffects: z.ZodArray<z.ZodString>;
4154
+ errors: z.ZodArray<z.ZodString>;
4155
+ dependencies: z.ZodArray<z.ZodString>;
4156
+ calls: z.ZodArray<z.ZodObject<{
4157
+ target: z.ZodString;
4158
+ kind: z.ZodOptional<z.ZodEnum<{
4159
+ imports: "imports";
4160
+ calls: "calls";
4161
+ inherits: "inherits";
4162
+ renders: "renders";
4163
+ emits: "emits";
4164
+ consumes: "consumes";
4165
+ "reads-state": "reads-state";
4166
+ "writes-state": "writes-state";
4167
+ }>>;
4168
+ description: z.ZodOptional<z.ZodString>;
4169
+ }, z.core.$strip>>;
4170
+ uiAccess: z.ZodArray<z.ZodString>;
4171
+ backendAccess: z.ZodArray<z.ZodString>;
4172
+ notes: z.ZodArray<z.ZodString>;
4173
+ }, z.core.$strip>;
4174
+ sourceRefs: z.ZodArray<z.ZodObject<{
4175
+ kind: z.ZodEnum<{
4176
+ prd: "prd";
4177
+ repo: "repo";
4178
+ generated: "generated";
4179
+ trace: "trace";
4180
+ }>;
4181
+ path: z.ZodOptional<z.ZodString>;
4182
+ symbol: z.ZodOptional<z.ZodString>;
4183
+ section: z.ZodOptional<z.ZodString>;
4184
+ detail: z.ZodOptional<z.ZodString>;
4185
+ }, z.core.$strip>>;
4186
+ generatedRefs: z.ZodArray<z.ZodString>;
4187
+ traceRefs: z.ZodArray<z.ZodString>;
4188
+ traceState: z.ZodOptional<z.ZodObject<{
4189
+ status: z.ZodEnum<{
4190
+ idle: "idle";
4191
+ success: "success";
4192
+ warning: "warning";
4193
+ error: "error";
4194
+ }>;
4195
+ count: z.ZodNumber;
4196
+ errors: z.ZodNumber;
4197
+ totalDurationMs: z.ZodNumber;
4198
+ lastSpanIds: z.ZodArray<z.ZodString>;
4199
+ }, z.core.$strip>>;
4200
+ status: z.ZodDefault<z.ZodEnum<{
4201
+ spec_only: "spec_only";
4202
+ implemented: "implemented";
4203
+ verified: "verified";
4204
+ connected: "connected";
4205
+ }>>;
4206
+ specDraft: z.ZodOptional<z.ZodString>;
4207
+ implementationDraft: z.ZodOptional<z.ZodString>;
4208
+ lastVerification: z.ZodOptional<z.ZodObject<{
4209
+ verifiedAt: z.ZodString;
4210
+ status: z.ZodEnum<{
4211
+ success: "success";
4212
+ failure: "failure";
4213
+ }>;
4214
+ stdout: z.ZodString;
4215
+ stderr: z.ZodString;
4216
+ exitCode: z.ZodOptional<z.ZodNumber>;
4217
+ }, z.core.$strip>>;
4218
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
4219
+ serverUrl: z.ZodString;
4220
+ label: z.ZodOptional<z.ZodString>;
4221
+ headersRef: z.ZodOptional<z.ZodString>;
4222
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
4223
+ }, z.core.$strip>>>;
4224
+ }, z.core.$strip>>;
4225
+ edges: z.ZodArray<z.ZodObject<{
4226
+ from: z.ZodString;
4227
+ to: z.ZodString;
4228
+ kind: z.ZodEnum<{
4229
+ imports: "imports";
4230
+ calls: "calls";
4231
+ inherits: "inherits";
4232
+ renders: "renders";
4233
+ emits: "emits";
4234
+ consumes: "consumes";
4235
+ "reads-state": "reads-state";
4236
+ "writes-state": "writes-state";
4237
+ }>;
4238
+ label: z.ZodOptional<z.ZodString>;
4239
+ required: z.ZodBoolean;
4240
+ confidence: z.ZodNumber;
4241
+ }, z.core.$strip>>;
4242
+ workflows: z.ZodArray<z.ZodObject<{
4243
+ name: z.ZodString;
4244
+ steps: z.ZodArray<z.ZodString>;
4245
+ }, z.core.$strip>>;
4246
+ warnings: z.ZodArray<z.ZodString>;
4247
+ }, z.core.$strip>;
4248
+ benchmark: z.ZodObject<{
4249
+ scalability: z.ZodNumber;
4250
+ estimatedCostScore: z.ZodNumber;
4251
+ performance: z.ZodNumber;
4252
+ maintainability: z.ZodNumber;
4253
+ fitness: z.ZodNumber;
4254
+ }, z.core.$strip>;
4255
+ provenance: z.ZodEnum<{
4256
+ deterministic: "deterministic";
4257
+ ai: "ai";
4258
+ heuristic: "heuristic";
4259
+ simulated: "simulated";
4260
+ observed: "observed";
4261
+ }>;
4262
+ maturity: z.ZodEnum<{
4263
+ production: "production";
4264
+ preview: "preview";
4265
+ experimental: "experimental";
4266
+ scaffold: "scaffold";
4267
+ }>;
4268
+ rank: z.ZodNumber;
4269
+ }, z.core.$strip>>;
4270
+ winnerId: z.ZodString;
4271
+ summary: z.ZodString;
4272
+ }, z.core.$strip>;
4273
+ export type TournamentResult = z.infer<typeof tournamentResultSchema>;
4274
+ /** Request body for POST /api/genetic/evolve. */
4275
+ export declare const evolveArchitectureRequestSchema: z.ZodObject<{
4276
+ graph: z.ZodObject<{
4277
+ projectName: z.ZodString;
4278
+ mode: z.ZodEnum<{
4279
+ essential: "essential";
4280
+ yolo: "yolo";
4281
+ }>;
4282
+ phase: z.ZodDefault<z.ZodEnum<{
4283
+ spec: "spec";
4284
+ implementation: "implementation";
4285
+ integration: "integration";
4286
+ }>>;
4287
+ generatedAt: z.ZodString;
4288
+ nodes: z.ZodArray<z.ZodObject<{
4289
+ id: z.ZodString;
4290
+ kind: z.ZodEnum<{
4291
+ function: "function";
4292
+ module: "module";
4293
+ api: "api";
4294
+ class: "class";
4295
+ "ui-screen": "ui-screen";
4296
+ }>;
4297
+ name: z.ZodString;
4298
+ summary: z.ZodString;
4299
+ path: z.ZodOptional<z.ZodString>;
4300
+ ownerId: z.ZodOptional<z.ZodString>;
4301
+ signature: z.ZodOptional<z.ZodString>;
4302
+ contract: z.ZodObject<{
4303
+ summary: z.ZodString;
4304
+ responsibilities: z.ZodArray<z.ZodString>;
4305
+ inputs: z.ZodArray<z.ZodObject<{
4306
+ name: z.ZodString;
4307
+ type: z.ZodString;
4308
+ description: z.ZodOptional<z.ZodString>;
4309
+ }, z.core.$strip>>;
4310
+ outputs: z.ZodArray<z.ZodObject<{
4311
+ name: z.ZodString;
4312
+ type: z.ZodString;
4313
+ description: z.ZodOptional<z.ZodString>;
4314
+ }, z.core.$strip>>;
4315
+ attributes: z.ZodArray<z.ZodObject<{
4316
+ name: z.ZodString;
4317
+ type: z.ZodString;
4318
+ description: z.ZodOptional<z.ZodString>;
4319
+ }, z.core.$strip>>;
4320
+ methods: z.ZodArray<z.ZodObject<{
4321
+ name: z.ZodString;
4322
+ signature: z.ZodOptional<z.ZodString>;
4323
+ summary: z.ZodString;
4324
+ inputs: z.ZodArray<z.ZodObject<{
4325
+ name: z.ZodString;
4326
+ type: z.ZodString;
4327
+ description: z.ZodOptional<z.ZodString>;
4328
+ }, z.core.$strip>>;
4329
+ outputs: z.ZodArray<z.ZodObject<{
4330
+ name: z.ZodString;
4331
+ type: z.ZodString;
4332
+ description: z.ZodOptional<z.ZodString>;
4333
+ }, z.core.$strip>>;
4334
+ sideEffects: z.ZodArray<z.ZodString>;
4335
+ calls: z.ZodArray<z.ZodObject<{
4336
+ target: z.ZodString;
4337
+ kind: z.ZodOptional<z.ZodEnum<{
4338
+ imports: "imports";
4339
+ calls: "calls";
4340
+ inherits: "inherits";
4341
+ renders: "renders";
4342
+ emits: "emits";
4343
+ consumes: "consumes";
4344
+ "reads-state": "reads-state";
4345
+ "writes-state": "writes-state";
4346
+ }>>;
4347
+ description: z.ZodOptional<z.ZodString>;
4348
+ }, z.core.$strip>>;
4349
+ }, z.core.$strip>>;
4350
+ sideEffects: z.ZodArray<z.ZodString>;
4351
+ errors: z.ZodArray<z.ZodString>;
4352
+ dependencies: z.ZodArray<z.ZodString>;
4353
+ calls: z.ZodArray<z.ZodObject<{
4354
+ target: z.ZodString;
4355
+ kind: z.ZodOptional<z.ZodEnum<{
4356
+ imports: "imports";
4357
+ calls: "calls";
4358
+ inherits: "inherits";
4359
+ renders: "renders";
4360
+ emits: "emits";
4361
+ consumes: "consumes";
4362
+ "reads-state": "reads-state";
4363
+ "writes-state": "writes-state";
4364
+ }>>;
4365
+ description: z.ZodOptional<z.ZodString>;
4366
+ }, z.core.$strip>>;
4367
+ uiAccess: z.ZodArray<z.ZodString>;
4368
+ backendAccess: z.ZodArray<z.ZodString>;
4369
+ notes: z.ZodArray<z.ZodString>;
4370
+ }, z.core.$strip>;
4371
+ sourceRefs: z.ZodArray<z.ZodObject<{
4372
+ kind: z.ZodEnum<{
4373
+ prd: "prd";
4374
+ repo: "repo";
4375
+ generated: "generated";
4376
+ trace: "trace";
4377
+ }>;
4378
+ path: z.ZodOptional<z.ZodString>;
4379
+ symbol: z.ZodOptional<z.ZodString>;
4380
+ section: z.ZodOptional<z.ZodString>;
4381
+ detail: z.ZodOptional<z.ZodString>;
4382
+ }, z.core.$strip>>;
4383
+ generatedRefs: z.ZodArray<z.ZodString>;
4384
+ traceRefs: z.ZodArray<z.ZodString>;
4385
+ traceState: z.ZodOptional<z.ZodObject<{
4386
+ status: z.ZodEnum<{
4387
+ idle: "idle";
4388
+ success: "success";
4389
+ warning: "warning";
4390
+ error: "error";
4391
+ }>;
4392
+ count: z.ZodNumber;
4393
+ errors: z.ZodNumber;
4394
+ totalDurationMs: z.ZodNumber;
4395
+ lastSpanIds: z.ZodArray<z.ZodString>;
4396
+ }, z.core.$strip>>;
4397
+ status: z.ZodDefault<z.ZodEnum<{
4398
+ spec_only: "spec_only";
4399
+ implemented: "implemented";
4400
+ verified: "verified";
4401
+ connected: "connected";
4402
+ }>>;
4403
+ specDraft: z.ZodOptional<z.ZodString>;
4404
+ implementationDraft: z.ZodOptional<z.ZodString>;
4405
+ lastVerification: z.ZodOptional<z.ZodObject<{
4406
+ verifiedAt: z.ZodString;
4407
+ status: z.ZodEnum<{
4408
+ success: "success";
4409
+ failure: "failure";
4410
+ }>;
4411
+ stdout: z.ZodString;
4412
+ stderr: z.ZodString;
4413
+ exitCode: z.ZodOptional<z.ZodNumber>;
4414
+ }, z.core.$strip>>;
4415
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
4416
+ serverUrl: z.ZodString;
4417
+ label: z.ZodOptional<z.ZodString>;
4418
+ headersRef: z.ZodOptional<z.ZodString>;
4419
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
4420
+ }, z.core.$strip>>>;
4421
+ }, z.core.$strip>>;
4422
+ edges: z.ZodArray<z.ZodObject<{
4423
+ from: z.ZodString;
4424
+ to: z.ZodString;
4425
+ kind: z.ZodEnum<{
4426
+ imports: "imports";
4427
+ calls: "calls";
4428
+ inherits: "inherits";
4429
+ renders: "renders";
4430
+ emits: "emits";
4431
+ consumes: "consumes";
4432
+ "reads-state": "reads-state";
4433
+ "writes-state": "writes-state";
4434
+ }>;
4435
+ label: z.ZodOptional<z.ZodString>;
4436
+ required: z.ZodBoolean;
4437
+ confidence: z.ZodNumber;
4438
+ }, z.core.$strip>>;
4439
+ workflows: z.ZodArray<z.ZodObject<{
4440
+ name: z.ZodString;
4441
+ steps: z.ZodArray<z.ZodString>;
4442
+ }, z.core.$strip>>;
4443
+ warnings: z.ZodArray<z.ZodString>;
4444
+ }, z.core.$strip>;
4445
+ generations: z.ZodDefault<z.ZodNumber>;
4446
+ populationSize: z.ZodDefault<z.ZodNumber>;
4447
+ }, z.core.$strip>;
4448
+ export type EvolveArchitectureRequest = z.infer<typeof evolveArchitectureRequestSchema>;