@lineai/agent-platform-types 0.1.1 → 0.1.2

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.
@@ -1,1385 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Task schemas — three distinct shapes:
4
- *
5
- * 1. TaskSubmissionSchema — slim shape clients send to the API. Plugin
6
- * defaults supply most config; only per-task
7
- * inputs and overrides are required.
8
- *
9
- * 2. ResolvedTaskDefinitionSchema — rich shape produced by the orchestrator
10
- * merger and consumed by the runtime. This is
11
- * what gets written to GCS as definition.json.
12
- *
13
- * 3. TaskRunMcpServerConfigSchema / RuntimeSubagentSchema — pieces shared by
14
- * both shapes.
15
- */
16
- export declare const RuntimeMcpServerConfigSchema: z.ZodObject<{
17
- type: z.ZodEnum<["stdio", "http"]>;
18
- command: z.ZodOptional<z.ZodString>;
19
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
- url: z.ZodOptional<z.ZodString>;
21
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
22
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23
- description: z.ZodOptional<z.ZodString>;
24
- }, "strip", z.ZodTypeAny, {
25
- type: "http" | "stdio";
26
- url?: string | undefined;
27
- description?: string | undefined;
28
- args?: string[] | undefined;
29
- headers?: Record<string, string> | undefined;
30
- command?: string | undefined;
31
- env?: Record<string, string> | undefined;
32
- }, {
33
- type: "http" | "stdio";
34
- url?: string | undefined;
35
- description?: string | undefined;
36
- args?: string[] | undefined;
37
- headers?: Record<string, string> | undefined;
38
- command?: string | undefined;
39
- env?: Record<string, string> | undefined;
40
- }>;
41
- export type RuntimeMcpServerConfig = z.infer<typeof RuntimeMcpServerConfigSchema>;
42
- export declare const RuntimeSubagentSchema: z.ZodObject<{
43
- description: z.ZodString;
44
- prompt: z.ZodString;
45
- tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46
- model: z.ZodOptional<z.ZodString>;
47
- }, "strip", z.ZodTypeAny, {
48
- description: string;
49
- prompt: string;
50
- tools?: string[] | undefined;
51
- model?: string | undefined;
52
- }, {
53
- description: string;
54
- prompt: string;
55
- tools?: string[] | undefined;
56
- model?: string | undefined;
57
- }>;
58
- export type RuntimeSubagent = z.infer<typeof RuntimeSubagentSchema>;
59
- export declare const InputFileSchema: z.ZodObject<{
60
- source: z.ZodString;
61
- destination: z.ZodString;
62
- }, "strip", z.ZodTypeAny, {
63
- source: string;
64
- destination: string;
65
- }, {
66
- source: string;
67
- destination: string;
68
- }>;
69
- export type InputFile = z.infer<typeof InputFileSchema>;
70
- export declare const TaskModeSchema: z.ZodEnum<["execute", "codegen", "review"]>;
71
- export type TaskMode = z.infer<typeof TaskModeSchema>;
72
- /**
73
- * The slim shape line-ai (and any other client) submits to the API.
74
- *
75
- * Plugin-owned fields (model, maxTurns, persona, tools, capabilities,
76
- * subagents, skills, etc.) are intentionally absent — they live on the
77
- * project's plugin defaults document and are merged in by the orchestrator.
78
- *
79
- * The four capability fields (integrations, collections, contextFiles,
80
- * memoryCards) and mcpServers MAY appear here; capability fields use
81
- * replace-semantics over plugin defaults, while mcpServers are additive
82
- * to the plugin catalog (task entries win on key collision).
83
- */
84
- export declare const TaskSubmissionDefinitionSchema: z.ZodObject<{
85
- id: z.ZodString;
86
- name: z.ZodString;
87
- instructions: z.ZodString;
88
- inputFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
89
- source: z.ZodString;
90
- destination: z.ZodString;
91
- }, "strip", z.ZodTypeAny, {
92
- source: string;
93
- destination: string;
94
- }, {
95
- source: string;
96
- destination: string;
97
- }>, "many">>;
98
- outputPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
99
- mode: z.ZodOptional<z.ZodEnum<["execute", "codegen", "review"]>>;
100
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
101
- integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
- slug: z.ZodString;
103
- connectionPath: z.ZodString;
104
- name: z.ZodString;
105
- logo: z.ZodOptional<z.ZodString>;
106
- status: z.ZodString;
107
- useAllTools: z.ZodOptional<z.ZodBoolean>;
108
- toolSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
109
- }, "strip", z.ZodTypeAny, {
110
- status: string;
111
- slug: string;
112
- connectionPath: string;
113
- name: string;
114
- logo?: string | undefined;
115
- useAllTools?: boolean | undefined;
116
- toolSlugs?: string[] | undefined;
117
- }, {
118
- status: string;
119
- slug: string;
120
- connectionPath: string;
121
- name: string;
122
- logo?: string | undefined;
123
- useAllTools?: boolean | undefined;
124
- toolSlugs?: string[] | undefined;
125
- }>, "many">>;
126
- collections: z.ZodOptional<z.ZodArray<z.ZodObject<{
127
- collectionId: z.ZodString;
128
- access: z.ZodArray<z.ZodEnum<["list", "read", "create", "update", "delete"]>, "many">;
129
- }, "strip", z.ZodTypeAny, {
130
- collectionId: string;
131
- access: ("create" | "list" | "read" | "update" | "delete")[];
132
- }, {
133
- collectionId: string;
134
- access: ("create" | "list" | "read" | "update" | "delete")[];
135
- }>, "many">>;
136
- contextFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
- id: z.ZodString;
138
- name: z.ZodString;
139
- size: z.ZodNumber;
140
- type: z.ZodString;
141
- gsUrl: z.ZodString;
142
- }, "strip", z.ZodTypeAny, {
143
- type: string;
144
- size: number;
145
- name: string;
146
- id: string;
147
- gsUrl: string;
148
- }, {
149
- type: string;
150
- size: number;
151
- name: string;
152
- id: string;
153
- gsUrl: string;
154
- }>, "many">>;
155
- memoryCards: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
156
- mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
157
- type: z.ZodLiteral<"http">;
158
- url: z.ZodString;
159
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
160
- }, "strip", z.ZodTypeAny, {
161
- url: string;
162
- type: "http";
163
- headers?: Record<string, string> | undefined;
164
- }, {
165
- url: string;
166
- type: "http";
167
- headers?: Record<string, string> | undefined;
168
- }>, z.ZodObject<{
169
- type: z.ZodEnum<["stdio", "http"]>;
170
- command: z.ZodOptional<z.ZodString>;
171
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
172
- url: z.ZodOptional<z.ZodString>;
173
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
174
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
175
- description: z.ZodOptional<z.ZodString>;
176
- }, "strip", z.ZodTypeAny, {
177
- type: "http" | "stdio";
178
- url?: string | undefined;
179
- description?: string | undefined;
180
- args?: string[] | undefined;
181
- headers?: Record<string, string> | undefined;
182
- command?: string | undefined;
183
- env?: Record<string, string> | undefined;
184
- }, {
185
- type: "http" | "stdio";
186
- url?: string | undefined;
187
- description?: string | undefined;
188
- args?: string[] | undefined;
189
- headers?: Record<string, string> | undefined;
190
- command?: string | undefined;
191
- env?: Record<string, string> | undefined;
192
- }>]>>>;
193
- }, "strip", z.ZodTypeAny, {
194
- name: string;
195
- id: string;
196
- instructions: string;
197
- integrations?: {
198
- status: string;
199
- slug: string;
200
- connectionPath: string;
201
- name: string;
202
- logo?: string | undefined;
203
- useAllTools?: boolean | undefined;
204
- toolSlugs?: string[] | undefined;
205
- }[] | undefined;
206
- collections?: {
207
- collectionId: string;
208
- access: ("create" | "list" | "read" | "update" | "delete")[];
209
- }[] | undefined;
210
- contextFiles?: {
211
- type: string;
212
- size: number;
213
- name: string;
214
- id: string;
215
- gsUrl: string;
216
- }[] | undefined;
217
- memoryCards?: string[] | undefined;
218
- mcpServers?: Record<string, {
219
- url: string;
220
- type: "http";
221
- headers?: Record<string, string> | undefined;
222
- } | {
223
- type: "http" | "stdio";
224
- url?: string | undefined;
225
- description?: string | undefined;
226
- args?: string[] | undefined;
227
- headers?: Record<string, string> | undefined;
228
- command?: string | undefined;
229
- env?: Record<string, string> | undefined;
230
- }> | undefined;
231
- inputFiles?: {
232
- source: string;
233
- destination: string;
234
- }[] | undefined;
235
- outputPatterns?: string[] | undefined;
236
- mode?: "execute" | "codegen" | "review" | undefined;
237
- context?: Record<string, unknown> | undefined;
238
- }, {
239
- name: string;
240
- id: string;
241
- instructions: string;
242
- integrations?: {
243
- status: string;
244
- slug: string;
245
- connectionPath: string;
246
- name: string;
247
- logo?: string | undefined;
248
- useAllTools?: boolean | undefined;
249
- toolSlugs?: string[] | undefined;
250
- }[] | undefined;
251
- collections?: {
252
- collectionId: string;
253
- access: ("create" | "list" | "read" | "update" | "delete")[];
254
- }[] | undefined;
255
- contextFiles?: {
256
- type: string;
257
- size: number;
258
- name: string;
259
- id: string;
260
- gsUrl: string;
261
- }[] | undefined;
262
- memoryCards?: string[] | undefined;
263
- mcpServers?: Record<string, {
264
- url: string;
265
- type: "http";
266
- headers?: Record<string, string> | undefined;
267
- } | {
268
- type: "http" | "stdio";
269
- url?: string | undefined;
270
- description?: string | undefined;
271
- args?: string[] | undefined;
272
- headers?: Record<string, string> | undefined;
273
- command?: string | undefined;
274
- env?: Record<string, string> | undefined;
275
- }> | undefined;
276
- inputFiles?: {
277
- source: string;
278
- destination: string;
279
- }[] | undefined;
280
- outputPatterns?: string[] | undefined;
281
- mode?: "execute" | "codegen" | "review" | undefined;
282
- context?: Record<string, unknown> | undefined;
283
- }>;
284
- export type TaskSubmissionDefinition = z.infer<typeof TaskSubmissionDefinitionSchema>;
285
- export declare const TaskOverridesSchema: z.ZodObject<{
286
- instructions: z.ZodOptional<z.ZodString>;
287
- inputFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
288
- source: z.ZodString;
289
- destination: z.ZodString;
290
- }, "strip", z.ZodTypeAny, {
291
- source: string;
292
- destination: string;
293
- }, {
294
- source: string;
295
- destination: string;
296
- }>, "many">>;
297
- }, "strip", z.ZodTypeAny, {
298
- instructions?: string | undefined;
299
- inputFiles?: {
300
- source: string;
301
- destination: string;
302
- }[] | undefined;
303
- }, {
304
- instructions?: string | undefined;
305
- inputFiles?: {
306
- source: string;
307
- destination: string;
308
- }[] | undefined;
309
- }>;
310
- export type TaskOverrides = z.infer<typeof TaskOverridesSchema>;
311
- export declare const TaskSubmissionSchema: z.ZodEffects<z.ZodObject<{
312
- definition: z.ZodOptional<z.ZodObject<{
313
- id: z.ZodString;
314
- name: z.ZodString;
315
- instructions: z.ZodString;
316
- inputFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
317
- source: z.ZodString;
318
- destination: z.ZodString;
319
- }, "strip", z.ZodTypeAny, {
320
- source: string;
321
- destination: string;
322
- }, {
323
- source: string;
324
- destination: string;
325
- }>, "many">>;
326
- outputPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
327
- mode: z.ZodOptional<z.ZodEnum<["execute", "codegen", "review"]>>;
328
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
329
- integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
330
- slug: z.ZodString;
331
- connectionPath: z.ZodString;
332
- name: z.ZodString;
333
- logo: z.ZodOptional<z.ZodString>;
334
- status: z.ZodString;
335
- useAllTools: z.ZodOptional<z.ZodBoolean>;
336
- toolSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
337
- }, "strip", z.ZodTypeAny, {
338
- status: string;
339
- slug: string;
340
- connectionPath: string;
341
- name: string;
342
- logo?: string | undefined;
343
- useAllTools?: boolean | undefined;
344
- toolSlugs?: string[] | undefined;
345
- }, {
346
- status: string;
347
- slug: string;
348
- connectionPath: string;
349
- name: string;
350
- logo?: string | undefined;
351
- useAllTools?: boolean | undefined;
352
- toolSlugs?: string[] | undefined;
353
- }>, "many">>;
354
- collections: z.ZodOptional<z.ZodArray<z.ZodObject<{
355
- collectionId: z.ZodString;
356
- access: z.ZodArray<z.ZodEnum<["list", "read", "create", "update", "delete"]>, "many">;
357
- }, "strip", z.ZodTypeAny, {
358
- collectionId: string;
359
- access: ("create" | "list" | "read" | "update" | "delete")[];
360
- }, {
361
- collectionId: string;
362
- access: ("create" | "list" | "read" | "update" | "delete")[];
363
- }>, "many">>;
364
- contextFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
- id: z.ZodString;
366
- name: z.ZodString;
367
- size: z.ZodNumber;
368
- type: z.ZodString;
369
- gsUrl: z.ZodString;
370
- }, "strip", z.ZodTypeAny, {
371
- type: string;
372
- size: number;
373
- name: string;
374
- id: string;
375
- gsUrl: string;
376
- }, {
377
- type: string;
378
- size: number;
379
- name: string;
380
- id: string;
381
- gsUrl: string;
382
- }>, "many">>;
383
- memoryCards: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
384
- mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
385
- type: z.ZodLiteral<"http">;
386
- url: z.ZodString;
387
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
388
- }, "strip", z.ZodTypeAny, {
389
- url: string;
390
- type: "http";
391
- headers?: Record<string, string> | undefined;
392
- }, {
393
- url: string;
394
- type: "http";
395
- headers?: Record<string, string> | undefined;
396
- }>, z.ZodObject<{
397
- type: z.ZodEnum<["stdio", "http"]>;
398
- command: z.ZodOptional<z.ZodString>;
399
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
400
- url: z.ZodOptional<z.ZodString>;
401
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
402
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
403
- description: z.ZodOptional<z.ZodString>;
404
- }, "strip", z.ZodTypeAny, {
405
- type: "http" | "stdio";
406
- url?: string | undefined;
407
- description?: string | undefined;
408
- args?: string[] | undefined;
409
- headers?: Record<string, string> | undefined;
410
- command?: string | undefined;
411
- env?: Record<string, string> | undefined;
412
- }, {
413
- type: "http" | "stdio";
414
- url?: string | undefined;
415
- description?: string | undefined;
416
- args?: string[] | undefined;
417
- headers?: Record<string, string> | undefined;
418
- command?: string | undefined;
419
- env?: Record<string, string> | undefined;
420
- }>]>>>;
421
- }, "strip", z.ZodTypeAny, {
422
- name: string;
423
- id: string;
424
- instructions: string;
425
- integrations?: {
426
- status: string;
427
- slug: string;
428
- connectionPath: string;
429
- name: string;
430
- logo?: string | undefined;
431
- useAllTools?: boolean | undefined;
432
- toolSlugs?: string[] | undefined;
433
- }[] | undefined;
434
- collections?: {
435
- collectionId: string;
436
- access: ("create" | "list" | "read" | "update" | "delete")[];
437
- }[] | undefined;
438
- contextFiles?: {
439
- type: string;
440
- size: number;
441
- name: string;
442
- id: string;
443
- gsUrl: string;
444
- }[] | undefined;
445
- memoryCards?: string[] | undefined;
446
- mcpServers?: Record<string, {
447
- url: string;
448
- type: "http";
449
- headers?: Record<string, string> | undefined;
450
- } | {
451
- type: "http" | "stdio";
452
- url?: string | undefined;
453
- description?: string | undefined;
454
- args?: string[] | undefined;
455
- headers?: Record<string, string> | undefined;
456
- command?: string | undefined;
457
- env?: Record<string, string> | undefined;
458
- }> | undefined;
459
- inputFiles?: {
460
- source: string;
461
- destination: string;
462
- }[] | undefined;
463
- outputPatterns?: string[] | undefined;
464
- mode?: "execute" | "codegen" | "review" | undefined;
465
- context?: Record<string, unknown> | undefined;
466
- }, {
467
- name: string;
468
- id: string;
469
- instructions: string;
470
- integrations?: {
471
- status: string;
472
- slug: string;
473
- connectionPath: string;
474
- name: string;
475
- logo?: string | undefined;
476
- useAllTools?: boolean | undefined;
477
- toolSlugs?: string[] | undefined;
478
- }[] | undefined;
479
- collections?: {
480
- collectionId: string;
481
- access: ("create" | "list" | "read" | "update" | "delete")[];
482
- }[] | undefined;
483
- contextFiles?: {
484
- type: string;
485
- size: number;
486
- name: string;
487
- id: string;
488
- gsUrl: string;
489
- }[] | undefined;
490
- memoryCards?: string[] | undefined;
491
- mcpServers?: Record<string, {
492
- url: string;
493
- type: "http";
494
- headers?: Record<string, string> | undefined;
495
- } | {
496
- type: "http" | "stdio";
497
- url?: string | undefined;
498
- description?: string | undefined;
499
- args?: string[] | undefined;
500
- headers?: Record<string, string> | undefined;
501
- command?: string | undefined;
502
- env?: Record<string, string> | undefined;
503
- }> | undefined;
504
- inputFiles?: {
505
- source: string;
506
- destination: string;
507
- }[] | undefined;
508
- outputPatterns?: string[] | undefined;
509
- mode?: "execute" | "codegen" | "review" | undefined;
510
- context?: Record<string, unknown> | undefined;
511
- }>>;
512
- workflowRef: z.ZodOptional<z.ZodString>;
513
- taskRef: z.ZodOptional<z.ZodString>;
514
- overrides: z.ZodOptional<z.ZodObject<{
515
- instructions: z.ZodOptional<z.ZodString>;
516
- inputFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
517
- source: z.ZodString;
518
- destination: z.ZodString;
519
- }, "strip", z.ZodTypeAny, {
520
- source: string;
521
- destination: string;
522
- }, {
523
- source: string;
524
- destination: string;
525
- }>, "many">>;
526
- }, "strip", z.ZodTypeAny, {
527
- instructions?: string | undefined;
528
- inputFiles?: {
529
- source: string;
530
- destination: string;
531
- }[] | undefined;
532
- }, {
533
- instructions?: string | undefined;
534
- inputFiles?: {
535
- source: string;
536
- destination: string;
537
- }[] | undefined;
538
- }>>;
539
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
540
- idempotencyKey: z.ZodOptional<z.ZodString>;
541
- resumeSessionId: z.ZodOptional<z.ZodString>;
542
- callbackUrl: z.ZodOptional<z.ZodString>;
543
- }, "strip", z.ZodTypeAny, {
544
- context?: Record<string, unknown> | undefined;
545
- definition?: {
546
- name: string;
547
- id: string;
548
- instructions: string;
549
- integrations?: {
550
- status: string;
551
- slug: string;
552
- connectionPath: string;
553
- name: string;
554
- logo?: string | undefined;
555
- useAllTools?: boolean | undefined;
556
- toolSlugs?: string[] | undefined;
557
- }[] | undefined;
558
- collections?: {
559
- collectionId: string;
560
- access: ("create" | "list" | "read" | "update" | "delete")[];
561
- }[] | undefined;
562
- contextFiles?: {
563
- type: string;
564
- size: number;
565
- name: string;
566
- id: string;
567
- gsUrl: string;
568
- }[] | undefined;
569
- memoryCards?: string[] | undefined;
570
- mcpServers?: Record<string, {
571
- url: string;
572
- type: "http";
573
- headers?: Record<string, string> | undefined;
574
- } | {
575
- type: "http" | "stdio";
576
- url?: string | undefined;
577
- description?: string | undefined;
578
- args?: string[] | undefined;
579
- headers?: Record<string, string> | undefined;
580
- command?: string | undefined;
581
- env?: Record<string, string> | undefined;
582
- }> | undefined;
583
- inputFiles?: {
584
- source: string;
585
- destination: string;
586
- }[] | undefined;
587
- outputPatterns?: string[] | undefined;
588
- mode?: "execute" | "codegen" | "review" | undefined;
589
- context?: Record<string, unknown> | undefined;
590
- } | undefined;
591
- workflowRef?: string | undefined;
592
- taskRef?: string | undefined;
593
- overrides?: {
594
- instructions?: string | undefined;
595
- inputFiles?: {
596
- source: string;
597
- destination: string;
598
- }[] | undefined;
599
- } | undefined;
600
- idempotencyKey?: string | undefined;
601
- resumeSessionId?: string | undefined;
602
- callbackUrl?: string | undefined;
603
- }, {
604
- context?: Record<string, unknown> | undefined;
605
- definition?: {
606
- name: string;
607
- id: string;
608
- instructions: string;
609
- integrations?: {
610
- status: string;
611
- slug: string;
612
- connectionPath: string;
613
- name: string;
614
- logo?: string | undefined;
615
- useAllTools?: boolean | undefined;
616
- toolSlugs?: string[] | undefined;
617
- }[] | undefined;
618
- collections?: {
619
- collectionId: string;
620
- access: ("create" | "list" | "read" | "update" | "delete")[];
621
- }[] | undefined;
622
- contextFiles?: {
623
- type: string;
624
- size: number;
625
- name: string;
626
- id: string;
627
- gsUrl: string;
628
- }[] | undefined;
629
- memoryCards?: string[] | undefined;
630
- mcpServers?: Record<string, {
631
- url: string;
632
- type: "http";
633
- headers?: Record<string, string> | undefined;
634
- } | {
635
- type: "http" | "stdio";
636
- url?: string | undefined;
637
- description?: string | undefined;
638
- args?: string[] | undefined;
639
- headers?: Record<string, string> | undefined;
640
- command?: string | undefined;
641
- env?: Record<string, string> | undefined;
642
- }> | undefined;
643
- inputFiles?: {
644
- source: string;
645
- destination: string;
646
- }[] | undefined;
647
- outputPatterns?: string[] | undefined;
648
- mode?: "execute" | "codegen" | "review" | undefined;
649
- context?: Record<string, unknown> | undefined;
650
- } | undefined;
651
- workflowRef?: string | undefined;
652
- taskRef?: string | undefined;
653
- overrides?: {
654
- instructions?: string | undefined;
655
- inputFiles?: {
656
- source: string;
657
- destination: string;
658
- }[] | undefined;
659
- } | undefined;
660
- idempotencyKey?: string | undefined;
661
- resumeSessionId?: string | undefined;
662
- callbackUrl?: string | undefined;
663
- }>, {
664
- context?: Record<string, unknown> | undefined;
665
- definition?: {
666
- name: string;
667
- id: string;
668
- instructions: string;
669
- integrations?: {
670
- status: string;
671
- slug: string;
672
- connectionPath: string;
673
- name: string;
674
- logo?: string | undefined;
675
- useAllTools?: boolean | undefined;
676
- toolSlugs?: string[] | undefined;
677
- }[] | undefined;
678
- collections?: {
679
- collectionId: string;
680
- access: ("create" | "list" | "read" | "update" | "delete")[];
681
- }[] | undefined;
682
- contextFiles?: {
683
- type: string;
684
- size: number;
685
- name: string;
686
- id: string;
687
- gsUrl: string;
688
- }[] | undefined;
689
- memoryCards?: string[] | undefined;
690
- mcpServers?: Record<string, {
691
- url: string;
692
- type: "http";
693
- headers?: Record<string, string> | undefined;
694
- } | {
695
- type: "http" | "stdio";
696
- url?: string | undefined;
697
- description?: string | undefined;
698
- args?: string[] | undefined;
699
- headers?: Record<string, string> | undefined;
700
- command?: string | undefined;
701
- env?: Record<string, string> | undefined;
702
- }> | undefined;
703
- inputFiles?: {
704
- source: string;
705
- destination: string;
706
- }[] | undefined;
707
- outputPatterns?: string[] | undefined;
708
- mode?: "execute" | "codegen" | "review" | undefined;
709
- context?: Record<string, unknown> | undefined;
710
- } | undefined;
711
- workflowRef?: string | undefined;
712
- taskRef?: string | undefined;
713
- overrides?: {
714
- instructions?: string | undefined;
715
- inputFiles?: {
716
- source: string;
717
- destination: string;
718
- }[] | undefined;
719
- } | undefined;
720
- idempotencyKey?: string | undefined;
721
- resumeSessionId?: string | undefined;
722
- callbackUrl?: string | undefined;
723
- }, {
724
- context?: Record<string, unknown> | undefined;
725
- definition?: {
726
- name: string;
727
- id: string;
728
- instructions: string;
729
- integrations?: {
730
- status: string;
731
- slug: string;
732
- connectionPath: string;
733
- name: string;
734
- logo?: string | undefined;
735
- useAllTools?: boolean | undefined;
736
- toolSlugs?: string[] | undefined;
737
- }[] | undefined;
738
- collections?: {
739
- collectionId: string;
740
- access: ("create" | "list" | "read" | "update" | "delete")[];
741
- }[] | undefined;
742
- contextFiles?: {
743
- type: string;
744
- size: number;
745
- name: string;
746
- id: string;
747
- gsUrl: string;
748
- }[] | undefined;
749
- memoryCards?: string[] | undefined;
750
- mcpServers?: Record<string, {
751
- url: string;
752
- type: "http";
753
- headers?: Record<string, string> | undefined;
754
- } | {
755
- type: "http" | "stdio";
756
- url?: string | undefined;
757
- description?: string | undefined;
758
- args?: string[] | undefined;
759
- headers?: Record<string, string> | undefined;
760
- command?: string | undefined;
761
- env?: Record<string, string> | undefined;
762
- }> | undefined;
763
- inputFiles?: {
764
- source: string;
765
- destination: string;
766
- }[] | undefined;
767
- outputPatterns?: string[] | undefined;
768
- mode?: "execute" | "codegen" | "review" | undefined;
769
- context?: Record<string, unknown> | undefined;
770
- } | undefined;
771
- workflowRef?: string | undefined;
772
- taskRef?: string | undefined;
773
- overrides?: {
774
- instructions?: string | undefined;
775
- inputFiles?: {
776
- source: string;
777
- destination: string;
778
- }[] | undefined;
779
- } | undefined;
780
- idempotencyKey?: string | undefined;
781
- resumeSessionId?: string | undefined;
782
- callbackUrl?: string | undefined;
783
- }>;
784
- export type TaskSubmission = z.infer<typeof TaskSubmissionSchema>;
785
- /**
786
- * The rich shape produced by the orchestrator merger and consumed by the
787
- * runtime. Plugin defaults + submission have been merged; subagents are
788
- * flattened to RuntimeSubagent shape; skills carry full bodies for
789
- * materialization into .claude/skills/{id}/SKILL.md.
790
- *
791
- * This is the schema the runtime validates after downloading definition.json.
792
- */
793
- export declare const ResolvedTaskDefinitionSchema: z.ZodObject<{
794
- id: z.ZodString;
795
- name: z.ZodString;
796
- instructions: z.ZodString;
797
- model: z.ZodString;
798
- maxTurns: z.ZodNumber;
799
- timeoutSeconds: z.ZodNumber;
800
- workingDir: z.ZodString;
801
- mode: z.ZodEnum<["execute", "codegen", "review"]>;
802
- systemPrompt: z.ZodOptional<z.ZodString>;
803
- systemPromptRef: z.ZodOptional<z.ZodString>;
804
- persona: z.ZodOptional<z.ZodString>;
805
- constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
806
- allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
807
- disabledTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
808
- capabilities: z.ZodOptional<z.ZodObject<{
809
- promptCaching: z.ZodOptional<z.ZodBoolean>;
810
- extendedThinking: z.ZodOptional<z.ZodObject<{
811
- enabled: z.ZodBoolean;
812
- budgetTokens: z.ZodNumber;
813
- }, "strip", z.ZodTypeAny, {
814
- enabled: boolean;
815
- budgetTokens: number;
816
- }, {
817
- enabled: boolean;
818
- budgetTokens: number;
819
- }>>;
820
- extendedContext: z.ZodOptional<z.ZodBoolean>;
821
- memory: z.ZodOptional<z.ZodObject<{
822
- enabled: z.ZodBoolean;
823
- backend: z.ZodDefault<z.ZodEnum<["gcs", "local"]>>;
824
- directory: z.ZodOptional<z.ZodString>;
825
- }, "strip", z.ZodTypeAny, {
826
- enabled: boolean;
827
- backend: "gcs" | "local";
828
- directory?: string | undefined;
829
- }, {
830
- enabled: boolean;
831
- backend?: "gcs" | "local" | undefined;
832
- directory?: string | undefined;
833
- }>>;
834
- }, "strip", z.ZodTypeAny, {
835
- promptCaching?: boolean | undefined;
836
- extendedThinking?: {
837
- enabled: boolean;
838
- budgetTokens: number;
839
- } | undefined;
840
- extendedContext?: boolean | undefined;
841
- memory?: {
842
- enabled: boolean;
843
- backend: "gcs" | "local";
844
- directory?: string | undefined;
845
- } | undefined;
846
- }, {
847
- promptCaching?: boolean | undefined;
848
- extendedThinking?: {
849
- enabled: boolean;
850
- budgetTokens: number;
851
- } | undefined;
852
- extendedContext?: boolean | undefined;
853
- memory?: {
854
- enabled: boolean;
855
- backend?: "gcs" | "local" | undefined;
856
- directory?: string | undefined;
857
- } | undefined;
858
- }>>;
859
- betas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
860
- inputFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
861
- source: z.ZodString;
862
- destination: z.ZodString;
863
- }, "strip", z.ZodTypeAny, {
864
- source: string;
865
- destination: string;
866
- }, {
867
- source: string;
868
- destination: string;
869
- }>, "many">>;
870
- outputPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
871
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
872
- skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
873
- id: z.ZodString;
874
- name: z.ZodString;
875
- description: z.ZodString;
876
- body: z.ZodString;
877
- allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
878
- }, "strip", z.ZodTypeAny, {
879
- description: string;
880
- name: string;
881
- id: string;
882
- body: string;
883
- allowedTools?: string[] | undefined;
884
- }, {
885
- description: string;
886
- name: string;
887
- id: string;
888
- body: string;
889
- allowedTools?: string[] | undefined;
890
- }>, "many">>;
891
- agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
892
- description: z.ZodString;
893
- prompt: z.ZodString;
894
- tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
895
- model: z.ZodOptional<z.ZodString>;
896
- }, "strip", z.ZodTypeAny, {
897
- description: string;
898
- prompt: string;
899
- tools?: string[] | undefined;
900
- model?: string | undefined;
901
- }, {
902
- description: string;
903
- prompt: string;
904
- tools?: string[] | undefined;
905
- model?: string | undefined;
906
- }>>>;
907
- mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
908
- type: z.ZodEnum<["stdio", "http"]>;
909
- command: z.ZodOptional<z.ZodString>;
910
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
911
- url: z.ZodOptional<z.ZodString>;
912
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
913
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
914
- description: z.ZodOptional<z.ZodString>;
915
- }, "strip", z.ZodTypeAny, {
916
- type: "http" | "stdio";
917
- url?: string | undefined;
918
- description?: string | undefined;
919
- args?: string[] | undefined;
920
- headers?: Record<string, string> | undefined;
921
- command?: string | undefined;
922
- env?: Record<string, string> | undefined;
923
- }, {
924
- type: "http" | "stdio";
925
- url?: string | undefined;
926
- description?: string | undefined;
927
- args?: string[] | undefined;
928
- headers?: Record<string, string> | undefined;
929
- command?: string | undefined;
930
- env?: Record<string, string> | undefined;
931
- }>, z.ZodString]>>>;
932
- integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
933
- slug: z.ZodString;
934
- connectionPath: z.ZodString;
935
- name: z.ZodString;
936
- logo: z.ZodOptional<z.ZodString>;
937
- status: z.ZodString;
938
- useAllTools: z.ZodOptional<z.ZodBoolean>;
939
- toolSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
940
- }, "strip", z.ZodTypeAny, {
941
- status: string;
942
- slug: string;
943
- connectionPath: string;
944
- name: string;
945
- logo?: string | undefined;
946
- useAllTools?: boolean | undefined;
947
- toolSlugs?: string[] | undefined;
948
- }, {
949
- status: string;
950
- slug: string;
951
- connectionPath: string;
952
- name: string;
953
- logo?: string | undefined;
954
- useAllTools?: boolean | undefined;
955
- toolSlugs?: string[] | undefined;
956
- }>, "many">>;
957
- collections: z.ZodOptional<z.ZodArray<z.ZodObject<{
958
- collectionId: z.ZodString;
959
- access: z.ZodArray<z.ZodEnum<["list", "read", "create", "update", "delete"]>, "many">;
960
- }, "strip", z.ZodTypeAny, {
961
- collectionId: string;
962
- access: ("create" | "list" | "read" | "update" | "delete")[];
963
- }, {
964
- collectionId: string;
965
- access: ("create" | "list" | "read" | "update" | "delete")[];
966
- }>, "many">>;
967
- contextFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
968
- id: z.ZodString;
969
- name: z.ZodString;
970
- size: z.ZodNumber;
971
- type: z.ZodString;
972
- gsUrl: z.ZodString;
973
- }, "strip", z.ZodTypeAny, {
974
- type: string;
975
- size: number;
976
- name: string;
977
- id: string;
978
- gsUrl: string;
979
- }, {
980
- type: string;
981
- size: number;
982
- name: string;
983
- id: string;
984
- gsUrl: string;
985
- }>, "many">>;
986
- memoryCards: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
987
- resolvedCapabilities: z.ZodOptional<z.ZodObject<{
988
- integrations: z.ZodOptional<z.ZodObject<{
989
- tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
990
- }, "strip", z.ZodTypeAny, {
991
- tools: Record<string, unknown>[];
992
- }, {
993
- tools: Record<string, unknown>[];
994
- }>>;
995
- collections: z.ZodOptional<z.ZodObject<{
996
- items: z.ZodArray<z.ZodObject<{
997
- collectionId: z.ZodString;
998
- access: z.ZodArray<z.ZodEnum<["list", "read", "create", "update", "delete"]>, "many">;
999
- }, "strip", z.ZodTypeAny, {
1000
- collectionId: string;
1001
- access: ("create" | "list" | "read" | "update" | "delete")[];
1002
- }, {
1003
- collectionId: string;
1004
- access: ("create" | "list" | "read" | "update" | "delete")[];
1005
- }>, "many">;
1006
- }, "strip", z.ZodTypeAny, {
1007
- items: {
1008
- collectionId: string;
1009
- access: ("create" | "list" | "read" | "update" | "delete")[];
1010
- }[];
1011
- }, {
1012
- items: {
1013
- collectionId: string;
1014
- access: ("create" | "list" | "read" | "update" | "delete")[];
1015
- }[];
1016
- }>>;
1017
- contextFiles: z.ZodOptional<z.ZodObject<{
1018
- files: z.ZodArray<z.ZodObject<{
1019
- id: z.ZodString;
1020
- name: z.ZodString;
1021
- gsUrl: z.ZodString;
1022
- }, "strip", z.ZodTypeAny, {
1023
- name: string;
1024
- id: string;
1025
- gsUrl: string;
1026
- }, {
1027
- name: string;
1028
- id: string;
1029
- gsUrl: string;
1030
- }>, "many">;
1031
- }, "strip", z.ZodTypeAny, {
1032
- files: {
1033
- name: string;
1034
- id: string;
1035
- gsUrl: string;
1036
- }[];
1037
- }, {
1038
- files: {
1039
- name: string;
1040
- id: string;
1041
- gsUrl: string;
1042
- }[];
1043
- }>>;
1044
- memoryCards: z.ZodOptional<z.ZodObject<{
1045
- cards: z.ZodArray<z.ZodObject<{
1046
- id: z.ZodString;
1047
- name: z.ZodString;
1048
- scope: z.ZodEnum<["user", "organization"]>;
1049
- createdBy: z.ZodString;
1050
- datasetId: z.ZodOptional<z.ZodString>;
1051
- description: z.ZodOptional<z.ZodString>;
1052
- cogneeUrl: z.ZodString;
1053
- }, "strip", z.ZodTypeAny, {
1054
- name: string;
1055
- id: string;
1056
- scope: "user" | "organization";
1057
- createdBy: string;
1058
- cogneeUrl: string;
1059
- description?: string | undefined;
1060
- datasetId?: string | undefined;
1061
- }, {
1062
- name: string;
1063
- id: string;
1064
- scope: "user" | "organization";
1065
- createdBy: string;
1066
- cogneeUrl: string;
1067
- description?: string | undefined;
1068
- datasetId?: string | undefined;
1069
- }>, "many">;
1070
- }, "strip", z.ZodTypeAny, {
1071
- cards: {
1072
- name: string;
1073
- id: string;
1074
- scope: "user" | "organization";
1075
- createdBy: string;
1076
- cogneeUrl: string;
1077
- description?: string | undefined;
1078
- datasetId?: string | undefined;
1079
- }[];
1080
- }, {
1081
- cards: {
1082
- name: string;
1083
- id: string;
1084
- scope: "user" | "organization";
1085
- createdBy: string;
1086
- cogneeUrl: string;
1087
- description?: string | undefined;
1088
- datasetId?: string | undefined;
1089
- }[];
1090
- }>>;
1091
- }, "strip", z.ZodTypeAny, {
1092
- integrations?: {
1093
- tools: Record<string, unknown>[];
1094
- } | undefined;
1095
- collections?: {
1096
- items: {
1097
- collectionId: string;
1098
- access: ("create" | "list" | "read" | "update" | "delete")[];
1099
- }[];
1100
- } | undefined;
1101
- contextFiles?: {
1102
- files: {
1103
- name: string;
1104
- id: string;
1105
- gsUrl: string;
1106
- }[];
1107
- } | undefined;
1108
- memoryCards?: {
1109
- cards: {
1110
- name: string;
1111
- id: string;
1112
- scope: "user" | "organization";
1113
- createdBy: string;
1114
- cogneeUrl: string;
1115
- description?: string | undefined;
1116
- datasetId?: string | undefined;
1117
- }[];
1118
- } | undefined;
1119
- }, {
1120
- integrations?: {
1121
- tools: Record<string, unknown>[];
1122
- } | undefined;
1123
- collections?: {
1124
- items: {
1125
- collectionId: string;
1126
- access: ("create" | "list" | "read" | "update" | "delete")[];
1127
- }[];
1128
- } | undefined;
1129
- contextFiles?: {
1130
- files: {
1131
- name: string;
1132
- id: string;
1133
- gsUrl: string;
1134
- }[];
1135
- } | undefined;
1136
- memoryCards?: {
1137
- cards: {
1138
- name: string;
1139
- id: string;
1140
- scope: "user" | "organization";
1141
- createdBy: string;
1142
- cogneeUrl: string;
1143
- description?: string | undefined;
1144
- datasetId?: string | undefined;
1145
- }[];
1146
- } | undefined;
1147
- }>>;
1148
- }, "strip", z.ZodTypeAny, {
1149
- name: string;
1150
- id: string;
1151
- model: string;
1152
- maxTurns: number;
1153
- timeoutSeconds: number;
1154
- workingDir: string;
1155
- instructions: string;
1156
- mode: "execute" | "codegen" | "review";
1157
- integrations?: {
1158
- status: string;
1159
- slug: string;
1160
- connectionPath: string;
1161
- name: string;
1162
- logo?: string | undefined;
1163
- useAllTools?: boolean | undefined;
1164
- toolSlugs?: string[] | undefined;
1165
- }[] | undefined;
1166
- collections?: {
1167
- collectionId: string;
1168
- access: ("create" | "list" | "read" | "update" | "delete")[];
1169
- }[] | undefined;
1170
- contextFiles?: {
1171
- type: string;
1172
- size: number;
1173
- name: string;
1174
- id: string;
1175
- gsUrl: string;
1176
- }[] | undefined;
1177
- memoryCards?: string[] | undefined;
1178
- systemPromptRef?: string | undefined;
1179
- persona?: string | undefined;
1180
- constraints?: string[] | undefined;
1181
- allowedTools?: string[] | undefined;
1182
- disabledTools?: string[] | undefined;
1183
- capabilities?: {
1184
- promptCaching?: boolean | undefined;
1185
- extendedThinking?: {
1186
- enabled: boolean;
1187
- budgetTokens: number;
1188
- } | undefined;
1189
- extendedContext?: boolean | undefined;
1190
- memory?: {
1191
- enabled: boolean;
1192
- backend: "gcs" | "local";
1193
- directory?: string | undefined;
1194
- } | undefined;
1195
- } | undefined;
1196
- betas?: string[] | undefined;
1197
- skills?: {
1198
- description: string;
1199
- name: string;
1200
- id: string;
1201
- body: string;
1202
- allowedTools?: string[] | undefined;
1203
- }[] | undefined;
1204
- mcpServers?: Record<string, string | {
1205
- type: "http" | "stdio";
1206
- url?: string | undefined;
1207
- description?: string | undefined;
1208
- args?: string[] | undefined;
1209
- headers?: Record<string, string> | undefined;
1210
- command?: string | undefined;
1211
- env?: Record<string, string> | undefined;
1212
- }> | undefined;
1213
- agents?: Record<string, {
1214
- description: string;
1215
- prompt: string;
1216
- tools?: string[] | undefined;
1217
- model?: string | undefined;
1218
- }> | undefined;
1219
- inputFiles?: {
1220
- source: string;
1221
- destination: string;
1222
- }[] | undefined;
1223
- outputPatterns?: string[] | undefined;
1224
- context?: Record<string, unknown> | undefined;
1225
- systemPrompt?: string | undefined;
1226
- resolvedCapabilities?: {
1227
- integrations?: {
1228
- tools: Record<string, unknown>[];
1229
- } | undefined;
1230
- collections?: {
1231
- items: {
1232
- collectionId: string;
1233
- access: ("create" | "list" | "read" | "update" | "delete")[];
1234
- }[];
1235
- } | undefined;
1236
- contextFiles?: {
1237
- files: {
1238
- name: string;
1239
- id: string;
1240
- gsUrl: string;
1241
- }[];
1242
- } | undefined;
1243
- memoryCards?: {
1244
- cards: {
1245
- name: string;
1246
- id: string;
1247
- scope: "user" | "organization";
1248
- createdBy: string;
1249
- cogneeUrl: string;
1250
- description?: string | undefined;
1251
- datasetId?: string | undefined;
1252
- }[];
1253
- } | undefined;
1254
- } | undefined;
1255
- }, {
1256
- name: string;
1257
- id: string;
1258
- model: string;
1259
- maxTurns: number;
1260
- timeoutSeconds: number;
1261
- workingDir: string;
1262
- instructions: string;
1263
- mode: "execute" | "codegen" | "review";
1264
- integrations?: {
1265
- status: string;
1266
- slug: string;
1267
- connectionPath: string;
1268
- name: string;
1269
- logo?: string | undefined;
1270
- useAllTools?: boolean | undefined;
1271
- toolSlugs?: string[] | undefined;
1272
- }[] | undefined;
1273
- collections?: {
1274
- collectionId: string;
1275
- access: ("create" | "list" | "read" | "update" | "delete")[];
1276
- }[] | undefined;
1277
- contextFiles?: {
1278
- type: string;
1279
- size: number;
1280
- name: string;
1281
- id: string;
1282
- gsUrl: string;
1283
- }[] | undefined;
1284
- memoryCards?: string[] | undefined;
1285
- systemPromptRef?: string | undefined;
1286
- persona?: string | undefined;
1287
- constraints?: string[] | undefined;
1288
- allowedTools?: string[] | undefined;
1289
- disabledTools?: string[] | undefined;
1290
- capabilities?: {
1291
- promptCaching?: boolean | undefined;
1292
- extendedThinking?: {
1293
- enabled: boolean;
1294
- budgetTokens: number;
1295
- } | undefined;
1296
- extendedContext?: boolean | undefined;
1297
- memory?: {
1298
- enabled: boolean;
1299
- backend?: "gcs" | "local" | undefined;
1300
- directory?: string | undefined;
1301
- } | undefined;
1302
- } | undefined;
1303
- betas?: string[] | undefined;
1304
- skills?: {
1305
- description: string;
1306
- name: string;
1307
- id: string;
1308
- body: string;
1309
- allowedTools?: string[] | undefined;
1310
- }[] | undefined;
1311
- mcpServers?: Record<string, string | {
1312
- type: "http" | "stdio";
1313
- url?: string | undefined;
1314
- description?: string | undefined;
1315
- args?: string[] | undefined;
1316
- headers?: Record<string, string> | undefined;
1317
- command?: string | undefined;
1318
- env?: Record<string, string> | undefined;
1319
- }> | undefined;
1320
- agents?: Record<string, {
1321
- description: string;
1322
- prompt: string;
1323
- tools?: string[] | undefined;
1324
- model?: string | undefined;
1325
- }> | undefined;
1326
- inputFiles?: {
1327
- source: string;
1328
- destination: string;
1329
- }[] | undefined;
1330
- outputPatterns?: string[] | undefined;
1331
- context?: Record<string, unknown> | undefined;
1332
- systemPrompt?: string | undefined;
1333
- resolvedCapabilities?: {
1334
- integrations?: {
1335
- tools: Record<string, unknown>[];
1336
- } | undefined;
1337
- collections?: {
1338
- items: {
1339
- collectionId: string;
1340
- access: ("create" | "list" | "read" | "update" | "delete")[];
1341
- }[];
1342
- } | undefined;
1343
- contextFiles?: {
1344
- files: {
1345
- name: string;
1346
- id: string;
1347
- gsUrl: string;
1348
- }[];
1349
- } | undefined;
1350
- memoryCards?: {
1351
- cards: {
1352
- name: string;
1353
- id: string;
1354
- scope: "user" | "organization";
1355
- createdBy: string;
1356
- cogneeUrl: string;
1357
- description?: string | undefined;
1358
- datasetId?: string | undefined;
1359
- }[];
1360
- } | undefined;
1361
- } | undefined;
1362
- }>;
1363
- export type ResolvedTaskDefinition = z.infer<typeof ResolvedTaskDefinitionSchema>;
1364
- /**
1365
- * Platform-wide fallback defaults applied by the merger when neither the
1366
- * task submission nor plugin defaults supply a value. Change them here and
1367
- * every consumer (orchestrator, runtime, service-api, line-ai) picks them
1368
- * up on the next package release.
1369
- *
1370
- * Anything intentionally unset (systemPrompt, persona, constraints, tool
1371
- * restrictions, capability bundles, betas, integrations, collections,
1372
- * contextFiles, memoryCards) has no fallback — undefined means the agent
1373
- * runs without that feature.
1374
- */
1375
- export declare const FALLBACK_DEFAULTS: {
1376
- readonly model: "claude-sonnet-4-6";
1377
- readonly maxTurns: 100;
1378
- readonly timeoutSeconds: 3600;
1379
- readonly workingDir: "/workspace";
1380
- readonly mode: TaskMode;
1381
- readonly capabilities: {
1382
- readonly promptCaching: true;
1383
- };
1384
- };
1385
- export type FallbackDefaults = typeof FALLBACK_DEFAULTS;