@tealbrick/kit 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,926 @@
1
+ import { z } from 'zod';
2
+ declare const schema: z.ZodObject<{
3
+ version: z.ZodLiteral<1>;
4
+ portal: z.ZodOptional<z.ZodObject<{
5
+ issuer: z.ZodString;
6
+ org: z.ZodString;
7
+ agent: z.ZodString;
8
+ }, z.core.$strict>>;
9
+ voice: z.ZodOptional<z.ZodObject<{
10
+ settings: z.ZodUnknown;
11
+ authorizationModule: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strict>>;
13
+ vision: z.ZodOptional<z.ZodObject<{
14
+ settings: z.ZodUnknown;
15
+ authorizationModule: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strict>>;
17
+ deliver: z.ZodOptional<z.ZodUnknown>;
18
+ avm: z.ZodOptional<z.ZodPipe<z.ZodCustom<{
19
+ target: string;
20
+ mode?: "operator" | "paired" | undefined;
21
+ sudo?: boolean | undefined;
22
+ identityFile?: string | undefined;
23
+ identityTokenFile?: string | undefined;
24
+ timeoutMs?: number | undefined;
25
+ policy?: {
26
+ lifecycle?: {
27
+ worker: string;
28
+ operations: ("start" | "stop" | "promote" | "destroy")[];
29
+ }[] | undefined;
30
+ spawns?: {
31
+ worker: string;
32
+ profile: "light" | "small" | "standard" | "browser";
33
+ mode: "ephemeral" | "durable";
34
+ harnesses?: string[] | undefined;
35
+ bundles?: string[] | undefined;
36
+ capabilities?: string[] | undefined;
37
+ mcps?: string[] | undefined;
38
+ plugins?: string[] | undefined;
39
+ auth?: string[] | undefined;
40
+ }[] | undefined;
41
+ commands?: {
42
+ worker: string;
43
+ command: string;
44
+ argv: string[];
45
+ }[] | undefined;
46
+ administration?: {
47
+ name: string;
48
+ request: {
49
+ operation: "tenantSync";
50
+ workspace: string;
51
+ weight?: number | undefined;
52
+ concurrentHeavyWork?: number | undefined;
53
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
54
+ displayName?: string | undefined;
55
+ principalId?: string | undefined;
56
+ issuer?: string | undefined;
57
+ subject?: string | undefined;
58
+ role?: "operator" | "member" | "admin" | undefined;
59
+ } | {
60
+ operation: "ingressPut";
61
+ provider: string;
62
+ externalIdentity: string;
63
+ worker: string;
64
+ channelScope?: string | undefined;
65
+ metadataFile?: string | undefined;
66
+ } | {
67
+ operation: "ingressRevoke";
68
+ identityId: string;
69
+ } | {
70
+ operation: "ingressWake";
71
+ provider: string;
72
+ externalIdentity: string;
73
+ eventId: string;
74
+ channelScope?: string | undefined;
75
+ payloadFile?: string | undefined;
76
+ correlationId?: string | undefined;
77
+ } | {
78
+ operation: "ingressComplete";
79
+ wakeId: string;
80
+ error?: string | undefined;
81
+ } | {
82
+ operation: "resize";
83
+ worker: string;
84
+ memoryTargetMiB: number;
85
+ } | {
86
+ operation: "workspacePut";
87
+ workspace: string;
88
+ weight?: number | undefined;
89
+ concurrentHeavyWork?: number | undefined;
90
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
91
+ displayName?: string | undefined;
92
+ } | {
93
+ operation: "workspaceDisable";
94
+ workspace: string;
95
+ } | {
96
+ operation: "userPut";
97
+ user: string;
98
+ workspace: string;
99
+ role: "operator" | "member" | "admin";
100
+ } | {
101
+ operation: "ownerSet";
102
+ worker: string;
103
+ workspace: string;
104
+ user?: string | undefined;
105
+ } | {
106
+ operation: "shareGrant";
107
+ worker: string;
108
+ grantee: {
109
+ kind: "workspace";
110
+ id: string;
111
+ } | {
112
+ kind: "user";
113
+ id: string;
114
+ };
115
+ allow: ("capabilities" | "auth" | "start" | "stop" | "wake" | "schedule" | "cool" | "status" | "exec" | "ssh" | "logs" | "events" | "runs" | "assignments" | "leases" | "resident" | "list" | "inventory" | "monitor" | "roles" | "ingress")[];
116
+ } | {
117
+ operation: "shareRevoke";
118
+ worker: string;
119
+ shareId: string;
120
+ } | {
121
+ operation: "residentSet";
122
+ worker: string;
123
+ } | {
124
+ operation: "wake";
125
+ worker: string;
126
+ idempotencyKey: string;
127
+ reason?: string | undefined;
128
+ source?: "schedule" | "cli" | "control-plane" | "delegation" | undefined;
129
+ externalEventId?: string | undefined;
130
+ } | {
131
+ operation: "cool";
132
+ worker: string;
133
+ } | {
134
+ operation: "poolPolicySet";
135
+ cpuPercent?: number | undefined;
136
+ memoryMaxBytes?: number | undefined;
137
+ memoryHighBytes?: number | undefined;
138
+ hostMemoryReserveBytes?: number | undefined;
139
+ launchReserveBytes?: number | undefined;
140
+ };
141
+ }[] | undefined;
142
+ } | undefined;
143
+ } | {
144
+ selectedProfile: string;
145
+ profiles: Record<string, {
146
+ target: string;
147
+ mode?: "operator" | "paired" | undefined;
148
+ sudo?: boolean | undefined;
149
+ identityFile?: string | undefined;
150
+ identityTokenFile?: string | undefined;
151
+ timeoutMs?: number | undefined;
152
+ policy?: {
153
+ lifecycle?: {
154
+ worker: string;
155
+ operations: ("start" | "stop" | "promote" | "destroy")[];
156
+ }[] | undefined;
157
+ spawns?: {
158
+ worker: string;
159
+ profile: "light" | "small" | "standard" | "browser";
160
+ mode: "ephemeral" | "durable";
161
+ harnesses?: string[] | undefined;
162
+ bundles?: string[] | undefined;
163
+ capabilities?: string[] | undefined;
164
+ mcps?: string[] | undefined;
165
+ plugins?: string[] | undefined;
166
+ auth?: string[] | undefined;
167
+ }[] | undefined;
168
+ commands?: {
169
+ worker: string;
170
+ command: string;
171
+ argv: string[];
172
+ }[] | undefined;
173
+ administration?: {
174
+ name: string;
175
+ request: {
176
+ operation: "tenantSync";
177
+ workspace: string;
178
+ weight?: number | undefined;
179
+ concurrentHeavyWork?: number | undefined;
180
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
181
+ displayName?: string | undefined;
182
+ principalId?: string | undefined;
183
+ issuer?: string | undefined;
184
+ subject?: string | undefined;
185
+ role?: "operator" | "member" | "admin" | undefined;
186
+ } | {
187
+ operation: "ingressPut";
188
+ provider: string;
189
+ externalIdentity: string;
190
+ worker: string;
191
+ channelScope?: string | undefined;
192
+ metadataFile?: string | undefined;
193
+ } | {
194
+ operation: "ingressRevoke";
195
+ identityId: string;
196
+ } | {
197
+ operation: "ingressWake";
198
+ provider: string;
199
+ externalIdentity: string;
200
+ eventId: string;
201
+ channelScope?: string | undefined;
202
+ payloadFile?: string | undefined;
203
+ correlationId?: string | undefined;
204
+ } | {
205
+ operation: "ingressComplete";
206
+ wakeId: string;
207
+ error?: string | undefined;
208
+ } | {
209
+ operation: "resize";
210
+ worker: string;
211
+ memoryTargetMiB: number;
212
+ } | {
213
+ operation: "workspacePut";
214
+ workspace: string;
215
+ weight?: number | undefined;
216
+ concurrentHeavyWork?: number | undefined;
217
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
218
+ displayName?: string | undefined;
219
+ } | {
220
+ operation: "workspaceDisable";
221
+ workspace: string;
222
+ } | {
223
+ operation: "userPut";
224
+ user: string;
225
+ workspace: string;
226
+ role: "operator" | "member" | "admin";
227
+ } | {
228
+ operation: "ownerSet";
229
+ worker: string;
230
+ workspace: string;
231
+ user?: string | undefined;
232
+ } | {
233
+ operation: "shareGrant";
234
+ worker: string;
235
+ grantee: {
236
+ kind: "workspace";
237
+ id: string;
238
+ } | {
239
+ kind: "user";
240
+ id: string;
241
+ };
242
+ allow: ("capabilities" | "auth" | "start" | "stop" | "wake" | "schedule" | "cool" | "status" | "exec" | "ssh" | "logs" | "events" | "runs" | "assignments" | "leases" | "resident" | "list" | "inventory" | "monitor" | "roles" | "ingress")[];
243
+ } | {
244
+ operation: "shareRevoke";
245
+ worker: string;
246
+ shareId: string;
247
+ } | {
248
+ operation: "residentSet";
249
+ worker: string;
250
+ } | {
251
+ operation: "wake";
252
+ worker: string;
253
+ idempotencyKey: string;
254
+ reason?: string | undefined;
255
+ source?: "schedule" | "cli" | "control-plane" | "delegation" | undefined;
256
+ externalEventId?: string | undefined;
257
+ } | {
258
+ operation: "cool";
259
+ worker: string;
260
+ } | {
261
+ operation: "poolPolicySet";
262
+ cpuPercent?: number | undefined;
263
+ memoryMaxBytes?: number | undefined;
264
+ memoryHighBytes?: number | undefined;
265
+ hostMemoryReserveBytes?: number | undefined;
266
+ launchReserveBytes?: number | undefined;
267
+ };
268
+ }[] | undefined;
269
+ } | undefined;
270
+ }>;
271
+ }, {
272
+ target: string;
273
+ mode?: "operator" | "paired" | undefined;
274
+ sudo?: boolean | undefined;
275
+ identityFile?: string | undefined;
276
+ identityTokenFile?: string | undefined;
277
+ timeoutMs?: number | undefined;
278
+ policy?: {
279
+ lifecycle?: {
280
+ worker: string;
281
+ operations: ("start" | "stop" | "promote" | "destroy")[];
282
+ }[] | undefined;
283
+ spawns?: {
284
+ worker: string;
285
+ profile: "light" | "small" | "standard" | "browser";
286
+ mode: "ephemeral" | "durable";
287
+ harnesses?: string[] | undefined;
288
+ bundles?: string[] | undefined;
289
+ capabilities?: string[] | undefined;
290
+ mcps?: string[] | undefined;
291
+ plugins?: string[] | undefined;
292
+ auth?: string[] | undefined;
293
+ }[] | undefined;
294
+ commands?: {
295
+ worker: string;
296
+ command: string;
297
+ argv: string[];
298
+ }[] | undefined;
299
+ administration?: {
300
+ name: string;
301
+ request: {
302
+ operation: "tenantSync";
303
+ workspace: string;
304
+ weight?: number | undefined;
305
+ concurrentHeavyWork?: number | undefined;
306
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
307
+ displayName?: string | undefined;
308
+ principalId?: string | undefined;
309
+ issuer?: string | undefined;
310
+ subject?: string | undefined;
311
+ role?: "operator" | "member" | "admin" | undefined;
312
+ } | {
313
+ operation: "ingressPut";
314
+ provider: string;
315
+ externalIdentity: string;
316
+ worker: string;
317
+ channelScope?: string | undefined;
318
+ metadataFile?: string | undefined;
319
+ } | {
320
+ operation: "ingressRevoke";
321
+ identityId: string;
322
+ } | {
323
+ operation: "ingressWake";
324
+ provider: string;
325
+ externalIdentity: string;
326
+ eventId: string;
327
+ channelScope?: string | undefined;
328
+ payloadFile?: string | undefined;
329
+ correlationId?: string | undefined;
330
+ } | {
331
+ operation: "ingressComplete";
332
+ wakeId: string;
333
+ error?: string | undefined;
334
+ } | {
335
+ operation: "resize";
336
+ worker: string;
337
+ memoryTargetMiB: number;
338
+ } | {
339
+ operation: "workspacePut";
340
+ workspace: string;
341
+ weight?: number | undefined;
342
+ concurrentHeavyWork?: number | undefined;
343
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
344
+ displayName?: string | undefined;
345
+ } | {
346
+ operation: "workspaceDisable";
347
+ workspace: string;
348
+ } | {
349
+ operation: "userPut";
350
+ user: string;
351
+ workspace: string;
352
+ role: "operator" | "member" | "admin";
353
+ } | {
354
+ operation: "ownerSet";
355
+ worker: string;
356
+ workspace: string;
357
+ user?: string | undefined;
358
+ } | {
359
+ operation: "shareGrant";
360
+ worker: string;
361
+ grantee: {
362
+ kind: "workspace";
363
+ id: string;
364
+ } | {
365
+ kind: "user";
366
+ id: string;
367
+ };
368
+ allow: ("capabilities" | "auth" | "start" | "stop" | "wake" | "schedule" | "cool" | "status" | "exec" | "ssh" | "logs" | "events" | "runs" | "assignments" | "leases" | "resident" | "list" | "inventory" | "monitor" | "roles" | "ingress")[];
369
+ } | {
370
+ operation: "shareRevoke";
371
+ worker: string;
372
+ shareId: string;
373
+ } | {
374
+ operation: "residentSet";
375
+ worker: string;
376
+ } | {
377
+ operation: "wake";
378
+ worker: string;
379
+ idempotencyKey: string;
380
+ reason?: string | undefined;
381
+ source?: "schedule" | "cli" | "control-plane" | "delegation" | undefined;
382
+ externalEventId?: string | undefined;
383
+ } | {
384
+ operation: "cool";
385
+ worker: string;
386
+ } | {
387
+ operation: "poolPolicySet";
388
+ cpuPercent?: number | undefined;
389
+ memoryMaxBytes?: number | undefined;
390
+ memoryHighBytes?: number | undefined;
391
+ hostMemoryReserveBytes?: number | undefined;
392
+ launchReserveBytes?: number | undefined;
393
+ };
394
+ }[] | undefined;
395
+ } | undefined;
396
+ } | {
397
+ selectedProfile: string;
398
+ profiles: Record<string, {
399
+ target: string;
400
+ mode?: "operator" | "paired" | undefined;
401
+ sudo?: boolean | undefined;
402
+ identityFile?: string | undefined;
403
+ identityTokenFile?: string | undefined;
404
+ timeoutMs?: number | undefined;
405
+ policy?: {
406
+ lifecycle?: {
407
+ worker: string;
408
+ operations: ("start" | "stop" | "promote" | "destroy")[];
409
+ }[] | undefined;
410
+ spawns?: {
411
+ worker: string;
412
+ profile: "light" | "small" | "standard" | "browser";
413
+ mode: "ephemeral" | "durable";
414
+ harnesses?: string[] | undefined;
415
+ bundles?: string[] | undefined;
416
+ capabilities?: string[] | undefined;
417
+ mcps?: string[] | undefined;
418
+ plugins?: string[] | undefined;
419
+ auth?: string[] | undefined;
420
+ }[] | undefined;
421
+ commands?: {
422
+ worker: string;
423
+ command: string;
424
+ argv: string[];
425
+ }[] | undefined;
426
+ administration?: {
427
+ name: string;
428
+ request: {
429
+ operation: "tenantSync";
430
+ workspace: string;
431
+ weight?: number | undefined;
432
+ concurrentHeavyWork?: number | undefined;
433
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
434
+ displayName?: string | undefined;
435
+ principalId?: string | undefined;
436
+ issuer?: string | undefined;
437
+ subject?: string | undefined;
438
+ role?: "operator" | "member" | "admin" | undefined;
439
+ } | {
440
+ operation: "ingressPut";
441
+ provider: string;
442
+ externalIdentity: string;
443
+ worker: string;
444
+ channelScope?: string | undefined;
445
+ metadataFile?: string | undefined;
446
+ } | {
447
+ operation: "ingressRevoke";
448
+ identityId: string;
449
+ } | {
450
+ operation: "ingressWake";
451
+ provider: string;
452
+ externalIdentity: string;
453
+ eventId: string;
454
+ channelScope?: string | undefined;
455
+ payloadFile?: string | undefined;
456
+ correlationId?: string | undefined;
457
+ } | {
458
+ operation: "ingressComplete";
459
+ wakeId: string;
460
+ error?: string | undefined;
461
+ } | {
462
+ operation: "resize";
463
+ worker: string;
464
+ memoryTargetMiB: number;
465
+ } | {
466
+ operation: "workspacePut";
467
+ workspace: string;
468
+ weight?: number | undefined;
469
+ concurrentHeavyWork?: number | undefined;
470
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
471
+ displayName?: string | undefined;
472
+ } | {
473
+ operation: "workspaceDisable";
474
+ workspace: string;
475
+ } | {
476
+ operation: "userPut";
477
+ user: string;
478
+ workspace: string;
479
+ role: "operator" | "member" | "admin";
480
+ } | {
481
+ operation: "ownerSet";
482
+ worker: string;
483
+ workspace: string;
484
+ user?: string | undefined;
485
+ } | {
486
+ operation: "shareGrant";
487
+ worker: string;
488
+ grantee: {
489
+ kind: "workspace";
490
+ id: string;
491
+ } | {
492
+ kind: "user";
493
+ id: string;
494
+ };
495
+ allow: ("capabilities" | "auth" | "start" | "stop" | "wake" | "schedule" | "cool" | "status" | "exec" | "ssh" | "logs" | "events" | "runs" | "assignments" | "leases" | "resident" | "list" | "inventory" | "monitor" | "roles" | "ingress")[];
496
+ } | {
497
+ operation: "shareRevoke";
498
+ worker: string;
499
+ shareId: string;
500
+ } | {
501
+ operation: "residentSet";
502
+ worker: string;
503
+ } | {
504
+ operation: "wake";
505
+ worker: string;
506
+ idempotencyKey: string;
507
+ reason?: string | undefined;
508
+ source?: "schedule" | "cli" | "control-plane" | "delegation" | undefined;
509
+ externalEventId?: string | undefined;
510
+ } | {
511
+ operation: "cool";
512
+ worker: string;
513
+ } | {
514
+ operation: "poolPolicySet";
515
+ cpuPercent?: number | undefined;
516
+ memoryMaxBytes?: number | undefined;
517
+ memoryHighBytes?: number | undefined;
518
+ hostMemoryReserveBytes?: number | undefined;
519
+ launchReserveBytes?: number | undefined;
520
+ };
521
+ }[] | undefined;
522
+ } | undefined;
523
+ }>;
524
+ }>, z.ZodTransform<{
525
+ selectedProfile: string;
526
+ profiles: Record<string, {
527
+ target: string;
528
+ mode?: "operator" | "paired" | undefined;
529
+ sudo?: boolean | undefined;
530
+ identityFile?: string | undefined;
531
+ identityTokenFile?: string | undefined;
532
+ timeoutMs?: number | undefined;
533
+ policy?: {
534
+ lifecycle?: {
535
+ worker: string;
536
+ operations: ("start" | "stop" | "promote" | "destroy")[];
537
+ }[] | undefined;
538
+ spawns?: {
539
+ worker: string;
540
+ profile: "light" | "small" | "standard" | "browser";
541
+ mode: "ephemeral" | "durable";
542
+ harnesses?: string[] | undefined;
543
+ bundles?: string[] | undefined;
544
+ capabilities?: string[] | undefined;
545
+ mcps?: string[] | undefined;
546
+ plugins?: string[] | undefined;
547
+ auth?: string[] | undefined;
548
+ }[] | undefined;
549
+ commands?: {
550
+ worker: string;
551
+ command: string;
552
+ argv: string[];
553
+ }[] | undefined;
554
+ administration?: {
555
+ name: string;
556
+ request: {
557
+ operation: "tenantSync";
558
+ workspace: string;
559
+ weight?: number | undefined;
560
+ concurrentHeavyWork?: number | undefined;
561
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
562
+ displayName?: string | undefined;
563
+ principalId?: string | undefined;
564
+ issuer?: string | undefined;
565
+ subject?: string | undefined;
566
+ role?: "operator" | "member" | "admin" | undefined;
567
+ } | {
568
+ operation: "ingressPut";
569
+ provider: string;
570
+ externalIdentity: string;
571
+ worker: string;
572
+ channelScope?: string | undefined;
573
+ metadataFile?: string | undefined;
574
+ } | {
575
+ operation: "ingressRevoke";
576
+ identityId: string;
577
+ } | {
578
+ operation: "ingressWake";
579
+ provider: string;
580
+ externalIdentity: string;
581
+ eventId: string;
582
+ channelScope?: string | undefined;
583
+ payloadFile?: string | undefined;
584
+ correlationId?: string | undefined;
585
+ } | {
586
+ operation: "ingressComplete";
587
+ wakeId: string;
588
+ error?: string | undefined;
589
+ } | {
590
+ operation: "resize";
591
+ worker: string;
592
+ memoryTargetMiB: number;
593
+ } | {
594
+ operation: "workspacePut";
595
+ workspace: string;
596
+ weight?: number | undefined;
597
+ concurrentHeavyWork?: number | undefined;
598
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
599
+ displayName?: string | undefined;
600
+ } | {
601
+ operation: "workspaceDisable";
602
+ workspace: string;
603
+ } | {
604
+ operation: "userPut";
605
+ user: string;
606
+ workspace: string;
607
+ role: "operator" | "member" | "admin";
608
+ } | {
609
+ operation: "ownerSet";
610
+ worker: string;
611
+ workspace: string;
612
+ user?: string | undefined;
613
+ } | {
614
+ operation: "shareGrant";
615
+ worker: string;
616
+ grantee: {
617
+ kind: "workspace";
618
+ id: string;
619
+ } | {
620
+ kind: "user";
621
+ id: string;
622
+ };
623
+ allow: ("capabilities" | "auth" | "start" | "stop" | "wake" | "schedule" | "cool" | "status" | "exec" | "ssh" | "logs" | "events" | "runs" | "assignments" | "leases" | "resident" | "list" | "inventory" | "monitor" | "roles" | "ingress")[];
624
+ } | {
625
+ operation: "shareRevoke";
626
+ worker: string;
627
+ shareId: string;
628
+ } | {
629
+ operation: "residentSet";
630
+ worker: string;
631
+ } | {
632
+ operation: "wake";
633
+ worker: string;
634
+ idempotencyKey: string;
635
+ reason?: string | undefined;
636
+ source?: "schedule" | "cli" | "control-plane" | "delegation" | undefined;
637
+ externalEventId?: string | undefined;
638
+ } | {
639
+ operation: "cool";
640
+ worker: string;
641
+ } | {
642
+ operation: "poolPolicySet";
643
+ cpuPercent?: number | undefined;
644
+ memoryMaxBytes?: number | undefined;
645
+ memoryHighBytes?: number | undefined;
646
+ hostMemoryReserveBytes?: number | undefined;
647
+ launchReserveBytes?: number | undefined;
648
+ };
649
+ }[] | undefined;
650
+ } | undefined;
651
+ }>;
652
+ } | {
653
+ target: string;
654
+ sudo: boolean;
655
+ }, {
656
+ target: string;
657
+ mode?: "operator" | "paired" | undefined;
658
+ sudo?: boolean | undefined;
659
+ identityFile?: string | undefined;
660
+ identityTokenFile?: string | undefined;
661
+ timeoutMs?: number | undefined;
662
+ policy?: {
663
+ lifecycle?: {
664
+ worker: string;
665
+ operations: ("start" | "stop" | "promote" | "destroy")[];
666
+ }[] | undefined;
667
+ spawns?: {
668
+ worker: string;
669
+ profile: "light" | "small" | "standard" | "browser";
670
+ mode: "ephemeral" | "durable";
671
+ harnesses?: string[] | undefined;
672
+ bundles?: string[] | undefined;
673
+ capabilities?: string[] | undefined;
674
+ mcps?: string[] | undefined;
675
+ plugins?: string[] | undefined;
676
+ auth?: string[] | undefined;
677
+ }[] | undefined;
678
+ commands?: {
679
+ worker: string;
680
+ command: string;
681
+ argv: string[];
682
+ }[] | undefined;
683
+ administration?: {
684
+ name: string;
685
+ request: {
686
+ operation: "tenantSync";
687
+ workspace: string;
688
+ weight?: number | undefined;
689
+ concurrentHeavyWork?: number | undefined;
690
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
691
+ displayName?: string | undefined;
692
+ principalId?: string | undefined;
693
+ issuer?: string | undefined;
694
+ subject?: string | undefined;
695
+ role?: "operator" | "member" | "admin" | undefined;
696
+ } | {
697
+ operation: "ingressPut";
698
+ provider: string;
699
+ externalIdentity: string;
700
+ worker: string;
701
+ channelScope?: string | undefined;
702
+ metadataFile?: string | undefined;
703
+ } | {
704
+ operation: "ingressRevoke";
705
+ identityId: string;
706
+ } | {
707
+ operation: "ingressWake";
708
+ provider: string;
709
+ externalIdentity: string;
710
+ eventId: string;
711
+ channelScope?: string | undefined;
712
+ payloadFile?: string | undefined;
713
+ correlationId?: string | undefined;
714
+ } | {
715
+ operation: "ingressComplete";
716
+ wakeId: string;
717
+ error?: string | undefined;
718
+ } | {
719
+ operation: "resize";
720
+ worker: string;
721
+ memoryTargetMiB: number;
722
+ } | {
723
+ operation: "workspacePut";
724
+ workspace: string;
725
+ weight?: number | undefined;
726
+ concurrentHeavyWork?: number | undefined;
727
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
728
+ displayName?: string | undefined;
729
+ } | {
730
+ operation: "workspaceDisable";
731
+ workspace: string;
732
+ } | {
733
+ operation: "userPut";
734
+ user: string;
735
+ workspace: string;
736
+ role: "operator" | "member" | "admin";
737
+ } | {
738
+ operation: "ownerSet";
739
+ worker: string;
740
+ workspace: string;
741
+ user?: string | undefined;
742
+ } | {
743
+ operation: "shareGrant";
744
+ worker: string;
745
+ grantee: {
746
+ kind: "workspace";
747
+ id: string;
748
+ } | {
749
+ kind: "user";
750
+ id: string;
751
+ };
752
+ allow: ("capabilities" | "auth" | "start" | "stop" | "wake" | "schedule" | "cool" | "status" | "exec" | "ssh" | "logs" | "events" | "runs" | "assignments" | "leases" | "resident" | "list" | "inventory" | "monitor" | "roles" | "ingress")[];
753
+ } | {
754
+ operation: "shareRevoke";
755
+ worker: string;
756
+ shareId: string;
757
+ } | {
758
+ operation: "residentSet";
759
+ worker: string;
760
+ } | {
761
+ operation: "wake";
762
+ worker: string;
763
+ idempotencyKey: string;
764
+ reason?: string | undefined;
765
+ source?: "schedule" | "cli" | "control-plane" | "delegation" | undefined;
766
+ externalEventId?: string | undefined;
767
+ } | {
768
+ operation: "cool";
769
+ worker: string;
770
+ } | {
771
+ operation: "poolPolicySet";
772
+ cpuPercent?: number | undefined;
773
+ memoryMaxBytes?: number | undefined;
774
+ memoryHighBytes?: number | undefined;
775
+ hostMemoryReserveBytes?: number | undefined;
776
+ launchReserveBytes?: number | undefined;
777
+ };
778
+ }[] | undefined;
779
+ } | undefined;
780
+ } | {
781
+ selectedProfile: string;
782
+ profiles: Record<string, {
783
+ target: string;
784
+ mode?: "operator" | "paired" | undefined;
785
+ sudo?: boolean | undefined;
786
+ identityFile?: string | undefined;
787
+ identityTokenFile?: string | undefined;
788
+ timeoutMs?: number | undefined;
789
+ policy?: {
790
+ lifecycle?: {
791
+ worker: string;
792
+ operations: ("start" | "stop" | "promote" | "destroy")[];
793
+ }[] | undefined;
794
+ spawns?: {
795
+ worker: string;
796
+ profile: "light" | "small" | "standard" | "browser";
797
+ mode: "ephemeral" | "durable";
798
+ harnesses?: string[] | undefined;
799
+ bundles?: string[] | undefined;
800
+ capabilities?: string[] | undefined;
801
+ mcps?: string[] | undefined;
802
+ plugins?: string[] | undefined;
803
+ auth?: string[] | undefined;
804
+ }[] | undefined;
805
+ commands?: {
806
+ worker: string;
807
+ command: string;
808
+ argv: string[];
809
+ }[] | undefined;
810
+ administration?: {
811
+ name: string;
812
+ request: {
813
+ operation: "tenantSync";
814
+ workspace: string;
815
+ weight?: number | undefined;
816
+ concurrentHeavyWork?: number | undefined;
817
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
818
+ displayName?: string | undefined;
819
+ principalId?: string | undefined;
820
+ issuer?: string | undefined;
821
+ subject?: string | undefined;
822
+ role?: "operator" | "member" | "admin" | undefined;
823
+ } | {
824
+ operation: "ingressPut";
825
+ provider: string;
826
+ externalIdentity: string;
827
+ worker: string;
828
+ channelScope?: string | undefined;
829
+ metadataFile?: string | undefined;
830
+ } | {
831
+ operation: "ingressRevoke";
832
+ identityId: string;
833
+ } | {
834
+ operation: "ingressWake";
835
+ provider: string;
836
+ externalIdentity: string;
837
+ eventId: string;
838
+ channelScope?: string | undefined;
839
+ payloadFile?: string | undefined;
840
+ correlationId?: string | undefined;
841
+ } | {
842
+ operation: "ingressComplete";
843
+ wakeId: string;
844
+ error?: string | undefined;
845
+ } | {
846
+ operation: "resize";
847
+ worker: string;
848
+ memoryTargetMiB: number;
849
+ } | {
850
+ operation: "workspacePut";
851
+ workspace: string;
852
+ weight?: number | undefined;
853
+ concurrentHeavyWork?: number | undefined;
854
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
855
+ displayName?: string | undefined;
856
+ } | {
857
+ operation: "workspaceDisable";
858
+ workspace: string;
859
+ } | {
860
+ operation: "userPut";
861
+ user: string;
862
+ workspace: string;
863
+ role: "operator" | "member" | "admin";
864
+ } | {
865
+ operation: "ownerSet";
866
+ worker: string;
867
+ workspace: string;
868
+ user?: string | undefined;
869
+ } | {
870
+ operation: "shareGrant";
871
+ worker: string;
872
+ grantee: {
873
+ kind: "workspace";
874
+ id: string;
875
+ } | {
876
+ kind: "user";
877
+ id: string;
878
+ };
879
+ allow: ("capabilities" | "auth" | "start" | "stop" | "wake" | "schedule" | "cool" | "status" | "exec" | "ssh" | "logs" | "events" | "runs" | "assignments" | "leases" | "resident" | "list" | "inventory" | "monitor" | "roles" | "ingress")[];
880
+ } | {
881
+ operation: "shareRevoke";
882
+ worker: string;
883
+ shareId: string;
884
+ } | {
885
+ operation: "residentSet";
886
+ worker: string;
887
+ } | {
888
+ operation: "wake";
889
+ worker: string;
890
+ idempotencyKey: string;
891
+ reason?: string | undefined;
892
+ source?: "schedule" | "cli" | "control-plane" | "delegation" | undefined;
893
+ externalEventId?: string | undefined;
894
+ } | {
895
+ operation: "cool";
896
+ worker: string;
897
+ } | {
898
+ operation: "poolPolicySet";
899
+ cpuPercent?: number | undefined;
900
+ memoryMaxBytes?: number | undefined;
901
+ memoryHighBytes?: number | undefined;
902
+ hostMemoryReserveBytes?: number | undefined;
903
+ launchReserveBytes?: number | undefined;
904
+ };
905
+ }[] | undefined;
906
+ } | undefined;
907
+ }>;
908
+ }>>>;
909
+ }, z.core.$strict>;
910
+ export type KitConfig = z.input<typeof schema>;
911
+ export declare const capabilities: readonly ["portal", "voice", "vision", "deliver", "avm"];
912
+ export interface MountPlan {
913
+ enabled: string[];
914
+ files: Record<string, string>;
915
+ }
916
+ /** Pure mount plan: dependencies alone never contribute capabilities to Eve. */
917
+ export declare function planKit(value: unknown): MountPlan;
918
+ export declare function readKit(root: string): Promise<KitConfig>;
919
+ /** Applies only exact kit-owned files. Unselected features have no mounts at all. */
920
+ export declare function applyKit(root: string, config: KitConfig, credentials?: Record<string, string>): Promise<{
921
+ enabled: string[];
922
+ mounted: string[];
923
+ removed: string[];
924
+ requiresReload: boolean;
925
+ }>;
926
+ export {};