@getpaseo/protocol 0.1.97-beta.3 → 0.1.97

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.
@@ -3,24 +3,18 @@ export declare const LoopLogEntrySchema: z.ZodObject<{
3
3
  seq: z.ZodNumber;
4
4
  timestamp: z.ZodString;
5
5
  iteration: z.ZodNullable<z.ZodNumber>;
6
- source: z.ZodEnum<["loop", "worker", "verifier", "verify-check"]>;
7
- level: z.ZodEnum<["info", "error"]>;
6
+ source: z.ZodEnum<{
7
+ loop: "loop";
8
+ worker: "worker";
9
+ verifier: "verifier";
10
+ "verify-check": "verify-check";
11
+ }>;
12
+ level: z.ZodEnum<{
13
+ error: "error";
14
+ info: "info";
15
+ }>;
8
16
  text: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- text: string;
11
- seq: number;
12
- timestamp: string;
13
- iteration: number | null;
14
- source: "loop" | "worker" | "verifier" | "verify-check";
15
- level: "error" | "info";
16
- }, {
17
- text: string;
18
- seq: number;
19
- timestamp: string;
20
- iteration: number | null;
21
- source: "loop" | "worker" | "verifier" | "verify-check";
22
- level: "error" | "info";
23
- }>;
17
+ }, z.core.$strip>;
24
18
  export declare const LoopVerifyCheckResultSchema: z.ZodObject<{
25
19
  command: z.ZodString;
26
20
  exitCode: z.ZodNumber;
@@ -29,50 +23,31 @@ export declare const LoopVerifyCheckResultSchema: z.ZodObject<{
29
23
  stderr: z.ZodString;
30
24
  startedAt: z.ZodString;
31
25
  completedAt: z.ZodString;
32
- }, "strip", z.ZodTypeAny, {
33
- startedAt: string;
34
- command: string;
35
- exitCode: number;
36
- passed: boolean;
37
- stdout: string;
38
- stderr: string;
39
- completedAt: string;
40
- }, {
41
- startedAt: string;
42
- command: string;
43
- exitCode: number;
44
- passed: boolean;
45
- stdout: string;
46
- stderr: string;
47
- completedAt: string;
48
- }>;
26
+ }, z.core.$strip>;
49
27
  export declare const LoopVerifyPromptResultSchema: z.ZodObject<{
50
28
  passed: z.ZodBoolean;
51
29
  reason: z.ZodString;
52
30
  verifierAgentId: z.ZodNullable<z.ZodString>;
53
31
  startedAt: z.ZodString;
54
32
  completedAt: z.ZodString;
55
- }, "strip", z.ZodTypeAny, {
56
- reason: string;
57
- startedAt: string;
58
- passed: boolean;
59
- completedAt: string;
60
- verifierAgentId: string | null;
61
- }, {
62
- reason: string;
63
- startedAt: string;
64
- passed: boolean;
65
- completedAt: string;
66
- verifierAgentId: string | null;
67
- }>;
33
+ }, z.core.$strip>;
68
34
  export declare const LoopIterationRecordSchema: z.ZodObject<{
69
35
  index: z.ZodNumber;
70
36
  workerAgentId: z.ZodNullable<z.ZodString>;
71
37
  workerStartedAt: z.ZodString;
72
38
  workerCompletedAt: z.ZodNullable<z.ZodString>;
73
39
  verifierAgentId: z.ZodNullable<z.ZodString>;
74
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
75
- workerOutcome: z.ZodNullable<z.ZodEnum<["completed", "failed", "canceled"]>>;
40
+ status: z.ZodEnum<{
41
+ running: "running";
42
+ failed: "failed";
43
+ succeeded: "succeeded";
44
+ stopped: "stopped";
45
+ }>;
46
+ workerOutcome: z.ZodNullable<z.ZodEnum<{
47
+ completed: "completed";
48
+ failed: "failed";
49
+ canceled: "canceled";
50
+ }>>;
76
51
  failureReason: z.ZodNullable<z.ZodString>;
77
52
  verifyChecks: z.ZodArray<z.ZodObject<{
78
53
  command: z.ZodString;
@@ -82,93 +57,15 @@ export declare const LoopIterationRecordSchema: z.ZodObject<{
82
57
  stderr: z.ZodString;
83
58
  startedAt: z.ZodString;
84
59
  completedAt: z.ZodString;
85
- }, "strip", z.ZodTypeAny, {
86
- startedAt: string;
87
- command: string;
88
- exitCode: number;
89
- passed: boolean;
90
- stdout: string;
91
- stderr: string;
92
- completedAt: string;
93
- }, {
94
- startedAt: string;
95
- command: string;
96
- exitCode: number;
97
- passed: boolean;
98
- stdout: string;
99
- stderr: string;
100
- completedAt: string;
101
- }>, "many">;
60
+ }, z.core.$strip>>;
102
61
  verifyPrompt: z.ZodNullable<z.ZodObject<{
103
62
  passed: z.ZodBoolean;
104
63
  reason: z.ZodString;
105
64
  verifierAgentId: z.ZodNullable<z.ZodString>;
106
65
  startedAt: z.ZodString;
107
66
  completedAt: z.ZodString;
108
- }, "strip", z.ZodTypeAny, {
109
- reason: string;
110
- startedAt: string;
111
- passed: boolean;
112
- completedAt: string;
113
- verifierAgentId: string | null;
114
- }, {
115
- reason: string;
116
- startedAt: string;
117
- passed: boolean;
118
- completedAt: string;
119
- verifierAgentId: string | null;
120
- }>>;
121
- }, "strip", z.ZodTypeAny, {
122
- status: "running" | "failed" | "succeeded" | "stopped";
123
- verifierAgentId: string | null;
124
- index: number;
125
- workerAgentId: string | null;
126
- workerStartedAt: string;
127
- workerCompletedAt: string | null;
128
- workerOutcome: "completed" | "failed" | "canceled" | null;
129
- failureReason: string | null;
130
- verifyChecks: {
131
- startedAt: string;
132
- command: string;
133
- exitCode: number;
134
- passed: boolean;
135
- stdout: string;
136
- stderr: string;
137
- completedAt: string;
138
- }[];
139
- verifyPrompt: {
140
- reason: string;
141
- startedAt: string;
142
- passed: boolean;
143
- completedAt: string;
144
- verifierAgentId: string | null;
145
- } | null;
146
- }, {
147
- status: "running" | "failed" | "succeeded" | "stopped";
148
- verifierAgentId: string | null;
149
- index: number;
150
- workerAgentId: string | null;
151
- workerStartedAt: string;
152
- workerCompletedAt: string | null;
153
- workerOutcome: "completed" | "failed" | "canceled" | null;
154
- failureReason: string | null;
155
- verifyChecks: {
156
- startedAt: string;
157
- command: string;
158
- exitCode: number;
159
- passed: boolean;
160
- stdout: string;
161
- stderr: string;
162
- completedAt: string;
163
- }[];
164
- verifyPrompt: {
165
- reason: string;
166
- startedAt: string;
167
- passed: boolean;
168
- completedAt: string;
169
- verifierAgentId: string | null;
170
- } | null;
171
- }>;
67
+ }, z.core.$strip>>;
68
+ }, z.core.$strip>;
172
69
  export declare const LoopRecordSchema: z.ZodObject<{
173
70
  id: z.ZodString;
174
71
  name: z.ZodNullable<z.ZodString>;
@@ -183,12 +80,17 @@ export declare const LoopRecordSchema: z.ZodObject<{
183
80
  verifierModel: z.ZodNullable<z.ZodString>;
184
81
  verifierModeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
185
82
  verifyPrompt: z.ZodNullable<z.ZodString>;
186
- verifyChecks: z.ZodArray<z.ZodString, "many">;
83
+ verifyChecks: z.ZodArray<z.ZodString>;
187
84
  archive: z.ZodBoolean;
188
85
  sleepMs: z.ZodNumber;
189
86
  maxIterations: z.ZodNullable<z.ZodNumber>;
190
87
  maxTimeMs: z.ZodNullable<z.ZodNumber>;
191
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
88
+ status: z.ZodEnum<{
89
+ running: "running";
90
+ failed: "failed";
91
+ succeeded: "succeeded";
92
+ stopped: "stopped";
93
+ }>;
192
94
  createdAt: z.ZodString;
193
95
  updatedAt: z.ZodString;
194
96
  startedAt: z.ZodString;
@@ -200,8 +102,17 @@ export declare const LoopRecordSchema: z.ZodObject<{
200
102
  workerStartedAt: z.ZodString;
201
103
  workerCompletedAt: z.ZodNullable<z.ZodString>;
202
104
  verifierAgentId: z.ZodNullable<z.ZodString>;
203
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
204
- workerOutcome: z.ZodNullable<z.ZodEnum<["completed", "failed", "canceled"]>>;
105
+ status: z.ZodEnum<{
106
+ running: "running";
107
+ failed: "failed";
108
+ succeeded: "succeeded";
109
+ stopped: "stopped";
110
+ }>;
111
+ workerOutcome: z.ZodNullable<z.ZodEnum<{
112
+ completed: "completed";
113
+ failed: "failed";
114
+ canceled: "canceled";
115
+ }>>;
205
116
  failureReason: z.ZodNullable<z.ZodString>;
206
117
  verifyChecks: z.ZodArray<z.ZodObject<{
207
118
  command: z.ZodString;
@@ -211,271 +122,50 @@ export declare const LoopRecordSchema: z.ZodObject<{
211
122
  stderr: z.ZodString;
212
123
  startedAt: z.ZodString;
213
124
  completedAt: z.ZodString;
214
- }, "strip", z.ZodTypeAny, {
215
- startedAt: string;
216
- command: string;
217
- exitCode: number;
218
- passed: boolean;
219
- stdout: string;
220
- stderr: string;
221
- completedAt: string;
222
- }, {
223
- startedAt: string;
224
- command: string;
225
- exitCode: number;
226
- passed: boolean;
227
- stdout: string;
228
- stderr: string;
229
- completedAt: string;
230
- }>, "many">;
125
+ }, z.core.$strip>>;
231
126
  verifyPrompt: z.ZodNullable<z.ZodObject<{
232
127
  passed: z.ZodBoolean;
233
128
  reason: z.ZodString;
234
129
  verifierAgentId: z.ZodNullable<z.ZodString>;
235
130
  startedAt: z.ZodString;
236
131
  completedAt: z.ZodString;
237
- }, "strip", z.ZodTypeAny, {
238
- reason: string;
239
- startedAt: string;
240
- passed: boolean;
241
- completedAt: string;
242
- verifierAgentId: string | null;
243
- }, {
244
- reason: string;
245
- startedAt: string;
246
- passed: boolean;
247
- completedAt: string;
248
- verifierAgentId: string | null;
249
- }>>;
250
- }, "strip", z.ZodTypeAny, {
251
- status: "running" | "failed" | "succeeded" | "stopped";
252
- verifierAgentId: string | null;
253
- index: number;
254
- workerAgentId: string | null;
255
- workerStartedAt: string;
256
- workerCompletedAt: string | null;
257
- workerOutcome: "completed" | "failed" | "canceled" | null;
258
- failureReason: string | null;
259
- verifyChecks: {
260
- startedAt: string;
261
- command: string;
262
- exitCode: number;
263
- passed: boolean;
264
- stdout: string;
265
- stderr: string;
266
- completedAt: string;
267
- }[];
268
- verifyPrompt: {
269
- reason: string;
270
- startedAt: string;
271
- passed: boolean;
272
- completedAt: string;
273
- verifierAgentId: string | null;
274
- } | null;
275
- }, {
276
- status: "running" | "failed" | "succeeded" | "stopped";
277
- verifierAgentId: string | null;
278
- index: number;
279
- workerAgentId: string | null;
280
- workerStartedAt: string;
281
- workerCompletedAt: string | null;
282
- workerOutcome: "completed" | "failed" | "canceled" | null;
283
- failureReason: string | null;
284
- verifyChecks: {
285
- startedAt: string;
286
- command: string;
287
- exitCode: number;
288
- passed: boolean;
289
- stdout: string;
290
- stderr: string;
291
- completedAt: string;
292
- }[];
293
- verifyPrompt: {
294
- reason: string;
295
- startedAt: string;
296
- passed: boolean;
297
- completedAt: string;
298
- verifierAgentId: string | null;
299
- } | null;
300
- }>, "many">;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>>;
301
134
  logs: z.ZodArray<z.ZodObject<{
302
135
  seq: z.ZodNumber;
303
136
  timestamp: z.ZodString;
304
137
  iteration: z.ZodNullable<z.ZodNumber>;
305
- source: z.ZodEnum<["loop", "worker", "verifier", "verify-check"]>;
306
- level: z.ZodEnum<["info", "error"]>;
138
+ source: z.ZodEnum<{
139
+ loop: "loop";
140
+ worker: "worker";
141
+ verifier: "verifier";
142
+ "verify-check": "verify-check";
143
+ }>;
144
+ level: z.ZodEnum<{
145
+ error: "error";
146
+ info: "info";
147
+ }>;
307
148
  text: z.ZodString;
308
- }, "strip", z.ZodTypeAny, {
309
- text: string;
310
- seq: number;
311
- timestamp: string;
312
- iteration: number | null;
313
- source: "loop" | "worker" | "verifier" | "verify-check";
314
- level: "error" | "info";
315
- }, {
316
- text: string;
317
- seq: number;
318
- timestamp: string;
319
- iteration: number | null;
320
- source: "loop" | "worker" | "verifier" | "verify-check";
321
- level: "error" | "info";
322
- }>, "many">;
149
+ }, z.core.$strip>>;
323
150
  nextLogSeq: z.ZodNumber;
324
151
  activeIteration: z.ZodNullable<z.ZodNumber>;
325
152
  activeWorkerAgentId: z.ZodNullable<z.ZodString>;
326
153
  activeVerifierAgentId: z.ZodNullable<z.ZodString>;
327
- }, "strip", z.ZodTypeAny, {
328
- name: string | null;
329
- status: "running" | "failed" | "succeeded" | "stopped";
330
- cwd: string;
331
- id: string;
332
- createdAt: string;
333
- updatedAt: string;
334
- provider: string;
335
- modeId: string | null;
336
- model: string | null;
337
- startedAt: string;
338
- prompt: string;
339
- completedAt: string | null;
340
- verifyChecks: string[];
341
- verifyPrompt: string | null;
342
- workerProvider: string | null;
343
- workerModel: string | null;
344
- verifierProvider: string | null;
345
- verifierModel: string | null;
346
- verifierModeId: string | null;
347
- archive: boolean;
348
- sleepMs: number;
349
- maxIterations: number | null;
350
- maxTimeMs: number | null;
351
- stopRequestedAt: string | null;
352
- iterations: {
353
- status: "running" | "failed" | "succeeded" | "stopped";
354
- verifierAgentId: string | null;
355
- index: number;
356
- workerAgentId: string | null;
357
- workerStartedAt: string;
358
- workerCompletedAt: string | null;
359
- workerOutcome: "completed" | "failed" | "canceled" | null;
360
- failureReason: string | null;
361
- verifyChecks: {
362
- startedAt: string;
363
- command: string;
364
- exitCode: number;
365
- passed: boolean;
366
- stdout: string;
367
- stderr: string;
368
- completedAt: string;
369
- }[];
370
- verifyPrompt: {
371
- reason: string;
372
- startedAt: string;
373
- passed: boolean;
374
- completedAt: string;
375
- verifierAgentId: string | null;
376
- } | null;
377
- }[];
378
- logs: {
379
- text: string;
380
- seq: number;
381
- timestamp: string;
382
- iteration: number | null;
383
- source: "loop" | "worker" | "verifier" | "verify-check";
384
- level: "error" | "info";
385
- }[];
386
- nextLogSeq: number;
387
- activeIteration: number | null;
388
- activeWorkerAgentId: string | null;
389
- activeVerifierAgentId: string | null;
390
- }, {
391
- name: string | null;
392
- status: "running" | "failed" | "succeeded" | "stopped";
393
- cwd: string;
394
- id: string;
395
- createdAt: string;
396
- updatedAt: string;
397
- provider: string;
398
- model: string | null;
399
- startedAt: string;
400
- prompt: string;
401
- completedAt: string | null;
402
- verifyChecks: string[];
403
- verifyPrompt: string | null;
404
- workerProvider: string | null;
405
- workerModel: string | null;
406
- verifierProvider: string | null;
407
- verifierModel: string | null;
408
- archive: boolean;
409
- sleepMs: number;
410
- maxIterations: number | null;
411
- maxTimeMs: number | null;
412
- stopRequestedAt: string | null;
413
- iterations: {
414
- status: "running" | "failed" | "succeeded" | "stopped";
415
- verifierAgentId: string | null;
416
- index: number;
417
- workerAgentId: string | null;
418
- workerStartedAt: string;
419
- workerCompletedAt: string | null;
420
- workerOutcome: "completed" | "failed" | "canceled" | null;
421
- failureReason: string | null;
422
- verifyChecks: {
423
- startedAt: string;
424
- command: string;
425
- exitCode: number;
426
- passed: boolean;
427
- stdout: string;
428
- stderr: string;
429
- completedAt: string;
430
- }[];
431
- verifyPrompt: {
432
- reason: string;
433
- startedAt: string;
434
- passed: boolean;
435
- completedAt: string;
436
- verifierAgentId: string | null;
437
- } | null;
438
- }[];
439
- logs: {
440
- text: string;
441
- seq: number;
442
- timestamp: string;
443
- iteration: number | null;
444
- source: "loop" | "worker" | "verifier" | "verify-check";
445
- level: "error" | "info";
446
- }[];
447
- nextLogSeq: number;
448
- activeIteration: number | null;
449
- activeWorkerAgentId: string | null;
450
- activeVerifierAgentId: string | null;
451
- modeId?: string | null | undefined;
452
- verifierModeId?: string | null | undefined;
453
- }>;
154
+ }, z.core.$strip>;
454
155
  export declare const LoopListItemSchema: z.ZodObject<{
455
156
  id: z.ZodString;
456
157
  name: z.ZodNullable<z.ZodString>;
457
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
158
+ status: z.ZodEnum<{
159
+ running: "running";
160
+ failed: "failed";
161
+ succeeded: "succeeded";
162
+ stopped: "stopped";
163
+ }>;
458
164
  cwd: z.ZodString;
459
165
  createdAt: z.ZodString;
460
166
  updatedAt: z.ZodString;
461
167
  activeIteration: z.ZodNullable<z.ZodNumber>;
462
- }, "strip", z.ZodTypeAny, {
463
- name: string | null;
464
- status: "running" | "failed" | "succeeded" | "stopped";
465
- cwd: string;
466
- id: string;
467
- createdAt: string;
468
- updatedAt: string;
469
- activeIteration: number | null;
470
- }, {
471
- name: string | null;
472
- status: "running" | "failed" | "succeeded" | "stopped";
473
- cwd: string;
474
- id: string;
475
- createdAt: string;
476
- updatedAt: string;
477
- activeIteration: number | null;
478
- }>;
168
+ }, z.core.$strip>;
479
169
  export declare const LoopRunRequestSchema: z.ZodObject<{
480
170
  type: z.ZodLiteral<"loop/run">;
481
171
  requestId: z.ZodString;
@@ -490,105 +180,33 @@ export declare const LoopRunRequestSchema: z.ZodObject<{
490
180
  verifierModel: z.ZodOptional<z.ZodString>;
491
181
  verifierModeId: z.ZodOptional<z.ZodString>;
492
182
  verifyPrompt: z.ZodOptional<z.ZodString>;
493
- verifyChecks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
183
+ verifyChecks: z.ZodOptional<z.ZodArray<z.ZodString>>;
494
184
  archive: z.ZodOptional<z.ZodBoolean>;
495
185
  name: z.ZodOptional<z.ZodString>;
496
186
  sleepMs: z.ZodOptional<z.ZodNumber>;
497
187
  maxIterations: z.ZodOptional<z.ZodNumber>;
498
188
  maxTimeMs: z.ZodOptional<z.ZodNumber>;
499
- }, "strip", z.ZodTypeAny, {
500
- type: "loop/run";
501
- cwd: string;
502
- requestId: string;
503
- prompt: string;
504
- name?: string | undefined;
505
- provider?: string | undefined;
506
- modeId?: string | undefined;
507
- model?: string | undefined;
508
- verifyChecks?: string[] | undefined;
509
- verifyPrompt?: string | undefined;
510
- workerProvider?: string | undefined;
511
- workerModel?: string | undefined;
512
- verifierProvider?: string | undefined;
513
- verifierModel?: string | undefined;
514
- verifierModeId?: string | undefined;
515
- archive?: boolean | undefined;
516
- sleepMs?: number | undefined;
517
- maxIterations?: number | undefined;
518
- maxTimeMs?: number | undefined;
519
- }, {
520
- type: "loop/run";
521
- cwd: string;
522
- requestId: string;
523
- prompt: string;
524
- name?: string | undefined;
525
- provider?: string | undefined;
526
- modeId?: string | undefined;
527
- model?: string | undefined;
528
- verifyChecks?: string[] | undefined;
529
- verifyPrompt?: string | undefined;
530
- workerProvider?: string | undefined;
531
- workerModel?: string | undefined;
532
- verifierProvider?: string | undefined;
533
- verifierModel?: string | undefined;
534
- verifierModeId?: string | undefined;
535
- archive?: boolean | undefined;
536
- sleepMs?: number | undefined;
537
- maxIterations?: number | undefined;
538
- maxTimeMs?: number | undefined;
539
- }>;
189
+ }, z.core.$strip>;
540
190
  export declare const LoopListRequestSchema: z.ZodObject<{
541
191
  type: z.ZodLiteral<"loop/list">;
542
192
  requestId: z.ZodString;
543
- }, "strip", z.ZodTypeAny, {
544
- type: "loop/list";
545
- requestId: string;
546
- }, {
547
- type: "loop/list";
548
- requestId: string;
549
- }>;
193
+ }, z.core.$strip>;
550
194
  export declare const LoopInspectRequestSchema: z.ZodObject<{
551
195
  type: z.ZodLiteral<"loop/inspect">;
552
196
  requestId: z.ZodString;
553
197
  id: z.ZodString;
554
- }, "strip", z.ZodTypeAny, {
555
- type: "loop/inspect";
556
- id: string;
557
- requestId: string;
558
- }, {
559
- type: "loop/inspect";
560
- id: string;
561
- requestId: string;
562
- }>;
198
+ }, z.core.$strip>;
563
199
  export declare const LoopLogsRequestSchema: z.ZodObject<{
564
200
  type: z.ZodLiteral<"loop/logs">;
565
201
  requestId: z.ZodString;
566
202
  id: z.ZodString;
567
203
  afterSeq: z.ZodOptional<z.ZodNumber>;
568
- }, "strip", z.ZodTypeAny, {
569
- type: "loop/logs";
570
- id: string;
571
- requestId: string;
572
- afterSeq?: number | undefined;
573
- }, {
574
- type: "loop/logs";
575
- id: string;
576
- requestId: string;
577
- afterSeq?: number | undefined;
578
- }>;
204
+ }, z.core.$strip>;
579
205
  export declare const LoopStopRequestSchema: z.ZodObject<{
580
206
  type: z.ZodLiteral<"loop/stop">;
581
207
  requestId: z.ZodString;
582
208
  id: z.ZodString;
583
- }, "strip", z.ZodTypeAny, {
584
- type: "loop/stop";
585
- id: string;
586
- requestId: string;
587
- }, {
588
- type: "loop/stop";
589
- id: string;
590
- requestId: string;
591
- }>;
209
+ }, z.core.$strip>;
592
210
  export declare const LoopRunResponseSchema: z.ZodObject<{
593
211
  type: z.ZodLiteral<"loop/run/response">;
594
212
  payload: z.ZodObject<{
@@ -607,12 +225,17 @@ export declare const LoopRunResponseSchema: z.ZodObject<{
607
225
  verifierModel: z.ZodNullable<z.ZodString>;
608
226
  verifierModeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
609
227
  verifyPrompt: z.ZodNullable<z.ZodString>;
610
- verifyChecks: z.ZodArray<z.ZodString, "many">;
228
+ verifyChecks: z.ZodArray<z.ZodString>;
611
229
  archive: z.ZodBoolean;
612
230
  sleepMs: z.ZodNumber;
613
231
  maxIterations: z.ZodNullable<z.ZodNumber>;
614
232
  maxTimeMs: z.ZodNullable<z.ZodNumber>;
615
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
233
+ status: z.ZodEnum<{
234
+ running: "running";
235
+ failed: "failed";
236
+ succeeded: "succeeded";
237
+ stopped: "stopped";
238
+ }>;
616
239
  createdAt: z.ZodString;
617
240
  updatedAt: z.ZodString;
618
241
  startedAt: z.ZodString;
@@ -624,8 +247,17 @@ export declare const LoopRunResponseSchema: z.ZodObject<{
624
247
  workerStartedAt: z.ZodString;
625
248
  workerCompletedAt: z.ZodNullable<z.ZodString>;
626
249
  verifierAgentId: z.ZodNullable<z.ZodString>;
627
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
628
- workerOutcome: z.ZodNullable<z.ZodEnum<["completed", "failed", "canceled"]>>;
250
+ status: z.ZodEnum<{
251
+ running: "running";
252
+ failed: "failed";
253
+ succeeded: "succeeded";
254
+ stopped: "stopped";
255
+ }>;
256
+ workerOutcome: z.ZodNullable<z.ZodEnum<{
257
+ completed: "completed";
258
+ failed: "failed";
259
+ canceled: "canceled";
260
+ }>>;
629
261
  failureReason: z.ZodNullable<z.ZodString>;
630
262
  verifyChecks: z.ZodArray<z.ZodObject<{
631
263
  command: z.ZodString;
@@ -635,523 +267,39 @@ export declare const LoopRunResponseSchema: z.ZodObject<{
635
267
  stderr: z.ZodString;
636
268
  startedAt: z.ZodString;
637
269
  completedAt: z.ZodString;
638
- }, "strip", z.ZodTypeAny, {
639
- startedAt: string;
640
- command: string;
641
- exitCode: number;
642
- passed: boolean;
643
- stdout: string;
644
- stderr: string;
645
- completedAt: string;
646
- }, {
647
- startedAt: string;
648
- command: string;
649
- exitCode: number;
650
- passed: boolean;
651
- stdout: string;
652
- stderr: string;
653
- completedAt: string;
654
- }>, "many">;
270
+ }, z.core.$strip>>;
655
271
  verifyPrompt: z.ZodNullable<z.ZodObject<{
656
272
  passed: z.ZodBoolean;
657
273
  reason: z.ZodString;
658
274
  verifierAgentId: z.ZodNullable<z.ZodString>;
659
275
  startedAt: z.ZodString;
660
276
  completedAt: z.ZodString;
661
- }, "strip", z.ZodTypeAny, {
662
- reason: string;
663
- startedAt: string;
664
- passed: boolean;
665
- completedAt: string;
666
- verifierAgentId: string | null;
667
- }, {
668
- reason: string;
669
- startedAt: string;
670
- passed: boolean;
671
- completedAt: string;
672
- verifierAgentId: string | null;
673
- }>>;
674
- }, "strip", z.ZodTypeAny, {
675
- status: "running" | "failed" | "succeeded" | "stopped";
676
- verifierAgentId: string | null;
677
- index: number;
678
- workerAgentId: string | null;
679
- workerStartedAt: string;
680
- workerCompletedAt: string | null;
681
- workerOutcome: "completed" | "failed" | "canceled" | null;
682
- failureReason: string | null;
683
- verifyChecks: {
684
- startedAt: string;
685
- command: string;
686
- exitCode: number;
687
- passed: boolean;
688
- stdout: string;
689
- stderr: string;
690
- completedAt: string;
691
- }[];
692
- verifyPrompt: {
693
- reason: string;
694
- startedAt: string;
695
- passed: boolean;
696
- completedAt: string;
697
- verifierAgentId: string | null;
698
- } | null;
699
- }, {
700
- status: "running" | "failed" | "succeeded" | "stopped";
701
- verifierAgentId: string | null;
702
- index: number;
703
- workerAgentId: string | null;
704
- workerStartedAt: string;
705
- workerCompletedAt: string | null;
706
- workerOutcome: "completed" | "failed" | "canceled" | null;
707
- failureReason: string | null;
708
- verifyChecks: {
709
- startedAt: string;
710
- command: string;
711
- exitCode: number;
712
- passed: boolean;
713
- stdout: string;
714
- stderr: string;
715
- completedAt: string;
716
- }[];
717
- verifyPrompt: {
718
- reason: string;
719
- startedAt: string;
720
- passed: boolean;
721
- completedAt: string;
722
- verifierAgentId: string | null;
723
- } | null;
724
- }>, "many">;
277
+ }, z.core.$strip>>;
278
+ }, z.core.$strip>>;
725
279
  logs: z.ZodArray<z.ZodObject<{
726
280
  seq: z.ZodNumber;
727
281
  timestamp: z.ZodString;
728
282
  iteration: z.ZodNullable<z.ZodNumber>;
729
- source: z.ZodEnum<["loop", "worker", "verifier", "verify-check"]>;
730
- level: z.ZodEnum<["info", "error"]>;
283
+ source: z.ZodEnum<{
284
+ loop: "loop";
285
+ worker: "worker";
286
+ verifier: "verifier";
287
+ "verify-check": "verify-check";
288
+ }>;
289
+ level: z.ZodEnum<{
290
+ error: "error";
291
+ info: "info";
292
+ }>;
731
293
  text: z.ZodString;
732
- }, "strip", z.ZodTypeAny, {
733
- text: string;
734
- seq: number;
735
- timestamp: string;
736
- iteration: number | null;
737
- source: "loop" | "worker" | "verifier" | "verify-check";
738
- level: "error" | "info";
739
- }, {
740
- text: string;
741
- seq: number;
742
- timestamp: string;
743
- iteration: number | null;
744
- source: "loop" | "worker" | "verifier" | "verify-check";
745
- level: "error" | "info";
746
- }>, "many">;
294
+ }, z.core.$strip>>;
747
295
  nextLogSeq: z.ZodNumber;
