@treeseed/sdk 0.13.0-rc.39 → 0.13.0-rc.41

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,3149 @@
1
+ import { z } from 'zod';
2
+ export declare const developmentModeSchema: z.ZodEnum<["released", "candidate", "live"]>;
3
+ export declare const developmentTargetKindSchema: z.ZodEnum<["package-watch", "live-web", "live-api", "rebuild-restart", "local-companion"]>;
4
+ export declare const developmentReactionSchema: z.ZodEnum<["reload", "restart", "rebuild", "stale", "manual", "none"]>;
5
+ export declare const developmentStatePolicySchema: z.ZodEnum<["stateless", "ephemeral", "clone", "shared-compatible"]>;
6
+ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
7
+ id: z.ZodString;
8
+ kind: z.ZodEnum<["package-watch", "live-web", "live-api", "rebuild-restart", "local-companion"]>;
9
+ platforms: z.ZodArray<z.ZodEnum<["linux-amd64", "linux-arm64", "darwin-arm64", "darwin-amd64"]>, "many">;
10
+ runtimeRequirements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11
+ sourceRoots: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
12
+ ignoredPaths: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
13
+ operations: z.ZodObject<{
14
+ setup: z.ZodOptional<z.ZodObject<{
15
+ command: z.ZodString;
16
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
17
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
18
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
19
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
20
+ }, "strict", z.ZodTypeAny, {
21
+ command: string;
22
+ args: string[];
23
+ environment: Record<string, string>;
24
+ timeoutSeconds: number;
25
+ cwd?: string | undefined;
26
+ }, {
27
+ command: string;
28
+ args?: string[] | undefined;
29
+ cwd?: string | undefined;
30
+ environment?: Record<string, string> | undefined;
31
+ timeoutSeconds?: number | undefined;
32
+ }>>;
33
+ watch: z.ZodOptional<z.ZodObject<{
34
+ command: z.ZodString;
35
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
36
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
37
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
38
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
39
+ }, "strict", z.ZodTypeAny, {
40
+ command: string;
41
+ args: string[];
42
+ environment: Record<string, string>;
43
+ timeoutSeconds: number;
44
+ cwd?: string | undefined;
45
+ }, {
46
+ command: string;
47
+ args?: string[] | undefined;
48
+ cwd?: string | undefined;
49
+ environment?: Record<string, string> | undefined;
50
+ timeoutSeconds?: number | undefined;
51
+ }>>;
52
+ build: z.ZodOptional<z.ZodObject<{
53
+ command: z.ZodString;
54
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
55
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
56
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
57
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
58
+ }, "strict", z.ZodTypeAny, {
59
+ command: string;
60
+ args: string[];
61
+ environment: Record<string, string>;
62
+ timeoutSeconds: number;
63
+ cwd?: string | undefined;
64
+ }, {
65
+ command: string;
66
+ args?: string[] | undefined;
67
+ cwd?: string | undefined;
68
+ environment?: Record<string, string> | undefined;
69
+ timeoutSeconds?: number | undefined;
70
+ }>>;
71
+ start: z.ZodOptional<z.ZodObject<{
72
+ command: z.ZodString;
73
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
74
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
75
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
76
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
77
+ }, "strict", z.ZodTypeAny, {
78
+ command: string;
79
+ args: string[];
80
+ environment: Record<string, string>;
81
+ timeoutSeconds: number;
82
+ cwd?: string | undefined;
83
+ }, {
84
+ command: string;
85
+ args?: string[] | undefined;
86
+ cwd?: string | undefined;
87
+ environment?: Record<string, string> | undefined;
88
+ timeoutSeconds?: number | undefined;
89
+ }>>;
90
+ stop: z.ZodOptional<z.ZodObject<{
91
+ command: z.ZodString;
92
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
93
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
94
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
95
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
96
+ }, "strict", z.ZodTypeAny, {
97
+ command: string;
98
+ args: string[];
99
+ environment: Record<string, string>;
100
+ timeoutSeconds: number;
101
+ cwd?: string | undefined;
102
+ }, {
103
+ command: string;
104
+ args?: string[] | undefined;
105
+ cwd?: string | undefined;
106
+ environment?: Record<string, string> | undefined;
107
+ timeoutSeconds?: number | undefined;
108
+ }>>;
109
+ verify: z.ZodOptional<z.ZodObject<{
110
+ command: z.ZodString;
111
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
112
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
113
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
114
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
115
+ }, "strict", z.ZodTypeAny, {
116
+ command: string;
117
+ args: string[];
118
+ environment: Record<string, string>;
119
+ timeoutSeconds: number;
120
+ cwd?: string | undefined;
121
+ }, {
122
+ command: string;
123
+ args?: string[] | undefined;
124
+ cwd?: string | undefined;
125
+ environment?: Record<string, string> | undefined;
126
+ timeoutSeconds?: number | undefined;
127
+ }>>;
128
+ cleanup: z.ZodOptional<z.ZodObject<{
129
+ command: z.ZodString;
130
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
131
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
132
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
133
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
134
+ }, "strict", z.ZodTypeAny, {
135
+ command: string;
136
+ args: string[];
137
+ environment: Record<string, string>;
138
+ timeoutSeconds: number;
139
+ cwd?: string | undefined;
140
+ }, {
141
+ command: string;
142
+ args?: string[] | undefined;
143
+ cwd?: string | undefined;
144
+ environment?: Record<string, string> | undefined;
145
+ timeoutSeconds?: number | undefined;
146
+ }>>;
147
+ }, "strict", z.ZodTypeAny, {
148
+ setup?: {
149
+ command: string;
150
+ args: string[];
151
+ environment: Record<string, string>;
152
+ timeoutSeconds: number;
153
+ cwd?: string | undefined;
154
+ } | undefined;
155
+ watch?: {
156
+ command: string;
157
+ args: string[];
158
+ environment: Record<string, string>;
159
+ timeoutSeconds: number;
160
+ cwd?: string | undefined;
161
+ } | undefined;
162
+ build?: {
163
+ command: string;
164
+ args: string[];
165
+ environment: Record<string, string>;
166
+ timeoutSeconds: number;
167
+ cwd?: string | undefined;
168
+ } | undefined;
169
+ start?: {
170
+ command: string;
171
+ args: string[];
172
+ environment: Record<string, string>;
173
+ timeoutSeconds: number;
174
+ cwd?: string | undefined;
175
+ } | undefined;
176
+ stop?: {
177
+ command: string;
178
+ args: string[];
179
+ environment: Record<string, string>;
180
+ timeoutSeconds: number;
181
+ cwd?: string | undefined;
182
+ } | undefined;
183
+ verify?: {
184
+ command: string;
185
+ args: string[];
186
+ environment: Record<string, string>;
187
+ timeoutSeconds: number;
188
+ cwd?: string | undefined;
189
+ } | undefined;
190
+ cleanup?: {
191
+ command: string;
192
+ args: string[];
193
+ environment: Record<string, string>;
194
+ timeoutSeconds: number;
195
+ cwd?: string | undefined;
196
+ } | undefined;
197
+ }, {
198
+ setup?: {
199
+ command: string;
200
+ args?: string[] | undefined;
201
+ cwd?: string | undefined;
202
+ environment?: Record<string, string> | undefined;
203
+ timeoutSeconds?: number | undefined;
204
+ } | undefined;
205
+ watch?: {
206
+ command: string;
207
+ args?: string[] | undefined;
208
+ cwd?: string | undefined;
209
+ environment?: Record<string, string> | undefined;
210
+ timeoutSeconds?: number | undefined;
211
+ } | undefined;
212
+ build?: {
213
+ command: string;
214
+ args?: string[] | undefined;
215
+ cwd?: string | undefined;
216
+ environment?: Record<string, string> | undefined;
217
+ timeoutSeconds?: number | undefined;
218
+ } | undefined;
219
+ start?: {
220
+ command: string;
221
+ args?: string[] | undefined;
222
+ cwd?: string | undefined;
223
+ environment?: Record<string, string> | undefined;
224
+ timeoutSeconds?: number | undefined;
225
+ } | undefined;
226
+ stop?: {
227
+ command: string;
228
+ args?: string[] | undefined;
229
+ cwd?: string | undefined;
230
+ environment?: Record<string, string> | undefined;
231
+ timeoutSeconds?: number | undefined;
232
+ } | undefined;
233
+ verify?: {
234
+ command: string;
235
+ args?: string[] | undefined;
236
+ cwd?: string | undefined;
237
+ environment?: Record<string, string> | undefined;
238
+ timeoutSeconds?: number | undefined;
239
+ } | undefined;
240
+ cleanup?: {
241
+ command: string;
242
+ args?: string[] | undefined;
243
+ cwd?: string | undefined;
244
+ environment?: Record<string, string> | undefined;
245
+ timeoutSeconds?: number | undefined;
246
+ } | undefined;
247
+ }>;
248
+ ready: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
249
+ kind: z.ZodLiteral<"marker">;
250
+ path: z.ZodEffects<z.ZodString, string, string>;
251
+ timeoutSeconds: z.ZodNumber;
252
+ }, "strict", z.ZodTypeAny, {
253
+ path: string;
254
+ timeoutSeconds: number;
255
+ kind: "marker";
256
+ }, {
257
+ path: string;
258
+ timeoutSeconds: number;
259
+ kind: "marker";
260
+ }>, z.ZodObject<{
261
+ kind: z.ZodLiteral<"http">;
262
+ path: z.ZodString;
263
+ expectedStatus: z.ZodDefault<z.ZodNumber>;
264
+ timeoutSeconds: z.ZodNumber;
265
+ }, "strict", z.ZodTypeAny, {
266
+ path: string;
267
+ timeoutSeconds: number;
268
+ kind: "http";
269
+ expectedStatus: number;
270
+ }, {
271
+ path: string;
272
+ timeoutSeconds: number;
273
+ kind: "http";
274
+ expectedStatus?: number | undefined;
275
+ }>, z.ZodObject<{
276
+ kind: z.ZodLiteral<"tcp">;
277
+ timeoutSeconds: z.ZodNumber;
278
+ }, "strict", z.ZodTypeAny, {
279
+ timeoutSeconds: number;
280
+ kind: "tcp";
281
+ }, {
282
+ timeoutSeconds: number;
283
+ kind: "tcp";
284
+ }>, z.ZodObject<{
285
+ kind: z.ZodLiteral<"process">;
286
+ graceSeconds: z.ZodDefault<z.ZodNumber>;
287
+ }, "strict", z.ZodTypeAny, {
288
+ kind: "process";
289
+ graceSeconds: number;
290
+ }, {
291
+ kind: "process";
292
+ graceSeconds?: number | undefined;
293
+ }>]>;
294
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
295
+ path: z.ZodEffects<z.ZodString, string, string>;
296
+ mediaType: z.ZodString;
297
+ completionMarker: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
298
+ digestAlgorithm: z.ZodDefault<z.ZodLiteral<"sha256">>;
299
+ }, "strict", z.ZodTypeAny, {
300
+ path: string;
301
+ mediaType: string;
302
+ digestAlgorithm: "sha256";
303
+ completionMarker?: string | undefined;
304
+ }, {
305
+ path: string;
306
+ mediaType: string;
307
+ completionMarker?: string | undefined;
308
+ digestAlgorithm?: "sha256" | undefined;
309
+ }>, "many">>;
310
+ endpoints: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
311
+ id: z.ZodString;
312
+ protocol: z.ZodEnum<["http", "https", "tcp"]>;
313
+ port: z.ZodNumber;
314
+ canonicalAlias: z.ZodOptional<z.ZodString>;
315
+ visibility: z.ZodEnum<["host", "loopback", "private"]>;
316
+ authentication: z.ZodDefault<z.ZodEnum<["none", "application", "mtls"]>>;
317
+ }, "strict", z.ZodTypeAny, {
318
+ id: string;
319
+ protocol: "http" | "tcp" | "https";
320
+ port: number;
321
+ visibility: "host" | "loopback" | "private";
322
+ authentication: "none" | "application" | "mtls";
323
+ canonicalAlias?: string | undefined;
324
+ }, {
325
+ id: string;
326
+ protocol: "http" | "tcp" | "https";
327
+ port: number;
328
+ visibility: "host" | "loopback" | "private";
329
+ canonicalAlias?: string | undefined;
330
+ authentication?: "none" | "application" | "mtls" | undefined;
331
+ }>, {
332
+ id: string;
333
+ protocol: "http" | "tcp" | "https";
334
+ port: number;
335
+ visibility: "host" | "loopback" | "private";
336
+ authentication: "none" | "application" | "mtls";
337
+ canonicalAlias?: string | undefined;
338
+ }, {
339
+ id: string;
340
+ protocol: "http" | "tcp" | "https";
341
+ port: number;
342
+ visibility: "host" | "loopback" | "private";
343
+ canonicalAlias?: string | undefined;
344
+ authentication?: "none" | "application" | "mtls" | undefined;
345
+ }>, "many">>;
346
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
347
+ id: z.ZodString;
348
+ target: z.ZodString;
349
+ capability: z.ZodOptional<z.ZodString>;
350
+ locality: z.ZodDefault<z.ZodEnum<["local", "remote", "either"]>>;
351
+ reaction: z.ZodEnum<["reload", "restart", "rebuild", "stale", "manual", "none"]>;
352
+ }, "strict", z.ZodTypeAny, {
353
+ id: string;
354
+ target: string;
355
+ locality: "local" | "remote" | "either";
356
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
357
+ capability?: string | undefined;
358
+ }, {
359
+ id: string;
360
+ target: string;
361
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
362
+ capability?: string | undefined;
363
+ locality?: "local" | "remote" | "either" | undefined;
364
+ }>, "many">>;
365
+ statePolicy: z.ZodEnum<["stateless", "ephemeral", "clone", "shared-compatible"]>;
366
+ migrationPolicy: z.ZodEnum<["none", "explicit-review", "disposable-only"]>;
367
+ secretRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
368
+ shutdown: z.ZodObject<{
369
+ drainOperation: z.ZodOptional<z.ZodObject<{
370
+ command: z.ZodString;
371
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
372
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
373
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
374
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
375
+ }, "strict", z.ZodTypeAny, {
376
+ command: string;
377
+ args: string[];
378
+ environment: Record<string, string>;
379
+ timeoutSeconds: number;
380
+ cwd?: string | undefined;
381
+ }, {
382
+ command: string;
383
+ args?: string[] | undefined;
384
+ cwd?: string | undefined;
385
+ environment?: Record<string, string> | undefined;
386
+ timeoutSeconds?: number | undefined;
387
+ }>>;
388
+ graceSeconds: z.ZodDefault<z.ZodNumber>;
389
+ activeWorkPolicy: z.ZodDefault<z.ZodEnum<["block", "drain", "cancel-authorized"]>>;
390
+ }, "strict", z.ZodTypeAny, {
391
+ graceSeconds: number;
392
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
393
+ drainOperation?: {
394
+ command: string;
395
+ args: string[];
396
+ environment: Record<string, string>;
397
+ timeoutSeconds: number;
398
+ cwd?: string | undefined;
399
+ } | undefined;
400
+ }, {
401
+ graceSeconds?: number | undefined;
402
+ drainOperation?: {
403
+ command: string;
404
+ args?: string[] | undefined;
405
+ cwd?: string | undefined;
406
+ environment?: Record<string, string> | undefined;
407
+ timeoutSeconds?: number | undefined;
408
+ } | undefined;
409
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
410
+ }>;
411
+ resources: z.ZodDefault<z.ZodObject<{
412
+ cpuCores: z.ZodOptional<z.ZodNumber>;
413
+ memoryBytes: z.ZodOptional<z.ZodNumber>;
414
+ diskBytes: z.ZodOptional<z.ZodNumber>;
415
+ }, "strict", z.ZodTypeAny, {
416
+ cpuCores?: number | undefined;
417
+ memoryBytes?: number | undefined;
418
+ diskBytes?: number | undefined;
419
+ }, {
420
+ cpuCores?: number | undefined;
421
+ memoryBytes?: number | undefined;
422
+ diskBytes?: number | undefined;
423
+ }>>;
424
+ logs: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
425
+ forbiddenOperations: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
426
+ freeze: z.ZodOptional<z.ZodObject<{
427
+ kind: z.ZodEnum<["npm-package", "oci-image", "archive", "executable"]>;
428
+ operation: z.ZodObject<{
429
+ command: z.ZodString;
430
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
431
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
432
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
433
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
434
+ }, "strict", z.ZodTypeAny, {
435
+ command: string;
436
+ args: string[];
437
+ environment: Record<string, string>;
438
+ timeoutSeconds: number;
439
+ cwd?: string | undefined;
440
+ }, {
441
+ command: string;
442
+ args?: string[] | undefined;
443
+ cwd?: string | undefined;
444
+ environment?: Record<string, string> | undefined;
445
+ timeoutSeconds?: number | undefined;
446
+ }>;
447
+ artifacts: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
448
+ contractOperations: z.ZodDefault<z.ZodArray<z.ZodObject<{
449
+ command: z.ZodString;
450
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
451
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
452
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
453
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
454
+ }, "strict", z.ZodTypeAny, {
455
+ command: string;
456
+ args: string[];
457
+ environment: Record<string, string>;
458
+ timeoutSeconds: number;
459
+ cwd?: string | undefined;
460
+ }, {
461
+ command: string;
462
+ args?: string[] | undefined;
463
+ cwd?: string | undefined;
464
+ environment?: Record<string, string> | undefined;
465
+ timeoutSeconds?: number | undefined;
466
+ }>, "many">>;
467
+ }, "strict", z.ZodTypeAny, {
468
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
469
+ operation: {
470
+ command: string;
471
+ args: string[];
472
+ environment: Record<string, string>;
473
+ timeoutSeconds: number;
474
+ cwd?: string | undefined;
475
+ };
476
+ artifacts: string[];
477
+ contractOperations: {
478
+ command: string;
479
+ args: string[];
480
+ environment: Record<string, string>;
481
+ timeoutSeconds: number;
482
+ cwd?: string | undefined;
483
+ }[];
484
+ }, {
485
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
486
+ operation: {
487
+ command: string;
488
+ args?: string[] | undefined;
489
+ cwd?: string | undefined;
490
+ environment?: Record<string, string> | undefined;
491
+ timeoutSeconds?: number | undefined;
492
+ };
493
+ artifacts: string[];
494
+ contractOperations?: {
495
+ command: string;
496
+ args?: string[] | undefined;
497
+ cwd?: string | undefined;
498
+ environment?: Record<string, string> | undefined;
499
+ timeoutSeconds?: number | undefined;
500
+ }[] | undefined;
501
+ }>>;
502
+ promotion: z.ZodObject<{
503
+ liveAdmissible: z.ZodLiteral<false>;
504
+ candidateRequiresVerification: z.ZodLiteral<true>;
505
+ }, "strict", z.ZodTypeAny, {
506
+ liveAdmissible: false;
507
+ candidateRequiresVerification: true;
508
+ }, {
509
+ liveAdmissible: false;
510
+ candidateRequiresVerification: true;
511
+ }>;
512
+ }, "strict", z.ZodTypeAny, {
513
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
514
+ id: string;
515
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
516
+ runtimeRequirements: string[];
517
+ sourceRoots: string[];
518
+ ignoredPaths: string[];
519
+ operations: {
520
+ setup?: {
521
+ command: string;
522
+ args: string[];
523
+ environment: Record<string, string>;
524
+ timeoutSeconds: number;
525
+ cwd?: string | undefined;
526
+ } | undefined;
527
+ watch?: {
528
+ command: string;
529
+ args: string[];
530
+ environment: Record<string, string>;
531
+ timeoutSeconds: number;
532
+ cwd?: string | undefined;
533
+ } | undefined;
534
+ build?: {
535
+ command: string;
536
+ args: string[];
537
+ environment: Record<string, string>;
538
+ timeoutSeconds: number;
539
+ cwd?: string | undefined;
540
+ } | undefined;
541
+ start?: {
542
+ command: string;
543
+ args: string[];
544
+ environment: Record<string, string>;
545
+ timeoutSeconds: number;
546
+ cwd?: string | undefined;
547
+ } | undefined;
548
+ stop?: {
549
+ command: string;
550
+ args: string[];
551
+ environment: Record<string, string>;
552
+ timeoutSeconds: number;
553
+ cwd?: string | undefined;
554
+ } | undefined;
555
+ verify?: {
556
+ command: string;
557
+ args: string[];
558
+ environment: Record<string, string>;
559
+ timeoutSeconds: number;
560
+ cwd?: string | undefined;
561
+ } | undefined;
562
+ cleanup?: {
563
+ command: string;
564
+ args: string[];
565
+ environment: Record<string, string>;
566
+ timeoutSeconds: number;
567
+ cwd?: string | undefined;
568
+ } | undefined;
569
+ };
570
+ ready: {
571
+ path: string;
572
+ timeoutSeconds: number;
573
+ kind: "marker";
574
+ } | {
575
+ path: string;
576
+ timeoutSeconds: number;
577
+ kind: "http";
578
+ expectedStatus: number;
579
+ } | {
580
+ timeoutSeconds: number;
581
+ kind: "tcp";
582
+ } | {
583
+ kind: "process";
584
+ graceSeconds: number;
585
+ };
586
+ outputs: {
587
+ path: string;
588
+ mediaType: string;
589
+ digestAlgorithm: "sha256";
590
+ completionMarker?: string | undefined;
591
+ }[];
592
+ endpoints: {
593
+ id: string;
594
+ protocol: "http" | "tcp" | "https";
595
+ port: number;
596
+ visibility: "host" | "loopback" | "private";
597
+ authentication: "none" | "application" | "mtls";
598
+ canonicalAlias?: string | undefined;
599
+ }[];
600
+ dependencies: {
601
+ id: string;
602
+ target: string;
603
+ locality: "local" | "remote" | "either";
604
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
605
+ capability?: string | undefined;
606
+ }[];
607
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
608
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
609
+ secretRefs: Record<string, string>;
610
+ shutdown: {
611
+ graceSeconds: number;
612
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
613
+ drainOperation?: {
614
+ command: string;
615
+ args: string[];
616
+ environment: Record<string, string>;
617
+ timeoutSeconds: number;
618
+ cwd?: string | undefined;
619
+ } | undefined;
620
+ };
621
+ resources: {
622
+ cpuCores?: number | undefined;
623
+ memoryBytes?: number | undefined;
624
+ diskBytes?: number | undefined;
625
+ };
626
+ logs: string[];
627
+ forbiddenOperations: string[];
628
+ promotion: {
629
+ liveAdmissible: false;
630
+ candidateRequiresVerification: true;
631
+ };
632
+ freeze?: {
633
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
634
+ operation: {
635
+ command: string;
636
+ args: string[];
637
+ environment: Record<string, string>;
638
+ timeoutSeconds: number;
639
+ cwd?: string | undefined;
640
+ };
641
+ artifacts: string[];
642
+ contractOperations: {
643
+ command: string;
644
+ args: string[];
645
+ environment: Record<string, string>;
646
+ timeoutSeconds: number;
647
+ cwd?: string | undefined;
648
+ }[];
649
+ } | undefined;
650
+ }, {
651
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
652
+ id: string;
653
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
654
+ sourceRoots: string[];
655
+ operations: {
656
+ setup?: {
657
+ command: string;
658
+ args?: string[] | undefined;
659
+ cwd?: string | undefined;
660
+ environment?: Record<string, string> | undefined;
661
+ timeoutSeconds?: number | undefined;
662
+ } | undefined;
663
+ watch?: {
664
+ command: string;
665
+ args?: string[] | undefined;
666
+ cwd?: string | undefined;
667
+ environment?: Record<string, string> | undefined;
668
+ timeoutSeconds?: number | undefined;
669
+ } | undefined;
670
+ build?: {
671
+ command: string;
672
+ args?: string[] | undefined;
673
+ cwd?: string | undefined;
674
+ environment?: Record<string, string> | undefined;
675
+ timeoutSeconds?: number | undefined;
676
+ } | undefined;
677
+ start?: {
678
+ command: string;
679
+ args?: string[] | undefined;
680
+ cwd?: string | undefined;
681
+ environment?: Record<string, string> | undefined;
682
+ timeoutSeconds?: number | undefined;
683
+ } | undefined;
684
+ stop?: {
685
+ command: string;
686
+ args?: string[] | undefined;
687
+ cwd?: string | undefined;
688
+ environment?: Record<string, string> | undefined;
689
+ timeoutSeconds?: number | undefined;
690
+ } | undefined;
691
+ verify?: {
692
+ command: string;
693
+ args?: string[] | undefined;
694
+ cwd?: string | undefined;
695
+ environment?: Record<string, string> | undefined;
696
+ timeoutSeconds?: number | undefined;
697
+ } | undefined;
698
+ cleanup?: {
699
+ command: string;
700
+ args?: string[] | undefined;
701
+ cwd?: string | undefined;
702
+ environment?: Record<string, string> | undefined;
703
+ timeoutSeconds?: number | undefined;
704
+ } | undefined;
705
+ };
706
+ ready: {
707
+ path: string;
708
+ timeoutSeconds: number;
709
+ kind: "marker";
710
+ } | {
711
+ path: string;
712
+ timeoutSeconds: number;
713
+ kind: "http";
714
+ expectedStatus?: number | undefined;
715
+ } | {
716
+ timeoutSeconds: number;
717
+ kind: "tcp";
718
+ } | {
719
+ kind: "process";
720
+ graceSeconds?: number | undefined;
721
+ };
722
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
723
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
724
+ shutdown: {
725
+ graceSeconds?: number | undefined;
726
+ drainOperation?: {
727
+ command: string;
728
+ args?: string[] | undefined;
729
+ cwd?: string | undefined;
730
+ environment?: Record<string, string> | undefined;
731
+ timeoutSeconds?: number | undefined;
732
+ } | undefined;
733
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
734
+ };
735
+ promotion: {
736
+ liveAdmissible: false;
737
+ candidateRequiresVerification: true;
738
+ };
739
+ runtimeRequirements?: string[] | undefined;
740
+ ignoredPaths?: string[] | undefined;
741
+ outputs?: {
742
+ path: string;
743
+ mediaType: string;
744
+ completionMarker?: string | undefined;
745
+ digestAlgorithm?: "sha256" | undefined;
746
+ }[] | undefined;
747
+ endpoints?: {
748
+ id: string;
749
+ protocol: "http" | "tcp" | "https";
750
+ port: number;
751
+ visibility: "host" | "loopback" | "private";
752
+ canonicalAlias?: string | undefined;
753
+ authentication?: "none" | "application" | "mtls" | undefined;
754
+ }[] | undefined;
755
+ dependencies?: {
756
+ id: string;
757
+ target: string;
758
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
759
+ capability?: string | undefined;
760
+ locality?: "local" | "remote" | "either" | undefined;
761
+ }[] | undefined;
762
+ secretRefs?: Record<string, string> | undefined;
763
+ resources?: {
764
+ cpuCores?: number | undefined;
765
+ memoryBytes?: number | undefined;
766
+ diskBytes?: number | undefined;
767
+ } | undefined;
768
+ logs?: string[] | undefined;
769
+ forbiddenOperations?: string[] | undefined;
770
+ freeze?: {
771
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
772
+ operation: {
773
+ command: string;
774
+ args?: string[] | undefined;
775
+ cwd?: string | undefined;
776
+ environment?: Record<string, string> | undefined;
777
+ timeoutSeconds?: number | undefined;
778
+ };
779
+ artifacts: string[];
780
+ contractOperations?: {
781
+ command: string;
782
+ args?: string[] | undefined;
783
+ cwd?: string | undefined;
784
+ environment?: Record<string, string> | undefined;
785
+ timeoutSeconds?: number | undefined;
786
+ }[] | undefined;
787
+ } | undefined;
788
+ }>, {
789
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
790
+ id: string;
791
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
792
+ runtimeRequirements: string[];
793
+ sourceRoots: string[];
794
+ ignoredPaths: string[];
795
+ operations: {
796
+ setup?: {
797
+ command: string;
798
+ args: string[];
799
+ environment: Record<string, string>;
800
+ timeoutSeconds: number;
801
+ cwd?: string | undefined;
802
+ } | undefined;
803
+ watch?: {
804
+ command: string;
805
+ args: string[];
806
+ environment: Record<string, string>;
807
+ timeoutSeconds: number;
808
+ cwd?: string | undefined;
809
+ } | undefined;
810
+ build?: {
811
+ command: string;
812
+ args: string[];
813
+ environment: Record<string, string>;
814
+ timeoutSeconds: number;
815
+ cwd?: string | undefined;
816
+ } | undefined;
817
+ start?: {
818
+ command: string;
819
+ args: string[];
820
+ environment: Record<string, string>;
821
+ timeoutSeconds: number;
822
+ cwd?: string | undefined;
823
+ } | undefined;
824
+ stop?: {
825
+ command: string;
826
+ args: string[];
827
+ environment: Record<string, string>;
828
+ timeoutSeconds: number;
829
+ cwd?: string | undefined;
830
+ } | undefined;
831
+ verify?: {
832
+ command: string;
833
+ args: string[];
834
+ environment: Record<string, string>;
835
+ timeoutSeconds: number;
836
+ cwd?: string | undefined;
837
+ } | undefined;
838
+ cleanup?: {
839
+ command: string;
840
+ args: string[];
841
+ environment: Record<string, string>;
842
+ timeoutSeconds: number;
843
+ cwd?: string | undefined;
844
+ } | undefined;
845
+ };
846
+ ready: {
847
+ path: string;
848
+ timeoutSeconds: number;
849
+ kind: "marker";
850
+ } | {
851
+ path: string;
852
+ timeoutSeconds: number;
853
+ kind: "http";
854
+ expectedStatus: number;
855
+ } | {
856
+ timeoutSeconds: number;
857
+ kind: "tcp";
858
+ } | {
859
+ kind: "process";
860
+ graceSeconds: number;
861
+ };
862
+ outputs: {
863
+ path: string;
864
+ mediaType: string;
865
+ digestAlgorithm: "sha256";
866
+ completionMarker?: string | undefined;
867
+ }[];
868
+ endpoints: {
869
+ id: string;
870
+ protocol: "http" | "tcp" | "https";
871
+ port: number;
872
+ visibility: "host" | "loopback" | "private";
873
+ authentication: "none" | "application" | "mtls";
874
+ canonicalAlias?: string | undefined;
875
+ }[];
876
+ dependencies: {
877
+ id: string;
878
+ target: string;
879
+ locality: "local" | "remote" | "either";
880
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
881
+ capability?: string | undefined;
882
+ }[];
883
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
884
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
885
+ secretRefs: Record<string, string>;
886
+ shutdown: {
887
+ graceSeconds: number;
888
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
889
+ drainOperation?: {
890
+ command: string;
891
+ args: string[];
892
+ environment: Record<string, string>;
893
+ timeoutSeconds: number;
894
+ cwd?: string | undefined;
895
+ } | undefined;
896
+ };
897
+ resources: {
898
+ cpuCores?: number | undefined;
899
+ memoryBytes?: number | undefined;
900
+ diskBytes?: number | undefined;
901
+ };
902
+ logs: string[];
903
+ forbiddenOperations: string[];
904
+ promotion: {
905
+ liveAdmissible: false;
906
+ candidateRequiresVerification: true;
907
+ };
908
+ freeze?: {
909
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
910
+ operation: {
911
+ command: string;
912
+ args: string[];
913
+ environment: Record<string, string>;
914
+ timeoutSeconds: number;
915
+ cwd?: string | undefined;
916
+ };
917
+ artifacts: string[];
918
+ contractOperations: {
919
+ command: string;
920
+ args: string[];
921
+ environment: Record<string, string>;
922
+ timeoutSeconds: number;
923
+ cwd?: string | undefined;
924
+ }[];
925
+ } | undefined;
926
+ }, {
927
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
928
+ id: string;
929
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
930
+ sourceRoots: string[];
931
+ operations: {
932
+ setup?: {
933
+ command: string;
934
+ args?: string[] | undefined;
935
+ cwd?: string | undefined;
936
+ environment?: Record<string, string> | undefined;
937
+ timeoutSeconds?: number | undefined;
938
+ } | undefined;
939
+ watch?: {
940
+ command: string;
941
+ args?: string[] | undefined;
942
+ cwd?: string | undefined;
943
+ environment?: Record<string, string> | undefined;
944
+ timeoutSeconds?: number | undefined;
945
+ } | undefined;
946
+ build?: {
947
+ command: string;
948
+ args?: string[] | undefined;
949
+ cwd?: string | undefined;
950
+ environment?: Record<string, string> | undefined;
951
+ timeoutSeconds?: number | undefined;
952
+ } | undefined;
953
+ start?: {
954
+ command: string;
955
+ args?: string[] | undefined;
956
+ cwd?: string | undefined;
957
+ environment?: Record<string, string> | undefined;
958
+ timeoutSeconds?: number | undefined;
959
+ } | undefined;
960
+ stop?: {
961
+ command: string;
962
+ args?: string[] | undefined;
963
+ cwd?: string | undefined;
964
+ environment?: Record<string, string> | undefined;
965
+ timeoutSeconds?: number | undefined;
966
+ } | undefined;
967
+ verify?: {
968
+ command: string;
969
+ args?: string[] | undefined;
970
+ cwd?: string | undefined;
971
+ environment?: Record<string, string> | undefined;
972
+ timeoutSeconds?: number | undefined;
973
+ } | undefined;
974
+ cleanup?: {
975
+ command: string;
976
+ args?: string[] | undefined;
977
+ cwd?: string | undefined;
978
+ environment?: Record<string, string> | undefined;
979
+ timeoutSeconds?: number | undefined;
980
+ } | undefined;
981
+ };
982
+ ready: {
983
+ path: string;
984
+ timeoutSeconds: number;
985
+ kind: "marker";
986
+ } | {
987
+ path: string;
988
+ timeoutSeconds: number;
989
+ kind: "http";
990
+ expectedStatus?: number | undefined;
991
+ } | {
992
+ timeoutSeconds: number;
993
+ kind: "tcp";
994
+ } | {
995
+ kind: "process";
996
+ graceSeconds?: number | undefined;
997
+ };
998
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
999
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
1000
+ shutdown: {
1001
+ graceSeconds?: number | undefined;
1002
+ drainOperation?: {
1003
+ command: string;
1004
+ args?: string[] | undefined;
1005
+ cwd?: string | undefined;
1006
+ environment?: Record<string, string> | undefined;
1007
+ timeoutSeconds?: number | undefined;
1008
+ } | undefined;
1009
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
1010
+ };
1011
+ promotion: {
1012
+ liveAdmissible: false;
1013
+ candidateRequiresVerification: true;
1014
+ };
1015
+ runtimeRequirements?: string[] | undefined;
1016
+ ignoredPaths?: string[] | undefined;
1017
+ outputs?: {
1018
+ path: string;
1019
+ mediaType: string;
1020
+ completionMarker?: string | undefined;
1021
+ digestAlgorithm?: "sha256" | undefined;
1022
+ }[] | undefined;
1023
+ endpoints?: {
1024
+ id: string;
1025
+ protocol: "http" | "tcp" | "https";
1026
+ port: number;
1027
+ visibility: "host" | "loopback" | "private";
1028
+ canonicalAlias?: string | undefined;
1029
+ authentication?: "none" | "application" | "mtls" | undefined;
1030
+ }[] | undefined;
1031
+ dependencies?: {
1032
+ id: string;
1033
+ target: string;
1034
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1035
+ capability?: string | undefined;
1036
+ locality?: "local" | "remote" | "either" | undefined;
1037
+ }[] | undefined;
1038
+ secretRefs?: Record<string, string> | undefined;
1039
+ resources?: {
1040
+ cpuCores?: number | undefined;
1041
+ memoryBytes?: number | undefined;
1042
+ diskBytes?: number | undefined;
1043
+ } | undefined;
1044
+ logs?: string[] | undefined;
1045
+ forbiddenOperations?: string[] | undefined;
1046
+ freeze?: {
1047
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1048
+ operation: {
1049
+ command: string;
1050
+ args?: string[] | undefined;
1051
+ cwd?: string | undefined;
1052
+ environment?: Record<string, string> | undefined;
1053
+ timeoutSeconds?: number | undefined;
1054
+ };
1055
+ artifacts: string[];
1056
+ contractOperations?: {
1057
+ command: string;
1058
+ args?: string[] | undefined;
1059
+ cwd?: string | undefined;
1060
+ environment?: Record<string, string> | undefined;
1061
+ timeoutSeconds?: number | undefined;
1062
+ }[] | undefined;
1063
+ } | undefined;
1064
+ }>;
1065
+ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
1066
+ schemaVersion: z.ZodLiteral<"treeseed.development-runtime/v1">;
1067
+ project: z.ZodObject<{
1068
+ id: z.ZodString;
1069
+ repository: z.ZodString;
1070
+ }, "strict", z.ZodTypeAny, {
1071
+ id: string;
1072
+ repository: string;
1073
+ }, {
1074
+ id: string;
1075
+ repository: string;
1076
+ }>;
1077
+ defaults: z.ZodObject<{
1078
+ leaseSeconds: z.ZodDefault<z.ZodNumber>;
1079
+ restoreOnFailure: z.ZodDefault<z.ZodBoolean>;
1080
+ }, "strict", z.ZodTypeAny, {
1081
+ leaseSeconds: number;
1082
+ restoreOnFailure: boolean;
1083
+ }, {
1084
+ leaseSeconds?: number | undefined;
1085
+ restoreOnFailure?: boolean | undefined;
1086
+ }>;
1087
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1088
+ id: z.ZodString;
1089
+ kind: z.ZodEnum<["package-watch", "live-web", "live-api", "rebuild-restart", "local-companion"]>;
1090
+ platforms: z.ZodArray<z.ZodEnum<["linux-amd64", "linux-arm64", "darwin-arm64", "darwin-amd64"]>, "many">;
1091
+ runtimeRequirements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1092
+ sourceRoots: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1093
+ ignoredPaths: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1094
+ operations: z.ZodObject<{
1095
+ setup: z.ZodOptional<z.ZodObject<{
1096
+ command: z.ZodString;
1097
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1098
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1099
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1100
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1101
+ }, "strict", z.ZodTypeAny, {
1102
+ command: string;
1103
+ args: string[];
1104
+ environment: Record<string, string>;
1105
+ timeoutSeconds: number;
1106
+ cwd?: string | undefined;
1107
+ }, {
1108
+ command: string;
1109
+ args?: string[] | undefined;
1110
+ cwd?: string | undefined;
1111
+ environment?: Record<string, string> | undefined;
1112
+ timeoutSeconds?: number | undefined;
1113
+ }>>;
1114
+ watch: z.ZodOptional<z.ZodObject<{
1115
+ command: z.ZodString;
1116
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1117
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1118
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1119
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1120
+ }, "strict", z.ZodTypeAny, {
1121
+ command: string;
1122
+ args: string[];
1123
+ environment: Record<string, string>;
1124
+ timeoutSeconds: number;
1125
+ cwd?: string | undefined;
1126
+ }, {
1127
+ command: string;
1128
+ args?: string[] | undefined;
1129
+ cwd?: string | undefined;
1130
+ environment?: Record<string, string> | undefined;
1131
+ timeoutSeconds?: number | undefined;
1132
+ }>>;
1133
+ build: z.ZodOptional<z.ZodObject<{
1134
+ command: z.ZodString;
1135
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1136
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1137
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1138
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1139
+ }, "strict", z.ZodTypeAny, {
1140
+ command: string;
1141
+ args: string[];
1142
+ environment: Record<string, string>;
1143
+ timeoutSeconds: number;
1144
+ cwd?: string | undefined;
1145
+ }, {
1146
+ command: string;
1147
+ args?: string[] | undefined;
1148
+ cwd?: string | undefined;
1149
+ environment?: Record<string, string> | undefined;
1150
+ timeoutSeconds?: number | undefined;
1151
+ }>>;
1152
+ start: z.ZodOptional<z.ZodObject<{
1153
+ command: z.ZodString;
1154
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1155
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1156
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1157
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1158
+ }, "strict", z.ZodTypeAny, {
1159
+ command: string;
1160
+ args: string[];
1161
+ environment: Record<string, string>;
1162
+ timeoutSeconds: number;
1163
+ cwd?: string | undefined;
1164
+ }, {
1165
+ command: string;
1166
+ args?: string[] | undefined;
1167
+ cwd?: string | undefined;
1168
+ environment?: Record<string, string> | undefined;
1169
+ timeoutSeconds?: number | undefined;
1170
+ }>>;
1171
+ stop: z.ZodOptional<z.ZodObject<{
1172
+ command: z.ZodString;
1173
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1174
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1175
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1176
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1177
+ }, "strict", z.ZodTypeAny, {
1178
+ command: string;
1179
+ args: string[];
1180
+ environment: Record<string, string>;
1181
+ timeoutSeconds: number;
1182
+ cwd?: string | undefined;
1183
+ }, {
1184
+ command: string;
1185
+ args?: string[] | undefined;
1186
+ cwd?: string | undefined;
1187
+ environment?: Record<string, string> | undefined;
1188
+ timeoutSeconds?: number | undefined;
1189
+ }>>;
1190
+ verify: z.ZodOptional<z.ZodObject<{
1191
+ command: z.ZodString;
1192
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1193
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1194
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1195
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1196
+ }, "strict", z.ZodTypeAny, {
1197
+ command: string;
1198
+ args: string[];
1199
+ environment: Record<string, string>;
1200
+ timeoutSeconds: number;
1201
+ cwd?: string | undefined;
1202
+ }, {
1203
+ command: string;
1204
+ args?: string[] | undefined;
1205
+ cwd?: string | undefined;
1206
+ environment?: Record<string, string> | undefined;
1207
+ timeoutSeconds?: number | undefined;
1208
+ }>>;
1209
+ cleanup: z.ZodOptional<z.ZodObject<{
1210
+ command: z.ZodString;
1211
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1212
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1213
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1214
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1215
+ }, "strict", z.ZodTypeAny, {
1216
+ command: string;
1217
+ args: string[];
1218
+ environment: Record<string, string>;
1219
+ timeoutSeconds: number;
1220
+ cwd?: string | undefined;
1221
+ }, {
1222
+ command: string;
1223
+ args?: string[] | undefined;
1224
+ cwd?: string | undefined;
1225
+ environment?: Record<string, string> | undefined;
1226
+ timeoutSeconds?: number | undefined;
1227
+ }>>;
1228
+ }, "strict", z.ZodTypeAny, {
1229
+ setup?: {
1230
+ command: string;
1231
+ args: string[];
1232
+ environment: Record<string, string>;
1233
+ timeoutSeconds: number;
1234
+ cwd?: string | undefined;
1235
+ } | undefined;
1236
+ watch?: {
1237
+ command: string;
1238
+ args: string[];
1239
+ environment: Record<string, string>;
1240
+ timeoutSeconds: number;
1241
+ cwd?: string | undefined;
1242
+ } | undefined;
1243
+ build?: {
1244
+ command: string;
1245
+ args: string[];
1246
+ environment: Record<string, string>;
1247
+ timeoutSeconds: number;
1248
+ cwd?: string | undefined;
1249
+ } | undefined;
1250
+ start?: {
1251
+ command: string;
1252
+ args: string[];
1253
+ environment: Record<string, string>;
1254
+ timeoutSeconds: number;
1255
+ cwd?: string | undefined;
1256
+ } | undefined;
1257
+ stop?: {
1258
+ command: string;
1259
+ args: string[];
1260
+ environment: Record<string, string>;
1261
+ timeoutSeconds: number;
1262
+ cwd?: string | undefined;
1263
+ } | undefined;
1264
+ verify?: {
1265
+ command: string;
1266
+ args: string[];
1267
+ environment: Record<string, string>;
1268
+ timeoutSeconds: number;
1269
+ cwd?: string | undefined;
1270
+ } | undefined;
1271
+ cleanup?: {
1272
+ command: string;
1273
+ args: string[];
1274
+ environment: Record<string, string>;
1275
+ timeoutSeconds: number;
1276
+ cwd?: string | undefined;
1277
+ } | undefined;
1278
+ }, {
1279
+ setup?: {
1280
+ command: string;
1281
+ args?: string[] | undefined;
1282
+ cwd?: string | undefined;
1283
+ environment?: Record<string, string> | undefined;
1284
+ timeoutSeconds?: number | undefined;
1285
+ } | undefined;
1286
+ watch?: {
1287
+ command: string;
1288
+ args?: string[] | undefined;
1289
+ cwd?: string | undefined;
1290
+ environment?: Record<string, string> | undefined;
1291
+ timeoutSeconds?: number | undefined;
1292
+ } | undefined;
1293
+ build?: {
1294
+ command: string;
1295
+ args?: string[] | undefined;
1296
+ cwd?: string | undefined;
1297
+ environment?: Record<string, string> | undefined;
1298
+ timeoutSeconds?: number | undefined;
1299
+ } | undefined;
1300
+ start?: {
1301
+ command: string;
1302
+ args?: string[] | undefined;
1303
+ cwd?: string | undefined;
1304
+ environment?: Record<string, string> | undefined;
1305
+ timeoutSeconds?: number | undefined;
1306
+ } | undefined;
1307
+ stop?: {
1308
+ command: string;
1309
+ args?: string[] | undefined;
1310
+ cwd?: string | undefined;
1311
+ environment?: Record<string, string> | undefined;
1312
+ timeoutSeconds?: number | undefined;
1313
+ } | undefined;
1314
+ verify?: {
1315
+ command: string;
1316
+ args?: string[] | undefined;
1317
+ cwd?: string | undefined;
1318
+ environment?: Record<string, string> | undefined;
1319
+ timeoutSeconds?: number | undefined;
1320
+ } | undefined;
1321
+ cleanup?: {
1322
+ command: string;
1323
+ args?: string[] | undefined;
1324
+ cwd?: string | undefined;
1325
+ environment?: Record<string, string> | undefined;
1326
+ timeoutSeconds?: number | undefined;
1327
+ } | undefined;
1328
+ }>;
1329
+ ready: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1330
+ kind: z.ZodLiteral<"marker">;
1331
+ path: z.ZodEffects<z.ZodString, string, string>;
1332
+ timeoutSeconds: z.ZodNumber;
1333
+ }, "strict", z.ZodTypeAny, {
1334
+ path: string;
1335
+ timeoutSeconds: number;
1336
+ kind: "marker";
1337
+ }, {
1338
+ path: string;
1339
+ timeoutSeconds: number;
1340
+ kind: "marker";
1341
+ }>, z.ZodObject<{
1342
+ kind: z.ZodLiteral<"http">;
1343
+ path: z.ZodString;
1344
+ expectedStatus: z.ZodDefault<z.ZodNumber>;
1345
+ timeoutSeconds: z.ZodNumber;
1346
+ }, "strict", z.ZodTypeAny, {
1347
+ path: string;
1348
+ timeoutSeconds: number;
1349
+ kind: "http";
1350
+ expectedStatus: number;
1351
+ }, {
1352
+ path: string;
1353
+ timeoutSeconds: number;
1354
+ kind: "http";
1355
+ expectedStatus?: number | undefined;
1356
+ }>, z.ZodObject<{
1357
+ kind: z.ZodLiteral<"tcp">;
1358
+ timeoutSeconds: z.ZodNumber;
1359
+ }, "strict", z.ZodTypeAny, {
1360
+ timeoutSeconds: number;
1361
+ kind: "tcp";
1362
+ }, {
1363
+ timeoutSeconds: number;
1364
+ kind: "tcp";
1365
+ }>, z.ZodObject<{
1366
+ kind: z.ZodLiteral<"process">;
1367
+ graceSeconds: z.ZodDefault<z.ZodNumber>;
1368
+ }, "strict", z.ZodTypeAny, {
1369
+ kind: "process";
1370
+ graceSeconds: number;
1371
+ }, {
1372
+ kind: "process";
1373
+ graceSeconds?: number | undefined;
1374
+ }>]>;
1375
+ outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1376
+ path: z.ZodEffects<z.ZodString, string, string>;
1377
+ mediaType: z.ZodString;
1378
+ completionMarker: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1379
+ digestAlgorithm: z.ZodDefault<z.ZodLiteral<"sha256">>;
1380
+ }, "strict", z.ZodTypeAny, {
1381
+ path: string;
1382
+ mediaType: string;
1383
+ digestAlgorithm: "sha256";
1384
+ completionMarker?: string | undefined;
1385
+ }, {
1386
+ path: string;
1387
+ mediaType: string;
1388
+ completionMarker?: string | undefined;
1389
+ digestAlgorithm?: "sha256" | undefined;
1390
+ }>, "many">>;
1391
+ endpoints: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
1392
+ id: z.ZodString;
1393
+ protocol: z.ZodEnum<["http", "https", "tcp"]>;
1394
+ port: z.ZodNumber;
1395
+ canonicalAlias: z.ZodOptional<z.ZodString>;
1396
+ visibility: z.ZodEnum<["host", "loopback", "private"]>;
1397
+ authentication: z.ZodDefault<z.ZodEnum<["none", "application", "mtls"]>>;
1398
+ }, "strict", z.ZodTypeAny, {
1399
+ id: string;
1400
+ protocol: "http" | "tcp" | "https";
1401
+ port: number;
1402
+ visibility: "host" | "loopback" | "private";
1403
+ authentication: "none" | "application" | "mtls";
1404
+ canonicalAlias?: string | undefined;
1405
+ }, {
1406
+ id: string;
1407
+ protocol: "http" | "tcp" | "https";
1408
+ port: number;
1409
+ visibility: "host" | "loopback" | "private";
1410
+ canonicalAlias?: string | undefined;
1411
+ authentication?: "none" | "application" | "mtls" | undefined;
1412
+ }>, {
1413
+ id: string;
1414
+ protocol: "http" | "tcp" | "https";
1415
+ port: number;
1416
+ visibility: "host" | "loopback" | "private";
1417
+ authentication: "none" | "application" | "mtls";
1418
+ canonicalAlias?: string | undefined;
1419
+ }, {
1420
+ id: string;
1421
+ protocol: "http" | "tcp" | "https";
1422
+ port: number;
1423
+ visibility: "host" | "loopback" | "private";
1424
+ canonicalAlias?: string | undefined;
1425
+ authentication?: "none" | "application" | "mtls" | undefined;
1426
+ }>, "many">>;
1427
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1428
+ id: z.ZodString;
1429
+ target: z.ZodString;
1430
+ capability: z.ZodOptional<z.ZodString>;
1431
+ locality: z.ZodDefault<z.ZodEnum<["local", "remote", "either"]>>;
1432
+ reaction: z.ZodEnum<["reload", "restart", "rebuild", "stale", "manual", "none"]>;
1433
+ }, "strict", z.ZodTypeAny, {
1434
+ id: string;
1435
+ target: string;
1436
+ locality: "local" | "remote" | "either";
1437
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1438
+ capability?: string | undefined;
1439
+ }, {
1440
+ id: string;
1441
+ target: string;
1442
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1443
+ capability?: string | undefined;
1444
+ locality?: "local" | "remote" | "either" | undefined;
1445
+ }>, "many">>;
1446
+ statePolicy: z.ZodEnum<["stateless", "ephemeral", "clone", "shared-compatible"]>;
1447
+ migrationPolicy: z.ZodEnum<["none", "explicit-review", "disposable-only"]>;
1448
+ secretRefs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1449
+ shutdown: z.ZodObject<{
1450
+ drainOperation: z.ZodOptional<z.ZodObject<{
1451
+ command: z.ZodString;
1452
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1453
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1454
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1455
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1456
+ }, "strict", z.ZodTypeAny, {
1457
+ command: string;
1458
+ args: string[];
1459
+ environment: Record<string, string>;
1460
+ timeoutSeconds: number;
1461
+ cwd?: string | undefined;
1462
+ }, {
1463
+ command: string;
1464
+ args?: string[] | undefined;
1465
+ cwd?: string | undefined;
1466
+ environment?: Record<string, string> | undefined;
1467
+ timeoutSeconds?: number | undefined;
1468
+ }>>;
1469
+ graceSeconds: z.ZodDefault<z.ZodNumber>;
1470
+ activeWorkPolicy: z.ZodDefault<z.ZodEnum<["block", "drain", "cancel-authorized"]>>;
1471
+ }, "strict", z.ZodTypeAny, {
1472
+ graceSeconds: number;
1473
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
1474
+ drainOperation?: {
1475
+ command: string;
1476
+ args: string[];
1477
+ environment: Record<string, string>;
1478
+ timeoutSeconds: number;
1479
+ cwd?: string | undefined;
1480
+ } | undefined;
1481
+ }, {
1482
+ graceSeconds?: number | undefined;
1483
+ drainOperation?: {
1484
+ command: string;
1485
+ args?: string[] | undefined;
1486
+ cwd?: string | undefined;
1487
+ environment?: Record<string, string> | undefined;
1488
+ timeoutSeconds?: number | undefined;
1489
+ } | undefined;
1490
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
1491
+ }>;
1492
+ resources: z.ZodDefault<z.ZodObject<{
1493
+ cpuCores: z.ZodOptional<z.ZodNumber>;
1494
+ memoryBytes: z.ZodOptional<z.ZodNumber>;
1495
+ diskBytes: z.ZodOptional<z.ZodNumber>;
1496
+ }, "strict", z.ZodTypeAny, {
1497
+ cpuCores?: number | undefined;
1498
+ memoryBytes?: number | undefined;
1499
+ diskBytes?: number | undefined;
1500
+ }, {
1501
+ cpuCores?: number | undefined;
1502
+ memoryBytes?: number | undefined;
1503
+ diskBytes?: number | undefined;
1504
+ }>>;
1505
+ logs: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1506
+ forbiddenOperations: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1507
+ freeze: z.ZodOptional<z.ZodObject<{
1508
+ kind: z.ZodEnum<["npm-package", "oci-image", "archive", "executable"]>;
1509
+ operation: z.ZodObject<{
1510
+ command: z.ZodString;
1511
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1512
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1513
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1514
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1515
+ }, "strict", z.ZodTypeAny, {
1516
+ command: string;
1517
+ args: string[];
1518
+ environment: Record<string, string>;
1519
+ timeoutSeconds: number;
1520
+ cwd?: string | undefined;
1521
+ }, {
1522
+ command: string;
1523
+ args?: string[] | undefined;
1524
+ cwd?: string | undefined;
1525
+ environment?: Record<string, string> | undefined;
1526
+ timeoutSeconds?: number | undefined;
1527
+ }>;
1528
+ artifacts: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1529
+ contractOperations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1530
+ command: z.ZodString;
1531
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1532
+ cwd: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1533
+ environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1534
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1535
+ }, "strict", z.ZodTypeAny, {
1536
+ command: string;
1537
+ args: string[];
1538
+ environment: Record<string, string>;
1539
+ timeoutSeconds: number;
1540
+ cwd?: string | undefined;
1541
+ }, {
1542
+ command: string;
1543
+ args?: string[] | undefined;
1544
+ cwd?: string | undefined;
1545
+ environment?: Record<string, string> | undefined;
1546
+ timeoutSeconds?: number | undefined;
1547
+ }>, "many">>;
1548
+ }, "strict", z.ZodTypeAny, {
1549
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1550
+ operation: {
1551
+ command: string;
1552
+ args: string[];
1553
+ environment: Record<string, string>;
1554
+ timeoutSeconds: number;
1555
+ cwd?: string | undefined;
1556
+ };
1557
+ artifacts: string[];
1558
+ contractOperations: {
1559
+ command: string;
1560
+ args: string[];
1561
+ environment: Record<string, string>;
1562
+ timeoutSeconds: number;
1563
+ cwd?: string | undefined;
1564
+ }[];
1565
+ }, {
1566
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1567
+ operation: {
1568
+ command: string;
1569
+ args?: string[] | undefined;
1570
+ cwd?: string | undefined;
1571
+ environment?: Record<string, string> | undefined;
1572
+ timeoutSeconds?: number | undefined;
1573
+ };
1574
+ artifacts: string[];
1575
+ contractOperations?: {
1576
+ command: string;
1577
+ args?: string[] | undefined;
1578
+ cwd?: string | undefined;
1579
+ environment?: Record<string, string> | undefined;
1580
+ timeoutSeconds?: number | undefined;
1581
+ }[] | undefined;
1582
+ }>>;
1583
+ promotion: z.ZodObject<{
1584
+ liveAdmissible: z.ZodLiteral<false>;
1585
+ candidateRequiresVerification: z.ZodLiteral<true>;
1586
+ }, "strict", z.ZodTypeAny, {
1587
+ liveAdmissible: false;
1588
+ candidateRequiresVerification: true;
1589
+ }, {
1590
+ liveAdmissible: false;
1591
+ candidateRequiresVerification: true;
1592
+ }>;
1593
+ }, "strict", z.ZodTypeAny, {
1594
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
1595
+ id: string;
1596
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1597
+ runtimeRequirements: string[];
1598
+ sourceRoots: string[];
1599
+ ignoredPaths: string[];
1600
+ operations: {
1601
+ setup?: {
1602
+ command: string;
1603
+ args: string[];
1604
+ environment: Record<string, string>;
1605
+ timeoutSeconds: number;
1606
+ cwd?: string | undefined;
1607
+ } | undefined;
1608
+ watch?: {
1609
+ command: string;
1610
+ args: string[];
1611
+ environment: Record<string, string>;
1612
+ timeoutSeconds: number;
1613
+ cwd?: string | undefined;
1614
+ } | undefined;
1615
+ build?: {
1616
+ command: string;
1617
+ args: string[];
1618
+ environment: Record<string, string>;
1619
+ timeoutSeconds: number;
1620
+ cwd?: string | undefined;
1621
+ } | undefined;
1622
+ start?: {
1623
+ command: string;
1624
+ args: string[];
1625
+ environment: Record<string, string>;
1626
+ timeoutSeconds: number;
1627
+ cwd?: string | undefined;
1628
+ } | undefined;
1629
+ stop?: {
1630
+ command: string;
1631
+ args: string[];
1632
+ environment: Record<string, string>;
1633
+ timeoutSeconds: number;
1634
+ cwd?: string | undefined;
1635
+ } | undefined;
1636
+ verify?: {
1637
+ command: string;
1638
+ args: string[];
1639
+ environment: Record<string, string>;
1640
+ timeoutSeconds: number;
1641
+ cwd?: string | undefined;
1642
+ } | undefined;
1643
+ cleanup?: {
1644
+ command: string;
1645
+ args: string[];
1646
+ environment: Record<string, string>;
1647
+ timeoutSeconds: number;
1648
+ cwd?: string | undefined;
1649
+ } | undefined;
1650
+ };
1651
+ ready: {
1652
+ path: string;
1653
+ timeoutSeconds: number;
1654
+ kind: "marker";
1655
+ } | {
1656
+ path: string;
1657
+ timeoutSeconds: number;
1658
+ kind: "http";
1659
+ expectedStatus: number;
1660
+ } | {
1661
+ timeoutSeconds: number;
1662
+ kind: "tcp";
1663
+ } | {
1664
+ kind: "process";
1665
+ graceSeconds: number;
1666
+ };
1667
+ outputs: {
1668
+ path: string;
1669
+ mediaType: string;
1670
+ digestAlgorithm: "sha256";
1671
+ completionMarker?: string | undefined;
1672
+ }[];
1673
+ endpoints: {
1674
+ id: string;
1675
+ protocol: "http" | "tcp" | "https";
1676
+ port: number;
1677
+ visibility: "host" | "loopback" | "private";
1678
+ authentication: "none" | "application" | "mtls";
1679
+ canonicalAlias?: string | undefined;
1680
+ }[];
1681
+ dependencies: {
1682
+ id: string;
1683
+ target: string;
1684
+ locality: "local" | "remote" | "either";
1685
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1686
+ capability?: string | undefined;
1687
+ }[];
1688
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
1689
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
1690
+ secretRefs: Record<string, string>;
1691
+ shutdown: {
1692
+ graceSeconds: number;
1693
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
1694
+ drainOperation?: {
1695
+ command: string;
1696
+ args: string[];
1697
+ environment: Record<string, string>;
1698
+ timeoutSeconds: number;
1699
+ cwd?: string | undefined;
1700
+ } | undefined;
1701
+ };
1702
+ resources: {
1703
+ cpuCores?: number | undefined;
1704
+ memoryBytes?: number | undefined;
1705
+ diskBytes?: number | undefined;
1706
+ };
1707
+ logs: string[];
1708
+ forbiddenOperations: string[];
1709
+ promotion: {
1710
+ liveAdmissible: false;
1711
+ candidateRequiresVerification: true;
1712
+ };
1713
+ freeze?: {
1714
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1715
+ operation: {
1716
+ command: string;
1717
+ args: string[];
1718
+ environment: Record<string, string>;
1719
+ timeoutSeconds: number;
1720
+ cwd?: string | undefined;
1721
+ };
1722
+ artifacts: string[];
1723
+ contractOperations: {
1724
+ command: string;
1725
+ args: string[];
1726
+ environment: Record<string, string>;
1727
+ timeoutSeconds: number;
1728
+ cwd?: string | undefined;
1729
+ }[];
1730
+ } | undefined;
1731
+ }, {
1732
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
1733
+ id: string;
1734
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1735
+ sourceRoots: string[];
1736
+ operations: {
1737
+ setup?: {
1738
+ command: string;
1739
+ args?: string[] | undefined;
1740
+ cwd?: string | undefined;
1741
+ environment?: Record<string, string> | undefined;
1742
+ timeoutSeconds?: number | undefined;
1743
+ } | undefined;
1744
+ watch?: {
1745
+ command: string;
1746
+ args?: string[] | undefined;
1747
+ cwd?: string | undefined;
1748
+ environment?: Record<string, string> | undefined;
1749
+ timeoutSeconds?: number | undefined;
1750
+ } | undefined;
1751
+ build?: {
1752
+ command: string;
1753
+ args?: string[] | undefined;
1754
+ cwd?: string | undefined;
1755
+ environment?: Record<string, string> | undefined;
1756
+ timeoutSeconds?: number | undefined;
1757
+ } | undefined;
1758
+ start?: {
1759
+ command: string;
1760
+ args?: string[] | undefined;
1761
+ cwd?: string | undefined;
1762
+ environment?: Record<string, string> | undefined;
1763
+ timeoutSeconds?: number | undefined;
1764
+ } | undefined;
1765
+ stop?: {
1766
+ command: string;
1767
+ args?: string[] | undefined;
1768
+ cwd?: string | undefined;
1769
+ environment?: Record<string, string> | undefined;
1770
+ timeoutSeconds?: number | undefined;
1771
+ } | undefined;
1772
+ verify?: {
1773
+ command: string;
1774
+ args?: string[] | undefined;
1775
+ cwd?: string | undefined;
1776
+ environment?: Record<string, string> | undefined;
1777
+ timeoutSeconds?: number | undefined;
1778
+ } | undefined;
1779
+ cleanup?: {
1780
+ command: string;
1781
+ args?: string[] | undefined;
1782
+ cwd?: string | undefined;
1783
+ environment?: Record<string, string> | undefined;
1784
+ timeoutSeconds?: number | undefined;
1785
+ } | undefined;
1786
+ };
1787
+ ready: {
1788
+ path: string;
1789
+ timeoutSeconds: number;
1790
+ kind: "marker";
1791
+ } | {
1792
+ path: string;
1793
+ timeoutSeconds: number;
1794
+ kind: "http";
1795
+ expectedStatus?: number | undefined;
1796
+ } | {
1797
+ timeoutSeconds: number;
1798
+ kind: "tcp";
1799
+ } | {
1800
+ kind: "process";
1801
+ graceSeconds?: number | undefined;
1802
+ };
1803
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
1804
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
1805
+ shutdown: {
1806
+ graceSeconds?: number | undefined;
1807
+ drainOperation?: {
1808
+ command: string;
1809
+ args?: string[] | undefined;
1810
+ cwd?: string | undefined;
1811
+ environment?: Record<string, string> | undefined;
1812
+ timeoutSeconds?: number | undefined;
1813
+ } | undefined;
1814
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
1815
+ };
1816
+ promotion: {
1817
+ liveAdmissible: false;
1818
+ candidateRequiresVerification: true;
1819
+ };
1820
+ runtimeRequirements?: string[] | undefined;
1821
+ ignoredPaths?: string[] | undefined;
1822
+ outputs?: {
1823
+ path: string;
1824
+ mediaType: string;
1825
+ completionMarker?: string | undefined;
1826
+ digestAlgorithm?: "sha256" | undefined;
1827
+ }[] | undefined;
1828
+ endpoints?: {
1829
+ id: string;
1830
+ protocol: "http" | "tcp" | "https";
1831
+ port: number;
1832
+ visibility: "host" | "loopback" | "private";
1833
+ canonicalAlias?: string | undefined;
1834
+ authentication?: "none" | "application" | "mtls" | undefined;
1835
+ }[] | undefined;
1836
+ dependencies?: {
1837
+ id: string;
1838
+ target: string;
1839
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1840
+ capability?: string | undefined;
1841
+ locality?: "local" | "remote" | "either" | undefined;
1842
+ }[] | undefined;
1843
+ secretRefs?: Record<string, string> | undefined;
1844
+ resources?: {
1845
+ cpuCores?: number | undefined;
1846
+ memoryBytes?: number | undefined;
1847
+ diskBytes?: number | undefined;
1848
+ } | undefined;
1849
+ logs?: string[] | undefined;
1850
+ forbiddenOperations?: string[] | undefined;
1851
+ freeze?: {
1852
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1853
+ operation: {
1854
+ command: string;
1855
+ args?: string[] | undefined;
1856
+ cwd?: string | undefined;
1857
+ environment?: Record<string, string> | undefined;
1858
+ timeoutSeconds?: number | undefined;
1859
+ };
1860
+ artifacts: string[];
1861
+ contractOperations?: {
1862
+ command: string;
1863
+ args?: string[] | undefined;
1864
+ cwd?: string | undefined;
1865
+ environment?: Record<string, string> | undefined;
1866
+ timeoutSeconds?: number | undefined;
1867
+ }[] | undefined;
1868
+ } | undefined;
1869
+ }>, {
1870
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
1871
+ id: string;
1872
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
1873
+ runtimeRequirements: string[];
1874
+ sourceRoots: string[];
1875
+ ignoredPaths: string[];
1876
+ operations: {
1877
+ setup?: {
1878
+ command: string;
1879
+ args: string[];
1880
+ environment: Record<string, string>;
1881
+ timeoutSeconds: number;
1882
+ cwd?: string | undefined;
1883
+ } | undefined;
1884
+ watch?: {
1885
+ command: string;
1886
+ args: string[];
1887
+ environment: Record<string, string>;
1888
+ timeoutSeconds: number;
1889
+ cwd?: string | undefined;
1890
+ } | undefined;
1891
+ build?: {
1892
+ command: string;
1893
+ args: string[];
1894
+ environment: Record<string, string>;
1895
+ timeoutSeconds: number;
1896
+ cwd?: string | undefined;
1897
+ } | undefined;
1898
+ start?: {
1899
+ command: string;
1900
+ args: string[];
1901
+ environment: Record<string, string>;
1902
+ timeoutSeconds: number;
1903
+ cwd?: string | undefined;
1904
+ } | undefined;
1905
+ stop?: {
1906
+ command: string;
1907
+ args: string[];
1908
+ environment: Record<string, string>;
1909
+ timeoutSeconds: number;
1910
+ cwd?: string | undefined;
1911
+ } | undefined;
1912
+ verify?: {
1913
+ command: string;
1914
+ args: string[];
1915
+ environment: Record<string, string>;
1916
+ timeoutSeconds: number;
1917
+ cwd?: string | undefined;
1918
+ } | undefined;
1919
+ cleanup?: {
1920
+ command: string;
1921
+ args: string[];
1922
+ environment: Record<string, string>;
1923
+ timeoutSeconds: number;
1924
+ cwd?: string | undefined;
1925
+ } | undefined;
1926
+ };
1927
+ ready: {
1928
+ path: string;
1929
+ timeoutSeconds: number;
1930
+ kind: "marker";
1931
+ } | {
1932
+ path: string;
1933
+ timeoutSeconds: number;
1934
+ kind: "http";
1935
+ expectedStatus: number;
1936
+ } | {
1937
+ timeoutSeconds: number;
1938
+ kind: "tcp";
1939
+ } | {
1940
+ kind: "process";
1941
+ graceSeconds: number;
1942
+ };
1943
+ outputs: {
1944
+ path: string;
1945
+ mediaType: string;
1946
+ digestAlgorithm: "sha256";
1947
+ completionMarker?: string | undefined;
1948
+ }[];
1949
+ endpoints: {
1950
+ id: string;
1951
+ protocol: "http" | "tcp" | "https";
1952
+ port: number;
1953
+ visibility: "host" | "loopback" | "private";
1954
+ authentication: "none" | "application" | "mtls";
1955
+ canonicalAlias?: string | undefined;
1956
+ }[];
1957
+ dependencies: {
1958
+ id: string;
1959
+ target: string;
1960
+ locality: "local" | "remote" | "either";
1961
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
1962
+ capability?: string | undefined;
1963
+ }[];
1964
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
1965
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
1966
+ secretRefs: Record<string, string>;
1967
+ shutdown: {
1968
+ graceSeconds: number;
1969
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
1970
+ drainOperation?: {
1971
+ command: string;
1972
+ args: string[];
1973
+ environment: Record<string, string>;
1974
+ timeoutSeconds: number;
1975
+ cwd?: string | undefined;
1976
+ } | undefined;
1977
+ };
1978
+ resources: {
1979
+ cpuCores?: number | undefined;
1980
+ memoryBytes?: number | undefined;
1981
+ diskBytes?: number | undefined;
1982
+ };
1983
+ logs: string[];
1984
+ forbiddenOperations: string[];
1985
+ promotion: {
1986
+ liveAdmissible: false;
1987
+ candidateRequiresVerification: true;
1988
+ };
1989
+ freeze?: {
1990
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
1991
+ operation: {
1992
+ command: string;
1993
+ args: string[];
1994
+ environment: Record<string, string>;
1995
+ timeoutSeconds: number;
1996
+ cwd?: string | undefined;
1997
+ };
1998
+ artifacts: string[];
1999
+ contractOperations: {
2000
+ command: string;
2001
+ args: string[];
2002
+ environment: Record<string, string>;
2003
+ timeoutSeconds: number;
2004
+ cwd?: string | undefined;
2005
+ }[];
2006
+ } | undefined;
2007
+ }, {
2008
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2009
+ id: string;
2010
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2011
+ sourceRoots: string[];
2012
+ operations: {
2013
+ setup?: {
2014
+ command: string;
2015
+ args?: string[] | undefined;
2016
+ cwd?: string | undefined;
2017
+ environment?: Record<string, string> | undefined;
2018
+ timeoutSeconds?: number | undefined;
2019
+ } | undefined;
2020
+ watch?: {
2021
+ command: string;
2022
+ args?: string[] | undefined;
2023
+ cwd?: string | undefined;
2024
+ environment?: Record<string, string> | undefined;
2025
+ timeoutSeconds?: number | undefined;
2026
+ } | undefined;
2027
+ build?: {
2028
+ command: string;
2029
+ args?: string[] | undefined;
2030
+ cwd?: string | undefined;
2031
+ environment?: Record<string, string> | undefined;
2032
+ timeoutSeconds?: number | undefined;
2033
+ } | undefined;
2034
+ start?: {
2035
+ command: string;
2036
+ args?: string[] | undefined;
2037
+ cwd?: string | undefined;
2038
+ environment?: Record<string, string> | undefined;
2039
+ timeoutSeconds?: number | undefined;
2040
+ } | undefined;
2041
+ stop?: {
2042
+ command: string;
2043
+ args?: string[] | undefined;
2044
+ cwd?: string | undefined;
2045
+ environment?: Record<string, string> | undefined;
2046
+ timeoutSeconds?: number | undefined;
2047
+ } | undefined;
2048
+ verify?: {
2049
+ command: string;
2050
+ args?: string[] | undefined;
2051
+ cwd?: string | undefined;
2052
+ environment?: Record<string, string> | undefined;
2053
+ timeoutSeconds?: number | undefined;
2054
+ } | undefined;
2055
+ cleanup?: {
2056
+ command: string;
2057
+ args?: string[] | undefined;
2058
+ cwd?: string | undefined;
2059
+ environment?: Record<string, string> | undefined;
2060
+ timeoutSeconds?: number | undefined;
2061
+ } | undefined;
2062
+ };
2063
+ ready: {
2064
+ path: string;
2065
+ timeoutSeconds: number;
2066
+ kind: "marker";
2067
+ } | {
2068
+ path: string;
2069
+ timeoutSeconds: number;
2070
+ kind: "http";
2071
+ expectedStatus?: number | undefined;
2072
+ } | {
2073
+ timeoutSeconds: number;
2074
+ kind: "tcp";
2075
+ } | {
2076
+ kind: "process";
2077
+ graceSeconds?: number | undefined;
2078
+ };
2079
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
2080
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2081
+ shutdown: {
2082
+ graceSeconds?: number | undefined;
2083
+ drainOperation?: {
2084
+ command: string;
2085
+ args?: string[] | undefined;
2086
+ cwd?: string | undefined;
2087
+ environment?: Record<string, string> | undefined;
2088
+ timeoutSeconds?: number | undefined;
2089
+ } | undefined;
2090
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
2091
+ };
2092
+ promotion: {
2093
+ liveAdmissible: false;
2094
+ candidateRequiresVerification: true;
2095
+ };
2096
+ runtimeRequirements?: string[] | undefined;
2097
+ ignoredPaths?: string[] | undefined;
2098
+ outputs?: {
2099
+ path: string;
2100
+ mediaType: string;
2101
+ completionMarker?: string | undefined;
2102
+ digestAlgorithm?: "sha256" | undefined;
2103
+ }[] | undefined;
2104
+ endpoints?: {
2105
+ id: string;
2106
+ protocol: "http" | "tcp" | "https";
2107
+ port: number;
2108
+ visibility: "host" | "loopback" | "private";
2109
+ canonicalAlias?: string | undefined;
2110
+ authentication?: "none" | "application" | "mtls" | undefined;
2111
+ }[] | undefined;
2112
+ dependencies?: {
2113
+ id: string;
2114
+ target: string;
2115
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2116
+ capability?: string | undefined;
2117
+ locality?: "local" | "remote" | "either" | undefined;
2118
+ }[] | undefined;
2119
+ secretRefs?: Record<string, string> | undefined;
2120
+ resources?: {
2121
+ cpuCores?: number | undefined;
2122
+ memoryBytes?: number | undefined;
2123
+ diskBytes?: number | undefined;
2124
+ } | undefined;
2125
+ logs?: string[] | undefined;
2126
+ forbiddenOperations?: string[] | undefined;
2127
+ freeze?: {
2128
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2129
+ operation: {
2130
+ command: string;
2131
+ args?: string[] | undefined;
2132
+ cwd?: string | undefined;
2133
+ environment?: Record<string, string> | undefined;
2134
+ timeoutSeconds?: number | undefined;
2135
+ };
2136
+ artifacts: string[];
2137
+ contractOperations?: {
2138
+ command: string;
2139
+ args?: string[] | undefined;
2140
+ cwd?: string | undefined;
2141
+ environment?: Record<string, string> | undefined;
2142
+ timeoutSeconds?: number | undefined;
2143
+ }[] | undefined;
2144
+ } | undefined;
2145
+ }>, "many">;
2146
+ }, "strict", z.ZodTypeAny, {
2147
+ schemaVersion: "treeseed.development-runtime/v1";
2148
+ project: {
2149
+ id: string;
2150
+ repository: string;
2151
+ };
2152
+ defaults: {
2153
+ leaseSeconds: number;
2154
+ restoreOnFailure: boolean;
2155
+ };
2156
+ targets: {
2157
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2158
+ id: string;
2159
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2160
+ runtimeRequirements: string[];
2161
+ sourceRoots: string[];
2162
+ ignoredPaths: string[];
2163
+ operations: {
2164
+ setup?: {
2165
+ command: string;
2166
+ args: string[];
2167
+ environment: Record<string, string>;
2168
+ timeoutSeconds: number;
2169
+ cwd?: string | undefined;
2170
+ } | undefined;
2171
+ watch?: {
2172
+ command: string;
2173
+ args: string[];
2174
+ environment: Record<string, string>;
2175
+ timeoutSeconds: number;
2176
+ cwd?: string | undefined;
2177
+ } | undefined;
2178
+ build?: {
2179
+ command: string;
2180
+ args: string[];
2181
+ environment: Record<string, string>;
2182
+ timeoutSeconds: number;
2183
+ cwd?: string | undefined;
2184
+ } | undefined;
2185
+ start?: {
2186
+ command: string;
2187
+ args: string[];
2188
+ environment: Record<string, string>;
2189
+ timeoutSeconds: number;
2190
+ cwd?: string | undefined;
2191
+ } | undefined;
2192
+ stop?: {
2193
+ command: string;
2194
+ args: string[];
2195
+ environment: Record<string, string>;
2196
+ timeoutSeconds: number;
2197
+ cwd?: string | undefined;
2198
+ } | undefined;
2199
+ verify?: {
2200
+ command: string;
2201
+ args: string[];
2202
+ environment: Record<string, string>;
2203
+ timeoutSeconds: number;
2204
+ cwd?: string | undefined;
2205
+ } | undefined;
2206
+ cleanup?: {
2207
+ command: string;
2208
+ args: string[];
2209
+ environment: Record<string, string>;
2210
+ timeoutSeconds: number;
2211
+ cwd?: string | undefined;
2212
+ } | undefined;
2213
+ };
2214
+ ready: {
2215
+ path: string;
2216
+ timeoutSeconds: number;
2217
+ kind: "marker";
2218
+ } | {
2219
+ path: string;
2220
+ timeoutSeconds: number;
2221
+ kind: "http";
2222
+ expectedStatus: number;
2223
+ } | {
2224
+ timeoutSeconds: number;
2225
+ kind: "tcp";
2226
+ } | {
2227
+ kind: "process";
2228
+ graceSeconds: number;
2229
+ };
2230
+ outputs: {
2231
+ path: string;
2232
+ mediaType: string;
2233
+ digestAlgorithm: "sha256";
2234
+ completionMarker?: string | undefined;
2235
+ }[];
2236
+ endpoints: {
2237
+ id: string;
2238
+ protocol: "http" | "tcp" | "https";
2239
+ port: number;
2240
+ visibility: "host" | "loopback" | "private";
2241
+ authentication: "none" | "application" | "mtls";
2242
+ canonicalAlias?: string | undefined;
2243
+ }[];
2244
+ dependencies: {
2245
+ id: string;
2246
+ target: string;
2247
+ locality: "local" | "remote" | "either";
2248
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2249
+ capability?: string | undefined;
2250
+ }[];
2251
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
2252
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2253
+ secretRefs: Record<string, string>;
2254
+ shutdown: {
2255
+ graceSeconds: number;
2256
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
2257
+ drainOperation?: {
2258
+ command: string;
2259
+ args: string[];
2260
+ environment: Record<string, string>;
2261
+ timeoutSeconds: number;
2262
+ cwd?: string | undefined;
2263
+ } | undefined;
2264
+ };
2265
+ resources: {
2266
+ cpuCores?: number | undefined;
2267
+ memoryBytes?: number | undefined;
2268
+ diskBytes?: number | undefined;
2269
+ };
2270
+ logs: string[];
2271
+ forbiddenOperations: string[];
2272
+ promotion: {
2273
+ liveAdmissible: false;
2274
+ candidateRequiresVerification: true;
2275
+ };
2276
+ freeze?: {
2277
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2278
+ operation: {
2279
+ command: string;
2280
+ args: string[];
2281
+ environment: Record<string, string>;
2282
+ timeoutSeconds: number;
2283
+ cwd?: string | undefined;
2284
+ };
2285
+ artifacts: string[];
2286
+ contractOperations: {
2287
+ command: string;
2288
+ args: string[];
2289
+ environment: Record<string, string>;
2290
+ timeoutSeconds: number;
2291
+ cwd?: string | undefined;
2292
+ }[];
2293
+ } | undefined;
2294
+ }[];
2295
+ }, {
2296
+ schemaVersion: "treeseed.development-runtime/v1";
2297
+ project: {
2298
+ id: string;
2299
+ repository: string;
2300
+ };
2301
+ defaults: {
2302
+ leaseSeconds?: number | undefined;
2303
+ restoreOnFailure?: boolean | undefined;
2304
+ };
2305
+ targets: {
2306
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2307
+ id: string;
2308
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2309
+ sourceRoots: string[];
2310
+ operations: {
2311
+ setup?: {
2312
+ command: string;
2313
+ args?: string[] | undefined;
2314
+ cwd?: string | undefined;
2315
+ environment?: Record<string, string> | undefined;
2316
+ timeoutSeconds?: number | undefined;
2317
+ } | undefined;
2318
+ watch?: {
2319
+ command: string;
2320
+ args?: string[] | undefined;
2321
+ cwd?: string | undefined;
2322
+ environment?: Record<string, string> | undefined;
2323
+ timeoutSeconds?: number | undefined;
2324
+ } | undefined;
2325
+ build?: {
2326
+ command: string;
2327
+ args?: string[] | undefined;
2328
+ cwd?: string | undefined;
2329
+ environment?: Record<string, string> | undefined;
2330
+ timeoutSeconds?: number | undefined;
2331
+ } | undefined;
2332
+ start?: {
2333
+ command: string;
2334
+ args?: string[] | undefined;
2335
+ cwd?: string | undefined;
2336
+ environment?: Record<string, string> | undefined;
2337
+ timeoutSeconds?: number | undefined;
2338
+ } | undefined;
2339
+ stop?: {
2340
+ command: string;
2341
+ args?: string[] | undefined;
2342
+ cwd?: string | undefined;
2343
+ environment?: Record<string, string> | undefined;
2344
+ timeoutSeconds?: number | undefined;
2345
+ } | undefined;
2346
+ verify?: {
2347
+ command: string;
2348
+ args?: string[] | undefined;
2349
+ cwd?: string | undefined;
2350
+ environment?: Record<string, string> | undefined;
2351
+ timeoutSeconds?: number | undefined;
2352
+ } | undefined;
2353
+ cleanup?: {
2354
+ command: string;
2355
+ args?: string[] | undefined;
2356
+ cwd?: string | undefined;
2357
+ environment?: Record<string, string> | undefined;
2358
+ timeoutSeconds?: number | undefined;
2359
+ } | undefined;
2360
+ };
2361
+ ready: {
2362
+ path: string;
2363
+ timeoutSeconds: number;
2364
+ kind: "marker";
2365
+ } | {
2366
+ path: string;
2367
+ timeoutSeconds: number;
2368
+ kind: "http";
2369
+ expectedStatus?: number | undefined;
2370
+ } | {
2371
+ timeoutSeconds: number;
2372
+ kind: "tcp";
2373
+ } | {
2374
+ kind: "process";
2375
+ graceSeconds?: number | undefined;
2376
+ };
2377
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
2378
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2379
+ shutdown: {
2380
+ graceSeconds?: number | undefined;
2381
+ drainOperation?: {
2382
+ command: string;
2383
+ args?: string[] | undefined;
2384
+ cwd?: string | undefined;
2385
+ environment?: Record<string, string> | undefined;
2386
+ timeoutSeconds?: number | undefined;
2387
+ } | undefined;
2388
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
2389
+ };
2390
+ promotion: {
2391
+ liveAdmissible: false;
2392
+ candidateRequiresVerification: true;
2393
+ };
2394
+ runtimeRequirements?: string[] | undefined;
2395
+ ignoredPaths?: string[] | undefined;
2396
+ outputs?: {
2397
+ path: string;
2398
+ mediaType: string;
2399
+ completionMarker?: string | undefined;
2400
+ digestAlgorithm?: "sha256" | undefined;
2401
+ }[] | undefined;
2402
+ endpoints?: {
2403
+ id: string;
2404
+ protocol: "http" | "tcp" | "https";
2405
+ port: number;
2406
+ visibility: "host" | "loopback" | "private";
2407
+ canonicalAlias?: string | undefined;
2408
+ authentication?: "none" | "application" | "mtls" | undefined;
2409
+ }[] | undefined;
2410
+ dependencies?: {
2411
+ id: string;
2412
+ target: string;
2413
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2414
+ capability?: string | undefined;
2415
+ locality?: "local" | "remote" | "either" | undefined;
2416
+ }[] | undefined;
2417
+ secretRefs?: Record<string, string> | undefined;
2418
+ resources?: {
2419
+ cpuCores?: number | undefined;
2420
+ memoryBytes?: number | undefined;
2421
+ diskBytes?: number | undefined;
2422
+ } | undefined;
2423
+ logs?: string[] | undefined;
2424
+ forbiddenOperations?: string[] | undefined;
2425
+ freeze?: {
2426
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2427
+ operation: {
2428
+ command: string;
2429
+ args?: string[] | undefined;
2430
+ cwd?: string | undefined;
2431
+ environment?: Record<string, string> | undefined;
2432
+ timeoutSeconds?: number | undefined;
2433
+ };
2434
+ artifacts: string[];
2435
+ contractOperations?: {
2436
+ command: string;
2437
+ args?: string[] | undefined;
2438
+ cwd?: string | undefined;
2439
+ environment?: Record<string, string> | undefined;
2440
+ timeoutSeconds?: number | undefined;
2441
+ }[] | undefined;
2442
+ } | undefined;
2443
+ }[];
2444
+ }>, {
2445
+ schemaVersion: "treeseed.development-runtime/v1";
2446
+ project: {
2447
+ id: string;
2448
+ repository: string;
2449
+ };
2450
+ defaults: {
2451
+ leaseSeconds: number;
2452
+ restoreOnFailure: boolean;
2453
+ };
2454
+ targets: {
2455
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2456
+ id: string;
2457
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2458
+ runtimeRequirements: string[];
2459
+ sourceRoots: string[];
2460
+ ignoredPaths: string[];
2461
+ operations: {
2462
+ setup?: {
2463
+ command: string;
2464
+ args: string[];
2465
+ environment: Record<string, string>;
2466
+ timeoutSeconds: number;
2467
+ cwd?: string | undefined;
2468
+ } | undefined;
2469
+ watch?: {
2470
+ command: string;
2471
+ args: string[];
2472
+ environment: Record<string, string>;
2473
+ timeoutSeconds: number;
2474
+ cwd?: string | undefined;
2475
+ } | undefined;
2476
+ build?: {
2477
+ command: string;
2478
+ args: string[];
2479
+ environment: Record<string, string>;
2480
+ timeoutSeconds: number;
2481
+ cwd?: string | undefined;
2482
+ } | undefined;
2483
+ start?: {
2484
+ command: string;
2485
+ args: string[];
2486
+ environment: Record<string, string>;
2487
+ timeoutSeconds: number;
2488
+ cwd?: string | undefined;
2489
+ } | undefined;
2490
+ stop?: {
2491
+ command: string;
2492
+ args: string[];
2493
+ environment: Record<string, string>;
2494
+ timeoutSeconds: number;
2495
+ cwd?: string | undefined;
2496
+ } | undefined;
2497
+ verify?: {
2498
+ command: string;
2499
+ args: string[];
2500
+ environment: Record<string, string>;
2501
+ timeoutSeconds: number;
2502
+ cwd?: string | undefined;
2503
+ } | undefined;
2504
+ cleanup?: {
2505
+ command: string;
2506
+ args: string[];
2507
+ environment: Record<string, string>;
2508
+ timeoutSeconds: number;
2509
+ cwd?: string | undefined;
2510
+ } | undefined;
2511
+ };
2512
+ ready: {
2513
+ path: string;
2514
+ timeoutSeconds: number;
2515
+ kind: "marker";
2516
+ } | {
2517
+ path: string;
2518
+ timeoutSeconds: number;
2519
+ kind: "http";
2520
+ expectedStatus: number;
2521
+ } | {
2522
+ timeoutSeconds: number;
2523
+ kind: "tcp";
2524
+ } | {
2525
+ kind: "process";
2526
+ graceSeconds: number;
2527
+ };
2528
+ outputs: {
2529
+ path: string;
2530
+ mediaType: string;
2531
+ digestAlgorithm: "sha256";
2532
+ completionMarker?: string | undefined;
2533
+ }[];
2534
+ endpoints: {
2535
+ id: string;
2536
+ protocol: "http" | "tcp" | "https";
2537
+ port: number;
2538
+ visibility: "host" | "loopback" | "private";
2539
+ authentication: "none" | "application" | "mtls";
2540
+ canonicalAlias?: string | undefined;
2541
+ }[];
2542
+ dependencies: {
2543
+ id: string;
2544
+ target: string;
2545
+ locality: "local" | "remote" | "either";
2546
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2547
+ capability?: string | undefined;
2548
+ }[];
2549
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
2550
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2551
+ secretRefs: Record<string, string>;
2552
+ shutdown: {
2553
+ graceSeconds: number;
2554
+ activeWorkPolicy: "block" | "drain" | "cancel-authorized";
2555
+ drainOperation?: {
2556
+ command: string;
2557
+ args: string[];
2558
+ environment: Record<string, string>;
2559
+ timeoutSeconds: number;
2560
+ cwd?: string | undefined;
2561
+ } | undefined;
2562
+ };
2563
+ resources: {
2564
+ cpuCores?: number | undefined;
2565
+ memoryBytes?: number | undefined;
2566
+ diskBytes?: number | undefined;
2567
+ };
2568
+ logs: string[];
2569
+ forbiddenOperations: string[];
2570
+ promotion: {
2571
+ liveAdmissible: false;
2572
+ candidateRequiresVerification: true;
2573
+ };
2574
+ freeze?: {
2575
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2576
+ operation: {
2577
+ command: string;
2578
+ args: string[];
2579
+ environment: Record<string, string>;
2580
+ timeoutSeconds: number;
2581
+ cwd?: string | undefined;
2582
+ };
2583
+ artifacts: string[];
2584
+ contractOperations: {
2585
+ command: string;
2586
+ args: string[];
2587
+ environment: Record<string, string>;
2588
+ timeoutSeconds: number;
2589
+ cwd?: string | undefined;
2590
+ }[];
2591
+ } | undefined;
2592
+ }[];
2593
+ }, {
2594
+ schemaVersion: "treeseed.development-runtime/v1";
2595
+ project: {
2596
+ id: string;
2597
+ repository: string;
2598
+ };
2599
+ defaults: {
2600
+ leaseSeconds?: number | undefined;
2601
+ restoreOnFailure?: boolean | undefined;
2602
+ };
2603
+ targets: {
2604
+ kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
2605
+ id: string;
2606
+ platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
2607
+ sourceRoots: string[];
2608
+ operations: {
2609
+ setup?: {
2610
+ command: string;
2611
+ args?: string[] | undefined;
2612
+ cwd?: string | undefined;
2613
+ environment?: Record<string, string> | undefined;
2614
+ timeoutSeconds?: number | undefined;
2615
+ } | undefined;
2616
+ watch?: {
2617
+ command: string;
2618
+ args?: string[] | undefined;
2619
+ cwd?: string | undefined;
2620
+ environment?: Record<string, string> | undefined;
2621
+ timeoutSeconds?: number | undefined;
2622
+ } | undefined;
2623
+ build?: {
2624
+ command: string;
2625
+ args?: string[] | undefined;
2626
+ cwd?: string | undefined;
2627
+ environment?: Record<string, string> | undefined;
2628
+ timeoutSeconds?: number | undefined;
2629
+ } | undefined;
2630
+ start?: {
2631
+ command: string;
2632
+ args?: string[] | undefined;
2633
+ cwd?: string | undefined;
2634
+ environment?: Record<string, string> | undefined;
2635
+ timeoutSeconds?: number | undefined;
2636
+ } | undefined;
2637
+ stop?: {
2638
+ command: string;
2639
+ args?: string[] | undefined;
2640
+ cwd?: string | undefined;
2641
+ environment?: Record<string, string> | undefined;
2642
+ timeoutSeconds?: number | undefined;
2643
+ } | undefined;
2644
+ verify?: {
2645
+ command: string;
2646
+ args?: string[] | undefined;
2647
+ cwd?: string | undefined;
2648
+ environment?: Record<string, string> | undefined;
2649
+ timeoutSeconds?: number | undefined;
2650
+ } | undefined;
2651
+ cleanup?: {
2652
+ command: string;
2653
+ args?: string[] | undefined;
2654
+ cwd?: string | undefined;
2655
+ environment?: Record<string, string> | undefined;
2656
+ timeoutSeconds?: number | undefined;
2657
+ } | undefined;
2658
+ };
2659
+ ready: {
2660
+ path: string;
2661
+ timeoutSeconds: number;
2662
+ kind: "marker";
2663
+ } | {
2664
+ path: string;
2665
+ timeoutSeconds: number;
2666
+ kind: "http";
2667
+ expectedStatus?: number | undefined;
2668
+ } | {
2669
+ timeoutSeconds: number;
2670
+ kind: "tcp";
2671
+ } | {
2672
+ kind: "process";
2673
+ graceSeconds?: number | undefined;
2674
+ };
2675
+ statePolicy: "stateless" | "ephemeral" | "clone" | "shared-compatible";
2676
+ migrationPolicy: "none" | "explicit-review" | "disposable-only";
2677
+ shutdown: {
2678
+ graceSeconds?: number | undefined;
2679
+ drainOperation?: {
2680
+ command: string;
2681
+ args?: string[] | undefined;
2682
+ cwd?: string | undefined;
2683
+ environment?: Record<string, string> | undefined;
2684
+ timeoutSeconds?: number | undefined;
2685
+ } | undefined;
2686
+ activeWorkPolicy?: "block" | "drain" | "cancel-authorized" | undefined;
2687
+ };
2688
+ promotion: {
2689
+ liveAdmissible: false;
2690
+ candidateRequiresVerification: true;
2691
+ };
2692
+ runtimeRequirements?: string[] | undefined;
2693
+ ignoredPaths?: string[] | undefined;
2694
+ outputs?: {
2695
+ path: string;
2696
+ mediaType: string;
2697
+ completionMarker?: string | undefined;
2698
+ digestAlgorithm?: "sha256" | undefined;
2699
+ }[] | undefined;
2700
+ endpoints?: {
2701
+ id: string;
2702
+ protocol: "http" | "tcp" | "https";
2703
+ port: number;
2704
+ visibility: "host" | "loopback" | "private";
2705
+ canonicalAlias?: string | undefined;
2706
+ authentication?: "none" | "application" | "mtls" | undefined;
2707
+ }[] | undefined;
2708
+ dependencies?: {
2709
+ id: string;
2710
+ target: string;
2711
+ reaction: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none";
2712
+ capability?: string | undefined;
2713
+ locality?: "local" | "remote" | "either" | undefined;
2714
+ }[] | undefined;
2715
+ secretRefs?: Record<string, string> | undefined;
2716
+ resources?: {
2717
+ cpuCores?: number | undefined;
2718
+ memoryBytes?: number | undefined;
2719
+ diskBytes?: number | undefined;
2720
+ } | undefined;
2721
+ logs?: string[] | undefined;
2722
+ forbiddenOperations?: string[] | undefined;
2723
+ freeze?: {
2724
+ kind: "npm-package" | "oci-image" | "archive" | "executable";
2725
+ operation: {
2726
+ command: string;
2727
+ args?: string[] | undefined;
2728
+ cwd?: string | undefined;
2729
+ environment?: Record<string, string> | undefined;
2730
+ timeoutSeconds?: number | undefined;
2731
+ };
2732
+ artifacts: string[];
2733
+ contractOperations?: {
2734
+ command: string;
2735
+ args?: string[] | undefined;
2736
+ cwd?: string | undefined;
2737
+ environment?: Record<string, string> | undefined;
2738
+ timeoutSeconds?: number | undefined;
2739
+ }[] | undefined;
2740
+ } | undefined;
2741
+ }[];
2742
+ }>;
2743
+ export declare const developmentSessionSchema: z.ZodObject<{
2744
+ schemaVersion: z.ZodLiteral<"treeseed.development-session/v1">;
2745
+ sessionId: z.ZodString;
2746
+ actor: z.ZodString;
2747
+ hostId: z.ZodString;
2748
+ createdAt: z.ZodString;
2749
+ expiresAt: z.ZodString;
2750
+ status: z.ZodEnum<["planning", "active", "degraded", "restoring", "stopped", "expired"]>;
2751
+ repositories: z.ZodArray<z.ZodObject<{
2752
+ projectId: z.ZodString;
2753
+ repository: z.ZodString;
2754
+ worktree: z.ZodString;
2755
+ commit: z.ZodString;
2756
+ branch: z.ZodNullable<z.ZodString>;
2757
+ dirty: z.ZodBoolean;
2758
+ dirtyDigest: z.ZodNullable<z.ZodString>;
2759
+ recipeDigest: z.ZodString;
2760
+ }, "strict", z.ZodTypeAny, {
2761
+ dirty: boolean;
2762
+ repository: string;
2763
+ projectId: string;
2764
+ worktree: string;
2765
+ commit: string;
2766
+ branch: string | null;
2767
+ dirtyDigest: string | null;
2768
+ recipeDigest: string;
2769
+ }, {
2770
+ dirty: boolean;
2771
+ repository: string;
2772
+ projectId: string;
2773
+ worktree: string;
2774
+ commit: string;
2775
+ branch: string | null;
2776
+ dirtyDigest: string | null;
2777
+ recipeDigest: string;
2778
+ }>, "many">;
2779
+ targets: z.ZodArray<z.ZodObject<{
2780
+ projectId: z.ZodString;
2781
+ targetId: z.ZodString;
2782
+ mode: z.ZodEnum<["released", "candidate", "live"]>;
2783
+ generation: z.ZodNumber;
2784
+ health: z.ZodEnum<["pending", "ready", "degraded", "stopped"]>;
2785
+ reaction: z.ZodOptional<z.ZodEnum<["reload", "restart", "rebuild", "stale", "manual", "none"]>>;
2786
+ }, "strict", z.ZodTypeAny, {
2787
+ projectId: string;
2788
+ targetId: string;
2789
+ mode: "released" | "candidate" | "live";
2790
+ generation: number;
2791
+ health: "ready" | "degraded" | "stopped" | "pending";
2792
+ reaction?: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none" | undefined;
2793
+ }, {
2794
+ projectId: string;
2795
+ targetId: string;
2796
+ mode: "released" | "candidate" | "live";
2797
+ generation: number;
2798
+ health: "ready" | "degraded" | "stopped" | "pending";
2799
+ reaction?: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none" | undefined;
2800
+ }>, "many">;
2801
+ leases: z.ZodArray<z.ZodObject<{
2802
+ kind: z.ZodEnum<["alias", "component", "state", "secret"]>;
2803
+ resource: z.ZodString;
2804
+ acquiredAt: z.ZodString;
2805
+ expiresAt: z.ZodString;
2806
+ }, "strict", z.ZodTypeAny, {
2807
+ kind: "alias" | "component" | "state" | "secret";
2808
+ expiresAt: string;
2809
+ resource: string;
2810
+ acquiredAt: string;
2811
+ }, {
2812
+ kind: "alias" | "component" | "state" | "secret";
2813
+ expiresAt: string;
2814
+ resource: string;
2815
+ acquiredAt: string;
2816
+ }>, "many">;
2817
+ restoredReceiptId: z.ZodNullable<z.ZodString>;
2818
+ blockers: z.ZodArray<z.ZodObject<{
2819
+ code: z.ZodString;
2820
+ message: z.ZodString;
2821
+ targetId: z.ZodOptional<z.ZodString>;
2822
+ }, "strict", z.ZodTypeAny, {
2823
+ code: string;
2824
+ message: string;
2825
+ targetId?: string | undefined;
2826
+ }, {
2827
+ code: string;
2828
+ message: string;
2829
+ targetId?: string | undefined;
2830
+ }>, "many">;
2831
+ }, "strict", z.ZodTypeAny, {
2832
+ status: "planning" | "active" | "degraded" | "restoring" | "stopped" | "expired";
2833
+ schemaVersion: "treeseed.development-session/v1";
2834
+ targets: {
2835
+ projectId: string;
2836
+ targetId: string;
2837
+ mode: "released" | "candidate" | "live";
2838
+ generation: number;
2839
+ health: "ready" | "degraded" | "stopped" | "pending";
2840
+ reaction?: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none" | undefined;
2841
+ }[];
2842
+ sessionId: string;
2843
+ actor: string;
2844
+ hostId: string;
2845
+ createdAt: string;
2846
+ expiresAt: string;
2847
+ repositories: {
2848
+ dirty: boolean;
2849
+ repository: string;
2850
+ projectId: string;
2851
+ worktree: string;
2852
+ commit: string;
2853
+ branch: string | null;
2854
+ dirtyDigest: string | null;
2855
+ recipeDigest: string;
2856
+ }[];
2857
+ leases: {
2858
+ kind: "alias" | "component" | "state" | "secret";
2859
+ expiresAt: string;
2860
+ resource: string;
2861
+ acquiredAt: string;
2862
+ }[];
2863
+ restoredReceiptId: string | null;
2864
+ blockers: {
2865
+ code: string;
2866
+ message: string;
2867
+ targetId?: string | undefined;
2868
+ }[];
2869
+ }, {
2870
+ status: "planning" | "active" | "degraded" | "restoring" | "stopped" | "expired";
2871
+ schemaVersion: "treeseed.development-session/v1";
2872
+ targets: {
2873
+ projectId: string;
2874
+ targetId: string;
2875
+ mode: "released" | "candidate" | "live";
2876
+ generation: number;
2877
+ health: "ready" | "degraded" | "stopped" | "pending";
2878
+ reaction?: "reload" | "restart" | "rebuild" | "stale" | "manual" | "none" | undefined;
2879
+ }[];
2880
+ sessionId: string;
2881
+ actor: string;
2882
+ hostId: string;
2883
+ createdAt: string;
2884
+ expiresAt: string;
2885
+ repositories: {
2886
+ dirty: boolean;
2887
+ repository: string;
2888
+ projectId: string;
2889
+ worktree: string;
2890
+ commit: string;
2891
+ branch: string | null;
2892
+ dirtyDigest: string | null;
2893
+ recipeDigest: string;
2894
+ }[];
2895
+ leases: {
2896
+ kind: "alias" | "component" | "state" | "secret";
2897
+ expiresAt: string;
2898
+ resource: string;
2899
+ acquiredAt: string;
2900
+ }[];
2901
+ restoredReceiptId: string | null;
2902
+ blockers: {
2903
+ code: string;
2904
+ message: string;
2905
+ targetId?: string | undefined;
2906
+ }[];
2907
+ }>;
2908
+ export declare const developmentCandidateSchema: z.ZodEffects<z.ZodObject<{
2909
+ schemaVersion: z.ZodLiteral<"treeseed.development-candidate/v1">;
2910
+ candidateId: z.ZodString;
2911
+ sessionId: z.ZodString;
2912
+ createdAt: z.ZodString;
2913
+ source: z.ZodArray<z.ZodObject<{
2914
+ projectId: z.ZodString;
2915
+ repository: z.ZodString;
2916
+ worktree: z.ZodString;
2917
+ commit: z.ZodString;
2918
+ branch: z.ZodNullable<z.ZodString>;
2919
+ dirty: z.ZodBoolean;
2920
+ dirtyDigest: z.ZodNullable<z.ZodString>;
2921
+ recipeDigest: z.ZodString;
2922
+ }, "strict", z.ZodTypeAny, {
2923
+ dirty: boolean;
2924
+ repository: string;
2925
+ projectId: string;
2926
+ worktree: string;
2927
+ commit: string;
2928
+ branch: string | null;
2929
+ dirtyDigest: string | null;
2930
+ recipeDigest: string;
2931
+ }, {
2932
+ dirty: boolean;
2933
+ repository: string;
2934
+ projectId: string;
2935
+ worktree: string;
2936
+ commit: string;
2937
+ branch: string | null;
2938
+ dirtyDigest: string | null;
2939
+ recipeDigest: string;
2940
+ }>, "many">;
2941
+ artifacts: z.ZodArray<z.ZodObject<{
2942
+ projectId: z.ZodString;
2943
+ targetId: z.ZodString;
2944
+ kind: z.ZodEnum<["npm-package", "oci-image", "archive", "executable", "contract-bundle"]>;
2945
+ identity: z.ZodString;
2946
+ digest: z.ZodString;
2947
+ integrity: z.ZodOptional<z.ZodString>;
2948
+ }, "strict", z.ZodTypeAny, {
2949
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
2950
+ projectId: string;
2951
+ targetId: string;
2952
+ identity: string;
2953
+ digest: string;
2954
+ integrity?: string | undefined;
2955
+ }, {
2956
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
2957
+ projectId: string;
2958
+ targetId: string;
2959
+ identity: string;
2960
+ digest: string;
2961
+ integrity?: string | undefined;
2962
+ }>, "many">;
2963
+ configurationDigest: z.ZodString;
2964
+ dependencyGenerations: z.ZodRecord<z.ZodString, z.ZodNumber>;
2965
+ compatibilityAttestations: z.ZodArray<z.ZodObject<{
2966
+ contractId: z.ZodString;
2967
+ digest: z.ZodString;
2968
+ compatible: z.ZodBoolean;
2969
+ minimumBump: z.ZodEnum<["none", "patch", "minor", "major"]>;
2970
+ }, "strict", z.ZodTypeAny, {
2971
+ digest: string;
2972
+ contractId: string;
2973
+ compatible: boolean;
2974
+ minimumBump: "none" | "patch" | "minor" | "major";
2975
+ }, {
2976
+ digest: string;
2977
+ contractId: string;
2978
+ compatible: boolean;
2979
+ minimumBump: "none" | "patch" | "minor" | "major";
2980
+ }>, "many">;
2981
+ verification: z.ZodObject<{
2982
+ status: z.ZodEnum<["pending", "passed", "failed"]>;
2983
+ operations: z.ZodArray<z.ZodString, "many">;
2984
+ completedAt: z.ZodNullable<z.ZodString>;
2985
+ }, "strict", z.ZodTypeAny, {
2986
+ status: "pending" | "passed" | "failed";
2987
+ operations: string[];
2988
+ completedAt: string | null;
2989
+ }, {
2990
+ status: "pending" | "passed" | "failed";
2991
+ operations: string[];
2992
+ completedAt: string | null;
2993
+ }>;
2994
+ promotable: z.ZodBoolean;
2995
+ }, "strict", z.ZodTypeAny, {
2996
+ artifacts: {
2997
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
2998
+ projectId: string;
2999
+ targetId: string;
3000
+ identity: string;
3001
+ digest: string;
3002
+ integrity?: string | undefined;
3003
+ }[];
3004
+ schemaVersion: "treeseed.development-candidate/v1";
3005
+ sessionId: string;
3006
+ createdAt: string;
3007
+ candidateId: string;
3008
+ source: {
3009
+ dirty: boolean;
3010
+ repository: string;
3011
+ projectId: string;
3012
+ worktree: string;
3013
+ commit: string;
3014
+ branch: string | null;
3015
+ dirtyDigest: string | null;
3016
+ recipeDigest: string;
3017
+ }[];
3018
+ configurationDigest: string;
3019
+ dependencyGenerations: Record<string, number>;
3020
+ compatibilityAttestations: {
3021
+ digest: string;
3022
+ contractId: string;
3023
+ compatible: boolean;
3024
+ minimumBump: "none" | "patch" | "minor" | "major";
3025
+ }[];
3026
+ verification: {
3027
+ status: "pending" | "passed" | "failed";
3028
+ operations: string[];
3029
+ completedAt: string | null;
3030
+ };
3031
+ promotable: boolean;
3032
+ }, {
3033
+ artifacts: {
3034
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3035
+ projectId: string;
3036
+ targetId: string;
3037
+ identity: string;
3038
+ digest: string;
3039
+ integrity?: string | undefined;
3040
+ }[];
3041
+ schemaVersion: "treeseed.development-candidate/v1";
3042
+ sessionId: string;
3043
+ createdAt: string;
3044
+ candidateId: string;
3045
+ source: {
3046
+ dirty: boolean;
3047
+ repository: string;
3048
+ projectId: string;
3049
+ worktree: string;
3050
+ commit: string;
3051
+ branch: string | null;
3052
+ dirtyDigest: string | null;
3053
+ recipeDigest: string;
3054
+ }[];
3055
+ configurationDigest: string;
3056
+ dependencyGenerations: Record<string, number>;
3057
+ compatibilityAttestations: {
3058
+ digest: string;
3059
+ contractId: string;
3060
+ compatible: boolean;
3061
+ minimumBump: "none" | "patch" | "minor" | "major";
3062
+ }[];
3063
+ verification: {
3064
+ status: "pending" | "passed" | "failed";
3065
+ operations: string[];
3066
+ completedAt: string | null;
3067
+ };
3068
+ promotable: boolean;
3069
+ }>, {
3070
+ artifacts: {
3071
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3072
+ projectId: string;
3073
+ targetId: string;
3074
+ identity: string;
3075
+ digest: string;
3076
+ integrity?: string | undefined;
3077
+ }[];
3078
+ schemaVersion: "treeseed.development-candidate/v1";
3079
+ sessionId: string;
3080
+ createdAt: string;
3081
+ candidateId: string;
3082
+ source: {
3083
+ dirty: boolean;
3084
+ repository: string;
3085
+ projectId: string;
3086
+ worktree: string;
3087
+ commit: string;
3088
+ branch: string | null;
3089
+ dirtyDigest: string | null;
3090
+ recipeDigest: string;
3091
+ }[];
3092
+ configurationDigest: string;
3093
+ dependencyGenerations: Record<string, number>;
3094
+ compatibilityAttestations: {
3095
+ digest: string;
3096
+ contractId: string;
3097
+ compatible: boolean;
3098
+ minimumBump: "none" | "patch" | "minor" | "major";
3099
+ }[];
3100
+ verification: {
3101
+ status: "pending" | "passed" | "failed";
3102
+ operations: string[];
3103
+ completedAt: string | null;
3104
+ };
3105
+ promotable: boolean;
3106
+ }, {
3107
+ artifacts: {
3108
+ kind: "npm-package" | "oci-image" | "archive" | "executable" | "contract-bundle";
3109
+ projectId: string;
3110
+ targetId: string;
3111
+ identity: string;
3112
+ digest: string;
3113
+ integrity?: string | undefined;
3114
+ }[];
3115
+ schemaVersion: "treeseed.development-candidate/v1";
3116
+ sessionId: string;
3117
+ createdAt: string;
3118
+ candidateId: string;
3119
+ source: {
3120
+ dirty: boolean;
3121
+ repository: string;
3122
+ projectId: string;
3123
+ worktree: string;
3124
+ commit: string;
3125
+ branch: string | null;
3126
+ dirtyDigest: string | null;
3127
+ recipeDigest: string;
3128
+ }[];
3129
+ configurationDigest: string;
3130
+ dependencyGenerations: Record<string, number>;
3131
+ compatibilityAttestations: {
3132
+ digest: string;
3133
+ contractId: string;
3134
+ compatible: boolean;
3135
+ minimumBump: "none" | "patch" | "minor" | "major";
3136
+ }[];
3137
+ verification: {
3138
+ status: "pending" | "passed" | "failed";
3139
+ operations: string[];
3140
+ completedAt: string | null;
3141
+ };
3142
+ promotable: boolean;
3143
+ }>;
3144
+ export type DevelopmentRuntime = z.infer<typeof developmentRuntimeSchema>;
3145
+ export type DevelopmentTarget = z.infer<typeof developmentTargetSchema>;
3146
+ export type DevelopmentSession = z.infer<typeof developmentSessionSchema>;
3147
+ export type DevelopmentCandidate = z.infer<typeof developmentCandidateSchema>;
3148
+ export type DevelopmentMode = z.infer<typeof developmentModeSchema>;
3149
+ export type DevelopmentReaction = z.infer<typeof developmentReactionSchema>;