@ai-dev-orchestrator/schemas 0.1.1

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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -0
  3. package/dist/artifacts/agreement-artifacts.d.ts +311 -0
  4. package/dist/artifacts/agreement-artifacts.js +48 -0
  5. package/dist/artifacts/artifact-dependency-graph.d.ts +775 -0
  6. package/dist/artifacts/artifact-dependency-graph.js +57 -0
  7. package/dist/artifacts/artifact-system.d.ts +657 -0
  8. package/dist/artifacts/artifact-system.js +124 -0
  9. package/dist/artifacts/index.d.ts +3 -0
  10. package/dist/artifacts/index.js +3 -0
  11. package/dist/config/configuration.d.ts +324 -0
  12. package/dist/config/configuration.js +93 -0
  13. package/dist/config/event-bus-config.d.ts +153 -0
  14. package/dist/config/event-bus-config.js +27 -0
  15. package/dist/config/event-payloads.d.ts +919 -0
  16. package/dist/config/event-payloads.js +304 -0
  17. package/dist/config/event-system.d.ts +3231 -0
  18. package/dist/config/event-system.js +428 -0
  19. package/dist/config/event-types.d.ts +62 -0
  20. package/dist/config/event-types.js +66 -0
  21. package/dist/config/index.d.ts +5 -0
  22. package/dist/config/index.js +5 -0
  23. package/dist/dashboard/dashboard-api.d.ts +149 -0
  24. package/dist/dashboard/dashboard-api.js +80 -0
  25. package/dist/dashboard/dashboard-domain.d.ts +1076 -0
  26. package/dist/dashboard/dashboard-domain.js +305 -0
  27. package/dist/dashboard/index.d.ts +3 -0
  28. package/dist/dashboard/index.js +3 -0
  29. package/dist/dashboard/run-creation-params.d.ts +111 -0
  30. package/dist/dashboard/run-creation-params.js +14 -0
  31. package/dist/governance/governance.d.ts +1119 -0
  32. package/dist/governance/governance.js +111 -0
  33. package/dist/governance/index.d.ts +3 -0
  34. package/dist/governance/index.js +3 -0
  35. package/dist/governance/policy-engine.d.ts +634 -0
  36. package/dist/governance/policy-engine.js +214 -0
  37. package/dist/governance/review-resolution.d.ts +1053 -0
  38. package/dist/governance/review-resolution.js +67 -0
  39. package/dist/index.d.ts +10 -0
  40. package/dist/index.js +10 -0
  41. package/dist/observability/diagnostics.d.ts +185 -0
  42. package/dist/observability/diagnostics.js +63 -0
  43. package/dist/observability/index.d.ts +2 -0
  44. package/dist/observability/index.js +2 -0
  45. package/dist/observability/metrics.d.ts +187 -0
  46. package/dist/observability/metrics.js +67 -0
  47. package/dist/persistence/execution-analytics.d.ts +173 -0
  48. package/dist/persistence/execution-analytics.js +71 -0
  49. package/dist/persistence/index.d.ts +5 -0
  50. package/dist/persistence/index.js +5 -0
  51. package/dist/persistence/project-context.d.ts +164 -0
  52. package/dist/persistence/project-context.js +88 -0
  53. package/dist/persistence/repository-model.d.ts +27 -0
  54. package/dist/persistence/repository-model.js +16 -0
  55. package/dist/persistence/run-manifest.d.ts +422 -0
  56. package/dist/persistence/run-manifest.js +118 -0
  57. package/dist/persistence/state-persistence.d.ts +276 -0
  58. package/dist/persistence/state-persistence.js +83 -0
  59. package/dist/runner/built-in-runner-ids.d.ts +8 -0
  60. package/dist/runner/built-in-runner-ids.js +11 -0
  61. package/dist/runner/collaboration-model.d.ts +100 -0
  62. package/dist/runner/collaboration-model.js +19 -0
  63. package/dist/runner/confidence.d.ts +17 -0
  64. package/dist/runner/confidence.js +11 -0
  65. package/dist/runner/index.d.ts +8 -0
  66. package/dist/runner/index.js +8 -0
  67. package/dist/runner/permission-approval.d.ts +38 -0
  68. package/dist/runner/permission-approval.js +14 -0
  69. package/dist/runner/prompt-engine.d.ts +1467 -0
  70. package/dist/runner/prompt-engine.js +193 -0
  71. package/dist/runner/role-system.d.ts +458 -0
  72. package/dist/runner/role-system.js +94 -0
  73. package/dist/runner/runner-system.d.ts +1721 -0
  74. package/dist/runner/runner-system.js +268 -0
  75. package/dist/runner/task-brief.d.ts +18 -0
  76. package/dist/runner/task-brief.js +12 -0
  77. package/dist/shared/index.d.ts +3 -0
  78. package/dist/shared/index.js +3 -0
  79. package/dist/shared/shared.d.ts +30 -0
  80. package/dist/shared/shared.js +27 -0
  81. package/dist/shared/string-enums.d.ts +59 -0
  82. package/dist/shared/string-enums.js +24 -0
  83. package/dist/shared/utils.d.ts +25 -0
  84. package/dist/shared/utils.js +22 -0
  85. package/dist/specification/canonical-specification.d.ts +475 -0
  86. package/dist/specification/canonical-specification.js +151 -0
  87. package/dist/specification/index.d.ts +3 -0
  88. package/dist/specification/index.js +3 -0
  89. package/dist/specification/intake.d.ts +419 -0
  90. package/dist/specification/intake.js +70 -0
  91. package/dist/specification/iteration-contracts.d.ts +421 -0
  92. package/dist/specification/iteration-contracts.js +61 -0
  93. package/dist/workflow/index.d.ts +4 -0
  94. package/dist/workflow/index.js +4 -0
  95. package/dist/workflow/workflow-dsl.d.ts +81 -0
  96. package/dist/workflow/workflow-dsl.js +38 -0
  97. package/dist/workflow/workflow-engine.d.ts +5788 -0
  98. package/dist/workflow/workflow-engine.js +414 -0
  99. package/dist/workflow/workflow-file.d.ts +331 -0
  100. package/dist/workflow/workflow-file.js +41 -0
  101. package/dist/workflow/workflow-journal.d.ts +520 -0
  102. package/dist/workflow/workflow-journal.js +151 -0
  103. package/package.json +39 -0