748
296
  activeIteration: z.ZodNullable<z.ZodNumber>;
749
297
  activeWorkerAgentId: z.ZodNullable<z.ZodString>;
750
298
  activeVerifierAgentId: z.ZodNullable<z.ZodString>;
751
- }, "strip", z.ZodTypeAny, {
752
- name: string | null;
753
- status: "running" | "failed" | "succeeded" | "stopped";
754
- cwd: string;
755
- id: string;
756
- createdAt: string;
757
- updatedAt: string;
758
- provider: string;
759
- modeId: string | null;
760
- model: string | null;
761
- startedAt: string;
762
- prompt: string;
763
- completedAt: string | null;
764
- verifyChecks: string[];
765
- verifyPrompt: string | null;
766
- workerProvider: string | null;
767
- workerModel: string | null;
768
- verifierProvider: string | null;
769
- verifierModel: string | null;
770
- verifierModeId: string | null;
771
- archive: boolean;
772
- sleepMs: number;
773
- maxIterations: number | null;
774
- maxTimeMs: number | null;
775
- stopRequestedAt: string | null;
776
- iterations: {
777
- status: "running" | "failed" | "succeeded" | "stopped";
778
- verifierAgentId: string | null;
779
- index: number;
780
- workerAgentId: string | null;
781
- workerStartedAt: string;
782
- workerCompletedAt: string | null;
783
- workerOutcome: "completed" | "failed" | "canceled" | null;
784
- failureReason: string | null;
785
- verifyChecks: {
786
- startedAt: string;
787
- command: string;
788
- exitCode: number;
789
- passed: boolean;
790
- stdout: string;
791
- stderr: string;
792
- completedAt: string;
793
- }[];
794
- verifyPrompt: {
795
- reason: string;
796
- startedAt: string;
797
- passed: boolean;
798
- completedAt: string;
799
- verifierAgentId: string | null;
800
- } | null;
801
- }[];
802
- logs: {
803
- text: string;
804
- seq: number;
805
- timestamp: string;
806
- iteration: number | null;
807
- source: "loop" | "worker" | "verifier" | "verify-check";
808
- level: "error" | "info";
809
- }[];
810
- nextLogSeq: number;
811
- activeIteration: number | null;
812
- activeWorkerAgentId: string | null;
813
- activeVerifierAgentId: string | null;
814
- }, {
815
- name: string | null;
816
- status: "running" | "failed" | "succeeded" | "stopped";
817
- cwd: string;
818
- id: string;
819
- createdAt: string;
820
- updatedAt: string;
821
- provider: string;
822
- model: string | null;
823
- startedAt: string;
824
- prompt: string;
825
- completedAt: string | null;
826
- verifyChecks: string[];
827
- verifyPrompt: string | null;
828
- workerProvider: string | null;
829
- workerModel: string | null;
830
- verifierProvider: string | null;
831
- verifierModel: string | null;
832
- archive: boolean;
833
- sleepMs: number;
834
- maxIterations: number | null;
835
- maxTimeMs: number | null;
836
- stopRequestedAt: string | null;
837
- iterations: {
838
- status: "running" | "failed" | "succeeded" | "stopped";
839
- verifierAgentId: string | null;
840
- index: number;
841
- workerAgentId: string | null;
842
- workerStartedAt: string;
843
- workerCompletedAt: string | null;
844
- workerOutcome: "completed" | "failed" | "canceled" | null;
845
- failureReason: string | null;
846
- verifyChecks: {
847
- startedAt: string;
848
- command: string;
849
- exitCode: number;
850
- passed: boolean;
851
- stdout: string;
852
- stderr: string;
853
- completedAt: string;
854
- }[];
855
- verifyPrompt: {
856
- reason: string;
857
- startedAt: string;
858
- passed: boolean;
859
- completedAt: string;
860
- verifierAgentId: string | null;
861
- } | null;
862
- }[];
863
- logs: {
864
- text: string;
865
- seq: number;
866
- timestamp: string;
867
- iteration: number | null;
868
- source: "loop" | "worker" | "verifier" | "verify-check";
869
- level: "error" | "info";
870
- }[];
871
- nextLogSeq: number;
872
- activeIteration: number | null;
873
- activeWorkerAgentId: string | null;
874
- activeVerifierAgentId: string | null;
875
- modeId?: string | null | undefined;
876
- verifierModeId?: string | null | undefined;
877
- }>>;
299
+ }, z.core.$strip>>;
878
300
  error: z.ZodNullable<z.ZodString>;
