@geekmidas/cli 10.0.0-alpha.61 → 10.0.0-alpha.63

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.
Files changed (202) hide show
  1. package/README.md +2 -0
  2. package/dist/{HostingerProvider-DI_Pr2VE.mjs → HostingerProvider-DBBwpDjn.mjs} +2 -2
  3. package/dist/{HostingerProvider-DI_Pr2VE.mjs.map → HostingerProvider-DBBwpDjn.mjs.map} +1 -1
  4. package/dist/{HostingerProvider-CgDaD8VR.cjs → HostingerProvider-mJ7YruxH.cjs} +2 -2
  5. package/dist/{HostingerProvider-CgDaD8VR.cjs.map → HostingerProvider-mJ7YruxH.cjs.map} +1 -1
  6. package/dist/{LegacyStateStore-JbBVFp_2.cjs → LegacyStateStore-CP7SZwTP.cjs} +2 -2
  7. package/dist/{LegacyStateStore-JbBVFp_2.cjs.map → LegacyStateStore-CP7SZwTP.cjs.map} +1 -1
  8. package/dist/{LegacyStateStore-C7vFAxbu.mjs → LegacyStateStore-Q3GmKOdw.mjs} +2 -2
  9. package/dist/{LegacyStateStore-C7vFAxbu.mjs.map → LegacyStateStore-Q3GmKOdw.mjs.map} +1 -1
  10. package/dist/{LocalStateStore-DfUwQsL8.mjs → LocalStateStore-BGIXcrvX.mjs} +2 -2
  11. package/dist/{LocalStateStore-DfUwQsL8.mjs.map → LocalStateStore-BGIXcrvX.mjs.map} +1 -1
  12. package/dist/{LocalStateStore-DHj_-CQB.cjs → LocalStateStore-sS8mvLeq.cjs} +2 -2
  13. package/dist/{LocalStateStore-DHj_-CQB.cjs.map → LocalStateStore-sS8mvLeq.cjs.map} +1 -1
  14. package/dist/{OpenApiTsGenerator-BSrgw7B0.cjs → OpenApiTsGenerator-CjHWFRDd.cjs} +2 -2
  15. package/dist/{OpenApiTsGenerator-BSrgw7B0.cjs.map → OpenApiTsGenerator-CjHWFRDd.cjs.map} +1 -1
  16. package/dist/{OpenApiTsGenerator-q5B0z8Xg.mjs → OpenApiTsGenerator-CnAwhGxi.mjs} +2 -2
  17. package/dist/{OpenApiTsGenerator-q5B0z8Xg.mjs.map → OpenApiTsGenerator-CnAwhGxi.mjs.map} +1 -1
  18. package/dist/{S3StateStore-xqnpUrzy.cjs → S3StateStore-6jqITH2F.cjs} +2 -2
  19. package/dist/{S3StateStore-xqnpUrzy.cjs.map → S3StateStore-6jqITH2F.cjs.map} +1 -1
  20. package/dist/{S3StateStore-Dq6hHtzY.mjs → S3StateStore-D7l_lWJ3.mjs} +2 -2
  21. package/dist/{S3StateStore-Dq6hHtzY.mjs.map → S3StateStore-D7l_lWJ3.mjs.map} +1 -1
  22. package/dist/{SSMStateStore-5dBRwVlJ.cjs → SSMStateStore-B__F7IJa.cjs} +2 -2
  23. package/dist/{SSMStateStore-5dBRwVlJ.cjs.map → SSMStateStore-B__F7IJa.cjs.map} +1 -1
  24. package/dist/{SSMStateStore-SUmvAbLi.mjs → SSMStateStore-CAQDVpoc.mjs} +2 -2
  25. package/dist/{SSMStateStore-SUmvAbLi.mjs.map → SSMStateStore-CAQDVpoc.mjs.map} +1 -1
  26. package/dist/{bundler-DXATpO1T.cjs → bundler-DLfOn0ls.cjs} +3 -3
  27. package/dist/{bundler-DXATpO1T.cjs.map → bundler-DLfOn0ls.cjs.map} +1 -1
  28. package/dist/{bundler-B5VsKW-_.mjs → bundler-DyWI41Iy.mjs} +2 -2
  29. package/dist/{bundler-B5VsKW-_.mjs.map → bundler-DyWI41Iy.mjs.map} +1 -1
  30. package/dist/{cli-DQdrVkj2.cjs → cli-D-ZM-X2s.cjs} +12 -16
  31. package/dist/cli-D-ZM-X2s.cjs.map +1 -0
  32. package/dist/{cli-DEA_J3Sa.mjs → cli-PkVF28LM.mjs} +10 -14
  33. package/dist/cli-PkVF28LM.mjs.map +1 -0
  34. package/dist/{config-DXnkCEq0.cjs → config-BEJYKd4s.cjs} +132 -18
  35. package/dist/config-BEJYKd4s.cjs.map +1 -0
  36. package/dist/config-C2BUosLm.d.mts +256 -0
  37. package/dist/config-C2BUosLm.d.mts.map +1 -0
  38. package/dist/config-CemHVcIr.d.cts +256 -0
  39. package/dist/config-CemHVcIr.d.cts.map +1 -0
  40. package/dist/{config-C5-EEdmr.mjs → config-LKKCVCnC.mjs} +109 -19
  41. package/dist/config-LKKCVCnC.mjs.map +1 -0
  42. package/dist/config.cjs +6 -2
  43. package/dist/config.d.cts +4 -211
  44. package/dist/config.d.mts +4 -211
  45. package/dist/config.mjs +3 -3
  46. package/dist/define-CHBIEc5j.mjs +94 -0
  47. package/dist/define-CHBIEc5j.mjs.map +1 -0
  48. package/dist/define-Cv_QvDrg.cjs +141 -0
  49. package/dist/define-Cv_QvDrg.cjs.map +1 -0
  50. package/dist/deploy/public.cjs +174 -13
  51. package/dist/deploy/public.cjs.map +1 -0
  52. package/dist/deploy/public.d.cts +200 -292
  53. package/dist/deploy/public.d.cts.map +1 -1
  54. package/dist/deploy/public.d.mts +200 -292
  55. package/dist/deploy/public.d.mts.map +1 -1
  56. package/dist/deploy/public.mjs +136 -3
  57. package/dist/deploy/public.mjs.map +1 -0
  58. package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
  59. package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
  60. package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
  61. package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
  62. package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
  63. package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
  64. package/dist/{deploy-BbJdgQ2b.cjs → deploy-ABBI0lf1.cjs} +169 -561
  65. package/dist/deploy-ABBI0lf1.cjs.map +1 -0
  66. package/dist/deploy-BiMrP9i7.cjs +140 -0
  67. package/dist/deploy-BiMrP9i7.cjs.map +1 -0
  68. package/dist/{deploy-BJcLmVTc.mjs → deploy-CG8bfFij.mjs} +152 -532
  69. package/dist/deploy-CG8bfFij.mjs.map +1 -0
  70. package/dist/deploy-CGW-QY9D.mjs +135 -0
  71. package/dist/deploy-CGW-QY9D.mjs.map +1 -0
  72. package/dist/discover-B6yPpvRV.d.mts +99 -0
  73. package/dist/discover-B6yPpvRV.d.mts.map +1 -0
  74. package/dist/discover-B_IkPukx.d.cts +99 -0
  75. package/dist/discover-B_IkPukx.d.cts.map +1 -0
  76. package/dist/discover-BaT6bpnA.mjs +614 -0
  77. package/dist/discover-BaT6bpnA.mjs.map +1 -0
  78. package/dist/discover-C_6COHEv.cjs +729 -0
  79. package/dist/discover-C_6COHEv.cjs.map +1 -0
  80. package/dist/dokploy-CwdmlyQL.mjs +32 -0
  81. package/dist/dokploy-CwdmlyQL.mjs.map +1 -0
  82. package/dist/dokploy-QJxMhxdf.cjs +32 -0
  83. package/dist/dokploy-QJxMhxdf.cjs.map +1 -0
  84. package/dist/{encryption-DaA9gRXr.mjs → encryption-CbQG_ayW.mjs} +4 -4
  85. package/dist/{encryption-DaA9gRXr.mjs.map → encryption-CbQG_ayW.mjs.map} +1 -1
  86. package/dist/{encryption-ojzUo7-z.cjs → encryption-DXw3jj0c.cjs} +4 -4
  87. package/dist/{encryption-ojzUo7-z.cjs.map → encryption-DXw3jj0c.cjs.map} +1 -1
  88. package/dist/fakes-C9RiT6XG.mjs.map +1 -1
  89. package/dist/fakes-zW-jNAbQ.cjs.map +1 -1
  90. package/dist/{github-Cq57poPj.cjs → github-BH_mETav.cjs} +3 -3
  91. package/dist/{github-Cq57poPj.cjs.map → github-BH_mETav.cjs.map} +1 -1
  92. package/dist/{github-DmCj2u95.mjs → github-ciwbIwVa.mjs} +3 -3
  93. package/dist/{github-DmCj2u95.mjs.map → github-ciwbIwVa.mjs.map} +1 -1
  94. package/dist/{index-UiWCaGzU.d.cts → index-BtXDZQuF.d.cts} +2 -2
  95. package/dist/{index-Da1-oa9W.d.mts.map → index-BtXDZQuF.d.cts.map} +1 -1
  96. package/dist/{index-Da1-oa9W.d.mts → index-DrKzpHl-.d.mts} +2 -2
  97. package/dist/{index-UiWCaGzU.d.cts.map → index-DrKzpHl-.d.mts.map} +1 -1
  98. package/dist/index.cjs +60 -52
  99. package/dist/index.cjs.map +1 -1
  100. package/dist/index.mjs +57 -49
  101. package/dist/index.mjs.map +1 -1
  102. package/dist/{migrate-BScRpCEx.cjs → migrate-6oa9y_f2.cjs} +5 -5
  103. package/dist/{migrate-BScRpCEx.cjs.map → migrate-6oa9y_f2.cjs.map} +1 -1
  104. package/dist/{migrate-5_J5JySj.mjs → migrate-ImBKTBcW.mjs} +5 -5
  105. package/dist/{migrate-5_J5JySj.mjs.map → migrate-ImBKTBcW.mjs.map} +1 -1
  106. package/dist/openapi.cjs +3 -3
  107. package/dist/openapi.d.cts +1 -1
  108. package/dist/openapi.d.mts +1 -1
  109. package/dist/openapi.mjs +3 -3
  110. package/dist/{ready-XlNx-Gbo.cjs → ready-BiG0rt4h.cjs} +3 -3
  111. package/dist/{ready-XlNx-Gbo.cjs.map → ready-BiG0rt4h.cjs.map} +1 -1
  112. package/dist/{ready-DQIy21W5.mjs → ready-Bpdnn2ON.mjs} +3 -3
  113. package/dist/{ready-DQIy21W5.mjs.map → ready-Bpdnn2ON.mjs.map} +1 -1
  114. package/dist/reconcile/public.cjs +1 -1
  115. package/dist/reconcile/public.d.cts +4 -77
  116. package/dist/reconcile/public.d.cts.map +1 -1
  117. package/dist/reconcile/public.d.mts +4 -77
  118. package/dist/reconcile/public.d.mts.map +1 -1
  119. package/dist/reconcile/public.mjs +1 -1
  120. package/dist/resolve-B1T0hUaR.mjs +170 -0
  121. package/dist/resolve-B1T0hUaR.mjs.map +1 -0
  122. package/dist/resolve-xytBTtG4.cjs +217 -0
  123. package/dist/resolve-xytBTtG4.cjs.map +1 -0
  124. package/dist/runtime-CMwtq0AL.cjs +163 -0
  125. package/dist/runtime-CMwtq0AL.cjs.map +1 -0
  126. package/dist/runtime-CXPlkZzs.d.mts +90 -0
  127. package/dist/runtime-CXPlkZzs.d.mts.map +1 -0
  128. package/dist/runtime-DbakJS8u.mjs +134 -0
  129. package/dist/runtime-DbakJS8u.mjs.map +1 -0
  130. package/dist/runtime-Dn_n-29S.d.cts +90 -0
  131. package/dist/runtime-Dn_n-29S.d.cts.map +1 -0
  132. package/dist/sandbox/config-worker.cjs +43 -0
  133. package/dist/sandbox/config-worker.cjs.map +1 -0
  134. package/dist/sandbox/config-worker.d.cts +1 -0
  135. package/dist/sandbox/config-worker.d.mts +1 -0
  136. package/dist/sandbox/config-worker.mjs +44 -0
  137. package/dist/sandbox/config-worker.mjs.map +1 -0
  138. package/dist/sandbox/discover-worker.cjs +44 -0
  139. package/dist/sandbox/discover-worker.cjs.map +1 -0
  140. package/dist/sandbox/discover-worker.d.cts +1 -0
  141. package/dist/sandbox/discover-worker.d.mts +1 -0
  142. package/dist/sandbox/discover-worker.mjs +45 -0
  143. package/dist/sandbox/discover-worker.mjs.map +1 -0
  144. package/dist/sandbox-M8UnLhXE.d.cts +126 -0
  145. package/dist/sandbox-M8UnLhXE.d.cts.map +1 -0
  146. package/dist/sandbox-M8UnLhXE.d.mts +126 -0
  147. package/dist/sandbox-M8UnLhXE.d.mts.map +1 -0
  148. package/dist/{workspace-Bp1xVaOz.mjs → schemas-Ckm_aBnF.cjs} +264 -969
  149. package/dist/schemas-Ckm_aBnF.cjs.map +1 -0
  150. package/dist/{workspace-B64Xk1Mb.cjs → schemas-D2LCF689.mjs} +195 -1155
  151. package/dist/schemas-D2LCF689.mjs.map +1 -0
  152. package/dist/{sniffer-CQmJnNJM.cjs → sniffer-D_SYc_pO.cjs} +379 -214
  153. package/dist/sniffer-D_SYc_pO.cjs.map +1 -0
  154. package/dist/{sniffer-bdleks5l.mjs → sniffer-aO_-s5vq.mjs} +346 -211
  155. package/dist/sniffer-aO_-s5vq.mjs.map +1 -0
  156. package/dist/target/public.cjs +15 -0
  157. package/dist/target/public.d.cts +28 -0
  158. package/dist/target/public.d.cts.map +1 -0
  159. package/dist/target/public.d.mts +28 -0
  160. package/dist/target/public.d.mts.map +1 -0
  161. package/dist/target/public.mjs +4 -0
  162. package/dist/terminal-D0f1u0LG.cjs +576 -0
  163. package/dist/terminal-D0f1u0LG.cjs.map +1 -0
  164. package/dist/terminal-gMxAo9Dj.mjs +517 -0
  165. package/dist/terminal-gMxAo9Dj.mjs.map +1 -0
  166. package/dist/{types-efNLu9xu.d.cts → types-CfLKGfC_.d.mts} +624 -34
  167. package/dist/types-CfLKGfC_.d.mts.map +1 -0
  168. package/dist/{types-Bp1mVxG0.d.mts → types-DIA7Li-J.d.cts} +626 -34
  169. package/dist/types-DIA7Li-J.d.cts.map +1 -0
  170. package/dist/vitest.cjs +2 -2
  171. package/dist/vitest.mjs +2 -2
  172. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  173. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  174. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  175. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  176. package/dist/workspace/index.cjs +1 -1
  177. package/dist/workspace/index.d.cts +3 -3
  178. package/dist/workspace/index.d.mts +3 -3
  179. package/dist/workspace/index.mjs +1 -1
  180. package/dist/workspace-Dh7rr7l4.mjs +1024 -0
  181. package/dist/workspace-Dh7rr7l4.mjs.map +1 -0
  182. package/dist/workspace-Kl4NG9IH.cjs +1196 -0
  183. package/dist/workspace-Kl4NG9IH.cjs.map +1 -0
  184. package/package.json +23 -13
  185. package/dist/cli-DEA_J3Sa.mjs.map +0 -1
  186. package/dist/cli-DQdrVkj2.cjs.map +0 -1
  187. package/dist/config-C5-EEdmr.mjs.map +0 -1
  188. package/dist/config-DXnkCEq0.cjs.map +0 -1
  189. package/dist/config.d.cts.map +0 -1
  190. package/dist/config.d.mts.map +0 -1
  191. package/dist/deploy-BJcLmVTc.mjs.map +0 -1
  192. package/dist/deploy-BbJdgQ2b.cjs.map +0 -1
  193. package/dist/discover-Bc-4eA_p.cjs +0 -299
  194. package/dist/discover-Bc-4eA_p.cjs.map +0 -1
  195. package/dist/discover-FrYvzkeC.mjs +0 -262
  196. package/dist/discover-FrYvzkeC.mjs.map +0 -1
  197. package/dist/sniffer-CQmJnNJM.cjs.map +0 -1
  198. package/dist/sniffer-bdleks5l.mjs.map +0 -1
  199. package/dist/types-Bp1mVxG0.d.mts.map +0 -1
  200. package/dist/types-efNLu9xu.d.cts.map +0 -1
  201. package/dist/workspace-B64Xk1Mb.cjs.map +0 -1
  202. package/dist/workspace-Bp1xVaOz.mjs.map +0 -1
