@agentdock/wire 0.0.69 → 0.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,830 @@
1
+ import { z } from 'zod';
2
+ export declare const EncryptedContentSchema: z.ZodObject<{
3
+ c: z.ZodString;
4
+ t: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ t: string;
7
+ c: string;
8
+ }, {
9
+ t: string;
10
+ c: string;
11
+ }>;
12
+ export type EncryptedContent = z.infer<typeof EncryptedContentSchema>;
13
+ export declare const GoalTriggerTypeSchema: z.ZodEnum<["manual", "cron"]>;
14
+ export type GoalTriggerType = z.infer<typeof GoalTriggerTypeSchema>;
15
+ export declare const GoalStatusSchema: z.ZodEnum<["draft", "running", "awaiting_review", "completed", "stalled", "cancelled"]>;
16
+ export type GoalStatus = z.infer<typeof GoalStatusSchema>;
17
+ export declare const GoalRoundStatusSchema: z.ZodEnum<["running", "completed", "failed"]>;
18
+ export type GoalRoundStatus = z.infer<typeof GoalRoundStatusSchema>;
19
+ export declare const GoalRoundReviewStateSchema: z.ZodEnum<["pending", "rejected", "approved", "taken_over", "finalized"]>;
20
+ export type GoalRoundReviewState = z.infer<typeof GoalRoundReviewStateSchema>;
21
+ export declare const GoalConfigSchema: z.ZodEffects<z.ZodObject<{
22
+ name: z.ZodString;
23
+ goal: z.ZodString;
24
+ prompt: z.ZodString;
25
+ spawnParams: z.ZodObject<{
26
+ model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
27
+ agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"]>>;
28
+ agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
29
+ cwd: z.ZodOptional<z.ZodString>;
30
+ prompt: z.ZodString;
31
+ startupScripts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
32
+ } & {
33
+ maxExecutionMs: z.ZodOptional<z.ZodNumber>;
34
+ retryPolicy: z.ZodOptional<z.ZodObject<{
35
+ maxRetries: z.ZodDefault<z.ZodNumber>;
36
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ maxRetries: number;
39
+ retryDelayMs: number;
40
+ }, {
41
+ maxRetries?: number | undefined;
42
+ retryDelayMs?: number | undefined;
43
+ }>>;
44
+ missedRunPolicy: z.ZodOptional<z.ZodEnum<["skip", "run-once"]>>;
45
+ circuitBreakerThreshold: z.ZodOptional<z.ZodNumber>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ prompt: string;
48
+ model?: string | undefined;
49
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
50
+ agent?: string | undefined;
51
+ cwd?: string | undefined;
52
+ startupScripts?: string[] | undefined;
53
+ maxExecutionMs?: number | undefined;
54
+ retryPolicy?: {
55
+ maxRetries: number;
56
+ retryDelayMs: number;
57
+ } | undefined;
58
+ missedRunPolicy?: "skip" | "run-once" | undefined;
59
+ circuitBreakerThreshold?: number | undefined;
60
+ }, {
61
+ prompt: string;
62
+ model?: string | undefined;
63
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
64
+ agent?: string | undefined;
65
+ cwd?: string | undefined;
66
+ startupScripts?: string[] | undefined;
67
+ maxExecutionMs?: number | undefined;
68
+ retryPolicy?: {
69
+ maxRetries?: number | undefined;
70
+ retryDelayMs?: number | undefined;
71
+ } | undefined;
72
+ missedRunPolicy?: "skip" | "run-once" | undefined;
73
+ circuitBreakerThreshold?: number | undefined;
74
+ }>;
75
+ machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ triggerType: z.ZodDefault<z.ZodEnum<["manual", "cron"]>>;
77
+ schedule: z.ZodOptional<z.ZodString>;
78
+ maxRounds: z.ZodDefault<z.ZodNumber>;
79
+ timeoutDays: z.ZodOptional<z.ZodNumber>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ name: string;
82
+ prompt: string;
83
+ goal: string;
84
+ triggerType: "manual" | "cron";
85
+ spawnParams: {
86
+ prompt: string;
87
+ model?: string | undefined;
88
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
89
+ agent?: string | undefined;
90
+ cwd?: string | undefined;
91
+ startupScripts?: string[] | undefined;
92
+ maxExecutionMs?: number | undefined;
93
+ retryPolicy?: {
94
+ maxRetries: number;
95
+ retryDelayMs: number;
96
+ } | undefined;
97
+ missedRunPolicy?: "skip" | "run-once" | undefined;
98
+ circuitBreakerThreshold?: number | undefined;
99
+ };
100
+ maxRounds: number;
101
+ machineId?: string | null | undefined;
102
+ schedule?: string | undefined;
103
+ timeoutDays?: number | undefined;
104
+ }, {
105
+ name: string;
106
+ prompt: string;
107
+ goal: string;
108
+ spawnParams: {
109
+ prompt: string;
110
+ model?: string | undefined;
111
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
112
+ agent?: string | undefined;
113
+ cwd?: string | undefined;
114
+ startupScripts?: string[] | undefined;
115
+ maxExecutionMs?: number | undefined;
116
+ retryPolicy?: {
117
+ maxRetries?: number | undefined;
118
+ retryDelayMs?: number | undefined;
119
+ } | undefined;
120
+ missedRunPolicy?: "skip" | "run-once" | undefined;
121
+ circuitBreakerThreshold?: number | undefined;
122
+ };
123
+ machineId?: string | null | undefined;
124
+ triggerType?: "manual" | "cron" | undefined;
125
+ schedule?: string | undefined;
126
+ maxRounds?: number | undefined;
127
+ timeoutDays?: number | undefined;
128
+ }>, {
129
+ name: string;
130
+ prompt: string;
131
+ goal: string;
132
+ triggerType: "manual" | "cron";
133
+ spawnParams: {
134
+ prompt: string;
135
+ model?: string | undefined;
136
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
137
+ agent?: string | undefined;
138
+ cwd?: string | undefined;
139
+ startupScripts?: string[] | undefined;
140
+ maxExecutionMs?: number | undefined;
141
+ retryPolicy?: {
142
+ maxRetries: number;
143
+ retryDelayMs: number;
144
+ } | undefined;
145
+ missedRunPolicy?: "skip" | "run-once" | undefined;
146
+ circuitBreakerThreshold?: number | undefined;
147
+ };
148
+ maxRounds: number;
149
+ machineId?: string | null | undefined;
150
+ schedule?: string | undefined;
151
+ timeoutDays?: number | undefined;
152
+ }, {
153
+ name: string;
154
+ prompt: string;
155
+ goal: string;
156
+ spawnParams: {
157
+ prompt: string;
158
+ model?: string | undefined;
159
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
160
+ agent?: string | undefined;
161
+ cwd?: string | undefined;
162
+ startupScripts?: string[] | undefined;
163
+ maxExecutionMs?: number | undefined;
164
+ retryPolicy?: {
165
+ maxRetries?: number | undefined;
166
+ retryDelayMs?: number | undefined;
167
+ } | undefined;
168
+ missedRunPolicy?: "skip" | "run-once" | undefined;
169
+ circuitBreakerThreshold?: number | undefined;
170
+ };
171
+ machineId?: string | null | undefined;
172
+ triggerType?: "manual" | "cron" | undefined;
173
+ schedule?: string | undefined;
174
+ maxRounds?: number | undefined;
175
+ timeoutDays?: number | undefined;
176
+ }>;
177
+ export type GoalConfig = z.infer<typeof GoalConfigSchema>;
178
+ export declare const CreateGoalSchema: z.ZodEffects<z.ZodObject<{
179
+ name: z.ZodString;
180
+ goal: z.ZodString;
181
+ prompt: z.ZodString;
182
+ spawnParams: z.ZodObject<{
183
+ model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
184
+ agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"]>>;
185
+ agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
186
+ cwd: z.ZodOptional<z.ZodString>;
187
+ prompt: z.ZodString;
188
+ startupScripts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
189
+ } & {
190
+ maxExecutionMs: z.ZodOptional<z.ZodNumber>;
191
+ retryPolicy: z.ZodOptional<z.ZodObject<{
192
+ maxRetries: z.ZodDefault<z.ZodNumber>;
193
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ maxRetries: number;
196
+ retryDelayMs: number;
197
+ }, {
198
+ maxRetries?: number | undefined;
199
+ retryDelayMs?: number | undefined;
200
+ }>>;
201
+ missedRunPolicy: z.ZodOptional<z.ZodEnum<["skip", "run-once"]>>;
202
+ circuitBreakerThreshold: z.ZodOptional<z.ZodNumber>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ prompt: string;
205
+ model?: string | undefined;
206
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
207
+ agent?: string | undefined;
208
+ cwd?: string | undefined;
209
+ startupScripts?: string[] | undefined;
210
+ maxExecutionMs?: number | undefined;
211
+ retryPolicy?: {
212
+ maxRetries: number;
213
+ retryDelayMs: number;
214
+ } | undefined;
215
+ missedRunPolicy?: "skip" | "run-once" | undefined;
216
+ circuitBreakerThreshold?: number | undefined;
217
+ }, {
218
+ prompt: string;
219
+ model?: string | undefined;
220
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
221
+ agent?: string | undefined;
222
+ cwd?: string | undefined;
223
+ startupScripts?: string[] | undefined;
224
+ maxExecutionMs?: number | undefined;
225
+ retryPolicy?: {
226
+ maxRetries?: number | undefined;
227
+ retryDelayMs?: number | undefined;
228
+ } | undefined;
229
+ missedRunPolicy?: "skip" | "run-once" | undefined;
230
+ circuitBreakerThreshold?: number | undefined;
231
+ }>;
232
+ machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ triggerType: z.ZodDefault<z.ZodEnum<["manual", "cron"]>>;
234
+ schedule: z.ZodOptional<z.ZodString>;
235
+ maxRounds: z.ZodDefault<z.ZodNumber>;
236
+ timeoutDays: z.ZodOptional<z.ZodNumber>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ name: string;
239
+ prompt: string;
240
+ goal: string;
241
+ triggerType: "manual" | "cron";
242
+ spawnParams: {
243
+ prompt: string;
244
+ model?: string | undefined;
245
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
246
+ agent?: string | undefined;
247
+ cwd?: string | undefined;
248
+ startupScripts?: string[] | undefined;
249
+ maxExecutionMs?: number | undefined;
250
+ retryPolicy?: {
251
+ maxRetries: number;
252
+ retryDelayMs: number;
253
+ } | undefined;
254
+ missedRunPolicy?: "skip" | "run-once" | undefined;
255
+ circuitBreakerThreshold?: number | undefined;
256
+ };
257
+ maxRounds: number;
258
+ machineId?: string | null | undefined;
259
+ schedule?: string | undefined;
260
+ timeoutDays?: number | undefined;
261
+ }, {
262
+ name: string;
263
+ prompt: string;
264
+ goal: string;
265
+ spawnParams: {
266
+ prompt: string;
267
+ model?: string | undefined;
268
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
269
+ agent?: string | undefined;
270
+ cwd?: string | undefined;
271
+ startupScripts?: string[] | undefined;
272
+ maxExecutionMs?: number | undefined;
273
+ retryPolicy?: {
274
+ maxRetries?: number | undefined;
275
+ retryDelayMs?: number | undefined;
276
+ } | undefined;
277
+ missedRunPolicy?: "skip" | "run-once" | undefined;
278
+ circuitBreakerThreshold?: number | undefined;
279
+ };
280
+ machineId?: string | null | undefined;
281
+ triggerType?: "manual" | "cron" | undefined;
282
+ schedule?: string | undefined;
283
+ maxRounds?: number | undefined;
284
+ timeoutDays?: number | undefined;
285
+ }>, {
286
+ name: string;
287
+ prompt: string;
288
+ goal: string;
289
+ triggerType: "manual" | "cron";
290
+ spawnParams: {
291
+ prompt: string;
292
+ model?: string | undefined;
293
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
294
+ agent?: string | undefined;
295
+ cwd?: string | undefined;
296
+ startupScripts?: string[] | undefined;
297
+ maxExecutionMs?: number | undefined;
298
+ retryPolicy?: {
299
+ maxRetries: number;
300
+ retryDelayMs: number;
301
+ } | undefined;
302
+ missedRunPolicy?: "skip" | "run-once" | undefined;
303
+ circuitBreakerThreshold?: number | undefined;
304
+ };
305
+ maxRounds: number;
306
+ machineId?: string | null | undefined;
307
+ schedule?: string | undefined;
308
+ timeoutDays?: number | undefined;
309
+ }, {
310
+ name: string;
311
+ prompt: string;
312
+ goal: string;
313
+ spawnParams: {
314
+ prompt: string;
315
+ model?: string | undefined;
316
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
317
+ agent?: string | undefined;
318
+ cwd?: string | undefined;
319
+ startupScripts?: string[] | undefined;
320
+ maxExecutionMs?: number | undefined;
321
+ retryPolicy?: {
322
+ maxRetries?: number | undefined;
323
+ retryDelayMs?: number | undefined;
324
+ } | undefined;
325
+ missedRunPolicy?: "skip" | "run-once" | undefined;
326
+ circuitBreakerThreshold?: number | undefined;
327
+ };
328
+ machineId?: string | null | undefined;
329
+ triggerType?: "manual" | "cron" | undefined;
330
+ schedule?: string | undefined;
331
+ maxRounds?: number | undefined;
332
+ timeoutDays?: number | undefined;
333
+ }>;
334
+ export type CreateGoal = z.infer<typeof CreateGoalSchema>;
335
+ export declare const UpdateGoalSchema: z.ZodObject<{
336
+ name: z.ZodOptional<z.ZodString>;
337
+ goal: z.ZodOptional<z.ZodString>;
338
+ prompt: z.ZodOptional<z.ZodString>;
339
+ spawnParams: z.ZodOptional<z.ZodObject<{
340
+ model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
341
+ agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"]>>;
342
+ agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
343
+ cwd: z.ZodOptional<z.ZodString>;
344
+ prompt: z.ZodString;
345
+ startupScripts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
346
+ } & {
347
+ maxExecutionMs: z.ZodOptional<z.ZodNumber>;
348
+ retryPolicy: z.ZodOptional<z.ZodObject<{
349
+ maxRetries: z.ZodDefault<z.ZodNumber>;
350
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ maxRetries: number;
353
+ retryDelayMs: number;
354
+ }, {
355
+ maxRetries?: number | undefined;
356
+ retryDelayMs?: number | undefined;
357
+ }>>;
358
+ missedRunPolicy: z.ZodOptional<z.ZodEnum<["skip", "run-once"]>>;
359
+ circuitBreakerThreshold: z.ZodOptional<z.ZodNumber>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ prompt: string;
362
+ model?: string | undefined;
363
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
364
+ agent?: string | undefined;
365
+ cwd?: string | undefined;
366
+ startupScripts?: string[] | undefined;
367
+ maxExecutionMs?: number | undefined;
368
+ retryPolicy?: {
369
+ maxRetries: number;
370
+ retryDelayMs: number;
371
+ } | undefined;
372
+ missedRunPolicy?: "skip" | "run-once" | undefined;
373
+ circuitBreakerThreshold?: number | undefined;
374
+ }, {
375
+ prompt: string;
376
+ model?: string | undefined;
377
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
378
+ agent?: string | undefined;
379
+ cwd?: string | undefined;
380
+ startupScripts?: string[] | undefined;
381
+ maxExecutionMs?: number | undefined;
382
+ retryPolicy?: {
383
+ maxRetries?: number | undefined;
384
+ retryDelayMs?: number | undefined;
385
+ } | undefined;
386
+ missedRunPolicy?: "skip" | "run-once" | undefined;
387
+ circuitBreakerThreshold?: number | undefined;
388
+ }>>;
389
+ machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
390
+ schedule: z.ZodOptional<z.ZodString>;
391
+ maxRounds: z.ZodOptional<z.ZodNumber>;
392
+ timeoutDays: z.ZodOptional<z.ZodNumber>;
393
+ }, "strip", z.ZodTypeAny, {
394
+ name?: string | undefined;
395
+ prompt?: string | undefined;
396
+ machineId?: string | null | undefined;
397
+ goal?: string | undefined;
398
+ spawnParams?: {
399
+ prompt: string;
400
+ model?: string | undefined;
401
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
402
+ agent?: string | undefined;
403
+ cwd?: string | undefined;
404
+ startupScripts?: string[] | undefined;
405
+ maxExecutionMs?: number | undefined;
406
+ retryPolicy?: {
407
+ maxRetries: number;
408
+ retryDelayMs: number;
409
+ } | undefined;
410
+ missedRunPolicy?: "skip" | "run-once" | undefined;
411
+ circuitBreakerThreshold?: number | undefined;
412
+ } | undefined;
413
+ schedule?: string | undefined;
414
+ maxRounds?: number | undefined;
415
+ timeoutDays?: number | undefined;
416
+ }, {
417
+ name?: string | undefined;
418
+ prompt?: string | undefined;
419
+ machineId?: string | null | undefined;
420
+ goal?: string | undefined;
421
+ spawnParams?: {
422
+ prompt: string;
423
+ model?: string | undefined;
424
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
425
+ agent?: string | undefined;
426
+ cwd?: string | undefined;
427
+ startupScripts?: string[] | undefined;
428
+ maxExecutionMs?: number | undefined;
429
+ retryPolicy?: {
430
+ maxRetries?: number | undefined;
431
+ retryDelayMs?: number | undefined;
432
+ } | undefined;
433
+ missedRunPolicy?: "skip" | "run-once" | undefined;
434
+ circuitBreakerThreshold?: number | undefined;
435
+ } | undefined;
436
+ schedule?: string | undefined;
437
+ maxRounds?: number | undefined;
438
+ timeoutDays?: number | undefined;
439
+ }>;
440
+ export type UpdateGoal = z.infer<typeof UpdateGoalSchema>;
441
+ export declare const GoalReviewSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
442
+ action: z.ZodLiteral<"reject">;
443
+ feedbackCiphertext: z.ZodObject<{
444
+ c: z.ZodString;
445
+ t: z.ZodString;
446
+ }, "strip", z.ZodTypeAny, {
447
+ t: string;
448
+ c: string;
449
+ }, {
450
+ t: string;
451
+ c: string;
452
+ }>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ action: "reject";
455
+ feedbackCiphertext: {
456
+ t: string;
457
+ c: string;
458
+ };
459
+ }, {
460
+ action: "reject";
461
+ feedbackCiphertext: {
462
+ t: string;
463
+ c: string;
464
+ };
465
+ }>, z.ZodObject<{
466
+ action: z.ZodLiteral<"takeover">;
467
+ }, "strip", z.ZodTypeAny, {
468
+ action: "takeover";
469
+ }, {
470
+ action: "takeover";
471
+ }>, z.ZodObject<{
472
+ action: z.ZodLiteral<"finalize">;
473
+ }, "strip", z.ZodTypeAny, {
474
+ action: "finalize";
475
+ }, {
476
+ action: "finalize";
477
+ }>]>;
478
+ export type GoalReview = z.infer<typeof GoalReviewSchema>;
479
+ export declare const GoalRoundSchema: z.ZodObject<{
480
+ id: z.ZodString;
481
+ goalId: z.ZodString;
482
+ roundIndex: z.ZodNumber;
483
+ prevRoundId: z.ZodNullable<z.ZodString>;
484
+ artifactSessionId: z.ZodNullable<z.ZodString>;
485
+ prompt: z.ZodString;
486
+ status: z.ZodEnum<["running", "completed", "failed"]>;
487
+ reviewState: z.ZodEnum<["pending", "rejected", "approved", "taken_over", "finalized"]>;
488
+ reviewFeedbackCiphertext: z.ZodNullable<z.ZodObject<{
489
+ c: z.ZodString;
490
+ t: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ t: string;
493
+ c: string;
494
+ }, {
495
+ t: string;
496
+ c: string;
497
+ }>>;
498
+ takeoverSessionId: z.ZodNullable<z.ZodString>;
499
+ startedAt: z.ZodString;
500
+ completedAt: z.ZodNullable<z.ZodString>;
501
+ reviewedAt: z.ZodNullable<z.ZodString>;
502
+ createdAt: z.ZodString;
503
+ }, "strip", z.ZodTypeAny, {
504
+ status: "running" | "completed" | "failed";
505
+ startedAt: string;
506
+ id: string;
507
+ createdAt: string;
508
+ prompt: string;
509
+ completedAt: string | null;
510
+ takeoverSessionId: string | null;
511
+ goalId: string;
512
+ roundIndex: number;
513
+ prevRoundId: string | null;
514
+ artifactSessionId: string | null;
515
+ reviewState: "pending" | "rejected" | "approved" | "taken_over" | "finalized";
516
+ reviewFeedbackCiphertext: {
517
+ t: string;
518
+ c: string;
519
+ } | null;
520
+ reviewedAt: string | null;
521
+ }, {
522
+ status: "running" | "completed" | "failed";
523
+ startedAt: string;
524
+ id: string;
525
+ createdAt: string;
526
+ prompt: string;
527
+ completedAt: string | null;
528
+ takeoverSessionId: string | null;
529
+ goalId: string;
530
+ roundIndex: number;
531
+ prevRoundId: string | null;
532
+ artifactSessionId: string | null;
533
+ reviewState: "pending" | "rejected" | "approved" | "taken_over" | "finalized";
534
+ reviewFeedbackCiphertext: {
535
+ t: string;
536
+ c: string;
537
+ } | null;
538
+ reviewedAt: string | null;
539
+ }>;
540
+ export type GoalRound = z.infer<typeof GoalRoundSchema>;
541
+ export declare const GoalSummarySchema: z.ZodObject<{
542
+ id: z.ZodString;
543
+ accountId: z.ZodString;
544
+ name: z.ZodString;
545
+ enabled: z.ZodBoolean;
546
+ status: z.ZodEnum<["draft", "running", "awaiting_review", "completed", "stalled", "cancelled"]>;
547
+ triggerType: z.ZodEnum<["manual", "cron"]>;
548
+ schedule: z.ZodNullable<z.ZodString>;
549
+ machineId: z.ZodNullable<z.ZodString>;
550
+ currentRound: z.ZodNumber;
551
+ maxRounds: z.ZodNumber;
552
+ nextRunAt: z.ZodNullable<z.ZodString>;
553
+ lastRunAt: z.ZodNullable<z.ZodString>;
554
+ completedAt: z.ZodNullable<z.ZodString>;
555
+ createdAt: z.ZodString;
556
+ }, "strip", z.ZodTypeAny, {
557
+ status: "running" | "completed" | "cancelled" | "draft" | "awaiting_review" | "stalled";
558
+ name: string;
559
+ id: string;
560
+ createdAt: string;
561
+ machineId: string | null;
562
+ triggerType: "manual" | "cron";
563
+ enabled: boolean;
564
+ schedule: string | null;
565
+ nextRunAt: string | null;
566
+ lastRunAt: string | null;
567
+ completedAt: string | null;
568
+ maxRounds: number;
569
+ accountId: string;
570
+ currentRound: number;
571
+ }, {
572
+ status: "running" | "completed" | "cancelled" | "draft" | "awaiting_review" | "stalled";
573
+ name: string;
574
+ id: string;
575
+ createdAt: string;
576
+ machineId: string | null;
577
+ triggerType: "manual" | "cron";
578
+ enabled: boolean;
579
+ schedule: string | null;
580
+ nextRunAt: string | null;
581
+ lastRunAt: string | null;
582
+ completedAt: string | null;
583
+ maxRounds: number;
584
+ accountId: string;
585
+ currentRound: number;
586
+ }>;
587
+ export type GoalSummary = z.infer<typeof GoalSummarySchema>;
588
+ export declare const GoalDetailSchema: z.ZodObject<{
589
+ id: z.ZodString;
590
+ accountId: z.ZodString;
591
+ name: z.ZodString;
592
+ enabled: z.ZodBoolean;
593
+ status: z.ZodEnum<["draft", "running", "awaiting_review", "completed", "stalled", "cancelled"]>;
594
+ triggerType: z.ZodEnum<["manual", "cron"]>;
595
+ schedule: z.ZodNullable<z.ZodString>;
596
+ machineId: z.ZodNullable<z.ZodString>;
597
+ currentRound: z.ZodNumber;
598
+ maxRounds: z.ZodNumber;
599
+ nextRunAt: z.ZodNullable<z.ZodString>;
600
+ lastRunAt: z.ZodNullable<z.ZodString>;
601
+ completedAt: z.ZodNullable<z.ZodString>;
602
+ createdAt: z.ZodString;
603
+ } & {
604
+ goal: z.ZodString;
605
+ prompt: z.ZodString;
606
+ spawnParams: z.ZodObject<{
607
+ model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
608
+ agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"]>>;
609
+ agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
610
+ cwd: z.ZodOptional<z.ZodString>;
611
+ prompt: z.ZodString;
612
+ startupScripts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
613
+ } & {
614
+ maxExecutionMs: z.ZodOptional<z.ZodNumber>;
615
+ retryPolicy: z.ZodOptional<z.ZodObject<{
616
+ maxRetries: z.ZodDefault<z.ZodNumber>;
617
+ retryDelayMs: z.ZodDefault<z.ZodNumber>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ maxRetries: number;
620
+ retryDelayMs: number;
621
+ }, {
622
+ maxRetries?: number | undefined;
623
+ retryDelayMs?: number | undefined;
624
+ }>>;
625
+ missedRunPolicy: z.ZodOptional<z.ZodEnum<["skip", "run-once"]>>;
626
+ circuitBreakerThreshold: z.ZodOptional<z.ZodNumber>;
627
+ }, "strip", z.ZodTypeAny, {
628
+ prompt: string;
629
+ model?: string | undefined;
630
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
631
+ agent?: string | undefined;
632
+ cwd?: string | undefined;
633
+ startupScripts?: string[] | undefined;
634
+ maxExecutionMs?: number | undefined;
635
+ retryPolicy?: {
636
+ maxRetries: number;
637
+ retryDelayMs: number;
638
+ } | undefined;
639
+ missedRunPolicy?: "skip" | "run-once" | undefined;
640
+ circuitBreakerThreshold?: number | undefined;
641
+ }, {
642
+ prompt: string;
643
+ model?: string | undefined;
644
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
645
+ agent?: string | undefined;
646
+ cwd?: string | undefined;
647
+ startupScripts?: string[] | undefined;
648
+ maxExecutionMs?: number | undefined;
649
+ retryPolicy?: {
650
+ maxRetries?: number | undefined;
651
+ retryDelayMs?: number | undefined;
652
+ } | undefined;
653
+ missedRunPolicy?: "skip" | "run-once" | undefined;
654
+ circuitBreakerThreshold?: number | undefined;
655
+ }>;
656
+ timeoutDays: z.ZodNullable<z.ZodNumber>;
657
+ consecutiveFailures: z.ZodNumber;
658
+ rounds: z.ZodArray<z.ZodObject<{
659
+ id: z.ZodString;
660
+ goalId: z.ZodString;
661
+ roundIndex: z.ZodNumber;
662
+ prevRoundId: z.ZodNullable<z.ZodString>;
663
+ artifactSessionId: z.ZodNullable<z.ZodString>;
664
+ prompt: z.ZodString;
665
+ status: z.ZodEnum<["running", "completed", "failed"]>;
666
+ reviewState: z.ZodEnum<["pending", "rejected", "approved", "taken_over", "finalized"]>;
667
+ reviewFeedbackCiphertext: z.ZodNullable<z.ZodObject<{
668
+ c: z.ZodString;
669
+ t: z.ZodString;
670
+ }, "strip", z.ZodTypeAny, {
671
+ t: string;
672
+ c: string;
673
+ }, {
674
+ t: string;
675
+ c: string;
676
+ }>>;
677
+ takeoverSessionId: z.ZodNullable<z.ZodString>;
678
+ startedAt: z.ZodString;
679
+ completedAt: z.ZodNullable<z.ZodString>;
680
+ reviewedAt: z.ZodNullable<z.ZodString>;
681
+ createdAt: z.ZodString;
682
+ }, "strip", z.ZodTypeAny, {
683
+ status: "running" | "completed" | "failed";
684
+ startedAt: string;
685
+ id: string;
686
+ createdAt: string;
687
+ prompt: string;
688
+ completedAt: string | null;
689
+ takeoverSessionId: string | null;
690
+ goalId: string;
691
+ roundIndex: number;
692
+ prevRoundId: string | null;
693
+ artifactSessionId: string | null;
694
+ reviewState: "pending" | "rejected" | "approved" | "taken_over" | "finalized";
695
+ reviewFeedbackCiphertext: {
696
+ t: string;
697
+ c: string;
698
+ } | null;
699
+ reviewedAt: string | null;
700
+ }, {
701
+ status: "running" | "completed" | "failed";
702
+ startedAt: string;
703
+ id: string;
704
+ createdAt: string;
705
+ prompt: string;
706
+ completedAt: string | null;
707
+ takeoverSessionId: string | null;
708
+ goalId: string;
709
+ roundIndex: number;
710
+ prevRoundId: string | null;
711
+ artifactSessionId: string | null;
712
+ reviewState: "pending" | "rejected" | "approved" | "taken_over" | "finalized";
713
+ reviewFeedbackCiphertext: {
714
+ t: string;
715
+ c: string;
716
+ } | null;
717
+ reviewedAt: string | null;
718
+ }>, "many">;
719
+ updatedAt: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ status: "running" | "completed" | "cancelled" | "draft" | "awaiting_review" | "stalled";
722
+ name: string;
723
+ id: string;
724
+ createdAt: string;
725
+ updatedAt: string;
726
+ prompt: string;
727
+ machineId: string | null;
728
+ goal: string;
729
+ triggerType: "manual" | "cron";
730
+ enabled: boolean;
731
+ spawnParams: {
732
+ prompt: string;
733
+ model?: string | undefined;
734
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
735
+ agent?: string | undefined;
736
+ cwd?: string | undefined;
737
+ startupScripts?: string[] | undefined;
738
+ maxExecutionMs?: number | undefined;
739
+ retryPolicy?: {
740
+ maxRetries: number;
741
+ retryDelayMs: number;
742
+ } | undefined;
743
+ missedRunPolicy?: "skip" | "run-once" | undefined;
744
+ circuitBreakerThreshold?: number | undefined;
745
+ };
746
+ schedule: string | null;
747
+ nextRunAt: string | null;
748
+ lastRunAt: string | null;
749
+ consecutiveFailures: number;
750
+ completedAt: string | null;
751
+ maxRounds: number;
752
+ timeoutDays: number | null;
753
+ accountId: string;
754
+ currentRound: number;
755
+ rounds: {
756
+ status: "running" | "completed" | "failed";
757
+ startedAt: string;
758
+ id: string;
759
+ createdAt: string;
760
+ prompt: string;
761
+ completedAt: string | null;
762
+ takeoverSessionId: string | null;
763
+ goalId: string;
764
+ roundIndex: number;
765
+ prevRoundId: string | null;
766
+ artifactSessionId: string | null;
767
+ reviewState: "pending" | "rejected" | "approved" | "taken_over" | "finalized";
768
+ reviewFeedbackCiphertext: {
769
+ t: string;
770
+ c: string;
771
+ } | null;
772
+ reviewedAt: string | null;
773
+ }[];
774
+ }, {
775
+ status: "running" | "completed" | "cancelled" | "draft" | "awaiting_review" | "stalled";
776
+ name: string;
777
+ id: string;
778
+ createdAt: string;
779
+ updatedAt: string;
780
+ prompt: string;
781
+ machineId: string | null;
782
+ goal: string;
783
+ triggerType: "manual" | "cron";
784
+ enabled: boolean;
785
+ spawnParams: {
786
+ prompt: string;
787
+ model?: string | undefined;
788
+ agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
789
+ agent?: string | undefined;
790
+ cwd?: string | undefined;
791
+ startupScripts?: string[] | undefined;
792
+ maxExecutionMs?: number | undefined;
793
+ retryPolicy?: {
794
+ maxRetries?: number | undefined;
795
+ retryDelayMs?: number | undefined;
796
+ } | undefined;
797
+ missedRunPolicy?: "skip" | "run-once" | undefined;
798
+ circuitBreakerThreshold?: number | undefined;
799
+ };
800
+ schedule: string | null;
801
+ nextRunAt: string | null;
802
+ lastRunAt: string | null;
803
+ consecutiveFailures: number;
804
+ completedAt: string | null;
805
+ maxRounds: number;
806
+ timeoutDays: number | null;
807
+ accountId: string;
808
+ currentRound: number;
809
+ rounds: {
810
+ status: "running" | "completed" | "failed";
811
+ startedAt: string;
812
+ id: string;
813
+ createdAt: string;
814
+ prompt: string;
815
+ completedAt: string | null;
816
+ takeoverSessionId: string | null;
817
+ goalId: string;
818
+ roundIndex: number;
819
+ prevRoundId: string | null;
820
+ artifactSessionId: string | null;
821
+ reviewState: "pending" | "rejected" | "approved" | "taken_over" | "finalized";
822
+ reviewFeedbackCiphertext: {
823
+ t: string;
824
+ c: string;
825
+ } | null;
826
+ reviewedAt: string | null;
827
+ }[];
828
+ }>;
829
+ export type GoalDetail = z.infer<typeof GoalDetailSchema>;
830
+ //# sourceMappingURL=goals.d.ts.map