879
- }, "strip", z.ZodTypeAny, {
880
- error: string | null;
881
- requestId: string;
882
- loop: {
883
- name: string | null;
884
- status: "running" | "failed" | "succeeded" | "stopped";
885
- cwd: string;
886
- id: string;
887
- createdAt: string;
888
- updatedAt: string;
889
- provider: string;
890
- modeId: string | null;
891
- model: string | null;
892
- startedAt: string;
893
- prompt: string;
894
- completedAt: string | null;
895
- verifyChecks: string[];
896
- verifyPrompt: string | null;
897
- workerProvider: string | null;
898
- workerModel: string | null;
899
- verifierProvider: string | null;
900
- verifierModel: string | null;
901
- verifierModeId: string | null;
902
- archive: boolean;
903
- sleepMs: number;
904
- maxIterations: number | null;
905
- maxTimeMs: number | null;
906
- stopRequestedAt: string | null;
907
- iterations: {
908
- status: "running" | "failed" | "succeeded" | "stopped";
909
- verifierAgentId: string | null;
910
- index: number;
911
- workerAgentId: string | null;
912
- workerStartedAt: string;
913
- workerCompletedAt: string | null;
914
- workerOutcome: "completed" | "failed" | "canceled" | null;
915
- failureReason: string | null;
916
- verifyChecks: {
917
- startedAt: string;
918
- command: string;
919
- exitCode: number;
920
- passed: boolean;
921
- stdout: string;
922
- stderr: string;
923
- completedAt: string;
924
- }[];
925
- verifyPrompt: {
926
- reason: string;
927
- startedAt: string;
928
- passed: boolean;
929
- completedAt: string;
930
- verifierAgentId: string | null;
931
- } | null;
932
- }[];
933
- logs: {
934
- text: string;
935
- seq: number;
936
- timestamp: string;
937
- iteration: number | null;
938
- source: "loop" | "worker" | "verifier" | "verify-check";
939
- level: "error" | "info";
940
- }[];
941
- nextLogSeq: number;
942
- activeIteration: number | null;
943
- activeWorkerAgentId: string | null;
944
- activeVerifierAgentId: string | null;
945
- } | null;
946
- }, {
947
- error: string | null;
948
- requestId: string;
949
- loop: {
950
- name: string | null;
951
- status: "running" | "failed" | "succeeded" | "stopped";
952
- cwd: string;
953
- id: string;
954
- createdAt: string;
955
- updatedAt: string;
956
- provider: string;
957
- model: string | null;
958
- startedAt: string;
959
- prompt: string;
960
- completedAt: string | null;
961
- verifyChecks: string[];
962
- verifyPrompt: string | null;
963
- workerProvider: string | null;
964
- workerModel: string | null;
965
- verifierProvider: string | null;
966
- verifierModel: string | null;
967
- archive: boolean;
968
- sleepMs: number;
969
- maxIterations: number | null;
970
- maxTimeMs: number | null;
971
- stopRequestedAt: string | null;
972
- iterations: {
973
- status: "running" | "failed" | "succeeded" | "stopped";
974
- verifierAgentId: string | null;
975
- index: number;
976
- workerAgentId: string | null;
977
- workerStartedAt: string;
978
- workerCompletedAt: string | null;
979
- workerOutcome: "completed" | "failed" | "canceled" | null;
980
- failureReason: string | null;
981
- verifyChecks: {
982
- startedAt: string;
983
- command: string;
984
- exitCode: number;
985
- passed: boolean;
986
- stdout: string;
987
- stderr: string;
988
- completedAt: string;
989
- }[];
990
- verifyPrompt: {
991
- reason: string;
992
- startedAt: string;
993
- passed: boolean;
994
- completedAt: string;
995
- verifierAgentId: string | null;
996
- } | null;
997
- }[];
998
- logs: {
999
- text: string;
1000
- seq: number;
1001
- timestamp: string;
1002
- iteration: number | null;
1003
- source: "loop" | "worker" | "verifier" | "verify-check";
1004
- level: "error" | "info";
1005
- }[];
1006
- nextLogSeq: number;
1007
- activeIteration: number | null;
1008
- activeWorkerAgentId: string | null;
1009
- activeVerifierAgentId: string | null;
1010
- modeId?: string | null | undefined;
1011
- verifierModeId?: string | null | undefined;
1012
- } | null;
1013
- }>;
1014
- }, "strip", z.ZodTypeAny, {
1015
- type: "loop/run/response";
1016
- payload: {
1017
- error: string | null;
1018
- requestId: string;
1019
- loop: {
1020
- name: string | null;
1021
- status: "running" | "failed" | "succeeded" | "stopped";
1022
- cwd: string;
1023
- id: string;
1024
- createdAt: string;
1025
- updatedAt: string;
1026
- provider: string;
1027
- modeId: string | null;
1028
- model: string | null;
1029
- startedAt: string;
1030
- prompt: string;
1031
- completedAt: string | null;
1032
- verifyChecks: string[];
1033
- verifyPrompt: string | null;
1034
- workerProvider: string | null;
1035
- workerModel: string | null;
1036
- verifierProvider: string | null;
1037
- verifierModel: string | null;
1038
- verifierModeId: string | null;
1039
- archive: boolean;
1040
- sleepMs: number;
1041
- maxIterations: number | null;
1042
- maxTimeMs: number | null;
1043
- stopRequestedAt: string | null;
1044
- iterations: {
1045
- status: "running" | "failed" | "succeeded" | "stopped";
1046
- verifierAgentId: string | null;
1047
- index: number;
1048
- workerAgentId: string | null;
1049
- workerStartedAt: string;
1050
- workerCompletedAt: string | null;
1051
- workerOutcome: "completed" | "failed" | "canceled" | null;
1052
- failureReason: string | null;
1053
- verifyChecks: {
1054
- startedAt: string;
1055
- command: string;
1056
- exitCode: number;
1057
- passed: boolean;
1058
- stdout: string;
1059
- stderr: string;
1060
- completedAt: string;
1061
- }[];
1062
- verifyPrompt: {
1063
- reason: string;
1064
- startedAt: string;
1065
- passed: boolean;
1066
- completedAt: string;
1067
- verifierAgentId: string | null;
1068
- } | null;
1069
- }[];
1070
- logs: {
1071
- text: string;
1072
- seq: number;
1073
- timestamp: string;
1074
- iteration: number | null;
1075
- source: "loop" | "worker" | "verifier" | "verify-check";
1076
- level: "error" | "info";
1077
- }[];
1078
- nextLogSeq: number;
1079
- activeIteration: number | null;
1080
- activeWorkerAgentId: string | null;
1081
- activeVerifierAgentId: string | null;
1082
- } | null;
1083
- };
1084
- }, {
1085
- type: "loop/run/response";
1086
- payload: {
1087
- error: string | null;
1088
- requestId: string;
1089
- loop: {
1090
- name: string | null;
1091
- status: "running" | "failed" | "succeeded" | "stopped";
1092
- cwd: string;
1093
- id: string;
1094
- createdAt: string;
1095
- updatedAt: string;
1096
- provider: string;
1097
- model: string | null;
1098
- startedAt: string;
1099
- prompt: string;
1100
- completedAt: string | null;
1101
- verifyChecks: string[];
1102
- verifyPrompt: string | null;
1103
- workerProvider: string | null;
1104
- workerModel: string | null;
1105
- verifierProvider: string | null;
1106
- verifierModel: string | null;
1107
- archive: boolean;
1108
- sleepMs: number;
1109
- maxIterations: number | null;
1110
- maxTimeMs: number | null;
1111
- stopRequestedAt: string | null;
1112
- iterations: {
1113
- status: "running" | "failed" | "succeeded" | "stopped";
1114
- verifierAgentId: string | null;
1115
- index: number;
1116
- workerAgentId: string | null;
1117
- workerStartedAt: string;
1118
- workerCompletedAt: string | null;
1119
- workerOutcome: "completed" | "failed" | "canceled" | null;
1120
- failureReason: string | null;
1121
- verifyChecks: {
1122
- startedAt: string;
1123
- command: string;
1124
- exitCode: number;
1125
- passed: boolean;
1126
- stdout: string;
1127
- stderr: string;
1128
- completedAt: string;
1129
- }[];
1130
- verifyPrompt: {
1131
- reason: string;
1132
- startedAt: string;
1133
- passed: boolean;
1134
- completedAt: string;
1135
- verifierAgentId: string | null;
1136
- } | null;
1137
- }[];
1138
- logs: {
1139
- text: string;
1140
- seq: number;
1141
- timestamp: string;
1142
- iteration: number | null;
1143
- source: "loop" | "worker" | "verifier" | "verify-check";
1144
- level: "error" | "info";
1145
- }[];
1146
- nextLogSeq: number;
1147
- activeIteration: number | null;
1148
- activeWorkerAgentId: string | null;
1149
- activeVerifierAgentId: string | null;
1150
- modeId?: string | null | undefined;
1151
- verifierModeId?: string | null | undefined;
1152
- } | null;
1153
- };
1154
- }>;
301
+ }, z.core.$strip>;
302
+ }, z.core.$strip>;
1155
303
  export declare const LoopListResponseSchema: z.ZodObject<{
1156
304
  type: z.ZodLiteral<"loop/list/response">;
1157
305
  payload: z.ZodObject<{
@@ -1159,85 +307,20 @@ export declare const LoopListResponseSchema: z.ZodObject<{
1159
307
  loops: z.ZodArray<z.ZodObject<{
1160
308
  id: z.ZodString;
1161
309
  name: z.ZodNullable<z.ZodString>;
1162
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
310
+ status: z.ZodEnum<{
311
+ running: "running";
312
+ failed: "failed";
313
+ succeeded: "succeeded";
314
+ stopped: "stopped";
315
+ }>;
1163
316
  cwd: z.ZodString;
1164
317
  createdAt: z.ZodString;
1165
318
  updatedAt: z.ZodString;
1166
319
  activeIteration: z.ZodNullable<z.ZodNumber>;
1167
- }, "strip", z.ZodTypeAny, {
1168
- name: string | null;
1169
- status: "running" | "failed" | "succeeded" | "stopped";
1170
- cwd: string;
1171
- id: string;
1172
- createdAt: string;
1173
- updatedAt: string;
1174
- activeIteration: number | null;
1175
- }, {
1176
- name: string | null;
1177
- status: "running" | "failed" | "succeeded" | "stopped";
1178
- cwd: string;
1179
- id: string;
1180
- createdAt: string;
1181
- updatedAt: string;
1182
- activeIteration: number | null;
1183
- }>, "many">;
320
+ }, z.core.$strip>>;
1184
321
  error: z.ZodNullable<z.ZodString>;
1185
- }, "strip", z.ZodTypeAny, {
1186
- error: string | null;
1187
- requestId: string;
1188
- loops: {
1189
- name: string | null;
1190
- status: "running" | "failed" | "succeeded" | "stopped";
1191
- cwd: string;
1192
- id: string;
1193
- createdAt: string;
1194
- updatedAt: string;
1195
- activeIteration: number | null;
1196
- }[];
1197
- }, {
1198
- error: string | null;
1199
- requestId: string;
1200
- loops: {
1201
- name: string | null;
1202
- status: "running" | "failed" | "succeeded" | "stopped";
1203
- cwd: string;
1204
- id: string;
1205
- createdAt: string;
1206
- updatedAt: string;
1207
- activeIteration: number | null;
1208
- }[];
1209
- }>;
1210
- }, "strip", z.ZodTypeAny, {
1211
- type: "loop/list/response";
1212
- payload: {
1213
- error: string | null;
1214
- requestId: string;
1215
- loops: {
1216
- name: string | null;
1217
- status: "running" | "failed" | "succeeded" | "stopped";
1218
- cwd: string;
1219
- id: string;
1220
- createdAt: string;
1221
- updatedAt: string;
1222
- activeIteration: number | null;
1223
- }[];
1224
- };
1225
- }, {
1226
- type: "loop/list/response";
1227
- payload: {
1228
- error: string | null;
1229
- requestId: string;
1230
- loops: {
1231
- name: string | null;
1232
- status: "running" | "failed" | "succeeded" | "stopped";
1233
- cwd: string;
1234
- id: string;
1235
- createdAt: string;
1236
- updatedAt: string;
1237
- activeIteration: number | null;
1238
- }[];
1239
- };
1240
- }>;
322
+ }, z.core.$strip>;
323
+ }, z.core.$strip>;
1241
324
  export declare const LoopInspectResponseSchema: z.ZodObject<{
1242
325
  type: z.ZodLiteral<"loop/inspect/response">;
1243
326
  payload: z.ZodObject<{
@@ -1256,12 +339,17 @@ export declare const LoopInspectResponseSchema: z.ZodObject<{
1256
339
  verifierModel: z.ZodNullable<z.ZodString>;
1257
340
  verifierModeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1258
341
  verifyPrompt: z.ZodNullable<z.ZodString>;
1259
- verifyChecks: z.ZodArray<z.ZodString, "many">;
342
+ verifyChecks: z.ZodArray<z.ZodString>;
1260
343
  archive: z.ZodBoolean;
1261
344
  sleepMs: z.ZodNumber;
1262
345
  maxIterations: z.ZodNullable<z.ZodNumber>;
1263
346
  maxTimeMs: z.ZodNullable<z.ZodNumber>;
1264
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
347
+ status: z.ZodEnum<{
348
+ running: "running";
349
+ failed: "failed";
350
+ succeeded: "succeeded";
351
+ stopped: "stopped";
352
+ }>;
1265
353
  createdAt: z.ZodString;
1266
354
  updatedAt: z.ZodString;
1267
355
  startedAt: z.ZodString;
@@ -1273,8 +361,17 @@ export declare const LoopInspectResponseSchema: z.ZodObject<{
1273
361
  workerStartedAt: z.ZodString;
1274
362
  workerCompletedAt: z.ZodNullable<z.ZodString>;
1275
363
  verifierAgentId: z.ZodNullable<z.ZodString>;
1276
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
1277
- workerOutcome: z.ZodNullable<z.ZodEnum<["completed", "failed", "canceled"]>>;
364
+ status: z.ZodEnum<{
365
+ running: "running";
366
+ failed: "failed";
367
+ succeeded: "succeeded";
368
+ stopped: "stopped";
369
+ }>;
370
+ workerOutcome: z.ZodNullable<z.ZodEnum<{
371
+ completed: "completed";
372
+ failed: "failed";
373
+ canceled: "canceled";
374
+ }>>;
1278
375
  failureReason: z.ZodNullable<z.ZodString>;
1279
376
  verifyChecks: z.ZodArray<z.ZodObject<{
1280
377
  command: z.ZodString;
@@ -1284,523 +381,39 @@ export declare const LoopInspectResponseSchema: z.ZodObject<{
1284
381
  stderr: z.ZodString;
1285
382
  startedAt: z.ZodString;
1286
383
  completedAt: z.ZodString;
1287
- }, "strip", z.ZodTypeAny, {
1288
- startedAt: string;
1289
- command: string;
1290
- exitCode: number;
1291
- passed: boolean;
1292
- stdout: string;
1293
- stderr: string;
1294
- completedAt: string;
1295
- }, {
1296
- startedAt: string;
1297
- command: string;
1298
- exitCode: number;
1299
- passed: boolean;
1300
- stdout: string;
1301
- stderr: string;
1302
- completedAt: string;
1303
- }>, "many">;
384
+ }, z.core.$strip>>;
1304
385
  verifyPrompt: z.ZodNullable<z.ZodObject<{
1305
386
  passed: z.ZodBoolean;
1306
387
  reason: z.ZodString;
1307
388
  verifierAgentId: z.ZodNullable<z.ZodString>;
1308
389
  startedAt: z.ZodString;
1309
390
  completedAt: z.ZodString;
1310
- }, "strip", z.ZodTypeAny, {
1311
- reason: string;
1312
- startedAt: string;
1313
- passed: boolean;
1314
- completedAt: string;
1315
- verifierAgentId: string | null;
1316
- }, {
1317
- reason: string;
1318
- startedAt: string;
1319
- passed: boolean;
1320
- completedAt: string;
1321
- verifierAgentId: string | null;
1322
- }>>;
1323
- }, "strip", z.ZodTypeAny, {
1324
- status: "running" | "failed" | "succeeded" | "stopped";
1325
- verifierAgentId: string | null;
1326
- index: number;
1327
- workerAgentId: string | null;
1328
- workerStartedAt: string;
1329
- workerCompletedAt: string | null;
1330
- workerOutcome: "completed" | "failed" | "canceled" | null;
1331
- failureReason: string | null;
1332
- verifyChecks: {
1333
- startedAt: string;
1334
- command: string;
1335
- exitCode: number;
1336
- passed: boolean;
1337
- stdout: string;
1338
- stderr: string;
1339
- completedAt: string;
1340
- }[];
1341
- verifyPrompt: {
1342
- reason: string;
1343
- startedAt: string;
1344
- passed: boolean;
1345
- completedAt: string;
1346
- verifierAgentId: string | null;
1347
- } | null;
1348
- }, {
1349
- status: "running" | "failed" | "succeeded" | "stopped";
1350
- verifierAgentId: string | null;
1351
- index: number;
1352
- workerAgentId: string | null;
1353
- workerStartedAt: string;
1354
- workerCompletedAt: string | null;
1355
- workerOutcome: "completed" | "failed" | "canceled" | null;
1356
- failureReason: string | null;
1357
- verifyChecks: {
1358
- startedAt: string;
1359
- command: string;
1360
- exitCode: number;
1361
- passed: boolean;
1362
- stdout: string;
1363
- stderr: string;
1364
- completedAt: string;
1365
- }[];
1366
- verifyPrompt: {
1367
- reason: string;
1368
- startedAt: string;
1369
- passed: boolean;
1370
- completedAt: string;
1371
- verifierAgentId: string | null;
1372
- } | null;
1373
- }>, "many">;
391
+ }, z.core.$strip>>;
392
+ }, z.core.$strip>>;
1374
393
  logs: z.ZodArray<z.ZodObject<{
1375
394
  seq: z.ZodNumber;
1376
395
  timestamp: z.ZodString;
1377
396
  iteration: z.ZodNullable<z.ZodNumber>;
1378
- source: z.ZodEnum<["loop", "worker", "verifier", "verify-check"]>;
1379
- level: z.ZodEnum<["info", "error"]>;
397
+ source: z.ZodEnum<{
398
+ loop: "loop";
399
+ worker: "worker";
400
+ verifier: "verifier";
401
+ "verify-check": "verify-check";
402
+ }>;
403
+ level: z.ZodEnum<{
404
+ error: "error";
405
+ info: "info";
406
+ }>;
1380
407
  text: z.ZodString;
1381
- }, "strip", z.ZodTypeAny, {
1382
- text: string;
1383
- seq: number;
1384
- timestamp: string;
1385
- iteration: number | null;
1386
- source: "loop" | "worker" | "verifier" | "verify-check";
1387
- level: "error" | "info";
1388
- }, {
1389
- text: string;
1390
- seq: number;
1391
- timestamp: string;
1392
- iteration: number | null;
1393
- source: "loop" | "worker" | "verifier" | "verify-check";
1394
- level: "error" | "info";
1395
- }>, "many">;
408
+ }, z.core.$strip>>;
1396
409
  nextLogSeq: z.ZodNumber;
