@neurouter/shared 0.0.0-stage → 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.
Files changed (161) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +10 -0
  3. package/dist/.tsbuildinfo +1 -0
  4. package/dist/api/audit.d.ts +776 -0
  5. package/dist/api/audit.d.ts.map +1 -0
  6. package/dist/api/audit.js +106 -0
  7. package/dist/api/audit.js.map +1 -0
  8. package/dist/api/auth.d.ts +345 -0
  9. package/dist/api/auth.d.ts.map +1 -0
  10. package/dist/api/auth.js +94 -0
  11. package/dist/api/auth.js.map +1 -0
  12. package/dist/api/common.d.ts +303 -0
  13. package/dist/api/common.d.ts.map +1 -0
  14. package/dist/api/common.js +153 -0
  15. package/dist/api/common.js.map +1 -0
  16. package/dist/api/endpoint.d.ts +55 -0
  17. package/dist/api/endpoint.d.ts.map +1 -0
  18. package/dist/api/endpoint.js +41 -0
  19. package/dist/api/endpoint.js.map +1 -0
  20. package/dist/api/environments.d.ts +2420 -0
  21. package/dist/api/environments.d.ts.map +1 -0
  22. package/dist/api/environments.js +218 -0
  23. package/dist/api/environments.js.map +1 -0
  24. package/dist/api/evals.d.ts +3582 -0
  25. package/dist/api/evals.d.ts.map +1 -0
  26. package/dist/api/evals.js +296 -0
  27. package/dist/api/evals.js.map +1 -0
  28. package/dist/api/inbox.d.ts +1117 -0
  29. package/dist/api/inbox.d.ts.map +1 -0
  30. package/dist/api/inbox.js +115 -0
  31. package/dist/api/inbox.js.map +1 -0
  32. package/dist/api/index.d.ts +19 -0
  33. package/dist/api/index.d.ts.map +1 -0
  34. package/dist/api/index.js +19 -0
  35. package/dist/api/index.js.map +1 -0
  36. package/dist/api/keys.d.ts +724 -0
  37. package/dist/api/keys.d.ts.map +1 -0
  38. package/dist/api/keys.js +111 -0
  39. package/dist/api/keys.js.map +1 -0
  40. package/dist/api/metrics.d.ts +506 -0
  41. package/dist/api/metrics.d.ts.map +1 -0
  42. package/dist/api/metrics.js +66 -0
  43. package/dist/api/metrics.js.map +1 -0
  44. package/dist/api/overlays.d.ts +966 -0
  45. package/dist/api/overlays.d.ts.map +1 -0
  46. package/dist/api/overlays.js +111 -0
  47. package/dist/api/overlays.js.map +1 -0
  48. package/dist/api/public.d.ts +99 -0
  49. package/dist/api/public.d.ts.map +1 -0
  50. package/dist/api/public.js +29 -0
  51. package/dist/api/public.js.map +1 -0
  52. package/dist/api/readiness.d.ts +129 -0
  53. package/dist/api/readiness.d.ts.map +1 -0
  54. package/dist/api/readiness.js +40 -0
  55. package/dist/api/readiness.js.map +1 -0
  56. package/dist/api/routes.d.ts +10215 -0
  57. package/dist/api/routes.d.ts.map +1 -0
  58. package/dist/api/routes.js +132 -0
  59. package/dist/api/routes.js.map +1 -0
  60. package/dist/api/servers.d.ts +2632 -0
  61. package/dist/api/servers.d.ts.map +1 -0
  62. package/dist/api/servers.js +145 -0
  63. package/dist/api/servers.js.map +1 -0
  64. package/dist/api/settings.d.ts +1329 -0
  65. package/dist/api/settings.d.ts.map +1 -0
  66. package/dist/api/settings.js +220 -0
  67. package/dist/api/settings.js.map +1 -0
  68. package/dist/api/specs.d.ts +1393 -0
  69. package/dist/api/specs.d.ts.map +1 -0
  70. package/dist/api/specs.js +170 -0
  71. package/dist/api/specs.js.map +1 -0
  72. package/dist/api/tasks.d.ts +1006 -0
  73. package/dist/api/tasks.d.ts.map +1 -0
  74. package/dist/api/tasks.js +173 -0
  75. package/dist/api/tasks.js.map +1 -0
  76. package/dist/api/tools.d.ts +555 -0
  77. package/dist/api/tools.d.ts.map +1 -0
  78. package/dist/api/tools.js +109 -0
  79. package/dist/api/tools.js.map +1 -0
  80. package/dist/config/index.d.ts +6 -0
  81. package/dist/config/index.d.ts.map +1 -0
  82. package/dist/config/index.js +6 -0
  83. package/dist/config/index.js.map +1 -0
  84. package/dist/config/limits.d.ts +79 -0
  85. package/dist/config/limits.d.ts.map +1 -0
  86. package/dist/config/limits.js +53 -0
  87. package/dist/config/limits.js.map +1 -0
  88. package/dist/config/llm-models.d.ts +34 -0
  89. package/dist/config/llm-models.d.ts.map +1 -0
  90. package/dist/config/llm-models.js +48 -0
  91. package/dist/config/llm-models.js.map +1 -0
  92. package/dist/config/neurouter-yaml.d.ts +690 -0
  93. package/dist/config/neurouter-yaml.d.ts.map +1 -0
  94. package/dist/config/neurouter-yaml.js +203 -0
  95. package/dist/config/neurouter-yaml.js.map +1 -0
  96. package/dist/config/policy.d.ts +72 -0
  97. package/dist/config/policy.d.ts.map +1 -0
  98. package/dist/config/policy.js +39 -0
  99. package/dist/config/policy.js.map +1 -0
  100. package/dist/config/secret-ref.d.ts +21 -0
  101. package/dist/config/secret-ref.d.ts.map +1 -0
  102. package/dist/config/secret-ref.js +19 -0
  103. package/dist/config/secret-ref.js.map +1 -0
  104. package/dist/domain/assertions.d.ts +63 -0
  105. package/dist/domain/assertions.d.ts.map +1 -0
  106. package/dist/domain/assertions.js +35 -0
  107. package/dist/domain/assertions.js.map +1 -0
  108. package/dist/domain/capabilities.d.ts +29 -0
  109. package/dist/domain/capabilities.d.ts.map +1 -0
  110. package/dist/domain/capabilities.js +31 -0
  111. package/dist/domain/capabilities.js.map +1 -0
  112. package/dist/domain/enums.d.ts +416 -0
  113. package/dist/domain/enums.d.ts.map +1 -0
  114. package/dist/domain/enums.js +104 -0
  115. package/dist/domain/enums.js.map +1 -0
  116. package/dist/domain/error-codes.d.ts +15 -0
  117. package/dist/domain/error-codes.d.ts.map +1 -0
  118. package/dist/domain/error-codes.js +70 -0
  119. package/dist/domain/error-codes.js.map +1 -0
  120. package/dist/domain/index.d.ts +7 -0
  121. package/dist/domain/index.d.ts.map +1 -0
  122. package/dist/domain/index.js +7 -0
  123. package/dist/domain/index.js.map +1 -0
  124. package/dist/domain/roles.d.ts +8 -0
  125. package/dist/domain/roles.d.ts.map +1 -0
  126. package/dist/domain/roles.js +4 -0
  127. package/dist/domain/roles.js.map +1 -0
  128. package/dist/domain/tool-model.d.ts +257 -0
  129. package/dist/domain/tool-model.d.ts.map +1 -0
  130. package/dist/domain/tool-model.js +37 -0
  131. package/dist/domain/tool-model.js.map +1 -0
  132. package/dist/index.d.ts +7 -0
  133. package/dist/index.d.ts.map +1 -0
  134. package/dist/index.js +7 -0
  135. package/dist/index.js.map +1 -0
  136. package/dist/mcp/index.d.ts +3 -0
  137. package/dist/mcp/index.d.ts.map +1 -0
  138. package/dist/mcp/index.js +3 -0
  139. package/dist/mcp/index.js.map +1 -0
  140. package/dist/mcp/meta-keys.d.ts +26 -0
  141. package/dist/mcp/meta-keys.d.ts.map +1 -0
  142. package/dist/mcp/meta-keys.js +29 -0
  143. package/dist/mcp/meta-keys.js.map +1 -0
  144. package/dist/mcp/tool-names.d.ts +20 -0
  145. package/dist/mcp/tool-names.d.ts.map +1 -0
  146. package/dist/mcp/tool-names.js +30 -0
  147. package/dist/mcp/tool-names.js.map +1 -0
  148. package/dist/overlay/index.d.ts +2 -0
  149. package/dist/overlay/index.d.ts.map +1 -0
  150. package/dist/overlay/index.js +2 -0
  151. package/dist/overlay/index.js.map +1 -0
  152. package/dist/overlay/schema.d.ts +243 -0
  153. package/dist/overlay/schema.d.ts.map +1 -0
  154. package/dist/overlay/schema.js +103 -0
  155. package/dist/overlay/schema.js.map +1 -0
  156. package/dist/version.d.ts +9 -0
  157. package/dist/version.d.ts.map +1 -0
  158. package/dist/version.js +8 -0
  159. package/dist/version.js.map +1 -0
  160. package/package.json +72 -4
  161. package/README.md +0 -3