@@ -0,0 +1,1076 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const runStatusSchema: z.ZodEnum<{
3
+ running: "running";
4
+ paused: "paused";
5
+ completed: "completed";
6
+ failed: "failed";
7
+ aborted: "aborted";
8
+ waiting: "waiting";
9
+ interrupted: "interrupted";
10
+ }>;
11
+ export type RunStatus = z.infer<typeof runStatusSchema>;
12
+ export declare const dashboardWaitingContextSchema: z.ZodObject<{
13
+ reason: z.ZodString;
14
+ requiredInput: z.ZodString;
15
+ requestingState: z.ZodString;
16
+ autoResumeSafe: z.ZodBoolean;
17
+ presentedArtifacts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
18
+ type: z.ZodEnum<{
19
+ intake_requirements: "intake_requirements";
20
+ canonical_specification: "canonical_specification";
21
+ clarification_questions: "clarification_questions";
22
+ clarification_answers: "clarification_answers";
23
+ plan: "plan";
24
+ plan_review: "plan_review";
25
+ test_plan: "test_plan";
26
+ implementation: "implementation";
27
+ static_review: "static_review";
28
+ security_review: "security_review";
29
+ performance_review: "performance_review";
30
+ adversarial_review: "adversarial_review";
31
+ design_review: "design_review";
32
+ docs_review: "docs_review";
33
+ ux_review: "ux_review";
34
+ review_report: "review_report";
35
+ remediation_plan: "remediation_plan";
36
+ verification: "verification";
37
+ judge_decision: "judge_decision";
38
+ planning_agreement: "planning_agreement";
39
+ implementation_agreement: "implementation_agreement";
40
+ verification_agreement: "verification_agreement";
41
+ release_summary: "release_summary";
42
+ release_agreement: "release_agreement";
43
+ escalation_context: "escalation_context";
44
+ run_manifest: "run_manifest";
45
+ codebase_context: "codebase_context";
46
+ test_suite: "test_suite";
47
+ acceptance_validation: "acceptance_validation";
48
+ review_findings: "review_findings";
49
+ task_breakdown: "task_breakdown";
50
+ decomposition_review: "decomposition_review";
51
+ task_specifications: "task_specifications";
52
+ pr_diff_context: "pr_diff_context";
53
+ }>;
54
+ name: z.ZodString;
55
+ version: z.ZodNumber;
56
+ checksum: z.ZodString;
57
+ }, z.core.$strip>>>;
58
+ waitingSince: z.ZodString;
59
+ budgetExhaustion: z.ZodOptional<z.ZodObject<{
60
+ limitType: z.ZodLiteral<"token">;
61
+ current: z.ZodNumber;
62
+ limit: z.ZodNumber;
63
+ role: z.ZodOptional<z.ZodString>;
64
+ cumulativeTokens: z.ZodNumber;
65
+ }, z.core.$strip>>;
66
+ liveSessionId: z.ZodOptional<z.ZodString>;
67
+ pendingRequestId: z.ZodOptional<z.ZodString>;
68
+ liveRequestType: z.ZodOptional<z.ZodEnum<{
69
+ permission: "permission";
70
+ clarification: "clarification";
71
+ }>>;
72
+ sessionTransport: z.ZodOptional<z.ZodEnum<{
73
+ stdio: "stdio";
74
+ remote: "remote";
75
+ }>>;
76
+ }, z.core.$strip>;
77
+ export type DashboardWaitingContext = z.infer<typeof dashboardWaitingContextSchema>;
78
+ export declare const dashboardSessionViewSchema: z.ZodObject<{
79
+ sessionId: z.ZodString;
80
+ runId: z.ZodString;
81
+ role: z.ZodString;
82
+ stateId: z.ZodString;
83
+ transport: z.ZodEnum<{
84
+ stdio: "stdio";
85
+ remote: "remote";
86
+ }>;
87
+ state: z.ZodString;
88
+ pendingRequestKind: z.ZodOptional<z.ZodEnum<{
89
+ permission: "permission";
90
+ clarification: "clarification";
91
+ }>>;
92
+ pendingRequestId: z.ZodOptional<z.ZodString>;
93
+ createdAt: z.ZodString;
94
+ updatedAt: z.ZodString;
95
+ expiresAt: z.ZodOptional<z.ZodString>;
96
+ error: z.ZodOptional<z.ZodString>;
97
+ }, z.core.$strip>;
98
+ export type DashboardSessionView = z.infer<typeof dashboardSessionViewSchema>;
99
+ export declare const runStateViewSchema: z.ZodObject<{
100
+ runId: z.ZodString;
101
+ status: z.ZodEnum<{
102
+ running: "running";
103
+ paused: "paused";
104
+ completed: "completed";
105
+ failed: "failed";
106
+ aborted: "aborted";
107
+ waiting: "waiting";
108
+ interrupted: "interrupted";
109
+ }>;
110
+ currentState: z.ZodString;
111
+ previousState: z.ZodNullable<z.ZodString>;
112
+ startedAt: z.ZodString;
113
+ stateEnteredAt: z.ZodString;
114
+ elapsedMs: z.ZodNumber;
115
+ transitionCount: z.ZodNumber;
116
+ isWaitingForHuman: z.ZodBoolean;
117
+ waitingReason: z.ZodOptional<z.ZodString>;
118
+ waitingContext: z.ZodOptional<z.ZodObject<{
119
+ reason: z.ZodString;
120
+ requiredInput: z.ZodString;
121
+ requestingState: z.ZodString;
122
+ autoResumeSafe: z.ZodBoolean;
123
+ presentedArtifacts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
124
+ type: z.ZodEnum<{
125
+ intake_requirements: "intake_requirements";
126
+ canonical_specification: "canonical_specification";
127
+ clarification_questions: "clarification_questions";
128
+ clarification_answers: "clarification_answers";
129
+ plan: "plan";
130
+ plan_review: "plan_review";
131
+ test_plan: "test_plan";
132
+ implementation: "implementation";
133
+ static_review: "static_review";
134
+ security_review: "security_review";
135
+ performance_review: "performance_review";
136
+ adversarial_review: "adversarial_review";
137
+ design_review: "design_review";
138
+ docs_review: "docs_review";
139
+ ux_review: "ux_review";
140
+ review_report: "review_report";
141
+ remediation_plan: "remediation_plan";
142
+ verification: "verification";
143
+ judge_decision: "judge_decision";
144
+ planning_agreement: "planning_agreement";
145
+ implementation_agreement: "implementation_agreement";
146
+ verification_agreement: "verification_agreement";
147
+ release_summary: "release_summary";
148
+ release_agreement: "release_agreement";
149
+ escalation_context: "escalation_context";
150
+ run_manifest: "run_manifest";
151
+ codebase_context: "codebase_context";
152
+ test_suite: "test_suite";
153
+ acceptance_validation: "acceptance_validation";
154
+ review_findings: "review_findings";
155
+ task_breakdown: "task_breakdown";
156
+ decomposition_review: "decomposition_review";
157
+ task_specifications: "task_specifications";
158
+ pr_diff_context: "pr_diff_context";
159
+ }>;
160
+ name: z.ZodString;
161
+ version: z.ZodNumber;
162
+ checksum: z.ZodString;
163
+ }, z.core.$strip>>>;
164
+ waitingSince: z.ZodString;
165
+ budgetExhaustion: z.ZodOptional<z.ZodObject<{
166
+ limitType: z.ZodLiteral<"token">;
167
+ current: z.ZodNumber;
168
+ limit: z.ZodNumber;
169
+ role: z.ZodOptional<z.ZodString>;
170
+ cumulativeTokens: z.ZodNumber;
171
+ }, z.core.$strip>>;
172
+ liveSessionId: z.ZodOptional<z.ZodString>;
173
+ pendingRequestId: z.ZodOptional<z.ZodString>;
174
+ liveRequestType: z.ZodOptional<z.ZodEnum<{
175
+ permission: "permission";
176
+ clarification: "clarification";
177
+ }>>;
178
+ sessionTransport: z.ZodOptional<z.ZodEnum<{
179
+ stdio: "stdio";
180
+ remote: "remote";
181
+ }>>;
182
+ }, z.core.$strip>>;
183
+ repoRoot: z.ZodOptional<z.ZodString>;
184
+ processAlive: z.ZodOptional<z.ZodBoolean>;
185
+ }, z.core.$strip>;
186
+ export type RunStateView = z.infer<typeof runStateViewSchema>;
187
+ export declare const parallelInfoSchema: z.ZodObject<{
188
+ type: z.ZodEnum<{
189
+ join: "join";
190
+ fork: "fork";
191
+ }>;
192
+ parallelRoles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
193
+ roleDurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
194
+ dynamicRole: z.ZodOptional<z.ZodString>;
195
+ dynamicWorkerCount: z.ZodOptional<z.ZodNumber>;
196
+ }, z.core.$strip>;
197
+ export type ParallelInfo = z.infer<typeof parallelInfoSchema>;
198
+ export declare const stateNodeSchema: z.ZodObject<{
199
+ id: z.ZodString;
200
+ type: z.ZodString;
201
+ label: z.ZodString;
202
+ visited: z.ZodBoolean;
203
+ current: z.ZodBoolean;
204
+ timeSpentMs: z.ZodNumber;
205
+ visitCount: z.ZodNumber;
206
+ parallelInfo: z.ZodOptional<z.ZodObject<{
207
+ type: z.ZodEnum<{
208
+ join: "join";
209
+ fork: "fork";
210
+ }>;
211
+ parallelRoles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
212
+ roleDurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
213
+ dynamicRole: z.ZodOptional<z.ZodString>;
214
+ dynamicWorkerCount: z.ZodOptional<z.ZodNumber>;
215
+ }, z.core.$strip>>;
216
+ roles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
217
+ scripts: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
218
+ }, z.core.$strip>;
219
+ export type StateNode = z.infer<typeof stateNodeSchema>;
220
+ export declare const transitionEdgeSchema: z.ZodObject<{
221
+ from: z.ZodString;
222
+ to: z.ZodString;
223
+ trigger: z.ZodString;
224
+ traversed: z.ZodBoolean;
225
+ traversalCount: z.ZodNumber;
226
+ }, z.core.$strip>;
227
+ export type TransitionEdge = z.infer<typeof transitionEdgeSchema>;
228
+ export declare const workflowStateViewSchema: z.ZodObject<{
229
+ runId: z.ZodString;
230
+ states: z.ZodReadonly<z.ZodArray<z.ZodObject<{
231
+ id: z.ZodString;
232
+ type: z.ZodString;
233
+ label: z.ZodString;
234
+ visited: z.ZodBoolean;
235
+ current: z.ZodBoolean;
236
+ timeSpentMs: z.ZodNumber;
237
+ visitCount: z.ZodNumber;
238
+ parallelInfo: z.ZodOptional<z.ZodObject<{
239
+ type: z.ZodEnum<{
240
+ join: "join";
241
+ fork: "fork";
242
+ }>;
243
+ parallelRoles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
244
+ roleDurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
245
+ dynamicRole: z.ZodOptional<z.ZodString>;
246
+ dynamicWorkerCount: z.ZodOptional<z.ZodNumber>;
247
+ }, z.core.$strip>>;
248
+ roles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
249
+ scripts: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
250
+ }, z.core.$strip>>>;
251
+ transitions: z.ZodReadonly<z.ZodArray<z.ZodObject<{
252
+ from: z.ZodString;
253
+ to: z.ZodString;
254
+ trigger: z.ZodString;
255
+ traversed: z.ZodBoolean;
256
+ traversalCount: z.ZodNumber;
257
+ }, z.core.$strip>>>;
258
+ currentState: z.ZodString;
259
+ visitedStates: z.ZodReadonly<z.ZodArray<z.ZodString>>;
260
+ stateHistory: z.ZodReadonly<z.ZodArray<z.ZodString>>;
261
+ abortReason: z.ZodOptional<z.ZodString>;
262
+ }, z.core.$strip>;
263
+ export type WorkflowStateView = z.infer<typeof workflowStateViewSchema>;
264
+ export declare const artifactEntryViewSchema: z.ZodObject<{
265
+ ref: z.ZodObject<{
266
+ type: z.ZodEnum<{
267
+ intake_requirements: "intake_requirements";
268
+ canonical_specification: "canonical_specification";
269
+ clarification_questions: "clarification_questions";
270
+ clarification_answers: "clarification_answers";
271
+ plan: "plan";
272
+ plan_review: "plan_review";
273
+ test_plan: "test_plan";
274
+ implementation: "implementation";
275
+ static_review: "static_review";
276
+ security_review: "security_review";
277
+ performance_review: "performance_review";
278
+ adversarial_review: "adversarial_review";
279
+ design_review: "design_review";
280
+ docs_review: "docs_review";
281
+ ux_review: "ux_review";
282
+ review_report: "review_report";
283
+ remediation_plan: "remediation_plan";
284
+ verification: "verification";
285
+ judge_decision: "judge_decision";
286
+ planning_agreement: "planning_agreement";
287
+ implementation_agreement: "implementation_agreement";
288
+ verification_agreement: "verification_agreement";
289
+ release_summary: "release_summary";
290
+ release_agreement: "release_agreement";
291
+ escalation_context: "escalation_context";
292
+ run_manifest: "run_manifest";
293
+ codebase_context: "codebase_context";
294
+ test_suite: "test_suite";
295
+ acceptance_validation: "acceptance_validation";
296
+ review_findings: "review_findings";
297
+ task_breakdown: "task_breakdown";
298
+ decomposition_review: "decomposition_review";
299
+ task_specifications: "task_specifications";
300
+ pr_diff_context: "pr_diff_context";
301
+ }>;
302
+ name: z.ZodString;
303
+ version: z.ZodNumber;
304
+ checksum: z.ZodString;
305
+ }, z.core.$strip>;
306
+ type: z.ZodEnum<{
307
+ intake_requirements: "intake_requirements";
308
+ canonical_specification: "canonical_specification";
309
+ clarification_questions: "clarification_questions";
310
+ clarification_answers: "clarification_answers";
311
+ plan: "plan";
312
+ plan_review: "plan_review";
313
+ test_plan: "test_plan";
314
+ implementation: "implementation";
315
+ static_review: "static_review";
316
+ security_review: "security_review";
317
+ performance_review: "performance_review";
318
+ adversarial_review: "adversarial_review";
319
+ design_review: "design_review";
320
+ docs_review: "docs_review";
321
+ ux_review: "ux_review";
322
+ review_report: "review_report";
323
+ remediation_plan: "remediation_plan";
324
+ verification: "verification";
325
+ judge_decision: "judge_decision";
326
+ planning_agreement: "planning_agreement";
327
+ implementation_agreement: "implementation_agreement";
328
+ verification_agreement: "verification_agreement";
329
+ release_summary: "release_summary";
330
+ release_agreement: "release_agreement";
331
+ escalation_context: "escalation_context";
332
+ run_manifest: "run_manifest";
333
+ codebase_context: "codebase_context";
334
+ test_suite: "test_suite";
335
+ acceptance_validation: "acceptance_validation";
336
+ review_findings: "review_findings";
337
+ task_breakdown: "task_breakdown";
338
+ decomposition_review: "decomposition_review";
339
+ task_specifications: "task_specifications";
340
+ pr_diff_context: "pr_diff_context";
341
+ }>;
342
+ name: z.ZodString;
343
+ version: z.ZodNumber;
344
+ producedBy: z.ZodString;
345
+ createdAt: z.ZodString;
346
+ sizeBytes: z.ZodNumber;
347
+ verdict: z.ZodOptional<z.ZodEnum<{
348
+ approved: "approved";
349
+ conditionally_approved: "conditionally_approved";
350
+ rejected: "rejected";
351
+ }>>;
352
+ }, z.core.$strip>;
353
+ export type ArtifactEntryView = z.infer<typeof artifactEntryViewSchema>;
354
+ export declare const artifactInventoryViewSchema: z.ZodObject<{
355
+ runId: z.ZodString;
356
+ artifacts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
357
+ ref: z.ZodObject<{
358
+ type: z.ZodEnum<{
359
+ intake_requirements: "intake_requirements";
360
+ canonical_specification: "canonical_specification";
361
+ clarification_questions: "clarification_questions";
362
+ clarification_answers: "clarification_answers";
363
+ plan: "plan";
364
+ plan_review: "plan_review";
365
+ test_plan: "test_plan";
366
+ implementation: "implementation";
367
+ static_review: "static_review";
368
+ security_review: "security_review";
369
+ performance_review: "performance_review";
370
+ adversarial_review: "adversarial_review";
371
+ design_review: "design_review";
372
+ docs_review: "docs_review";
373
+ ux_review: "ux_review";
374
+ review_report: "review_report";
375
+ remediation_plan: "remediation_plan";
376
+ verification: "verification";
377
+ judge_decision: "judge_decision";
378
+ planning_agreement: "planning_agreement";
379
+ implementation_agreement: "implementation_agreement";
380
+ verification_agreement: "verification_agreement";
381
+ release_summary: "release_summary";
382
+ release_agreement: "release_agreement";
383
+ escalation_context: "escalation_context";
384
+ run_manifest: "run_manifest";
385
+ codebase_context: "codebase_context";
386
+ test_suite: "test_suite";
387
+ acceptance_validation: "acceptance_validation";
388
+ review_findings: "review_findings";
389
+ task_breakdown: "task_breakdown";
390
+ decomposition_review: "decomposition_review";
391
+ task_specifications: "task_specifications";
392
+ pr_diff_context: "pr_diff_context";
393
+ }>;
394
+ name: z.ZodString;
395
+ version: z.ZodNumber;
396
+ checksum: z.ZodString;
397
+ }, z.core.$strip>;
398
+ type: z.ZodEnum<{
399
+ intake_requirements: "intake_requirements";
400
+ canonical_specification: "canonical_specification";
401
+ clarification_questions: "clarification_questions";
402
+ clarification_answers: "clarification_answers";
403
+ plan: "plan";
404
+ plan_review: "plan_review";
405
+ test_plan: "test_plan";
406
+ implementation: "implementation";
407
+ static_review: "static_review";
408
+ security_review: "security_review";
409
+ performance_review: "performance_review";
410
+ adversarial_review: "adversarial_review";
411
+ design_review: "design_review";
412
+ docs_review: "docs_review";
413
+ ux_review: "ux_review";
414
+ review_report: "review_report";
415
+ remediation_plan: "remediation_plan";
416
+ verification: "verification";
417
+ judge_decision: "judge_decision";
418
+ planning_agreement: "planning_agreement";
419
+ implementation_agreement: "implementation_agreement";
420
+ verification_agreement: "verification_agreement";
421
+ release_summary: "release_summary";
422
+ release_agreement: "release_agreement";
423
+ escalation_context: "escalation_context";
424
+ run_manifest: "run_manifest";
425
+ codebase_context: "codebase_context";
426
+ test_suite: "test_suite";
427
+ acceptance_validation: "acceptance_validation";
428
+ review_findings: "review_findings";
429
+ task_breakdown: "task_breakdown";
430
+ decomposition_review: "decomposition_review";
431
+ task_specifications: "task_specifications";
432
+ pr_diff_context: "pr_diff_context";
433
+ }>;
434
+ name: z.ZodString;
435
+ version: z.ZodNumber;
436
+ producedBy: z.ZodString;
437
+ createdAt: z.ZodString;
438
+ sizeBytes: z.ZodNumber;
439
+ verdict: z.ZodOptional<z.ZodEnum<{
440
+ approved: "approved";
441
+ conditionally_approved: "conditionally_approved";
442
+ rejected: "rejected";
443
+ }>>;
444
+ }, z.core.$strip>>>;
445
+ totalCount: z.ZodNumber;
446
+ totalSizeBytes: z.ZodNumber;
447
+ byType: z.ZodRecord<z.ZodString, z.ZodNumber>;
448
+ }, z.core.$strip>;
449
+ export type ArtifactInventoryView = z.infer<typeof artifactInventoryViewSchema>;
450
+ export declare const artifactVersionViewSchema: z.ZodObject<{
451
+ ref: z.ZodObject<{
452
+ type: z.ZodEnum<{
453
+ intake_requirements: "intake_requirements";
454
+ canonical_specification: "canonical_specification";
455
+ clarification_questions: "clarification_questions";
456
+ clarification_answers: "clarification_answers";
457
+ plan: "plan";
458
+ plan_review: "plan_review";
459
+ test_plan: "test_plan";
460
+ implementation: "implementation";
461
+ static_review: "static_review";
462
+ security_review: "security_review";
463
+ performance_review: "performance_review";
464
+ adversarial_review: "adversarial_review";
465
+ design_review: "design_review";
466
+ docs_review: "docs_review";
467
+ ux_review: "ux_review";
468
+ review_report: "review_report";
469
+ remediation_plan: "remediation_plan";
470
+ verification: "verification";
471
+ judge_decision: "judge_decision";
472
+ planning_agreement: "planning_agreement";
473
+ implementation_agreement: "implementation_agreement";
474
+ verification_agreement: "verification_agreement";
475
+ release_summary: "release_summary";
476
+ release_agreement: "release_agreement";
477
+ escalation_context: "escalation_context";
478
+ run_manifest: "run_manifest";
479
+ codebase_context: "codebase_context";
480
+ test_suite: "test_suite";
481
+ acceptance_validation: "acceptance_validation";
482
+ review_findings: "review_findings";
483
+ task_breakdown: "task_breakdown";
484
+ decomposition_review: "decomposition_review";
485
+ task_specifications: "task_specifications";
486
+ pr_diff_context: "pr_diff_context";
487
+ }>;
488
+ name: z.ZodString;
489
+ version: z.ZodNumber;
490
+ checksum: z.ZodString;
491
+ }, z.core.$strip>;
492
+ version: z.ZodNumber;
493
+ checksum: z.ZodString;
494
+ createdAt: z.ZodString;
495
+ }, z.core.$strip>;
496
+ export type ArtifactVersionView = z.infer<typeof artifactVersionViewSchema>;
497
+ export declare const artifactDetailViewSchema: z.ZodObject<{
498
+ ref: z.ZodObject<{
499
+ type: z.ZodEnum<{
500
+ intake_requirements: "intake_requirements";
501
+ canonical_specification: "canonical_specification";
502
+ clarification_questions: "clarification_questions";
503
+ clarification_answers: "clarification_answers";
504
+ plan: "plan";
505
+ plan_review: "plan_review";
506
+ test_plan: "test_plan";
507
+ implementation: "implementation";
508
+ static_review: "static_review";
509
+ security_review: "security_review";
510
+ performance_review: "performance_review";
511
+ adversarial_review: "adversarial_review";
512
+ design_review: "design_review";
513
+ docs_review: "docs_review";
514
+ ux_review: "ux_review";
515
+ review_report: "review_report";
516
+ remediation_plan: "remediation_plan";
517
+ verification: "verification";
518
+ judge_decision: "judge_decision";
519
+ planning_agreement: "planning_agreement";
520
+ implementation_agreement: "implementation_agreement";
521
+ verification_agreement: "verification_agreement";
522
+ release_summary: "release_summary";
523
+ release_agreement: "release_agreement";
524
+ escalation_context: "escalation_context";
525
+ run_manifest: "run_manifest";
526
+ codebase_context: "codebase_context";
527
+ test_suite: "test_suite";
528
+ acceptance_validation: "acceptance_validation";
529
+ review_findings: "review_findings";
530
+ task_breakdown: "task_breakdown";
531
+ decomposition_review: "decomposition_review";
532
+ task_specifications: "task_specifications";
533
+ pr_diff_context: "pr_diff_context";
534
+ }>;
535
+ name: z.ZodString;
536
+ version: z.ZodNumber;
537
+ checksum: z.ZodString;
538
+ }, z.core.$strip>;
539
+ type: z.ZodEnum<{
540
+ intake_requirements: "intake_requirements";
541
+ canonical_specification: "canonical_specification";
542
+ clarification_questions: "clarification_questions";
543
+ clarification_answers: "clarification_answers";
544
+ plan: "plan";
545
+ plan_review: "plan_review";
546
+ test_plan: "test_plan";
547
+ implementation: "implementation";
548
+ static_review: "static_review";
549
+ security_review: "security_review";
550
+ performance_review: "performance_review";
551
+ adversarial_review: "adversarial_review";
552
+ design_review: "design_review";
553
+ docs_review: "docs_review";
554
+ ux_review: "ux_review";
555
+ review_report: "review_report";
556
+ remediation_plan: "remediation_plan";
557
+ verification: "verification";
558
+ judge_decision: "judge_decision";
559
+ planning_agreement: "planning_agreement";
560
+ implementation_agreement: "implementation_agreement";
561
+ verification_agreement: "verification_agreement";
562
+ release_summary: "release_summary";
563
+ release_agreement: "release_agreement";
564
+ escalation_context: "escalation_context";
565
+ run_manifest: "run_manifest";
566
+ codebase_context: "codebase_context";
567
+ test_suite: "test_suite";
568
+ acceptance_validation: "acceptance_validation";
569
+ review_findings: "review_findings";
570
+ task_breakdown: "task_breakdown";
571
+ decomposition_review: "decomposition_review";
572
+ task_specifications: "task_specifications";
573
+ pr_diff_context: "pr_diff_context";
574
+ }>;
575
+ name: z.ZodString;
576
+ currentVersion: z.ZodNumber;
577
+ producedBy: z.ZodString;
578
+ createdAt: z.ZodString;
579
+ sizeBytes: z.ZodNumber;
580
+ versions: z.ZodReadonly<z.ZodArray<z.ZodObject<{
581
+ ref: z.ZodObject<{
582
+ type: z.ZodEnum<{
583
+ intake_requirements: "intake_requirements";
584
+ canonical_specification: "canonical_specification";
585
+ clarification_questions: "clarification_questions";
586
+ clarification_answers: "clarification_answers";
587
+ plan: "plan";
588
+ plan_review: "plan_review";
589
+ test_plan: "test_plan";
590
+ implementation: "implementation";
591
+ static_review: "static_review";
592
+ security_review: "security_review";
593
+ performance_review: "performance_review";
594
+ adversarial_review: "adversarial_review";
595
+ design_review: "design_review";
596
+ docs_review: "docs_review";
597
+ ux_review: "ux_review";
598
+ review_report: "review_report";
599
+ remediation_plan: "remediation_plan";
600
+ verification: "verification";
601
+ judge_decision: "judge_decision";
602
+ planning_agreement: "planning_agreement";
603
+ implementation_agreement: "implementation_agreement";
604
+ verification_agreement: "verification_agreement";
605
+ release_summary: "release_summary";
606
+ release_agreement: "release_agreement";
607
+ escalation_context: "escalation_context";
608
+ run_manifest: "run_manifest";
609
+ codebase_context: "codebase_context";
610
+ test_suite: "test_suite";
611
+ acceptance_validation: "acceptance_validation";
612
+ review_findings: "review_findings";
613
+ task_breakdown: "task_breakdown";
614
+ decomposition_review: "decomposition_review";
615
+ task_specifications: "task_specifications";
616
+ pr_diff_context: "pr_diff_context";
617
+ }>;
618
+ name: z.ZodString;
619
+ version: z.ZodNumber;
620
+ checksum: z.ZodString;
621
+ }, z.core.$strip>;
622
+ version: z.ZodNumber;
623
+ checksum: z.ZodString;
624
+ createdAt: z.ZodString;
625
+ }, z.core.$strip>>>;
626
+ dependsOn: z.ZodReadonly<z.ZodArray<z.ZodObject<{
627
+ type: z.ZodEnum<{
628
+ intake_requirements: "intake_requirements";
629
+ canonical_specification: "canonical_specification";
630
+ clarification_questions: "clarification_questions";
631
+ clarification_answers: "clarification_answers";
632
+ plan: "plan";
633
+ plan_review: "plan_review";
634
+ test_plan: "test_plan";
635
+ implementation: "implementation";
636
+ static_review: "static_review";
637
+ security_review: "security_review";
638
+ performance_review: "performance_review";
639
+ adversarial_review: "adversarial_review";
640
+ design_review: "design_review";
641
+ docs_review: "docs_review";
642
+ ux_review: "ux_review";
643
+ review_report: "review_report";
644
+ remediation_plan: "remediation_plan";
645
+ verification: "verification";
646
+ judge_decision: "judge_decision";
647
+ planning_agreement: "planning_agreement";
648
+ implementation_agreement: "implementation_agreement";
649
+ verification_agreement: "verification_agreement";
650
+ release_summary: "release_summary";
651
+ release_agreement: "release_agreement";
652
+ escalation_context: "escalation_context";
653
+ run_manifest: "run_manifest";
654
+ codebase_context: "codebase_context";
655
+ test_suite: "test_suite";
656
+ acceptance_validation: "acceptance_validation";
657
+ review_findings: "review_findings";
658
+ task_breakdown: "task_breakdown";
659
+ decomposition_review: "decomposition_review";
660
+ task_specifications: "task_specifications";
661
+ pr_diff_context: "pr_diff_context";
662
+ }>;
663
+ name: z.ZodString;
664
+ version: z.ZodNumber;
665
+ checksum: z.ZodString;
666
+ }, z.core.$strip>>>;
667
+ dependedOnBy: z.ZodReadonly<z.ZodArray<z.ZodObject<{
668
+ type: z.ZodEnum<{
669
+ intake_requirements: "intake_requirements";
670
+ canonical_specification: "canonical_specification";
671
+ clarification_questions: "clarification_questions";
672
+ clarification_answers: "clarification_answers";
673
+ plan: "plan";
674
+ plan_review: "plan_review";
675
+ test_plan: "test_plan";
676
+ implementation: "implementation";
677
+ static_review: "static_review";
678
+ security_review: "security_review";
679
+ performance_review: "performance_review";
680
+ adversarial_review: "adversarial_review";
681
+ design_review: "design_review";
682
+ docs_review: "docs_review";
683
+ ux_review: "ux_review";
684
+ review_report: "review_report";
685
+ remediation_plan: "remediation_plan";
686
+ verification: "verification";
687
+ judge_decision: "judge_decision";
688
+ planning_agreement: "planning_agreement";
689
+ implementation_agreement: "implementation_agreement";
690
+ verification_agreement: "verification_agreement";
691
+ release_summary: "release_summary";
692
+ release_agreement: "release_agreement";
693
+ escalation_context: "escalation_context";
694
+ run_manifest: "run_manifest";
695
+ codebase_context: "codebase_context";
696
+ test_suite: "test_suite";
697
+ acceptance_validation: "acceptance_validation";
698
+ review_findings: "review_findings";
699
+ task_breakdown: "task_breakdown";
700
+ decomposition_review: "decomposition_review";
701
+ task_specifications: "task_specifications";
702
+ pr_diff_context: "pr_diff_context";
703
+ }>;
704
+ name: z.ZodString;
705
+ version: z.ZodNumber;
706
+ checksum: z.ZodString;
707
+ }, z.core.$strip>>>;
708
+ }, z.core.$strip>;
709
+ export type ArtifactDetailView = z.infer<typeof artifactDetailViewSchema>;
710
+ export declare const artifactContentViewSchema: z.ZodObject<{
711
+ content: z.ZodString;
712
+ contentType: z.ZodEnum<{
713
+ json: "json";
714
+ text: "text";
715
+ markdown: "markdown";
716
+ diff: "diff";
717
+ }>;
718
+ sizeBytes: z.ZodNumber;
719
+ }, z.core.$strip>;
720
+ export type ArtifactContentView = z.infer<typeof artifactContentViewSchema>;
721
+ export declare const contractProgressViewSchema: z.ZodObject<{
722
+ contractId: z.ZodString;
723
+ currentIteration: z.ZodNumber;
724
+ maxIterations: z.ZodNumber;
725
+ status: z.ZodString;
726
+ findingsTotal: z.ZodNumber;
727
+ findingsResolved: z.ZodNumber;
728
+ judgeArbitrations: z.ZodNumber;
729
+ }, z.core.$strip>;
730
+ export type ContractProgressView = z.infer<typeof contractProgressViewSchema>;
731
+ export declare const iterationProgressViewSchema: z.ZodObject<{
732
+ runId: z.ZodString;
733
+ contracts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
734
+ contractId: z.ZodString;
735
+ currentIteration: z.ZodNumber;
736
+ maxIterations: z.ZodNumber;
737
+ status: z.ZodString;
738
+ findingsTotal: z.ZodNumber;
739
+ findingsResolved: z.ZodNumber;
740
+ judgeArbitrations: z.ZodNumber;
741
+ }, z.core.$strip>>>;
742
+ totalIterations: z.ZodNumber;
743
+ totalFindings: z.ZodNumber;
744
+ resolvedFindings: z.ZodNumber;
745
+ }, z.core.$strip>;
746
+ export type IterationProgressView = z.infer<typeof iterationProgressViewSchema>;
747
+ export declare const findingEntryViewSchema: z.ZodObject<{
748
+ id: z.ZodString;
749
+ severity: z.ZodString;
750
+ status: z.ZodString;
751
+ category: z.ZodString;
752
+ description: z.ZodString;
753
+ source: z.ZodString;
754
+ iteration: z.ZodNumber;
755
+ }, z.core.$strip>;
756
+ export type FindingEntryView = z.infer<typeof findingEntryViewSchema>;
757
+ export declare const findingsViewSchema: z.ZodObject<{
758
+ runId: z.ZodString;
759
+ findings: z.ZodReadonly<z.ZodArray<z.ZodObject<{
760
+ id: z.ZodString;
761
+ severity: z.ZodString;
762
+ status: z.ZodString;
763
+ category: z.ZodString;
764
+ description: z.ZodString;
765
+ source: z.ZodString;
766
+ iteration: z.ZodNumber;
767
+ }, z.core.$strip>>>;
768
+ totalCount: z.ZodNumber;
769
+ bySeverity: z.ZodRecord<z.ZodString, z.ZodNumber>;
770
+ byStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
771
+ }, z.core.$strip>;
772
+ export type FindingsView = z.infer<typeof findingsViewSchema>;
773
+ export declare const roleUsageViewSchema: z.ZodObject<{
774
+ role: z.ZodString;
775
+ inputTokens: z.ZodNumber;
776
+ outputTokens: z.ZodNumber;
777
+ dispatches: z.ZodNumber;
778
+ totalDurationMs: z.ZodNumber;
779
+ }, z.core.$strip>;
780
+ export type RoleUsageView = z.infer<typeof roleUsageViewSchema>;
781
+ export declare const usageBreakdownViewSchema: z.ZodObject<{
782
+ runId: z.ZodString;
783
+ totalInputTokens: z.ZodNumber;
784
+ totalOutputTokens: z.ZodNumber;
785
+ totalTokens: z.ZodNumber;
786
+ byRole: z.ZodReadonly<z.ZodArray<z.ZodObject<{
787
+ role: z.ZodString;
788
+ inputTokens: z.ZodNumber;
789
+ outputTokens: z.ZodNumber;
790
+ dispatches: z.ZodNumber;
791
+ totalDurationMs: z.ZodNumber;
792
+ }, z.core.$strip>>>;
793
+ budgetSummary: z.ZodOptional<z.ZodObject<{
794
+ configuredMaxTokens: z.ZodNullable<z.ZodNumber>;
795
+ budgetExceeded: z.ZodBoolean;
796
+ alertThresholds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
797
+ crossedThresholds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
798
+ }, z.core.$strip>>;
799
+ }, z.core.$strip>;
800
+ export type UsageBreakdownView = z.infer<typeof usageBreakdownViewSchema>;
801
+ export declare const runSummaryViewSchema: z.ZodObject<{
802
+ runId: z.ZodString;
803
+ repository: z.ZodString;
804
+ repoRoot: z.ZodOptional<z.ZodString>;
805
+ workflow: z.ZodString;
806
+ status: z.ZodString;
807
+ startedAt: z.ZodString;
808
+ completedAt: z.ZodString;
809
+ durationMs: z.ZodNumber;
810
+ totalArtifacts: z.ZodNumber;
811
+ totalTokens: z.ZodNumber;
812
+ totalInputTokens: z.ZodNumber;
813
+ totalOutputTokens: z.ZodNumber;
814
+ finalState: z.ZodString;
815
+ sources: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
816
+ }, z.core.$strip>;
817
+ export type RunSummaryView = z.infer<typeof runSummaryViewSchema>;
818
+ export declare const roleAssignmentViewSchema: z.ZodObject<{
819
+ role: z.ZodString;
820
+ model: z.ZodOptional<z.ZodString>;
821
+ dispatchType: z.ZodOptional<z.ZodString>;
822
+ runner: z.ZodOptional<z.ZodString>;
823
+ maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
824
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
825
+ maxTurns: z.ZodOptional<z.ZodNumber>;
826
+ }, z.core.$strip>;
827
+ export type RoleAssignmentView = z.infer<typeof roleAssignmentViewSchema>;
828
+ export declare const runConfigViewSchema: z.ZodObject<{
829
+ roles: z.ZodReadonly<z.ZodArray<z.ZodObject<{
830
+ role: z.ZodString;
831
+ model: z.ZodOptional<z.ZodString>;
832
+ dispatchType: z.ZodOptional<z.ZodString>;
833
+ runner: z.ZodOptional<z.ZodString>;
834
+ maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
835
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
836
+ maxTurns: z.ZodOptional<z.ZodNumber>;
837
+ }, z.core.$strip>>>;
838
+ iterationLimits: z.ZodRecord<z.ZodString, z.ZodNumber>;
839
+ qualityGates: z.ZodObject<{
840
+ specificationReadiness: z.ZodObject<{
841
+ minCompletenessScore: z.ZodNumber;
842
+ }, z.core.$strip>;
843
+ implementationReview: z.ZodObject<{
844
+ maxHighSeverityFindings: z.ZodNumber;
845
+ maxMediumSeverityFindings: z.ZodNumber;
846
+ }, z.core.$strip>;
847
+ }, z.core.$strip>;
848
+ budget: z.ZodObject<{
849
+ maxTokensPerRun: z.ZodNullable<z.ZodNumber>;
850
+ }, z.core.$strip>;
851
+ sources: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
852
+ workflow: z.ZodOptional<z.ZodString>;
853
+ }, z.core.$strip>;
854
+ export type RunConfigView = z.infer<typeof runConfigViewSchema>;
855
+ export declare const dashboardEventTypeSchema: z.ZodEnum<{
856
+ run_started: "run_started";
857
+ run_completed: "run_completed";
858
+ run_failed: "run_failed";
859
+ run_aborted: "run_aborted";
860
+ worker_dispatched: "worker_dispatched";
861
+ worker_completed: "worker_completed";
862
+ script_started: "script_started";
863
+ script_completed: "script_completed";
864
+ finding_resolved: "finding_resolved";
865
+ state_changed: "state_changed";
866
+ artifact_produced: "artifact_produced";
867
+ finding_added: "finding_added";
868
+ iteration_completed: "iteration_completed";
869
+ health_changed: "health_changed";
870
+ permission_requested: "permission_requested";
871
+ permission_resolved: "permission_resolved";
872
+ clarification_requested: "clarification_requested";
873
+ clarification_resolved: "clarification_resolved";
874
+ }>;
875
+ export type DashboardEventType = z.infer<typeof dashboardEventTypeSchema>;
876
+ export declare const dashboardEventSchema: z.ZodObject<{
877
+ type: z.ZodEnum<{
878
+ run_started: "run_started";
879
+ run_completed: "run_completed";
880
+ run_failed: "run_failed";
881
+ run_aborted: "run_aborted";
882
+ worker_dispatched: "worker_dispatched";
883
+ worker_completed: "worker_completed";
884
+ script_started: "script_started";
885
+ script_completed: "script_completed";
886
+ finding_resolved: "finding_resolved";
887
+ state_changed: "state_changed";
888
+ artifact_produced: "artifact_produced";
889
+ finding_added: "finding_added";
890
+ iteration_completed: "iteration_completed";
891
+ health_changed: "health_changed";
892
+ permission_requested: "permission_requested";
893
+ permission_resolved: "permission_resolved";
894
+ clarification_requested: "clarification_requested";
895
+ clarification_resolved: "clarification_resolved";
896
+ }>;
897
+ timestamp: z.ZodString;
898
+ runId: z.ZodOptional<z.ZodString>;
899
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
900
+ }, z.core.$strip>;
901
+ export type DashboardEvent = z.infer<typeof dashboardEventSchema>;
902
+ export declare const subsystemHealthViewSchema: z.ZodObject<{
903
+ name: z.ZodString;
904
+ status: z.ZodEnum<{
905
+ unknown: "unknown";
906
+ healthy: "healthy";
907
+ degraded: "degraded";
908
+ unhealthy: "unhealthy";
909
+ }>;
910
+ lastCheckedAt: z.ZodString;
911
+ consecutiveFailures: z.ZodNumber;
912
+ message: z.ZodString;
913
+ version: z.ZodOptional<z.ZodString>;
914
+ }, z.core.$strip>;
915
+ export type SubsystemHealthView = z.infer<typeof subsystemHealthViewSchema>;
916
+ export declare const systemHealthViewSchema: z.ZodObject<{
917
+ timestamp: z.ZodString;
918
+ overallStatus: z.ZodEnum<{
919
+ unknown: "unknown";
920
+ healthy: "healthy";
921
+ degraded: "degraded";
922
+ unhealthy: "unhealthy";
923
+ }>;
924
+ subsystems: z.ZodReadonly<z.ZodArray<z.ZodObject<{
925
+ name: z.ZodString;
926
+ status: z.ZodEnum<{
927
+ unknown: "unknown";
928
+ healthy: "healthy";
929
+ degraded: "degraded";
930
+ unhealthy: "unhealthy";
931
+ }>;
932
+ lastCheckedAt: z.ZodString;
933
+ consecutiveFailures: z.ZodNumber;
934
+ message: z.ZodString;
935
+ version: z.ZodOptional<z.ZodString>;
936
+ }, z.core.$strip>>>;
937
+ }, z.core.$strip>;
938
+ export type SystemHealthView = z.infer<typeof systemHealthViewSchema>;
939
+ export declare const runnerDefinitionSchema: z.ZodObject<{
940
+ id: z.ZodString;
941
+ name: z.ZodString;
942
+ models: z.ZodReadonly<z.ZodArray<z.ZodString>>;
943
+ }, z.core.$strip>;
944
+ export type RunnerDefinition = z.infer<typeof runnerDefinitionSchema>;
945
+ export declare const settingsRoleAssignmentSchema: z.ZodObject<{
946
+ model: z.ZodString;
947
+ dispatchType: z.ZodOptional<z.ZodString>;
948
+ runner: z.ZodOptional<z.ZodString>;
949
+ }, z.core.$strip>;
950
+ export type SettingsRoleAssignment = z.infer<typeof settingsRoleAssignmentSchema>;
951
+ export declare const settingsPermissionRuleSchema: z.ZodObject<{
952
+ action: z.ZodString;
953
+ decision: z.ZodEnum<{
954
+ grant: "grant";
955
+ deny: "deny";
956
+ }>;
957
+ scope: z.ZodOptional<z.ZodString>;
958
+ pattern: z.ZodOptional<z.ZodString>;
959
+ }, z.core.$strip>;
960
+ export declare const settingsPermissionPolicySchema: z.ZodObject<{
961
+ defaultAction: z.ZodEnum<{
962
+ grant: "grant";
963
+ deny: "deny";
964
+ ask_human: "ask_human";
965
+ }>;
966
+ rules: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
967
+ action: z.ZodString;
968
+ decision: z.ZodEnum<{
969
+ grant: "grant";
970
+ deny: "deny";
971
+ }>;
972
+ scope: z.ZodOptional<z.ZodString>;
973
+ pattern: z.ZodOptional<z.ZodString>;
974
+ }, z.core.$strip>>>>;
975
+ roleTrust: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
976
+ high: "high";
977
+ medium: "medium";
978
+ none: "none";
979
+ }>>>;
980
+ safeCommands: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
981
+ }, z.core.$strip>;
982
+ export type SettingsPermissionPolicy = z.infer<typeof settingsPermissionPolicySchema>;
983
+ export declare const settingsGovernanceSchema: z.ZodObject<{
984
+ iterationLimits: z.ZodObject<{
985
+ defaults: z.ZodRecord<z.ZodString, z.ZodNumber>;
986
+ }, z.core.$strip>;
987
+ qualityGates: z.ZodObject<{
988
+ specificationReadiness: z.ZodObject<{
989
+ minCompletenessScore: z.ZodNumber;
990
+ }, z.core.$strip>;
991
+ implementationReview: z.ZodObject<{
992
+ maxHighSeverityFindings: z.ZodNumber;
993
+ maxMediumSeverityFindings: z.ZodNumber;
994
+ }, z.core.$strip>;
995
+ }, z.core.$strip>;
996
+ budget: z.ZodOptional<z.ZodObject<{
997
+ maxTokensPerRun: z.ZodOptional<z.ZodNumber>;
998
+ }, z.core.$strip>>;
999
+ permissionPolicy: z.ZodOptional<z.ZodObject<{
1000
+ defaultAction: z.ZodEnum<{
1001
+ grant: "grant";
1002
+ deny: "deny";
1003
+ ask_human: "ask_human";
1004
+ }>;
1005
+ rules: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
1006
+ action: z.ZodString;
1007
+ decision: z.ZodEnum<{
1008
+ grant: "grant";
1009
+ deny: "deny";
1010
+ }>;
1011
+ scope: z.ZodOptional<z.ZodString>;
1012
+ pattern: z.ZodOptional<z.ZodString>;
1013
+ }, z.core.$strip>>>>;
1014
+ roleTrust: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1015
+ high: "high";
1016
+ medium: "medium";
1017
+ none: "none";
1018
+ }>>>;
1019
+ safeCommands: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1020
+ }, z.core.$strip>>;
1021
+ }, z.core.$strip>;
1022
+ export type SettingsGovernance = z.infer<typeof settingsGovernanceSchema>;
1023
+ export declare const projectSettingsViewSchema: z.ZodObject<{
1024
+ roles: z.ZodObject<{
1025
+ assignments: z.ZodRecord<z.ZodString, z.ZodObject<{
1026
+ model: z.ZodString;
1027
+ dispatchType: z.ZodOptional<z.ZodString>;
1028
+ runner: z.ZodOptional<z.ZodString>;
1029
+ }, z.core.$strip>>;
1030
+ }, z.core.$strip>;
1031
+ governance: z.ZodObject<{
1032
+ iterationLimits: z.ZodObject<{
1033
+ defaults: z.ZodRecord<z.ZodString, z.ZodNumber>;
1034
+ }, z.core.$strip>;
1035
+ qualityGates: z.ZodObject<{
1036
+ specificationReadiness: z.ZodObject<{
1037
+ minCompletenessScore: z.ZodNumber;
1038
+ }, z.core.$strip>;
1039
+ implementationReview: z.ZodObject<{
1040
+ maxHighSeverityFindings: z.ZodNumber;
1041
+ maxMediumSeverityFindings: z.ZodNumber;
1042
+ }, z.core.$strip>;
1043
+ }, z.core.$strip>;
1044
+ budget: z.ZodOptional<z.ZodObject<{
1045
+ maxTokensPerRun: z.ZodOptional<z.ZodNumber>;
1046
+ }, z.core.$strip>>;
1047
+ permissionPolicy: z.ZodOptional<z.ZodObject<{
1048
+ defaultAction: z.ZodEnum<{
1049
+ grant: "grant";
1050
+ deny: "deny";
1051
+ ask_human: "ask_human";
1052
+ }>;
1053
+ rules: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
1054
+ action: z.ZodString;
1055
+ decision: z.ZodEnum<{
1056
+ grant: "grant";
1057
+ deny: "deny";
1058
+ }>;
1059
+ scope: z.ZodOptional<z.ZodString>;
1060
+ pattern: z.ZodOptional<z.ZodString>;
1061
+ }, z.core.$strip>>>>;
1062
+ roleTrust: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1063
+ high: "high";
1064
+ medium: "medium";
1065
+ none: "none";
1066
+ }>>>;
1067
+ safeCommands: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1068
+ }, z.core.$strip>>;
1069
+ }, z.core.$strip>;
1070
+ runtime: z.ZodObject<{
1071
+ logLevel: z.ZodString;
1072
+ }, z.core.$strip>;
1073
+ availableRunners: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1074
+ modelsByRunner: z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>;
1075
+ }, z.core.$strip>;
1076
+ export type ProjectSettingsView = z.infer<typeof projectSettingsViewSchema>;