1397
410
  activeIteration: z.ZodNullable<z.ZodNumber>;
1398
411
  activeWorkerAgentId: z.ZodNullable<z.ZodString>;
1399
412
  activeVerifierAgentId: z.ZodNullable<z.ZodString>;
1400
- }, "strip", z.ZodTypeAny, {
1401
- name: string | null;
1402
- status: "running" | "failed" | "succeeded" | "stopped";
1403
- cwd: string;
1404
- id: string;
1405
- createdAt: string;
1406
- updatedAt: string;
1407
- provider: string;
1408
- modeId: string | null;
1409
- model: string | null;
1410
- startedAt: string;
1411
- prompt: string;
1412
- completedAt: string | null;
1413
- verifyChecks: string[];
1414
- verifyPrompt: string | null;
1415
- workerProvider: string | null;
1416
- workerModel: string | null;
1417
- verifierProvider: string | null;
1418
- verifierModel: string | null;
1419
- verifierModeId: string | null;
1420
- archive: boolean;
1421
- sleepMs: number;
1422
- maxIterations: number | null;
1423
- maxTimeMs: number | null;
1424
- stopRequestedAt: string | null;
1425
- iterations: {
1426
- status: "running" | "failed" | "succeeded" | "stopped";
1427
- verifierAgentId: string | null;
1428
- index: number;
1429
- workerAgentId: string | null;
1430
- workerStartedAt: string;
1431
- workerCompletedAt: string | null;
1432
- workerOutcome: "completed" | "failed" | "canceled" | null;
1433
- failureReason: string | null;
1434
- verifyChecks: {
1435
- startedAt: string;
1436
- command: string;
1437
- exitCode: number;
1438
- passed: boolean;
1439
- stdout: string;
1440
- stderr: string;
1441
- completedAt: string;
1442
- }[];
1443
- verifyPrompt: {
1444
- reason: string;
1445
- startedAt: string;
1446
- passed: boolean;
1447
- completedAt: string;
1448
- verifierAgentId: string | null;
1449
- } | null;
1450
- }[];
1451
- logs: {
1452
- text: string;
1453
- seq: number;
1454
- timestamp: string;
1455
- iteration: number | null;
1456
- source: "loop" | "worker" | "verifier" | "verify-check";
1457
- level: "error" | "info";
1458
- }[];
1459
- nextLogSeq: number;
1460
- activeIteration: number | null;
1461
- activeWorkerAgentId: string | null;
1462
- activeVerifierAgentId: string | null;
1463
- }, {
1464
- name: string | null;
1465
- status: "running" | "failed" | "succeeded" | "stopped";
1466
- cwd: string;
1467
- id: string;
1468
- createdAt: string;
1469
- updatedAt: string;
1470
- provider: string;
1471
- model: string | null;
1472
- startedAt: string;
1473
- prompt: string;
1474
- completedAt: string | null;
1475
- verifyChecks: string[];
1476
- verifyPrompt: string | null;
1477
- workerProvider: string | null;
1478
- workerModel: string | null;
1479
- verifierProvider: string | null;
1480
- verifierModel: string | null;
1481
- archive: boolean;
1482
- sleepMs: number;
1483
- maxIterations: number | null;
1484
- maxTimeMs: number | null;
1485
- stopRequestedAt: string | null;
1486
- iterations: {
1487
- status: "running" | "failed" | "succeeded" | "stopped";
1488
- verifierAgentId: string | null;
1489
- index: number;
1490
- workerAgentId: string | null;
1491
- workerStartedAt: string;
1492
- workerCompletedAt: string | null;
1493
- workerOutcome: "completed" | "failed" | "canceled" | null;
1494
- failureReason: string | null;
1495
- verifyChecks: {
1496
- startedAt: string;
1497
- command: string;
1498
- exitCode: number;
1499
- passed: boolean;
1500
- stdout: string;
1501
- stderr: string;
1502
- completedAt: string;
1503
- }[];
1504
- verifyPrompt: {
1505
- reason: string;
1506
- startedAt: string;
1507
- passed: boolean;
1508
- completedAt: string;
1509
- verifierAgentId: string | null;
1510
- } | null;
1511
- }[];
1512
- logs: {
1513
- text: string;
1514
- seq: number;
1515
- timestamp: string;
1516
- iteration: number | null;
1517
- source: "loop" | "worker" | "verifier" | "verify-check";
1518
- level: "error" | "info";
1519
- }[];
1520
- nextLogSeq: number;
1521
- activeIteration: number | null;
1522
- activeWorkerAgentId: string | null;
1523
- activeVerifierAgentId: string | null;
1524
- modeId?: string | null | undefined;
1525
- verifierModeId?: string | null | undefined;
1526
- }>>;
413
+ }, z.core.$strip>>;
1527
414
  error: z.ZodNullable<z.ZodString>;