@@ -0,0 +1,3582 @@
1
+ import * as z from 'zod';
2
+ export declare const CategoryCounts: z.ZodObject<{
3
+ single: z.ZodNumber;
4
+ multi: z.ZodNumber;
5
+ ambiguous: z.ZodNumber;
6
+ impossible: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ export type CategoryCounts = z.infer<typeof CategoryCounts>;
9
+ /** Generator defaults (8/8/4/4) and the quick preset (4/4/2/2). */
10
+ export declare const DEFAULT_SUITE_COUNTS: CategoryCounts;
11
+ export declare const QUICK_SUITE_COUNTS: CategoryCounts;
12
+ export declare const EvalSuiteRow: z.ZodObject<{
13
+ id: z.ZodString;
14
+ serverId: z.ZodString;
15
+ version: z.ZodNumber;
16
+ status: z.ZodEnum<{
17
+ draft: "draft";
18
+ frozen: "frozen";
19
+ }>;
20
+ taskCount: z.ZodNumber;
21
+ byCategory: z.ZodObject<{
22
+ single: z.ZodNumber;
23
+ multi: z.ZodNumber;
24
+ ambiguous: z.ZodNumber;
25
+ impossible: z.ZodNumber;
26
+ }, z.core.$strip>;
27
+ generatedFromBuild: z.ZodNullable<z.ZodObject<{
28
+ id: z.ZodString;
29
+ hash: z.ZodString;
30
+ }, z.core.$strip>>;
31
+ generator: z.ZodNullable<z.ZodObject<{
32
+ model: z.ZodString;
33
+ promptVersion: z.ZodString;
34
+ seed: z.ZodNullable<z.ZodNumber>;
35
+ }, z.core.$strip>>;
36
+ createdAt: z.ZodISODateTime;
37
+ frozenAt: z.ZodNullable<z.ZodISODateTime>;
38
+ }, z.core.$strip>;
39
+ export type EvalSuiteRow = z.infer<typeof EvalSuiteRow>;
40
+ export declare const EvalTaskRow: z.ZodObject<{
41
+ id: z.ZodString;
42
+ key: z.ZodString;
43
+ category: z.ZodEnum<{
44
+ single: "single";
45
+ multi: "multi";
46
+ ambiguous: "ambiguous";
47
+ impossible: "impossible";
48
+ }>;
49
+ prompt: z.ZodString;
50
+ rubric: z.ZodString;
51
+ assertions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ type: z.ZodLiteral<"called">;
53
+ tool: z.ZodString;
54
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
55
+ argsMatch: z.ZodOptional<z.ZodEnum<{
56
+ subset: "subset";
57
+ exact: "exact";
58
+ }>>;
59
+ minTimes: z.ZodOptional<z.ZodNumber>;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ type: z.ZodLiteral<"not_called">;
62
+ tool: z.ZodString;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ type: z.ZodLiteral<"no_writes">;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ type: z.ZodLiteral<"max_calls">;
67
+ n: z.ZodNumber;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ type: z.ZodLiteral<"state">;
70
+ resource: z.ZodString;
71
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
72
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
73
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
74
+ count: z.ZodNumber;
75
+ }, z.core.$strip>]>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ type: z.ZodLiteral<"answer_contains">;
78
+ anyOf: z.ZodArray<z.ZodString>;
79
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodLiteral<"answer_matches">;
82
+ regex: z.ZodString;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ type: z.ZodLiteral<"framing">;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ type: z.ZodLiteral<"judge">;
89
+ criterion: z.ZodString;
90
+ }, z.core.$strip>], "type">>;
91
+ referenceCalls: z.ZodArray<z.ZodObject<{
92
+ tool: z.ZodString;
93
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
94
+ }, z.core.$strip>>;
95
+ seedState: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
96
+ tags: z.ZodArray<z.ZodString>;
97
+ enabled: z.ZodBoolean;
98
+ source: z.ZodEnum<{
99
+ generated: "generated";
100
+ manual: "manual";
101
+ }>;
102
+ }, z.core.$strip>;
103
+ export type EvalTaskRow = z.infer<typeof EvalTaskRow>;
104
+ export declare const EvalSuiteDetail: z.ZodObject<{
105
+ id: z.ZodString;
106
+ serverId: z.ZodString;
107
+ version: z.ZodNumber;
108
+ status: z.ZodEnum<{
109
+ draft: "draft";
110
+ frozen: "frozen";
111
+ }>;
112
+ taskCount: z.ZodNumber;
113
+ byCategory: z.ZodObject<{
114
+ single: z.ZodNumber;
115
+ multi: z.ZodNumber;
116
+ ambiguous: z.ZodNumber;
117
+ impossible: z.ZodNumber;
118
+ }, z.core.$strip>;
119
+ generatedFromBuild: z.ZodNullable<z.ZodObject<{
120
+ id: z.ZodString;
121
+ hash: z.ZodString;
122
+ }, z.core.$strip>>;
123
+ generator: z.ZodNullable<z.ZodObject<{
124
+ model: z.ZodString;
125
+ promptVersion: z.ZodString;
126
+ seed: z.ZodNullable<z.ZodNumber>;
127
+ }, z.core.$strip>>;
128
+ createdAt: z.ZodISODateTime;
129
+ frozenAt: z.ZodNullable<z.ZodISODateTime>;
130
+ tasks: z.ZodArray<z.ZodObject<{
131
+ id: z.ZodString;
132
+ key: z.ZodString;
133
+ category: z.ZodEnum<{
134
+ single: "single";
135
+ multi: "multi";
136
+ ambiguous: "ambiguous";
137
+ impossible: "impossible";
138
+ }>;
139
+ prompt: z.ZodString;
140
+ rubric: z.ZodString;
141
+ assertions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
142
+ type: z.ZodLiteral<"called">;
143
+ tool: z.ZodString;
144
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
145
+ argsMatch: z.ZodOptional<z.ZodEnum<{
146
+ subset: "subset";
147
+ exact: "exact";
148
+ }>>;
149
+ minTimes: z.ZodOptional<z.ZodNumber>;
150
+ }, z.core.$strip>, z.ZodObject<{
151
+ type: z.ZodLiteral<"not_called">;
152
+ tool: z.ZodString;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ type: z.ZodLiteral<"no_writes">;
155
+ }, z.core.$strip>, z.ZodObject<{
156
+ type: z.ZodLiteral<"max_calls">;
157
+ n: z.ZodNumber;
158
+ }, z.core.$strip>, z.ZodObject<{
159
+ type: z.ZodLiteral<"state">;
160
+ resource: z.ZodString;
161
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
162
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
163
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
164
+ count: z.ZodNumber;
165
+ }, z.core.$strip>]>;
166
+ }, z.core.$strip>, z.ZodObject<{
167
+ type: z.ZodLiteral<"answer_contains">;
168
+ anyOf: z.ZodArray<z.ZodString>;
169
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
170
+ }, z.core.$strip>, z.ZodObject<{
171
+ type: z.ZodLiteral<"answer_matches">;
172
+ regex: z.ZodString;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ type: z.ZodLiteral<"framing">;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ type: z.ZodLiteral<"judge">;
179
+ criterion: z.ZodString;
180
+ }, z.core.$strip>], "type">>;
181
+ referenceCalls: z.ZodArray<z.ZodObject<{
182
+ tool: z.ZodString;
183
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
184
+ }, z.core.$strip>>;
185
+ seedState: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
186
+ tags: z.ZodArray<z.ZodString>;
187
+ enabled: z.ZodBoolean;
188
+ source: z.ZodEnum<{
189
+ generated: "generated";
190
+ manual: "manual";
191
+ }>;
192
+ }, z.core.$strip>>;
193
+ diagnostics: z.ZodArray<z.ZodString>;
194
+ }, z.core.$strip>;
195
+ export type EvalSuiteDetail = z.infer<typeof EvalSuiteDetail>;
196
+ export declare const SuiteGenerate: z.ZodObject<{
197
+ counts: z.ZodOptional<z.ZodObject<{
198
+ single: z.ZodNumber;
199
+ multi: z.ZodNumber;
200
+ ambiguous: z.ZodNumber;
201
+ impossible: z.ZodNumber;
202
+ }, z.core.$strip>>;
203
+ model: z.ZodOptional<z.ZodString>;
204
+ seed: z.ZodOptional<z.ZodNumber>;
205
+ instructions: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strip>;
207
+ export type SuiteGenerate = z.infer<typeof SuiteGenerate>;
208
+ export declare const EvalTaskCreate: z.ZodObject<{
209
+ key: z.ZodString;
210
+ category: z.ZodEnum<{
211
+ single: "single";
212
+ multi: "multi";
213
+ ambiguous: "ambiguous";
214
+ impossible: "impossible";
215
+ }>;
216
+ prompt: z.ZodString;
217
+ rubric: z.ZodDefault<z.ZodString>;
218
+ assertions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
219
+ type: z.ZodLiteral<"called">;
220
+ tool: z.ZodString;
221
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
222
+ argsMatch: z.ZodOptional<z.ZodEnum<{
223
+ subset: "subset";
224
+ exact: "exact";
225
+ }>>;
226
+ minTimes: z.ZodOptional<z.ZodNumber>;
227
+ }, z.core.$strip>, z.ZodObject<{
228
+ type: z.ZodLiteral<"not_called">;
229
+ tool: z.ZodString;
230
+ }, z.core.$strip>, z.ZodObject<{
231
+ type: z.ZodLiteral<"no_writes">;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ type: z.ZodLiteral<"max_calls">;
234
+ n: z.ZodNumber;
235
+ }, z.core.$strip>, z.ZodObject<{
236
+ type: z.ZodLiteral<"state">;
237
+ resource: z.ZodString;
238
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
239
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
240
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
241
+ count: z.ZodNumber;
242
+ }, z.core.$strip>]>;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ type: z.ZodLiteral<"answer_contains">;
245
+ anyOf: z.ZodArray<z.ZodString>;
246
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
247
+ }, z.core.$strip>, z.ZodObject<{
248
+ type: z.ZodLiteral<"answer_matches">;
249
+ regex: z.ZodString;
250
+ }, z.core.$strip>, z.ZodObject<{
251
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
252
+ }, z.core.$strip>, z.ZodObject<{
253
+ type: z.ZodLiteral<"framing">;
254
+ }, z.core.$strip>, z.ZodObject<{
255
+ type: z.ZodLiteral<"judge">;
256
+ criterion: z.ZodString;
257
+ }, z.core.$strip>], "type">>>;
258
+ referenceCalls: z.ZodDefault<z.ZodArray<z.ZodObject<{
259
+ tool: z.ZodString;
260
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
261
+ }, z.core.$strip>>>;
262
+ seedState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
263
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
264
+ }, z.core.$strip>;
265
+ export type EvalTaskCreate = z.infer<typeof EvalTaskCreate>;
266
+ export declare const EvalTaskPatch: z.ZodObject<{
267
+ prompt: z.ZodOptional<z.ZodString>;
268
+ rubric: z.ZodOptional<z.ZodString>;
269
+ assertions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
270
+ type: z.ZodLiteral<"called">;
271
+ tool: z.ZodString;
272
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
273
+ argsMatch: z.ZodOptional<z.ZodEnum<{
274
+ subset: "subset";
275
+ exact: "exact";
276
+ }>>;
277
+ minTimes: z.ZodOptional<z.ZodNumber>;
278
+ }, z.core.$strip>, z.ZodObject<{
279
+ type: z.ZodLiteral<"not_called">;
280
+ tool: z.ZodString;
281
+ }, z.core.$strip>, z.ZodObject<{
282
+ type: z.ZodLiteral<"no_writes">;
283
+ }, z.core.$strip>, z.ZodObject<{
284
+ type: z.ZodLiteral<"max_calls">;
285
+ n: z.ZodNumber;
286
+ }, z.core.$strip>, z.ZodObject<{
287
+ type: z.ZodLiteral<"state">;
288
+ resource: z.ZodString;
289
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
290
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
291
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
292
+ count: z.ZodNumber;
293
+ }, z.core.$strip>]>;
294
+ }, z.core.$strip>, z.ZodObject<{
295
+ type: z.ZodLiteral<"answer_contains">;
296
+ anyOf: z.ZodArray<z.ZodString>;
297
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
298
+ }, z.core.$strip>, z.ZodObject<{
299
+ type: z.ZodLiteral<"answer_matches">;
300
+ regex: z.ZodString;
301
+ }, z.core.$strip>, z.ZodObject<{
302
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
303
+ }, z.core.$strip>, z.ZodObject<{
304
+ type: z.ZodLiteral<"framing">;
305
+ }, z.core.$strip>, z.ZodObject<{
306
+ type: z.ZodLiteral<"judge">;
307
+ criterion: z.ZodString;
308
+ }, z.core.$strip>], "type">>>;
309
+ referenceCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
310
+ tool: z.ZodString;
311
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
312
+ }, z.core.$strip>>>;
313
+ enabled: z.ZodOptional<z.ZodBoolean>;
314
+ }, z.core.$strip>;
315
+ export type EvalTaskPatch = z.infer<typeof EvalTaskPatch>;
316
+ /** Suite export/import format for git and CI (§15.2). */
317
+ export declare const SuiteFile: z.ZodObject<{
318
+ version: z.ZodLiteral<1>;
319
+ server: z.ZodString;
320
+ generatedFrom: z.ZodOptional<z.ZodObject<{
321
+ buildHash: z.ZodNullable<z.ZodString>;
322
+ model: z.ZodNullable<z.ZodString>;
323
+ promptVersion: z.ZodNullable<z.ZodString>;
324
+ }, z.core.$strip>>;
325
+ tasks: z.ZodArray<z.ZodObject<{
326
+ key: z.ZodString;
327
+ category: z.ZodEnum<{
328
+ single: "single";
329
+ multi: "multi";
330
+ ambiguous: "ambiguous";
331
+ impossible: "impossible";
332
+ }>;
333
+ prompt: z.ZodString;
334
+ rubric: z.ZodDefault<z.ZodString>;
335
+ assertions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
336
+ type: z.ZodLiteral<"called">;
337
+ tool: z.ZodString;
338
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
339
+ argsMatch: z.ZodOptional<z.ZodEnum<{
340
+ subset: "subset";
341
+ exact: "exact";
342
+ }>>;
343
+ minTimes: z.ZodOptional<z.ZodNumber>;
344
+ }, z.core.$strip>, z.ZodObject<{
345
+ type: z.ZodLiteral<"not_called">;
346
+ tool: z.ZodString;
347
+ }, z.core.$strip>, z.ZodObject<{
348
+ type: z.ZodLiteral<"no_writes">;
349
+ }, z.core.$strip>, z.ZodObject<{
350
+ type: z.ZodLiteral<"max_calls">;
351
+ n: z.ZodNumber;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ type: z.ZodLiteral<"state">;
354
+ resource: z.ZodString;
355
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
356
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
357
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
358
+ count: z.ZodNumber;
359
+ }, z.core.$strip>]>;
360
+ }, z.core.$strip>, z.ZodObject<{
361
+ type: z.ZodLiteral<"answer_contains">;
362
+ anyOf: z.ZodArray<z.ZodString>;
363
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
364
+ }, z.core.$strip>, z.ZodObject<{
365
+ type: z.ZodLiteral<"answer_matches">;
366
+ regex: z.ZodString;
367
+ }, z.core.$strip>, z.ZodObject<{
368
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
369
+ }, z.core.$strip>, z.ZodObject<{
370
+ type: z.ZodLiteral<"framing">;
371
+ }, z.core.$strip>, z.ZodObject<{
372
+ type: z.ZodLiteral<"judge">;
373
+ criterion: z.ZodString;
374
+ }, z.core.$strip>], "type">>>;
375
+ referenceCalls: z.ZodDefault<z.ZodArray<z.ZodObject<{
376
+ tool: z.ZodString;
377
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
378
+ }, z.core.$strip>>>;
379
+ seedState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
380
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
381
+ enabled: z.ZodDefault<z.ZodBoolean>;
382
+ }, z.core.$strip>>;
383
+ }, z.core.$strip>;
384
+ export type SuiteFile = z.infer<typeof SuiteFile>;
385
+ export declare const TokenUsage: z.ZodObject<{
386
+ inputTokens: z.ZodNumber;
387
+ outputTokens: z.ZodNumber;
388
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
389
+ }, z.core.$strip>;
390
+ export type TokenUsage = z.infer<typeof TokenUsage>;
391
+ export declare const EvalRunRow: z.ZodObject<{
392
+ id: z.ZodString;
393
+ server: z.ZodObject<{
394
+ id: z.ZodString;
395
+ slug: z.ZodString;
396
+ name: z.ZodString;
397
+ }, z.core.$strip>;
398
+ suite: z.ZodObject<{
399
+ id: z.ZodString;
400
+ version: z.ZodNumber;
401
+ }, z.core.$strip>;
402
+ environment: z.ZodObject<{
403
+ id: z.ZodString;
404
+ slug: z.ZodString;
405
+ name: z.ZodString;
406
+ }, z.core.$strip>;
407
+ build: z.ZodObject<{
408
+ id: z.ZodString;
409
+ hash: z.ZodString;
410
+ }, z.core.$strip>;
411
+ overlayRev: z.ZodNullable<z.ZodNumber>;
412
+ temporaryBuild: z.ZodBoolean;
413
+ models: z.ZodArray<z.ZodString>;
414
+ modes: z.ZodArray<z.ZodEnum<{
415
+ code: "code";
416
+ tool: "tool";
417
+ }>>;
418
+ repeats: z.ZodNumber;
419
+ status: z.ZodEnum<{
420
+ cancelled: "cancelled";
421
+ running: "running";
422
+ queued: "queued";
423
+ succeeded: "succeeded";
424
+ failed: "failed";
425
+ }>;
426
+ progress: z.ZodObject<{
427
+ done: z.ZodNumber;
428
+ total: z.ZodNumber;
429
+ }, z.core.$strip>;
430
+ headline: z.ZodNullable<z.ZodNumber>;
431
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
432
+ code: "code";
433
+ tool: "tool";
434
+ }>>;
435
+ confidence: z.ZodNullable<z.ZodEnum<{
436
+ measured: "measured";
437
+ preliminary: "preliminary";
438
+ degraded: "degraded";
439
+ }>>;
440
+ trigger: z.ZodEnum<{
441
+ console: "console";
442
+ cli: "cli";
443
+ ci: "ci";
444
+ suggestion_verify: "suggestion_verify";
445
+ }>;
446
+ baseRunId: z.ZodNullable<z.ZodString>;
447
+ error: z.ZodNullable<z.ZodString>;
448
+ createdAt: z.ZodISODateTime;
449
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
450
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
451
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
452
+ inputTokens: z.ZodNumber;
453
+ outputTokens: z.ZodNumber;
454
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
455
+ }, z.core.$strip>>;
456
+ }, z.core.$strip>;
457
+ export type EvalRunRow = z.infer<typeof EvalRunRow>;
458
+ export declare const MatrixCell: z.ZodObject<{
459
+ model: z.ZodString;
460
+ mode: z.ZodEnum<{
461
+ code: "code";
462
+ tool: "tool";
463
+ }>;
464
+ successRate: z.ZodNumber;
465
+ score: z.ZodNumber;
466
+ avgTokens: z.ZodNumber;
467
+ avgCalls: z.ZodNumber;
468
+ avgLatencyMs: z.ZodNumber;
469
+ flakyTasks: z.ZodNumber;
470
+ excludedAttempts: z.ZodNumber;
471
+ best: z.ZodBoolean;
472
+ }, z.core.$strip>;
473
+ export type MatrixCell = z.infer<typeof MatrixCell>;
474
+ export declare const TaskResultCell: z.ZodObject<{
475
+ model: z.ZodString;
476
+ mode: z.ZodEnum<{
477
+ code: "code";
478
+ tool: "tool";
479
+ }>;
480
+ passes: z.ZodNumber;
481
+ attempts: z.ZodNumber;
482
+ flaky: z.ZodBoolean;
483
+ failureCause: z.ZodNullable<z.ZodEnum<{
484
+ error: "error";
485
+ wrong_tool: "wrong_tool";
486
+ bad_arguments: "bad_arguments";
487
+ missing_capability: "missing_capability";
488
+ gave_up: "gave_up";
489
+ hallucinated: "hallucinated";
490
+ policy_blocked: "policy_blocked";
491
+ no_framing: "no_framing";
492
+ over_budget: "over_budget";
493
+ }>>;
494
+ avgTokens: z.ZodNumber;
495
+ avgCalls: z.ZodNumber;
496
+ taskRunIds: z.ZodArray<z.ZodString>;
497
+ }, z.core.$strip>;
498
+ export declare const TaskResultRow: z.ZodObject<{
499
+ taskId: z.ZodString;
500
+ key: z.ZodString;
501
+ category: z.ZodEnum<{
502
+ single: "single";
503
+ multi: "multi";
504
+ ambiguous: "ambiguous";
505
+ impossible: "impossible";
506
+ }>;
507
+ prompt: z.ZodString;
508
+ cells: z.ZodArray<z.ZodObject<{
509
+ model: z.ZodString;
510
+ mode: z.ZodEnum<{
511
+ code: "code";
512
+ tool: "tool";
513
+ }>;
514
+ passes: z.ZodNumber;
515
+ attempts: z.ZodNumber;
516
+ flaky: z.ZodBoolean;
517
+ failureCause: z.ZodNullable<z.ZodEnum<{
518
+ error: "error";
519
+ wrong_tool: "wrong_tool";
520
+ bad_arguments: "bad_arguments";
521
+ missing_capability: "missing_capability";
522
+ gave_up: "gave_up";
523
+ hallucinated: "hallucinated";
524
+ policy_blocked: "policy_blocked";
525
+ no_framing: "no_framing";
526
+ over_budget: "over_budget";
527
+ }>>;
528
+ avgTokens: z.ZodNumber;
529
+ avgCalls: z.ZodNumber;
530
+ taskRunIds: z.ZodArray<z.ZodString>;
531
+ }, z.core.$strip>>;
532
+ }, z.core.$strip>;
533
+ export type TaskResultRow = z.infer<typeof TaskResultRow>;
534
+ export declare const EvalRunDetail: z.ZodObject<{
535
+ id: z.ZodString;
536
+ server: z.ZodObject<{
537
+ id: z.ZodString;
538
+ slug: z.ZodString;
539
+ name: z.ZodString;
540
+ }, z.core.$strip>;
541
+ suite: z.ZodObject<{
542
+ id: z.ZodString;
543
+ version: z.ZodNumber;
544
+ }, z.core.$strip>;
545
+ environment: z.ZodObject<{
546
+ id: z.ZodString;
547
+ slug: z.ZodString;
548
+ name: z.ZodString;
549
+ }, z.core.$strip>;
550
+ build: z.ZodObject<{
551
+ id: z.ZodString;
552
+ hash: z.ZodString;
553
+ }, z.core.$strip>;
554
+ overlayRev: z.ZodNullable<z.ZodNumber>;
555
+ temporaryBuild: z.ZodBoolean;
556
+ models: z.ZodArray<z.ZodString>;
557
+ modes: z.ZodArray<z.ZodEnum<{
558
+ code: "code";
559
+ tool: "tool";
560
+ }>>;
561
+ repeats: z.ZodNumber;
562
+ status: z.ZodEnum<{
563
+ cancelled: "cancelled";
564
+ running: "running";
565
+ queued: "queued";
566
+ succeeded: "succeeded";
567
+ failed: "failed";
568
+ }>;
569
+ progress: z.ZodObject<{
570
+ done: z.ZodNumber;
571
+ total: z.ZodNumber;
572
+ }, z.core.$strip>;
573
+ headline: z.ZodNullable<z.ZodNumber>;
574
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
575
+ code: "code";
576
+ tool: "tool";
577
+ }>>;
578
+ confidence: z.ZodNullable<z.ZodEnum<{
579
+ measured: "measured";
580
+ preliminary: "preliminary";
581
+ degraded: "degraded";
582
+ }>>;
583
+ trigger: z.ZodEnum<{
584
+ console: "console";
585
+ cli: "cli";
586
+ ci: "ci";
587
+ suggestion_verify: "suggestion_verify";
588
+ }>;
589
+ baseRunId: z.ZodNullable<z.ZodString>;
590
+ error: z.ZodNullable<z.ZodString>;
591
+ createdAt: z.ZodISODateTime;
592
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
593
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
594
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
595
+ inputTokens: z.ZodNumber;
596
+ outputTokens: z.ZodNumber;
597
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
598
+ }, z.core.$strip>>;
599
+ score: z.ZodNullable<z.ZodObject<{
600
+ headline: z.ZodNumber;
601
+ band: z.ZodEnum<{
602
+ not_ready: "not_ready";
603
+ needs_work: "needs_work";
604
+ ready: "ready";
605
+ excellent: "excellent";
606
+ }>;
607
+ confidence: z.ZodEnum<{
608
+ measured: "measured";
609
+ preliminary: "preliminary";
610
+ degraded: "degraded";
611
+ }>;
612
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
613
+ code: "code";
614
+ tool: "tool";
615
+ }>>;
616
+ recommendation: z.ZodNullable<z.ZodString>;
617
+ primaryModel: z.ZodString;
618
+ modeScores: z.ZodObject<{
619
+ tool: z.ZodOptional<z.ZodNumber>;
620
+ code: z.ZodOptional<z.ZodNumber>;
621
+ }, z.core.$strip>;
622
+ breakdown: z.ZodArray<z.ZodObject<{
623
+ key: z.ZodEnum<{
624
+ success: "success";
625
+ impossible: "impossible";
626
+ efficiency: "efficiency";
627
+ framing: "framing";
628
+ quality: "quality";
629
+ stability: "stability";
630
+ correctness: "correctness";
631
+ }>;
632
+ label: z.ZodString;
633
+ weight: z.ZodNumber;
634
+ score: z.ZodNumber;
635
+ detail: z.ZodString;
636
+ fixCount: z.ZodNumber;
637
+ }, z.core.$strip>>;
638
+ cells: z.ZodArray<z.ZodObject<{
639
+ model: z.ZodString;
640
+ mode: z.ZodEnum<{
641
+ code: "code";
642
+ tool: "tool";
643
+ }>;
644
+ score: z.ZodNumber;
645
+ components: z.ZodArray<z.ZodObject<{
646
+ key: z.ZodEnum<{
647
+ success: "success";
648
+ impossible: "impossible";
649
+ efficiency: "efficiency";
650
+ framing: "framing";
651
+ quality: "quality";
652
+ stability: "stability";
653
+ correctness: "correctness";
654
+ }>;
655
+ label: z.ZodString;
656
+ weight: z.ZodNumber;
657
+ score: z.ZodNumber;
658
+ detail: z.ZodString;
659
+ fixCount: z.ZodNumber;
660
+ }, z.core.$strip>>;
661
+ }, z.core.$strip>>;
662
+ }, z.core.$strip>>;
663
+ matrix: z.ZodArray<z.ZodObject<{
664
+ model: z.ZodString;
665
+ mode: z.ZodEnum<{
666
+ code: "code";
667
+ tool: "tool";
668
+ }>;
669
+ successRate: z.ZodNumber;
670
+ score: z.ZodNumber;
671
+ avgTokens: z.ZodNumber;
672
+ avgCalls: z.ZodNumber;
673
+ avgLatencyMs: z.ZodNumber;
674
+ flakyTasks: z.ZodNumber;
675
+ excludedAttempts: z.ZodNumber;
676
+ best: z.ZodBoolean;
677
+ }, z.core.$strip>>;
678
+ tasks: z.ZodArray<z.ZodObject<{
679
+ taskId: z.ZodString;
680
+ key: z.ZodString;
681
+ category: z.ZodEnum<{
682
+ single: "single";
683
+ multi: "multi";
684
+ ambiguous: "ambiguous";
685
+ impossible: "impossible";
686
+ }>;
687
+ prompt: z.ZodString;
688
+ cells: z.ZodArray<z.ZodObject<{
689
+ model: z.ZodString;
690
+ mode: z.ZodEnum<{
691
+ code: "code";
692
+ tool: "tool";
693
+ }>;
694
+ passes: z.ZodNumber;
695
+ attempts: z.ZodNumber;
696
+ flaky: z.ZodBoolean;
697
+ failureCause: z.ZodNullable<z.ZodEnum<{
698
+ error: "error";
699
+ wrong_tool: "wrong_tool";
700
+ bad_arguments: "bad_arguments";
701
+ missing_capability: "missing_capability";
702
+ gave_up: "gave_up";
703
+ hallucinated: "hallucinated";
704
+ policy_blocked: "policy_blocked";
705
+ no_framing: "no_framing";
706
+ over_budget: "over_budget";
707
+ }>>;
708
+ avgTokens: z.ZodNumber;
709
+ avgCalls: z.ZodNumber;
710
+ taskRunIds: z.ZodArray<z.ZodString>;
711
+ }, z.core.$strip>>;
712
+ }, z.core.$strip>>;
713
+ suggestionsCount: z.ZodNumber;
714
+ correctness: z.ZodNullable<z.ZodObject<{
715
+ passed: z.ZodNumber;
716
+ total: z.ZodNumber;
717
+ }, z.core.$strip>>;
718
+ }, z.core.$strip>;
719
+ export type EvalRunDetail = z.infer<typeof EvalRunDetail>;
720
+ export declare const EvalRunCreate: z.ZodObject<{
721
+ serverId: z.ZodString;
722
+ suiteId: z.ZodOptional<z.ZodString>;
723
+ environmentId: z.ZodOptional<z.ZodString>;
724
+ models: z.ZodOptional<z.ZodArray<z.ZodString>>;
725
+ modes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
726
+ code: "code";
727
+ tool: "tool";
728
+ }>>>;
729
+ repeats: z.ZodOptional<z.ZodNumber>;
730
+ buildId: z.ZodOptional<z.ZodString>;
731
+ preset: z.ZodOptional<z.ZodLiteral<"quick">>;
732
+ taskSet: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodString, z.ZodArray<z.ZodString>]>>;
733
+ overlay: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
734
+ revisionId: z.ZodString;
735
+ }, z.core.$strip>, z.ZodObject<{
736
+ draft: z.ZodLiteral<true>;
737
+ }, z.core.$strip>]>>;
738
+ }, z.core.$strip>;
739
+ export type EvalRunCreate = z.infer<typeof EvalRunCreate>;
740
+ export declare const EvalRunListQuery: z.ZodObject<{
741
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
742
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
743
+ serverId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
744
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
745
+ cancelled: "cancelled";
746
+ running: "running";
747
+ queued: "queued";
748
+ succeeded: "succeeded";
749
+ failed: "failed";
750
+ }>>>, unknown>;
751
+ trigger: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
752
+ console: "console";
753
+ cli: "cli";
754
+ ci: "ci";
755
+ suggestion_verify: "suggestion_verify";
756
+ }>>, unknown>;
757
+ }, z.core.$strip>;
758
+ export type EvalRunListQuery = z.infer<typeof EvalRunListQuery>;
759
+ export declare const RunTasksQuery: z.ZodObject<{
760
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
761
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
762
+ model: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
763
+ mode: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
764
+ code: "code";
765
+ tool: "tool";
766
+ }>>, unknown>;
767
+ passed: z.ZodPreprocess<z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>, unknown>;
768
+ category: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
769
+ single: "single";
770
+ multi: "multi";
771
+ ambiguous: "ambiguous";
772
+ impossible: "impossible";
773
+ }>>, unknown>;
774
+ }, z.core.$strip>;
775
+ export declare const TranscriptItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
776
+ type: z.ZodLiteral<"user">;
777
+ text: z.ZodString;
778
+ }, z.core.$strip>, z.ZodObject<{
779
+ type: z.ZodLiteral<"assistant">;
780
+ text: z.ZodString;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ type: z.ZodLiteral<"tool_call">;
783
+ id: z.ZodString;
784
+ tool: z.ZodString;
785
+ arguments: z.ZodUnknown;
786
+ }, z.core.$strip>, z.ZodObject<{
787
+ type: z.ZodLiteral<"tool_result">;
788
+ id: z.ZodString;
789
+ tool: z.ZodString;
790
+ isError: z.ZodBoolean;
791
+ content: z.ZodString;
792
+ truncated: z.ZodOptional<z.ZodBoolean>;
793
+ }, z.core.$strip>, z.ZodObject<{
794
+ type: z.ZodLiteral<"note">;
795
+ text: z.ZodString;
796
+ }, z.core.$strip>], "type">;
797
+ export type TranscriptItem = z.infer<typeof TranscriptItem>;
798
+ export declare const AssertionResult: z.ZodObject<{
799
+ assertion: z.ZodDiscriminatedUnion<[z.ZodObject<{
800
+ type: z.ZodLiteral<"called">;
801
+ tool: z.ZodString;
802
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
803
+ argsMatch: z.ZodOptional<z.ZodEnum<{
804
+ subset: "subset";
805
+ exact: "exact";
806
+ }>>;
807
+ minTimes: z.ZodOptional<z.ZodNumber>;
808
+ }, z.core.$strip>, z.ZodObject<{
809
+ type: z.ZodLiteral<"not_called">;
810
+ tool: z.ZodString;
811
+ }, z.core.$strip>, z.ZodObject<{
812
+ type: z.ZodLiteral<"no_writes">;
813
+ }, z.core.$strip>, z.ZodObject<{
814
+ type: z.ZodLiteral<"max_calls">;
815
+ n: z.ZodNumber;
816
+ }, z.core.$strip>, z.ZodObject<{
817
+ type: z.ZodLiteral<"state">;
818
+ resource: z.ZodString;
819
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
820
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
821
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
822
+ count: z.ZodNumber;
823
+ }, z.core.$strip>]>;
824
+ }, z.core.$strip>, z.ZodObject<{
825
+ type: z.ZodLiteral<"answer_contains">;
826
+ anyOf: z.ZodArray<z.ZodString>;
827
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
828
+ }, z.core.$strip>, z.ZodObject<{
829
+ type: z.ZodLiteral<"answer_matches">;
830
+ regex: z.ZodString;
831
+ }, z.core.$strip>, z.ZodObject<{
832
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
833
+ }, z.core.$strip>, z.ZodObject<{
834
+ type: z.ZodLiteral<"framing">;
835
+ }, z.core.$strip>, z.ZodObject<{
836
+ type: z.ZodLiteral<"judge">;
837
+ criterion: z.ZodString;
838
+ }, z.core.$strip>], "type">;
839
+ passed: z.ZodBoolean;
840
+ detail: z.ZodString;
841
+ }, z.core.$strip>;
842
+ export type AssertionResult = z.infer<typeof AssertionResult>;
843
+ export declare const JudgeResult: z.ZodObject<{
844
+ score: z.ZodNumber;
845
+ verdict: z.ZodEnum<{
846
+ pass: "pass";
847
+ fail: "fail";
848
+ }>;
849
+ reasons: z.ZodArray<z.ZodString>;
850
+ }, z.core.$strip>;
851
+ export type JudgeResult = z.infer<typeof JudgeResult>;
852
+ export declare const TaskRunDetail: z.ZodObject<{
853
+ id: z.ZodString;
854
+ runId: z.ZodString;
855
+ task: z.ZodObject<{
856
+ id: z.ZodString;
857
+ key: z.ZodString;
858
+ category: z.ZodEnum<{
859
+ single: "single";
860
+ multi: "multi";
861
+ ambiguous: "ambiguous";
862
+ impossible: "impossible";
863
+ }>;
864
+ prompt: z.ZodString;
865
+ rubric: z.ZodString;
866
+ assertions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
867
+ type: z.ZodLiteral<"called">;
868
+ tool: z.ZodString;
869
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
870
+ argsMatch: z.ZodOptional<z.ZodEnum<{
871
+ subset: "subset";
872
+ exact: "exact";
873
+ }>>;
874
+ minTimes: z.ZodOptional<z.ZodNumber>;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ type: z.ZodLiteral<"not_called">;
877
+ tool: z.ZodString;
878
+ }, z.core.$strip>, z.ZodObject<{
879
+ type: z.ZodLiteral<"no_writes">;
880
+ }, z.core.$strip>, z.ZodObject<{
881
+ type: z.ZodLiteral<"max_calls">;
882
+ n: z.ZodNumber;
883
+ }, z.core.$strip>, z.ZodObject<{
884
+ type: z.ZodLiteral<"state">;
885
+ resource: z.ZodString;
886
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
887
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
888
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
889
+ count: z.ZodNumber;
890
+ }, z.core.$strip>]>;
891
+ }, z.core.$strip>, z.ZodObject<{
892
+ type: z.ZodLiteral<"answer_contains">;
893
+ anyOf: z.ZodArray<z.ZodString>;
894
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
895
+ }, z.core.$strip>, z.ZodObject<{
896
+ type: z.ZodLiteral<"answer_matches">;
897
+ regex: z.ZodString;
898
+ }, z.core.$strip>, z.ZodObject<{
899
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
900
+ }, z.core.$strip>, z.ZodObject<{
901
+ type: z.ZodLiteral<"framing">;
902
+ }, z.core.$strip>, z.ZodObject<{
903
+ type: z.ZodLiteral<"judge">;
904
+ criterion: z.ZodString;
905
+ }, z.core.$strip>], "type">>;
906
+ referenceCalls: z.ZodArray<z.ZodObject<{
907
+ tool: z.ZodString;
908
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
909
+ }, z.core.$strip>>;
910
+ seedState: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
911
+ tags: z.ZodArray<z.ZodString>;
912
+ enabled: z.ZodBoolean;
913
+ source: z.ZodEnum<{
914
+ generated: "generated";
915
+ manual: "manual";
916
+ }>;
917
+ }, z.core.$strip>;
918
+ model: z.ZodString;
919
+ mode: z.ZodEnum<{
920
+ code: "code";
921
+ tool: "tool";
922
+ }>;
923
+ attempt: z.ZodNumber;
924
+ passed: z.ZodBoolean;
925
+ assertionResults: z.ZodArray<z.ZodObject<{
926
+ assertion: z.ZodDiscriminatedUnion<[z.ZodObject<{
927
+ type: z.ZodLiteral<"called">;
928
+ tool: z.ZodString;
929
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
930
+ argsMatch: z.ZodOptional<z.ZodEnum<{
931
+ subset: "subset";
932
+ exact: "exact";
933
+ }>>;
934
+ minTimes: z.ZodOptional<z.ZodNumber>;
935
+ }, z.core.$strip>, z.ZodObject<{
936
+ type: z.ZodLiteral<"not_called">;
937
+ tool: z.ZodString;
938
+ }, z.core.$strip>, z.ZodObject<{
939
+ type: z.ZodLiteral<"no_writes">;
940
+ }, z.core.$strip>, z.ZodObject<{
941
+ type: z.ZodLiteral<"max_calls">;
942
+ n: z.ZodNumber;
943
+ }, z.core.$strip>, z.ZodObject<{
944
+ type: z.ZodLiteral<"state">;
945
+ resource: z.ZodString;
946
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
947
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
948
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
949
+ count: z.ZodNumber;
950
+ }, z.core.$strip>]>;
951
+ }, z.core.$strip>, z.ZodObject<{
952
+ type: z.ZodLiteral<"answer_contains">;
953
+ anyOf: z.ZodArray<z.ZodString>;
954
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
955
+ }, z.core.$strip>, z.ZodObject<{
956
+ type: z.ZodLiteral<"answer_matches">;
957
+ regex: z.ZodString;
958
+ }, z.core.$strip>, z.ZodObject<{
959
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
960
+ }, z.core.$strip>, z.ZodObject<{
961
+ type: z.ZodLiteral<"framing">;
962
+ }, z.core.$strip>, z.ZodObject<{
963
+ type: z.ZodLiteral<"judge">;
964
+ criterion: z.ZodString;
965
+ }, z.core.$strip>], "type">;
966
+ passed: z.ZodBoolean;
967
+ detail: z.ZodString;
968
+ }, z.core.$strip>>;
969
+ judge: z.ZodNullable<z.ZodObject<{
970
+ score: z.ZodNumber;
971
+ verdict: z.ZodEnum<{
972
+ pass: "pass";
973
+ fail: "fail";
974
+ }>;
975
+ reasons: z.ZodArray<z.ZodString>;
976
+ }, z.core.$strip>>;
977
+ failureCause: z.ZodNullable<z.ZodEnum<{
978
+ error: "error";
979
+ wrong_tool: "wrong_tool";
980
+ bad_arguments: "bad_arguments";
981
+ missing_capability: "missing_capability";
982
+ gave_up: "gave_up";
983
+ hallucinated: "hallucinated";
984
+ policy_blocked: "policy_blocked";
985
+ no_framing: "no_framing";
986
+ over_budget: "over_budget";
987
+ }>>;
988
+ toolCalls: z.ZodNumber;
989
+ scripts: z.ZodNumber;
990
+ tokens: z.ZodObject<{
991
+ inputTokens: z.ZodNumber;
992
+ outputTokens: z.ZodNumber;
993
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
994
+ }, z.core.$strip>;
995
+ latencyMs: z.ZodNumber;
996
+ servedByModel: z.ZodNullable<z.ZodString>;
997
+ fallbackUsed: z.ZodBoolean;
998
+ neurouterTaskId: z.ZodNullable<z.ZodString>;
999
+ finalAnswer: z.ZodNullable<z.ZodString>;
1000
+ transcript: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1001
+ type: z.ZodLiteral<"user">;
1002
+ text: z.ZodString;
1003
+ }, z.core.$strip>, z.ZodObject<{
1004
+ type: z.ZodLiteral<"assistant">;
1005
+ text: z.ZodString;
1006
+ }, z.core.$strip>, z.ZodObject<{
1007
+ type: z.ZodLiteral<"tool_call">;
1008
+ id: z.ZodString;
1009
+ tool: z.ZodString;
1010
+ arguments: z.ZodUnknown;
1011
+ }, z.core.$strip>, z.ZodObject<{
1012
+ type: z.ZodLiteral<"tool_result">;
1013
+ id: z.ZodString;
1014
+ tool: z.ZodString;
1015
+ isError: z.ZodBoolean;
1016
+ content: z.ZodString;
1017
+ truncated: z.ZodOptional<z.ZodBoolean>;
1018
+ }, z.core.$strip>, z.ZodObject<{
1019
+ type: z.ZodLiteral<"note">;
1020
+ text: z.ZodString;
1021
+ }, z.core.$strip>], "type">>;
1022
+ createdAt: z.ZodISODateTime;
1023
+ }, z.core.$strip>;
1024
+ export type TaskRunDetail = z.infer<typeof TaskRunDetail>;
1025
+ export declare const RunComparison: z.ZodObject<{
1026
+ base: z.ZodObject<{
1027
+ id: z.ZodString;
1028
+ server: z.ZodObject<{
1029
+ id: z.ZodString;
1030
+ slug: z.ZodString;
1031
+ name: z.ZodString;
1032
+ }, z.core.$strip>;
1033
+ suite: z.ZodObject<{
1034
+ id: z.ZodString;
1035
+ version: z.ZodNumber;
1036
+ }, z.core.$strip>;
1037
+ environment: z.ZodObject<{
1038
+ id: z.ZodString;
1039
+ slug: z.ZodString;
1040
+ name: z.ZodString;
1041
+ }, z.core.$strip>;
1042
+ build: z.ZodObject<{
1043
+ id: z.ZodString;
1044
+ hash: z.ZodString;
1045
+ }, z.core.$strip>;
1046
+ overlayRev: z.ZodNullable<z.ZodNumber>;
1047
+ temporaryBuild: z.ZodBoolean;
1048
+ models: z.ZodArray<z.ZodString>;
1049
+ modes: z.ZodArray<z.ZodEnum<{
1050
+ code: "code";
1051
+ tool: "tool";
1052
+ }>>;
1053
+ repeats: z.ZodNumber;
1054
+ status: z.ZodEnum<{
1055
+ cancelled: "cancelled";
1056
+ running: "running";
1057
+ queued: "queued";
1058
+ succeeded: "succeeded";
1059
+ failed: "failed";
1060
+ }>;
1061
+ progress: z.ZodObject<{
1062
+ done: z.ZodNumber;
1063
+ total: z.ZodNumber;
1064
+ }, z.core.$strip>;
1065
+ headline: z.ZodNullable<z.ZodNumber>;
1066
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
1067
+ code: "code";
1068
+ tool: "tool";
1069
+ }>>;
1070
+ confidence: z.ZodNullable<z.ZodEnum<{
1071
+ measured: "measured";
1072
+ preliminary: "preliminary";
1073
+ degraded: "degraded";
1074
+ }>>;
1075
+ trigger: z.ZodEnum<{
1076
+ console: "console";
1077
+ cli: "cli";
1078
+ ci: "ci";
1079
+ suggestion_verify: "suggestion_verify";
1080
+ }>;
1081
+ baseRunId: z.ZodNullable<z.ZodString>;
1082
+ error: z.ZodNullable<z.ZodString>;
1083
+ createdAt: z.ZodISODateTime;
1084
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
1085
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1086
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
1087
+ inputTokens: z.ZodNumber;
1088
+ outputTokens: z.ZodNumber;
1089
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
1090
+ }, z.core.$strip>>;
1091
+ }, z.core.$strip>;
1092
+ head: z.ZodObject<{
1093
+ id: z.ZodString;
1094
+ server: z.ZodObject<{
1095
+ id: z.ZodString;
1096
+ slug: z.ZodString;
1097
+ name: z.ZodString;
1098
+ }, z.core.$strip>;
1099
+ suite: z.ZodObject<{
1100
+ id: z.ZodString;
1101
+ version: z.ZodNumber;
1102
+ }, z.core.$strip>;
1103
+ environment: z.ZodObject<{
1104
+ id: z.ZodString;
1105
+ slug: z.ZodString;
1106
+ name: z.ZodString;
1107
+ }, z.core.$strip>;
1108
+ build: z.ZodObject<{
1109
+ id: z.ZodString;
1110
+ hash: z.ZodString;
1111
+ }, z.core.$strip>;
1112
+ overlayRev: z.ZodNullable<z.ZodNumber>;
1113
+ temporaryBuild: z.ZodBoolean;
1114
+ models: z.ZodArray<z.ZodString>;
1115
+ modes: z.ZodArray<z.ZodEnum<{
1116
+ code: "code";
1117
+ tool: "tool";
1118
+ }>>;
1119
+ repeats: z.ZodNumber;
1120
+ status: z.ZodEnum<{
1121
+ cancelled: "cancelled";
1122
+ running: "running";
1123
+ queued: "queued";
1124
+ succeeded: "succeeded";
1125
+ failed: "failed";
1126
+ }>;
1127
+ progress: z.ZodObject<{
1128
+ done: z.ZodNumber;
1129
+ total: z.ZodNumber;
1130
+ }, z.core.$strip>;
1131
+ headline: z.ZodNullable<z.ZodNumber>;
1132
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
1133
+ code: "code";
1134
+ tool: "tool";
1135
+ }>>;
1136
+ confidence: z.ZodNullable<z.ZodEnum<{
1137
+ measured: "measured";
1138
+ preliminary: "preliminary";
1139
+ degraded: "degraded";
1140
+ }>>;
1141
+ trigger: z.ZodEnum<{
1142
+ console: "console";
1143
+ cli: "cli";
1144
+ ci: "ci";
1145
+ suggestion_verify: "suggestion_verify";
1146
+ }>;
1147
+ baseRunId: z.ZodNullable<z.ZodString>;
1148
+ error: z.ZodNullable<z.ZodString>;
1149
+ createdAt: z.ZodISODateTime;
1150
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
1151
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1152
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
1153
+ inputTokens: z.ZodNumber;
1154
+ outputTokens: z.ZodNumber;
1155
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
1156
+ }, z.core.$strip>>;
1157
+ }, z.core.$strip>;
1158
+ scoreDelta: z.ZodNullable<z.ZodNumber>;
1159
+ components: z.ZodArray<z.ZodObject<{
1160
+ key: z.ZodEnum<{
1161
+ success: "success";
1162
+ impossible: "impossible";
1163
+ efficiency: "efficiency";
1164
+ framing: "framing";
1165
+ quality: "quality";
1166
+ stability: "stability";
1167
+ correctness: "correctness";
1168
+ }>;
1169
+ label: z.ZodString;
1170
+ base: z.ZodNullable<z.ZodNumber>;
1171
+ head: z.ZodNullable<z.ZodNumber>;
1172
+ }, z.core.$strip>>;
1173
+ matrix: z.ZodArray<z.ZodObject<{
1174
+ model: z.ZodString;
1175
+ mode: z.ZodEnum<{
1176
+ code: "code";
1177
+ tool: "tool";
1178
+ }>;
1179
+ base: z.ZodNullable<z.ZodObject<{
1180
+ model: z.ZodString;
1181
+ mode: z.ZodEnum<{
1182
+ code: "code";
1183
+ tool: "tool";
1184
+ }>;
1185
+ successRate: z.ZodNumber;
1186
+ score: z.ZodNumber;
1187
+ avgTokens: z.ZodNumber;
1188
+ avgCalls: z.ZodNumber;
1189
+ avgLatencyMs: z.ZodNumber;
1190
+ flakyTasks: z.ZodNumber;
1191
+ excludedAttempts: z.ZodNumber;
1192
+ best: z.ZodBoolean;
1193
+ }, z.core.$strip>>;
1194
+ head: z.ZodNullable<z.ZodObject<{
1195
+ model: z.ZodString;
1196
+ mode: z.ZodEnum<{
1197
+ code: "code";
1198
+ tool: "tool";
1199
+ }>;
1200
+ successRate: z.ZodNumber;
1201
+ score: z.ZodNumber;
1202
+ avgTokens: z.ZodNumber;
1203
+ avgCalls: z.ZodNumber;
1204
+ avgLatencyMs: z.ZodNumber;
1205
+ flakyTasks: z.ZodNumber;
1206
+ excludedAttempts: z.ZodNumber;
1207
+ best: z.ZodBoolean;
1208
+ }, z.core.$strip>>;
1209
+ }, z.core.$strip>>;
1210
+ tasks: z.ZodArray<z.ZodObject<{
1211
+ taskKey: z.ZodString;
1212
+ category: z.ZodNullable<z.ZodEnum<{
1213
+ single: "single";
1214
+ multi: "multi";
1215
+ ambiguous: "ambiguous";
1216
+ impossible: "impossible";
1217
+ }>>;
1218
+ base: z.ZodNullable<z.ZodString>;
1219
+ head: z.ZodNullable<z.ZodString>;
1220
+ }, z.core.$strip>>;
1221
+ tokensDelta: z.ZodNullable<z.ZodNumber>;
1222
+ callsDelta: z.ZodNullable<z.ZodNumber>;
1223
+ }, z.core.$strip>;
1224
+ export type RunComparison = z.infer<typeof RunComparison>;
1225
+ export declare const SuggestionRow: z.ZodObject<{
1226
+ id: z.ZodString;
1227
+ runId: z.ZodString;
1228
+ serverId: z.ZodString;
1229
+ cause: z.ZodEnum<{
1230
+ error: "error";
1231
+ wrong_tool: "wrong_tool";
1232
+ bad_arguments: "bad_arguments";
1233
+ missing_capability: "missing_capability";
1234
+ gave_up: "gave_up";
1235
+ hallucinated: "hallucinated";
1236
+ policy_blocked: "policy_blocked";
1237
+ no_framing: "no_framing";
1238
+ over_budget: "over_budget";
1239
+ }>;
1240
+ kind: z.ZodEnum<{
1241
+ composite: "composite";
1242
+ rename: "rename";
1243
+ describe: "describe";
1244
+ example: "example";
1245
+ hide: "hide";
1246
+ response_shape: "response_shape";
1247
+ }>;
1248
+ tools: z.ZodArray<z.ZodString>;
1249
+ affectedTaskKeys: z.ZodArray<z.ZodString>;
1250
+ overlayPatch: z.ZodString;
1251
+ specPatch: z.ZodNullable<z.ZodString>;
1252
+ rationale: z.ZodString;
1253
+ predictedDelta: z.ZodNumber;
1254
+ status: z.ZodEnum<{
1255
+ dismissed: "dismissed";
1256
+ proposed: "proposed";
1257
+ verifying: "verifying";
1258
+ verified: "verified";
1259
+ applied: "applied";
1260
+ }>;
1261
+ verifyRunId: z.ZodNullable<z.ZodString>;
1262
+ verifiedDelta: z.ZodNullable<z.ZodNumber>;
1263
+ createdAt: z.ZodISODateTime;
1264
+ updatedAt: z.ZodISODateTime;
1265
+ }, z.core.$strip>;
1266
+ export type SuggestionRow = z.infer<typeof SuggestionRow>;
1267
+ export declare const SuggestionDetail: z.ZodObject<{
1268
+ id: z.ZodString;
1269
+ runId: z.ZodString;
1270
+ serverId: z.ZodString;
1271
+ cause: z.ZodEnum<{
1272
+ error: "error";
1273
+ wrong_tool: "wrong_tool";
1274
+ bad_arguments: "bad_arguments";
1275
+ missing_capability: "missing_capability";
1276
+ gave_up: "gave_up";
1277
+ hallucinated: "hallucinated";
1278
+ policy_blocked: "policy_blocked";
1279
+ no_framing: "no_framing";
1280
+ over_budget: "over_budget";
1281
+ }>;
1282
+ kind: z.ZodEnum<{
1283
+ composite: "composite";
1284
+ rename: "rename";
1285
+ describe: "describe";
1286
+ example: "example";
1287
+ hide: "hide";
1288
+ response_shape: "response_shape";
1289
+ }>;
1290
+ tools: z.ZodArray<z.ZodString>;
1291
+ affectedTaskKeys: z.ZodArray<z.ZodString>;
1292
+ overlayPatch: z.ZodString;
1293
+ specPatch: z.ZodNullable<z.ZodString>;
1294
+ rationale: z.ZodString;
1295
+ predictedDelta: z.ZodNumber;
1296
+ status: z.ZodEnum<{
1297
+ dismissed: "dismissed";
1298
+ proposed: "proposed";
1299
+ verifying: "verifying";
1300
+ verified: "verified";
1301
+ applied: "applied";
1302
+ }>;
1303
+ verifyRunId: z.ZodNullable<z.ZodString>;
1304
+ verifiedDelta: z.ZodNullable<z.ZodNumber>;
1305
+ createdAt: z.ZodISODateTime;
1306
+ updatedAt: z.ZodISODateTime;
1307
+ verifyRun: z.ZodNullable<z.ZodObject<{
1308
+ id: z.ZodString;
1309
+ server: z.ZodObject<{
1310
+ id: z.ZodString;
1311
+ slug: z.ZodString;
1312
+ name: z.ZodString;
1313
+ }, z.core.$strip>;
1314
+ suite: z.ZodObject<{
1315
+ id: z.ZodString;
1316
+ version: z.ZodNumber;
1317
+ }, z.core.$strip>;
1318
+ environment: z.ZodObject<{
1319
+ id: z.ZodString;
1320
+ slug: z.ZodString;
1321
+ name: z.ZodString;
1322
+ }, z.core.$strip>;
1323
+ build: z.ZodObject<{
1324
+ id: z.ZodString;
1325
+ hash: z.ZodString;
1326
+ }, z.core.$strip>;
1327
+ overlayRev: z.ZodNullable<z.ZodNumber>;
1328
+ temporaryBuild: z.ZodBoolean;
1329
+ models: z.ZodArray<z.ZodString>;
1330
+ modes: z.ZodArray<z.ZodEnum<{
1331
+ code: "code";
1332
+ tool: "tool";
1333
+ }>>;
1334
+ repeats: z.ZodNumber;
1335
+ status: z.ZodEnum<{
1336
+ cancelled: "cancelled";
1337
+ running: "running";
1338
+ queued: "queued";
1339
+ succeeded: "succeeded";
1340
+ failed: "failed";
1341
+ }>;
1342
+ progress: z.ZodObject<{
1343
+ done: z.ZodNumber;
1344
+ total: z.ZodNumber;
1345
+ }, z.core.$strip>;
1346
+ headline: z.ZodNullable<z.ZodNumber>;
1347
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
1348
+ code: "code";
1349
+ tool: "tool";
1350
+ }>>;
1351
+ confidence: z.ZodNullable<z.ZodEnum<{
1352
+ measured: "measured";
1353
+ preliminary: "preliminary";
1354
+ degraded: "degraded";
1355
+ }>>;
1356
+ trigger: z.ZodEnum<{
1357
+ console: "console";
1358
+ cli: "cli";
1359
+ ci: "ci";
1360
+ suggestion_verify: "suggestion_verify";
1361
+ }>;
1362
+ baseRunId: z.ZodNullable<z.ZodString>;
1363
+ error: z.ZodNullable<z.ZodString>;
1364
+ createdAt: z.ZodISODateTime;
1365
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
1366
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1367
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
1368
+ inputTokens: z.ZodNumber;
1369
+ outputTokens: z.ZodNumber;
1370
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
1371
+ }, z.core.$strip>>;
1372
+ }, z.core.$strip>>;
1373
+ affectedTasks: z.ZodArray<z.ZodObject<{
1374
+ taskId: z.ZodString;
1375
+ key: z.ZodString;
1376
+ category: z.ZodEnum<{
1377
+ single: "single";
1378
+ multi: "multi";
1379
+ ambiguous: "ambiguous";
1380
+ impossible: "impossible";
1381
+ }>;
1382
+ prompt: z.ZodString;
1383
+ cells: z.ZodArray<z.ZodObject<{
1384
+ model: z.ZodString;
1385
+ mode: z.ZodEnum<{
1386
+ code: "code";
1387
+ tool: "tool";
1388
+ }>;
1389
+ passes: z.ZodNumber;
1390
+ attempts: z.ZodNumber;
1391
+ flaky: z.ZodBoolean;
1392
+ failureCause: z.ZodNullable<z.ZodEnum<{
1393
+ error: "error";
1394
+ wrong_tool: "wrong_tool";
1395
+ bad_arguments: "bad_arguments";
1396
+ missing_capability: "missing_capability";
1397
+ gave_up: "gave_up";
1398
+ hallucinated: "hallucinated";
1399
+ policy_blocked: "policy_blocked";
1400
+ no_framing: "no_framing";
1401
+ over_budget: "over_budget";
1402
+ }>>;
1403
+ avgTokens: z.ZodNumber;
1404
+ avgCalls: z.ZodNumber;
1405
+ taskRunIds: z.ZodArray<z.ZodString>;
1406
+ }, z.core.$strip>>;
1407
+ }, z.core.$strip>>;
1408
+ }, z.core.$strip>;
1409
+ export type SuggestionDetail = z.infer<typeof SuggestionDetail>;
1410
+ export declare const SuggestionApply: z.ZodObject<{
1411
+ mode: z.ZodDefault<z.ZodEnum<{
1412
+ draft: "draft";
1413
+ publish: "publish";
1414
+ }>>;
1415
+ message: z.ZodOptional<z.ZodString>;
1416
+ }, z.core.$strip>;
1417
+ export declare const SuggestionApplyResult: z.ZodObject<{
1418
+ suggestion: z.ZodObject<{
1419
+ id: z.ZodString;
1420
+ runId: z.ZodString;
1421
+ serverId: z.ZodString;
1422
+ cause: z.ZodEnum<{
1423
+ error: "error";
1424
+ wrong_tool: "wrong_tool";
1425
+ bad_arguments: "bad_arguments";
1426
+ missing_capability: "missing_capability";
1427
+ gave_up: "gave_up";
1428
+ hallucinated: "hallucinated";
1429
+ policy_blocked: "policy_blocked";
1430
+ no_framing: "no_framing";
1431
+ over_budget: "over_budget";
1432
+ }>;
1433
+ kind: z.ZodEnum<{
1434
+ composite: "composite";
1435
+ rename: "rename";
1436
+ describe: "describe";
1437
+ example: "example";
1438
+ hide: "hide";
1439
+ response_shape: "response_shape";
1440
+ }>;
1441
+ tools: z.ZodArray<z.ZodString>;
1442
+ affectedTaskKeys: z.ZodArray<z.ZodString>;
1443
+ overlayPatch: z.ZodString;
1444
+ specPatch: z.ZodNullable<z.ZodString>;
1445
+ rationale: z.ZodString;
1446
+ predictedDelta: z.ZodNumber;
1447
+ status: z.ZodEnum<{
1448
+ dismissed: "dismissed";
1449
+ proposed: "proposed";
1450
+ verifying: "verifying";
1451
+ verified: "verified";
1452
+ applied: "applied";
1453
+ }>;
1454
+ verifyRunId: z.ZodNullable<z.ZodString>;
1455
+ verifiedDelta: z.ZodNullable<z.ZodNumber>;
1456
+ createdAt: z.ZodISODateTime;
1457
+ updatedAt: z.ZodISODateTime;
1458
+ }, z.core.$strip>;
1459
+ draft: z.ZodOptional<z.ZodObject<{
1460
+ yaml: z.ZodString;
1461
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
1462
+ changeCount: z.ZodNumber;
1463
+ changes: z.ZodArray<z.ZodObject<{
1464
+ kind: z.ZodEnum<{
1465
+ default: "default";
1466
+ composite: "composite";
1467
+ info: "info";
1468
+ tool: "tool";
1469
+ profile: "profile";
1470
+ }>;
1471
+ target: z.ZodString;
1472
+ field: z.ZodNullable<z.ZodString>;
1473
+ change: z.ZodEnum<{
1474
+ added: "added";
1475
+ removed: "removed";
1476
+ changed: "changed";
1477
+ }>;
1478
+ before: z.ZodOptional<z.ZodUnknown>;
1479
+ after: z.ZodOptional<z.ZodUnknown>;
1480
+ }, z.core.$strip>>;
1481
+ etag: z.ZodString;
1482
+ validation: z.ZodObject<{
1483
+ ok: z.ZodBoolean;
1484
+ diagnostics: z.ZodArray<z.ZodObject<{
1485
+ severity: z.ZodEnum<{
1486
+ error: "error";
1487
+ warning: "warning";
1488
+ info: "info";
1489
+ }>;
1490
+ code: z.ZodString;
1491
+ message: z.ZodString;
1492
+ pointer: z.ZodOptional<z.ZodString>;
1493
+ overlayPath: z.ZodOptional<z.ZodString>;
1494
+ line: z.ZodOptional<z.ZodNumber>;
1495
+ col: z.ZodOptional<z.ZodNumber>;
1496
+ excerpt: z.ZodOptional<z.ZodString>;
1497
+ }, z.core.$strip>>;
1498
+ }, z.core.$strip>;
1499
+ preview: z.ZodObject<{
1500
+ toolCount: z.ZodNumber;
1501
+ visibleCount: z.ZodNumber;
1502
+ lintScore: z.ZodNumber;
1503
+ }, z.core.$strip>;
1504
+ fileManaged: z.ZodBoolean;
1505
+ updatedAt: z.ZodNullable<z.ZodISODateTime>;
1506
+ updatedBy: z.ZodNullable<z.ZodObject<{
1507
+ id: z.ZodString;
1508
+ name: z.ZodString;
1509
+ }, z.core.$strip>>;
1510
+ }, z.core.$strip>>;
1511
+ publish: z.ZodOptional<z.ZodObject<{
1512
+ revision: z.ZodObject<{
1513
+ id: z.ZodString;
1514
+ rev: z.ZodNumber;
1515
+ hash: z.ZodString;
1516
+ message: z.ZodString;
1517
+ source: z.ZodEnum<{
1518
+ file: "file";
1519
+ console: "console";
1520
+ suggestion: "suggestion";
1521
+ revert: "revert";
1522
+ }>;
1523
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
1524
+ createdBy: z.ZodNullable<z.ZodObject<{
1525
+ id: z.ZodString;
1526
+ name: z.ZodString;
1527
+ }, z.core.$strip>>;
1528
+ createdAt: z.ZodISODateTime;
1529
+ toolChanges: z.ZodNumber;
1530
+ }, z.core.$strip>;
1531
+ build: z.ZodObject<{
1532
+ id: z.ZodString;
1533
+ hash: z.ZodString;
1534
+ status: z.ZodEnum<{
1535
+ ok: "ok";
1536
+ error: "error";
1537
+ }>;
1538
+ specRev: z.ZodNumber;
1539
+ overlayRev: z.ZodNullable<z.ZodNumber>;
1540
+ compilerVersion: z.ZodString;
1541
+ toolCount: z.ZodNumber;
1542
+ visibleCount: z.ZodNumber;
1543
+ writeCount: z.ZodNumber;
1544
+ hiddenCount: z.ZodNumber;
1545
+ lintScore: z.ZodNumber;
1546
+ diagnosticsCount: z.ZodObject<{
1547
+ error: z.ZodNumber;
1548
+ warning: z.ZodNumber;
1549
+ info: z.ZodNumber;
1550
+ }, z.core.$strip>;
1551
+ environments: z.ZodArray<z.ZodString>;
1552
+ createdAt: z.ZodISODateTime;
1553
+ }, z.core.$strip>;
1554
+ pinnedEnvironments: z.ZodArray<z.ZodObject<{
1555
+ id: z.ZodString;
1556
+ slug: z.ZodString;
1557
+ }, z.core.$strip>>;
1558
+ }, z.core.$strip>>;
1559
+ }, z.core.$strip>;
1560
+ export type SuggestionApplyResult = z.infer<typeof SuggestionApplyResult>;
1561
+ export declare const SuggestionSearchQuery: z.ZodObject<{
1562
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
1563
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
1564
+ serverId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
1565
+ toolName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
1566
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1567
+ dismissed: "dismissed";
1568
+ proposed: "proposed";
1569
+ verifying: "verifying";
1570
+ verified: "verified";
1571
+ applied: "applied";
1572
+ }>>>, unknown>;
1573
+ }, z.core.$strip>;
1574
+ export declare const evalEndpoints: {
1575
+ readonly suites: {
1576
+ readonly method: "GET";
1577
+ readonly path: "/api/servers/:id/eval-suites";
1578
+ readonly kind: "json";
1579
+ readonly access: readonly ["evals:read"];
1580
+ readonly summary: "Eval suite versions of a server";
1581
+ readonly params: z.ZodObject<{
1582
+ id: z.ZodString;
1583
+ }, z.core.$strip>;
1584
+ readonly response: z.ZodObject<{
1585
+ items: z.ZodArray<z.ZodObject<{
1586
+ id: z.ZodString;
1587
+ serverId: z.ZodString;
1588
+ version: z.ZodNumber;
1589
+ status: z.ZodEnum<{
1590
+ draft: "draft";
1591
+ frozen: "frozen";
1592
+ }>;
1593
+ taskCount: z.ZodNumber;
1594
+ byCategory: z.ZodObject<{
1595
+ single: z.ZodNumber;
1596
+ multi: z.ZodNumber;
1597
+ ambiguous: z.ZodNumber;
1598
+ impossible: z.ZodNumber;
1599
+ }, z.core.$strip>;
1600
+ generatedFromBuild: z.ZodNullable<z.ZodObject<{
1601
+ id: z.ZodString;
1602
+ hash: z.ZodString;
1603
+ }, z.core.$strip>>;
1604
+ generator: z.ZodNullable<z.ZodObject<{
1605
+ model: z.ZodString;
1606
+ promptVersion: z.ZodString;
1607
+ seed: z.ZodNullable<z.ZodNumber>;
1608
+ }, z.core.$strip>>;
1609
+ createdAt: z.ZodISODateTime;
1610
+ frozenAt: z.ZodNullable<z.ZodISODateTime>;
1611
+ }, z.core.$strip>>;
1612
+ }, z.core.$strip>;
1613
+ } & {
1614
+ status: number;
1615
+ };
1616
+ readonly generateSuite: {
1617
+ readonly method: "POST";
1618
+ readonly path: "/api/servers/:id/eval-suites";
1619
+ readonly kind: "json";
1620
+ readonly status: 202;
1621
+ readonly access: readonly ["evals:run"];
1622
+ readonly summary: "Generate a draft suite with the LLM (job result: EvalSuiteRow; 412 llm_key_missing)";
1623
+ readonly params: z.ZodObject<{
1624
+ id: z.ZodString;
1625
+ }, z.core.$strip>;
1626
+ readonly body: z.ZodObject<{
1627
+ counts: z.ZodOptional<z.ZodObject<{
1628
+ single: z.ZodNumber;
1629
+ multi: z.ZodNumber;
1630
+ ambiguous: z.ZodNumber;
1631
+ impossible: z.ZodNumber;
1632
+ }, z.core.$strip>>;
1633
+ model: z.ZodOptional<z.ZodString>;
1634
+ seed: z.ZodOptional<z.ZodNumber>;
1635
+ instructions: z.ZodOptional<z.ZodString>;
1636
+ }, z.core.$strip>;
1637
+ readonly response: z.ZodObject<{
1638
+ jobId: z.ZodString;
1639
+ status: z.ZodEnum<{
1640
+ running: "running";
1641
+ queued: "queued";
1642
+ succeeded: "succeeded";
1643
+ failed: "failed";
1644
+ }>;
1645
+ }, z.core.$strip>;
1646
+ } & {
1647
+ status: number;
1648
+ };
1649
+ readonly suite: {
1650
+ readonly method: "GET";
1651
+ readonly path: "/api/eval-suites/:id";
1652
+ readonly kind: "json";
1653
+ readonly access: readonly ["evals:read"];
1654
+ readonly summary: "Suite with its tasks";
1655
+ readonly params: z.ZodObject<{
1656
+ id: z.ZodString;
1657
+ }, z.core.$strip>;
1658
+ readonly response: z.ZodObject<{
1659
+ id: z.ZodString;
1660
+ serverId: z.ZodString;
1661
+ version: z.ZodNumber;
1662
+ status: z.ZodEnum<{
1663
+ draft: "draft";
1664
+ frozen: "frozen";
1665
+ }>;
1666
+ taskCount: z.ZodNumber;
1667
+ byCategory: z.ZodObject<{
1668
+ single: z.ZodNumber;
1669
+ multi: z.ZodNumber;
1670
+ ambiguous: z.ZodNumber;
1671
+ impossible: z.ZodNumber;
1672
+ }, z.core.$strip>;
1673
+ generatedFromBuild: z.ZodNullable<z.ZodObject<{
1674
+ id: z.ZodString;
1675
+ hash: z.ZodString;
1676
+ }, z.core.$strip>>;
1677
+ generator: z.ZodNullable<z.ZodObject<{
1678
+ model: z.ZodString;
1679
+ promptVersion: z.ZodString;
1680
+ seed: z.ZodNullable<z.ZodNumber>;
1681
+ }, z.core.$strip>>;
1682
+ createdAt: z.ZodISODateTime;
1683
+ frozenAt: z.ZodNullable<z.ZodISODateTime>;
1684
+ tasks: z.ZodArray<z.ZodObject<{
1685
+ id: z.ZodString;
1686
+ key: z.ZodString;
1687
+ category: z.ZodEnum<{
1688
+ single: "single";
1689
+ multi: "multi";
1690
+ ambiguous: "ambiguous";
1691
+ impossible: "impossible";
1692
+ }>;
1693
+ prompt: z.ZodString;
1694
+ rubric: z.ZodString;
1695
+ assertions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1696
+ type: z.ZodLiteral<"called">;
1697
+ tool: z.ZodString;
1698
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1699
+ argsMatch: z.ZodOptional<z.ZodEnum<{
1700
+ subset: "subset";
1701
+ exact: "exact";
1702
+ }>>;
1703
+ minTimes: z.ZodOptional<z.ZodNumber>;
1704
+ }, z.core.$strip>, z.ZodObject<{
1705
+ type: z.ZodLiteral<"not_called">;
1706
+ tool: z.ZodString;
1707
+ }, z.core.$strip>, z.ZodObject<{
1708
+ type: z.ZodLiteral<"no_writes">;
1709
+ }, z.core.$strip>, z.ZodObject<{
1710
+ type: z.ZodLiteral<"max_calls">;
1711
+ n: z.ZodNumber;
1712
+ }, z.core.$strip>, z.ZodObject<{
1713
+ type: z.ZodLiteral<"state">;
1714
+ resource: z.ZodString;
1715
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1716
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1717
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
1718
+ count: z.ZodNumber;
1719
+ }, z.core.$strip>]>;
1720
+ }, z.core.$strip>, z.ZodObject<{
1721
+ type: z.ZodLiteral<"answer_contains">;
1722
+ anyOf: z.ZodArray<z.ZodString>;
1723
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
1724
+ }, z.core.$strip>, z.ZodObject<{
1725
+ type: z.ZodLiteral<"answer_matches">;
1726
+ regex: z.ZodString;
1727
+ }, z.core.$strip>, z.ZodObject<{
1728
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
1729
+ }, z.core.$strip>, z.ZodObject<{
1730
+ type: z.ZodLiteral<"framing">;
1731
+ }, z.core.$strip>, z.ZodObject<{
1732
+ type: z.ZodLiteral<"judge">;
1733
+ criterion: z.ZodString;
1734
+ }, z.core.$strip>], "type">>;
1735
+ referenceCalls: z.ZodArray<z.ZodObject<{
1736
+ tool: z.ZodString;
1737
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1738
+ }, z.core.$strip>>;
1739
+ seedState: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1740
+ tags: z.ZodArray<z.ZodString>;
1741
+ enabled: z.ZodBoolean;
1742
+ source: z.ZodEnum<{
1743
+ generated: "generated";
1744
+ manual: "manual";
1745
+ }>;
1746
+ }, z.core.$strip>>;
1747
+ diagnostics: z.ZodArray<z.ZodString>;
1748
+ }, z.core.$strip>;
1749
+ } & {
1750
+ status: number;
1751
+ };
1752
+ readonly updateTask: {
1753
+ readonly method: "PATCH";
1754
+ readonly path: "/api/eval-tasks/:id";
1755
+ readonly kind: "json";
1756
+ readonly access: readonly ["evals:run"];
1757
+ readonly summary: "Edit or disable a task (409 suite frozen)";
1758
+ readonly params: z.ZodObject<{
1759
+ id: z.ZodString;
1760
+ }, z.core.$strip>;
1761
+ readonly body: z.ZodObject<{
1762
+ prompt: z.ZodOptional<z.ZodString>;
1763
+ rubric: z.ZodOptional<z.ZodString>;
1764
+ assertions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1765
+ type: z.ZodLiteral<"called">;
1766
+ tool: z.ZodString;
1767
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1768
+ argsMatch: z.ZodOptional<z.ZodEnum<{
1769
+ subset: "subset";
1770
+ exact: "exact";
1771
+ }>>;
1772
+ minTimes: z.ZodOptional<z.ZodNumber>;
1773
+ }, z.core.$strip>, z.ZodObject<{
1774
+ type: z.ZodLiteral<"not_called">;
1775
+ tool: z.ZodString;
1776
+ }, z.core.$strip>, z.ZodObject<{
1777
+ type: z.ZodLiteral<"no_writes">;
1778
+ }, z.core.$strip>, z.ZodObject<{
1779
+ type: z.ZodLiteral<"max_calls">;
1780
+ n: z.ZodNumber;
1781
+ }, z.core.$strip>, z.ZodObject<{
1782
+ type: z.ZodLiteral<"state">;
1783
+ resource: z.ZodString;
1784
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1785
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1786
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
1787
+ count: z.ZodNumber;
1788
+ }, z.core.$strip>]>;
1789
+ }, z.core.$strip>, z.ZodObject<{
1790
+ type: z.ZodLiteral<"answer_contains">;
1791
+ anyOf: z.ZodArray<z.ZodString>;
1792
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
1793
+ }, z.core.$strip>, z.ZodObject<{
1794
+ type: z.ZodLiteral<"answer_matches">;
1795
+ regex: z.ZodString;
1796
+ }, z.core.$strip>, z.ZodObject<{
1797
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
1798
+ }, z.core.$strip>, z.ZodObject<{
1799
+ type: z.ZodLiteral<"framing">;
1800
+ }, z.core.$strip>, z.ZodObject<{
1801
+ type: z.ZodLiteral<"judge">;
1802
+ criterion: z.ZodString;
1803
+ }, z.core.$strip>], "type">>>;
1804
+ referenceCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1805
+ tool: z.ZodString;
1806
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1807
+ }, z.core.$strip>>>;
1808
+ enabled: z.ZodOptional<z.ZodBoolean>;
1809
+ }, z.core.$strip>;
1810
+ readonly response: z.ZodObject<{
1811
+ id: z.ZodString;
1812
+ key: z.ZodString;
1813
+ category: z.ZodEnum<{
1814
+ single: "single";
1815
+ multi: "multi";
1816
+ ambiguous: "ambiguous";
1817
+ impossible: "impossible";
1818
+ }>;
1819
+ prompt: z.ZodString;
1820
+ rubric: z.ZodString;
1821
+ assertions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1822
+ type: z.ZodLiteral<"called">;
1823
+ tool: z.ZodString;
1824
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1825
+ argsMatch: z.ZodOptional<z.ZodEnum<{
1826
+ subset: "subset";
1827
+ exact: "exact";
1828
+ }>>;
1829
+ minTimes: z.ZodOptional<z.ZodNumber>;
1830
+ }, z.core.$strip>, z.ZodObject<{
1831
+ type: z.ZodLiteral<"not_called">;
1832
+ tool: z.ZodString;
1833
+ }, z.core.$strip>, z.ZodObject<{
1834
+ type: z.ZodLiteral<"no_writes">;
1835
+ }, z.core.$strip>, z.ZodObject<{
1836
+ type: z.ZodLiteral<"max_calls">;
1837
+ n: z.ZodNumber;
1838
+ }, z.core.$strip>, z.ZodObject<{
1839
+ type: z.ZodLiteral<"state">;
1840
+ resource: z.ZodString;
1841
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1842
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1843
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
1844
+ count: z.ZodNumber;
1845
+ }, z.core.$strip>]>;
1846
+ }, z.core.$strip>, z.ZodObject<{
1847
+ type: z.ZodLiteral<"answer_contains">;
1848
+ anyOf: z.ZodArray<z.ZodString>;
1849
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
1850
+ }, z.core.$strip>, z.ZodObject<{
1851
+ type: z.ZodLiteral<"answer_matches">;
1852
+ regex: z.ZodString;
1853
+ }, z.core.$strip>, z.ZodObject<{
1854
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
1855
+ }, z.core.$strip>, z.ZodObject<{
1856
+ type: z.ZodLiteral<"framing">;
1857
+ }, z.core.$strip>, z.ZodObject<{
1858
+ type: z.ZodLiteral<"judge">;
1859
+ criterion: z.ZodString;
1860
+ }, z.core.$strip>], "type">>;
1861
+ referenceCalls: z.ZodArray<z.ZodObject<{
1862
+ tool: z.ZodString;
1863
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1864
+ }, z.core.$strip>>;
1865
+ seedState: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1866
+ tags: z.ZodArray<z.ZodString>;
1867
+ enabled: z.ZodBoolean;
1868
+ source: z.ZodEnum<{
1869
+ generated: "generated";
1870
+ manual: "manual";
1871
+ }>;
1872
+ }, z.core.$strip>;
1873
+ } & {
1874
+ status: number;
1875
+ };
1876
+ readonly createTask: {
1877
+ readonly method: "POST";
1878
+ readonly path: "/api/eval-suites/:id/tasks";
1879
+ readonly kind: "json";
1880
+ readonly status: 201;
1881
+ readonly access: readonly ["evals:run"];
1882
+ readonly summary: "Add a manual task (409 suite frozen)";
1883
+ readonly params: z.ZodObject<{
1884
+ id: z.ZodString;
1885
+ }, z.core.$strip>;
1886
+ readonly body: z.ZodObject<{
1887
+ key: z.ZodString;
1888
+ category: z.ZodEnum<{
1889
+ single: "single";
1890
+ multi: "multi";
1891
+ ambiguous: "ambiguous";
1892
+ impossible: "impossible";
1893
+ }>;
1894
+ prompt: z.ZodString;
1895
+ rubric: z.ZodDefault<z.ZodString>;
1896
+ assertions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1897
+ type: z.ZodLiteral<"called">;
1898
+ tool: z.ZodString;
1899
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1900
+ argsMatch: z.ZodOptional<z.ZodEnum<{
1901
+ subset: "subset";
1902
+ exact: "exact";
1903
+ }>>;
1904
+ minTimes: z.ZodOptional<z.ZodNumber>;
1905
+ }, z.core.$strip>, z.ZodObject<{
1906
+ type: z.ZodLiteral<"not_called">;
1907
+ tool: z.ZodString;
1908
+ }, z.core.$strip>, z.ZodObject<{
1909
+ type: z.ZodLiteral<"no_writes">;
1910
+ }, z.core.$strip>, z.ZodObject<{
1911
+ type: z.ZodLiteral<"max_calls">;
1912
+ n: z.ZodNumber;
1913
+ }, z.core.$strip>, z.ZodObject<{
1914
+ type: z.ZodLiteral<"state">;
1915
+ resource: z.ZodString;
1916
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1917
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1918
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
1919
+ count: z.ZodNumber;
1920
+ }, z.core.$strip>]>;
1921
+ }, z.core.$strip>, z.ZodObject<{
1922
+ type: z.ZodLiteral<"answer_contains">;
1923
+ anyOf: z.ZodArray<z.ZodString>;
1924
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
1925
+ }, z.core.$strip>, z.ZodObject<{
1926
+ type: z.ZodLiteral<"answer_matches">;
1927
+ regex: z.ZodString;
1928
+ }, z.core.$strip>, z.ZodObject<{
1929
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
1930
+ }, z.core.$strip>, z.ZodObject<{
1931
+ type: z.ZodLiteral<"framing">;
1932
+ }, z.core.$strip>, z.ZodObject<{
1933
+ type: z.ZodLiteral<"judge">;
1934
+ criterion: z.ZodString;
1935
+ }, z.core.$strip>], "type">>>;
1936
+ referenceCalls: z.ZodDefault<z.ZodArray<z.ZodObject<{
1937
+ tool: z.ZodString;
1938
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1939
+ }, z.core.$strip>>>;
1940
+ seedState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1941
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1942
+ }, z.core.$strip>;
1943
+ readonly response: z.ZodObject<{
1944
+ id: z.ZodString;
1945
+ key: z.ZodString;
1946
+ category: z.ZodEnum<{
1947
+ single: "single";
1948
+ multi: "multi";
1949
+ ambiguous: "ambiguous";
1950
+ impossible: "impossible";
1951
+ }>;
1952
+ prompt: z.ZodString;
1953
+ rubric: z.ZodString;
1954
+ assertions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1955
+ type: z.ZodLiteral<"called">;
1956
+ tool: z.ZodString;
1957
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1958
+ argsMatch: z.ZodOptional<z.ZodEnum<{
1959
+ subset: "subset";
1960
+ exact: "exact";
1961
+ }>>;
1962
+ minTimes: z.ZodOptional<z.ZodNumber>;
1963
+ }, z.core.$strip>, z.ZodObject<{
1964
+ type: z.ZodLiteral<"not_called">;
1965
+ tool: z.ZodString;
1966
+ }, z.core.$strip>, z.ZodObject<{
1967
+ type: z.ZodLiteral<"no_writes">;
1968
+ }, z.core.$strip>, z.ZodObject<{
1969
+ type: z.ZodLiteral<"max_calls">;
1970
+ n: z.ZodNumber;
1971
+ }, z.core.$strip>, z.ZodObject<{
1972
+ type: z.ZodLiteral<"state">;
1973
+ resource: z.ZodString;
1974
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1975
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1976
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
1977
+ count: z.ZodNumber;
1978
+ }, z.core.$strip>]>;
1979
+ }, z.core.$strip>, z.ZodObject<{
1980
+ type: z.ZodLiteral<"answer_contains">;
1981
+ anyOf: z.ZodArray<z.ZodString>;
1982
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
1983
+ }, z.core.$strip>, z.ZodObject<{
1984
+ type: z.ZodLiteral<"answer_matches">;
1985
+ regex: z.ZodString;
1986
+ }, z.core.$strip>, z.ZodObject<{
1987
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
1988
+ }, z.core.$strip>, z.ZodObject<{
1989
+ type: z.ZodLiteral<"framing">;
1990
+ }, z.core.$strip>, z.ZodObject<{
1991
+ type: z.ZodLiteral<"judge">;
1992
+ criterion: z.ZodString;
1993
+ }, z.core.$strip>], "type">>;
1994
+ referenceCalls: z.ZodArray<z.ZodObject<{
1995
+ tool: z.ZodString;
1996
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1997
+ }, z.core.$strip>>;
1998
+ seedState: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1999
+ tags: z.ZodArray<z.ZodString>;
2000
+ enabled: z.ZodBoolean;
2001
+ source: z.ZodEnum<{
2002
+ generated: "generated";
2003
+ manual: "manual";
2004
+ }>;
2005
+ }, z.core.$strip>;
2006
+ } & {
2007
+ status: number;
2008
+ };
2009
+ readonly freezeSuite: {
2010
+ readonly method: "POST";
2011
+ readonly path: "/api/eval-suites/:id/freeze";
2012
+ readonly kind: "json";
2013
+ readonly access: readonly ["evals:run"];
2014
+ readonly summary: "Freeze a suite (the regression set)";
2015
+ readonly params: z.ZodObject<{
2016
+ id: z.ZodString;
2017
+ }, z.core.$strip>;
2018
+ readonly response: z.ZodObject<{
2019
+ id: z.ZodString;
2020
+ serverId: z.ZodString;
2021
+ version: z.ZodNumber;
2022
+ status: z.ZodEnum<{
2023
+ draft: "draft";
2024
+ frozen: "frozen";
2025
+ }>;
2026
+ taskCount: z.ZodNumber;
2027
+ byCategory: z.ZodObject<{
2028
+ single: z.ZodNumber;
2029
+ multi: z.ZodNumber;
2030
+ ambiguous: z.ZodNumber;
2031
+ impossible: z.ZodNumber;
2032
+ }, z.core.$strip>;
2033
+ generatedFromBuild: z.ZodNullable<z.ZodObject<{
2034
+ id: z.ZodString;
2035
+ hash: z.ZodString;
2036
+ }, z.core.$strip>>;
2037
+ generator: z.ZodNullable<z.ZodObject<{
2038
+ model: z.ZodString;
2039
+ promptVersion: z.ZodString;
2040
+ seed: z.ZodNullable<z.ZodNumber>;
2041
+ }, z.core.$strip>>;
2042
+ createdAt: z.ZodISODateTime;
2043
+ frozenAt: z.ZodNullable<z.ZodISODateTime>;
2044
+ }, z.core.$strip>;
2045
+ } & {
2046
+ status: number;
2047
+ };
2048
+ readonly runs: {
2049
+ readonly method: "GET";
2050
+ readonly path: "/api/eval-runs";
2051
+ readonly kind: "json";
2052
+ readonly access: readonly ["evals:read"];
2053
+ readonly summary: "Eval runs (newest first)";
2054
+ readonly query: z.ZodObject<{
2055
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
2056
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
2057
+ serverId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
2058
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
2059
+ cancelled: "cancelled";
2060
+ running: "running";
2061
+ queued: "queued";
2062
+ succeeded: "succeeded";
2063
+ failed: "failed";
2064
+ }>>>, unknown>;
2065
+ trigger: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
2066
+ console: "console";
2067
+ cli: "cli";
2068
+ ci: "ci";
2069
+ suggestion_verify: "suggestion_verify";
2070
+ }>>, unknown>;
2071
+ }, z.core.$strip>;
2072
+ readonly response: z.ZodObject<{
2073
+ items: z.ZodArray<z.ZodObject<{
2074
+ id: z.ZodString;
2075
+ server: z.ZodObject<{
2076
+ id: z.ZodString;
2077
+ slug: z.ZodString;
2078
+ name: z.ZodString;
2079
+ }, z.core.$strip>;
2080
+ suite: z.ZodObject<{
2081
+ id: z.ZodString;
2082
+ version: z.ZodNumber;
2083
+ }, z.core.$strip>;
2084
+ environment: z.ZodObject<{
2085
+ id: z.ZodString;
2086
+ slug: z.ZodString;
2087
+ name: z.ZodString;
2088
+ }, z.core.$strip>;
2089
+ build: z.ZodObject<{
2090
+ id: z.ZodString;
2091
+ hash: z.ZodString;
2092
+ }, z.core.$strip>;
2093
+ overlayRev: z.ZodNullable<z.ZodNumber>;
2094
+ temporaryBuild: z.ZodBoolean;
2095
+ models: z.ZodArray<z.ZodString>;
2096
+ modes: z.ZodArray<z.ZodEnum<{
2097
+ code: "code";
2098
+ tool: "tool";
2099
+ }>>;
2100
+ repeats: z.ZodNumber;
2101
+ status: z.ZodEnum<{
2102
+ cancelled: "cancelled";
2103
+ running: "running";
2104
+ queued: "queued";
2105
+ succeeded: "succeeded";
2106
+ failed: "failed";
2107
+ }>;
2108
+ progress: z.ZodObject<{
2109
+ done: z.ZodNumber;
2110
+ total: z.ZodNumber;
2111
+ }, z.core.$strip>;
2112
+ headline: z.ZodNullable<z.ZodNumber>;
2113
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
2114
+ code: "code";
2115
+ tool: "tool";
2116
+ }>>;
2117
+ confidence: z.ZodNullable<z.ZodEnum<{
2118
+ measured: "measured";
2119
+ preliminary: "preliminary";
2120
+ degraded: "degraded";
2121
+ }>>;
2122
+ trigger: z.ZodEnum<{
2123
+ console: "console";
2124
+ cli: "cli";
2125
+ ci: "ci";
2126
+ suggestion_verify: "suggestion_verify";
2127
+ }>;
2128
+ baseRunId: z.ZodNullable<z.ZodString>;
2129
+ error: z.ZodNullable<z.ZodString>;
2130
+ createdAt: z.ZodISODateTime;
2131
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
2132
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
2133
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
2134
+ inputTokens: z.ZodNumber;
2135
+ outputTokens: z.ZodNumber;
2136
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
2137
+ }, z.core.$strip>>;
2138
+ }, z.core.$strip>>;
2139
+ nextCursor: z.ZodNullable<z.ZodString>;
2140
+ totalEstimate: z.ZodOptional<z.ZodNumber>;
2141
+ }, z.core.$strip>;
2142
+ } & {
2143
+ status: number;
2144
+ };
2145
+ readonly createRun: {
2146
+ readonly method: "POST";
2147
+ readonly path: "/api/eval-runs";
2148
+ readonly kind: "json";
2149
+ readonly status: 202;
2150
+ readonly access: readonly ["evals:run"];
2151
+ readonly summary: "Start an eval run (412 llm_key_missing; 422 prod environment; 409 job_running)";
2152
+ readonly body: z.ZodObject<{
2153
+ serverId: z.ZodString;
2154
+ suiteId: z.ZodOptional<z.ZodString>;
2155
+ environmentId: z.ZodOptional<z.ZodString>;
2156
+ models: z.ZodOptional<z.ZodArray<z.ZodString>>;
2157
+ modes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2158
+ code: "code";
2159
+ tool: "tool";
2160
+ }>>>;
2161
+ repeats: z.ZodOptional<z.ZodNumber>;
2162
+ buildId: z.ZodOptional<z.ZodString>;
2163
+ preset: z.ZodOptional<z.ZodLiteral<"quick">>;
2164
+ taskSet: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodString, z.ZodArray<z.ZodString>]>>;
2165
+ overlay: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2166
+ revisionId: z.ZodString;
2167
+ }, z.core.$strip>, z.ZodObject<{
2168
+ draft: z.ZodLiteral<true>;
2169
+ }, z.core.$strip>]>>;
2170
+ }, z.core.$strip>;
2171
+ readonly response: z.ZodObject<{
2172
+ id: z.ZodString;
2173
+ server: z.ZodObject<{
2174
+ id: z.ZodString;
2175
+ slug: z.ZodString;
2176
+ name: z.ZodString;
2177
+ }, z.core.$strip>;
2178
+ suite: z.ZodObject<{
2179
+ id: z.ZodString;
2180
+ version: z.ZodNumber;
2181
+ }, z.core.$strip>;
2182
+ environment: z.ZodObject<{
2183
+ id: z.ZodString;
2184
+ slug: z.ZodString;
2185
+ name: z.ZodString;
2186
+ }, z.core.$strip>;
2187
+ build: z.ZodObject<{
2188
+ id: z.ZodString;
2189
+ hash: z.ZodString;
2190
+ }, z.core.$strip>;
2191
+ overlayRev: z.ZodNullable<z.ZodNumber>;
2192
+ temporaryBuild: z.ZodBoolean;
2193
+ models: z.ZodArray<z.ZodString>;
2194
+ modes: z.ZodArray<z.ZodEnum<{
2195
+ code: "code";
2196
+ tool: "tool";
2197
+ }>>;
2198
+ repeats: z.ZodNumber;
2199
+ status: z.ZodEnum<{
2200
+ cancelled: "cancelled";
2201
+ running: "running";
2202
+ queued: "queued";
2203
+ succeeded: "succeeded";
2204
+ failed: "failed";
2205
+ }>;
2206
+ progress: z.ZodObject<{
2207
+ done: z.ZodNumber;
2208
+ total: z.ZodNumber;
2209
+ }, z.core.$strip>;
2210
+ headline: z.ZodNullable<z.ZodNumber>;
2211
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
2212
+ code: "code";
2213
+ tool: "tool";
2214
+ }>>;
2215
+ confidence: z.ZodNullable<z.ZodEnum<{
2216
+ measured: "measured";
2217
+ preliminary: "preliminary";
2218
+ degraded: "degraded";
2219
+ }>>;
2220
+ trigger: z.ZodEnum<{
2221
+ console: "console";
2222
+ cli: "cli";
2223
+ ci: "ci";
2224
+ suggestion_verify: "suggestion_verify";
2225
+ }>;
2226
+ baseRunId: z.ZodNullable<z.ZodString>;
2227
+ error: z.ZodNullable<z.ZodString>;
2228
+ createdAt: z.ZodISODateTime;
2229
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
2230
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
2231
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
2232
+ inputTokens: z.ZodNumber;
2233
+ outputTokens: z.ZodNumber;
2234
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
2235
+ }, z.core.$strip>>;
2236
+ }, z.core.$strip>;
2237
+ } & {
2238
+ status: number;
2239
+ };
2240
+ readonly compare: {
2241
+ readonly method: "GET";
2242
+ readonly path: "/api/eval-runs/compare";
2243
+ readonly kind: "json";
2244
+ readonly access: readonly ["evals:read"];
2245
+ readonly summary: "Compare two runs of the same server (422 different servers)";
2246
+ readonly query: z.ZodObject<{
2247
+ base: z.ZodString;
2248
+ head: z.ZodString;
2249
+ }, z.core.$strip>;
2250
+ readonly response: z.ZodObject<{
2251
+ base: z.ZodObject<{
2252
+ id: z.ZodString;
2253
+ server: z.ZodObject<{
2254
+ id: z.ZodString;
2255
+ slug: z.ZodString;
2256
+ name: z.ZodString;
2257
+ }, z.core.$strip>;
2258
+ suite: z.ZodObject<{
2259
+ id: z.ZodString;
2260
+ version: z.ZodNumber;
2261
+ }, z.core.$strip>;
2262
+ environment: z.ZodObject<{
2263
+ id: z.ZodString;
2264
+ slug: z.ZodString;
2265
+ name: z.ZodString;
2266
+ }, z.core.$strip>;
2267
+ build: z.ZodObject<{
2268
+ id: z.ZodString;
2269
+ hash: z.ZodString;
2270
+ }, z.core.$strip>;
2271
+ overlayRev: z.ZodNullable<z.ZodNumber>;
2272
+ temporaryBuild: z.ZodBoolean;
2273
+ models: z.ZodArray<z.ZodString>;
2274
+ modes: z.ZodArray<z.ZodEnum<{
2275
+ code: "code";
2276
+ tool: "tool";
2277
+ }>>;
2278
+ repeats: z.ZodNumber;
2279
+ status: z.ZodEnum<{
2280
+ cancelled: "cancelled";
2281
+ running: "running";
2282
+ queued: "queued";
2283
+ succeeded: "succeeded";
2284
+ failed: "failed";
2285
+ }>;
2286
+ progress: z.ZodObject<{
2287
+ done: z.ZodNumber;
2288
+ total: z.ZodNumber;
2289
+ }, z.core.$strip>;
2290
+ headline: z.ZodNullable<z.ZodNumber>;
2291
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
2292
+ code: "code";
2293
+ tool: "tool";
2294
+ }>>;
2295
+ confidence: z.ZodNullable<z.ZodEnum<{
2296
+ measured: "measured";
2297
+ preliminary: "preliminary";
2298
+ degraded: "degraded";
2299
+ }>>;
2300
+ trigger: z.ZodEnum<{
2301
+ console: "console";
2302
+ cli: "cli";
2303
+ ci: "ci";
2304
+ suggestion_verify: "suggestion_verify";
2305
+ }>;
2306
+ baseRunId: z.ZodNullable<z.ZodString>;
2307
+ error: z.ZodNullable<z.ZodString>;
2308
+ createdAt: z.ZodISODateTime;
2309
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
2310
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
2311
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
2312
+ inputTokens: z.ZodNumber;
2313
+ outputTokens: z.ZodNumber;
2314
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
2315
+ }, z.core.$strip>>;
2316
+ }, z.core.$strip>;
2317
+ head: z.ZodObject<{
2318
+ id: z.ZodString;
2319
+ server: z.ZodObject<{
2320
+ id: z.ZodString;
2321
+ slug: z.ZodString;
2322
+ name: z.ZodString;
2323
+ }, z.core.$strip>;
2324
+ suite: z.ZodObject<{
2325
+ id: z.ZodString;
2326
+ version: z.ZodNumber;
2327
+ }, z.core.$strip>;
2328
+ environment: z.ZodObject<{
2329
+ id: z.ZodString;
2330
+ slug: z.ZodString;
2331
+ name: z.ZodString;
2332
+ }, z.core.$strip>;
2333
+ build: z.ZodObject<{
2334
+ id: z.ZodString;
2335
+ hash: z.ZodString;
2336
+ }, z.core.$strip>;
2337
+ overlayRev: z.ZodNullable<z.ZodNumber>;
2338
+ temporaryBuild: z.ZodBoolean;
2339
+ models: z.ZodArray<z.ZodString>;
2340
+ modes: z.ZodArray<z.ZodEnum<{
2341
+ code: "code";
2342
+ tool: "tool";
2343
+ }>>;
2344
+ repeats: z.ZodNumber;
2345
+ status: z.ZodEnum<{
2346
+ cancelled: "cancelled";
2347
+ running: "running";
2348
+ queued: "queued";
2349
+ succeeded: "succeeded";
2350
+ failed: "failed";
2351
+ }>;
2352
+ progress: z.ZodObject<{
2353
+ done: z.ZodNumber;
2354
+ total: z.ZodNumber;
2355
+ }, z.core.$strip>;
2356
+ headline: z.ZodNullable<z.ZodNumber>;
2357
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
2358
+ code: "code";
2359
+ tool: "tool";
2360
+ }>>;
2361
+ confidence: z.ZodNullable<z.ZodEnum<{
2362
+ measured: "measured";
2363
+ preliminary: "preliminary";
2364
+ degraded: "degraded";
2365
+ }>>;
2366
+ trigger: z.ZodEnum<{
2367
+ console: "console";
2368
+ cli: "cli";
2369
+ ci: "ci";
2370
+ suggestion_verify: "suggestion_verify";
2371
+ }>;
2372
+ baseRunId: z.ZodNullable<z.ZodString>;
2373
+ error: z.ZodNullable<z.ZodString>;
2374
+ createdAt: z.ZodISODateTime;
2375
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
2376
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
2377
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
2378
+ inputTokens: z.ZodNumber;
2379
+ outputTokens: z.ZodNumber;
2380
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
2381
+ }, z.core.$strip>>;
2382
+ }, z.core.$strip>;
2383
+ scoreDelta: z.ZodNullable<z.ZodNumber>;
2384
+ components: z.ZodArray<z.ZodObject<{
2385
+ key: z.ZodEnum<{
2386
+ success: "success";
2387
+ impossible: "impossible";
2388
+ efficiency: "efficiency";
2389
+ framing: "framing";
2390
+ quality: "quality";
2391
+ stability: "stability";
2392
+ correctness: "correctness";
2393
+ }>;
2394
+ label: z.ZodString;
2395
+ base: z.ZodNullable<z.ZodNumber>;
2396
+ head: z.ZodNullable<z.ZodNumber>;
2397
+ }, z.core.$strip>>;
2398
+ matrix: z.ZodArray<z.ZodObject<{
2399
+ model: z.ZodString;
2400
+ mode: z.ZodEnum<{
2401
+ code: "code";
2402
+ tool: "tool";
2403
+ }>;
2404
+ base: z.ZodNullable<z.ZodObject<{
2405
+ model: z.ZodString;
2406
+ mode: z.ZodEnum<{
2407
+ code: "code";
2408
+ tool: "tool";
2409
+ }>;
2410
+ successRate: z.ZodNumber;
2411
+ score: z.ZodNumber;
2412
+ avgTokens: z.ZodNumber;
2413
+ avgCalls: z.ZodNumber;
2414
+ avgLatencyMs: z.ZodNumber;
2415
+ flakyTasks: z.ZodNumber;
2416
+ excludedAttempts: z.ZodNumber;
2417
+ best: z.ZodBoolean;
2418
+ }, z.core.$strip>>;
2419
+ head: z.ZodNullable<z.ZodObject<{
2420
+ model: z.ZodString;
2421
+ mode: z.ZodEnum<{
2422
+ code: "code";
2423
+ tool: "tool";
2424
+ }>;
2425
+ successRate: z.ZodNumber;
2426
+ score: z.ZodNumber;
2427
+ avgTokens: z.ZodNumber;
2428
+ avgCalls: z.ZodNumber;
2429
+ avgLatencyMs: z.ZodNumber;
2430
+ flakyTasks: z.ZodNumber;
2431
+ excludedAttempts: z.ZodNumber;
2432
+ best: z.ZodBoolean;
2433
+ }, z.core.$strip>>;
2434
+ }, z.core.$strip>>;
2435
+ tasks: z.ZodArray<z.ZodObject<{
2436
+ taskKey: z.ZodString;
2437
+ category: z.ZodNullable<z.ZodEnum<{
2438
+ single: "single";
2439
+ multi: "multi";
2440
+ ambiguous: "ambiguous";
2441
+ impossible: "impossible";
2442
+ }>>;
2443
+ base: z.ZodNullable<z.ZodString>;
2444
+ head: z.ZodNullable<z.ZodString>;
2445
+ }, z.core.$strip>>;
2446
+ tokensDelta: z.ZodNullable<z.ZodNumber>;
2447
+ callsDelta: z.ZodNullable<z.ZodNumber>;
2448
+ }, z.core.$strip>;
2449
+ } & {
2450
+ status: number;
2451
+ };
2452
+ readonly run: {
2453
+ readonly method: "GET";
2454
+ readonly path: "/api/eval-runs/:id";
2455
+ readonly kind: "json";
2456
+ readonly access: readonly ["evals:read"];
2457
+ readonly summary: "Run with score, matrix and task results";
2458
+ readonly params: z.ZodObject<{
2459
+ id: z.ZodString;
2460
+ }, z.core.$strip>;
2461
+ readonly response: z.ZodObject<{
2462
+ id: z.ZodString;
2463
+ server: z.ZodObject<{
2464
+ id: z.ZodString;
2465
+ slug: z.ZodString;
2466
+ name: z.ZodString;
2467
+ }, z.core.$strip>;
2468
+ suite: z.ZodObject<{
2469
+ id: z.ZodString;
2470
+ version: z.ZodNumber;
2471
+ }, z.core.$strip>;
2472
+ environment: z.ZodObject<{
2473
+ id: z.ZodString;
2474
+ slug: z.ZodString;
2475
+ name: z.ZodString;
2476
+ }, z.core.$strip>;
2477
+ build: z.ZodObject<{
2478
+ id: z.ZodString;
2479
+ hash: z.ZodString;
2480
+ }, z.core.$strip>;
2481
+ overlayRev: z.ZodNullable<z.ZodNumber>;
2482
+ temporaryBuild: z.ZodBoolean;
2483
+ models: z.ZodArray<z.ZodString>;
2484
+ modes: z.ZodArray<z.ZodEnum<{
2485
+ code: "code";
2486
+ tool: "tool";
2487
+ }>>;
2488
+ repeats: z.ZodNumber;
2489
+ status: z.ZodEnum<{
2490
+ cancelled: "cancelled";
2491
+ running: "running";
2492
+ queued: "queued";
2493
+ succeeded: "succeeded";
2494
+ failed: "failed";
2495
+ }>;
2496
+ progress: z.ZodObject<{
2497
+ done: z.ZodNumber;
2498
+ total: z.ZodNumber;
2499
+ }, z.core.$strip>;
2500
+ headline: z.ZodNullable<z.ZodNumber>;
2501
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
2502
+ code: "code";
2503
+ tool: "tool";
2504
+ }>>;
2505
+ confidence: z.ZodNullable<z.ZodEnum<{
2506
+ measured: "measured";
2507
+ preliminary: "preliminary";
2508
+ degraded: "degraded";
2509
+ }>>;
2510
+ trigger: z.ZodEnum<{
2511
+ console: "console";
2512
+ cli: "cli";
2513
+ ci: "ci";
2514
+ suggestion_verify: "suggestion_verify";
2515
+ }>;
2516
+ baseRunId: z.ZodNullable<z.ZodString>;
2517
+ error: z.ZodNullable<z.ZodString>;
2518
+ createdAt: z.ZodISODateTime;
2519
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
2520
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
2521
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
2522
+ inputTokens: z.ZodNumber;
2523
+ outputTokens: z.ZodNumber;
2524
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
2525
+ }, z.core.$strip>>;
2526
+ score: z.ZodNullable<z.ZodObject<{
2527
+ headline: z.ZodNumber;
2528
+ band: z.ZodEnum<{
2529
+ not_ready: "not_ready";
2530
+ needs_work: "needs_work";
2531
+ ready: "ready";
2532
+ excellent: "excellent";
2533
+ }>;
2534
+ confidence: z.ZodEnum<{
2535
+ measured: "measured";
2536
+ preliminary: "preliminary";
2537
+ degraded: "degraded";
2538
+ }>;
2539
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
2540
+ code: "code";
2541
+ tool: "tool";
2542
+ }>>;
2543
+ recommendation: z.ZodNullable<z.ZodString>;
2544
+ primaryModel: z.ZodString;
2545
+ modeScores: z.ZodObject<{
2546
+ tool: z.ZodOptional<z.ZodNumber>;
2547
+ code: z.ZodOptional<z.ZodNumber>;
2548
+ }, z.core.$strip>;
2549
+ breakdown: z.ZodArray<z.ZodObject<{
2550
+ key: z.ZodEnum<{
2551
+ success: "success";
2552
+ impossible: "impossible";
2553
+ efficiency: "efficiency";
2554
+ framing: "framing";
2555
+ quality: "quality";
2556
+ stability: "stability";
2557
+ correctness: "correctness";
2558
+ }>;
2559
+ label: z.ZodString;
2560
+ weight: z.ZodNumber;
2561
+ score: z.ZodNumber;
2562
+ detail: z.ZodString;
2563
+ fixCount: z.ZodNumber;
2564
+ }, z.core.$strip>>;
2565
+ cells: z.ZodArray<z.ZodObject<{
2566
+ model: z.ZodString;
2567
+ mode: z.ZodEnum<{
2568
+ code: "code";
2569
+ tool: "tool";
2570
+ }>;
2571
+ score: z.ZodNumber;
2572
+ components: z.ZodArray<z.ZodObject<{
2573
+ key: z.ZodEnum<{
2574
+ success: "success";
2575
+ impossible: "impossible";
2576
+ efficiency: "efficiency";
2577
+ framing: "framing";
2578
+ quality: "quality";
2579
+ stability: "stability";
2580
+ correctness: "correctness";
2581
+ }>;
2582
+ label: z.ZodString;
2583
+ weight: z.ZodNumber;
2584
+ score: z.ZodNumber;
2585
+ detail: z.ZodString;
2586
+ fixCount: z.ZodNumber;
2587
+ }, z.core.$strip>>;
2588
+ }, z.core.$strip>>;
2589
+ }, z.core.$strip>>;
2590
+ matrix: z.ZodArray<z.ZodObject<{
2591
+ model: z.ZodString;
2592
+ mode: z.ZodEnum<{
2593
+ code: "code";
2594
+ tool: "tool";
2595
+ }>;
2596
+ successRate: z.ZodNumber;
2597
+ score: z.ZodNumber;
2598
+ avgTokens: z.ZodNumber;
2599
+ avgCalls: z.ZodNumber;
2600
+ avgLatencyMs: z.ZodNumber;
2601
+ flakyTasks: z.ZodNumber;
2602
+ excludedAttempts: z.ZodNumber;
2603
+ best: z.ZodBoolean;
2604
+ }, z.core.$strip>>;
2605
+ tasks: z.ZodArray<z.ZodObject<{
2606
+ taskId: z.ZodString;
2607
+ key: z.ZodString;
2608
+ category: z.ZodEnum<{
2609
+ single: "single";
2610
+ multi: "multi";
2611
+ ambiguous: "ambiguous";
2612
+ impossible: "impossible";
2613
+ }>;
2614
+ prompt: z.ZodString;
2615
+ cells: z.ZodArray<z.ZodObject<{
2616
+ model: z.ZodString;
2617
+ mode: z.ZodEnum<{
2618
+ code: "code";
2619
+ tool: "tool";
2620
+ }>;
2621
+ passes: z.ZodNumber;
2622
+ attempts: z.ZodNumber;
2623
+ flaky: z.ZodBoolean;
2624
+ failureCause: z.ZodNullable<z.ZodEnum<{
2625
+ error: "error";
2626
+ wrong_tool: "wrong_tool";
2627
+ bad_arguments: "bad_arguments";
2628
+ missing_capability: "missing_capability";
2629
+ gave_up: "gave_up";
2630
+ hallucinated: "hallucinated";
2631
+ policy_blocked: "policy_blocked";
2632
+ no_framing: "no_framing";
2633
+ over_budget: "over_budget";
2634
+ }>>;
2635
+ avgTokens: z.ZodNumber;
2636
+ avgCalls: z.ZodNumber;
2637
+ taskRunIds: z.ZodArray<z.ZodString>;
2638
+ }, z.core.$strip>>;
2639
+ }, z.core.$strip>>;
2640
+ suggestionsCount: z.ZodNumber;
2641
+ correctness: z.ZodNullable<z.ZodObject<{
2642
+ passed: z.ZodNumber;
2643
+ total: z.ZodNumber;
2644
+ }, z.core.$strip>>;
2645
+ }, z.core.$strip>;
2646
+ } & {
2647
+ status: number;
2648
+ };
2649
+ readonly runTasks: {
2650
+ readonly method: "GET";
2651
+ readonly path: "/api/eval-runs/:id/tasks";
2652
+ readonly kind: "json";
2653
+ readonly access: readonly ["evals:read"];
2654
+ readonly summary: "Task results of a run, filtered";
2655
+ readonly params: z.ZodObject<{
2656
+ id: z.ZodString;
2657
+ }, z.core.$strip>;
2658
+ readonly query: z.ZodObject<{
2659
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
2660
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
2661
+ model: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
2662
+ mode: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
2663
+ code: "code";
2664
+ tool: "tool";
2665
+ }>>, unknown>;
2666
+ passed: z.ZodPreprocess<z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>, unknown>;
2667
+ category: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
2668
+ single: "single";
2669
+ multi: "multi";
2670
+ ambiguous: "ambiguous";
2671
+ impossible: "impossible";
2672
+ }>>, unknown>;
2673
+ }, z.core.$strip>;
2674
+ readonly response: z.ZodObject<{
2675
+ items: z.ZodArray<z.ZodObject<{
2676
+ taskId: z.ZodString;
2677
+ key: z.ZodString;
2678
+ category: z.ZodEnum<{
2679
+ single: "single";
2680
+ multi: "multi";
2681
+ ambiguous: "ambiguous";
2682
+ impossible: "impossible";
2683
+ }>;
2684
+ prompt: z.ZodString;
2685
+ cells: z.ZodArray<z.ZodObject<{
2686
+ model: z.ZodString;
2687
+ mode: z.ZodEnum<{
2688
+ code: "code";
2689
+ tool: "tool";
2690
+ }>;
2691
+ passes: z.ZodNumber;
2692
+ attempts: z.ZodNumber;
2693
+ flaky: z.ZodBoolean;
2694
+ failureCause: z.ZodNullable<z.ZodEnum<{
2695
+ error: "error";
2696
+ wrong_tool: "wrong_tool";
2697
+ bad_arguments: "bad_arguments";
2698
+ missing_capability: "missing_capability";
2699
+ gave_up: "gave_up";
2700
+ hallucinated: "hallucinated";
2701
+ policy_blocked: "policy_blocked";
2702
+ no_framing: "no_framing";
2703
+ over_budget: "over_budget";
2704
+ }>>;
2705
+ avgTokens: z.ZodNumber;
2706
+ avgCalls: z.ZodNumber;
2707
+ taskRunIds: z.ZodArray<z.ZodString>;
2708
+ }, z.core.$strip>>;
2709
+ }, z.core.$strip>>;
2710
+ nextCursor: z.ZodNullable<z.ZodString>;
2711
+ totalEstimate: z.ZodOptional<z.ZodNumber>;
2712
+ }, z.core.$strip>;
2713
+ } & {
2714
+ status: number;
2715
+ };
2716
+ readonly taskRun: {
2717
+ readonly method: "GET";
2718
+ readonly path: "/api/eval-runs/:id/task-runs/:taskRunId";
2719
+ readonly kind: "json";
2720
+ readonly access: readonly ["evals:read"];
2721
+ readonly summary: "One attempt with assertions, judge and transcript";
2722
+ readonly params: z.ZodObject<{
2723
+ id: z.ZodString;
2724
+ taskRunId: z.ZodString;
2725
+ }, z.core.$strip>;
2726
+ readonly response: z.ZodObject<{
2727
+ id: z.ZodString;
2728
+ runId: z.ZodString;
2729
+ task: z.ZodObject<{
2730
+ id: z.ZodString;
2731
+ key: z.ZodString;
2732
+ category: z.ZodEnum<{
2733
+ single: "single";
2734
+ multi: "multi";
2735
+ ambiguous: "ambiguous";
2736
+ impossible: "impossible";
2737
+ }>;
2738
+ prompt: z.ZodString;
2739
+ rubric: z.ZodString;
2740
+ assertions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2741
+ type: z.ZodLiteral<"called">;
2742
+ tool: z.ZodString;
2743
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2744
+ argsMatch: z.ZodOptional<z.ZodEnum<{
2745
+ subset: "subset";
2746
+ exact: "exact";
2747
+ }>>;
2748
+ minTimes: z.ZodOptional<z.ZodNumber>;
2749
+ }, z.core.$strip>, z.ZodObject<{
2750
+ type: z.ZodLiteral<"not_called">;
2751
+ tool: z.ZodString;
2752
+ }, z.core.$strip>, z.ZodObject<{
2753
+ type: z.ZodLiteral<"no_writes">;
2754
+ }, z.core.$strip>, z.ZodObject<{
2755
+ type: z.ZodLiteral<"max_calls">;
2756
+ n: z.ZodNumber;
2757
+ }, z.core.$strip>, z.ZodObject<{
2758
+ type: z.ZodLiteral<"state">;
2759
+ resource: z.ZodString;
2760
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2761
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2762
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
2763
+ count: z.ZodNumber;
2764
+ }, z.core.$strip>]>;
2765
+ }, z.core.$strip>, z.ZodObject<{
2766
+ type: z.ZodLiteral<"answer_contains">;
2767
+ anyOf: z.ZodArray<z.ZodString>;
2768
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
2769
+ }, z.core.$strip>, z.ZodObject<{
2770
+ type: z.ZodLiteral<"answer_matches">;
2771
+ regex: z.ZodString;
2772
+ }, z.core.$strip>, z.ZodObject<{
2773
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
2774
+ }, z.core.$strip>, z.ZodObject<{
2775
+ type: z.ZodLiteral<"framing">;
2776
+ }, z.core.$strip>, z.ZodObject<{
2777
+ type: z.ZodLiteral<"judge">;
2778
+ criterion: z.ZodString;
2779
+ }, z.core.$strip>], "type">>;
2780
+ referenceCalls: z.ZodArray<z.ZodObject<{
2781
+ tool: z.ZodString;
2782
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2783
+ }, z.core.$strip>>;
2784
+ seedState: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2785
+ tags: z.ZodArray<z.ZodString>;
2786
+ enabled: z.ZodBoolean;
2787
+ source: z.ZodEnum<{
2788
+ generated: "generated";
2789
+ manual: "manual";
2790
+ }>;
2791
+ }, z.core.$strip>;
2792
+ model: z.ZodString;
2793
+ mode: z.ZodEnum<{
2794
+ code: "code";
2795
+ tool: "tool";
2796
+ }>;
2797
+ attempt: z.ZodNumber;
2798
+ passed: z.ZodBoolean;
2799
+ assertionResults: z.ZodArray<z.ZodObject<{
2800
+ assertion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2801
+ type: z.ZodLiteral<"called">;
2802
+ tool: z.ZodString;
2803
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2804
+ argsMatch: z.ZodOptional<z.ZodEnum<{
2805
+ subset: "subset";
2806
+ exact: "exact";
2807
+ }>>;
2808
+ minTimes: z.ZodOptional<z.ZodNumber>;
2809
+ }, z.core.$strip>, z.ZodObject<{
2810
+ type: z.ZodLiteral<"not_called">;
2811
+ tool: z.ZodString;
2812
+ }, z.core.$strip>, z.ZodObject<{
2813
+ type: z.ZodLiteral<"no_writes">;
2814
+ }, z.core.$strip>, z.ZodObject<{
2815
+ type: z.ZodLiteral<"max_calls">;
2816
+ n: z.ZodNumber;
2817
+ }, z.core.$strip>, z.ZodObject<{
2818
+ type: z.ZodLiteral<"state">;
2819
+ resource: z.ZodString;
2820
+ scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2821
+ where: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2822
+ expect: z.ZodUnion<readonly [z.ZodLiteral<"exists">, z.ZodLiteral<"absent">, z.ZodObject<{
2823
+ count: z.ZodNumber;
2824
+ }, z.core.$strip>]>;
2825
+ }, z.core.$strip>, z.ZodObject<{
2826
+ type: z.ZodLiteral<"answer_contains">;
2827
+ anyOf: z.ZodArray<z.ZodString>;
2828
+ caseInsensitive: z.ZodOptional<z.ZodBoolean>;
2829
+ }, z.core.$strip>, z.ZodObject<{
2830
+ type: z.ZodLiteral<"answer_matches">;
2831
+ regex: z.ZodString;
2832
+ }, z.core.$strip>, z.ZodObject<{
2833
+ type: z.ZodLiteral<"unmet_need_reported_or_declined">;
2834
+ }, z.core.$strip>, z.ZodObject<{
2835
+ type: z.ZodLiteral<"framing">;
2836
+ }, z.core.$strip>, z.ZodObject<{
2837
+ type: z.ZodLiteral<"judge">;
2838
+ criterion: z.ZodString;
2839
+ }, z.core.$strip>], "type">;
2840
+ passed: z.ZodBoolean;
2841
+ detail: z.ZodString;
2842
+ }, z.core.$strip>>;
2843
+ judge: z.ZodNullable<z.ZodObject<{
2844
+ score: z.ZodNumber;
2845
+ verdict: z.ZodEnum<{
2846
+ pass: "pass";
2847
+ fail: "fail";
2848
+ }>;
2849
+ reasons: z.ZodArray<z.ZodString>;
2850
+ }, z.core.$strip>>;
2851
+ failureCause: z.ZodNullable<z.ZodEnum<{
2852
+ error: "error";
2853
+ wrong_tool: "wrong_tool";
2854
+ bad_arguments: "bad_arguments";
2855
+ missing_capability: "missing_capability";
2856
+ gave_up: "gave_up";
2857
+ hallucinated: "hallucinated";
2858
+ policy_blocked: "policy_blocked";
2859
+ no_framing: "no_framing";
2860
+ over_budget: "over_budget";
2861
+ }>>;
2862
+ toolCalls: z.ZodNumber;
2863
+ scripts: z.ZodNumber;
2864
+ tokens: z.ZodObject<{
2865
+ inputTokens: z.ZodNumber;
2866
+ outputTokens: z.ZodNumber;
2867
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
2868
+ }, z.core.$strip>;
2869
+ latencyMs: z.ZodNumber;
2870
+ servedByModel: z.ZodNullable<z.ZodString>;
2871
+ fallbackUsed: z.ZodBoolean;
2872
+ neurouterTaskId: z.ZodNullable<z.ZodString>;
2873
+ finalAnswer: z.ZodNullable<z.ZodString>;
2874
+ transcript: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2875
+ type: z.ZodLiteral<"user">;
2876
+ text: z.ZodString;
2877
+ }, z.core.$strip>, z.ZodObject<{
2878
+ type: z.ZodLiteral<"assistant">;
2879
+ text: z.ZodString;
2880
+ }, z.core.$strip>, z.ZodObject<{
2881
+ type: z.ZodLiteral<"tool_call">;
2882
+ id: z.ZodString;
2883
+ tool: z.ZodString;
2884
+ arguments: z.ZodUnknown;
2885
+ }, z.core.$strip>, z.ZodObject<{
2886
+ type: z.ZodLiteral<"tool_result">;
2887
+ id: z.ZodString;
2888
+ tool: z.ZodString;
2889
+ isError: z.ZodBoolean;
2890
+ content: z.ZodString;
2891
+ truncated: z.ZodOptional<z.ZodBoolean>;
2892
+ }, z.core.$strip>, z.ZodObject<{
2893
+ type: z.ZodLiteral<"note">;
2894
+ text: z.ZodString;
2895
+ }, z.core.$strip>], "type">>;
2896
+ createdAt: z.ZodISODateTime;
2897
+ }, z.core.$strip>;
2898
+ } & {
2899
+ status: number;
2900
+ };
2901
+ readonly cancelRun: {
2902
+ readonly method: "POST";
2903
+ readonly path: "/api/eval-runs/:id/cancel";
2904
+ readonly kind: "json";
2905
+ readonly access: readonly ["evals:run"];
2906
+ readonly summary: "Cancel a queued or running run";
2907
+ readonly params: z.ZodObject<{
2908
+ id: z.ZodString;
2909
+ }, z.core.$strip>;
2910
+ readonly response: z.ZodObject<{
2911
+ id: z.ZodString;
2912
+ server: z.ZodObject<{
2913
+ id: z.ZodString;
2914
+ slug: z.ZodString;
2915
+ name: z.ZodString;
2916
+ }, z.core.$strip>;
2917
+ suite: z.ZodObject<{
2918
+ id: z.ZodString;
2919
+ version: z.ZodNumber;
2920
+ }, z.core.$strip>;
2921
+ environment: z.ZodObject<{
2922
+ id: z.ZodString;
2923
+ slug: z.ZodString;
2924
+ name: z.ZodString;
2925
+ }, z.core.$strip>;
2926
+ build: z.ZodObject<{
2927
+ id: z.ZodString;
2928
+ hash: z.ZodString;
2929
+ }, z.core.$strip>;
2930
+ overlayRev: z.ZodNullable<z.ZodNumber>;
2931
+ temporaryBuild: z.ZodBoolean;
2932
+ models: z.ZodArray<z.ZodString>;
2933
+ modes: z.ZodArray<z.ZodEnum<{
2934
+ code: "code";
2935
+ tool: "tool";
2936
+ }>>;
2937
+ repeats: z.ZodNumber;
2938
+ status: z.ZodEnum<{
2939
+ cancelled: "cancelled";
2940
+ running: "running";
2941
+ queued: "queued";
2942
+ succeeded: "succeeded";
2943
+ failed: "failed";
2944
+ }>;
2945
+ progress: z.ZodObject<{
2946
+ done: z.ZodNumber;
2947
+ total: z.ZodNumber;
2948
+ }, z.core.$strip>;
2949
+ headline: z.ZodNullable<z.ZodNumber>;
2950
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
2951
+ code: "code";
2952
+ tool: "tool";
2953
+ }>>;
2954
+ confidence: z.ZodNullable<z.ZodEnum<{
2955
+ measured: "measured";
2956
+ preliminary: "preliminary";
2957
+ degraded: "degraded";
2958
+ }>>;
2959
+ trigger: z.ZodEnum<{
2960
+ console: "console";
2961
+ cli: "cli";
2962
+ ci: "ci";
2963
+ suggestion_verify: "suggestion_verify";
2964
+ }>;
2965
+ baseRunId: z.ZodNullable<z.ZodString>;
2966
+ error: z.ZodNullable<z.ZodString>;
2967
+ createdAt: z.ZodISODateTime;
2968
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
2969
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
2970
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
2971
+ inputTokens: z.ZodNumber;
2972
+ outputTokens: z.ZodNumber;
2973
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
2974
+ }, z.core.$strip>>;
2975
+ }, z.core.$strip>;
2976
+ } & {
2977
+ status: number;
2978
+ };
2979
+ };
2980
+ export declare const readinessEndpoints: {
2981
+ readonly get: {
2982
+ readonly method: "GET";
2983
+ readonly path: "/api/servers/:id/readiness";
2984
+ readonly kind: "json";
2985
+ readonly access: readonly ["evals:read"];
2986
+ readonly summary: "Latest readiness (preliminary = lint-only when no run exists)";
2987
+ readonly params: z.ZodObject<{
2988
+ id: z.ZodString;
2989
+ }, z.core.$strip>;
2990
+ readonly response: z.ZodObject<{
2991
+ score: z.ZodNumber;
2992
+ band: z.ZodEnum<{
2993
+ not_ready: "not_ready";
2994
+ needs_work: "needs_work";
2995
+ ready: "ready";
2996
+ excellent: "excellent";
2997
+ }>;
2998
+ confidence: z.ZodEnum<{
2999
+ measured: "measured";
3000
+ preliminary: "preliminary";
3001
+ degraded: "degraded";
3002
+ }>;
3003
+ runId: z.ZodNullable<z.ZodString>;
3004
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
3005
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
3006
+ code: "code";
3007
+ tool: "tool";
3008
+ }>>;
3009
+ recommendation: z.ZodNullable<z.ZodString>;
3010
+ modeScores: z.ZodObject<{
3011
+ tool: z.ZodOptional<z.ZodNumber>;
3012
+ code: z.ZodOptional<z.ZodNumber>;
3013
+ }, z.core.$strip>;
3014
+ breakdown: z.ZodArray<z.ZodObject<{
3015
+ key: z.ZodEnum<{
3016
+ success: "success";
3017
+ impossible: "impossible";
3018
+ efficiency: "efficiency";
3019
+ framing: "framing";
3020
+ quality: "quality";
3021
+ stability: "stability";
3022
+ correctness: "correctness";
3023
+ }>;
3024
+ label: z.ZodString;
3025
+ weight: z.ZodNumber;
3026
+ score: z.ZodNumber;
3027
+ detail: z.ZodString;
3028
+ fixCount: z.ZodNumber;
3029
+ }, z.core.$strip>>;
3030
+ }, z.core.$strip>;
3031
+ } & {
3032
+ status: number;
3033
+ };
3034
+ };
3035
+ export declare const suggestionEndpoints: {
3036
+ readonly list: {
3037
+ readonly method: "GET";
3038
+ readonly path: "/api/eval-runs/:id/suggestions";
3039
+ readonly kind: "json";
3040
+ readonly access: readonly ["evals:read"];
3041
+ readonly summary: "Fix suggestions of a run";
3042
+ readonly params: z.ZodObject<{
3043
+ id: z.ZodString;
3044
+ }, z.core.$strip>;
3045
+ readonly response: z.ZodObject<{
3046
+ items: z.ZodArray<z.ZodObject<{
3047
+ id: z.ZodString;
3048
+ runId: z.ZodString;
3049
+ serverId: z.ZodString;
3050
+ cause: z.ZodEnum<{
3051
+ error: "error";
3052
+ wrong_tool: "wrong_tool";
3053
+ bad_arguments: "bad_arguments";
3054
+ missing_capability: "missing_capability";
3055
+ gave_up: "gave_up";
3056
+ hallucinated: "hallucinated";
3057
+ policy_blocked: "policy_blocked";
3058
+ no_framing: "no_framing";
3059
+ over_budget: "over_budget";
3060
+ }>;
3061
+ kind: z.ZodEnum<{
3062
+ composite: "composite";
3063
+ rename: "rename";
3064
+ describe: "describe";
3065
+ example: "example";
3066
+ hide: "hide";
3067
+ response_shape: "response_shape";
3068
+ }>;
3069
+ tools: z.ZodArray<z.ZodString>;
3070
+ affectedTaskKeys: z.ZodArray<z.ZodString>;
3071
+ overlayPatch: z.ZodString;
3072
+ specPatch: z.ZodNullable<z.ZodString>;
3073
+ rationale: z.ZodString;
3074
+ predictedDelta: z.ZodNumber;
3075
+ status: z.ZodEnum<{
3076
+ dismissed: "dismissed";
3077
+ proposed: "proposed";
3078
+ verifying: "verifying";
3079
+ verified: "verified";
3080
+ applied: "applied";
3081
+ }>;
3082
+ verifyRunId: z.ZodNullable<z.ZodString>;
3083
+ verifiedDelta: z.ZodNullable<z.ZodNumber>;
3084
+ createdAt: z.ZodISODateTime;
3085
+ updatedAt: z.ZodISODateTime;
3086
+ }, z.core.$strip>>;
3087
+ }, z.core.$strip>;
3088
+ } & {
3089
+ status: number;
3090
+ };
3091
+ readonly search: {
3092
+ readonly method: "GET";
3093
+ readonly path: "/api/suggestions";
3094
+ readonly kind: "json";
3095
+ readonly access: readonly ["evals:read"];
3096
+ readonly summary: "Suggestions by server, tool and status";
3097
+ readonly query: z.ZodObject<{
3098
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
3099
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
3100
+ serverId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
3101
+ toolName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
3102
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
3103
+ dismissed: "dismissed";
3104
+ proposed: "proposed";
3105
+ verifying: "verifying";
3106
+ verified: "verified";
3107
+ applied: "applied";
3108
+ }>>>, unknown>;
3109
+ }, z.core.$strip>;
3110
+ readonly response: z.ZodObject<{
3111
+ items: z.ZodArray<z.ZodObject<{
3112
+ id: z.ZodString;
3113
+ runId: z.ZodString;
3114
+ serverId: z.ZodString;
3115
+ cause: z.ZodEnum<{
3116
+ error: "error";
3117
+ wrong_tool: "wrong_tool";
3118
+ bad_arguments: "bad_arguments";
3119
+ missing_capability: "missing_capability";
3120
+ gave_up: "gave_up";
3121
+ hallucinated: "hallucinated";
3122
+ policy_blocked: "policy_blocked";
3123
+ no_framing: "no_framing";
3124
+ over_budget: "over_budget";
3125
+ }>;
3126
+ kind: z.ZodEnum<{
3127
+ composite: "composite";
3128
+ rename: "rename";
3129
+ describe: "describe";
3130
+ example: "example";
3131
+ hide: "hide";
3132
+ response_shape: "response_shape";
3133
+ }>;
3134
+ tools: z.ZodArray<z.ZodString>;
3135
+ affectedTaskKeys: z.ZodArray<z.ZodString>;
3136
+ overlayPatch: z.ZodString;
3137
+ specPatch: z.ZodNullable<z.ZodString>;
3138
+ rationale: z.ZodString;
3139
+ predictedDelta: z.ZodNumber;
3140
+ status: z.ZodEnum<{
3141
+ dismissed: "dismissed";
3142
+ proposed: "proposed";
3143
+ verifying: "verifying";
3144
+ verified: "verified";
3145
+ applied: "applied";
3146
+ }>;
3147
+ verifyRunId: z.ZodNullable<z.ZodString>;
3148
+ verifiedDelta: z.ZodNullable<z.ZodNumber>;
3149
+ createdAt: z.ZodISODateTime;
3150
+ updatedAt: z.ZodISODateTime;
3151
+ }, z.core.$strip>>;
3152
+ nextCursor: z.ZodNullable<z.ZodString>;
3153
+ totalEstimate: z.ZodOptional<z.ZodNumber>;
3154
+ }, z.core.$strip>;
3155
+ } & {
3156
+ status: number;
3157
+ };
3158
+ readonly get: {
3159
+ readonly method: "GET";
3160
+ readonly path: "/api/suggestions/:id";
3161
+ readonly kind: "json";
3162
+ readonly access: readonly ["evals:read"];
3163
+ readonly summary: "Suggestion with its verify run and affected tasks";
3164
+ readonly params: z.ZodObject<{
3165
+ id: z.ZodString;
3166
+ }, z.core.$strip>;
3167
+ readonly response: z.ZodObject<{
3168
+ id: z.ZodString;
3169
+ runId: z.ZodString;
3170
+ serverId: z.ZodString;
3171
+ cause: z.ZodEnum<{
3172
+ error: "error";
3173
+ wrong_tool: "wrong_tool";
3174
+ bad_arguments: "bad_arguments";
3175
+ missing_capability: "missing_capability";
3176
+ gave_up: "gave_up";
3177
+ hallucinated: "hallucinated";
3178
+ policy_blocked: "policy_blocked";
3179
+ no_framing: "no_framing";
3180
+ over_budget: "over_budget";
3181
+ }>;
3182
+ kind: z.ZodEnum<{
3183
+ composite: "composite";
3184
+ rename: "rename";
3185
+ describe: "describe";
3186
+ example: "example";
3187
+ hide: "hide";
3188
+ response_shape: "response_shape";
3189
+ }>;
3190
+ tools: z.ZodArray<z.ZodString>;
3191
+ affectedTaskKeys: z.ZodArray<z.ZodString>;
3192
+ overlayPatch: z.ZodString;
3193
+ specPatch: z.ZodNullable<z.ZodString>;
3194
+ rationale: z.ZodString;
3195
+ predictedDelta: z.ZodNumber;
3196
+ status: z.ZodEnum<{
3197
+ dismissed: "dismissed";
3198
+ proposed: "proposed";
3199
+ verifying: "verifying";
3200
+ verified: "verified";
3201
+ applied: "applied";
3202
+ }>;
3203
+ verifyRunId: z.ZodNullable<z.ZodString>;
3204
+ verifiedDelta: z.ZodNullable<z.ZodNumber>;
3205
+ createdAt: z.ZodISODateTime;
3206
+ updatedAt: z.ZodISODateTime;
3207
+ verifyRun: z.ZodNullable<z.ZodObject<{
3208
+ id: z.ZodString;
3209
+ server: z.ZodObject<{
3210
+ id: z.ZodString;
3211
+ slug: z.ZodString;
3212
+ name: z.ZodString;
3213
+ }, z.core.$strip>;
3214
+ suite: z.ZodObject<{
3215
+ id: z.ZodString;
3216
+ version: z.ZodNumber;
3217
+ }, z.core.$strip>;
3218
+ environment: z.ZodObject<{
3219
+ id: z.ZodString;
3220
+ slug: z.ZodString;
3221
+ name: z.ZodString;
3222
+ }, z.core.$strip>;
3223
+ build: z.ZodObject<{
3224
+ id: z.ZodString;
3225
+ hash: z.ZodString;
3226
+ }, z.core.$strip>;
3227
+ overlayRev: z.ZodNullable<z.ZodNumber>;
3228
+ temporaryBuild: z.ZodBoolean;
3229
+ models: z.ZodArray<z.ZodString>;
3230
+ modes: z.ZodArray<z.ZodEnum<{
3231
+ code: "code";
3232
+ tool: "tool";
3233
+ }>>;
3234
+ repeats: z.ZodNumber;
3235
+ status: z.ZodEnum<{
3236
+ cancelled: "cancelled";
3237
+ running: "running";
3238
+ queued: "queued";
3239
+ succeeded: "succeeded";
3240
+ failed: "failed";
3241
+ }>;
3242
+ progress: z.ZodObject<{
3243
+ done: z.ZodNumber;
3244
+ total: z.ZodNumber;
3245
+ }, z.core.$strip>;
3246
+ headline: z.ZodNullable<z.ZodNumber>;
3247
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
3248
+ code: "code";
3249
+ tool: "tool";
3250
+ }>>;
3251
+ confidence: z.ZodNullable<z.ZodEnum<{
3252
+ measured: "measured";
3253
+ preliminary: "preliminary";
3254
+ degraded: "degraded";
3255
+ }>>;
3256
+ trigger: z.ZodEnum<{
3257
+ console: "console";
3258
+ cli: "cli";
3259
+ ci: "ci";
3260
+ suggestion_verify: "suggestion_verify";
3261
+ }>;
3262
+ baseRunId: z.ZodNullable<z.ZodString>;
3263
+ error: z.ZodNullable<z.ZodString>;
3264
+ createdAt: z.ZodISODateTime;
3265
+ startedAt: z.ZodNullable<z.ZodISODateTime>;
3266
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
3267
+ usage: z.ZodRecord<z.ZodString, z.ZodObject<{
3268
+ inputTokens: z.ZodNumber;
3269
+ outputTokens: z.ZodNumber;
3270
+ cacheReadTokens: z.ZodOptional<z.ZodNumber>;
3271
+ }, z.core.$strip>>;
3272
+ }, z.core.$strip>>;
3273
+ affectedTasks: z.ZodArray<z.ZodObject<{
3274
+ taskId: z.ZodString;
3275
+ key: z.ZodString;
3276
+ category: z.ZodEnum<{
3277
+ single: "single";
3278
+ multi: "multi";
3279
+ ambiguous: "ambiguous";
3280
+ impossible: "impossible";
3281
+ }>;
3282
+ prompt: z.ZodString;
3283
+ cells: z.ZodArray<z.ZodObject<{
3284
+ model: z.ZodString;
3285
+ mode: z.ZodEnum<{
3286
+ code: "code";
3287
+ tool: "tool";
3288
+ }>;
3289
+ passes: z.ZodNumber;
3290
+ attempts: z.ZodNumber;
3291
+ flaky: z.ZodBoolean;
3292
+ failureCause: z.ZodNullable<z.ZodEnum<{
3293
+ error: "error";
3294
+ wrong_tool: "wrong_tool";
3295
+ bad_arguments: "bad_arguments";
3296
+ missing_capability: "missing_capability";
3297
+ gave_up: "gave_up";
3298
+ hallucinated: "hallucinated";
3299
+ policy_blocked: "policy_blocked";
3300
+ no_framing: "no_framing";
3301
+ over_budget: "over_budget";
3302
+ }>>;
3303
+ avgTokens: z.ZodNumber;
3304
+ avgCalls: z.ZodNumber;
3305
+ taskRunIds: z.ZodArray<z.ZodString>;
3306
+ }, z.core.$strip>>;
3307
+ }, z.core.$strip>>;
3308
+ }, z.core.$strip>;
3309
+ } & {
3310
+ status: number;
3311
+ };
3312
+ readonly verify: {
3313
+ readonly method: "POST";
3314
+ readonly path: "/api/suggestions/:id/verify";
3315
+ readonly kind: "json";
3316
+ readonly status: 202;
3317
+ readonly access: readonly ["evals:run"];
3318
+ readonly summary: "Run the affected tasks on a temporary build (published overlay + patch); 412";
3319
+ readonly params: z.ZodObject<{
3320
+ id: z.ZodString;
3321
+ }, z.core.$strip>;
3322
+ readonly response: z.ZodObject<{
3323
+ id: z.ZodString;
3324
+ runId: z.ZodString;
3325
+ serverId: z.ZodString;
3326
+ cause: z.ZodEnum<{
3327
+ error: "error";
3328
+ wrong_tool: "wrong_tool";
3329
+ bad_arguments: "bad_arguments";
3330
+ missing_capability: "missing_capability";
3331
+ gave_up: "gave_up";
3332
+ hallucinated: "hallucinated";
3333
+ policy_blocked: "policy_blocked";
3334
+ no_framing: "no_framing";
3335
+ over_budget: "over_budget";
3336
+ }>;
3337
+ kind: z.ZodEnum<{
3338
+ composite: "composite";
3339
+ rename: "rename";
3340
+ describe: "describe";
3341
+ example: "example";
3342
+ hide: "hide";
3343
+ response_shape: "response_shape";
3344
+ }>;
3345
+ tools: z.ZodArray<z.ZodString>;
3346
+ affectedTaskKeys: z.ZodArray<z.ZodString>;
3347
+ overlayPatch: z.ZodString;
3348
+ specPatch: z.ZodNullable<z.ZodString>;
3349
+ rationale: z.ZodString;
3350
+ predictedDelta: z.ZodNumber;
3351
+ status: z.ZodEnum<{
3352
+ dismissed: "dismissed";
3353
+ proposed: "proposed";
3354
+ verifying: "verifying";
3355
+ verified: "verified";
3356
+ applied: "applied";
3357
+ }>;
3358
+ verifyRunId: z.ZodNullable<z.ZodString>;
3359
+ verifiedDelta: z.ZodNullable<z.ZodNumber>;
3360
+ createdAt: z.ZodISODateTime;
3361
+ updatedAt: z.ZodISODateTime;
3362
+ }, z.core.$strip>;
3363
+ } & {
3364
+ status: number;
3365
+ };
3366
+ readonly apply: {
3367
+ readonly method: "POST";
3368
+ readonly path: "/api/suggestions/:id/apply";
3369
+ readonly kind: "json";
3370
+ readonly access: readonly ["overlays:write"];
3371
+ readonly summary: "Write the patch into the overlay draft, or publish it (409 draft_conflict)";
3372
+ readonly params: z.ZodObject<{
3373
+ id: z.ZodString;
3374
+ }, z.core.$strip>;
3375
+ readonly body: z.ZodObject<{
3376
+ mode: z.ZodDefault<z.ZodEnum<{
3377
+ draft: "draft";
3378
+ publish: "publish";
3379
+ }>>;
3380
+ message: z.ZodOptional<z.ZodString>;
3381
+ }, z.core.$strip>;
3382
+ readonly response: z.ZodObject<{
3383
+ suggestion: z.ZodObject<{
3384
+ id: z.ZodString;
3385
+ runId: z.ZodString;
3386
+ serverId: z.ZodString;
3387
+ cause: z.ZodEnum<{
3388
+ error: "error";
3389
+ wrong_tool: "wrong_tool";
3390
+ bad_arguments: "bad_arguments";
3391
+ missing_capability: "missing_capability";
3392
+ gave_up: "gave_up";
3393
+ hallucinated: "hallucinated";
3394
+ policy_blocked: "policy_blocked";
3395
+ no_framing: "no_framing";
3396
+ over_budget: "over_budget";
3397
+ }>;
3398
+ kind: z.ZodEnum<{
3399
+ composite: "composite";
3400
+ rename: "rename";
3401
+ describe: "describe";
3402
+ example: "example";
3403
+ hide: "hide";
3404
+ response_shape: "response_shape";
3405
+ }>;
3406
+ tools: z.ZodArray<z.ZodString>;
3407
+ affectedTaskKeys: z.ZodArray<z.ZodString>;
3408
+ overlayPatch: z.ZodString;
3409
+ specPatch: z.ZodNullable<z.ZodString>;
3410
+ rationale: z.ZodString;
3411
+ predictedDelta: z.ZodNumber;
3412
+ status: z.ZodEnum<{
3413
+ dismissed: "dismissed";
3414
+ proposed: "proposed";
3415
+ verifying: "verifying";
3416
+ verified: "verified";
3417
+ applied: "applied";
3418
+ }>;
3419
+ verifyRunId: z.ZodNullable<z.ZodString>;
3420
+ verifiedDelta: z.ZodNullable<z.ZodNumber>;
3421
+ createdAt: z.ZodISODateTime;
3422
+ updatedAt: z.ZodISODateTime;
3423
+ }, z.core.$strip>;
3424
+ draft: z.ZodOptional<z.ZodObject<{
3425
+ yaml: z.ZodString;
3426
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
3427
+ changeCount: z.ZodNumber;
3428
+ changes: z.ZodArray<z.ZodObject<{
3429
+ kind: z.ZodEnum<{
3430
+ default: "default";
3431
+ composite: "composite";
3432
+ info: "info";
3433
+ tool: "tool";
3434
+ profile: "profile";
3435
+ }>;
3436
+ target: z.ZodString;
3437
+ field: z.ZodNullable<z.ZodString>;
3438
+ change: z.ZodEnum<{
3439
+ added: "added";
3440
+ removed: "removed";
3441
+ changed: "changed";
3442
+ }>;
3443
+ before: z.ZodOptional<z.ZodUnknown>;
3444
+ after: z.ZodOptional<z.ZodUnknown>;
3445
+ }, z.core.$strip>>;
3446
+ etag: z.ZodString;
3447
+ validation: z.ZodObject<{
3448
+ ok: z.ZodBoolean;
3449
+ diagnostics: z.ZodArray<z.ZodObject<{
3450
+ severity: z.ZodEnum<{
3451
+ error: "error";
3452
+ warning: "warning";
3453
+ info: "info";
3454
+ }>;
3455
+ code: z.ZodString;
3456
+ message: z.ZodString;
3457
+ pointer: z.ZodOptional<z.ZodString>;
3458
+ overlayPath: z.ZodOptional<z.ZodString>;
3459
+ line: z.ZodOptional<z.ZodNumber>;
3460
+ col: z.ZodOptional<z.ZodNumber>;
3461
+ excerpt: z.ZodOptional<z.ZodString>;
3462
+ }, z.core.$strip>>;
3463
+ }, z.core.$strip>;
3464
+ preview: z.ZodObject<{
3465
+ toolCount: z.ZodNumber;
3466
+ visibleCount: z.ZodNumber;
3467
+ lintScore: z.ZodNumber;
3468
+ }, z.core.$strip>;
3469
+ fileManaged: z.ZodBoolean;
3470
+ updatedAt: z.ZodNullable<z.ZodISODateTime>;
3471
+ updatedBy: z.ZodNullable<z.ZodObject<{
3472
+ id: z.ZodString;
3473
+ name: z.ZodString;
3474
+ }, z.core.$strip>>;
3475
+ }, z.core.$strip>>;
3476
+ publish: z.ZodOptional<z.ZodObject<{
3477
+ revision: z.ZodObject<{
3478
+ id: z.ZodString;
3479
+ rev: z.ZodNumber;
3480
+ hash: z.ZodString;
3481
+ message: z.ZodString;
3482
+ source: z.ZodEnum<{
3483
+ file: "file";
3484
+ console: "console";
3485
+ suggestion: "suggestion";
3486
+ revert: "revert";
3487
+ }>;
3488
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
3489
+ createdBy: z.ZodNullable<z.ZodObject<{
3490
+ id: z.ZodString;
3491
+ name: z.ZodString;
3492
+ }, z.core.$strip>>;
3493
+ createdAt: z.ZodISODateTime;
3494
+ toolChanges: z.ZodNumber;
3495
+ }, z.core.$strip>;
3496
+ build: z.ZodObject<{
3497
+ id: z.ZodString;
3498
+ hash: z.ZodString;
3499
+ status: z.ZodEnum<{
3500
+ ok: "ok";
3501
+ error: "error";
3502
+ }>;
3503
+ specRev: z.ZodNumber;
3504
+ overlayRev: z.ZodNullable<z.ZodNumber>;
3505
+ compilerVersion: z.ZodString;
3506
+ toolCount: z.ZodNumber;
3507
+ visibleCount: z.ZodNumber;
3508
+ writeCount: z.ZodNumber;
3509
+ hiddenCount: z.ZodNumber;
3510
+ lintScore: z.ZodNumber;
3511
+ diagnosticsCount: z.ZodObject<{
3512
+ error: z.ZodNumber;
3513
+ warning: z.ZodNumber;
3514
+ info: z.ZodNumber;
3515
+ }, z.core.$strip>;
3516
+ environments: z.ZodArray<z.ZodString>;
3517
+ createdAt: z.ZodISODateTime;
3518
+ }, z.core.$strip>;
3519
+ pinnedEnvironments: z.ZodArray<z.ZodObject<{
3520
+ id: z.ZodString;
3521
+ slug: z.ZodString;
3522
+ }, z.core.$strip>>;
3523
+ }, z.core.$strip>>;
3524
+ }, z.core.$strip>;
3525
+ } & {
3526
+ status: number;
3527
+ };
3528
+ readonly dismiss: {
3529
+ readonly method: "POST";
3530
+ readonly path: "/api/suggestions/:id/dismiss";
3531
+ readonly kind: "json";
3532
+ readonly access: readonly ["evals:run"];
3533
+ readonly summary: "Dismiss a suggestion";
3534
+ readonly params: z.ZodObject<{
3535
+ id: z.ZodString;
3536
+ }, z.core.$strip>;
3537
+ readonly response: z.ZodObject<{
3538
+ id: z.ZodString;
3539
+ runId: z.ZodString;
3540
+ serverId: z.ZodString;
3541
+ cause: z.ZodEnum<{
3542
+ error: "error";
3543
+ wrong_tool: "wrong_tool";
3544
+ bad_arguments: "bad_arguments";
3545
+ missing_capability: "missing_capability";
3546
+ gave_up: "gave_up";
3547
+ hallucinated: "hallucinated";
3548
+ policy_blocked: "policy_blocked";
3549
+ no_framing: "no_framing";
3550
+ over_budget: "over_budget";
3551
+ }>;
3552
+ kind: z.ZodEnum<{
3553
+ composite: "composite";
3554
+ rename: "rename";
3555
+ describe: "describe";
3556
+ example: "example";
3557
+ hide: "hide";
3558
+ response_shape: "response_shape";
3559
+ }>;
3560
+ tools: z.ZodArray<z.ZodString>;
3561
+ affectedTaskKeys: z.ZodArray<z.ZodString>;
3562
+ overlayPatch: z.ZodString;
3563
+ specPatch: z.ZodNullable<z.ZodString>;
3564
+ rationale: z.ZodString;
3565
+ predictedDelta: z.ZodNumber;
3566
+ status: z.ZodEnum<{
3567
+ dismissed: "dismissed";
3568
+ proposed: "proposed";
3569
+ verifying: "verifying";
3570
+ verified: "verified";
3571
+ applied: "applied";
3572
+ }>;
3573
+ verifyRunId: z.ZodNullable<z.ZodString>;
3574
+ verifiedDelta: z.ZodNullable<z.ZodNumber>;
3575
+ createdAt: z.ZodISODateTime;
3576
+ updatedAt: z.ZodISODateTime;
3577
+ }, z.core.$strip>;
3578
+ } & {
3579
+ status: number;
3580
+ };
3581
+ };
3582
+ //# sourceMappingURL=evals.d.ts.map