@@ -1,53 +1,10 @@
1
- import { B as StateVersionConflict, z as StateLocked } from "../types-efNLu9xu.cjs";
1
+ import { $ as DeployEventError, Q as DeployEvent, _t as StateVersionConflict, at as DeployResult, bt as deployIdentity, ct as CredentialKinds, dt as MissingCredential, et as DeployEventType, ft as StoredCredentialsOptions, ht as StateLocked, it as AppDeployResult, lt as CredentialProvider, mt as storedCredentials, nt as ResourceChange, ot as Credential, pt as chainCredentials, rt as ResourceVia, st as CredentialKind, tt as DeployPhase, ut as CredentialRequest, yt as DeployIdentity, z as AnyDeployTarget } from "../types-DIA7Li-J.cjs";
2
+ import { a as SandboxOutput, c as confineCwd, i as SandboxExecOptions, n as Sandbox, o as SandboxResult, r as SandboxCwdEscape, s as SecretNameInvalid, t as SECRETS_DIR_ENV } from "../sandbox-M8UnLhXE.cjs";
3
+ import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-CemHVcIr.cjs";
4
+ import { n as ConstructsNotSerializable, t as ConstructDiscoveryFailed } from "../discover-B_IkPukx.cjs";
5
+ import { a as TargetRuntimeMismatch, c as DeployTargetNotYetSupported, i as TargetPackageInvalid, l as UnknownDeployTarget, n as InvalidTargetOptions, o as ProviderRemoved, r as TargetEntryInvalid, s as TargetPackageNotFound, t as TargetRuntimeUndeclared } from "../runtime-Dn_n-29S.cjs";
2
6
  import { ConstructManifest } from "@geekmidas/manifest";