1528
- }, "strip", z.ZodTypeAny, {
1529
- error: string | null;
1530
- requestId: string;
1531
- loop: {
1532
- name: string | null;
1533
- status: "running" | "failed" | "succeeded" | "stopped";
1534
- cwd: string;
1535
- id: string;
1536
- createdAt: string;
1537
- updatedAt: string;
1538
- provider: string;
1539
- modeId: string | null;
1540
- model: string | null;
1541
- startedAt: string;
1542
- prompt: string;
1543
- completedAt: string | null;
1544
- verifyChecks: string[];
1545
- verifyPrompt: string | null;
1546
- workerProvider: string | null;
1547
- workerModel: string | null;
1548
- verifierProvider: string | null;
1549
- verifierModel: string | null;
1550
- verifierModeId: string | null;
1551
- archive: boolean;
1552
- sleepMs: number;
1553
- maxIterations: number | null;
1554
- maxTimeMs: number | null;
1555
- stopRequestedAt: string | null;
1556
- iterations: {
1557
- status: "running" | "failed" | "succeeded" | "stopped";
1558
- verifierAgentId: string | null;
1559
- index: number;
1560
- workerAgentId: string | null;
1561
- workerStartedAt: string;
1562
- workerCompletedAt: string | null;
1563
- workerOutcome: "completed" | "failed" | "canceled" | null;
1564
- failureReason: string | null;
1565
- verifyChecks: {
1566
- startedAt: string;
1567
- command: string;
1568
- exitCode: number;
1569
- passed: boolean;
1570
- stdout: string;
1571
- stderr: string;
1572
- completedAt: string;
1573
- }[];
1574
- verifyPrompt: {
1575
- reason: string;
1576
- startedAt: string;
1577
- passed: boolean;
1578
- completedAt: string;
1579
- verifierAgentId: string | null;
1580
- } | null;
1581
- }[];
1582
- logs: {
1583
- text: string;
1584
- seq: number;
1585
- timestamp: string;
1586
- iteration: number | null;
1587
- source: "loop" | "worker" | "verifier" | "verify-check";
1588
- level: "error" | "info";
1589
- }[];
1590
- nextLogSeq: number;
1591
- activeIteration: number | null;
1592
- activeWorkerAgentId: string | null;
1593
- activeVerifierAgentId: string | null;
1594
- } | null;
1595
- }, {
1596
- error: string | null;
1597
- requestId: string;
1598
- loop: {
1599
- name: string | null;
1600
- status: "running" | "failed" | "succeeded" | "stopped";
1601
- cwd: string;
1602
- id: string;
1603
- createdAt: string;
1604
- updatedAt: string;
1605
- provider: string;
1606
- model: string | null;
1607
- startedAt: string;
1608
- prompt: string;
1609
- completedAt: string | null;
1610
- verifyChecks: string[];
1611
- verifyPrompt: string | null;
1612
- workerProvider: string | null;
1613
- workerModel: string | null;
1614
- verifierProvider: string | null;
1615
- verifierModel: string | null;
1616
- archive: boolean;
1617
- sleepMs: number;
1618
- maxIterations: number | null;
1619
- maxTimeMs: number | null;
1620
- stopRequestedAt: string | null;
1621
- iterations: {
1622
- status: "running" | "failed" | "succeeded" | "stopped";
1623
- verifierAgentId: string | null;
1624
- index: number;
1625
- workerAgentId: string | null;
1626
- workerStartedAt: string;
1627
- workerCompletedAt: string | null;
1628
- workerOutcome: "completed" | "failed" | "canceled" | null;
1629
- failureReason: string | null;
1630
- verifyChecks: {
1631
- startedAt: string;
1632
- command: string;
1633
- exitCode: number;
1634
- passed: boolean;
1635
- stdout: string;
1636
- stderr: string;
1637
- completedAt: string;
1638
- }[];
1639
- verifyPrompt: {
1640
- reason: string;
1641
- startedAt: string;
1642
- passed: boolean;
1643
- completedAt: string;
1644
- verifierAgentId: string | null;
1645
- } | null;
1646
- }[];
1647
- logs: {
1648
- text: string;
1649
- seq: number;
1650
- timestamp: string;
1651
- iteration: number | null;
1652
- source: "loop" | "worker" | "verifier" | "verify-check";
1653
- level: "error" | "info";
1654
- }[];
1655
- nextLogSeq: number;
1656
- activeIteration: number | null;
1657
- activeWorkerAgentId: string | null;
1658
- activeVerifierAgentId: string | null;
1659
- modeId?: string | null | undefined;
1660
- verifierModeId?: string | null | undefined;
1661
- } | null;
1662
- }>;
1663
- }, "strip", z.ZodTypeAny, {
1664
- type: "loop/inspect/response";
1665
- payload: {
1666
- error: string | null;
1667
- requestId: string;
1668
- loop: {
1669
- name: string | null;
1670
- status: "running" | "failed" | "succeeded" | "stopped";
1671
- cwd: string;
1672
- id: string;
1673
- createdAt: string;
1674
- updatedAt: string;
1675
- provider: string;
1676
- modeId: string | null;
1677
- model: string | null;
1678
- startedAt: string;
1679
- prompt: string;
1680
- completedAt: string | null;
1681
- verifyChecks: string[];
1682
- verifyPrompt: string | null;
1683
- workerProvider: string | null;
1684
- workerModel: string | null;
1685
- verifierProvider: string | null;
1686
- verifierModel: string | null;
1687
- verifierModeId: string | null;
1688
- archive: boolean;
1689
- sleepMs: number;
1690
- maxIterations: number | null;
1691
- maxTimeMs: number | null;
1692
- stopRequestedAt: string | null;
1693
- iterations: {
1694
- status: "running" | "failed" | "succeeded" | "stopped";
1695
- verifierAgentId: string | null;
1696
- index: number;
1697
- workerAgentId: string | null;
1698
- workerStartedAt: string;
1699
- workerCompletedAt: string | null;
1700
- workerOutcome: "completed" | "failed" | "canceled" | null;
1701
- failureReason: string | null;
1702
- verifyChecks: {
1703
- startedAt: string;
1704
- command: string;
1705
- exitCode: number;
1706
- passed: boolean;
1707
- stdout: string;
1708
- stderr: string;
1709
- completedAt: string;
1710
- }[];
1711
- verifyPrompt: {
1712
- reason: string;
1713
- startedAt: string;
1714
- passed: boolean;
1715
- completedAt: string;
1716
- verifierAgentId: string | null;
1717
- } | null;
1718
- }[];
1719
- logs: {
1720
- text: string;
1721
- seq: number;
1722
- timestamp: string;
1723
- iteration: number | null;
1724
- source: "loop" | "worker" | "verifier" | "verify-check";
1725
- level: "error" | "info";
1726
- }[];
1727
- nextLogSeq: number;
1728
- activeIteration: number | null;
1729
- activeWorkerAgentId: string | null;
1730
- activeVerifierAgentId: string | null;
1731
- } | null;
1732
- };
1733
- }, {
1734
- type: "loop/inspect/response";
1735
- payload: {
1736
- error: string | null;
1737
- requestId: string;
1738
- loop: {
1739
- name: string | null;
1740
- status: "running" | "failed" | "succeeded" | "stopped";
1741
- cwd: string;
1742
- id: string;
1743
- createdAt: string;
1744
- updatedAt: string;
1745
- provider: string;
1746
- model: string | null;
1747
- startedAt: string;
1748
- prompt: string;
1749
- completedAt: string | null;
1750
- verifyChecks: string[];
1751
- verifyPrompt: string | null;
1752
- workerProvider: string | null;
1753
- workerModel: string | null;
1754
- verifierProvider: string | null;
1755
- verifierModel: string | null;
1756
- archive: boolean;
1757
- sleepMs: number;
1758
- maxIterations: number | null;
1759
- maxTimeMs: number | null;
1760
- stopRequestedAt: string | null;
1761
- iterations: {
1762
- status: "running" | "failed" | "succeeded" | "stopped";
1763
- verifierAgentId: string | null;
1764
- index: number;
1765
- workerAgentId: string | null;
1766
- workerStartedAt: string;
1767
- workerCompletedAt: string | null;
1768
- workerOutcome: "completed" | "failed" | "canceled" | null;
1769
- failureReason: string | null;
1770
- verifyChecks: {
1771
- startedAt: string;
1772
- command: string;
1773
- exitCode: number;
1774
- passed: boolean;
1775
- stdout: string;
1776
- stderr: string;
1777
- completedAt: string;
1778
- }[];
1779
- verifyPrompt: {
1780
- reason: string;
1781
- startedAt: string;
1782
- passed: boolean;
1783
- completedAt: string;
1784
- verifierAgentId: string | null;
1785
- } | null;
1786
- }[];
1787
- logs: {
1788
- text: string;
1789
- seq: number;
1790
- timestamp: string;
1791
- iteration: number | null;
1792
- source: "loop" | "worker" | "verifier" | "verify-check";
1793
- level: "error" | "info";
1794
- }[];
1795
- nextLogSeq: number;
1796
- activeIteration: number | null;
1797
- activeWorkerAgentId: string | null;
1798
- activeVerifierAgentId: string | null;
1799
- modeId?: string | null | undefined;
1800
- verifierModeId?: string | null | undefined;
1801
- } | null;
1802
- };
1803
- }>;
415
+ }, z.core.$strip>;
416
+ }, z.core.$strip>;
1804
417
  export declare const LoopLogsResponseSchema: z.ZodObject<{
1805
418
  type: z.ZodLiteral<"loop/logs/response">;
1806
419
  payload: z.ZodObject<{
@@ -1819,12 +432,17 @@ export declare const LoopLogsResponseSchema: z.ZodObject<{
1819
432
  verifierModel: z.ZodNullable<z.ZodString>;
1820
433
  verifierModeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1821
434
  verifyPrompt: z.ZodNullable<z.ZodString>;
1822
- verifyChecks: z.ZodArray<z.ZodString, "many">;
435
+ verifyChecks: z.ZodArray<z.ZodString>;
1823
436
  archive: z.ZodBoolean;
1824
437
  sleepMs: z.ZodNumber;
1825
438
  maxIterations: z.ZodNullable<z.ZodNumber>;
1826
439
  maxTimeMs: z.ZodNullable<z.ZodNumber>;
1827
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
440
+ status: z.ZodEnum<{
441
+ running: "running";
442
+ failed: "failed";
443
+ succeeded: "succeeded";
444
+ stopped: "stopped";
445
+ }>;
1828
446
  createdAt: z.ZodString;
1829
447
  updatedAt: z.ZodString;
1830
448
  startedAt: z.ZodString;
@@ -1836,8 +454,17 @@ export declare const LoopLogsResponseSchema: z.ZodObject<{
1836
454
  workerStartedAt: z.ZodString;
1837
455
  workerCompletedAt: z.ZodNullable<z.ZodString>;
1838
456
  verifierAgentId: z.ZodNullable<z.ZodString>;
1839
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
1840
- workerOutcome: z.ZodNullable<z.ZodEnum<["completed", "failed", "canceled"]>>;
457
+ status: z.ZodEnum<{
458
+ running: "running";
459
+ failed: "failed";
460
+ succeeded: "succeeded";
461
+ stopped: "stopped";
462
+ }>;
463
+ workerOutcome: z.ZodNullable<z.ZodEnum<{
464
+ completed: "completed";
465
+ failed: "failed";
466
+ canceled: "canceled";
467
+ }>>;
1841
468
  failureReason: z.ZodNullable<z.ZodString>;
1842
469
  verifyChecks: z.ZodArray<z.ZodObject<{
1843
470
  command: z.ZodString;
@@ -1847,582 +474,56 @@ export declare const LoopLogsResponseSchema: z.ZodObject<{
1847
474
  stderr: z.ZodString;
1848
475
  startedAt: z.ZodString;
1849
476
  completedAt: z.ZodString;
1850
- }, "strip", z.ZodTypeAny, {
1851
- startedAt: string;
1852
- command: string;
1853
- exitCode: number;
1854
- passed: boolean;
1855
- stdout: string;
1856
- stderr: string;
1857
- completedAt: string;
1858
- }, {
1859
- startedAt: string;
1860
- command: string;
1861
- exitCode: number;
1862
- passed: boolean;
1863
- stdout: string;
1864
- stderr: string;
1865
- completedAt: string;
1866
- }>, "many">;
477
+ }, z.core.$strip>>;
1867
478
  verifyPrompt: z.ZodNullable<z.ZodObject<{
1868
479
  passed: z.ZodBoolean;
1869
480
  reason: z.ZodString;
1870
481
  verifierAgentId: z.ZodNullable<z.ZodString>;
1871
482
  startedAt: z.ZodString;
1872
483
  completedAt: z.ZodString;
1873
- }, "strip", z.ZodTypeAny, {
1874
- reason: string;
1875
- startedAt: string;
1876
- passed: boolean;
1877
- completedAt: string;
1878
- verifierAgentId: string | null;
1879
- }, {
1880
- reason: string;
1881
- startedAt: string;
1882
- passed: boolean;
1883
- completedAt: string;
1884
- verifierAgentId: string | null;
1885
- }>>;
1886
- }, "strip", z.ZodTypeAny, {
1887
- status: "running" | "failed" | "succeeded" | "stopped";
1888
- verifierAgentId: string | null;
1889
- index: number;
1890
- workerAgentId: string | null;
1891
- workerStartedAt: string;
1892
- workerCompletedAt: string | null;
1893
- workerOutcome: "completed" | "failed" | "canceled" | null;
1894
- failureReason: string | null;
1895
- verifyChecks: {
1896
- startedAt: string;
1897
- command: string;
1898
- exitCode: number;
1899
- passed: boolean;
1900
- stdout: string;
1901
- stderr: string;
1902
- completedAt: string;
1903
- }[];
1904
- verifyPrompt: {
1905
- reason: string;
1906
- startedAt: string;
1907
- passed: boolean;
1908
- completedAt: string;
1909
- verifierAgentId: string | null;
1910
- } | null;
1911
- }, {
1912
- status: "running" | "failed" | "succeeded" | "stopped";
1913
- verifierAgentId: string | null;
1914
- index: number;
1915
- workerAgentId: string | null;
1916
- workerStartedAt: string;
1917
- workerCompletedAt: string | null;
1918
- workerOutcome: "completed" | "failed" | "canceled" | null;
1919
- failureReason: string | null;
1920
- verifyChecks: {
1921
- startedAt: string;
1922
- command: string;
1923
- exitCode: number;
1924
- passed: boolean;
1925
- stdout: string;
1926
- stderr: string;
1927
- completedAt: string;
1928
- }[];
1929
- verifyPrompt: {
1930
- reason: string;
1931
- startedAt: string;
1932
- passed: boolean;
1933
- completedAt: string;
1934
- verifierAgentId: string | null;
1935
- } | null;
1936
- }>, "many">;
484
+ }, z.core.$strip>>;
485
+ }, z.core.$strip>>;
1937
486
  logs: z.ZodArray<z.ZodObject<{
1938
487
  seq: z.ZodNumber;
1939
488
  timestamp: z.ZodString;
1940
489
  iteration: z.ZodNullable<z.ZodNumber>;
1941
- source: z.ZodEnum<["loop", "worker", "verifier", "verify-check"]>;
1942
- level: z.ZodEnum<["info", "error"]>;
490
+ source: z.ZodEnum<{
491
+ loop: "loop";
492
+ worker: "worker";
493
+ verifier: "verifier";
494
+ "verify-check": "verify-check";
495
+ }>;
496
+ level: z.ZodEnum<{
497
+ error: "error";
498
+ info: "info";
499
+ }>;
1943
500
  text: z.ZodString;
1944
- }, "strip", z.ZodTypeAny, {
1945
- text: string;
1946
- seq: number;
1947
- timestamp: string;
1948
- iteration: number | null;
1949
- source: "loop" | "worker" | "verifier" | "verify-check";
1950
- level: "error" | "info";
1951
- }, {
1952
- text: string;
1953
- seq: number;
1954
- timestamp: string;
1955
- iteration: number | null;
1956
- source: "loop" | "worker" | "verifier" | "verify-check";
1957
- level: "error" | "info";
1958
- }>, "many">;
501
+ }, z.core.$strip>>;
1959
502
  nextLogSeq: z.ZodNumber;
