@lineai/agent-platform-types 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1034 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Plugin schemas — these mirror the documents stored in Firestore at:
4
+ * organizations/{orgId}/projects/{projectId}/services/agent-platform/plugin/{section}
5
+ *
6
+ * Sections: defaults, skills, agents (subagents), mcp-servers, hooks.
7
+ *
8
+ * The line-ai console authors these documents; the agent-platform orchestrator
9
+ * loads them at task submission time and merges them into the resolved task
10
+ * definition that the runtime executes.
11
+ */
12
+ export declare const PluginCapabilitiesSchema: z.ZodObject<{
13
+ promptCaching: z.ZodOptional<z.ZodBoolean>;
14
+ extendedThinking: z.ZodOptional<z.ZodObject<{
15
+ enabled: z.ZodBoolean;
16
+ budgetTokens: z.ZodNumber;
17
+ }, "strip", z.ZodTypeAny, {
18
+ enabled: boolean;
19
+ budgetTokens: number;
20
+ }, {
21
+ enabled: boolean;
22
+ budgetTokens: number;
23
+ }>>;
24
+ extendedContext: z.ZodOptional<z.ZodBoolean>;
25
+ memory: z.ZodOptional<z.ZodObject<{
26
+ enabled: z.ZodBoolean;
27
+ backend: z.ZodDefault<z.ZodEnum<["gcs", "local"]>>;
28
+ directory: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ enabled: boolean;
31
+ backend: "gcs" | "local";
32
+ directory?: string | undefined;
33
+ }, {
34
+ enabled: boolean;
35
+ backend?: "gcs" | "local" | undefined;
36
+ directory?: string | undefined;
37
+ }>>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ promptCaching?: boolean | undefined;
40
+ extendedThinking?: {
41
+ enabled: boolean;
42
+ budgetTokens: number;
43
+ } | undefined;
44
+ extendedContext?: boolean | undefined;
45
+ memory?: {
46
+ enabled: boolean;
47
+ backend: "gcs" | "local";
48
+ directory?: string | undefined;
49
+ } | undefined;
50
+ }, {
51
+ promptCaching?: boolean | undefined;
52
+ extendedThinking?: {
53
+ enabled: boolean;
54
+ budgetTokens: number;
55
+ } | undefined;
56
+ extendedContext?: boolean | undefined;
57
+ memory?: {
58
+ enabled: boolean;
59
+ backend?: "gcs" | "local" | undefined;
60
+ directory?: string | undefined;
61
+ } | undefined;
62
+ }>;
63
+ export type PluginCapabilities = z.infer<typeof PluginCapabilitiesSchema>;
64
+ export declare const PluginDefaultsSchema: z.ZodObject<{
65
+ model: z.ZodOptional<z.ZodString>;
66
+ maxTurns: z.ZodOptional<z.ZodNumber>;
67
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
68
+ workingDir: z.ZodOptional<z.ZodString>;
69
+ systemPromptRef: z.ZodOptional<z.ZodString>;
70
+ persona: z.ZodOptional<z.ZodString>;
71
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
72
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
73
+ disabledTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
+ capabilities: z.ZodOptional<z.ZodObject<{
75
+ promptCaching: z.ZodOptional<z.ZodBoolean>;
76
+ extendedThinking: z.ZodOptional<z.ZodObject<{
77
+ enabled: z.ZodBoolean;
78
+ budgetTokens: z.ZodNumber;
79
+ }, "strip", z.ZodTypeAny, {
80
+ enabled: boolean;
81
+ budgetTokens: number;
82
+ }, {
83
+ enabled: boolean;
84
+ budgetTokens: number;
85
+ }>>;
86
+ extendedContext: z.ZodOptional<z.ZodBoolean>;
87
+ memory: z.ZodOptional<z.ZodObject<{
88
+ enabled: z.ZodBoolean;
89
+ backend: z.ZodDefault<z.ZodEnum<["gcs", "local"]>>;
90
+ directory: z.ZodOptional<z.ZodString>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ enabled: boolean;
93
+ backend: "gcs" | "local";
94
+ directory?: string | undefined;
95
+ }, {
96
+ enabled: boolean;
97
+ backend?: "gcs" | "local" | undefined;
98
+ directory?: string | undefined;
99
+ }>>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ promptCaching?: boolean | undefined;
102
+ extendedThinking?: {
103
+ enabled: boolean;
104
+ budgetTokens: number;
105
+ } | undefined;
106
+ extendedContext?: boolean | undefined;
107
+ memory?: {
108
+ enabled: boolean;
109
+ backend: "gcs" | "local";
110
+ directory?: string | undefined;
111
+ } | undefined;
112
+ }, {
113
+ promptCaching?: boolean | undefined;
114
+ extendedThinking?: {
115
+ enabled: boolean;
116
+ budgetTokens: number;
117
+ } | undefined;
118
+ extendedContext?: boolean | undefined;
119
+ memory?: {
120
+ enabled: boolean;
121
+ backend?: "gcs" | "local" | undefined;
122
+ directory?: string | undefined;
123
+ } | undefined;
124
+ }>>;
125
+ betas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
126
+ integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
127
+ slug: z.ZodString;
128
+ connectionPath: z.ZodString;
129
+ name: z.ZodString;
130
+ logo: z.ZodOptional<z.ZodString>;
131
+ status: z.ZodString;
132
+ useAllTools: z.ZodOptional<z.ZodBoolean>;
133
+ toolSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ status: string;
136
+ slug: string;
137
+ connectionPath: string;
138
+ name: string;
139
+ logo?: string | undefined;
140
+ useAllTools?: boolean | undefined;
141
+ toolSlugs?: string[] | undefined;
142
+ }, {
143
+ status: string;
144
+ slug: string;
145
+ connectionPath: string;
146
+ name: string;
147
+ logo?: string | undefined;
148
+ useAllTools?: boolean | undefined;
149
+ toolSlugs?: string[] | undefined;
150
+ }>, "many">>;
151
+ collections: z.ZodOptional<z.ZodArray<z.ZodObject<{
152
+ collectionId: z.ZodString;
153
+ access: z.ZodArray<z.ZodEnum<["list", "read", "create", "update", "delete"]>, "many">;
154
+ }, "strip", z.ZodTypeAny, {
155
+ collectionId: string;
156
+ access: ("create" | "list" | "read" | "update" | "delete")[];
157
+ }, {
158
+ collectionId: string;
159
+ access: ("create" | "list" | "read" | "update" | "delete")[];
160
+ }>, "many">>;
161
+ contextFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
162
+ id: z.ZodString;
163
+ name: z.ZodString;
164
+ size: z.ZodNumber;
165
+ type: z.ZodString;
166
+ gsUrl: z.ZodString;
167
+ }, "strip", z.ZodTypeAny, {
168
+ type: string;
169
+ size: number;
170
+ name: string;
171
+ id: string;
172
+ gsUrl: string;
173
+ }, {
174
+ type: string;
175
+ size: number;
176
+ name: string;
177
+ id: string;
178
+ gsUrl: string;
179
+ }>, "many">>;
180
+ memoryCards: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ integrations?: {
183
+ status: string;
184
+ slug: string;
185
+ connectionPath: string;
186
+ name: string;
187
+ logo?: string | undefined;
188
+ useAllTools?: boolean | undefined;
189
+ toolSlugs?: string[] | undefined;
190
+ }[] | undefined;
191
+ collections?: {
192
+ collectionId: string;
193
+ access: ("create" | "list" | "read" | "update" | "delete")[];
194
+ }[] | undefined;
195
+ contextFiles?: {
196
+ type: string;
197
+ size: number;
198
+ name: string;
199
+ id: string;
200
+ gsUrl: string;
201
+ }[] | undefined;
202
+ memoryCards?: string[] | undefined;
203
+ model?: string | undefined;
204
+ maxTurns?: number | undefined;
205
+ timeoutSeconds?: number | undefined;
206
+ workingDir?: string | undefined;
207
+ systemPromptRef?: string | undefined;
208
+ persona?: string | undefined;
209
+ constraints?: string[] | undefined;
210
+ allowedTools?: string[] | undefined;
211
+ disabledTools?: string[] | undefined;
212
+ capabilities?: {
213
+ promptCaching?: boolean | undefined;
214
+ extendedThinking?: {
215
+ enabled: boolean;
216
+ budgetTokens: number;
217
+ } | undefined;
218
+ extendedContext?: boolean | undefined;
219
+ memory?: {
220
+ enabled: boolean;
221
+ backend: "gcs" | "local";
222
+ directory?: string | undefined;
223
+ } | undefined;
224
+ } | undefined;
225
+ betas?: string[] | undefined;
226
+ }, {
227
+ integrations?: {
228
+ status: string;
229
+ slug: string;
230
+ connectionPath: string;
231
+ name: string;
232
+ logo?: string | undefined;
233
+ useAllTools?: boolean | undefined;
234
+ toolSlugs?: string[] | undefined;
235
+ }[] | undefined;
236
+ collections?: {
237
+ collectionId: string;
238
+ access: ("create" | "list" | "read" | "update" | "delete")[];
239
+ }[] | undefined;
240
+ contextFiles?: {
241
+ type: string;
242
+ size: number;
243
+ name: string;
244
+ id: string;
245
+ gsUrl: string;
246
+ }[] | undefined;
247
+ memoryCards?: string[] | undefined;
248
+ model?: string | undefined;
249
+ maxTurns?: number | undefined;
250
+ timeoutSeconds?: number | undefined;
251
+ workingDir?: string | undefined;
252
+ systemPromptRef?: string | undefined;
253
+ persona?: string | undefined;
254
+ constraints?: string[] | undefined;
255
+ allowedTools?: string[] | undefined;
256
+ disabledTools?: string[] | undefined;
257
+ capabilities?: {
258
+ promptCaching?: boolean | undefined;
259
+ extendedThinking?: {
260
+ enabled: boolean;
261
+ budgetTokens: number;
262
+ } | undefined;
263
+ extendedContext?: boolean | undefined;
264
+ memory?: {
265
+ enabled: boolean;
266
+ backend?: "gcs" | "local" | undefined;
267
+ directory?: string | undefined;
268
+ } | undefined;
269
+ } | undefined;
270
+ betas?: string[] | undefined;
271
+ }>;
272
+ export type PluginDefaults = z.infer<typeof PluginDefaultsSchema>;
273
+ export declare const SkillSchema: z.ZodObject<{
274
+ id: z.ZodString;
275
+ name: z.ZodString;
276
+ description: z.ZodString;
277
+ body: z.ZodString;
278
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ description: string;
281
+ name: string;
282
+ id: string;
283
+ body: string;
284
+ allowedTools?: string[] | undefined;
285
+ }, {
286
+ description: string;
287
+ name: string;
288
+ id: string;
289
+ body: string;
290
+ allowedTools?: string[] | undefined;
291
+ }>;
292
+ export type Skill = z.infer<typeof SkillSchema>;
293
+ export declare const PluginSkillsSchema: z.ZodObject<{
294
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
295
+ id: z.ZodString;
296
+ name: z.ZodString;
297
+ description: z.ZodString;
298
+ body: z.ZodString;
299
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ description: string;
302
+ name: string;
303
+ id: string;
304
+ body: string;
305
+ allowedTools?: string[] | undefined;
306
+ }, {
307
+ description: string;
308
+ name: string;
309
+ id: string;
310
+ body: string;
311
+ allowedTools?: string[] | undefined;
312
+ }>, "many">>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ items: {
315
+ description: string;
316
+ name: string;
317
+ id: string;
318
+ body: string;
319
+ allowedTools?: string[] | undefined;
320
+ }[];
321
+ }, {
322
+ items?: {
323
+ description: string;
324
+ name: string;
325
+ id: string;
326
+ body: string;
327
+ allowedTools?: string[] | undefined;
328
+ }[] | undefined;
329
+ }>;
330
+ export type PluginSkills = z.infer<typeof PluginSkillsSchema>;
331
+ export declare const SubagentModelChoiceSchema: z.ZodEnum<["inherit", "haiku", "sonnet", "opus"]>;
332
+ export type SubagentModelChoice = z.infer<typeof SubagentModelChoiceSchema>;
333
+ export declare const PluginSubagentSchema: z.ZodObject<{
334
+ id: z.ZodString;
335
+ name: z.ZodString;
336
+ description: z.ZodString;
337
+ prompt: z.ZodString;
338
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
339
+ model: z.ZodOptional<z.ZodEnum<["inherit", "haiku", "sonnet", "opus"]>>;
340
+ skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
341
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ description: string;
344
+ name: string;
345
+ id: string;
346
+ prompt: string;
347
+ tools?: string[] | undefined;
348
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
349
+ skills?: string[] | undefined;
350
+ mcpServers?: string[] | undefined;
351
+ }, {
352
+ description: string;
353
+ name: string;
354
+ id: string;
355
+ prompt: string;
356
+ tools?: string[] | undefined;
357
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
358
+ skills?: string[] | undefined;
359
+ mcpServers?: string[] | undefined;
360
+ }>;
361
+ export type PluginSubagent = z.infer<typeof PluginSubagentSchema>;
362
+ export declare const PluginAgentsSchema: z.ZodObject<{
363
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
364
+ id: z.ZodString;
365
+ name: z.ZodString;
366
+ description: z.ZodString;
367
+ prompt: z.ZodString;
368
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
369
+ model: z.ZodOptional<z.ZodEnum<["inherit", "haiku", "sonnet", "opus"]>>;
370
+ skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
371
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ description: string;
374
+ name: string;
375
+ id: string;
376
+ prompt: string;
377
+ tools?: string[] | undefined;
378
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
379
+ skills?: string[] | undefined;
380
+ mcpServers?: string[] | undefined;
381
+ }, {
382
+ description: string;
383
+ name: string;
384
+ id: string;
385
+ prompt: string;
386
+ tools?: string[] | undefined;
387
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
388
+ skills?: string[] | undefined;
389
+ mcpServers?: string[] | undefined;
390
+ }>, "many">>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ items: {
393
+ description: string;
394
+ name: string;
395
+ id: string;
396
+ prompt: string;
397
+ tools?: string[] | undefined;
398
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
399
+ skills?: string[] | undefined;
400
+ mcpServers?: string[] | undefined;
401
+ }[];
402
+ }, {
403
+ items?: {
404
+ description: string;
405
+ name: string;
406
+ id: string;
407
+ prompt: string;
408
+ tools?: string[] | undefined;
409
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
410
+ skills?: string[] | undefined;
411
+ mcpServers?: string[] | undefined;
412
+ }[] | undefined;
413
+ }>;
414
+ export type PluginAgents = z.infer<typeof PluginAgentsSchema>;
415
+ export declare const PluginMcpServerEntrySchema: z.ZodObject<{
416
+ type: z.ZodLiteral<"http">;
417
+ url: z.ZodString;
418
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ url: string;
421
+ type: "http";
422
+ headers?: Record<string, string> | undefined;
423
+ }, {
424
+ url: string;
425
+ type: "http";
426
+ headers?: Record<string, string> | undefined;
427
+ }>;
428
+ export type PluginMcpServerEntry = z.infer<typeof PluginMcpServerEntrySchema>;
429
+ export declare const PluginMcpServersSchema: z.ZodObject<{
430
+ servers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
431
+ type: z.ZodLiteral<"http">;
432
+ url: z.ZodString;
433
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ url: string;
436
+ type: "http";
437
+ headers?: Record<string, string> | undefined;
438
+ }, {
439
+ url: string;
440
+ type: "http";
441
+ headers?: Record<string, string> | undefined;
442
+ }>>>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ servers: Record<string, {
445
+ url: string;
446
+ type: "http";
447
+ headers?: Record<string, string> | undefined;
448
+ }>;
449
+ }, {
450
+ servers?: Record<string, {
451
+ url: string;
452
+ type: "http";
453
+ headers?: Record<string, string> | undefined;
454
+ }> | undefined;
455
+ }>;
456
+ export type PluginMcpServers = z.infer<typeof PluginMcpServersSchema>;
457
+ export declare const PluginHookSchema: z.ZodObject<{
458
+ id: z.ZodString;
459
+ name: z.ZodString;
460
+ description: z.ZodString;
461
+ event: z.ZodString;
462
+ }, "strip", z.ZodTypeAny, {
463
+ description: string;
464
+ name: string;
465
+ id: string;
466
+ event: string;
467
+ }, {
468
+ description: string;
469
+ name: string;
470
+ id: string;
471
+ event: string;
472
+ }>;
473
+ export type PluginHook = z.infer<typeof PluginHookSchema>;
474
+ export declare const PluginHooksSchema: z.ZodObject<{
475
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
476
+ id: z.ZodString;
477
+ name: z.ZodString;
478
+ description: z.ZodString;
479
+ event: z.ZodString;
480
+ }, "strip", z.ZodTypeAny, {
481
+ description: string;
482
+ name: string;
483
+ id: string;
484
+ event: string;
485
+ }, {
486
+ description: string;
487
+ name: string;
488
+ id: string;
489
+ event: string;
490
+ }>, "many">>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ items: {
493
+ description: string;
494
+ name: string;
495
+ id: string;
496
+ event: string;
497
+ }[];
498
+ }, {
499
+ items?: {
500
+ description: string;
501
+ name: string;
502
+ id: string;
503
+ event: string;
504
+ }[] | undefined;
505
+ }>;
506
+ export type PluginHooks = z.infer<typeof PluginHooksSchema>;
507
+ export declare const PluginSnapshotSchema: z.ZodObject<{
508
+ defaults: z.ZodOptional<z.ZodNullable<z.ZodObject<{
509
+ model: z.ZodOptional<z.ZodString>;
510
+ maxTurns: z.ZodOptional<z.ZodNumber>;
511
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
512
+ workingDir: z.ZodOptional<z.ZodString>;
513
+ systemPromptRef: z.ZodOptional<z.ZodString>;
514
+ persona: z.ZodOptional<z.ZodString>;
515
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
516
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
517
+ disabledTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
518
+ capabilities: z.ZodOptional<z.ZodObject<{
519
+ promptCaching: z.ZodOptional<z.ZodBoolean>;
520
+ extendedThinking: z.ZodOptional<z.ZodObject<{
521
+ enabled: z.ZodBoolean;
522
+ budgetTokens: z.ZodNumber;
523
+ }, "strip", z.ZodTypeAny, {
524
+ enabled: boolean;
525
+ budgetTokens: number;
526
+ }, {
527
+ enabled: boolean;
528
+ budgetTokens: number;
529
+ }>>;
530
+ extendedContext: z.ZodOptional<z.ZodBoolean>;
531
+ memory: z.ZodOptional<z.ZodObject<{
532
+ enabled: z.ZodBoolean;
533
+ backend: z.ZodDefault<z.ZodEnum<["gcs", "local"]>>;
534
+ directory: z.ZodOptional<z.ZodString>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ enabled: boolean;
537
+ backend: "gcs" | "local";
538
+ directory?: string | undefined;
539
+ }, {
540
+ enabled: boolean;
541
+ backend?: "gcs" | "local" | undefined;
542
+ directory?: string | undefined;
543
+ }>>;
544
+ }, "strip", z.ZodTypeAny, {
545
+ promptCaching?: boolean | undefined;
546
+ extendedThinking?: {
547
+ enabled: boolean;
548
+ budgetTokens: number;
549
+ } | undefined;
550
+ extendedContext?: boolean | undefined;
551
+ memory?: {
552
+ enabled: boolean;
553
+ backend: "gcs" | "local";
554
+ directory?: string | undefined;
555
+ } | undefined;
556
+ }, {
557
+ promptCaching?: boolean | undefined;
558
+ extendedThinking?: {
559
+ enabled: boolean;
560
+ budgetTokens: number;
561
+ } | undefined;
562
+ extendedContext?: boolean | undefined;
563
+ memory?: {
564
+ enabled: boolean;
565
+ backend?: "gcs" | "local" | undefined;
566
+ directory?: string | undefined;
567
+ } | undefined;
568
+ }>>;
569
+ betas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
570
+ integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
571
+ slug: z.ZodString;
572
+ connectionPath: z.ZodString;
573
+ name: z.ZodString;
574
+ logo: z.ZodOptional<z.ZodString>;
575
+ status: z.ZodString;
576
+ useAllTools: z.ZodOptional<z.ZodBoolean>;
577
+ toolSlugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ status: string;
580
+ slug: string;
581
+ connectionPath: string;
582
+ name: string;
583
+ logo?: string | undefined;
584
+ useAllTools?: boolean | undefined;
585
+ toolSlugs?: string[] | undefined;
586
+ }, {
587
+ status: string;
588
+ slug: string;
589
+ connectionPath: string;
590
+ name: string;
591
+ logo?: string | undefined;
592
+ useAllTools?: boolean | undefined;
593
+ toolSlugs?: string[] | undefined;
594
+ }>, "many">>;
595
+ collections: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
+ collectionId: z.ZodString;
597
+ access: z.ZodArray<z.ZodEnum<["list", "read", "create", "update", "delete"]>, "many">;
598
+ }, "strip", z.ZodTypeAny, {
599
+ collectionId: string;
600
+ access: ("create" | "list" | "read" | "update" | "delete")[];
601
+ }, {
602
+ collectionId: string;
603
+ access: ("create" | "list" | "read" | "update" | "delete")[];
604
+ }>, "many">>;
605
+ contextFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
606
+ id: z.ZodString;
607
+ name: z.ZodString;
608
+ size: z.ZodNumber;
609
+ type: z.ZodString;
610
+ gsUrl: z.ZodString;
611
+ }, "strip", z.ZodTypeAny, {
612
+ type: string;
613
+ size: number;
614
+ name: string;
615
+ id: string;
616
+ gsUrl: string;
617
+ }, {
618
+ type: string;
619
+ size: number;
620
+ name: string;
621
+ id: string;
622
+ gsUrl: string;
623
+ }>, "many">>;
624
+ memoryCards: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ integrations?: {
627
+ status: string;
628
+ slug: string;
629
+ connectionPath: string;
630
+ name: string;
631
+ logo?: string | undefined;
632
+ useAllTools?: boolean | undefined;
633
+ toolSlugs?: string[] | undefined;
634
+ }[] | undefined;
635
+ collections?: {
636
+ collectionId: string;
637
+ access: ("create" | "list" | "read" | "update" | "delete")[];
638
+ }[] | undefined;
639
+ contextFiles?: {
640
+ type: string;
641
+ size: number;
642
+ name: string;
643
+ id: string;
644
+ gsUrl: string;
645
+ }[] | undefined;
646
+ memoryCards?: string[] | undefined;
647
+ model?: string | undefined;
648
+ maxTurns?: number | undefined;
649
+ timeoutSeconds?: number | undefined;
650
+ workingDir?: string | undefined;
651
+ systemPromptRef?: string | undefined;
652
+ persona?: string | undefined;
653
+ constraints?: string[] | undefined;
654
+ allowedTools?: string[] | undefined;
655
+ disabledTools?: string[] | undefined;
656
+ capabilities?: {
657
+ promptCaching?: boolean | undefined;
658
+ extendedThinking?: {
659
+ enabled: boolean;
660
+ budgetTokens: number;
661
+ } | undefined;
662
+ extendedContext?: boolean | undefined;
663
+ memory?: {
664
+ enabled: boolean;
665
+ backend: "gcs" | "local";
666
+ directory?: string | undefined;
667
+ } | undefined;
668
+ } | undefined;
669
+ betas?: string[] | undefined;
670
+ }, {
671
+ integrations?: {
672
+ status: string;
673
+ slug: string;
674
+ connectionPath: string;
675
+ name: string;
676
+ logo?: string | undefined;
677
+ useAllTools?: boolean | undefined;
678
+ toolSlugs?: string[] | undefined;
679
+ }[] | undefined;
680
+ collections?: {
681
+ collectionId: string;
682
+ access: ("create" | "list" | "read" | "update" | "delete")[];
683
+ }[] | undefined;
684
+ contextFiles?: {
685
+ type: string;
686
+ size: number;
687
+ name: string;
688
+ id: string;
689
+ gsUrl: string;
690
+ }[] | undefined;
691
+ memoryCards?: string[] | undefined;
692
+ model?: string | undefined;
693
+ maxTurns?: number | undefined;
694
+ timeoutSeconds?: number | undefined;
695
+ workingDir?: string | undefined;
696
+ systemPromptRef?: string | undefined;
697
+ persona?: string | undefined;
698
+ constraints?: string[] | undefined;
699
+ allowedTools?: string[] | undefined;
700
+ disabledTools?: string[] | undefined;
701
+ capabilities?: {
702
+ promptCaching?: boolean | undefined;
703
+ extendedThinking?: {
704
+ enabled: boolean;
705
+ budgetTokens: number;
706
+ } | undefined;
707
+ extendedContext?: boolean | undefined;
708
+ memory?: {
709
+ enabled: boolean;
710
+ backend?: "gcs" | "local" | undefined;
711
+ directory?: string | undefined;
712
+ } | undefined;
713
+ } | undefined;
714
+ betas?: string[] | undefined;
715
+ }>>>;
716
+ skills: z.ZodOptional<z.ZodNullable<z.ZodObject<{
717
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
718
+ id: z.ZodString;
719
+ name: z.ZodString;
720
+ description: z.ZodString;
721
+ body: z.ZodString;
722
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ description: string;
725
+ name: string;
726
+ id: string;
727
+ body: string;
728
+ allowedTools?: string[] | undefined;
729
+ }, {
730
+ description: string;
731
+ name: string;
732
+ id: string;
733
+ body: string;
734
+ allowedTools?: string[] | undefined;
735
+ }>, "many">>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ items: {
738
+ description: string;
739
+ name: string;
740
+ id: string;
741
+ body: string;
742
+ allowedTools?: string[] | undefined;
743
+ }[];
744
+ }, {
745
+ items?: {
746
+ description: string;
747
+ name: string;
748
+ id: string;
749
+ body: string;
750
+ allowedTools?: string[] | undefined;
751
+ }[] | undefined;
752
+ }>>>;
753
+ agents: z.ZodOptional<z.ZodNullable<z.ZodObject<{
754
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
755
+ id: z.ZodString;
756
+ name: z.ZodString;
757
+ description: z.ZodString;
758
+ prompt: z.ZodString;
759
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
760
+ model: z.ZodOptional<z.ZodEnum<["inherit", "haiku", "sonnet", "opus"]>>;
761
+ skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
762
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
763
+ }, "strip", z.ZodTypeAny, {
764
+ description: string;
765
+ name: string;
766
+ id: string;
767
+ prompt: string;
768
+ tools?: string[] | undefined;
769
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
770
+ skills?: string[] | undefined;
771
+ mcpServers?: string[] | undefined;
772
+ }, {
773
+ description: string;
774
+ name: string;
775
+ id: string;
776
+ prompt: string;
777
+ tools?: string[] | undefined;
778
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
779
+ skills?: string[] | undefined;
780
+ mcpServers?: string[] | undefined;
781
+ }>, "many">>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ items: {
784
+ description: string;
785
+ name: string;
786
+ id: string;
787
+ prompt: string;
788
+ tools?: string[] | undefined;
789
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
790
+ skills?: string[] | undefined;
791
+ mcpServers?: string[] | undefined;
792
+ }[];
793
+ }, {
794
+ items?: {
795
+ description: string;
796
+ name: string;
797
+ id: string;
798
+ prompt: string;
799
+ tools?: string[] | undefined;
800
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
801
+ skills?: string[] | undefined;
802
+ mcpServers?: string[] | undefined;
803
+ }[] | undefined;
804
+ }>>>;
805
+ 'mcp-servers': z.ZodOptional<z.ZodNullable<z.ZodObject<{
806
+ servers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
807
+ type: z.ZodLiteral<"http">;
808
+ url: z.ZodString;
809
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
810
+ }, "strip", z.ZodTypeAny, {
811
+ url: string;
812
+ type: "http";
813
+ headers?: Record<string, string> | undefined;
814
+ }, {
815
+ url: string;
816
+ type: "http";
817
+ headers?: Record<string, string> | undefined;
818
+ }>>>;
819
+ }, "strip", z.ZodTypeAny, {
820
+ servers: Record<string, {
821
+ url: string;
822
+ type: "http";
823
+ headers?: Record<string, string> | undefined;
824
+ }>;
825
+ }, {
826
+ servers?: Record<string, {
827
+ url: string;
828
+ type: "http";
829
+ headers?: Record<string, string> | undefined;
830
+ }> | undefined;
831
+ }>>>;
832
+ hooks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
833
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
834
+ id: z.ZodString;
835
+ name: z.ZodString;
836
+ description: z.ZodString;
837
+ event: z.ZodString;
838
+ }, "strip", z.ZodTypeAny, {
839
+ description: string;
840
+ name: string;
841
+ id: string;
842
+ event: string;
843
+ }, {
844
+ description: string;
845
+ name: string;
846
+ id: string;
847
+ event: string;
848
+ }>, "many">>;
849
+ }, "strip", z.ZodTypeAny, {
850
+ items: {
851
+ description: string;
852
+ name: string;
853
+ id: string;
854
+ event: string;
855
+ }[];
856
+ }, {
857
+ items?: {
858
+ description: string;
859
+ name: string;
860
+ id: string;
861
+ event: string;
862
+ }[] | undefined;
863
+ }>>>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ skills?: {
866
+ items: {
867
+ description: string;
868
+ name: string;
869
+ id: string;
870
+ body: string;
871
+ allowedTools?: string[] | undefined;
872
+ }[];
873
+ } | null | undefined;
874
+ defaults?: {
875
+ integrations?: {
876
+ status: string;
877
+ slug: string;
878
+ connectionPath: string;
879
+ name: string;
880
+ logo?: string | undefined;
881
+ useAllTools?: boolean | undefined;
882
+ toolSlugs?: string[] | undefined;
883
+ }[] | undefined;
884
+ collections?: {
885
+ collectionId: string;
886
+ access: ("create" | "list" | "read" | "update" | "delete")[];
887
+ }[] | undefined;
888
+ contextFiles?: {
889
+ type: string;
890
+ size: number;
891
+ name: string;
892
+ id: string;
893
+ gsUrl: string;
894
+ }[] | undefined;
895
+ memoryCards?: string[] | undefined;
896
+ model?: string | undefined;
897
+ maxTurns?: number | undefined;
898
+ timeoutSeconds?: number | undefined;
899
+ workingDir?: string | undefined;
900
+ systemPromptRef?: string | undefined;
901
+ persona?: string | undefined;
902
+ constraints?: string[] | undefined;
903
+ allowedTools?: string[] | undefined;
904
+ disabledTools?: string[] | undefined;
905
+ capabilities?: {
906
+ promptCaching?: boolean | undefined;
907
+ extendedThinking?: {
908
+ enabled: boolean;
909
+ budgetTokens: number;
910
+ } | undefined;
911
+ extendedContext?: boolean | undefined;
912
+ memory?: {
913
+ enabled: boolean;
914
+ backend: "gcs" | "local";
915
+ directory?: string | undefined;
916
+ } | undefined;
917
+ } | undefined;
918
+ betas?: string[] | undefined;
919
+ } | null | undefined;
920
+ agents?: {
921
+ items: {
922
+ description: string;
923
+ name: string;
924
+ id: string;
925
+ prompt: string;
926
+ tools?: string[] | undefined;
927
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
928
+ skills?: string[] | undefined;
929
+ mcpServers?: string[] | undefined;
930
+ }[];
931
+ } | null | undefined;
932
+ 'mcp-servers'?: {
933
+ servers: Record<string, {
934
+ url: string;
935
+ type: "http";
936
+ headers?: Record<string, string> | undefined;
937
+ }>;
938
+ } | null | undefined;
939
+ hooks?: {
940
+ items: {
941
+ description: string;
942
+ name: string;
943
+ id: string;
944
+ event: string;
945
+ }[];
946
+ } | null | undefined;
947
+ }, {
948
+ skills?: {
949
+ items?: {
950
+ description: string;
951
+ name: string;
952
+ id: string;
953
+ body: string;
954
+ allowedTools?: string[] | undefined;
955
+ }[] | undefined;
956
+ } | null | undefined;
957
+ defaults?: {
958
+ integrations?: {
959
+ status: string;
960
+ slug: string;
961
+ connectionPath: string;
962
+ name: string;
963
+ logo?: string | undefined;
964
+ useAllTools?: boolean | undefined;
965
+ toolSlugs?: string[] | undefined;
966
+ }[] | undefined;
967
+ collections?: {
968
+ collectionId: string;
969
+ access: ("create" | "list" | "read" | "update" | "delete")[];
970
+ }[] | undefined;
971
+ contextFiles?: {
972
+ type: string;
973
+ size: number;
974
+ name: string;
975
+ id: string;
976
+ gsUrl: string;
977
+ }[] | undefined;
978
+ memoryCards?: string[] | undefined;
979
+ model?: string | undefined;
980
+ maxTurns?: number | undefined;
981
+ timeoutSeconds?: number | undefined;
982
+ workingDir?: string | undefined;
983
+ systemPromptRef?: string | undefined;
984
+ persona?: string | undefined;
985
+ constraints?: string[] | undefined;
986
+ allowedTools?: string[] | undefined;
987
+ disabledTools?: string[] | undefined;
988
+ capabilities?: {
989
+ promptCaching?: boolean | undefined;
990
+ extendedThinking?: {
991
+ enabled: boolean;
992
+ budgetTokens: number;
993
+ } | undefined;
994
+ extendedContext?: boolean | undefined;
995
+ memory?: {
996
+ enabled: boolean;
997
+ backend?: "gcs" | "local" | undefined;
998
+ directory?: string | undefined;
999
+ } | undefined;
1000
+ } | undefined;
1001
+ betas?: string[] | undefined;
1002
+ } | null | undefined;
1003
+ agents?: {
1004
+ items?: {
1005
+ description: string;
1006
+ name: string;
1007
+ id: string;
1008
+ prompt: string;
1009
+ tools?: string[] | undefined;
1010
+ model?: "inherit" | "haiku" | "sonnet" | "opus" | undefined;
1011
+ skills?: string[] | undefined;
1012
+ mcpServers?: string[] | undefined;
1013
+ }[] | undefined;
1014
+ } | null | undefined;
1015
+ 'mcp-servers'?: {
1016
+ servers?: Record<string, {
1017
+ url: string;
1018
+ type: "http";
1019
+ headers?: Record<string, string> | undefined;
1020
+ }> | undefined;
1021
+ } | null | undefined;
1022
+ hooks?: {
1023
+ items?: {
1024
+ description: string;
1025
+ name: string;
1026
+ id: string;
1027
+ event: string;
1028
+ }[] | undefined;
1029
+ } | null | undefined;
1030
+ }>;
1031
+ export type PluginSnapshot = z.infer<typeof PluginSnapshotSchema>;
1032
+ /** The Firestore section keys, in load order. */
1033
+ export declare const PLUGIN_SECTIONS: readonly ["defaults", "skills", "agents", "mcp-servers", "hooks"];
1034
+ export type PluginSectionKey = (typeof PLUGIN_SECTIONS)[number];