3
- //#region src/deploy/identity.d.ts
4
- /**
5
- * Who a deploy is, on a target it shares with other workspaces.
6
- *
7
- * A Dokploy server is one flat namespace of projects, images and Docker
8
- * service names. Deploys used to identify everything they made by the
9
- * workspace name alone, so two workspaces called `shop` — or `Shop` and
10
- * `shop` — deploying to one server landed in the same project, pushed over
11
- * each other's images and redeployed each other's applications. A
12
- * `DeployIdentity` is what a deploy names and claims its resources by instead.
13
- */
14
- interface DeployIdentity {
15
- /**
16
- * Whose deploy this is — an organisation, a team, a repository. Two
17
- * workspaces with the same name are told apart by it. Defaults to the
18
- * kebab-cased workspace name; set `deploy.namespace` to choose one.
19
- */
20
- readonly namespace: string;
21
- /** The workspace name as the target spells it: lowercase, `[a-z0-9-]`. */
22
- readonly project: string;
23
- readonly stage: string;
24
- /**
25
- * `<namespace>/<project>`: what a Dokploy project is claimed by.
26
- *
27
- * The stage is not part of it because one Dokploy project holds every stage
28
- * of a workspace, each as an environment — the key has to be the same from
29
- * every stage that deploys into it.
30
- */
31
- readonly key: string;
32
- /**
33
- * The prefix every name on the target carries: the project alone in the
34
- * default namespace, `<namespace>-<project>` in any other.
35
- *
36
- * The default adds nothing so that a workspace that never set a namespace
37
- * keeps the names it was already deployed under — a Postgres is found by
38
- * its name, and a new name would be a new, empty database.
39
- */
40
- readonly scope: string;
41
- }
42
- /** What an identity is derived from: a workspace's name and namespace. */
43
- interface IdentitySource {
44
- name: string;
45
- deploy?: {
46
- namespace?: string;
47
- };
48
- }
49
- export declare function deployIdentity(workspace: IdentitySource, stage: string): DeployIdentity;
50
- //#endregion
7
+ import "@geekmidas/envkit/sniffer";
51
8
  //#region src/home.d.ts
