@getpaseo/protocol 0.1.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +12 -0
  2. package/dist/agent-attention-notification.d.ts +41 -0
  3. package/dist/agent-attention-notification.js +140 -0
  4. package/dist/agent-labels.d.ts +2 -0
  5. package/dist/agent-labels.js +2 -0
  6. package/dist/agent-lifecycle.d.ts +3 -0
  7. package/dist/agent-lifecycle.js +8 -0
  8. package/dist/agent-state-bucket.d.ts +13 -0
  9. package/dist/agent-state-bucket.js +41 -0
  10. package/dist/agent-title-limits.d.ts +3 -0
  11. package/dist/agent-title-limits.js +3 -0
  12. package/dist/agent-types.d.ts +421 -0
  13. package/dist/agent-types.js +22 -0
  14. package/dist/binary-frames/file-transfer.d.ts +56 -0
  15. package/dist/binary-frames/file-transfer.js +108 -0
  16. package/dist/binary-frames/index.d.ts +3 -0
  17. package/dist/binary-frames/index.js +3 -0
  18. package/dist/binary-frames/terminal.d.ts +37 -0
  19. package/dist/binary-frames/terminal.js +101 -0
  20. package/dist/chat/rpc-schemas.d.ts +728 -0
  21. package/dist/chat/rpc-schemas.js +103 -0
  22. package/dist/chat/types.d.ts +75 -0
  23. package/dist/chat/types.js +22 -0
  24. package/dist/client-capabilities.d.ts +6 -0
  25. package/dist/client-capabilities.js +9 -0
  26. package/dist/connection-offer.d.ts +80 -0
  27. package/dist/connection-offer.js +53 -0
  28. package/dist/daemon-endpoints.d.ts +47 -0
  29. package/dist/daemon-endpoints.js +201 -0
  30. package/dist/error-utils.d.ts +11 -0
  31. package/dist/error-utils.js +27 -0
  32. package/dist/git-remote.d.ts +16 -0
  33. package/dist/git-remote.js +72 -0
  34. package/dist/host-connection-schema.d.ts +23 -0
  35. package/dist/host-connection-schema.js +9 -0
  36. package/dist/importable-providers.d.ts +7 -0
  37. package/dist/importable-providers.js +7 -0
  38. package/dist/literal-union.d.ts +2 -0
  39. package/dist/literal-union.js +2 -0
  40. package/dist/loop/rpc-schemas.d.ts +3005 -0
  41. package/dist/loop/rpc-schemas.js +163 -0
  42. package/dist/messages.d.ts +144995 -0
  43. package/dist/messages.js +3338 -0
  44. package/dist/paseo-config-schema.d.ts +915 -0
  45. package/dist/paseo-config-schema.js +77 -0
  46. package/dist/path-utils.d.ts +2 -0
  47. package/dist/path-utils.js +16 -0
  48. package/dist/provider-config.d.ts +602 -0
  49. package/dist/provider-config.js +123 -0
  50. package/dist/provider-manifest.d.ts +33 -0
  51. package/dist/provider-manifest.js +219 -0
  52. package/dist/schedule/rpc-schemas.d.ts +3993 -0
  53. package/dist/schedule/rpc-schemas.js +151 -0
  54. package/dist/schedule/types.d.ts +745 -0
  55. package/dist/schedule/types.js +74 -0
  56. package/dist/terminal-input-mode.d.ts +26 -0
  57. package/dist/terminal-input-mode.js +151 -0
  58. package/dist/terminal-key-input.d.ts +13 -0
  59. package/dist/terminal-key-input.js +201 -0
  60. package/dist/terminal-snapshot.d.ts +3 -0
  61. package/dist/terminal-snapshot.js +165 -0
  62. package/dist/terminal-stream-protocol.d.ts +2 -0
  63. package/dist/terminal-stream-protocol.js +2 -0
  64. package/dist/tool-call-display.d.ts +11 -0
  65. package/dist/tool-call-display.js +135 -0
  66. package/dist/tool-name-normalization.d.ts +9 -0
  67. package/dist/tool-name-normalization.js +82 -0
  68. package/package.json +34 -0