1960
503
  activeIteration: z.ZodNullable<z.ZodNumber>;
1961
504
  activeWorkerAgentId: z.ZodNullable<z.ZodString>;
1962
505
  activeVerifierAgentId: z.ZodNullable<z.ZodString>;
1963
- }, "strip", z.ZodTypeAny, {
1964
- name: string | null;
1965
- status: "running" | "failed" | "succeeded" | "stopped";
1966
- cwd: string;
1967
- id: string;
1968
- createdAt: string;
1969
- updatedAt: string;
1970
- provider: string;
1971
- modeId: string | null;
1972
- model: string | null;
1973
- startedAt: string;
1974
- prompt: string;
1975
- completedAt: string | null;
1976
- verifyChecks: string[];
1977
- verifyPrompt: string | null;
1978
- workerProvider: string | null;
1979
- workerModel: string | null;
1980
- verifierProvider: string | null;
1981
- verifierModel: string | null;
1982
- verifierModeId: string | null;
1983
- archive: boolean;
1984
- sleepMs: number;
1985
- maxIterations: number | null;
1986
- maxTimeMs: number | null;
1987
- stopRequestedAt: string | null;
1988
- iterations: {
1989
- status: "running" | "failed" | "succeeded" | "stopped";
1990
- verifierAgentId: string | null;
1991
- index: number;
1992
- workerAgentId: string | null;
1993
- workerStartedAt: string;
1994
- workerCompletedAt: string | null;
1995
- workerOutcome: "completed" | "failed" | "canceled" | null;
1996
- failureReason: string | null;
1997
- verifyChecks: {
1998
- startedAt: string;
1999
- command: string;
2000
- exitCode: number;
2001
- passed: boolean;
2002
- stdout: string;
2003
- stderr: string;
2004
- completedAt: string;
2005
- }[];
2006
- verifyPrompt: {
2007
- reason: string;
2008
- startedAt: string;
2009
- passed: boolean;
2010
- completedAt: string;
2011
- verifierAgentId: string | null;
2012
- } | null;
2013
- }[];
2014
- logs: {
2015
- text: string;
2016
- seq: number;
2017
- timestamp: string;
2018
- iteration: number | null;
2019
- source: "loop" | "worker" | "verifier" | "verify-check";
2020
- level: "error" | "info";
2021
- }[];
2022
- nextLogSeq: number;
2023
- activeIteration: number | null;
2024
- activeWorkerAgentId: string | null;
2025
- activeVerifierAgentId: string | null;
2026
- }, {
2027
- name: string | null;
2028
- status: "running" | "failed" | "succeeded" | "stopped";
2029
- cwd: string;
2030
- id: string;
2031
- createdAt: string;
2032
- updatedAt: string;
2033
- provider: string;
2034
- model: string | null;
2035
- startedAt: string;
2036
- prompt: string;
2037
- completedAt: string | null;
2038
- verifyChecks: string[];
2039
- verifyPrompt: string | null;
2040
- workerProvider: string | null;
2041
- workerModel: string | null;
2042
- verifierProvider: string | null;
2043
- verifierModel: string | null;
2044
- archive: boolean;
2045
- sleepMs: number;
2046
- maxIterations: number | null;
2047
- maxTimeMs: number | null;
2048
- stopRequestedAt: string | null;
2049
- iterations: {
2050
- status: "running" | "failed" | "succeeded" | "stopped";
2051
- verifierAgentId: string | null;
2052
- index: number;
2053
- workerAgentId: string | null;
2054
- workerStartedAt: string;
2055
- workerCompletedAt: string | null;
2056
- workerOutcome: "completed" | "failed" | "canceled" | null;
2057
- failureReason: string | null;
2058
- verifyChecks: {
2059
- startedAt: string;
2060
- command: string;
2061
- exitCode: number;
2062
- passed: boolean;
2063
- stdout: string;
2064
- stderr: string;
2065
- completedAt: string;
2066
- }[];
2067
- verifyPrompt: {
2068
- reason: string;
2069
- startedAt: string;
2070
- passed: boolean;
2071
- completedAt: string;
2072
- verifierAgentId: string | null;
2073
- } | null;
2074
- }[];
2075
- logs: {
2076
- text: string;
2077
- seq: number;
2078
- timestamp: string;
2079
- iteration: number | null;
2080
- source: "loop" | "worker" | "verifier" | "verify-check";
2081
- level: "error" | "info";
2082
- }[];
2083
- nextLogSeq: number;
2084
- activeIteration: number | null;
2085
- activeWorkerAgentId: string | null;
2086
- activeVerifierAgentId: string | null;
2087
- modeId?: string | null | undefined;
2088
- verifierModeId?: string | null | undefined;
2089
- }>>;
506
+ }, z.core.$strip>>;
2090
507
  entries: z.ZodArray<z.ZodObject<{
2091
508
  seq: z.ZodNumber;
2092
509
  timestamp: z.ZodString;
2093
510
  iteration: z.ZodNullable<z.ZodNumber>;
2094
- source: z.ZodEnum<["loop", "worker", "verifier", "verify-check"]>;
2095
- level: z.ZodEnum<["info", "error"]>;
511
+ source: z.ZodEnum<{
512
+ loop: "loop";
513
+ worker: "worker";
514
+ verifier: "verifier";
515
+ "verify-check": "verify-check";
516
+ }>;
517
+ level: z.ZodEnum<{
518
+ error: "error";
519
+ info: "info";
520
+ }>;
2096
521
  text: z.ZodString;
2097
- }, "strip", z.ZodTypeAny, {
2098
- text: string;
2099
- seq: number;
2100
- timestamp: string;
2101
- iteration: number | null;
2102
- source: "loop" | "worker" | "verifier" | "verify-check";
2103
- level: "error" | "info";
2104
- }, {
2105
- text: string;
2106
- seq: number;
2107
- timestamp: string;
2108
- iteration: number | null;
2109
- source: "loop" | "worker" | "verifier" | "verify-check";
2110
- level: "error" | "info";
2111
- }>, "many">;
522
+ }, z.core.$strip>>;
2112
523
  nextCursor: z.ZodNumber;
2113
524
  error: z.ZodNullable<z.ZodString>;