52
9
  /**
53
10
  * Where the CLI keeps what belongs to a person rather than a project: stage
@@ -62,259 +19,175 @@ export declare const GKM_HOME_ENV = "GKM_HOME";
62
19
  /** The CLI's home: `GKM_HOME` if set, else `~/.gkm`. */
63
20
  export declare function gkmHome(env?: NodeJS.ProcessEnv): string;
64
21
  //#endregion
65
- //#region src/deploy/credentials.d.ts
22
+ //#region src/run.d.ts
23
+ /** The program ran and exited unsuccessfully; its own output said why. */
24
+ export declare class CommandFailed extends Error {
25
+ readonly command: string;
26
+ readonly args: readonly string[];
27
+ readonly exitCode: number | null;
28
+ readonly signal: NodeJS.Signals | null;
29
+ constructor(command: string, args: readonly string[], exitCode: number | null, signal: NodeJS.Signals | null);
30
+ }
31
+ /** The program ran past its timeout and was killed. */
32
+ export declare class CommandTimedOut extends Error {
33
+ readonly command: string;
34
+ readonly args: readonly string[];
35
+ readonly timeoutMs: number;
36
+ constructor(command: string, args: readonly string[], timeoutMs: number);
37
+ }
38
+ //#endregion
39
+ //#region src/sandbox/env.d.ts
66
40
  /**
67
- * How a deploy gets the credentials it acts with.
41
+ * What of the host's environment a local sandbox passes on.
68
42
  *
69
- * `deploy()` never prompts and never reads a terminal: it asks a
70
- * `CredentialProvider` and, when the provider has nothing, stops with
71
- * `MissingCredential` naming what it needed and how to supply it. Whether to
72
- * ask a person, read a vault or fail is the caller's decision — `gkm deploy`
73
- * prompts at a terminal and stores what was typed; a CI job sets the
74
- * environment; a host passes its own provider.
43
+ * An allowlist, not a denylist: a credential's variable has any name its
44
+ * owner chose (`DOKPLOY_TOKEN`, `AWS_SECRET_ACCESS_KEY`, `MY_VAULT_TOKEN`), so
45
+ * the only safe default is to name what a program needs to *run* and pass
46
+ * nothing else.
75
47
  */
