@treeseed/sdk 0.13.0-rc.66 → 0.13.0-rc.68
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.
- package/dist/.treeseed-build-complete.json +1 -1
- package/dist/deployment/schemas.d.ts +84 -3
- package/dist/deployment/schemas.js +9 -1
- package/dist/development/schemas.d.ts +192 -192
- package/dist/platform/contracts.d.ts +53 -7
- package/dist/platform/contracts.js +17 -3
- package/dist/platform/index.d.ts +1 -0
- package/dist/platform/index.js +1 -0
- package/dist/platform/project-create.d.ts +49 -0
- package/dist/platform/project-create.js +75 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"completedAt":"2026-09-
|
|
1
|
+
{"completedAt":"2026-09-01T09:57:27.022Z"}
|
|
@@ -1885,21 +1885,36 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1885
1885
|
id: string;
|
|
1886
1886
|
required: boolean;
|
|
1887
1887
|
}>, "many">>;
|
|
1888
|
-
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1888
|
+
files: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1889
1889
|
id: z.ZodString;
|
|
1890
1890
|
path: z.ZodString;
|
|
1891
1891
|
required: z.ZodBoolean;
|
|
1892
1892
|
sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
1893
|
+
default: z.ZodOptional<z.ZodString>;
|
|
1893
1894
|
}, "strict", z.ZodTypeAny, {
|
|
1894
1895
|
path: string;
|
|
1895
1896
|
id: string;
|
|
1896
1897
|
required: boolean;
|
|
1897
1898
|
sensitive: boolean;
|
|
1899
|
+
default?: string | undefined;
|
|
1898
1900
|
}, {
|
|
1899
1901
|
path: string;
|
|
1900
1902
|
id: string;
|
|
1901
1903
|
required: boolean;
|
|
1902
1904
|
sensitive?: boolean | undefined;
|
|
1905
|
+
default?: string | undefined;
|
|
1906
|
+
}>, {
|
|
1907
|
+
path: string;
|
|
1908
|
+
id: string;
|
|
1909
|
+
required: boolean;
|
|
1910
|
+
sensitive: boolean;
|
|
1911
|
+
default?: string | undefined;
|
|
1912
|
+
}, {
|
|
1913
|
+
path: string;
|
|
1914
|
+
id: string;
|
|
1915
|
+
required: boolean;
|
|
1916
|
+
sensitive?: boolean | undefined;
|
|
1917
|
+
default?: string | undefined;
|
|
1903
1918
|
}>, "many">>;
|
|
1904
1919
|
}, "strict", z.ZodTypeAny, {
|
|
1905
1920
|
environment: {
|
|
@@ -1922,6 +1937,7 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1922
1937
|
id: string;
|
|
1923
1938
|
required: boolean;
|
|
1924
1939
|
sensitive: boolean;
|
|
1940
|
+
default?: string | undefined;
|
|
1925
1941
|
}[];
|
|
1926
1942
|
}, {
|
|
1927
1943
|
environment?: {
|
|
@@ -1944,6 +1960,7 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1944
1960
|
id: string;
|
|
1945
1961
|
required: boolean;
|
|
1946
1962
|
sensitive?: boolean | undefined;
|
|
1963
|
+
default?: string | undefined;
|
|
1947
1964
|
}[] | undefined;
|
|
1948
1965
|
}>>, {
|
|
1949
1966
|
environment: {
|
|
@@ -1966,6 +1983,7 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1966
1983
|
id: string;
|
|
1967
1984
|
required: boolean;
|
|
1968
1985
|
sensitive: boolean;
|
|
1986
|
+
default?: string | undefined;
|
|
1969
1987
|
}[];
|
|
1970
1988
|
}, {
|
|
1971
1989
|
environment?: {
|
|
@@ -1988,6 +2006,7 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1988
2006
|
id: string;
|
|
1989
2007
|
required: boolean;
|
|
1990
2008
|
sensitive?: boolean | undefined;
|
|
2009
|
+
default?: string | undefined;
|
|
1991
2010
|
}[] | undefined;
|
|
1992
2011
|
} | undefined>;
|
|
1993
2012
|
services: z.ZodArray<z.ZodObject<{
|
|
@@ -2264,6 +2283,7 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2264
2283
|
id: string;
|
|
2265
2284
|
required: boolean;
|
|
2266
2285
|
sensitive: boolean;
|
|
2286
|
+
default?: string | undefined;
|
|
2267
2287
|
}[];
|
|
2268
2288
|
};
|
|
2269
2289
|
services: {
|
|
@@ -2382,6 +2402,7 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2382
2402
|
id: string;
|
|
2383
2403
|
required: boolean;
|
|
2384
2404
|
sensitive?: boolean | undefined;
|
|
2405
|
+
default?: string | undefined;
|
|
2385
2406
|
}[] | undefined;
|
|
2386
2407
|
} | undefined;
|
|
2387
2408
|
modeControl?: {
|
|
@@ -2440,6 +2461,7 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2440
2461
|
id: string;
|
|
2441
2462
|
required: boolean;
|
|
2442
2463
|
sensitive: boolean;
|
|
2464
|
+
default?: string | undefined;
|
|
2443
2465
|
}[];
|
|
2444
2466
|
};
|
|
2445
2467
|
services: {
|
|
@@ -2558,6 +2580,7 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2558
2580
|
id: string;
|
|
2559
2581
|
required: boolean;
|
|
2560
2582
|
sensitive?: boolean | undefined;
|
|
2583
|
+
default?: string | undefined;
|
|
2561
2584
|
}[] | undefined;
|
|
2562
2585
|
} | undefined;
|
|
2563
2586
|
modeControl?: {
|
|
@@ -2726,21 +2749,36 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2726
2749
|
id: string;
|
|
2727
2750
|
required: boolean;
|
|
2728
2751
|
}>, "many">>;
|
|
2729
|
-
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2752
|
+
files: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2730
2753
|
id: z.ZodString;
|
|
2731
2754
|
path: z.ZodString;
|
|
2732
2755
|
required: z.ZodBoolean;
|
|
2733
2756
|
sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
2757
|
+
default: z.ZodOptional<z.ZodString>;
|
|
2734
2758
|
}, "strict", z.ZodTypeAny, {
|
|
2735
2759
|
path: string;
|
|
2736
2760
|
id: string;
|
|
2737
2761
|
required: boolean;
|
|
2738
2762
|
sensitive: boolean;
|
|
2763
|
+
default?: string | undefined;
|
|
2764
|
+
}, {
|
|
2765
|
+
path: string;
|
|
2766
|
+
id: string;
|
|
2767
|
+
required: boolean;
|
|
2768
|
+
sensitive?: boolean | undefined;
|
|
2769
|
+
default?: string | undefined;
|
|
2770
|
+
}>, {
|
|
2771
|
+
path: string;
|
|
2772
|
+
id: string;
|
|
2773
|
+
required: boolean;
|
|
2774
|
+
sensitive: boolean;
|
|
2775
|
+
default?: string | undefined;
|
|
2739
2776
|
}, {
|
|
2740
2777
|
path: string;
|
|
2741
2778
|
id: string;
|
|
2742
2779
|
required: boolean;
|
|
2743
2780
|
sensitive?: boolean | undefined;
|
|
2781
|
+
default?: string | undefined;
|
|
2744
2782
|
}>, "many">>;
|
|
2745
2783
|
}, "strict", z.ZodTypeAny, {
|
|
2746
2784
|
environment: {
|
|
@@ -2763,6 +2801,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2763
2801
|
id: string;
|
|
2764
2802
|
required: boolean;
|
|
2765
2803
|
sensitive: boolean;
|
|
2804
|
+
default?: string | undefined;
|
|
2766
2805
|
}[];
|
|
2767
2806
|
}, {
|
|
2768
2807
|
environment?: {
|
|
@@ -2785,6 +2824,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2785
2824
|
id: string;
|
|
2786
2825
|
required: boolean;
|
|
2787
2826
|
sensitive?: boolean | undefined;
|
|
2827
|
+
default?: string | undefined;
|
|
2788
2828
|
}[] | undefined;
|
|
2789
2829
|
}>>, {
|
|
2790
2830
|
environment: {
|
|
@@ -2807,6 +2847,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2807
2847
|
id: string;
|
|
2808
2848
|
required: boolean;
|
|
2809
2849
|
sensitive: boolean;
|
|
2850
|
+
default?: string | undefined;
|
|
2810
2851
|
}[];
|
|
2811
2852
|
}, {
|
|
2812
2853
|
environment?: {
|
|
@@ -2829,6 +2870,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2829
2870
|
id: string;
|
|
2830
2871
|
required: boolean;
|
|
2831
2872
|
sensitive?: boolean | undefined;
|
|
2873
|
+
default?: string | undefined;
|
|
2832
2874
|
}[] | undefined;
|
|
2833
2875
|
} | undefined>;
|
|
2834
2876
|
services: z.ZodArray<z.ZodObject<{
|
|
@@ -3105,6 +3147,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3105
3147
|
id: string;
|
|
3106
3148
|
required: boolean;
|
|
3107
3149
|
sensitive: boolean;
|
|
3150
|
+
default?: string | undefined;
|
|
3108
3151
|
}[];
|
|
3109
3152
|
};
|
|
3110
3153
|
services: {
|
|
@@ -3223,6 +3266,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3223
3266
|
id: string;
|
|
3224
3267
|
required: boolean;
|
|
3225
3268
|
sensitive?: boolean | undefined;
|
|
3269
|
+
default?: string | undefined;
|
|
3226
3270
|
}[] | undefined;
|
|
3227
3271
|
} | undefined;
|
|
3228
3272
|
modeControl?: {
|
|
@@ -3281,6 +3325,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3281
3325
|
id: string;
|
|
3282
3326
|
required: boolean;
|
|
3283
3327
|
sensitive: boolean;
|
|
3328
|
+
default?: string | undefined;
|
|
3284
3329
|
}[];
|
|
3285
3330
|
};
|
|
3286
3331
|
services: {
|
|
@@ -3399,6 +3444,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3399
3444
|
id: string;
|
|
3400
3445
|
required: boolean;
|
|
3401
3446
|
sensitive?: boolean | undefined;
|
|
3447
|
+
default?: string | undefined;
|
|
3402
3448
|
}[] | undefined;
|
|
3403
3449
|
} | undefined;
|
|
3404
3450
|
modeControl?: {
|
|
@@ -3484,6 +3530,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3484
3530
|
id: string;
|
|
3485
3531
|
required: boolean;
|
|
3486
3532
|
sensitive: boolean;
|
|
3533
|
+
default?: string | undefined;
|
|
3487
3534
|
}[];
|
|
3488
3535
|
};
|
|
3489
3536
|
services: {
|
|
@@ -3643,6 +3690,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3643
3690
|
id: string;
|
|
3644
3691
|
required: boolean;
|
|
3645
3692
|
sensitive?: boolean | undefined;
|
|
3693
|
+
default?: string | undefined;
|
|
3646
3694
|
}[] | undefined;
|
|
3647
3695
|
} | undefined;
|
|
3648
3696
|
modeControl?: {
|
|
@@ -3742,6 +3790,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3742
3790
|
id: string;
|
|
3743
3791
|
required: boolean;
|
|
3744
3792
|
sensitive: boolean;
|
|
3793
|
+
default?: string | undefined;
|
|
3745
3794
|
}[];
|
|
3746
3795
|
};
|
|
3747
3796
|
services: {
|
|
@@ -3901,6 +3950,7 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3901
3950
|
id: string;
|
|
3902
3951
|
required: boolean;
|
|
3903
3952
|
sensitive?: boolean | undefined;
|
|
3953
|
+
default?: string | undefined;
|
|
3904
3954
|
}[] | undefined;
|
|
3905
3955
|
} | undefined;
|
|
3906
3956
|
modeControl?: {
|
|
@@ -4578,21 +4628,36 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4578
4628
|
id: string;
|
|
4579
4629
|
required: boolean;
|
|
4580
4630
|
}>, "many">>;
|
|
4581
|
-
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4631
|
+
files: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
4582
4632
|
id: z.ZodString;
|
|
4583
4633
|
path: z.ZodString;
|
|
4584
4634
|
required: z.ZodBoolean;
|
|
4585
4635
|
sensitive: z.ZodDefault<z.ZodBoolean>;
|
|
4636
|
+
default: z.ZodOptional<z.ZodString>;
|
|
4586
4637
|
}, "strict", z.ZodTypeAny, {
|
|
4587
4638
|
path: string;
|
|
4588
4639
|
id: string;
|
|
4589
4640
|
required: boolean;
|
|
4590
4641
|
sensitive: boolean;
|
|
4642
|
+
default?: string | undefined;
|
|
4643
|
+
}, {
|
|
4644
|
+
path: string;
|
|
4645
|
+
id: string;
|
|
4646
|
+
required: boolean;
|
|
4647
|
+
sensitive?: boolean | undefined;
|
|
4648
|
+
default?: string | undefined;
|
|
4649
|
+
}>, {
|
|
4650
|
+
path: string;
|
|
4651
|
+
id: string;
|
|
4652
|
+
required: boolean;
|
|
4653
|
+
sensitive: boolean;
|
|
4654
|
+
default?: string | undefined;
|
|
4591
4655
|
}, {
|
|
4592
4656
|
path: string;
|
|
4593
4657
|
id: string;
|
|
4594
4658
|
required: boolean;
|
|
4595
4659
|
sensitive?: boolean | undefined;
|
|
4660
|
+
default?: string | undefined;
|
|
4596
4661
|
}>, "many">>;
|
|
4597
4662
|
}, "strict", z.ZodTypeAny, {
|
|
4598
4663
|
environment: {
|
|
@@ -4615,6 +4680,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4615
4680
|
id: string;
|
|
4616
4681
|
required: boolean;
|
|
4617
4682
|
sensitive: boolean;
|
|
4683
|
+
default?: string | undefined;
|
|
4618
4684
|
}[];
|
|
4619
4685
|
}, {
|
|
4620
4686
|
environment?: {
|
|
@@ -4637,6 +4703,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4637
4703
|
id: string;
|
|
4638
4704
|
required: boolean;
|
|
4639
4705
|
sensitive?: boolean | undefined;
|
|
4706
|
+
default?: string | undefined;
|
|
4640
4707
|
}[] | undefined;
|
|
4641
4708
|
}>>, {
|
|
4642
4709
|
environment: {
|
|
@@ -4659,6 +4726,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4659
4726
|
id: string;
|
|
4660
4727
|
required: boolean;
|
|
4661
4728
|
sensitive: boolean;
|
|
4729
|
+
default?: string | undefined;
|
|
4662
4730
|
}[];
|
|
4663
4731
|
}, {
|
|
4664
4732
|
environment?: {
|
|
@@ -4681,6 +4749,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4681
4749
|
id: string;
|
|
4682
4750
|
required: boolean;
|
|
4683
4751
|
sensitive?: boolean | undefined;
|
|
4752
|
+
default?: string | undefined;
|
|
4684
4753
|
}[] | undefined;
|
|
4685
4754
|
} | undefined>;
|
|
4686
4755
|
services: z.ZodArray<z.ZodObject<{
|
|
@@ -4957,6 +5026,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4957
5026
|
id: string;
|
|
4958
5027
|
required: boolean;
|
|
4959
5028
|
sensitive: boolean;
|
|
5029
|
+
default?: string | undefined;
|
|
4960
5030
|
}[];
|
|
4961
5031
|
};
|
|
4962
5032
|
services: {
|
|
@@ -5075,6 +5145,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5075
5145
|
id: string;
|
|
5076
5146
|
required: boolean;
|
|
5077
5147
|
sensitive?: boolean | undefined;
|
|
5148
|
+
default?: string | undefined;
|
|
5078
5149
|
}[] | undefined;
|
|
5079
5150
|
} | undefined;
|
|
5080
5151
|
modeControl?: {
|
|
@@ -5133,6 +5204,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5133
5204
|
id: string;
|
|
5134
5205
|
required: boolean;
|
|
5135
5206
|
sensitive: boolean;
|
|
5207
|
+
default?: string | undefined;
|
|
5136
5208
|
}[];
|
|
5137
5209
|
};
|
|
5138
5210
|
services: {
|
|
@@ -5251,6 +5323,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5251
5323
|
id: string;
|
|
5252
5324
|
required: boolean;
|
|
5253
5325
|
sensitive?: boolean | undefined;
|
|
5326
|
+
default?: string | undefined;
|
|
5254
5327
|
}[] | undefined;
|
|
5255
5328
|
} | undefined;
|
|
5256
5329
|
modeControl?: {
|
|
@@ -5336,6 +5409,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5336
5409
|
id: string;
|
|
5337
5410
|
required: boolean;
|
|
5338
5411
|
sensitive: boolean;
|
|
5412
|
+
default?: string | undefined;
|
|
5339
5413
|
}[];
|
|
5340
5414
|
};
|
|
5341
5415
|
services: {
|
|
@@ -5495,6 +5569,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5495
5569
|
id: string;
|
|
5496
5570
|
required: boolean;
|
|
5497
5571
|
sensitive?: boolean | undefined;
|
|
5572
|
+
default?: string | undefined;
|
|
5498
5573
|
}[] | undefined;
|
|
5499
5574
|
} | undefined;
|
|
5500
5575
|
modeControl?: {
|
|
@@ -5594,6 +5669,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5594
5669
|
id: string;
|
|
5595
5670
|
required: boolean;
|
|
5596
5671
|
sensitive: boolean;
|
|
5672
|
+
default?: string | undefined;
|
|
5597
5673
|
}[];
|
|
5598
5674
|
};
|
|
5599
5675
|
services: {
|
|
@@ -5753,6 +5829,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5753
5829
|
id: string;
|
|
5754
5830
|
required: boolean;
|
|
5755
5831
|
sensitive?: boolean | undefined;
|
|
5832
|
+
default?: string | undefined;
|
|
5756
5833
|
}[] | undefined;
|
|
5757
5834
|
} | undefined;
|
|
5758
5835
|
modeControl?: {
|
|
@@ -5968,6 +6045,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5968
6045
|
id: string;
|
|
5969
6046
|
required: boolean;
|
|
5970
6047
|
sensitive: boolean;
|
|
6048
|
+
default?: string | undefined;
|
|
5971
6049
|
}[];
|
|
5972
6050
|
};
|
|
5973
6051
|
services: {
|
|
@@ -6159,6 +6237,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6159
6237
|
id: string;
|
|
6160
6238
|
required: boolean;
|
|
6161
6239
|
sensitive?: boolean | undefined;
|
|
6240
|
+
default?: string | undefined;
|
|
6162
6241
|
}[] | undefined;
|
|
6163
6242
|
} | undefined;
|
|
6164
6243
|
modeControl?: {
|
|
@@ -6290,6 +6369,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6290
6369
|
id: string;
|
|
6291
6370
|
required: boolean;
|
|
6292
6371
|
sensitive: boolean;
|
|
6372
|
+
default?: string | undefined;
|
|
6293
6373
|
}[];
|
|
6294
6374
|
};
|
|
6295
6375
|
services: {
|
|
@@ -6481,6 +6561,7 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6481
6561
|
id: string;
|
|
6482
6562
|
required: boolean;
|
|
6483
6563
|
sensitive?: boolean | undefined;
|
|
6564
|
+
default?: string | undefined;
|
|
6484
6565
|
}[] | undefined;
|
|
6485
6566
|
} | undefined;
|
|
6486
6567
|
modeControl?: {
|
|
@@ -173,7 +173,15 @@ const componentRuntimeConfigurationSchema = z.object({
|
|
|
173
173
|
})).default([]),
|
|
174
174
|
secretEnvironment: z.array(z.object({ name: environmentName, required: z.boolean() }).strict()).default([]),
|
|
175
175
|
secretFiles: z.array(z.object({ id: identifier, path: componentSecretPath, required: z.boolean() }).strict()).default([]),
|
|
176
|
-
files: z.array(z.object({
|
|
176
|
+
files: z.array(z.object({
|
|
177
|
+
id: identifier,
|
|
178
|
+
path: componentConfigurationPath,
|
|
179
|
+
required: z.boolean(),
|
|
180
|
+
sensitive: z.boolean().default(false),
|
|
181
|
+
default: z.string().max(1048576).optional()
|
|
182
|
+
}).strict().superRefine((file, context) => {
|
|
183
|
+
if (file.sensitive && file.default !== void 0) context.addIssue({ code: z.ZodIssueCode.custom, path: ["default"], message: "Sensitive managed files cannot publish defaults." });
|
|
184
|
+
})).default([])
|
|
177
185
|
}).strict().default({ environment: [], secretEnvironment: [], secretFiles: [], files: [] }).superRefine((configuration, context) => {
|
|
178
186
|
const environment = configuration.environment.map(({ name }) => name);
|
|
179
187
|
const secretEnvironment = configuration.secretEnvironment.map(({ name }) => name);
|
|
@@ -516,6 +516,22 @@ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
516
516
|
diskBytes?: number | undefined;
|
|
517
517
|
};
|
|
518
518
|
id: string;
|
|
519
|
+
ready: {
|
|
520
|
+
path: string;
|
|
521
|
+
timeoutSeconds: number;
|
|
522
|
+
kind: "marker";
|
|
523
|
+
} | {
|
|
524
|
+
path: string;
|
|
525
|
+
timeoutSeconds: number;
|
|
526
|
+
kind: "http";
|
|
527
|
+
expectedStatus: number;
|
|
528
|
+
} | {
|
|
529
|
+
timeoutSeconds: number;
|
|
530
|
+
kind: "tcp";
|
|
531
|
+
} | {
|
|
532
|
+
kind: "process";
|
|
533
|
+
graceSeconds: number;
|
|
534
|
+
};
|
|
519
535
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
520
536
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
521
537
|
runtimeRequirements: string[];
|
|
@@ -572,22 +588,6 @@ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
572
588
|
cwd?: string | undefined;
|
|
573
589
|
} | undefined;
|
|
574
590
|
};
|
|
575
|
-
ready: {
|
|
576
|
-
path: string;
|
|
577
|
-
timeoutSeconds: number;
|
|
578
|
-
kind: "marker";
|
|
579
|
-
} | {
|
|
580
|
-
path: string;
|
|
581
|
-
timeoutSeconds: number;
|
|
582
|
-
kind: "http";
|
|
583
|
-
expectedStatus: number;
|
|
584
|
-
} | {
|
|
585
|
-
timeoutSeconds: number;
|
|
586
|
-
kind: "tcp";
|
|
587
|
-
} | {
|
|
588
|
-
kind: "process";
|
|
589
|
-
graceSeconds: number;
|
|
590
|
-
};
|
|
591
591
|
outputs: {
|
|
592
592
|
path: string;
|
|
593
593
|
mediaType: string;
|
|
@@ -649,6 +649,22 @@ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
649
649
|
} | undefined;
|
|
650
650
|
}, {
|
|
651
651
|
id: string;
|
|
652
|
+
ready: {
|
|
653
|
+
path: string;
|
|
654
|
+
timeoutSeconds: number;
|
|
655
|
+
kind: "marker";
|
|
656
|
+
} | {
|
|
657
|
+
path: string;
|
|
658
|
+
timeoutSeconds: number;
|
|
659
|
+
kind: "http";
|
|
660
|
+
expectedStatus?: number | undefined;
|
|
661
|
+
} | {
|
|
662
|
+
timeoutSeconds: number;
|
|
663
|
+
kind: "tcp";
|
|
664
|
+
} | {
|
|
665
|
+
kind: "process";
|
|
666
|
+
graceSeconds?: number | undefined;
|
|
667
|
+
};
|
|
652
668
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
653
669
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
654
670
|
sourceRoots: string[];
|
|
@@ -703,22 +719,6 @@ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
703
719
|
timeoutSeconds?: number | undefined;
|
|
704
720
|
} | undefined;
|
|
705
721
|
};
|
|
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
722
|
statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
|
|
723
723
|
migrationPolicy: "none" | "explicit-review" | "disposable-only";
|
|
724
724
|
shutdown: {
|
|
@@ -792,6 +792,22 @@ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
792
792
|
diskBytes?: number | undefined;
|
|
793
793
|
};
|
|
794
794
|
id: string;
|
|
795
|
+
ready: {
|
|
796
|
+
path: string;
|
|
797
|
+
timeoutSeconds: number;
|
|
798
|
+
kind: "marker";
|
|
799
|
+
} | {
|
|
800
|
+
path: string;
|
|
801
|
+
timeoutSeconds: number;
|
|
802
|
+
kind: "http";
|
|
803
|
+
expectedStatus: number;
|
|
804
|
+
} | {
|
|
805
|
+
timeoutSeconds: number;
|
|
806
|
+
kind: "tcp";
|
|
807
|
+
} | {
|
|
808
|
+
kind: "process";
|
|
809
|
+
graceSeconds: number;
|
|
810
|
+
};
|
|
795
811
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
796
812
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
797
813
|
runtimeRequirements: string[];
|
|
@@ -848,22 +864,6 @@ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
848
864
|
cwd?: string | undefined;
|
|
849
865
|
} | undefined;
|
|
850
866
|
};
|
|
851
|
-
ready: {
|
|
852
|
-
path: string;
|
|
853
|
-
timeoutSeconds: number;
|
|
854
|
-
kind: "marker";
|
|
855
|
-
} | {
|
|
856
|
-
path: string;
|
|
857
|
-
timeoutSeconds: number;
|
|
858
|
-
kind: "http";
|
|
859
|
-
expectedStatus: number;
|
|
860
|
-
} | {
|
|
861
|
-
timeoutSeconds: number;
|
|
862
|
-
kind: "tcp";
|
|
863
|
-
} | {
|
|
864
|
-
kind: "process";
|
|
865
|
-
graceSeconds: number;
|
|
866
|
-
};
|
|
867
867
|
outputs: {
|
|
868
868
|
path: string;
|
|
869
869
|
mediaType: string;
|
|
@@ -925,6 +925,22 @@ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
925
925
|
} | undefined;
|
|
926
926
|
}, {
|
|
927
927
|
id: string;
|
|
928
|
+
ready: {
|
|
929
|
+
path: string;
|
|
930
|
+
timeoutSeconds: number;
|
|
931
|
+
kind: "marker";
|
|
932
|
+
} | {
|
|
933
|
+
path: string;
|
|
934
|
+
timeoutSeconds: number;
|
|
935
|
+
kind: "http";
|
|
936
|
+
expectedStatus?: number | undefined;
|
|
937
|
+
} | {
|
|
938
|
+
timeoutSeconds: number;
|
|
939
|
+
kind: "tcp";
|
|
940
|
+
} | {
|
|
941
|
+
kind: "process";
|
|
942
|
+
graceSeconds?: number | undefined;
|
|
943
|
+
};
|
|
928
944
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
929
945
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
930
946
|
sourceRoots: string[];
|
|
@@ -979,22 +995,6 @@ export declare const developmentTargetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
979
995
|
timeoutSeconds?: number | undefined;
|
|
980
996
|
} | undefined;
|
|
981
997
|
};
|
|
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
998
|
statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
|
|
999
999
|
migrationPolicy: "none" | "explicit-review" | "disposable-only";
|
|
1000
1000
|
shutdown: {
|
|
@@ -1597,6 +1597,22 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1597
1597
|
diskBytes?: number | undefined;
|
|
1598
1598
|
};
|
|
1599
1599
|
id: string;
|
|
1600
|
+
ready: {
|
|
1601
|
+
path: string;
|
|
1602
|
+
timeoutSeconds: number;
|
|
1603
|
+
kind: "marker";
|
|
1604
|
+
} | {
|
|
1605
|
+
path: string;
|
|
1606
|
+
timeoutSeconds: number;
|
|
1607
|
+
kind: "http";
|
|
1608
|
+
expectedStatus: number;
|
|
1609
|
+
} | {
|
|
1610
|
+
timeoutSeconds: number;
|
|
1611
|
+
kind: "tcp";
|
|
1612
|
+
} | {
|
|
1613
|
+
kind: "process";
|
|
1614
|
+
graceSeconds: number;
|
|
1615
|
+
};
|
|
1600
1616
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
1601
1617
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
1602
1618
|
runtimeRequirements: string[];
|
|
@@ -1653,22 +1669,6 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1653
1669
|
cwd?: string | undefined;
|
|
1654
1670
|
} | undefined;
|
|
1655
1671
|
};
|
|
1656
|
-
ready: {
|
|
1657
|
-
path: string;
|
|
1658
|
-
timeoutSeconds: number;
|
|
1659
|
-
kind: "marker";
|
|
1660
|
-
} | {
|
|
1661
|
-
path: string;
|
|
1662
|
-
timeoutSeconds: number;
|
|
1663
|
-
kind: "http";
|
|
1664
|
-
expectedStatus: number;
|
|
1665
|
-
} | {
|
|
1666
|
-
timeoutSeconds: number;
|
|
1667
|
-
kind: "tcp";
|
|
1668
|
-
} | {
|
|
1669
|
-
kind: "process";
|
|
1670
|
-
graceSeconds: number;
|
|
1671
|
-
};
|
|
1672
1672
|
outputs: {
|
|
1673
1673
|
path: string;
|
|
1674
1674
|
mediaType: string;
|
|
@@ -1730,6 +1730,22 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1730
1730
|
} | undefined;
|
|
1731
1731
|
}, {
|
|
1732
1732
|
id: string;
|
|
1733
|
+
ready: {
|
|
1734
|
+
path: string;
|
|
1735
|
+
timeoutSeconds: number;
|
|
1736
|
+
kind: "marker";
|
|
1737
|
+
} | {
|
|
1738
|
+
path: string;
|
|
1739
|
+
timeoutSeconds: number;
|
|
1740
|
+
kind: "http";
|
|
1741
|
+
expectedStatus?: number | undefined;
|
|
1742
|
+
} | {
|
|
1743
|
+
timeoutSeconds: number;
|
|
1744
|
+
kind: "tcp";
|
|
1745
|
+
} | {
|
|
1746
|
+
kind: "process";
|
|
1747
|
+
graceSeconds?: number | undefined;
|
|
1748
|
+
};
|
|
1733
1749
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
1734
1750
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
1735
1751
|
sourceRoots: string[];
|
|
@@ -1784,22 +1800,6 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1784
1800
|
timeoutSeconds?: number | undefined;
|
|
1785
1801
|
} | undefined;
|
|
1786
1802
|
};
|
|
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
1803
|
statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
|
|
1804
1804
|
migrationPolicy: "none" | "explicit-review" | "disposable-only";
|
|
1805
1805
|
shutdown: {
|
|
@@ -1873,6 +1873,22 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1873
1873
|
diskBytes?: number | undefined;
|
|
1874
1874
|
};
|
|
1875
1875
|
id: string;
|
|
1876
|
+
ready: {
|
|
1877
|
+
path: string;
|
|
1878
|
+
timeoutSeconds: number;
|
|
1879
|
+
kind: "marker";
|
|
1880
|
+
} | {
|
|
1881
|
+
path: string;
|
|
1882
|
+
timeoutSeconds: number;
|
|
1883
|
+
kind: "http";
|
|
1884
|
+
expectedStatus: number;
|
|
1885
|
+
} | {
|
|
1886
|
+
timeoutSeconds: number;
|
|
1887
|
+
kind: "tcp";
|
|
1888
|
+
} | {
|
|
1889
|
+
kind: "process";
|
|
1890
|
+
graceSeconds: number;
|
|
1891
|
+
};
|
|
1876
1892
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
1877
1893
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
1878
1894
|
runtimeRequirements: string[];
|
|
@@ -1929,22 +1945,6 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1929
1945
|
cwd?: string | undefined;
|
|
1930
1946
|
} | undefined;
|
|
1931
1947
|
};
|
|
1932
|
-
ready: {
|
|
1933
|
-
path: string;
|
|
1934
|
-
timeoutSeconds: number;
|
|
1935
|
-
kind: "marker";
|
|
1936
|
-
} | {
|
|
1937
|
-
path: string;
|
|
1938
|
-
timeoutSeconds: number;
|
|
1939
|
-
kind: "http";
|
|
1940
|
-
expectedStatus: number;
|
|
1941
|
-
} | {
|
|
1942
|
-
timeoutSeconds: number;
|
|
1943
|
-
kind: "tcp";
|
|
1944
|
-
} | {
|
|
1945
|
-
kind: "process";
|
|
1946
|
-
graceSeconds: number;
|
|
1947
|
-
};
|
|
1948
1948
|
outputs: {
|
|
1949
1949
|
path: string;
|
|
1950
1950
|
mediaType: string;
|
|
@@ -2006,6 +2006,22 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2006
2006
|
} | undefined;
|
|
2007
2007
|
}, {
|
|
2008
2008
|
id: string;
|
|
2009
|
+
ready: {
|
|
2010
|
+
path: string;
|
|
2011
|
+
timeoutSeconds: number;
|
|
2012
|
+
kind: "marker";
|
|
2013
|
+
} | {
|
|
2014
|
+
path: string;
|
|
2015
|
+
timeoutSeconds: number;
|
|
2016
|
+
kind: "http";
|
|
2017
|
+
expectedStatus?: number | undefined;
|
|
2018
|
+
} | {
|
|
2019
|
+
timeoutSeconds: number;
|
|
2020
|
+
kind: "tcp";
|
|
2021
|
+
} | {
|
|
2022
|
+
kind: "process";
|
|
2023
|
+
graceSeconds?: number | undefined;
|
|
2024
|
+
};
|
|
2009
2025
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2010
2026
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
2011
2027
|
sourceRoots: string[];
|
|
@@ -2060,22 +2076,6 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2060
2076
|
timeoutSeconds?: number | undefined;
|
|
2061
2077
|
} | undefined;
|
|
2062
2078
|
};
|
|
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
2079
|
statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
|
|
2080
2080
|
migrationPolicy: "none" | "explicit-review" | "disposable-only";
|
|
2081
2081
|
shutdown: {
|
|
@@ -2156,6 +2156,22 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2156
2156
|
diskBytes?: number | undefined;
|
|
2157
2157
|
};
|
|
2158
2158
|
id: string;
|
|
2159
|
+
ready: {
|
|
2160
|
+
path: string;
|
|
2161
|
+
timeoutSeconds: number;
|
|
2162
|
+
kind: "marker";
|
|
2163
|
+
} | {
|
|
2164
|
+
path: string;
|
|
2165
|
+
timeoutSeconds: number;
|
|
2166
|
+
kind: "http";
|
|
2167
|
+
expectedStatus: number;
|
|
2168
|
+
} | {
|
|
2169
|
+
timeoutSeconds: number;
|
|
2170
|
+
kind: "tcp";
|
|
2171
|
+
} | {
|
|
2172
|
+
kind: "process";
|
|
2173
|
+
graceSeconds: number;
|
|
2174
|
+
};
|
|
2159
2175
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2160
2176
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
2161
2177
|
runtimeRequirements: string[];
|
|
@@ -2212,22 +2228,6 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2212
2228
|
cwd?: string | undefined;
|
|
2213
2229
|
} | undefined;
|
|
2214
2230
|
};
|
|
2215
|
-
ready: {
|
|
2216
|
-
path: string;
|
|
2217
|
-
timeoutSeconds: number;
|
|
2218
|
-
kind: "marker";
|
|
2219
|
-
} | {
|
|
2220
|
-
path: string;
|
|
2221
|
-
timeoutSeconds: number;
|
|
2222
|
-
kind: "http";
|
|
2223
|
-
expectedStatus: number;
|
|
2224
|
-
} | {
|
|
2225
|
-
timeoutSeconds: number;
|
|
2226
|
-
kind: "tcp";
|
|
2227
|
-
} | {
|
|
2228
|
-
kind: "process";
|
|
2229
|
-
graceSeconds: number;
|
|
2230
|
-
};
|
|
2231
2231
|
outputs: {
|
|
2232
2232
|
path: string;
|
|
2233
2233
|
mediaType: string;
|
|
@@ -2300,6 +2300,22 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2300
2300
|
schemaVersion: "treeseed.development-runtime/v1";
|
|
2301
2301
|
targets: {
|
|
2302
2302
|
id: string;
|
|
2303
|
+
ready: {
|
|
2304
|
+
path: string;
|
|
2305
|
+
timeoutSeconds: number;
|
|
2306
|
+
kind: "marker";
|
|
2307
|
+
} | {
|
|
2308
|
+
path: string;
|
|
2309
|
+
timeoutSeconds: number;
|
|
2310
|
+
kind: "http";
|
|
2311
|
+
expectedStatus?: number | undefined;
|
|
2312
|
+
} | {
|
|
2313
|
+
timeoutSeconds: number;
|
|
2314
|
+
kind: "tcp";
|
|
2315
|
+
} | {
|
|
2316
|
+
kind: "process";
|
|
2317
|
+
graceSeconds?: number | undefined;
|
|
2318
|
+
};
|
|
2303
2319
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2304
2320
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
2305
2321
|
sourceRoots: string[];
|
|
@@ -2354,22 +2370,6 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2354
2370
|
timeoutSeconds?: number | undefined;
|
|
2355
2371
|
} | undefined;
|
|
2356
2372
|
};
|
|
2357
|
-
ready: {
|
|
2358
|
-
path: string;
|
|
2359
|
-
timeoutSeconds: number;
|
|
2360
|
-
kind: "marker";
|
|
2361
|
-
} | {
|
|
2362
|
-
path: string;
|
|
2363
|
-
timeoutSeconds: number;
|
|
2364
|
-
kind: "http";
|
|
2365
|
-
expectedStatus?: number | undefined;
|
|
2366
|
-
} | {
|
|
2367
|
-
timeoutSeconds: number;
|
|
2368
|
-
kind: "tcp";
|
|
2369
|
-
} | {
|
|
2370
|
-
kind: "process";
|
|
2371
|
-
graceSeconds?: number | undefined;
|
|
2372
|
-
};
|
|
2373
2373
|
statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
|
|
2374
2374
|
migrationPolicy: "none" | "explicit-review" | "disposable-only";
|
|
2375
2375
|
shutdown: {
|
|
@@ -2454,6 +2454,22 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2454
2454
|
diskBytes?: number | undefined;
|
|
2455
2455
|
};
|
|
2456
2456
|
id: string;
|
|
2457
|
+
ready: {
|
|
2458
|
+
path: string;
|
|
2459
|
+
timeoutSeconds: number;
|
|
2460
|
+
kind: "marker";
|
|
2461
|
+
} | {
|
|
2462
|
+
path: string;
|
|
2463
|
+
timeoutSeconds: number;
|
|
2464
|
+
kind: "http";
|
|
2465
|
+
expectedStatus: number;
|
|
2466
|
+
} | {
|
|
2467
|
+
timeoutSeconds: number;
|
|
2468
|
+
kind: "tcp";
|
|
2469
|
+
} | {
|
|
2470
|
+
kind: "process";
|
|
2471
|
+
graceSeconds: number;
|
|
2472
|
+
};
|
|
2457
2473
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2458
2474
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
2459
2475
|
runtimeRequirements: string[];
|
|
@@ -2510,22 +2526,6 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2510
2526
|
cwd?: string | undefined;
|
|
2511
2527
|
} | undefined;
|
|
2512
2528
|
};
|
|
2513
|
-
ready: {
|
|
2514
|
-
path: string;
|
|
2515
|
-
timeoutSeconds: number;
|
|
2516
|
-
kind: "marker";
|
|
2517
|
-
} | {
|
|
2518
|
-
path: string;
|
|
2519
|
-
timeoutSeconds: number;
|
|
2520
|
-
kind: "http";
|
|
2521
|
-
expectedStatus: number;
|
|
2522
|
-
} | {
|
|
2523
|
-
timeoutSeconds: number;
|
|
2524
|
-
kind: "tcp";
|
|
2525
|
-
} | {
|
|
2526
|
-
kind: "process";
|
|
2527
|
-
graceSeconds: number;
|
|
2528
|
-
};
|
|
2529
2529
|
outputs: {
|
|
2530
2530
|
path: string;
|
|
2531
2531
|
mediaType: string;
|
|
@@ -2598,6 +2598,22 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2598
2598
|
schemaVersion: "treeseed.development-runtime/v1";
|
|
2599
2599
|
targets: {
|
|
2600
2600
|
id: string;
|
|
2601
|
+
ready: {
|
|
2602
|
+
path: string;
|
|
2603
|
+
timeoutSeconds: number;
|
|
2604
|
+
kind: "marker";
|
|
2605
|
+
} | {
|
|
2606
|
+
path: string;
|
|
2607
|
+
timeoutSeconds: number;
|
|
2608
|
+
kind: "http";
|
|
2609
|
+
expectedStatus?: number | undefined;
|
|
2610
|
+
} | {
|
|
2611
|
+
timeoutSeconds: number;
|
|
2612
|
+
kind: "tcp";
|
|
2613
|
+
} | {
|
|
2614
|
+
kind: "process";
|
|
2615
|
+
graceSeconds?: number | undefined;
|
|
2616
|
+
};
|
|
2601
2617
|
kind: "package-watch" | "live-web" | "live-api" | "rebuild-restart" | "local-companion";
|
|
2602
2618
|
platforms: ("linux-amd64" | "linux-arm64" | "darwin-arm64" | "darwin-amd64")[];
|
|
2603
2619
|
sourceRoots: string[];
|
|
@@ -2652,22 +2668,6 @@ export declare const developmentRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2652
2668
|
timeoutSeconds?: number | undefined;
|
|
2653
2669
|
} | undefined;
|
|
2654
2670
|
};
|
|
2655
|
-
ready: {
|
|
2656
|
-
path: string;
|
|
2657
|
-
timeoutSeconds: number;
|
|
2658
|
-
kind: "marker";
|
|
2659
|
-
} | {
|
|
2660
|
-
path: string;
|
|
2661
|
-
timeoutSeconds: number;
|
|
2662
|
-
kind: "http";
|
|
2663
|
-
expectedStatus?: number | undefined;
|
|
2664
|
-
} | {
|
|
2665
|
-
timeoutSeconds: number;
|
|
2666
|
-
kind: "tcp";
|
|
2667
|
-
} | {
|
|
2668
|
-
kind: "process";
|
|
2669
|
-
graceSeconds?: number | undefined;
|
|
2670
|
-
};
|
|
2671
2671
|
statePolicy: "clone" | "stateless" | "ephemeral" | "shared-compatible";
|
|
2672
2672
|
migrationPolicy: "none" | "explicit-review" | "disposable-only";
|
|
2673
2673
|
shutdown: {
|
|
@@ -149,6 +149,20 @@ export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
|
149
149
|
visibility: "public" | "private";
|
|
150
150
|
}>;
|
|
151
151
|
steps: z.ZodArray<z.ZodEnum<["project", "repository", "template", "library", "inventory"]>, "many">;
|
|
152
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
153
|
+
step: z.ZodEnum<["project", "repository", "template", "library", "inventory"]>;
|
|
154
|
+
action: z.ZodEnum<["create", "adopt", "apply", "bind", "publish", "noop", "blocked"]>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
action: "noop" | "blocked" | "create" | "adopt" | "apply" | "bind" | "publish";
|
|
157
|
+
step: "project" | "library" | "repository" | "template" | "inventory";
|
|
158
|
+
}, {
|
|
159
|
+
action: "noop" | "blocked" | "create" | "adopt" | "apply" | "bind" | "publish";
|
|
160
|
+
step: "project" | "library" | "repository" | "template" | "inventory";
|
|
161
|
+
}>, "many">;
|
|
162
|
+
observationDigest: z.ZodString;
|
|
163
|
+
planDigest: z.ZodString;
|
|
164
|
+
ok: z.ZodBoolean;
|
|
165
|
+
blockers: z.ZodArray<z.ZodString, "many">;
|
|
152
166
|
}, "strict", z.ZodTypeAny, {
|
|
153
167
|
slug: string;
|
|
154
168
|
schemaVersion: "treeseed.platform-project-create-plan/v1";
|
|
@@ -157,6 +171,9 @@ export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
|
157
171
|
owner: string;
|
|
158
172
|
visibility: "public" | "private";
|
|
159
173
|
};
|
|
174
|
+
blockers: string[];
|
|
175
|
+
ok: boolean;
|
|
176
|
+
planDigest: string;
|
|
160
177
|
template: {
|
|
161
178
|
id: string;
|
|
162
179
|
version: string;
|
|
@@ -164,6 +181,11 @@ export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
|
164
181
|
};
|
|
165
182
|
team: string;
|
|
166
183
|
steps: ("project" | "library" | "repository" | "template" | "inventory")[];
|
|
184
|
+
actions: {
|
|
185
|
+
action: "noop" | "blocked" | "create" | "adopt" | "apply" | "bind" | "publish";
|
|
186
|
+
step: "project" | "library" | "repository" | "template" | "inventory";
|
|
187
|
+
}[];
|
|
188
|
+
observationDigest: string;
|
|
167
189
|
}, {
|
|
168
190
|
slug: string;
|
|
169
191
|
schemaVersion: "treeseed.platform-project-create-plan/v1";
|
|
@@ -172,6 +194,9 @@ export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
|
172
194
|
owner: string;
|
|
173
195
|
visibility: "public" | "private";
|
|
174
196
|
};
|
|
197
|
+
blockers: string[];
|
|
198
|
+
ok: boolean;
|
|
199
|
+
planDigest: string;
|
|
175
200
|
template: {
|
|
176
201
|
id: string;
|
|
177
202
|
version: string;
|
|
@@ -179,9 +204,15 @@ export declare const projectCreatePlanSchema: z.ZodObject<{
|
|
|
179
204
|
};
|
|
180
205
|
team: string;
|
|
181
206
|
steps: ("project" | "library" | "repository" | "template" | "inventory")[];
|
|
207
|
+
actions: {
|
|
208
|
+
action: "noop" | "blocked" | "create" | "adopt" | "apply" | "bind" | "publish";
|
|
209
|
+
step: "project" | "library" | "repository" | "template" | "inventory";
|
|
210
|
+
}[];
|
|
211
|
+
observationDigest: string;
|
|
182
212
|
}>;
|
|
183
|
-
export declare const projectCreateReceiptSchema: z.ZodObject<
|
|
184
|
-
schemaVersion: z.ZodLiteral<"treeseed.platform-project-create-
|
|
213
|
+
export declare const projectCreateReceiptSchema: z.ZodObject<{
|
|
214
|
+
schemaVersion: z.ZodLiteral<"treeseed.platform-project-create-receipt/v1">;
|
|
215
|
+
planDigest: z.ZodString;
|
|
185
216
|
slug: z.ZodString;
|
|
186
217
|
template: z.ZodObject<{
|
|
187
218
|
id: z.ZodString;
|
|
@@ -210,13 +241,20 @@ export declare const projectCreateReceiptSchema: z.ZodObject<Omit<{
|
|
|
210
241
|
owner: string;
|
|
211
242
|
visibility: "public" | "private";
|
|
212
243
|
}>;
|
|
213
|
-
steps: z.ZodArray<z.ZodEnum<["project", "repository", "template", "library", "inventory"]>, "many">;
|
|
214
|
-
}, "schemaVersion"> & {
|
|
215
|
-
schemaVersion: z.ZodLiteral<"treeseed.platform-project-create-receipt/v1">;
|
|
216
244
|
projectId: z.ZodString;
|
|
217
245
|
repositoryUrl: z.ZodString;
|
|
218
246
|
libraryBindingId: z.ZodString;
|
|
219
247
|
inventoryVersion: z.ZodNumber;
|
|
248
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
249
|
+
step: z.ZodEnum<["project", "repository", "template", "library", "inventory"]>;
|
|
250
|
+
action: z.ZodEnum<["create", "adopt", "apply", "bind", "publish", "noop", "blocked"]>;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
action: "noop" | "blocked" | "create" | "adopt" | "apply" | "bind" | "publish";
|
|
253
|
+
step: "project" | "library" | "repository" | "template" | "inventory";
|
|
254
|
+
}, {
|
|
255
|
+
action: "noop" | "blocked" | "create" | "adopt" | "apply" | "bind" | "publish";
|
|
256
|
+
step: "project" | "library" | "repository" | "template" | "inventory";
|
|
257
|
+
}>, "many">;
|
|
220
258
|
}, "strict", z.ZodTypeAny, {
|
|
221
259
|
slug: string;
|
|
222
260
|
schemaVersion: "treeseed.platform-project-create-receipt/v1";
|
|
@@ -225,13 +263,17 @@ export declare const projectCreateReceiptSchema: z.ZodObject<Omit<{
|
|
|
225
263
|
owner: string;
|
|
226
264
|
visibility: "public" | "private";
|
|
227
265
|
};
|
|
266
|
+
planDigest: string;
|
|
228
267
|
template: {
|
|
229
268
|
id: string;
|
|
230
269
|
version: string;
|
|
231
270
|
digest: string;
|
|
232
271
|
};
|
|
233
272
|
team: string;
|
|
234
|
-
|
|
273
|
+
actions: {
|
|
274
|
+
action: "noop" | "blocked" | "create" | "adopt" | "apply" | "bind" | "publish";
|
|
275
|
+
step: "project" | "library" | "repository" | "template" | "inventory";
|
|
276
|
+
}[];
|
|
235
277
|
projectId: string;
|
|
236
278
|
repositoryUrl: string;
|
|
237
279
|
libraryBindingId: string;
|
|
@@ -244,13 +286,17 @@ export declare const projectCreateReceiptSchema: z.ZodObject<Omit<{
|
|
|
244
286
|
owner: string;
|
|
245
287
|
visibility: "public" | "private";
|
|
246
288
|
};
|
|
289
|
+
planDigest: string;
|
|
247
290
|
template: {
|
|
248
291
|
id: string;
|
|
249
292
|
version: string;
|
|
250
293
|
digest: string;
|
|
251
294
|
};
|
|
252
295
|
team: string;
|
|
253
|
-
|
|
296
|
+
actions: {
|
|
297
|
+
action: "noop" | "blocked" | "create" | "adopt" | "apply" | "bind" | "publish";
|
|
298
|
+
step: "project" | "library" | "repository" | "template" | "inventory";
|
|
299
|
+
}[];
|
|
254
300
|
projectId: string;
|
|
255
301
|
repositoryUrl: string;
|
|
256
302
|
libraryBindingId: string;
|
|
@@ -27,14 +27,28 @@ const projectCreatePlanSchema = z.object({
|
|
|
27
27
|
template: z.object({ id: z.string().min(1), version: z.string().min(1), digest }),
|
|
28
28
|
team: z.string().min(1),
|
|
29
29
|
repository: z.object({ owner: z.string().min(1), name: z.string().min(1), visibility: z.enum(["public", "private"]) }),
|
|
30
|
-
steps: z.array(z.enum(["project", "repository", "template", "library", "inventory"]))
|
|
30
|
+
steps: z.array(z.enum(["project", "repository", "template", "library", "inventory"])),
|
|
31
|
+
actions: z.array(z.object({
|
|
32
|
+
step: z.enum(["project", "repository", "template", "library", "inventory"]),
|
|
33
|
+
action: z.enum(["create", "adopt", "apply", "bind", "publish", "noop", "blocked"])
|
|
34
|
+
})),
|
|
35
|
+
observationDigest: digest,
|
|
36
|
+
planDigest: digest,
|
|
37
|
+
ok: z.boolean(),
|
|
38
|
+
blockers: z.array(z.string())
|
|
31
39
|
}).strict();
|
|
32
|
-
const projectCreateReceiptSchema =
|
|
40
|
+
const projectCreateReceiptSchema = z.object({
|
|
33
41
|
schemaVersion: z.literal("treeseed.platform-project-create-receipt/v1"),
|
|
42
|
+
planDigest: digest,
|
|
43
|
+
slug: projectCreatePlanSchema.shape.slug,
|
|
44
|
+
template: projectCreatePlanSchema.shape.template,
|
|
45
|
+
team: z.string().min(1),
|
|
46
|
+
repository: projectCreatePlanSchema.shape.repository,
|
|
34
47
|
projectId: z.string().min(1),
|
|
35
48
|
repositoryUrl: z.string().url(),
|
|
36
49
|
libraryBindingId: z.string().min(1),
|
|
37
|
-
inventoryVersion: z.number().int().positive()
|
|
50
|
+
inventoryVersion: z.number().int().positive(),
|
|
51
|
+
actions: projectCreatePlanSchema.shape.actions
|
|
38
52
|
}).strict();
|
|
39
53
|
const providerRegistrationRequestSchema = z.object({
|
|
40
54
|
schemaVersion: z.literal("treeseed.provider-registration-request/v1"),
|
package/dist/platform/index.d.ts
CHANGED
package/dist/platform/index.js
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type ProjectCreatePlan, type ProjectCreateReceipt } from './contracts.js';
|
|
2
|
+
export type ProjectCreateStep = 'project' | 'repository' | 'template' | 'library' | 'inventory';
|
|
3
|
+
export type ProjectCreateState = 'missing' | 'ready' | 'conflict';
|
|
4
|
+
export interface ProjectCreateTarget {
|
|
5
|
+
slug: string;
|
|
6
|
+
template: {
|
|
7
|
+
id: string;
|
|
8
|
+
version: string;
|
|
9
|
+
digest: string;
|
|
10
|
+
};
|
|
11
|
+
team: string;
|
|
12
|
+
repository: {
|
|
13
|
+
owner: string;
|
|
14
|
+
name: string;
|
|
15
|
+
visibility: 'public' | 'private';
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface ProjectCreateObservation {
|
|
19
|
+
project: {
|
|
20
|
+
state: ProjectCreateState;
|
|
21
|
+
id?: string;
|
|
22
|
+
};
|
|
23
|
+
repository: {
|
|
24
|
+
state: ProjectCreateState;
|
|
25
|
+
url?: string;
|
|
26
|
+
};
|
|
27
|
+
template: {
|
|
28
|
+
state: ProjectCreateState;
|
|
29
|
+
digest?: string;
|
|
30
|
+
};
|
|
31
|
+
library: {
|
|
32
|
+
state: ProjectCreateState;
|
|
33
|
+
bindingId?: string;
|
|
34
|
+
};
|
|
35
|
+
inventory: {
|
|
36
|
+
state: ProjectCreateState;
|
|
37
|
+
version?: number;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface ProjectCreateAuthority {
|
|
41
|
+
observe(target: ProjectCreateTarget): Promise<ProjectCreateObservation>;
|
|
42
|
+
reconcileProject(target: ProjectCreateTarget): Promise<void>;
|
|
43
|
+
reconcileRepository(target: ProjectCreateTarget): Promise<void>;
|
|
44
|
+
applyTemplate(target: ProjectCreateTarget): Promise<void>;
|
|
45
|
+
reconcileLibrary(target: ProjectCreateTarget): Promise<void>;
|
|
46
|
+
publishInventory(target: ProjectCreateTarget): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
export declare function planPlatformProjectCreate(target: ProjectCreateTarget, authority: Pick<ProjectCreateAuthority, 'observe'>): Promise<ProjectCreatePlan>;
|
|
49
|
+
export declare function applyPlatformProjectCreate(plan: ProjectCreatePlan, authority: ProjectCreateAuthority): Promise<ProjectCreateReceipt>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { projectCreatePlanSchema, projectCreateReceiptSchema } from "./contracts.js";
|
|
3
|
+
const steps = ["project", "repository", "template", "library", "inventory"];
|
|
4
|
+
const actionFor = {
|
|
5
|
+
project: "create",
|
|
6
|
+
repository: "adopt",
|
|
7
|
+
template: "apply",
|
|
8
|
+
library: "bind",
|
|
9
|
+
inventory: "publish"
|
|
10
|
+
};
|
|
11
|
+
function canonical(value) {
|
|
12
|
+
if (Array.isArray(value)) return `[${value.map(canonical).join(",")}]`;
|
|
13
|
+
if (value && typeof value === "object") return `{${Object.entries(value).sort(([left], [right]) => left.localeCompare(right)).map(([key, item]) => `${JSON.stringify(key)}:${canonical(item)}`).join(",")}}`;
|
|
14
|
+
return JSON.stringify(value);
|
|
15
|
+
}
|
|
16
|
+
function digest(value) {
|
|
17
|
+
return `sha256:${createHash("sha256").update(canonical(value)).digest("hex")}`;
|
|
18
|
+
}
|
|
19
|
+
function blockers(observation) {
|
|
20
|
+
return steps.filter((step) => observation[step].state === "conflict").map((step) => `${step}_conflicts_with_requested_target`);
|
|
21
|
+
}
|
|
22
|
+
async function planPlatformProjectCreate(target, authority) {
|
|
23
|
+
const observation = await authority.observe(target);
|
|
24
|
+
const conflicts = blockers(observation);
|
|
25
|
+
const base = {
|
|
26
|
+
schemaVersion: "treeseed.platform-project-create-plan/v1",
|
|
27
|
+
...target,
|
|
28
|
+
steps: [...steps],
|
|
29
|
+
actions: steps.map((step) => ({ step, action: observation[step].state === "ready" ? "noop" : observation[step].state === "conflict" ? "blocked" : actionFor[step] })),
|
|
30
|
+
observationDigest: digest(observation),
|
|
31
|
+
ok: conflicts.length === 0,
|
|
32
|
+
blockers: conflicts
|
|
33
|
+
};
|
|
34
|
+
return projectCreatePlanSchema.parse({ ...base, planDigest: digest(base) });
|
|
35
|
+
}
|
|
36
|
+
function requireReady(observation) {
|
|
37
|
+
const incomplete = steps.filter((step) => observation[step].state !== "ready");
|
|
38
|
+
if (incomplete.length) throw new Error(`Project creation postconditions are incomplete: ${incomplete.join(", ")}.`);
|
|
39
|
+
if (!observation.project.id || !observation.repository.url || !observation.library.bindingId || !observation.inventory.version) {
|
|
40
|
+
throw new Error("Project creation authority returned incomplete receipt identities.");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
async function applyPlatformProjectCreate(plan, authority) {
|
|
44
|
+
const accepted = projectCreatePlanSchema.parse(plan);
|
|
45
|
+
const { planDigest: _planDigest, ...unsigned } = accepted;
|
|
46
|
+
if (digest(unsigned) !== accepted.planDigest) throw new Error("Project creation plan digest does not match its frozen inputs.");
|
|
47
|
+
if (!accepted.ok || accepted.blockers.length) throw new Error("Blocked project creation plans cannot be applied.");
|
|
48
|
+
const target = { slug: accepted.slug, template: accepted.template, team: accepted.team, repository: accepted.repository };
|
|
49
|
+
const current = await authority.observe(target);
|
|
50
|
+
if (digest(current) !== accepted.observationDigest) throw new Error("Project creation authority changed after planning; create a new plan.");
|
|
51
|
+
const operations = {
|
|
52
|
+
project: authority.reconcileProject,
|
|
53
|
+
repository: authority.reconcileRepository,
|
|
54
|
+
template: authority.applyTemplate,
|
|
55
|
+
library: authority.reconcileLibrary,
|
|
56
|
+
inventory: authority.publishInventory
|
|
57
|
+
};
|
|
58
|
+
for (const item of accepted.actions) if (item.action !== "noop") await operations[item.step].call(authority, target);
|
|
59
|
+
const final = await authority.observe(target);
|
|
60
|
+
requireReady(final);
|
|
61
|
+
return projectCreateReceiptSchema.parse({
|
|
62
|
+
schemaVersion: "treeseed.platform-project-create-receipt/v1",
|
|
63
|
+
planDigest: accepted.planDigest,
|
|
64
|
+
...target,
|
|
65
|
+
projectId: final.project.id,
|
|
66
|
+
repositoryUrl: final.repository.url,
|
|
67
|
+
libraryBindingId: final.library.bindingId,
|
|
68
|
+
inventoryVersion: final.inventory.version,
|
|
69
|
+
actions: accepted.actions
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
applyPlatformProjectCreate,
|
|
74
|
+
planPlatformProjectCreate
|
|
75
|
+
};
|