2114
- }, "strip", z.ZodTypeAny, {
2115
- error: string | null;
2116
- entries: {
2117
- text: string;
2118
- seq: number;
2119
- timestamp: string;
2120
- iteration: number | null;
2121
- source: "loop" | "worker" | "verifier" | "verify-check";
2122
- level: "error" | "info";
2123
- }[];
2124
- requestId: string;
2125
- loop: {
2126
- name: string | null;
2127
- status: "running" | "failed" | "succeeded" | "stopped";
2128
- cwd: string;
2129
- id: string;
2130
- createdAt: string;
2131
- updatedAt: string;
2132
- provider: string;
2133
- modeId: string | null;
2134
- model: string | null;
2135
- startedAt: string;
2136
- prompt: string;
2137
- completedAt: string | null;
2138
- verifyChecks: string[];
2139
- verifyPrompt: string | null;
2140
- workerProvider: string | null;
2141
- workerModel: string | null;
2142
- verifierProvider: string | null;
2143
- verifierModel: string | null;
2144
- verifierModeId: string | null;
2145
- archive: boolean;
2146
- sleepMs: number;
2147
- maxIterations: number | null;
2148
- maxTimeMs: number | null;
2149
- stopRequestedAt: string | null;
2150
- iterations: {
2151
- status: "running" | "failed" | "succeeded" | "stopped";
2152
- verifierAgentId: string | null;
2153
- index: number;
2154
- workerAgentId: string | null;
2155
- workerStartedAt: string;
2156
- workerCompletedAt: string | null;
2157
- workerOutcome: "completed" | "failed" | "canceled" | null;
2158
- failureReason: string | null;
2159
- verifyChecks: {
2160
- startedAt: string;
2161
- command: string;
2162
- exitCode: number;
2163
- passed: boolean;
2164
- stdout: string;
2165
- stderr: string;
2166
- completedAt: string;
2167
- }[];
2168
- verifyPrompt: {
2169
- reason: string;
2170
- startedAt: string;
2171
- passed: boolean;
2172
- completedAt: string;
2173
- verifierAgentId: string | null;
2174
- } | null;
2175
- }[];
2176
- logs: {
2177
- text: string;
2178
- seq: number;
2179
- timestamp: string;
2180
- iteration: number | null;
2181
- source: "loop" | "worker" | "verifier" | "verify-check";
2182
- level: "error" | "info";
2183
- }[];
2184
- nextLogSeq: number;
2185
- activeIteration: number | null;
2186
- activeWorkerAgentId: string | null;
2187
- activeVerifierAgentId: string | null;
2188
- } | null;
2189
- nextCursor: number;
2190
- }, {
2191
- error: string | null;
2192
- entries: {
2193
- text: string;
2194
- seq: number;
2195
- timestamp: string;
2196
- iteration: number | null;
2197
- source: "loop" | "worker" | "verifier" | "verify-check";
2198
- level: "error" | "info";
2199
- }[];
2200
- requestId: string;
2201
- loop: {
2202
- name: string | null;
2203
- status: "running" | "failed" | "succeeded" | "stopped";
2204
- cwd: string;
2205
- id: string;
2206
- createdAt: string;
2207
- updatedAt: string;
2208
- provider: string;
2209
- model: string | null;
2210
- startedAt: string;
2211
- prompt: string;
2212
- completedAt: string | null;
2213
- verifyChecks: string[];
2214
- verifyPrompt: string | null;
2215
- workerProvider: string | null;
2216
- workerModel: string | null;
2217
- verifierProvider: string | null;
2218
- verifierModel: string | null;
2219
- archive: boolean;
2220
- sleepMs: number;
2221
- maxIterations: number | null;
2222
- maxTimeMs: number | null;
2223
- stopRequestedAt: string | null;
2224
- iterations: {
2225
- status: "running" | "failed" | "succeeded" | "stopped";
2226
- verifierAgentId: string | null;
2227
- index: number;
2228
- workerAgentId: string | null;
2229
- workerStartedAt: string;
2230
- workerCompletedAt: string | null;
2231
- workerOutcome: "completed" | "failed" | "canceled" | null;
2232
- failureReason: string | null;
2233
- verifyChecks: {
2234
- startedAt: string;
2235
- command: string;
2236
- exitCode: number;
2237
- passed: boolean;
2238
- stdout: string;
2239
- stderr: string;
2240
- completedAt: string;
2241
- }[];
2242
- verifyPrompt: {
2243
- reason: string;
2244
- startedAt: string;
2245
- passed: boolean;
2246
- completedAt: string;
2247
- verifierAgentId: string | null;
2248
- } | null;
2249
- }[];
2250
- logs: {
2251
- text: string;
2252
- seq: number;
2253
- timestamp: string;
2254
- iteration: number | null;
2255
- source: "loop" | "worker" | "verifier" | "verify-check";
2256
- level: "error" | "info";
2257
- }[];
2258
- nextLogSeq: number;
2259
- activeIteration: number | null;
2260
- activeWorkerAgentId: string | null;
2261
- activeVerifierAgentId: string | null;
2262
- modeId?: string | null | undefined;
2263
- verifierModeId?: string | null | undefined;
2264
- } | null;
2265
- nextCursor: number;
2266
- }>;
2267
- }, "strip", z.ZodTypeAny, {
2268
- type: "loop/logs/response";
2269
- payload: {
2270
- error: string | null;
2271
- entries: {
2272
- text: string;
2273
- seq: number;
2274
- timestamp: string;
2275
- iteration: number | null;
2276
- source: "loop" | "worker" | "verifier" | "verify-check";
2277
- level: "error" | "info";
2278
- }[];
2279
- requestId: string;
2280
- loop: {
2281
- name: string | null;
2282
- status: "running" | "failed" | "succeeded" | "stopped";
2283
- cwd: string;
2284
- id: string;
2285
- createdAt: string;
2286
- updatedAt: string;
2287
- provider: string;
2288
- modeId: string | null;
2289
- model: string | null;
2290
- startedAt: string;
2291
- prompt: string;
2292
- completedAt: string | null;
2293
- verifyChecks: string[];
2294
- verifyPrompt: string | null;
2295
- workerProvider: string | null;
2296
- workerModel: string | null;
2297
- verifierProvider: string | null;
2298
- verifierModel: string | null;
2299
- verifierModeId: string | null;
2300
- archive: boolean;
2301
- sleepMs: number;
2302
- maxIterations: number | null;
2303
- maxTimeMs: number | null;
2304
- stopRequestedAt: string | null;
2305
- iterations: {
2306
- status: "running" | "failed" | "succeeded" | "stopped";
2307
- verifierAgentId: string | null;
2308
- index: number;
2309
- workerAgentId: string | null;
2310
- workerStartedAt: string;
2311
- workerCompletedAt: string | null;
2312
- workerOutcome: "completed" | "failed" | "canceled" | null;
2313
- failureReason: string | null;
2314
- verifyChecks: {
2315
- startedAt: string;
2316
- command: string;
2317
- exitCode: number;
2318
- passed: boolean;
2319
- stdout: string;
2320
- stderr: string;
2321
- completedAt: string;
2322
- }[];
2323
- verifyPrompt: {
2324
- reason: string;
2325
- startedAt: string;
2326
- passed: boolean;
2327
- completedAt: string;
2328
- verifierAgentId: string | null;
2329
- } | null;
2330
- }[];
2331
- logs: {
2332
- text: string;
2333
- seq: number;
2334
- timestamp: string;
2335
- iteration: number | null;
2336
- source: "loop" | "worker" | "verifier" | "verify-check";
2337
- level: "error" | "info";
2338
- }[];
2339
- nextLogSeq: number;
2340
- activeIteration: number | null;
2341
- activeWorkerAgentId: string | null;
2342
- activeVerifierAgentId: string | null;
2343
- } | null;
2344
- nextCursor: number;
2345
- };
2346
- }, {
2347
- type: "loop/logs/response";
2348
- payload: {
2349
- error: string | null;
2350
- entries: {
2351
- text: string;
2352
- seq: number;
2353
- timestamp: string;
2354
- iteration: number | null;
2355
- source: "loop" | "worker" | "verifier" | "verify-check";
2356
- level: "error" | "info";
2357
- }[];
2358
- requestId: string;
2359
- loop: {
2360
- name: string | null;
2361
- status: "running" | "failed" | "succeeded" | "stopped";
2362
- cwd: string;
2363
- id: string;
2364
- createdAt: string;
2365
- updatedAt: string;
2366
- provider: string;
2367
- model: string | null;
2368
- startedAt: string;
2369
- prompt: string;
2370
- completedAt: string | null;
2371
- verifyChecks: string[];
2372
- verifyPrompt: string | null;
2373
- workerProvider: string | null;
2374
- workerModel: string | null;
2375
- verifierProvider: string | null;
2376
- verifierModel: string | null;
2377
- archive: boolean;
2378
- sleepMs: number;
2379
- maxIterations: number | null;
2380
- maxTimeMs: number | null;
2381
- stopRequestedAt: string | null;
2382
- iterations: {
2383
- status: "running" | "failed" | "succeeded" | "stopped";
2384
- verifierAgentId: string | null;
2385
- index: number;
2386
- workerAgentId: string | null;
2387
- workerStartedAt: string;
2388
- workerCompletedAt: string | null;
2389
- workerOutcome: "completed" | "failed" | "canceled" | null;
2390
- failureReason: string | null;
2391
- verifyChecks: {
2392
- startedAt: string;
2393
- command: string;
2394
- exitCode: number;
2395
- passed: boolean;
2396
- stdout: string;
2397
- stderr: string;
2398
- completedAt: string;
2399
- }[];
2400
- verifyPrompt: {
2401
- reason: string;
2402
- startedAt: string;
2403
- passed: boolean;
2404
- completedAt: string;
2405
- verifierAgentId: string | null;
2406
- } | null;
2407
- }[];
2408
- logs: {
2409
- text: string;
2410
- seq: number;
2411
- timestamp: string;
2412
- iteration: number | null;
2413
- source: "loop" | "worker" | "verifier" | "verify-check";
2414
- level: "error" | "info";
2415
- }[];
2416
- nextLogSeq: number;
2417
- activeIteration: number | null;
2418
- activeWorkerAgentId: string | null;
2419
- activeVerifierAgentId: string | null;
2420
- modeId?: string | null | undefined;
2421
- verifierModeId?: string | null | undefined;
2422
- } | null;
2423
- nextCursor: number;
2424
- };
2425
- }>;
525
+ }, z.core.$strip>;
526
+ }, z.core.$strip>;
2426
527
  export declare const LoopStopResponseSchema: z.ZodObject<{
2427
528
  type: z.ZodLiteral<"loop/stop/response">;
2428
529
  payload: z.ZodObject<{
@@ -2441,12 +542,17 @@ export declare const LoopStopResponseSchema: z.ZodObject<{
2441
542
  verifierModel: z.ZodNullable<z.ZodString>;
2442
543
  verifierModeId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2443
544
  verifyPrompt: z.ZodNullable<z.ZodString>;
2444
- verifyChecks: z.ZodArray<z.ZodString, "many">;
545
+ verifyChecks: z.ZodArray<z.ZodString>;
2445
546
  archive: z.ZodBoolean;
2446
547
  sleepMs: z.ZodNumber;
2447
548
  maxIterations: z.ZodNullable<z.ZodNumber>;
2448
549
  maxTimeMs: z.ZodNullable<z.ZodNumber>;
2449
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
550
+ status: z.ZodEnum<{
551
+ running: "running";
552
+ failed: "failed";
553
+ succeeded: "succeeded";
554
+ stopped: "stopped";
555
+ }>;
2450
556
  createdAt: z.ZodString;
2451
557
  updatedAt: z.ZodString;
2452
558
  startedAt: z.ZodString;
@@ -2458,8 +564,17 @@ export declare const LoopStopResponseSchema: z.ZodObject<{
2458
564
  workerStartedAt: z.ZodString;
2459
565
  workerCompletedAt: z.ZodNullable<z.ZodString>;
2460
566
  verifierAgentId: z.ZodNullable<z.ZodString>;
2461
- status: z.ZodEnum<["running", "succeeded", "failed", "stopped"]>;
2462
- workerOutcome: z.ZodNullable<z.ZodEnum<["completed", "failed", "canceled"]>>;
567
+ status: z.ZodEnum<{
568
+ running: "running";
569
+ failed: "failed";
570
+ succeeded: "succeeded";
571
+ stopped: "stopped";
572
+ }>;
573
+ workerOutcome: z.ZodNullable<z.ZodEnum<{
574
+ completed: "completed";
575
+ failed: "failed";
576
+ canceled: "canceled";
577
+ }>>;
2463
578
  failureReason: z.ZodNullable<z.ZodString>;
2464
579
  verifyChecks: z.ZodArray<z.ZodObject<{
2465
580
  command: z.ZodString;
@@ -2469,523 +584,39 @@ export declare const LoopStopResponseSchema: z.ZodObject<{
2469
584
  stderr: z.ZodString;
2470
585
  startedAt: z.ZodString;
2471
586
  completedAt: z.ZodString;
2472
- }, "strip", z.ZodTypeAny, {
2473
- startedAt: string;
2474
- command: string;
2475
- exitCode: number;
2476
- passed: boolean;
2477
- stdout: string;
2478
- stderr: string;
2479
- completedAt: string;
2480
- }, {
2481
- startedAt: string;
2482
- command: string;
2483
- exitCode: number;
2484
- passed: boolean;
2485
- stdout: string;
2486
- stderr: string;
2487
- completedAt: string;
2488
- }>, "many">;
587
+ }, z.core.$strip>>;
2489
588
  verifyPrompt: z.ZodNullable<z.ZodObject<{
2490
589
  passed: z.ZodBoolean;
2491
590
  reason: z.ZodString;
2492
591
  verifierAgentId: z.ZodNullable<z.ZodString>;
2493
592
  startedAt: z.ZodString;
2494
593
  completedAt: z.ZodString;
2495
- }, "strip", z.ZodTypeAny, {
2496
- reason: string;
2497
- startedAt: string;
2498
- passed: boolean;
2499
- completedAt: string;
2500
- verifierAgentId: string | null;
2501
- }, {
2502
- reason: string;
2503
- startedAt: string;
2504
- passed: boolean;
2505
- completedAt: string;
2506
- verifierAgentId: string | null;
2507
- }>>;
2508
- }, "strip", z.ZodTypeAny, {
2509
- status: "running" | "failed" | "succeeded" | "stopped";
2510
- verifierAgentId: string | null;
2511
- index: number;
2512
- workerAgentId: string | null;
2513
- workerStartedAt: string;
2514
- workerCompletedAt: string | null;
2515
- workerOutcome: "completed" | "failed" | "canceled" | null;
2516
- failureReason: string | null;
2517
- verifyChecks: {
2518
- startedAt: string;
2519
- command: string;
2520
- exitCode: number;
2521
- passed: boolean;
2522
- stdout: string;
2523
- stderr: string;
2524
- completedAt: string;
2525
- }[];
2526
- verifyPrompt: {
2527
- reason: string;
2528
- startedAt: string;
2529
- passed: boolean;
2530
- completedAt: string;
2531
- verifierAgentId: string | null;
2532
- } | null;
2533
- }, {
2534
- status: "running" | "failed" | "succeeded" | "stopped";
2535
- verifierAgentId: string | null;
2536
- index: number;
2537
- workerAgentId: string | null;
2538
- workerStartedAt: string;
2539
- workerCompletedAt: string | null;
2540
- workerOutcome: "completed" | "failed" | "canceled" | null;
2541
- failureReason: string | null;
2542
- verifyChecks: {
2543
- startedAt: string;
2544
- command: string;
2545
- exitCode: number;
2546
- passed: boolean;
2547
- stdout: string;
2548
- stderr: string;
2549
- completedAt: string;
2550
- }[];
2551
- verifyPrompt: {
2552
- reason: string;
2553
- startedAt: string;
2554
- passed: boolean;
2555
- completedAt: string;
2556
- verifierAgentId: string | null;
2557
- } | null;
2558
- }>, "many">;
594
+ }, z.core.$strip>>;
595
+ }, z.core.$strip>>;
2559
596
  logs: z.ZodArray<z.ZodObject<{
2560
597
  seq: z.ZodNumber;
2561
598
  timestamp: z.ZodString;
2562
599
  iteration: z.ZodNullable<z.ZodNumber>;
2563
- source: z.ZodEnum<["loop", "worker", "verifier", "verify-check"]>;
2564
- level: z.ZodEnum<["info", "error"]>;
600
+ source: z.ZodEnum<{
601
+ loop: "loop";
602
+ worker: "worker";
603
+ verifier: "verifier";
604
+ "verify-check": "verify-check";
605
+ }>;
606
+ level: z.ZodEnum<{
607
+ error: "error";
608
+ info: "info";
609
+ }>;
2565
610
  text: z.ZodString;
2566
- }, "strip", z.ZodTypeAny, {
2567
- text: string;
2568
- seq: number;
2569
- timestamp: string;
2570
- iteration: number | null;
2571
- source: "loop" | "worker" | "verifier" | "verify-check";
2572
- level: "error" | "info";
2573
- }, {
2574
- text: string;
2575
- seq: number;
2576
- timestamp: string;
2577
- iteration: number | null;
2578
- source: "loop" | "worker" | "verifier" | "verify-check";
2579
- level: "error" | "info";
2580
- }>, "many">;
611
+ }, z.core.$strip>>;
2581
612
  nextLogSeq: z.ZodNumber;
2582
613
  activeIteration: z.ZodNullable<z.ZodNumber>;
2583
614
  activeWorkerAgentId: z.ZodNullable<z.ZodString>;
2584
615
  activeVerifierAgentId: z.ZodNullable<z.ZodString>;