@@ -0,0 +1,745 @@
1
+ import { z } from "zod";
2
+ export declare const ScheduleStatusSchema: z.ZodEnum<["active", "paused", "completed"]>;
3
+ export type ScheduleStatus = z.infer<typeof ScheduleStatusSchema>;
4
+ export declare const ScheduleCadenceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5
+ type: z.ZodLiteral<"every">;
6
+ everyMs: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: "every";
9
+ everyMs: number;
10
+ }, {
11
+ type: "every";
12
+ everyMs: number;
13
+ }>, z.ZodObject<{
14
+ type: z.ZodLiteral<"cron">;
15
+ expression: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: "cron";
18
+ expression: string;
19
+ }, {
20
+ type: "cron";
21
+ expression: string;
22
+ }>]>;
23
+ export type ScheduleCadence = z.infer<typeof ScheduleCadenceSchema>;
24
+ export declare const ScheduleTargetSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
25
+ type: z.ZodLiteral<"agent">;
26
+ agentId: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ agentId: string;
29
+ type: "agent";
30
+ }, {
31
+ agentId: string;
32
+ type: "agent";
33
+ }>, z.ZodObject<{
34
+ type: z.ZodLiteral<"new-agent">;
35
+ config: z.ZodObject<{
36
+ provider: z.ZodString;
37
+ cwd: z.ZodString;
38
+ modeId: z.ZodOptional<z.ZodString>;
39
+ model: z.ZodOptional<z.ZodString>;
40
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
41
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ approvalPolicy: z.ZodOptional<z.ZodString>;
43
+ sandboxMode: z.ZodOptional<z.ZodString>;
44
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
45
+ webSearch: z.ZodOptional<z.ZodBoolean>;
46
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
47
+ extra: z.ZodOptional<z.ZodObject<{
48
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
49
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ claude?: Record<string, unknown> | undefined;
52
+ codex?: Record<string, unknown> | undefined;
53
+ }, {
54
+ claude?: Record<string, unknown> | undefined;
55
+ codex?: Record<string, unknown> | undefined;
56
+ }>>;
57
+ systemPrompt: z.ZodOptional<z.ZodString>;
58
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ cwd: string;
61
+ provider: string;
62
+ title?: string | null | undefined;
63
+ modeId?: string | undefined;
64
+ model?: string | undefined;
65
+ thinkingOptionId?: string | undefined;
66
+ approvalPolicy?: string | undefined;
67
+ sandboxMode?: string | undefined;
68
+ networkAccess?: boolean | undefined;
69
+ webSearch?: boolean | undefined;
70
+ featureValues?: Record<string, unknown> | undefined;
71
+ extra?: {
72
+ claude?: Record<string, unknown> | undefined;
73
+ codex?: Record<string, unknown> | undefined;
74
+ } | undefined;
75
+ systemPrompt?: string | undefined;
76
+ mcpServers?: Record<string, unknown> | undefined;
77
+ }, {
78
+ cwd: string;
79
+ provider: string;
80
+ title?: string | null | undefined;
81
+ modeId?: string | undefined;
82
+ model?: string | undefined;
83
+ thinkingOptionId?: string | undefined;
84
+ approvalPolicy?: string | undefined;
85
+ sandboxMode?: string | undefined;
86
+ networkAccess?: boolean | undefined;
87
+ webSearch?: boolean | undefined;
88
+ featureValues?: Record<string, unknown> | undefined;
89
+ extra?: {
90
+ claude?: Record<string, unknown> | undefined;
91
+ codex?: Record<string, unknown> | undefined;
92
+ } | undefined;
93
+ systemPrompt?: string | undefined;
94
+ mcpServers?: Record<string, unknown> | undefined;
95
+ }>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ type: "new-agent";
98
+ config: {
99
+ cwd: string;
100
+ provider: string;
101
+ title?: string | null | undefined;
102
+ modeId?: string | undefined;
103
+ model?: string | undefined;
104
+ thinkingOptionId?: string | undefined;
105
+ approvalPolicy?: string | undefined;
106
+ sandboxMode?: string | undefined;
107
+ networkAccess?: boolean | undefined;
108
+ webSearch?: boolean | undefined;
109
+ featureValues?: Record<string, unknown> | undefined;
110
+ extra?: {
111
+ claude?: Record<string, unknown> | undefined;
112
+ codex?: Record<string, unknown> | undefined;
113
+ } | undefined;
114
+ systemPrompt?: string | undefined;
115
+ mcpServers?: Record<string, unknown> | undefined;
116
+ };
117
+ }, {
118
+ type: "new-agent";
119
+ config: {
120
+ cwd: string;
121
+ provider: string;
122
+ title?: string | null | undefined;
123
+ modeId?: string | undefined;
124
+ model?: string | undefined;
125
+ thinkingOptionId?: string | undefined;
126
+ approvalPolicy?: string | undefined;
127
+ sandboxMode?: string | undefined;
128
+ networkAccess?: boolean | undefined;
129
+ webSearch?: boolean | undefined;
130
+ featureValues?: Record<string, unknown> | undefined;
131
+ extra?: {
132
+ claude?: Record<string, unknown> | undefined;
133
+ codex?: Record<string, unknown> | undefined;
134
+ } | undefined;
135
+ systemPrompt?: string | undefined;
136
+ mcpServers?: Record<string, unknown> | undefined;
137
+ };
138
+ }>]>;
139
+ export type ScheduleTarget = z.infer<typeof ScheduleTargetSchema>;
140
+ export declare const ScheduleRunSchema: z.ZodObject<{
141
+ id: z.ZodString;
142
+ scheduledFor: z.ZodString;
143
+ startedAt: z.ZodString;
144
+ endedAt: z.ZodNullable<z.ZodString>;
145
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
146
+ agentId: z.ZodNullable<z.ZodString>;
147
+ output: z.ZodNullable<z.ZodString>;
148
+ error: z.ZodNullable<z.ZodString>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ error: string | null;
151
+ agentId: string | null;
152
+ status: "running" | "failed" | "succeeded";
153
+ id: string;
154
+ scheduledFor: string;
155
+ startedAt: string;
156
+ endedAt: string | null;
157
+ output: string | null;
158
+ }, {
159
+ error: string | null;
160
+ agentId: string | null;
161
+ status: "running" | "failed" | "succeeded";
162
+ id: string;
163
+ scheduledFor: string;
164
+ startedAt: string;
165
+ endedAt: string | null;
166
+ output: string | null;
167
+ }>;
168
+ export type ScheduleRun = z.infer<typeof ScheduleRunSchema>;
169
+ export declare const StoredScheduleSchema: z.ZodObject<{
170
+ id: z.ZodString;
171
+ name: z.ZodNullable<z.ZodString>;
172
+ prompt: z.ZodString;
173
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
174
+ type: z.ZodLiteral<"every">;
175
+ everyMs: z.ZodNumber;
176
+ }, "strip", z.ZodTypeAny, {
177
+ type: "every";
178
+ everyMs: number;
179
+ }, {
180
+ type: "every";
181
+ everyMs: number;
182
+ }>, z.ZodObject<{
183
+ type: z.ZodLiteral<"cron">;
184
+ expression: z.ZodString;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: "cron";
187
+ expression: string;
188
+ }, {
189
+ type: "cron";
190
+ expression: string;
191
+ }>]>;
192
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
193
+ type: z.ZodLiteral<"agent">;
194
+ agentId: z.ZodString;
195
+ }, "strip", z.ZodTypeAny, {
196
+ agentId: string;
197
+ type: "agent";
198
+ }, {
199
+ agentId: string;
200
+ type: "agent";
201
+ }>, z.ZodObject<{
202
+ type: z.ZodLiteral<"new-agent">;
203
+ config: z.ZodObject<{
204
+ provider: z.ZodString;
205
+ cwd: z.ZodString;
206
+ modeId: z.ZodOptional<z.ZodString>;
207
+ model: z.ZodOptional<z.ZodString>;
208
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
209
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ approvalPolicy: z.ZodOptional<z.ZodString>;
211
+ sandboxMode: z.ZodOptional<z.ZodString>;
212
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
213
+ webSearch: z.ZodOptional<z.ZodBoolean>;
214
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
215
+ extra: z.ZodOptional<z.ZodObject<{
216
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
217
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ claude?: Record<string, unknown> | undefined;
220
+ codex?: Record<string, unknown> | undefined;
221
+ }, {
222
+ claude?: Record<string, unknown> | undefined;
223
+ codex?: Record<string, unknown> | undefined;
224
+ }>>;
225
+ systemPrompt: z.ZodOptional<z.ZodString>;
226
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ cwd: string;
229
+ provider: string;
230
+ title?: string | null | undefined;
231
+ modeId?: string | undefined;
232
+ model?: string | undefined;
233
+ thinkingOptionId?: string | undefined;
234
+ approvalPolicy?: string | undefined;
235
+ sandboxMode?: string | undefined;
236
+ networkAccess?: boolean | undefined;
237
+ webSearch?: boolean | undefined;
238
+ featureValues?: Record<string, unknown> | undefined;
239
+ extra?: {
240
+ claude?: Record<string, unknown> | undefined;
241
+ codex?: Record<string, unknown> | undefined;
242
+ } | undefined;
243
+ systemPrompt?: string | undefined;
244
+ mcpServers?: Record<string, unknown> | undefined;
245
+ }, {
246
+ cwd: string;
247
+ provider: string;
248
+ title?: string | null | undefined;
249
+ modeId?: string | undefined;
250
+ model?: string | undefined;
251
+ thinkingOptionId?: string | undefined;
252
+ approvalPolicy?: string | undefined;
253
+ sandboxMode?: string | undefined;
254
+ networkAccess?: boolean | undefined;
255
+ webSearch?: boolean | undefined;
256
+ featureValues?: Record<string, unknown> | undefined;
257
+ extra?: {
258
+ claude?: Record<string, unknown> | undefined;
259
+ codex?: Record<string, unknown> | undefined;
260
+ } | undefined;
261
+ systemPrompt?: string | undefined;
262
+ mcpServers?: Record<string, unknown> | undefined;
263
+ }>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ type: "new-agent";
266
+ config: {
267
+ cwd: string;
268
+ provider: string;
269
+ title?: string | null | undefined;
270
+ modeId?: string | undefined;
271
+ model?: string | undefined;
272
+ thinkingOptionId?: string | undefined;
273
+ approvalPolicy?: string | undefined;
274
+ sandboxMode?: string | undefined;
275
+ networkAccess?: boolean | undefined;
276
+ webSearch?: boolean | undefined;
277
+ featureValues?: Record<string, unknown> | undefined;
278
+ extra?: {
279
+ claude?: Record<string, unknown> | undefined;
280
+ codex?: Record<string, unknown> | undefined;
281
+ } | undefined;
282
+ systemPrompt?: string | undefined;
283
+ mcpServers?: Record<string, unknown> | undefined;
284
+ };
285
+ }, {
286
+ type: "new-agent";
287
+ config: {
288
+ cwd: string;
289
+ provider: string;
290
+ title?: string | null | undefined;
291
+ modeId?: string | undefined;
292
+ model?: string | undefined;
293
+ thinkingOptionId?: string | undefined;
294
+ approvalPolicy?: string | undefined;
295
+ sandboxMode?: string | undefined;
296
+ networkAccess?: boolean | undefined;
297
+ webSearch?: boolean | undefined;
298
+ featureValues?: Record<string, unknown> | undefined;
299
+ extra?: {
300
+ claude?: Record<string, unknown> | undefined;
301
+ codex?: Record<string, unknown> | undefined;
302
+ } | undefined;
303
+ systemPrompt?: string | undefined;
304
+ mcpServers?: Record<string, unknown> | undefined;
305
+ };
306
+ }>]>;
307
+ status: z.ZodEnum<["active", "paused", "completed"]>;
308
+ createdAt: z.ZodString;
309
+ updatedAt: z.ZodString;
310
+ nextRunAt: z.ZodNullable<z.ZodString>;
311
+ lastRunAt: z.ZodNullable<z.ZodString>;
312
+ pausedAt: z.ZodNullable<z.ZodString>;
313
+ expiresAt: z.ZodNullable<z.ZodString>;
314
+ maxRuns: z.ZodNullable<z.ZodNumber>;
315
+ runs: z.ZodArray<z.ZodObject<{
316
+ id: z.ZodString;
317
+ scheduledFor: z.ZodString;
318
+ startedAt: z.ZodString;
319
+ endedAt: z.ZodNullable<z.ZodString>;
320
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
321
+ agentId: z.ZodNullable<z.ZodString>;
322
+ output: z.ZodNullable<z.ZodString>;
323
+ error: z.ZodNullable<z.ZodString>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ error: string | null;
326
+ agentId: string | null;
327
+ status: "running" | "failed" | "succeeded";
328
+ id: string;
329
+ scheduledFor: string;
330
+ startedAt: string;
331
+ endedAt: string | null;
332
+ output: string | null;
333
+ }, {
334
+ error: string | null;
335
+ agentId: string | null;
336
+ status: "running" | "failed" | "succeeded";
337
+ id: string;
338
+ scheduledFor: string;
339
+ startedAt: string;
340
+ endedAt: string | null;
341
+ output: string | null;
342
+ }>, "many">;
343
+ }, "strip", z.ZodTypeAny, {
344
+ name: string | null;
345
+ status: "completed" | "active" | "paused";
346
+ id: string;
347
+ createdAt: string;
348
+ updatedAt: string;
349
+ prompt: string;
350
+ cadence: {
351
+ type: "every";
352
+ everyMs: number;
353
+ } | {
354
+ type: "cron";
355
+ expression: string;
356
+ };
357
+ target: {
358
+ agentId: string;
359
+ type: "agent";
360
+ } | {
361
+ type: "new-agent";
362
+ config: {
363
+ cwd: string;
364
+ provider: string;
365
+ title?: string | null | undefined;
366
+ modeId?: string | undefined;
367
+ model?: string | undefined;
368
+ thinkingOptionId?: string | undefined;
369
+ approvalPolicy?: string | undefined;
370
+ sandboxMode?: string | undefined;
371
+ networkAccess?: boolean | undefined;
372
+ webSearch?: boolean | undefined;
373
+ featureValues?: Record<string, unknown> | undefined;
374
+ extra?: {
375
+ claude?: Record<string, unknown> | undefined;
376
+ codex?: Record<string, unknown> | undefined;
377
+ } | undefined;
378
+ systemPrompt?: string | undefined;
379
+ mcpServers?: Record<string, unknown> | undefined;
380
+ };
381
+ };
382
+ nextRunAt: string | null;
383
+ lastRunAt: string | null;
384
+ pausedAt: string | null;
385
+ expiresAt: string | null;
386
+ maxRuns: number | null;
387
+ runs: {
388
+ error: string | null;
389
+ agentId: string | null;
390
+ status: "running" | "failed" | "succeeded";
391
+ id: string;
392
+ scheduledFor: string;
393
+ startedAt: string;
394
+ endedAt: string | null;
395
+ output: string | null;
396
+ }[];
397
+ }, {
398
+ name: string | null;
399
+ status: "completed" | "active" | "paused";
400
+ id: string;
401
+ createdAt: string;
402
+ updatedAt: string;
403
+ prompt: string;
404
+ cadence: {
405
+ type: "every";
406
+ everyMs: number;
407
+ } | {
408
+ type: "cron";
409
+ expression: string;
410
+ };
411
+ target: {
412
+ agentId: string;
413
+ type: "agent";
414
+ } | {
415
+ type: "new-agent";
416
+ config: {
417
+ cwd: string;
418
+ provider: string;
419
+ title?: string | null | undefined;
420
+ modeId?: string | undefined;
421
+ model?: string | undefined;
422
+ thinkingOptionId?: string | undefined;
423
+ approvalPolicy?: string | undefined;
424
+ sandboxMode?: string | undefined;
425
+ networkAccess?: boolean | undefined;
426
+ webSearch?: boolean | undefined;
427
+ featureValues?: Record<string, unknown> | undefined;
428
+ extra?: {
429
+ claude?: Record<string, unknown> | undefined;
430
+ codex?: Record<string, unknown> | undefined;
431
+ } | undefined;
432
+ systemPrompt?: string | undefined;
433
+ mcpServers?: Record<string, unknown> | undefined;
434
+ };
435
+ };
436
+ nextRunAt: string | null;
437
+ lastRunAt: string | null;
438
+ pausedAt: string | null;
439
+ expiresAt: string | null;
440
+ maxRuns: number | null;
441
+ runs: {
442
+ error: string | null;
443
+ agentId: string | null;
444
+ status: "running" | "failed" | "succeeded";
445
+ id: string;
446
+ scheduledFor: string;
447
+ startedAt: string;
448
+ endedAt: string | null;
449
+ output: string | null;
450
+ }[];
451
+ }>;
452
+ export type StoredSchedule = z.infer<typeof StoredScheduleSchema>;
453
+ export declare const ScheduleSummarySchema: z.ZodObject<Omit<{
454
+ id: z.ZodString;
455
+ name: z.ZodNullable<z.ZodString>;
456
+ prompt: z.ZodString;
457
+ cadence: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
458
+ type: z.ZodLiteral<"every">;
459
+ everyMs: z.ZodNumber;
460
+ }, "strip", z.ZodTypeAny, {
461
+ type: "every";
462
+ everyMs: number;
463
+ }, {
464
+ type: "every";
465
+ everyMs: number;
466
+ }>, z.ZodObject<{
467
+ type: z.ZodLiteral<"cron">;
468
+ expression: z.ZodString;
469
+ }, "strip", z.ZodTypeAny, {
470
+ type: "cron";
471
+ expression: string;
472
+ }, {
473
+ type: "cron";
474
+ expression: string;
475
+ }>]>;
476
+ target: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
477
+ type: z.ZodLiteral<"agent">;
478
+ agentId: z.ZodString;
479
+ }, "strip", z.ZodTypeAny, {
480
+ agentId: string;
481
+ type: "agent";
482
+ }, {
483
+ agentId: string;
484
+ type: "agent";
485
+ }>, z.ZodObject<{
486
+ type: z.ZodLiteral<"new-agent">;
487
+ config: z.ZodObject<{
488
+ provider: z.ZodString;
489
+ cwd: z.ZodString;
490
+ modeId: z.ZodOptional<z.ZodString>;
491
+ model: z.ZodOptional<z.ZodString>;
492
+ thinkingOptionId: z.ZodOptional<z.ZodString>;
493
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
494
+ approvalPolicy: z.ZodOptional<z.ZodString>;
495
+ sandboxMode: z.ZodOptional<z.ZodString>;
496
+ networkAccess: z.ZodOptional<z.ZodBoolean>;
497
+ webSearch: z.ZodOptional<z.ZodBoolean>;
498
+ featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
499
+ extra: z.ZodOptional<z.ZodObject<{
500
+ codex: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
501
+ claude: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ claude?: Record<string, unknown> | undefined;
504
+ codex?: Record<string, unknown> | undefined;
505
+ }, {
506
+ claude?: Record<string, unknown> | undefined;
507
+ codex?: Record<string, unknown> | undefined;
508
+ }>>;
509
+ systemPrompt: z.ZodOptional<z.ZodString>;
510
+ mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ cwd: string;
513
+ provider: string;
514
+ title?: string | null | undefined;
515
+ modeId?: string | undefined;
516
+ model?: string | undefined;
517
+ thinkingOptionId?: string | undefined;
518
+ approvalPolicy?: string | undefined;
519
+ sandboxMode?: string | undefined;
520
+ networkAccess?: boolean | undefined;
521
+ webSearch?: boolean | undefined;
522
+ featureValues?: Record<string, unknown> | undefined;
523
+ extra?: {
524
+ claude?: Record<string, unknown> | undefined;
525
+ codex?: Record<string, unknown> | undefined;
526
+ } | undefined;
527
+ systemPrompt?: string | undefined;
528
+ mcpServers?: Record<string, unknown> | undefined;
529
+ }, {
530
+ cwd: string;
531
+ provider: string;
532
+ title?: string | null | undefined;
533
+ modeId?: string | undefined;
534
+ model?: string | undefined;
535
+ thinkingOptionId?: string | undefined;
536
+ approvalPolicy?: string | undefined;
537
+ sandboxMode?: string | undefined;
538
+ networkAccess?: boolean | undefined;
539
+ webSearch?: boolean | undefined;
540
+ featureValues?: Record<string, unknown> | undefined;
541
+ extra?: {
542
+ claude?: Record<string, unknown> | undefined;
543
+ codex?: Record<string, unknown> | undefined;
544
+ } | undefined;
545
+ systemPrompt?: string | undefined;
546
+ mcpServers?: Record<string, unknown> | undefined;
547
+ }>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ type: "new-agent";
550
+ config: {
551
+ cwd: string;
552
+ provider: string;
553
+ title?: string | null | undefined;
554
+ modeId?: string | undefined;
555
+ model?: string | undefined;
556
+ thinkingOptionId?: string | undefined;
557
+ approvalPolicy?: string | undefined;
558
+ sandboxMode?: string | undefined;
559
+ networkAccess?: boolean | undefined;
560
+ webSearch?: boolean | undefined;
561
+ featureValues?: Record<string, unknown> | undefined;
562
+ extra?: {
563
+ claude?: Record<string, unknown> | undefined;
564
+ codex?: Record<string, unknown> | undefined;
565
+ } | undefined;
566
+ systemPrompt?: string | undefined;
567
+ mcpServers?: Record<string, unknown> | undefined;
568
+ };
569
+ }, {
570
+ type: "new-agent";
571
+ config: {
572
+ cwd: string;
573
+ provider: string;
574
+ title?: string | null | undefined;
575
+ modeId?: string | undefined;
576
+ model?: string | undefined;
577
+ thinkingOptionId?: string | undefined;
578
+ approvalPolicy?: string | undefined;
579
+ sandboxMode?: string | undefined;
580
+ networkAccess?: boolean | undefined;
581
+ webSearch?: boolean | undefined;
582
+ featureValues?: Record<string, unknown> | undefined;
583
+ extra?: {
584
+ claude?: Record<string, unknown> | undefined;
585
+ codex?: Record<string, unknown> | undefined;
586
+ } | undefined;
587
+ systemPrompt?: string | undefined;
588
+ mcpServers?: Record<string, unknown> | undefined;
589
+ };
590
+ }>]>;
591
+ status: z.ZodEnum<["active", "paused", "completed"]>;
592
+ createdAt: z.ZodString;
593
+ updatedAt: z.ZodString;
594
+ nextRunAt: z.ZodNullable<z.ZodString>;
595
+ lastRunAt: z.ZodNullable<z.ZodString>;
596
+ pausedAt: z.ZodNullable<z.ZodString>;
597
+ expiresAt: z.ZodNullable<z.ZodString>;
598
+ maxRuns: z.ZodNullable<z.ZodNumber>;
599
+ runs: z.ZodArray<z.ZodObject<{
600
+ id: z.ZodString;
601
+ scheduledFor: z.ZodString;
602
+ startedAt: z.ZodString;
603
+ endedAt: z.ZodNullable<z.ZodString>;
604
+ status: z.ZodEnum<["running", "succeeded", "failed"]>;
605
+ agentId: z.ZodNullable<z.ZodString>;
606
+ output: z.ZodNullable<z.ZodString>;
607
+ error: z.ZodNullable<z.ZodString>;
608
+ }, "strip", z.ZodTypeAny, {
609
+ error: string | null;
610
+ agentId: string | null;
611
+ status: "running" | "failed" | "succeeded";
612
+ id: string;
613
+ scheduledFor: string;
614
+ startedAt: string;
615
+ endedAt: string | null;
616
+ output: string | null;
617
+ }, {
618
+ error: string | null;
619
+ agentId: string | null;
620
+ status: "running" | "failed" | "succeeded";
621
+ id: string;
622
+ scheduledFor: string;
623
+ startedAt: string;
624
+ endedAt: string | null;
625
+ output: string | null;
626
+ }>, "many">;
627
+ }, "runs">, "strip", z.ZodTypeAny, {
628
+ name: string | null;
629
+ status: "completed" | "active" | "paused";
630
+ id: string;
631
+ createdAt: string;
632
+ updatedAt: string;
633
+ prompt: string;
634
+ cadence: {
635
+ type: "every";
636
+ everyMs: number;
637
+ } | {
638
+ type: "cron";
639
+ expression: string;
640
+ };
641
+ target: {
642
+ agentId: string;
643
+ type: "agent";
644
+ } | {
645
+ type: "new-agent";
646
+ config: {
647
+ cwd: string;
648
+ provider: string;
649
+ title?: string | null | undefined;
650
+ modeId?: string | undefined;
651
+ model?: string | undefined;
652
+ thinkingOptionId?: string | undefined;
653
+ approvalPolicy?: string | undefined;
654
+ sandboxMode?: string | undefined;
655
+ networkAccess?: boolean | undefined;
656
+ webSearch?: boolean | undefined;
657
+ featureValues?: Record<string, unknown> | undefined;
658
+ extra?: {
659
+ claude?: Record<string, unknown> | undefined;
660
+ codex?: Record<string, unknown> | undefined;
661
+ } | undefined;
662
+ systemPrompt?: string | undefined;
663
+ mcpServers?: Record<string, unknown> | undefined;
664
+ };
665
+ };
666
+ nextRunAt: string | null;
667
+ lastRunAt: string | null;
668
+ pausedAt: string | null;
669
+ expiresAt: string | null;
670
+ maxRuns: number | null;
671
+ }, {
672
+ name: string | null;
673
+ status: "completed" | "active" | "paused";
674
+ id: string;
675
+ createdAt: string;
676
+ updatedAt: string;
677
+ prompt: string;
678
+ cadence: {
679
+ type: "every";
680
+ everyMs: number;
681
+ } | {
682
+ type: "cron";
683
+ expression: string;
684
+ };
685
+ target: {
686
+ agentId: string;
687
+ type: "agent";
688
+ } | {
689
+ type: "new-agent";
690
+ config: {
691
+ cwd: string;
692
+ provider: string;
693
+ title?: string | null | undefined;
694
+ modeId?: string | undefined;
695
+ model?: string | undefined;
696
+ thinkingOptionId?: string | undefined;
697
+ approvalPolicy?: string | undefined;
698
+ sandboxMode?: string | undefined;
699
+ networkAccess?: boolean | undefined;
700
+ webSearch?: boolean | undefined;
701
+ featureValues?: Record<string, unknown> | undefined;
702
+ extra?: {
703
+ claude?: Record<string, unknown> | undefined;
704
+ codex?: Record<string, unknown> | undefined;
705
+ } | undefined;
706
+ systemPrompt?: string | undefined;
707
+ mcpServers?: Record<string, unknown> | undefined;
708
+ };
709
+ };
710
+ nextRunAt: string | null;
711
+ lastRunAt: string | null;
712
+ pausedAt: string | null;
713
+ expiresAt: string | null;
714
+ maxRuns: number | null;
715
+ }>;
716
+ export type ScheduleSummary = z.infer<typeof ScheduleSummarySchema>;
717
+ export interface CreateScheduleInput {
718
+ name?: string | null;
719
+ prompt: string;
720
+ cadence: ScheduleCadence;
721
+ target: ScheduleTarget;
722
+ maxRuns?: number | null;
723
+ expiresAt?: string | null;
724
+ runOnCreate?: boolean | null;
725
+ }
726
+ export interface UpdateScheduleNewAgentConfig {
727
+ provider?: string;
728
+ model?: string | null;
729
+ modeId?: string | null;
730
+ cwd?: string;
731
+ }
732
+ export interface UpdateScheduleInput {
733
+ id: string;
734
+ name?: string | null;
735
+ prompt?: string;
736
+ cadence?: ScheduleCadence;
737
+ newAgentConfig?: UpdateScheduleNewAgentConfig;
738
+ maxRuns?: number | null;
739
+ expiresAt?: string | null;
740
+ }
741
+ export interface ScheduleExecutionResult {
742
+ agentId: string | null;
743
+ output: string | null;
744
+ }
745
+ //# sourceMappingURL=types.d.ts.map