@treeseed/sdk 0.13.0-rc.67 → 0.13.0-rc.69
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/capacity-provider/contracts/environment-profiles.d.ts +255 -0
- package/dist/capacity-provider/contracts/environment-profiles.js +71 -0
- package/dist/capacity-provider/contracts/index.d.ts +1 -0
- package/dist/capacity-provider/contracts/index.js +1 -0
- package/dist/development/schemas.d.ts +192 -192
- package/dist/operator-contracts/canonical-command-tree.js +4 -1
- package/dist/operator-contracts/catalog/provider-environment-commands.d.ts +4 -0
- package/dist/operator-contracts/catalog/provider-environment-commands.js +69 -0
- package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +41 -0
- package/dist/operator-contracts/catalog/provider-environment-operations.js +61 -0
- package/dist/operator-contracts/control-plane-operations.d.ts +39 -0
- package/dist/operator-contracts/control-plane-operations.js +4 -0
- 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
|
@@ -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: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hostProviderEnvironmentBranch, PROVIDER_ENVIRONMENT_COMMAND_BINDINGS, providerEnvironmentBranches } from "./catalog/provider-environment-commands.js";
|
|
1
2
|
const unavailable = (reason = "This capability is not enabled until its control-plane operation is accepted.") => ({
|
|
2
3
|
kind: "unavailable",
|
|
3
4
|
code: "standards_migration_not_enabled",
|
|
@@ -10,6 +11,7 @@ const operation = (operationId, input = []) => ({ kind: "operation", operationId
|
|
|
10
11
|
const page = () => [field("query", "status", "option"), field("query", "limit", "option", "limit", false, "integer"), field("query", "cursor", "option")];
|
|
11
12
|
const aiNode = () => field("path", "nodeId", "context", "node", true);
|
|
12
13
|
const operationBindings = {
|
|
14
|
+
...PROVIDER_ENVIRONMENT_COMMAND_BINDINGS,
|
|
13
15
|
"auth login": protocol("protocol.oauth.device.login"),
|
|
14
16
|
"auth logout": protocol("protocol.oauth.revoke"),
|
|
15
17
|
"auth status": operation("accounts.current.show"),
|
|
@@ -393,7 +395,7 @@ const commandTree = {
|
|
|
393
395
|
branch("config", [leaf("show"), leaf("plan", "read", "file"), leaf("apply", "mutation", "file", "authority"), configurationAdopt()]),
|
|
394
396
|
leaf("topology"),
|
|
395
397
|
leaf("connections"),
|
|
396
|
-
branch("provider", [leaf("status"), branch("credentials", [leaf("list"), leaf("status"), hostProviderCredentialInitialize()])]),
|
|
398
|
+
branch("provider", [leaf("status"), branch("credentials", [leaf("list"), leaf("status"), hostProviderCredentialInitialize()]), hostProviderEnvironmentBranch()]),
|
|
397
399
|
branch("storage", [
|
|
398
400
|
leaf("status"),
|
|
399
401
|
addOptions(leaf("connect", "mutation", "backend", "credential"), [{ name: "--account-id", description: "Optional Cloudflare account ID when the bootstrap authority reaches multiple accounts.", type: "string" }]),
|
|
@@ -428,6 +430,7 @@ const commandTree = {
|
|
|
428
430
|
leaf("diagnose", "read", "provider"),
|
|
429
431
|
leaf("connect", "mutation", void 0, "credential"),
|
|
430
432
|
leaf("disconnect", "mutation", "connection", "destructive"),
|
|
433
|
+
...providerEnvironmentBranches(),
|
|
431
434
|
branch("requests", [leaf("list"), leaf("show", "read", "request"), leaf("approve", "mutation", "request", "authority"), leaf("reject", "mutation", "request", "authority")]),
|
|
432
435
|
branch("credentials", [leaf("status", "read", "connection"), leaf("rotate", "mutation", "connection", "credential"), leaf("revoke", "mutation", "connection", "irreversible")]),
|
|
433
436
|
branch("offers", [leaf("show", "read", "connection"), leaf("validate", "read", "file"), leaf("plan", "read", "file"), leaf("apply", "mutation", "file", "authority")])
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CommandExecutionBinding, CommandNodeDescriptor } from '../command-tree.js';
|
|
2
|
+
export declare const PROVIDER_ENVIRONMENT_COMMAND_BINDINGS: Record<string, CommandExecutionBinding>;
|
|
3
|
+
export declare function hostProviderEnvironmentBranch(): CommandNodeDescriptor;
|
|
4
|
+
export declare function providerEnvironmentBranches(): CommandNodeDescriptor[];
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const plan = { name: "--plan", description: "Return the exact proposed outcome without mutation.", type: "boolean" };
|
|
2
|
+
const local = (handlerId) => ({ kind: "local", handlerId });
|
|
3
|
+
const operation = (operationId, input) => ({ kind: "operation", operationId, input });
|
|
4
|
+
const path = (field, source, name, required = true) => ({ target: "path", field, source, name, required, transform: "identity" });
|
|
5
|
+
const PROVIDER_ENVIRONMENT_COMMAND_BINDINGS = {
|
|
6
|
+
"host provider environment list": local("local.host.provider.environment.list"),
|
|
7
|
+
"host provider environment show": local("local.host.provider.environment.show"),
|
|
8
|
+
"host provider environment status": local("local.host.provider.environment.status"),
|
|
9
|
+
"host provider environment set": local("local.host.provider.environment.set"),
|
|
10
|
+
"host provider environment import": local("local.host.provider.environment.import"),
|
|
11
|
+
"host provider environment unset": local("local.host.provider.environment.unset"),
|
|
12
|
+
"host provider environment rotate": local("local.host.provider.environment.rotate"),
|
|
13
|
+
"host provider environment verify": local("local.host.provider.environment.verify"),
|
|
14
|
+
"providers registration code status": operation("providers.registration.code.status", [path("teamId", "context", "team")]),
|
|
15
|
+
"providers registration code reveal": operation("providers.registration.code.reveal", [path("teamId", "context", "team")]),
|
|
16
|
+
"providers registration code rotate": operation("providers.registration.code.rotate", [path("teamId", "context", "team")]),
|
|
17
|
+
"providers environments list": operation("providers.environment.profiles.list", [path("teamId", "context", "team"), path("providerId", "argument", "provider"), { target: "query", field: "status", source: "option", name: "status", transform: "identity" }, { target: "query", field: "limit", source: "option", name: "limit", transform: "integer" }, { target: "query", field: "cursor", source: "option", name: "cursor", transform: "identity" }]),
|
|
18
|
+
"providers environments show": operation("providers.environment.profiles.show", [path("teamId", "context", "team"), path("providerId", "argument", "provider"), path("profileId", "argument", "profile")]),
|
|
19
|
+
"providers environments grant": operation("providers.environment.grants.put", [path("teamId", "context", "team"), path("assignmentId", "argument", "assignment"), { target: "body", field: "file", source: "option", name: "input", required: true, transform: "identity" }]),
|
|
20
|
+
"providers environments revoke": operation("providers.environment.grants.revoke", [path("teamId", "context", "team"), path("assignmentId", "argument", "assignment")])
|
|
21
|
+
};
|
|
22
|
+
const profileArguments = [{ name: "profile", description: "Provider-local environment profile.", required: true }];
|
|
23
|
+
const valueArguments = [...profileArguments, { name: "name", description: "Environment variable name.", required: true }];
|
|
24
|
+
const localMutation = (segment, confirmation, description) => ({
|
|
25
|
+
segment,
|
|
26
|
+
description,
|
|
27
|
+
kind: "mutation",
|
|
28
|
+
arguments: valueArguments,
|
|
29
|
+
options: [plan, ...segment === "unset" ? [] : [{ name: "--stdin", description: "Read the replacement value from standard input instead of the hidden prompt.", type: "boolean" }]],
|
|
30
|
+
authorization: { capability: "host.provider.environment.write", confirmation },
|
|
31
|
+
resultSchemaId: "treeseed.provider-environment-profile/v1",
|
|
32
|
+
execution: local(`local.host.provider.environment.${segment}`)
|
|
33
|
+
});
|
|
34
|
+
function hostProviderEnvironmentBranch() {
|
|
35
|
+
const read = (segment) => ({ segment, description: `${segment} a provider-local environment profile.`, kind: "read", arguments: profileArguments, resultSchemaId: "treeseed.provider-environment-profile/v1", execution: local(`local.host.provider.environment.${segment}`) });
|
|
36
|
+
return { nodeType: "branch", segment: "environment", description: "Provider-local environment profile operations.", children: [
|
|
37
|
+
{ nodeType: "leaf", segment: "list", description: "List provider-local environment profiles without values.", kind: "read", resultSchemaId: "treeseed.provider-environment-profile-page/v1", execution: local("local.host.provider.environment.list") },
|
|
38
|
+
{ nodeType: "leaf", ...read("show") },
|
|
39
|
+
{ nodeType: "leaf", ...read("status") },
|
|
40
|
+
{ nodeType: "leaf", ...localMutation("set", "credential", "Set one provider-local environment value through a hidden prompt or standard input.") },
|
|
41
|
+
{
|
|
42
|
+
nodeType: "leaf",
|
|
43
|
+
segment: "import",
|
|
44
|
+
description: "Import provider-local environment values from an env file.",
|
|
45
|
+
kind: "mutation",
|
|
46
|
+
arguments: profileArguments,
|
|
47
|
+
options: [plan, { name: "--env-file", description: "Local env file whose values remain under provider custody.", type: "string", required: true }],
|
|
48
|
+
authorization: { capability: "host.provider.environment.write", confirmation: "credential" },
|
|
49
|
+
resultSchemaId: "treeseed.provider-environment-profile/v1",
|
|
50
|
+
execution: local("local.host.provider.environment.import")
|
|
51
|
+
},
|
|
52
|
+
{ nodeType: "leaf", ...localMutation("unset", "destructive", "Remove one provider-local environment value.") },
|
|
53
|
+
{ nodeType: "leaf", ...localMutation("rotate", "credential", "Replace one provider-local environment value and advance its generation.") },
|
|
54
|
+
{ nodeType: "leaf", ...read("verify") }
|
|
55
|
+
] };
|
|
56
|
+
}
|
|
57
|
+
function providerEnvironmentBranches() {
|
|
58
|
+
const remote = { kind: "unavailable", code: "standards_migration_not_enabled", reason: "Execution binding is attached from the canonical operation map." };
|
|
59
|
+
const leaf = (segment, kind, arguments_, confirmation = "never", options = kind === "mutation" ? [plan] : void 0) => ({ nodeType: "leaf", segment, description: `${segment} provider environment authority.`, kind, arguments: arguments_, options, authorization: kind === "mutation" ? { capability: `command.${segment}`, confirmation } : void 0, resultSchemaId: `treeseed.command.${segment}/v1`, execution: remote });
|
|
60
|
+
return [
|
|
61
|
+
{ nodeType: "branch", segment: "registration", description: "Team provider registration operations.", children: [{ nodeType: "branch", segment: "code", description: "Team provider registration-code operations.", children: [leaf("status", "read", void 0), leaf("reveal", "mutation", void 0, "credential"), leaf("rotate", "mutation", void 0, "credential")] }] },
|
|
62
|
+
{ nodeType: "branch", segment: "environments", description: "Provider environment descriptor and grant operations.", children: [leaf("list", "read", [{ name: "provider", description: "Provider identity.", required: true }]), leaf("show", "read", [{ name: "provider", description: "Provider identity.", required: true }, { name: "profile", description: "Profile identity.", required: true }]), leaf("grant", "mutation", [{ name: "assignment", description: "Assignment identity.", required: true }], "authority", [plan, { name: "--input", description: "Digest-bound environment grant document.", type: "string", required: true }]), leaf("revoke", "mutation", [{ name: "assignment", description: "Assignment identity.", required: true }], "destructive")] }
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
PROVIDER_ENVIRONMENT_COMMAND_BINDINGS,
|
|
67
|
+
hostProviderEnvironmentBranch,
|
|
68
|
+
providerEnvironmentBranches
|
|
69
|
+
};
|