2585
- }, "strip", z.ZodTypeAny, {
2586
- name: string | null;
2587
- status: "running" | "failed" | "succeeded" | "stopped";
2588
- cwd: string;
2589
- id: string;
2590
- createdAt: string;
2591
- updatedAt: string;
2592
- provider: string;
2593
- modeId: string | null;
2594
- model: string | null;
2595
- startedAt: string;
2596
- prompt: string;
2597
- completedAt: string | null;
2598
- verifyChecks: string[];
2599
- verifyPrompt: string | null;
2600
- workerProvider: string | null;
2601
- workerModel: string | null;
2602
- verifierProvider: string | null;
2603
- verifierModel: string | null;
2604
- verifierModeId: string | null;
2605
- archive: boolean;
2606
- sleepMs: number;
2607
- maxIterations: number | null;
2608
- maxTimeMs: number | null;
2609
- stopRequestedAt: string | null;
2610
- iterations: {
2611
- status: "running" | "failed" | "succeeded" | "stopped";
2612
- verifierAgentId: string | null;
2613
- index: number;
2614
- workerAgentId: string | null;
2615
- workerStartedAt: string;
2616
- workerCompletedAt: string | null;
2617
- workerOutcome: "completed" | "failed" | "canceled" | null;
2618
- failureReason: string | null;
2619
- verifyChecks: {
2620
- startedAt: string;
2621
- command: string;
2622
- exitCode: number;
2623
- passed: boolean;
2624
- stdout: string;
2625
- stderr: string;
2626
- completedAt: string;
2627
- }[];
2628
- verifyPrompt: {
2629
- reason: string;
2630
- startedAt: string;
2631
- passed: boolean;
2632
- completedAt: string;
2633
- verifierAgentId: string | null;
2634
- } | null;
2635
- }[];
2636
- logs: {
2637
- text: string;
2638
- seq: number;
2639
- timestamp: string;
2640
- iteration: number | null;
2641
- source: "loop" | "worker" | "verifier" | "verify-check";
2642
- level: "error" | "info";
2643
- }[];
2644
- nextLogSeq: number;
2645
- activeIteration: number | null;
2646
- activeWorkerAgentId: string | null;
2647
- activeVerifierAgentId: string | null;
2648
- }, {
2649
- name: string | null;
2650
- status: "running" | "failed" | "succeeded" | "stopped";
2651
- cwd: string;
2652
- id: string;
2653
- createdAt: string;
2654
- updatedAt: string;
2655
- provider: string;
2656
- model: string | null;
2657
- startedAt: string;
2658
- prompt: string;
2659
- completedAt: string | null;
2660
- verifyChecks: string[];
2661
- verifyPrompt: string | null;
2662
- workerProvider: string | null;
2663
- workerModel: string | null;
2664
- verifierProvider: string | null;
2665
- verifierModel: string | null;
2666
- archive: boolean;
2667
- sleepMs: number;
2668
- maxIterations: number | null;
2669
- maxTimeMs: number | null;
2670
- stopRequestedAt: string | null;
2671
- iterations: {
2672
- status: "running" | "failed" | "succeeded" | "stopped";
2673
- verifierAgentId: string | null;
2674
- index: number;
2675
- workerAgentId: string | null;
2676
- workerStartedAt: string;
2677
- workerCompletedAt: string | null;
2678
- workerOutcome: "completed" | "failed" | "canceled" | null;
2679
- failureReason: string | null;
2680
- verifyChecks: {
2681
- startedAt: string;
2682
- command: string;
2683
- exitCode: number;
2684
- passed: boolean;
2685
- stdout: string;
2686
- stderr: string;
2687
- completedAt: string;
2688
- }[];
2689
- verifyPrompt: {
2690
- reason: string;
2691
- startedAt: string;
2692
- passed: boolean;
2693
- completedAt: string;
2694
- verifierAgentId: string | null;
2695
- } | null;
2696
- }[];
2697
- logs: {
2698
- text: string;
2699
- seq: number;
2700
- timestamp: string;
2701
- iteration: number | null;
2702
- source: "loop" | "worker" | "verifier" | "verify-check";
2703
- level: "error" | "info";
2704
- }[];
2705
- nextLogSeq: number;
2706
- activeIteration: number | null;
2707
- activeWorkerAgentId: string | null;
2708
- activeVerifierAgentId: string | null;
2709
- modeId?: string | null | undefined;
2710
- verifierModeId?: string | null | undefined;
2711
- }>>;
616
+ }, z.core.$strip>>;
2712
617
  error: z.ZodNullable<z.ZodString>;
2713
- }, "strip", z.ZodTypeAny, {
2714
- error: string | null;
2715
- requestId: string;
2716
- loop: {
2717
- name: string | null;
2718
- status: "running" | "failed" | "succeeded" | "stopped";
2719
- cwd: string;
2720
- id: string;
2721
- createdAt: string;
2722
- updatedAt: string;
2723
- provider: string;
2724
- modeId: string | null;
2725
- model: string | null;
2726
- startedAt: string;
2727
- prompt: string;
2728
- completedAt: string | null;
2729
- verifyChecks: string[];
2730
- verifyPrompt: string | null;
2731
- workerProvider: string | null;
2732
- workerModel: string | null;
2733
- verifierProvider: string | null;
2734
- verifierModel: string | null;
2735
- verifierModeId: string | null;
2736
- archive: boolean;
2737
- sleepMs: number;
2738
- maxIterations: number | null;
2739
- maxTimeMs: number | null;
2740
- stopRequestedAt: string | null;
2741
- iterations: {
2742
- status: "running" | "failed" | "succeeded" | "stopped";
2743
- verifierAgentId: string | null;
2744
- index: number;
2745
- workerAgentId: string | null;
2746
- workerStartedAt: string;
2747
- workerCompletedAt: string | null;
2748
- workerOutcome: "completed" | "failed" | "canceled" | null;
2749
- failureReason: string | null;
2750
- verifyChecks: {
2751
- startedAt: string;
2752
- command: string;
2753
- exitCode: number;
2754
- passed: boolean;
2755
- stdout: string;
2756
- stderr: string;
2757
- completedAt: string;
2758
- }[];
2759
- verifyPrompt: {
2760
- reason: string;
2761
- startedAt: string;
2762
- passed: boolean;
2763
- completedAt: string;
2764
- verifierAgentId: string | null;
2765
- } | null;
2766
- }[];
2767
- logs: {
2768
- text: string;
2769
- seq: number;
2770
- timestamp: string;
2771
- iteration: number | null;
2772
- source: "loop" | "worker" | "verifier" | "verify-check";
2773
- level: "error" | "info";
2774
- }[];
2775
- nextLogSeq: number;
2776
- activeIteration: number | null;
2777
- activeWorkerAgentId: string | null;
2778
- activeVerifierAgentId: string | null;
2779
- } | null;
2780
- }, {
2781
- error: string | null;
2782
- requestId: string;
2783
- loop: {
2784
- name: string | null;
2785
- status: "running" | "failed" | "succeeded" | "stopped";
2786
- cwd: string;
2787
- id: string;
2788
- createdAt: string;
2789
- updatedAt: string;
2790
- provider: string;
2791
- model: string | null;
2792
- startedAt: string;
2793
- prompt: string;
2794
- completedAt: string | null;
2795
- verifyChecks: string[];
2796
- verifyPrompt: string | null;
2797
- workerProvider: string | null;
2798
- workerModel: string | null;
2799
- verifierProvider: string | null;
2800
- verifierModel: string | null;
2801
- archive: boolean;
2802
- sleepMs: number;
2803
- maxIterations: number | null;
2804
- maxTimeMs: number | null;
2805
- stopRequestedAt: string | null;
2806
- iterations: {
2807
- status: "running" | "failed" | "succeeded" | "stopped";
2808
- verifierAgentId: string | null;
2809
- index: number;
2810
- workerAgentId: string | null;
2811
- workerStartedAt: string;
2812
- workerCompletedAt: string | null;
2813
- workerOutcome: "completed" | "failed" | "canceled" | null;
2814
- failureReason: string | null;
2815
- verifyChecks: {
2816
- startedAt: string;
2817
- command: string;
2818
- exitCode: number;
2819
- passed: boolean;
2820
- stdout: string;
2821
- stderr: string;
2822
- completedAt: string;
2823
- }[];
2824
- verifyPrompt: {
2825
- reason: string;
2826
- startedAt: string;
2827
- passed: boolean;
2828
- completedAt: string;
2829
- verifierAgentId: string | null;
2830
- } | null;
2831
- }[];
2832
- logs: {
2833
- text: string;
2834
- seq: number;
2835
- timestamp: string;
2836
- iteration: number | null;
2837
- source: "loop" | "worker" | "verifier" | "verify-check";
2838
- level: "error" | "info";
2839
- }[];
2840
- nextLogSeq: number;
2841
- activeIteration: number | null;
2842
- activeWorkerAgentId: string | null;
2843
- activeVerifierAgentId: string | null;
2844
- modeId?: string | null | undefined;
2845
- verifierModeId?: string | null | undefined;
2846
- } | null;
2847
- }>;
2848
- }, "strip", z.ZodTypeAny, {
2849
- type: "loop/stop/response";
2850
- payload: {
2851
- error: string | null;
2852
- requestId: string;
2853
- loop: {
2854
- name: string | null;
2855
- status: "running" | "failed" | "succeeded" | "stopped";
2856
- cwd: string;
2857
- id: string;
2858
- createdAt: string;
2859
- updatedAt: string;
2860
- provider: string;
2861
- modeId: string | null;
2862
- model: string | null;
2863
- startedAt: string;
2864
- prompt: string;
2865
- completedAt: string | null;
2866
- verifyChecks: string[];
2867
- verifyPrompt: string | null;
2868
- workerProvider: string | null;
2869
- workerModel: string | null;
2870
- verifierProvider: string | null;
2871
- verifierModel: string | null;
2872
- verifierModeId: string | null;
2873
- archive: boolean;
2874
- sleepMs: number;
2875
- maxIterations: number | null;
2876
- maxTimeMs: number | null;
2877
- stopRequestedAt: string | null;
2878
- iterations: {
2879
- status: "running" | "failed" | "succeeded" | "stopped";
2880
- verifierAgentId: string | null;
2881
- index: number;
2882
- workerAgentId: string | null;
2883
- workerStartedAt: string;
2884
- workerCompletedAt: string | null;
2885
- workerOutcome: "completed" | "failed" | "canceled" | null;
2886
- failureReason: string | null;
2887
- verifyChecks: {
2888
- startedAt: string;
2889
- command: string;
2890
- exitCode: number;
2891
- passed: boolean;
2892
- stdout: string;
2893
- stderr: string;
2894
- completedAt: string;
2895
- }[];
2896
- verifyPrompt: {
2897
- reason: string;
2898
- startedAt: string;
2899
- passed: boolean;
2900
- completedAt: string;
2901
- verifierAgentId: string | null;
2902
- } | null;
2903
- }[];
2904
- logs: {
2905
- text: string;
2906
- seq: number;
2907
- timestamp: string;
2908
- iteration: number | null;
2909
- source: "loop" | "worker" | "verifier" | "verify-check";
2910
- level: "error" | "info";
2911
- }[];
2912
- nextLogSeq: number;
2913
- activeIteration: number | null;
2914
- activeWorkerAgentId: string | null;
2915
- activeVerifierAgentId: string | null;
2916
- } | null;
2917
- };
2918
- }, {
2919
- type: "loop/stop/response";
2920
- payload: {
2921
- error: string | null;
2922
- requestId: string;
2923
- loop: {
2924
- name: string | null;
2925
- status: "running" | "failed" | "succeeded" | "stopped";
2926
- cwd: string;
2927
- id: string;
2928
- createdAt: string;
2929
- updatedAt: string;
2930
- provider: string;
2931
- model: string | null;
2932
- startedAt: string;
2933
- prompt: string;
2934
- completedAt: string | null;
2935
- verifyChecks: string[];
2936
- verifyPrompt: string | null;
2937
- workerProvider: string | null;
2938
- workerModel: string | null;
2939
- verifierProvider: string | null;
2940
- verifierModel: string | null;
2941
- archive: boolean;
2942
- sleepMs: number;
2943
- maxIterations: number | null;
2944
- maxTimeMs: number | null;
2945
- stopRequestedAt: string | null;
2946
- iterations: {
2947
- status: "running" | "failed" | "succeeded" | "stopped";
2948
- verifierAgentId: string | null;
2949
- index: number;
2950
- workerAgentId: string | null;
2951
- workerStartedAt: string;
2952
- workerCompletedAt: string | null;
2953
- workerOutcome: "completed" | "failed" | "canceled" | null;
2954
- failureReason: string | null;
2955
- verifyChecks: {
2956
- startedAt: string;
2957
- command: string;
2958
- exitCode: number;
2959
- passed: boolean;
2960
- stdout: string;
2961
- stderr: string;
2962
- completedAt: string;
2963
- }[];
2964
- verifyPrompt: {
2965
- reason: string;
2966
- startedAt: string;
2967
- passed: boolean;
2968
- completedAt: string;
2969
- verifierAgentId: string | null;
2970
- } | null;
2971
- }[];
2972
- logs: {
2973
- text: string;
2974
- seq: number;
2975
- timestamp: string;
2976
- iteration: number | null;
2977
- source: "loop" | "worker" | "verifier" | "verify-check";
2978
- level: "error" | "info";
2979
- }[];
2980
- nextLogSeq: number;
2981
- activeIteration: number | null;
2982
- activeWorkerAgentId: string | null;
2983
- activeVerifierAgentId: string | null;
2984
- modeId?: string | null | undefined;
2985
- verifierModeId?: string | null | undefined;
2986
- } | null;
2987
- };
2988
- }>;
618
+ }, z.core.$strip>;
619
+ }, z.core.$strip>;
2989
620
  export type LoopLogEntry = z.infer<typeof LoopLogEntrySchema>;
2990
621
  export type LoopVerifyCheckResult = z.infer<typeof LoopVerifyCheckResultSchema>;
2991
622
  export type LoopVerifyPromptResult = z.infer<typeof LoopVerifyPromptResultSchema>;