76
- /** What each kind of credential is asked for with, and what it is. */
77
- interface CredentialKinds {
78
- /** The Dokploy API a stage deploys through. */
79
- dokploy: {
80
- /** `deploy.dokploy.endpoint`, when the config names one. */
81
- request: {
82
- endpoint?: string;
83
- };
84
- value: {
85
- endpoint: string;
86
- token: string;
87
- };
88
- };
48
+ /**
49
+ * Variables a command needs to find programs, write temp files, print in the
50
+ * user's locale and reach the network through the host's proxy — and nothing
51
+ * that authenticates as anyone.
52
+ *
53
+ * Deliberately left out:
54
+ * - `NODE_OPTIONS`: it can `--require` or `--import` code into every node
55
+ * process, and CI often holds `--import tsx` there. A step that needs a
56
+ * loader passes its own.
57
+ * - `NODE_AUTH_TOKEN`, `NPM_TOKEN`, `npm_config_*`: registry tokens
58
+ * (`actions/setup-node` writes `NODE_AUTH_TOKEN`), which is why there is no
59
+ * `NODE_*` wildcard.
60
+ * - `AWS_*`, `DOCKER_*`, `DOKPLOY_*`, `GITHUB_TOKEN`, `TURBO_TOKEN`, `GKM_*`:
61
+ * credentials, or where the deploy keeps them.
62
+ * - `SHELL`, `EDITOR` and the rest of a login session: nothing here starts a
63
+ * shell.
64
+ *
65
+ * Proxies are passed: behind one, nothing installs or builds without it. A
66
+ * proxy URL with a password in it reaches the command too — a host that keeps
67
+ * one there and builds code it does not trust should pass a sandbox of its
68
+ * own.
69
+ */
70
+ export declare const SANDBOX_ENV_ALLOWLIST: readonly (string | RegExp)[];
71
+ /**
72
+ * The allowlisted part of `source`, plus each of `extra` the host chose to
73
+ * pass on by name.
74
+ */
75
+ export declare function allowlistedEnv(source?: NodeJS.ProcessEnv, extra?: readonly string[]): Record<string, string>;
76
+ //#endregion
77
+ //#region src/docker/templates.d.ts
78
+ type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun';
79
+ //#endregion
80
+ //#region src/sandbox/install.d.ts
81
+ /** Long enough for a cold install of a large monorepo. */
82
+ export declare const INSTALL_TIMEOUT_MS: number;
83
+ interface InstallOptions {
84
+ /** The directory to install in. Defaults to the sandbox's root. */
85
+ cwd?: string;
86
+ /** Defaults to the one the lockfile above `cwd` names. */
87
+ packageManager?: PackageManager;
89
88
  /**
90
- * A container registry login, for Dokploy to pull with. Asked for only when
91
- * Dokploy has no registry for `deploy.dokploy.registry` and one has to be
92
- * created.
89
+ * Skip every lifecycle script — dependencies' and the project's own —
90
+ * except those of {@link allowScripts}. Defaults to false: scripts run as
91
+ * a plain install runs them, under the package manager's own policy —
92
+ * npm 12 and pnpm 10 skip dependencies' scripts nobody approved.
93
93
  */
94
- registry: {
95
- /** `deploy.dokploy.registry`. */
96
- request: {
97
- url: string;
98
- };
99
- value: {
100
- username: string;
101
- password: string;
102
- };
103
- };
104
- }
105
- type CredentialKind = keyof CredentialKinds;
106
- /** What a deploy asks a provider for. */
107
- type CredentialRequest<K extends CredentialKind = CredentialKind> = { [P in K]: {
108
- kind: P;
109
- } & CredentialKinds[P]['request']; }[K];
110
- /** What a provider answers with. */
111
- type Credential<K extends CredentialKind> = CredentialKinds[K]['value'];
112
- interface CredentialProvider {
94
+ ignoreScripts?: boolean;
113
95
  /**
114
- * The credential `request` asks for, or `undefined` when this provider has
115
- * none — the deploy then raises {@link MissingCredential}.
96
+ * With `ignoreScripts`, the packages whose scripts still run: rebuilt by
97
+ * name once the install is done.
116
98
  */
117
- get<K extends CredentialKind>(request: CredentialRequest<K>, options?: {
118
- signal?: AbortSignal;
119
- }): Promise<Credential<K> | undefined>;
99
+ allowScripts?: readonly string[];
100
+ /** Variables the install needs beyond the sandbox's own. */
101
+ env?: Readonly<Record<string, string>>;
102
+ /** Defaults to {@link INSTALL_TIMEOUT_MS}, for each command. */
103
+ timeoutMs?: number;
104
+ /** Where the package manager's output goes. Defaults to `inherit`. */
105
+ output?: SandboxOutput;
106
+ signal?: AbortSignal;
120
107
  }
121
- /** A deploy needed a credential, and its provider had none. */
122
- export declare class MissingCredential extends Error {
123
- readonly kind: CredentialKind;
124
- /** What it was for: the Dokploy endpoint or the registry URL. */
125
- readonly target: string | undefined;
126
- /** How to supply it. */
127
- readonly howToProvide: string;
128
- constructor(kind: CredentialKind,
129
- /** What it was for: the Dokploy endpoint or the registry URL. */
130
- target: string | undefined,
131
- /** How to supply it. */
132
- howToProvide?: string);
108
+ /** A name in `allowScripts` that is not a package name. */
109
+ export declare class InstallAllowlistNameInvalid extends Error {
110
+ readonly packageName: string;
111
+ constructor(packageName: string);
133
112
  }
134
- /** Whatever was asked for, from the first provider that has it. */
135
- export declare function chainCredentials(...providers: CredentialProvider[]): CredentialProvider;
136
- interface StoredCredentialsOptions {
137
- /** Where to read the variables from. Defaults to `process.env`. */
138
- env?: NodeJS.ProcessEnv;
139
- /**
140
- * The CLI's home, whose `credentials.json` holds stored logins. Defaults
141
- * to `GKM_HOME`, else `~/.gkm`.
142
- */
143
- home?: string;
113
+ /** The package manager has no way to run only some packages' scripts. */
114
+ export declare class InstallScriptsAllowlistUnsupported extends Error {
115
+ readonly packageManager: string;
116
+ readonly allowScripts: readonly string[];
117
+ constructor(packageManager: string, allowScripts: readonly string[]);
144
118
  }
145
119
  /**
146
- * Credentials from the environment, then from what `gkm login` stored. What
147
- * `deploy()` uses when it is handed no provider.
120
+ * Install the project's dependencies in `sandbox`.
148
121
  *
149
- * - Dokploy: `DOKPLOY_API_TOKEN` / `DOKPLOY_ENDPOINT`, each falling back to
150
- * the stored login, and the endpoint finally to `deploy.dokploy.endpoint`.
151
- * Each half is read on its own: a token is a secret and belongs in the
152
- * environment, an endpoint is configuration and belongs in the config.
153
- * - Registry: `DOCKER_REGISTRY_USERNAME` / `DOCKER_REGISTRY_PASSWORD`.
122
+ * ```ts
123
+ * // A checkout nobody has reviewed: no scripts but esbuild's.
124
+ * await installDependencies(sandbox, {
125
+ * ignoreScripts: true,
126
+ * allowScripts: ['esbuild'],
127
+ * });
128
+ * ```
129
+ *
130
+ * Resolves with each command's result, in order — with its output when
131
+ * `output` is `capture`.
132
+ *
133
+ * @throws {CommandFailed} when the package manager exits unsuccessfully.
134
+ * @throws {InstallScriptsAllowlistUnsupported} for an allowlist the package
135
+ * manager cannot honour, before anything is installed.
154
136
  */
155
- export declare function storedCredentials(options?: StoredCredentialsOptions): CredentialProvider;
137
+ export declare function installDependencies(sandbox: Sandbox, options?: InstallOptions): Promise<SandboxResult[]>;
156
138
  //#endregion
157
- //#region src/deploy/types.d.ts
158
- /** Result for a single app deployment in workspace mode */
159
- interface AppDeployResult {
160
- /** App name */
161
- appName: string;
162
- /** App type */
163
- type: 'backend' | 'web' | 'mobile';
164
- /** Whether deployment succeeded */
165
- success: boolean;
166
- /** Dokploy application ID */
167
- applicationId?: string;
168
- /** Docker image reference */
169
- imageRef?: string;
170
- /** The registry's digest for the image, `sha256:…`, once pushed */
171
- digest?: string;
172
- /** Deployment URL */
173
- url?: string;
174
- /** Error message if failed */
175
- error?: string;
176
- }
177
- /** Result from workspace deployment */
178
- interface WorkspaceDeployResult {
179
- /** Results for each app */
180
- apps: AppDeployResult[];
181
- /** Dokploy project ID */
182
- projectId: string;
183
- /** Total number of successful deployments */
184
- successCount: number;
185
- /** Total number of failed deployments */
186
- failedCount: number;
187
- }
188
- /**
189
- * What a deploy did — or, for a dry run, would do. Plain JSON, so it can be
190
- * written out as is (`gkm deploy --json` ends with it).
191
- */
192
- interface DeployResult extends WorkspaceDeployResult {
193
- stage: string;
194
- /** `<namespace>/<project>`. */
195
- identity: string;
196
- /** The image tag every app was built with. */
197
- tag: string;
198
- /** Whether this was a dry run: nothing was created, built or pushed. */
199
- dryRun: boolean;
200
- /** Dokploy's environment for the stage; empty when a dry run would create it. */
201
- environmentId: string;
202
- /** Apps left out, and why — a mobile app, another deploy target. */
203
- skipped: {
204
- app: string;
205
- reason: string;
206
- }[];
207
- /** Each deployed app's public URL. */
208
- urls: Record<string, string>;
139
+ //#region src/sandbox/local.d.ts
140
+ interface LocalSandboxOptions {
141
+ /** The project. Every command runs at or below it. */
142
+ root: string;
209
143
  /**
210
- * Every resource the run touched, in order: what it applied, or for a dry
211
- * run, what it would.
144
+ * `HOME` for every command. Defaults to the host's, because a build
145
+ * reuses the caches kept there — the pnpm store, corepack's package
146
+ * managers, turbo's cache — and a cold one re-downloads all of them.
147
+ * Point it at an empty directory to keep `~/.aws`, `~/.npmrc` and
148
+ * `~/.docker` out of reach of an SDK's default lookup — though, sharing
149
+ * the host's filesystem, a command that goes looking still finds them.
212
150
  */
213
- changes: ResourceChange[];
151
+ home?: string;
152
+ /**
153
+ * Host variables to pass on beyond the allowlist, by name — a remote
154
+ * cache's `TURBO_TOKEN`, for a build the host trusts with it.
155
+ */
156
+ passEnv?: readonly string[];
157
+ /** Where the allowlisted variables are read from. Defaults to `process.env`. */
158
+ hostEnv?: NodeJS.ProcessEnv;
214
159
  }
215
- //#endregion
216
- //#region src/deploy/events.d.ts
217
160
  /**
218
- * The stretch of a deploy an event belongs to.
161
+ * A child process on this machine, as this user, with an allowlisted
162
+ * environment.
219
163
  *
220
- * - `validate`: the config, the stage, the apps, the lock, the stage's secrets
221
- * and what each app reads from its environment
222
- * - `plan`: a dry run's lookups — what would be created and what reused
223
- * - `provision`: the Dokploy project, environment and registry, and the
224
- * declared constructs
225
- * - `release`: each app's image built, pushed and deployed
226
- * - `verify`: DNS records and Dokploy's domain validation
164
+ * What it withholds from the command: the host's environment beyond
165
+ * {@link SANDBOX_ENV_ALLOWLIST}, a shell, a working directory outside the
166
+ * project, and any time past the timeout. What it does not: the host's
167
+ * filesystem, which the command can read and write as the user running the
168
+ * deploy. So it is not `isolating`, and it is the default for projects the
169
+ * host already trusts — the developer's own, a team's own CI. Code nobody
170
+ * vetted belongs in a sandbox that is.
171
+ *
172
+ * A timed-out command is sent SIGTERM, then SIGKILL; processes it started
173
+ * itself are its to stop.
227
174
  */
228
- type DeployPhase = 'validate' | 'plan' | 'provision' | 'release' | 'verify';
229
- /** An error, as an event carries it. */
230
- interface DeployEventError {
231
- /** The error's class name — `MissingCredential`, `StateLocked`. */
232
- name: string;
233
- message: string;
175
+ export declare class LocalSandbox implements Sandbox {
176
+ readonly root: string;
177
+ readonly isolating = false;
178
+ readonly env: Readonly<Record<string, string>>;
179
+ constructor(options: LocalSandboxOptions);
180
+ exec(command: string, args: readonly string[], options: SandboxExecOptions): Promise<SandboxResult>;
234
181
  }
235
- /**
236
- * How a resource came to be used:
237
- * - `recorded`: the id the stage's state holds still resolves
238
- * - `resumed`: a run that died after creating it is picked up
239
- * - `found`: it existed and was looked up
240
- * - `created`: this run created it
241
- */
242
- type ResourceVia = 'recorded' | 'resumed' | 'found' | 'created';
243
- /** One resource a deploy touches, planned or applied. */
244
- interface ResourceChange {
245
- /** `<type>:<name>`, unique within the stage — `application:api`. */
246
- key: string;
247
- /** `project`, `environment`, `registry`, `application`, `domain`, `image`, or a construct's kind. */
248
- resourceType: string;
249
- /**
250
- * For a plan: whether the run would create it, reuse what exists, or
251
- * ensure it (look it up, and create it if missing). For an applied change:
252
- * what was done.
253
- */
254
- action: 'create' | 'reuse' | 'ensure' | 'build';
255
- /** The target's id, once there is one. */
256
- id?: string;
182
+ //#endregion
183
+ //#region src/sandbox/worker.d.ts
184
+ /** A worker ended without the answer it exists to give. */
185
+ export declare class SandboxWorkerFailed extends Error {
186
+ readonly step: string;
187
+ readonly exitCode: number | null;
188
+ readonly stderr: string;
189
+ constructor(step: string, exitCode: number | null, stderr: string);
257
190
  }
258
- type DeployEvent = {
259
- type: 'deploy.started';
260
- stage: string;
261
- /** `<namespace>/<project>`. */
262
- identity: string;
263
- tag: string;
264
- /** The apps this run deploys, in order. */
265
- apps: string[];
266
- dryRun: boolean;
267
- } | {
268
- type: 'phase.started';
269
- phase: DeployPhase;
270
- } | {
271
- type: 'phase.finished';
272
- phase: DeployPhase;
273
- } |
274
- /**
275
- * A progress line, exactly as `gkm deploy` prints it — leading newline and
276
- * indentation included, so a terminal renderer prints `message` as is.
277
- */
278
- {
279
- type: 'log';
280
- level: 'info' | 'warn' | 'error';
281
- message: string;
282
- } | {
283
- type: 'app.skipped';
284
- app: string;
285
- reason: string;
286
- } | ({
287
- type: 'resource.planned';
288
- } & ResourceChange) | ({
289
- type: 'resource.applied';
290
- via: ResourceVia;
291
- } & ResourceChange & {
292
- id: string;
293
- }) | {
294
- type: 'artifact.built';
295
- app: string;
296
- imageRef: string;
297
- /** The registry's digest, `sha256:…`, once pushed. */
298
- digest?: string;
299
- } | {
300
- type: 'app.deployed';
301
- app: string;
302
- applicationId: string;
303
- imageRef: string;
304
- url: string;
305
- } | {
306
- type: 'app.failed';
307
- app: string;
308
- error: DeployEventError;
309
- } | {
310
- type: 'deploy.finished';
311
- result: DeployResult;
312
- } | {
313
- type: 'deploy.failed';
314
- error: DeployEventError;
315
- };
316
- /** Every `type` a deploy event can have. */
317
- type DeployEventType = DeployEvent['type'];
318
191
  //#endregion
319
192
  //#region src/deploy/deploy.d.ts
320
193
  /**
@@ -334,6 +207,17 @@ interface DeployInput {
334
207
  cwd: string;
335
208
  /** The stage to deploy — one of the config's deployed stages. */
336
209
  stage: string;
210
+ /**
211
+ * The target to deploy through, by name. Defaults to `deploy.default`,
212
+ * else `dokploy`.
213
+ */
214
+ target?: string;
215
+ /**
216
+ * The host's own targets, by name. Consulted before the built-ins and the
217
+ * config's `deploy.targets`, so a host can deploy through an
218
+ * implementation of its own — `{ dokploy: myDokploy }` included.
219
+ */
220
+ targets?: Record<string, AnyDeployTarget>;
337
221
  /** The image tag. Defaults to `<stage>-<timestamp>`. */
338
222
  tag?: string;
339
223
  /** Deploy only these apps (in dependency order). Defaults to all. */
@@ -368,6 +252,18 @@ interface DeployInput {
368
252
  * default), its stderr, or nowhere.
369
253
  */
370
254
  childOutput?: 'inherit' | 'stderr' | 'ignore';
255
+ /**
256
+ * Where the project's own code runs: loading `gkm.config.ts`, discovering
257
+ * its constructs, sniffing each app's environment. Defaults to a
258
+ * `LocalSandbox` on the project — a child process here with an
259
+ * allowlisted environment, for a project the host trusts.
260
+ *
261
+ * A host deploying repositories it does not trust passes one that
262
+ * isolates — a container per build — and the config then reaches the
263
+ * deploy only as data. Credentials never enter a sandbox: they go from
264
+ * `credentials` to the steps that provision, push and release.
265
+ */
266
+ sandbox?: Sandbox;
371
267
  }
372
268
  /** A deploy in progress. */
373
269
  interface DeployRun extends AsyncIterable<DeployEvent> {
@@ -397,17 +293,6 @@ interface DeployRun extends AsyncIterable<DeployEvent> {
397
293
  export declare function deploy(input: DeployInput): DeployRun;
398
294
  //#endregion
399
295
  //#region src/deploy/index.d.ts
400
- /** Apps were asked for by name that the workspace does not have. */
401
- export declare class UnknownDeployApps extends Error {
402
- readonly apps: readonly string[];
403
- readonly available: readonly string[];
404
- constructor(apps: readonly string[], available: readonly string[]);
405
- }
406
- /** Every app asked for deploys somewhere other than Dokploy. */
407
- export declare class NoDeployableApps extends Error {
408
- readonly stage: string;
409
- constructor(stage: string);
410
- }
411
296
  /** A backend failed, so the run stopped before deploying anything after it. */
412
297
  export declare class BackendDeployFailed extends Error {
413
298
  readonly app: string;
@@ -421,6 +306,29 @@ export declare class MissingEnvVars extends Error {
421
306
  constructor(app: string, missing: readonly string[], stage: string);
422
307
  }
423
308
  //#endregion
309
+ //#region src/deploy/orchestrate.d.ts
310
+ /** Apps were asked for by name that the workspace does not have. */
311
+ export declare class UnknownDeployApps extends Error {
312
+ readonly apps: readonly string[];
313
+ readonly available: readonly string[];
314
+ constructor(apps: readonly string[], available: readonly string[]);
315
+ }
316
+ /** Every app asked for deploys through some other target. */
317
+ export declare class NoDeployableApps extends Error {
318
+ readonly stage: string;
319
+ readonly target: string;
320
+ constructor(stage: string, target: string);
321
+ }
322
+ /** A failed rollback, after the failure that called for it. */
323
+ export declare class RollbackFailed extends Error {
324
+ readonly target: string;
325
+ /** What failed first, and was being rolled back. */
326
+ readonly failure: unknown;
327
+ constructor(target: string,
328
+ /** What failed first, and was being rolled back. */
329
+ failure: unknown, cause: unknown);
330
+ }
331
+ //#endregion
424
332
  //#region src/deploy/ownership.d.ts
425
333
  /**
426
334
  * A Dokploy project with the name this deploy would use exists, and nothing
@@ -455,5 +363,5 @@ export declare class RegistryAmbiguous extends Error {
455
363
  constructor(registry: string, registryIds: readonly string[]);
456
364
  }
457
365
  //#endregion
458
- export { type AppDeployResult, type Credential, type CredentialKind, type CredentialKinds, type CredentialProvider, type CredentialRequest, type DeployEvent, type DeployEventError, type DeployEventType, type DeployIdentity, type DeployInput, type DeployLogger, type DeployPhase, type DeployResult, type DeployRun, type ResourceChange, type ResourceVia, StateLocked, StateVersionConflict, type StoredCredentialsOptions };
366
+ export { type AppDeployResult, ConfigLoadFailed, ConfigObjectNotSerializable, ConstructDiscoveryFailed, ConstructsNotSerializable, type Credential, type CredentialKind, type CredentialKinds, type CredentialProvider, type CredentialRequest, type DeployEvent, type DeployEventError, type DeployEventType, type DeployIdentity, type DeployInput, type DeployLogger, type DeployPhase, type DeployResult, type DeployRun, DeployTargetNotYetSupported, type InstallOptions, InvalidTargetOptions, type LocalSandboxOptions, MissingCredential, ProviderRemoved, type ResourceChange, type ResourceVia, SECRETS_DIR_ENV, type Sandbox, SandboxCwdEscape, type SandboxExecOptions, type SandboxOutput, type SandboxResult, SecretNameInvalid, StateLocked, StateVersionConflict, type StoredCredentialsOptions, TargetEntryInvalid, TargetPackageInvalid, TargetPackageNotFound, TargetRuntimeMismatch, TargetRuntimeUndeclared, UnknownDeployTarget, chainCredentials, confineCwd, deployIdentity, storedCredentials };
459
367
  //# sourceMappingURL=public.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.cts","names":[],"sources":["../../src/deploy/identity.ts","../../src/home.ts","../../src/deploy/credentials.ts","../../src/deploy/types.ts","../../src/deploy/events.ts","../../src/deploy/deploy.ts","../../src/deploy/index.ts","../../src/deploy/ownership.ts","../../src/deploy/registry.ts"],"mappings":";;;;;;;;;;;;;UAaiB;;;;;;WAMP;;WAEA;WACA;;;;;;;;WAQA;;;;;;;;;WASA;;;UA0CO;EAChB;EACA;IAAW;;;wBAGI,eACf,WAAW,gBACX,gBACE;;;;;;;;;;;;qBC5EU;;wBAGG,QAAQ,MAAK,OAAO;;;;;;;;;;;;;;UCFnB;;EAEhB;;IAEC;MAAW;;IACX;MAAS;MAAkB;;;;;;;;EAO5B;;IAEC;MAAW;;IACX;MAAS;MAAkB;;;;KAIjB,uBAAuB;;KAGvB,kBAAkB,UAAU,iBAAiB,qBACvD,KAAK;EAAM,MAAM;IAAM,gBAAgB,iBACvC;;KAGU,WAAW,UAAU,kBAAkB,gBAAgB;UAElD;;;;;EAKhB,IAAI,UAAU,gBACb,SAAS,kBAAkB,IAC3B;IAAY,SAAS;MACnB,QAAQ,WAAW;;;qBAYV,0BAA0B;WAE5B,MAAM;;WAEN;;WAEA;EALV,YACU,MAAM,gBAEN;;EAAA,4BAEA;;EAAA;;;wBAYK,oBACZ,WAAW,uBACZ;UAYc;;EAEhB,MAAM,OAAO;;;;;EAKb;;;;;;;;;;;;wBAae,kBACf,UAAS,2BACP;;;;UCzEc;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;UAIgB;;EAEhB,MAAM;;EAEN;;EAEA;;EAEA;;;;;;UAOgB,qBAAqB;EACrC;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;IAAW;IAAa;;;EAExB,MAAM;;;;;EAKN,SAAS;;;;;;;;;;;;;;;KCtEE;;UAQK;;EAEhB;EACA;;;;;;;;;KAUW;;UAGK;;EAEhB;;EAEA;;;;;;EAMA;;EAEA;;KAGW;EAET;EACA;;EAEA;EACA;;EAEA;EACA;;EAEE;EAAuB,OAAO;;EAC9B;EAAwB,OAAO;;;;;;;EAK/B;EAAa;EAAkC;;EAC/C;EAAqB;EAAa;;EACjC;IAA6B;EAC7B;EAA0B,KAAK;IAAgB;EACjD;;EAGD;EACA;EACA;;EAEA;;EAGA;EACA;EACA;EACA;EACA;;EAEE;EAAoB;EAAa,OAAO;;EACxC;EAAyB,QAAQ;;EACjC;EAAuB,OAAO;;;KAGvB,kBAAkB;;;;;;;UChFb;EAChB,KAAK;EACL,KAAK;EACL,OAAO;;UAGS;;;;;EAKhB;;EAEA;;EAEA;;EAEA;;;;;;EAMA;;;;;;EAMA,cAAc;;EAEd,SAAS;;;;;;EAMT,SAAS;;;;;EAKT;;;;;EAKA;;;UAIgB,kBAAkB,cAAc;;;;;;WAMvC,QAAQ,QAAQ;;;;;;;;;;;;;;;;;;wBA2EV,OAAO,OAAO,cAAc;;;;qBCwX/B,0BAA0B;WAE5B;WACA;EAFV,YACU,yBACA;;;qBAWE,yBAAyB;WAChB;EAArB,YAAqB;;;qBAST,4BAA4B;WAE9B;EADV,YACU,aACT;;;qBAWW,uBAAuB;WAEzB;WACA;WACA;EAHV,YACU,aACA,4BACA;;;;;;;;qBCtiBE,wBAAwB;WAE1B;WACA;WACA;;WAEA;EALV,YACU,qBACA,mBACA,kBAEA;;EAAA;;;;;qBChBE,8BAA8B;WACrB;EAArB,YAAqB;;;qBAUT,yBAAyB;WAChB;EAArB,YAAqB;;;qBAUT,0BAA0B;WAE5B;WACA;EAFV,YACU,kBACA"}
1
+ {"version":3,"file":"public.d.cts","names":[],"sources":["../../src/home.ts","../../src/run.ts","../../src/sandbox/env.ts","../../src/docker/templates.ts","../../src/sandbox/install.ts","../../src/sandbox/local.ts","../../src/sandbox/worker.ts","../../src/deploy/deploy.ts","../../src/deploy/index.ts","../../src/deploy/orchestrate.ts","../../src/deploy/ownership.ts","../../src/deploy/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAaa;;wBAGG,QAAQ,MAAK,OAAO;;;;qBCuBvB,sBAAsB;WAExB;WACA;WACA;WACA,QAAQ,OAAO;EAJzB,YACU,iBACA,yBACA,yBACA,QAAQ,OAAO;;;qBAUb,wBAAwB;WAE1B;WACA;WACA;EAHV,YACU,iBACA,yBACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBC3BE,0CAA0C;;;;;wBAyDvC,eACf,SAAQ,OAAO,YACf,4BACE;;;KCvFS;;;;qBCeC;UAEI;;EAEhB;;EAEA,iBAAiB;;;;;;;EAOjB;;;;;EAKA;;EAEA,MAAM,SAAS;;EAEf;;EAEA,SAAS;EACT,SAAS;;;qBAIG,oCAAoC;WAC3B;EAArB,YAAqB;;;qBAWT,2CAA2C;WAE7C;WACA;EAFV,YACU,wBACA;;;;;;;;;;;;;;;;;;;;wBAqJW,oBACrB,SAAS,SACT,UAAS,iBACP,QAAQ;;;UCpMM;;EAEhB;;;;;;;;;EASA;;;;;EAKA;;EAEA,UAAU,OAAO;;;;;;;;;;;;;;;;;qBA0BL,wBAAwB;WAC3B;WACA;WACA,KAAK,SAAS;EAEvB,YAAY,SAAS;EAUf,KACL,iBACA,yBACA,SAAS,qBACP,QAAQ;;;;;qBCpBC,4BAA4B;WAE9B;WACA;WACA;EAHV,YACU,cACA,yBACA;;;;;;;;UCnCM;EAChB,KAAK;EACL,KAAK;EACL,OAAO;;UAGS;;;;;EAKhB;;EAEA;;;;;EAKA;;;;;;EAMA,UAAU,eAAe;;EAEzB;;EAEA;;;;;;EAMA;;;;;;EAMA,cAAc;;EAEd,SAAS;;;;;;EAMT,SAAS;;;;;EAKT;;;;;EAKA;;;;;;;;;;;;EAYA,UAAU;;;UAIM,kBAAkB,cAAc;;;;;;WAMvC,QAAQ,QAAQ;;;;;;;;;;;;;;;;;;wBAqEV,OAAO,OAAO,cAAc;;;;qBCuU/B,4BAA4B;WAE9B;EADV,YACU,aACT;;;qBAWW,uBAAuB;WAEzB;WACA;WACA;EAHV,YACU,aACA,4BACA;;;;;qBCvcE,0BAA0B;WAE5B;WACA;EAFV,YACU,yBACA;;;qBAWE,yBAAyB;WAE3B;WACA;EAFV,YACU,eACA;;;qBAUE,uBAAuB;WAEzB;;WAEA;EAHV,YACU,gBAEA;;EAAA,kBACT;;;;;;;;qBC1EW,wBAAwB;WAE1B;WACA;WACA;;WAEA;EALV,YACU,qBACA,mBACA,kBAEA;;EAAA;;;;;qBChBE,8BAA8B;WACrB;EAArB,YAAqB;;;qBAUT,yBAAyB;WAChB;EAArB,YAAqB;;;qBAUT,0BAA0B;WAE5B;WACA;EAFV,YACU,kBACA"}