@geekmidas/cli 10.0.0-alpha.64 → 10.0.0-alpha.66
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/README.md +15 -1
- package/dist/{HostingerProvider-Bx2lHHvu.cjs → HostingerProvider-BznqRC2S.cjs} +5 -5
- package/dist/HostingerProvider-BznqRC2S.cjs.map +1 -0
- package/dist/{HostingerProvider-Cd4aS5Kj.mjs → HostingerProvider-CY_VpVud.mjs} +4 -4
- package/dist/HostingerProvider-CY_VpVud.mjs.map +1 -0
- package/dist/{LegacyStateStore-C2abV49N.cjs → LegacyStateStore-BFcTT2QL.cjs} +2 -2
- package/dist/{LegacyStateStore-C2abV49N.cjs.map → LegacyStateStore-BFcTT2QL.cjs.map} +1 -1
- package/dist/{LegacyStateStore-DIgkGaUP.mjs → LegacyStateStore-CFheFo62.mjs} +2 -2
- package/dist/{LegacyStateStore-DIgkGaUP.mjs.map → LegacyStateStore-CFheFo62.mjs.map} +1 -1
- package/dist/{LocalStateStore-DiJqKyPy.cjs → LocalStateStore-BVUexSvu.cjs} +2 -2
- package/dist/{LocalStateStore-DiJqKyPy.cjs.map → LocalStateStore-BVUexSvu.cjs.map} +1 -1
- package/dist/{LocalStateStore-Cy1ZBW7U.mjs → LocalStateStore-Bm3x9oOg.mjs} +2 -2
- package/dist/{LocalStateStore-Cy1ZBW7U.mjs.map → LocalStateStore-Bm3x9oOg.mjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-BWuDRHe9.cjs → OpenApiTsGenerator-B2zrdyP4.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-BWuDRHe9.cjs.map → OpenApiTsGenerator-B2zrdyP4.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-C6v-IeHt.mjs → OpenApiTsGenerator-BmUAcR7d.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-C6v-IeHt.mjs.map → OpenApiTsGenerator-BmUAcR7d.mjs.map} +1 -1
- package/dist/{Route53Provider-DVILBsvV.cjs → Route53Provider-Bllus2NR.cjs} +2 -2
- package/dist/Route53Provider-Bllus2NR.cjs.map +1 -0
- package/dist/{Route53Provider-Cvj40A8I.mjs → Route53Provider-QXxjkZO1.mjs} +2 -2
- package/dist/Route53Provider-QXxjkZO1.mjs.map +1 -0
- package/dist/{S3StateStore-D3x6ivBL.mjs → S3StateStore-BFHuctWM.mjs} +2 -2
- package/dist/{S3StateStore-D3x6ivBL.mjs.map → S3StateStore-BFHuctWM.mjs.map} +1 -1
- package/dist/{S3StateStore-Ds0V1Lgm.cjs → S3StateStore-CoXBhILd.cjs} +2 -2
- package/dist/{S3StateStore-Ds0V1Lgm.cjs.map → S3StateStore-CoXBhILd.cjs.map} +1 -1
- package/dist/{SSMStateStore-CLipvx47.cjs → SSMStateStore-BqCA9TP2.cjs} +2 -2
- package/dist/{SSMStateStore-CLipvx47.cjs.map → SSMStateStore-BqCA9TP2.cjs.map} +1 -1
- package/dist/{SSMStateStore-DfF174xQ.mjs → SSMStateStore-C1kvHScY.mjs} +2 -2
- package/dist/{SSMStateStore-DfF174xQ.mjs.map → SSMStateStore-C1kvHScY.mjs.map} +1 -1
- package/dist/{backup-provisioner-DIVCbfee.mjs → backup-provisioner-C8DnCmxK.mjs} +2 -2
- package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
- package/dist/{backup-provisioner-BmhIO_Yr.cjs → backup-provisioner-oDEsPj02.cjs} +2 -2
- package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
- package/dist/{bundler-DYgm9xsd.mjs → bundler-Dvaiud0h.mjs} +4 -4
- package/dist/{bundler-DYgm9xsd.mjs.map → bundler-Dvaiud0h.mjs.map} +1 -1
- package/dist/{bundler-C8uJf324.cjs → bundler-orRqUJNZ.cjs} +4 -4
- package/dist/{bundler-C8uJf324.cjs.map → bundler-orRqUJNZ.cjs.map} +1 -1
- package/dist/{cli-Bogz-zEj.mjs → cli-CfHm0AO7.mjs} +7 -6
- package/dist/cli-CfHm0AO7.mjs.map +1 -0
- package/dist/{cli-D3jofJ6j.cjs → cli-D1JkkOwg.cjs} +8 -7
- package/dist/cli-D1JkkOwg.cjs.map +1 -0
- package/dist/compose-CNQL8BnO.mjs +1398 -0
- package/dist/compose-CNQL8BnO.mjs.map +1 -0
- package/dist/compose-jrLy7KGO.cjs +1427 -0
- package/dist/compose-jrLy7KGO.cjs.map +1 -0
- package/dist/{config-Be-4_I6H.d.cts → config-4XFxX1al.d.cts} +3 -3
- package/dist/{config-Be-4_I6H.d.cts.map → config-4XFxX1al.d.cts.map} +1 -1
- package/dist/{config-DqNRiQOp.d.mts → config-UtKzhpFb.d.mts} +3 -3
- package/dist/{config-DqNRiQOp.d.mts.map → config-UtKzhpFb.d.mts.map} +1 -1
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +3 -3
- package/dist/{credentials-B70vmLcm.cjs → credentials-Bzbg23n8.cjs} +176 -3
- package/dist/credentials-Bzbg23n8.cjs.map +1 -0
- package/dist/{credentials-s0wMeZBU.mjs → credentials-Dq1MnWQf.mjs} +128 -3
- package/dist/credentials-Dq1MnWQf.mjs.map +1 -0
- package/dist/databases-C2p5LGAp.cjs +419 -0
- package/dist/databases-C2p5LGAp.cjs.map +1 -0
- package/dist/databases-hUHTuwhx.mjs +346 -0
- package/dist/databases-hUHTuwhx.mjs.map +1 -0
- package/dist/{define-CYs0PEfZ.mjs → define-DR8xGYfL.mjs} +5 -1
- package/dist/define-DR8xGYfL.mjs.map +1 -0
- package/dist/{define-zUsP72ym.cjs → define-DzRz8FgH.cjs} +5 -1
- package/dist/define-DzRz8FgH.cjs.map +1 -0
- package/dist/deploy/public.cjs +35 -26
- package/dist/deploy/public.cjs.map +1 -1
- package/dist/deploy/public.d.cts +140 -20
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +140 -20
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +13 -13
- package/dist/{terminal-Bdv--jhY.cjs → deploy-B7aJi_Ah.cjs} +146 -116
- package/dist/deploy-B7aJi_Ah.cjs.map +1 -0
- package/dist/{terminal-D7Ntz6WE.mjs → deploy-DWn7YfIc.mjs} +137 -89
- package/dist/deploy-DWn7YfIc.mjs.map +1 -0
- package/dist/{discover-LMrqsWSU.mjs → discover-BFoJWKGD.mjs} +4 -2
- package/dist/discover-BFoJWKGD.mjs.map +1 -0
- package/dist/{discover-DHdECueV.cjs → discover-OEfZ9OkA.cjs} +4 -2
- package/dist/discover-OEfZ9OkA.cjs.map +1 -0
- package/dist/dokploy-B4LcYG1E.cjs +38 -0
- package/dist/dokploy-B4LcYG1E.cjs.map +1 -0
- package/dist/dokploy-DalwLML5.mjs +38 -0
- package/dist/dokploy-DalwLML5.mjs.map +1 -0
- package/dist/{encryption-C9X98u2F.cjs → encryption-3KlGS1sl.cjs} +6 -8
- package/dist/{encryption-C9X98u2F.cjs.map → encryption-3KlGS1sl.cjs.map} +1 -1
- package/dist/{encryption-CKHjMpCr.mjs → encryption-CPfENwWO.mjs} +3 -5
- package/dist/{encryption-CKHjMpCr.mjs.map → encryption-CPfENwWO.mjs.map} +1 -1
- package/dist/{deploy-ZRXIPp1c.mjs → engine-CunvOG3s.mjs} +2116 -1855
- package/dist/engine-CunvOG3s.mjs.map +1 -0
- package/dist/{deploy-55rJkdKz.cjs → engine-DR6KurWX.cjs} +2172 -1869
- package/dist/engine-DR6KurWX.cjs.map +1 -0
- package/dist/{github-Dd3tMa1u.cjs → github-BJ5gh9bw.cjs} +7 -7
- package/dist/{github-Dd3tMa1u.cjs.map → github-BJ5gh9bw.cjs.map} +1 -1
- package/dist/{github-D-byNI7T.mjs → github-MXA9v7Ge.mjs} +3 -3
- package/dist/{github-D-byNI7T.mjs.map → github-MXA9v7Ge.mjs.map} +1 -1
- package/dist/{index-CfE9Y885.d.cts → index-CyApaHVe.d.cts} +16 -3
- package/dist/index-CyApaHVe.d.cts.map +1 -0
- package/dist/{index-CJ2qsSpp.d.mts → index-DD1FfUHh.d.mts} +16 -3
- package/dist/index-DD1FfUHh.d.mts.map +1 -0
- package/dist/index.cjs +465 -1691
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +405 -1619
- package/dist/index.mjs.map +1 -1
- package/dist/{local-C7wnrcYK.cjs → local-BdH4XN0E.cjs} +1 -178
- package/dist/local-BdH4XN0E.cjs.map +1 -0
- package/dist/{local-Cd8ZYQG3.mjs → local-CWR4Y_kW.mjs} +3 -126
- package/dist/local-CWR4Y_kW.mjs.map +1 -0
- package/dist/{migrate-B4gngTLe.mjs → migrate-BJBcm4sG.mjs} +7 -6
- package/dist/{migrate-B4gngTLe.mjs.map → migrate-BJBcm4sG.mjs.map} +1 -1
- package/dist/{migrate-tx9-P9uz.cjs → migrate-CF4J4GQS.cjs} +20 -19
- package/dist/{migrate-tx9-P9uz.cjs.map → migrate-CF4J4GQS.cjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/provider-B3Sv_a74.cjs +173 -0
- package/dist/provider-B3Sv_a74.cjs.map +1 -0
- package/dist/provider-C9_-45d5.cjs +56 -0
- package/dist/provider-C9_-45d5.cjs.map +1 -0
- package/dist/provider-D7rQzzzf.mjs +138 -0
- package/dist/provider-D7rQzzzf.mjs.map +1 -0
- package/dist/provider-q4lsYzYG.mjs +45 -0
- package/dist/provider-q4lsYzYG.mjs.map +1 -0
- package/dist/{ready-bQfu9GES.mjs → ready-2s3-CndS.mjs} +3 -3
- package/dist/{ready-bQfu9GES.mjs.map → ready-2s3-CndS.mjs.map} +1 -1
- package/dist/{ready-brEhh68f.cjs → ready-B6uHr4sm.cjs} +3 -3
- package/dist/{ready-brEhh68f.cjs.map → ready-B6uHr4sm.cjs.map} +1 -1
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/resolve-CVmch0wI.cjs +315 -0
- package/dist/resolve-CVmch0wI.cjs.map +1 -0
- package/dist/resolve-Db0tNlrW.mjs +262 -0
- package/dist/resolve-Db0tNlrW.mjs.map +1 -0
- package/dist/rollback-DvAo4OKS.mjs +133 -0
- package/dist/rollback-DvAo4OKS.mjs.map +1 -0
- package/dist/rollback-DxJK84hy.cjs +162 -0
- package/dist/rollback-DxJK84hy.cjs.map +1 -0
- package/dist/{runtime-CJEYK4Gz.d.mts → runtime-BRqFOvPM.d.cts} +2 -2
- package/dist/{runtime-CJEYK4Gz.d.mts.map → runtime-BRqFOvPM.d.cts.map} +1 -1
- package/dist/{runtime-Cjq1jlVX.d.cts → runtime-CEk5n4VH.d.mts} +2 -2
- package/dist/{runtime-Cjq1jlVX.d.cts.map → runtime-CEk5n4VH.d.mts.map} +1 -1
- package/dist/sandbox/discover-worker.cjs +1 -1
- package/dist/sandbox/discover-worker.mjs +1 -1
- package/dist/sandbox/migrate-worker.cjs +61 -0
- package/dist/sandbox/migrate-worker.cjs.map +1 -0
- package/dist/sandbox/migrate-worker.d.cts +1 -0
- package/dist/sandbox/migrate-worker.d.mts +1 -0
- package/dist/sandbox/migrate-worker.mjs +62 -0
- package/dist/sandbox/migrate-worker.mjs.map +1 -0
- package/dist/{schemas-D2LCF689.mjs → schemas-Cfhtpdo0.mjs} +10 -2
- package/dist/{schemas-Ckm_aBnF.cjs.map → schemas-Cfhtpdo0.mjs.map} +1 -1
- package/dist/{schemas-Ckm_aBnF.cjs → schemas-RUlKHu27.cjs} +15 -1
- package/dist/{schemas-D2LCF689.mjs.map → schemas-RUlKHu27.cjs.map} +1 -1
- package/dist/sniffer-5xmrkh2a.cjs +1742 -0
- package/dist/sniffer-5xmrkh2a.cjs.map +1 -0
- package/dist/sniffer-BAQhLEsI.mjs +1617 -0
- package/dist/sniffer-BAQhLEsI.mjs.map +1 -0
- package/dist/{sst-Cper040I.mjs → sst-B2HbrDR3.mjs} +4 -4
- package/dist/{sst-Cper040I.mjs.map → sst-B2HbrDR3.mjs.map} +1 -1
- package/dist/{sst-BdALKEas.cjs → sst-DcfsVH6x.cjs} +4 -4
- package/dist/{sst-BdALKEas.cjs.map → sst-DcfsVH6x.cjs.map} +1 -1
- package/dist/{sniffer-ByhbEW5A.cjs → state-Y6ATakMX.cjs} +1769 -2759
- package/dist/state-Y6ATakMX.cjs.map +1 -0
- package/dist/{sniffer-49KPbDgq.mjs → state-uuYqnRVO.mjs} +1763 -2764
- package/dist/state-uuYqnRVO.mjs.map +1 -0
- package/dist/target/public.cjs +6 -6
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +3 -3
- package/dist/terminal-CHy_MdjG.cjs +84 -0
- package/dist/terminal-CHy_MdjG.cjs.map +1 -0
- package/dist/terminal-DUhcZ1ND.mjs +84 -0
- package/dist/terminal-DUhcZ1ND.mjs.map +1 -0
- package/dist/{types-DkrDOMxw.d.cts → types-CSw2w69a.d.mts} +110 -20
- package/dist/types-CSw2w69a.d.mts.map +1 -0
- package/dist/{types-B_bEQvb9.d.mts → types-D5WIxRDP.d.cts} +111 -19
- package/dist/types-D5WIxRDP.d.cts.map +1 -0
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.cjs +3 -1
- package/dist/workspace/index.d.cts +3 -3
- package/dist/workspace/index.d.mts +3 -3
- package/dist/workspace/index.mjs +2 -2
- package/dist/{workspace-Bwit4q9O.mjs → workspace-Be6uBhlF.mjs} +36 -6
- package/dist/workspace-Be6uBhlF.mjs.map +1 -0
- package/dist/{workspace-BwgWJK7h.cjs → workspace-ON-bqiJz.cjs} +47 -5
- package/dist/workspace-ON-bqiJz.cjs.map +1 -0
- package/package.json +13 -13
- package/dist/HostingerProvider-Bx2lHHvu.cjs.map +0 -1
- package/dist/HostingerProvider-Cd4aS5Kj.mjs.map +0 -1
- package/dist/Route53Provider-Cvj40A8I.mjs.map +0 -1
- package/dist/Route53Provider-DVILBsvV.cjs.map +0 -1
- package/dist/backup-provisioner-BmhIO_Yr.cjs.map +0 -1
- package/dist/backup-provisioner-DIVCbfee.mjs.map +0 -1
- package/dist/cli-Bogz-zEj.mjs.map +0 -1
- package/dist/cli-D3jofJ6j.cjs.map +0 -1
- package/dist/credentials-B70vmLcm.cjs.map +0 -1
- package/dist/credentials-s0wMeZBU.mjs.map +0 -1
- package/dist/define-CYs0PEfZ.mjs.map +0 -1
- package/dist/define-zUsP72ym.cjs.map +0 -1
- package/dist/deploy-55rJkdKz.cjs.map +0 -1
- package/dist/deploy-Dc2LBJaK.mjs +0 -136
- package/dist/deploy-Dc2LBJaK.mjs.map +0 -1
- package/dist/deploy-ZRXIPp1c.mjs.map +0 -1
- package/dist/deploy-yUcR2OlW.cjs +0 -141
- package/dist/deploy-yUcR2OlW.cjs.map +0 -1
- package/dist/discover-DHdECueV.cjs.map +0 -1
- package/dist/discover-LMrqsWSU.mjs.map +0 -1
- package/dist/dokploy-CepdXuMl.mjs +0 -32
- package/dist/dokploy-CepdXuMl.mjs.map +0 -1
- package/dist/dokploy-D1d37rvM.cjs +0 -32
- package/dist/dokploy-D1d37rvM.cjs.map +0 -1
- package/dist/index-CJ2qsSpp.d.mts.map +0 -1
- package/dist/index-CfE9Y885.d.cts.map +0 -1
- package/dist/local-C7wnrcYK.cjs.map +0 -1
- package/dist/local-Cd8ZYQG3.mjs.map +0 -1
- package/dist/resolve-BXsNQjMR.cjs +0 -220
- package/dist/resolve-BXsNQjMR.cjs.map +0 -1
- package/dist/resolve-DZ2IJ0qY.mjs +0 -173
- package/dist/resolve-DZ2IJ0qY.mjs.map +0 -1
- package/dist/runtime-BGNDrHzh.cjs +0 -163
- package/dist/runtime-BGNDrHzh.cjs.map +0 -1
- package/dist/runtime-Cmn-FeYO.mjs +0 -134
- package/dist/runtime-Cmn-FeYO.mjs.map +0 -1
- package/dist/sniffer-49KPbDgq.mjs.map +0 -1
- package/dist/sniffer-ByhbEW5A.cjs.map +0 -1
- package/dist/storage-BzaUxmqe.mjs +0 -124
- package/dist/storage-BzaUxmqe.mjs.map +0 -1
- package/dist/storage-CSGoC3bK.cjs +0 -152
- package/dist/storage-CSGoC3bK.cjs.map +0 -1
- package/dist/store-BaaonhkJ.mjs +0 -415
- package/dist/store-BaaonhkJ.mjs.map +0 -1
- package/dist/store-D_2ByRtW.cjs +0 -510
- package/dist/store-D_2ByRtW.cjs.map +0 -1
- package/dist/terminal-Bdv--jhY.cjs.map +0 -1
- package/dist/terminal-D7Ntz6WE.mjs.map +0 -1
- package/dist/types-B_bEQvb9.d.mts.map +0 -1
- package/dist/types-DkrDOMxw.d.cts.map +0 -1
- package/dist/workspace-BwgWJK7h.cjs.map +0 -1
- package/dist/workspace-Bwit4q9O.mjs.map +0 -1
package/dist/deploy/public.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { $ as DeployEventError, Q as DeployEvent,
|
|
1
|
+
import { $ as DeployEventError, Q as DeployEvent, St as deployIdentity, at as DeployResult, ct as CredentialKind, dt as CredentialRequest, et as DeployEventType, ft as MissingCredential, gt as StateLocked, ht as storedCredentials, it as AppDeployResult, lt as CredentialKinds, mt as chainCredentials, nt as ResourceChange, ot as AwsCredential, pt as StoredCredentialsOptions, rt as ResourceVia, st as Credential, tt as DeployPhase, ut as CredentialProvider, vt as StateVersionConflict, xt as DeployIdentity, yt as ReleasedImage, z as AnyDeployTarget } from "../types-D5WIxRDP.cjs";
|
|
2
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-
|
|
3
|
+
import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-4XFxX1al.cjs";
|
|
4
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-
|
|
6
|
-
import { ConstructManifest } from "@geekmidas/manifest";
|
|
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-BRqFOvPM.cjs";
|
|
6
|
+
import { ConstructManifest, Declaration } from "@geekmidas/manifest";
|
|
7
7
|
import "@geekmidas/envkit/sniffer";
|
|
8
|
+
import "@geekmidas/db/pg/roles";
|
|
8
9
|
//#region src/home.d.ts
|
|
9
10
|
/**
|
|
10
11
|
* Where the CLI keeps what belongs to a person rather than a project: stage
|
|
@@ -189,6 +190,130 @@ export declare class SandboxWorkerFailed extends Error {
|
|
|
189
190
|
constructor(step: string, exitCode: number | null, stderr: string);
|
|
190
191
|
}
|
|
191
192
|
//#endregion
|
|
193
|
+
//#region src/target/dokploy/dokploy-api.d.ts
|
|
194
|
+
/** A deployment Dokploy ran and reported as failed. */
|
|
195
|
+
export declare class DeploymentFailed extends Error {
|
|
196
|
+
readonly applicationId: string;
|
|
197
|
+
readonly deployment: DokployDeployment;
|
|
198
|
+
constructor(applicationId: string, deployment: DokployDeployment);
|
|
199
|
+
}
|
|
200
|
+
/** A deployment that had not finished when the deploy stopped waiting. */
|
|
201
|
+
export declare class DeploymentTimedOut extends Error {
|
|
202
|
+
readonly applicationId: string;
|
|
203
|
+
readonly timeoutMs: number;
|
|
204
|
+
/** The last status seen, if a deployment had appeared at all. */
|
|
205
|
+
readonly lastStatus: DokployDeploymentStatus | undefined;
|
|
206
|
+
constructor(applicationId: string, timeoutMs: number,
|
|
207
|
+
/** The last status seen, if a deployment had appeared at all. */
|
|
208
|
+
lastStatus: DokployDeploymentStatus | undefined);
|
|
209
|
+
}
|
|
210
|
+
type DokployDeploymentStatus = 'running' | 'done' | 'error' | 'cancelled';
|
|
211
|
+
/** One run of `application.deploy`, as `deployment.all` lists it. */
|
|
212
|
+
interface DokployDeployment {
|
|
213
|
+
deploymentId: string;
|
|
214
|
+
status: DokployDeploymentStatus;
|
|
215
|
+
/** ISO timestamp, by Dokploy's clock. */
|
|
216
|
+
createdAt: string;
|
|
217
|
+
title?: string;
|
|
218
|
+
errorMessage?: string | null;
|
|
219
|
+
}
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/target/dokploy/engine.d.ts
|
|
222
|
+
/** A backend failed, so the run stopped before deploying anything after it. */
|
|
223
|
+
export declare class BackendDeployFailed extends Error {
|
|
224
|
+
readonly app: string;
|
|
225
|
+
constructor(app: string, cause: unknown);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Sites failed to release or to answer. Every site is attempted before this
|
|
229
|
+
* is thrown, so one broken site does not keep the others back — but the run
|
|
230
|
+
* fails, and what failed is rolled back.
|
|
231
|
+
*/
|
|
232
|
+
export declare class FrontendDeployFailed extends Error {
|
|
233
|
+
readonly apps: readonly string[];
|
|
234
|
+
constructor(apps: readonly string[], cause: unknown);
|
|
235
|
+
}
|
|
236
|
+
/** An app's environment needs values the stage does not have. */
|
|
237
|
+
export declare class MissingEnvVars extends Error {
|
|
238
|
+
readonly app: string;
|
|
239
|
+
readonly missing: readonly string[];
|
|
240
|
+
readonly stage: string;
|
|
241
|
+
constructor(app: string, missing: readonly string[], stage: string);
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/target/dokploy/health.d.ts
|
|
245
|
+
/** An app never answered healthy enough times in a row. */
|
|
246
|
+
export declare class HealthCheckTimedOut extends Error {
|
|
247
|
+
readonly app: string;
|
|
248
|
+
readonly url: string;
|
|
249
|
+
readonly timeoutMs: number;
|
|
250
|
+
/** The last answer's status, or undefined when the last request failed. */
|
|
251
|
+
readonly lastStatus: number | undefined;
|
|
252
|
+
constructor(app: string, url: string, timeoutMs: number,
|
|
253
|
+
/** The last answer's status, or undefined when the last request failed. */
|
|
254
|
+
lastStatus: number | undefined);
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/target/dokploy/migrations.d.ts
|
|
258
|
+
/** The migrations of a deployed stage failed; the release stopped before any app. */
|
|
259
|
+
export declare class DeployMigrationsFailed extends Error {
|
|
260
|
+
readonly stage: string;
|
|
261
|
+
/** The failure's class name in the sandbox — `MigrationFailed`, … */
|
|
262
|
+
readonly reason: string;
|
|
263
|
+
constructor(stage: string,
|
|
264
|
+
/** The failure's class name in the sandbox — `MigrationFailed`, … */
|
|
265
|
+
reason: string, message: string);
|
|
266
|
+
}
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/target/dokploy/rollback.d.ts
|
|
269
|
+
interface RollbackInput {
|
|
270
|
+
/** The project: the directory holding `gkm.config.ts`, or one inside it. */
|
|
271
|
+
cwd: string;
|
|
272
|
+
stage: string;
|
|
273
|
+
/** The app to roll back. */
|
|
274
|
+
app?: string;
|
|
275
|
+
/** Every app with an earlier release, instead of one. */
|
|
276
|
+
atomic?: boolean;
|
|
277
|
+
/** Defaults to the environment, then the logins `gkm login` stored. */
|
|
278
|
+
credentials?: CredentialProvider;
|
|
279
|
+
signal?: AbortSignal;
|
|
280
|
+
/** Each progress line. Defaults to none. */
|
|
281
|
+
log?: (line: string) => void;
|
|
282
|
+
/** Where the config is loaded. Defaults to a `LocalSandbox` on the project. */
|
|
283
|
+
sandbox?: Sandbox;
|
|
284
|
+
}
|
|
285
|
+
/** One app rolled back. */
|
|
286
|
+
interface RolledBack {
|
|
287
|
+
app: string;
|
|
288
|
+
from: ReleasedImage;
|
|
289
|
+
to: ReleasedImage;
|
|
290
|
+
}
|
|
291
|
+
/** Neither an app nor every app was asked for. */
|
|
292
|
+
export declare class RollbackNeedsApp extends Error {
|
|
293
|
+
readonly stage: string;
|
|
294
|
+
/** The apps that have a release to go back to. */
|
|
295
|
+
readonly apps: readonly string[];
|
|
296
|
+
constructor(stage: string,
|
|
297
|
+
/** The apps that have a release to go back to. */
|
|
298
|
+
apps: readonly string[]);
|
|
299
|
+
}
|
|
300
|
+
/** An app has no release before the one it runs. */
|
|
301
|
+
export declare class NothingToRollBack extends Error {
|
|
302
|
+
readonly stage: string;
|
|
303
|
+
readonly app: string;
|
|
304
|
+
constructor(stage: string, app: string);
|
|
305
|
+
}
|
|
306
|
+
/** The stage was never deployed through Dokploy from this state. */
|
|
307
|
+
export declare class StageNeverDeployed extends Error {
|
|
308
|
+
readonly stage: string;
|
|
309
|
+
constructor(stage: string);
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Roll a stage's app — or, `atomic`, all of them — back to its previous
|
|
313
|
+
* release, holding the stage's lock as a deploy does.
|
|
314
|
+
*/
|
|
315
|
+
export declare function rollbackStage(input: RollbackInput): Promise<RolledBack[]>;
|
|
316
|
+
//#endregion
|
|
192
317
|
//#region src/target/sst/health.d.ts
|
|
193
318
|
/** Surfaces that never answered healthy. */
|
|
194
319
|
export declare class SurfacesUnhealthy extends Error {
|
|
@@ -241,7 +366,10 @@ interface DeployInput {
|
|
|
241
366
|
* directory inside it. Never assumed to be `process.cwd()`.
|
|
242
367
|
*/
|
|
243
368
|
cwd: string;
|
|
244
|
-
/**
|
|
369
|
+
/**
|
|
370
|
+
* The stage to deploy — one of the config's deployed stages, or its local
|
|
371
|
+
* stage through a target that runs one (`compose`).
|
|
372
|
+
*/
|
|
245
373
|
stage: string;
|
|
246
374
|
/**
|
|
247
375
|
* The target to deploy through, by name. Defaults to `deploy.default`,
|
|
@@ -264,6 +392,12 @@ interface DeployInput {
|
|
|
264
392
|
* changing Dokploy or building and pushing images.
|
|
265
393
|
*/
|
|
266
394
|
dryRun?: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* When a release or its verification fails, roll back every app the run
|
|
397
|
+
* released rather than only the ones that failed — on a target that can
|
|
398
|
+
* roll back. For apps that must move together.
|
|
399
|
+
*/
|
|
400
|
+
atomic?: boolean;
|
|
267
401
|
/**
|
|
268
402
|
* Where credentials come from. Defaults to the environment, then the
|
|
269
403
|
* logins `gkm login` stored. A credential no provider has stops the run
|
|
@@ -328,20 +462,6 @@ interface DeployRun extends AsyncIterable<DeployEvent> {
|
|
|
328
462
|
*/
|
|
329
463
|
export declare function deploy(input: DeployInput): DeployRun;
|
|
330
464
|
//#endregion
|
|
331
|
-
//#region src/deploy/index.d.ts
|
|
332
|
-
/** A backend failed, so the run stopped before deploying anything after it. */
|
|
333
|
-
export declare class BackendDeployFailed extends Error {
|
|
334
|
-
readonly app: string;
|
|
335
|
-
constructor(app: string, cause: unknown);
|
|
336
|
-
}
|
|
337
|
-
/** An app's environment needs values the stage does not have. */
|
|
338
|
-
export declare class MissingEnvVars extends Error {
|
|
339
|
-
readonly app: string;
|
|
340
|
-
readonly missing: readonly string[];
|
|
341
|
-
readonly stage: string;
|
|
342
|
-
constructor(app: string, missing: readonly string[], stage: string);
|
|
343
|
-
}
|
|
344
|
-
//#endregion
|
|
345
465
|
//#region src/deploy/orchestrate.d.ts
|
|
346
466
|
/** Apps were asked for by name that the workspace does not have. */
|
|
347
467
|
export declare class UnknownDeployApps extends Error {
|
|
@@ -399,5 +519,5 @@ export declare class RegistryAmbiguous extends Error {
|
|
|
399
519
|
constructor(registry: string, registryIds: readonly string[]);
|
|
400
520
|
}
|
|
401
521
|
//#endregion
|
|
402
|
-
export { type AppDeployResult, type AwsCredential, 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 };
|
|
522
|
+
export { type AppDeployResult, type AwsCredential, 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, type RollbackInput, type RolledBack, 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 };
|
|
403
523
|
//# sourceMappingURL=public.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
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/target/
|
|
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/target/dokploy/dokploy-api.ts","../../src/target/dokploy/engine.ts","../../src/target/dokploy/health.ts","../../src/target/dokploy/migrations.ts","../../src/target/dokploy/rollback.ts","../../src/target/sst/health.ts","../../src/target/sst/outputs.ts","../../src/target/sst/index.ts","../../src/deploy/deploy.ts","../../src/deploy/orchestrate.ts","../../src/deploy/ownership.ts","../../src/deploy/registry.ts"],"mappings":"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"}
|
package/dist/deploy/public.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
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.mjs";
|
|
2
|
-
import { $ as DeployEventError, Q as DeployEvent,
|
|
3
|
-
import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-
|
|
2
|
+
import { $ as DeployEventError, Q as DeployEvent, St as deployIdentity, at as DeployResult, ct as CredentialKind, dt as CredentialRequest, et as DeployEventType, ft as MissingCredential, gt as StateLocked, ht as storedCredentials, it as AppDeployResult, lt as CredentialKinds, mt as chainCredentials, nt as ResourceChange, ot as AwsCredential, pt as StoredCredentialsOptions, rt as ResourceVia, st as Credential, tt as DeployPhase, ut as CredentialProvider, vt as StateVersionConflict, xt as DeployIdentity, yt as ReleasedImage, z as AnyDeployTarget } from "../types-CSw2w69a.mjs";
|
|
3
|
+
import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-UtKzhpFb.mjs";
|
|
4
4
|
import { n as ConstructsNotSerializable, t as ConstructDiscoveryFailed } from "../discover-B6yPpvRV.mjs";
|
|
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-
|
|
6
|
-
import { ConstructManifest } from "@geekmidas/manifest";
|
|
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-CEk5n4VH.mjs";
|
|
6
|
+
import { ConstructManifest, Declaration } from "@geekmidas/manifest";
|
|
7
|
+
import "@geekmidas/db/pg/roles";
|
|
7
8
|
import "@geekmidas/envkit/sniffer";
|
|
8
9
|
//#region src/home.d.ts
|
|
9
10
|
/**
|
|
@@ -189,6 +190,130 @@ export declare class SandboxWorkerFailed extends Error {
|
|
|
189
190
|
constructor(step: string, exitCode: number | null, stderr: string);
|
|
190
191
|
}
|
|
191
192
|
//#endregion
|
|
193
|
+
//#region src/target/dokploy/dokploy-api.d.ts
|
|
194
|
+
/** A deployment Dokploy ran and reported as failed. */
|
|
195
|
+
export declare class DeploymentFailed extends Error {
|
|
196
|
+
readonly applicationId: string;
|
|
197
|
+
readonly deployment: DokployDeployment;
|
|
198
|
+
constructor(applicationId: string, deployment: DokployDeployment);
|
|
199
|
+
}
|
|
200
|
+
/** A deployment that had not finished when the deploy stopped waiting. */
|
|
201
|
+
export declare class DeploymentTimedOut extends Error {
|
|
202
|
+
readonly applicationId: string;
|
|
203
|
+
readonly timeoutMs: number;
|
|
204
|
+
/** The last status seen, if a deployment had appeared at all. */
|
|
205
|
+
readonly lastStatus: DokployDeploymentStatus | undefined;
|
|
206
|
+
constructor(applicationId: string, timeoutMs: number,
|
|
207
|
+
/** The last status seen, if a deployment had appeared at all. */
|
|
208
|
+
lastStatus: DokployDeploymentStatus | undefined);
|
|
209
|
+
}
|
|
210
|
+
type DokployDeploymentStatus = 'running' | 'done' | 'error' | 'cancelled';
|
|
211
|
+
/** One run of `application.deploy`, as `deployment.all` lists it. */
|
|
212
|
+
interface DokployDeployment {
|
|
213
|
+
deploymentId: string;
|
|
214
|
+
status: DokployDeploymentStatus;
|
|
215
|
+
/** ISO timestamp, by Dokploy's clock. */
|
|
216
|
+
createdAt: string;
|
|
217
|
+
title?: string;
|
|
218
|
+
errorMessage?: string | null;
|
|
219
|
+
}
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/target/dokploy/engine.d.ts
|
|
222
|
+
/** A backend failed, so the run stopped before deploying anything after it. */
|
|
223
|
+
export declare class BackendDeployFailed extends Error {
|
|
224
|
+
readonly app: string;
|
|
225
|
+
constructor(app: string, cause: unknown);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Sites failed to release or to answer. Every site is attempted before this
|
|
229
|
+
* is thrown, so one broken site does not keep the others back — but the run
|
|
230
|
+
* fails, and what failed is rolled back.
|
|
231
|
+
*/
|
|
232
|
+
export declare class FrontendDeployFailed extends Error {
|
|
233
|
+
readonly apps: readonly string[];
|
|
234
|
+
constructor(apps: readonly string[], cause: unknown);
|
|
235
|
+
}
|
|
236
|
+
/** An app's environment needs values the stage does not have. */
|
|
237
|
+
export declare class MissingEnvVars extends Error {
|
|
238
|
+
readonly app: string;
|
|
239
|
+
readonly missing: readonly string[];
|
|
240
|
+
readonly stage: string;
|
|
241
|
+
constructor(app: string, missing: readonly string[], stage: string);
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/target/dokploy/health.d.ts
|
|
245
|
+
/** An app never answered healthy enough times in a row. */
|
|
246
|
+
export declare class HealthCheckTimedOut extends Error {
|
|
247
|
+
readonly app: string;
|
|
248
|
+
readonly url: string;
|
|
249
|
+
readonly timeoutMs: number;
|
|
250
|
+
/** The last answer's status, or undefined when the last request failed. */
|
|
251
|
+
readonly lastStatus: number | undefined;
|
|
252
|
+
constructor(app: string, url: string, timeoutMs: number,
|
|
253
|
+
/** The last answer's status, or undefined when the last request failed. */
|
|
254
|
+
lastStatus: number | undefined);
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/target/dokploy/migrations.d.ts
|
|
258
|
+
/** The migrations of a deployed stage failed; the release stopped before any app. */
|
|
259
|
+
export declare class DeployMigrationsFailed extends Error {
|
|
260
|
+
readonly stage: string;
|
|
261
|
+
/** The failure's class name in the sandbox — `MigrationFailed`, … */
|
|
262
|
+
readonly reason: string;
|
|
263
|
+
constructor(stage: string,
|
|
264
|
+
/** The failure's class name in the sandbox — `MigrationFailed`, … */
|
|
265
|
+
reason: string, message: string);
|
|
266
|
+
}
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/target/dokploy/rollback.d.ts
|
|
269
|
+
interface RollbackInput {
|
|
270
|
+
/** The project: the directory holding `gkm.config.ts`, or one inside it. */
|
|
271
|
+
cwd: string;
|
|
272
|
+
stage: string;
|
|
273
|
+
/** The app to roll back. */
|
|
274
|
+
app?: string;
|
|
275
|
+
/** Every app with an earlier release, instead of one. */
|
|
276
|
+
atomic?: boolean;
|
|
277
|
+
/** Defaults to the environment, then the logins `gkm login` stored. */
|
|
278
|
+
credentials?: CredentialProvider;
|
|
279
|
+
signal?: AbortSignal;
|
|
280
|
+
/** Each progress line. Defaults to none. */
|
|
281
|
+
log?: (line: string) => void;
|
|
282
|
+
/** Where the config is loaded. Defaults to a `LocalSandbox` on the project. */
|
|
283
|
+
sandbox?: Sandbox;
|
|
284
|
+
}
|
|
285
|
+
/** One app rolled back. */
|
|
286
|
+
interface RolledBack {
|
|
287
|
+
app: string;
|
|
288
|
+
from: ReleasedImage;
|
|
289
|
+
to: ReleasedImage;
|
|
290
|
+
}
|
|
291
|
+
/** Neither an app nor every app was asked for. */
|
|
292
|
+
export declare class RollbackNeedsApp extends Error {
|
|
293
|
+
readonly stage: string;
|
|
294
|
+
/** The apps that have a release to go back to. */
|
|
295
|
+
readonly apps: readonly string[];
|
|
296
|
+
constructor(stage: string,
|
|
297
|
+
/** The apps that have a release to go back to. */
|
|
298
|
+
apps: readonly string[]);
|
|
299
|
+
}
|
|
300
|
+
/** An app has no release before the one it runs. */
|
|
301
|
+
export declare class NothingToRollBack extends Error {
|
|
302
|
+
readonly stage: string;
|
|
303
|
+
readonly app: string;
|
|
304
|
+
constructor(stage: string, app: string);
|
|
305
|
+
}
|
|
306
|
+
/** The stage was never deployed through Dokploy from this state. */
|
|
307
|
+
export declare class StageNeverDeployed extends Error {
|
|
308
|
+
readonly stage: string;
|
|
309
|
+
constructor(stage: string);
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Roll a stage's app — or, `atomic`, all of them — back to its previous
|
|
313
|
+
* release, holding the stage's lock as a deploy does.
|
|
314
|
+
*/
|
|
315
|
+
export declare function rollbackStage(input: RollbackInput): Promise<RolledBack[]>;
|
|
316
|
+
//#endregion
|
|
192
317
|
//#region src/target/sst/health.d.ts
|
|
193
318
|
/** Surfaces that never answered healthy. */
|
|
194
319
|
export declare class SurfacesUnhealthy extends Error {
|
|
@@ -241,7 +366,10 @@ interface DeployInput {
|
|
|
241
366
|
* directory inside it. Never assumed to be `process.cwd()`.
|
|
242
367
|
*/
|
|
243
368
|
cwd: string;
|
|
244
|
-
/**
|
|
369
|
+
/**
|
|
370
|
+
* The stage to deploy — one of the config's deployed stages, or its local
|
|
371
|
+
* stage through a target that runs one (`compose`).
|
|
372
|
+
*/
|
|
245
373
|
stage: string;
|
|
246
374
|
/**
|
|
247
375
|
* The target to deploy through, by name. Defaults to `deploy.default`,
|
|
@@ -264,6 +392,12 @@ interface DeployInput {
|
|
|
264
392
|
* changing Dokploy or building and pushing images.
|
|
265
393
|
*/
|
|
266
394
|
dryRun?: boolean;
|
|
395
|
+
/**
|
|
396
|
+
* When a release or its verification fails, roll back every app the run
|
|
397
|
+
* released rather than only the ones that failed — on a target that can
|
|
398
|
+
* roll back. For apps that must move together.
|
|
399
|
+
*/
|
|
400
|
+
atomic?: boolean;
|
|
267
401
|
/**
|
|
268
402
|
* Where credentials come from. Defaults to the environment, then the
|
|
269
403
|
* logins `gkm login` stored. A credential no provider has stops the run
|
|
@@ -328,20 +462,6 @@ interface DeployRun extends AsyncIterable<DeployEvent> {
|
|
|
328
462
|
*/
|
|
329
463
|
export declare function deploy(input: DeployInput): DeployRun;
|
|
330
464
|
//#endregion
|
|
331
|
-
//#region src/deploy/index.d.ts
|
|
332
|
-
/** A backend failed, so the run stopped before deploying anything after it. */
|
|
333
|
-
export declare class BackendDeployFailed extends Error {
|
|
334
|
-
readonly app: string;
|
|
335
|
-
constructor(app: string, cause: unknown);
|
|
336
|
-
}
|
|
337
|
-
/** An app's environment needs values the stage does not have. */
|
|
338
|
-
export declare class MissingEnvVars extends Error {
|
|
339
|
-
readonly app: string;
|
|
340
|
-
readonly missing: readonly string[];
|
|
341
|
-
readonly stage: string;
|
|
342
|
-
constructor(app: string, missing: readonly string[], stage: string);
|
|
343
|
-
}
|
|
344
|
-
//#endregion
|
|
345
465
|
//#region src/deploy/orchestrate.d.ts
|
|
346
466
|
/** Apps were asked for by name that the workspace does not have. */
|
|
347
467
|
export declare class UnknownDeployApps extends Error {
|
|
@@ -399,5 +519,5 @@ export declare class RegistryAmbiguous extends Error {
|
|
|
399
519
|
constructor(registry: string, registryIds: readonly string[]);
|
|
400
520
|
}
|
|
401
521
|
//#endregion
|
|
402
|
-
export { type AppDeployResult, type AwsCredential, 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 };
|
|
522
|
+
export { type AppDeployResult, type AwsCredential, 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, type RollbackInput, type RolledBack, 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 };
|
|
403
523
|
//# sourceMappingURL=public.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.mts","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/target/
|
|
1
|
+
{"version":3,"file":"public.d.mts","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/target/dokploy/dokploy-api.ts","../../src/target/dokploy/engine.ts","../../src/target/dokploy/health.ts","../../src/target/dokploy/migrations.ts","../../src/target/dokploy/rollback.ts","../../src/target/sst/health.ts","../../src/target/sst/outputs.ts","../../src/target/sst/index.ts","../../src/deploy/deploy.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;;;;;qBCqBE,yBAAyB;WAE3B;WACA,YAAY;EAFtB,YACU,uBACA,YAAY;;;qBAYV,2BAA2B;WAE7B;WACA;;WAEA,YAAY;EAJtB,YACU,uBACA,mBAEA;;EAAA,YAAY;;KA0vCX;;UAOK;EAChB;EACA,QAAQ;;EAER;EACA;EACA;;;;;qBCtqCY,4BAA4B;WAE9B;EADV,YACU,aACT;;;;;;;qBAeW,6BAA6B;WAE/B;EADV,YACU,yBACT;;;qBAWW,uBAAuB;WAEzB;WACA;WACA;EAHV,YACU,aACA,4BACA;;;;;qBChNE,4BAA4B;WAE9B;WACA;WACA;;WAEA;EALV,YACU,aACA,aACA,mBAEA;;EAAA;;;;;qBCLE,+BAA+B;WAEjC;;WAEA;EAHV,YACU,eAEA;;EAAA,gBACT;;;;UCJe;;EAEhB;EACA;;EAEA;;EAEA;;EAEA,cAAc;EACd,SAAS;;EAET,OAAO;;EAEP,UAAU;;;UAIM;EAChB;EACA,MAAM;EACN,IAAI;;;qBAIQ,yBAAyB;WAE3B;;WAEA;EAHV,YACU,eAEA;;EAAA;;;qBAWE,0BAA0B;WAE5B;WACA;EAFV,YACU,eACA;;;qBAWE,2BAA2B;WAClB;EAArB,YAAqB;;;;;;wBAaA,cACrB,OAAO,gBACL,QAAQ;;;;qBChFE,0BAA0B;WAE5B;;WAEA;IACR;IACA;IACA;IACA;;EAPF,YACU,eAEA;;EAAA;IACR;IACA;IACA;IACA;;;;;;qBCZU,6BAA6B;WAE/B;WACA;EAFV,YACU,cACA;;;;;qBC2BE,0BAA0B;WACjB;EAArB,YAAqB;;;;;;;;UCrBL;EAChB,KAAK;EACL,KAAK;EACL,OAAO;;UAGS;;;;;EAKhB;;;;;EAKA;;;;;EAKA;;;;;;EAMA,UAAU,eAAe;;EAEzB;;EAEA;;;;;;EAMA;;;;;;EAMA;;;;;;EAMA,cAAc;;EAEd,SAAS;;;;;;EAMT,SAAS;;;;;EAKT;;;;;EAKA;;;;;;;;;;;;EAYA,UAAU;;;UAIM,kBAAkB,cAAc;;;;;;WAMvC,QAAQ,QAAQ;;;;;;;;;;;;;;;;;;wBAqEV,OAAO,OAAO,cAAc;;;;qBCnH/B,0BAA0B;WAE5B;WACA;EAFV,YACU,yBACA;;;qBAWE,yBAAyB;WAE3B;WACA;EAFV,YACU,eACA;;;qBAUE,uBAAuB;WAEzB;;WAEA;EAHV,YACU,gBAEA;;EAAA,kBACT;;;;;;;;qBC7EW,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"}
|
package/dist/deploy/public.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as ConstructsNotSerializable, o as SandboxWorkerFailed, t as ConstructDiscoveryFailed } from "../discover-
|
|
1
|
+
import { a as CommandTimedOut, i as CommandFailed, l as GKM_HOME_ENV, n as SANDBOX_ENV_ALLOWLIST, r as allowlistedEnv, t as LocalSandbox, u as gkmHome } from "../local-CWR4Y_kW.mjs";
|
|
2
|
+
import { n as chainCredentials, r as storedCredentials, t as MissingCredential } from "../credentials-Dq1MnWQf.mjs";
|
|
3
|
+
import { n as ConstructsNotSerializable, o as SandboxWorkerFailed, t as ConstructDiscoveryFailed } from "../discover-BFoJWKGD.mjs";
|
|
4
4
|
import { n as SandboxCwdEscape, o as confineCwd, r as SecretNameInvalid, t as SECRETS_DIR_ENV } from "../sandbox-Dm247NGx.mjs";
|
|
5
|
-
import { a as UnknownDeployTarget, i as DeployTargetNotYetSupported } from "../define-
|
|
5
|
+
import { a as UnknownDeployTarget, i as DeployTargetNotYetSupported } from "../define-DR8xGYfL.mjs";
|
|
6
6
|
import { ConfigLoadFailed, ConfigObjectNotSerializable } from "../config.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { i as
|
|
9
|
-
import { i as TargetRuntimeMismatch, n as TargetEntryInvalid, r as TargetPackageInvalid, s as
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
12
|
-
import { i as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
7
|
+
import { b as detectPackageManager, yt as deployIdentity } from "../state-uuYqnRVO.mjs";
|
|
8
|
+
import { a as DeploymentTimedOut, d as StateLocked, i as DeploymentFailed, m as StateVersionConflict } from "../sniffer-BAQhLEsI.mjs";
|
|
9
|
+
import { i as TargetRuntimeMismatch, l as TargetPackageNotFound, n as TargetEntryInvalid, r as TargetPackageInvalid, s as TargetRuntimeUndeclared, t as InvalidTargetOptions } from "../resolve-Db0tNlrW.mjs";
|
|
10
|
+
import { i as UnknownDeployApps, n as NoDeployableApps, r as RollbackFailed, t as deploy } from "../deploy-DWn7YfIc.mjs";
|
|
11
|
+
import { _ as RegistryNotConfigured, g as RegistryAmbiguous, h as HealthCheckTimedOut, m as DeployMigrationsFailed, n as FrontendDeployFailed, r as MissingEnvVars, t as BackendDeployFailed, v as RegistryNotFound, y as ProjectNotOwned } from "../engine-CunvOG3s.mjs";
|
|
12
|
+
import { i as rollbackStage, n as RollbackNeedsApp, r as StageNeverDeployed, t as NothingToRollBack } from "../rollback-DvAo4OKS.mjs";
|
|
13
|
+
import { t as ProviderRemoved } from "../provider-q4lsYzYG.mjs";
|
|
14
|
+
import { i as SurfacesUnhealthy, r as SstOutputsUnreadable, t as SstConfigNotFound } from "../sst-B2HbrDR3.mjs";
|
|
15
15
|
import { join, resolve } from "node:path";
|
|
16
16
|
import { existsSync } from "node:fs";
|
|
17
17
|
//#region src/sandbox/install.ts
|
|
@@ -136,6 +136,6 @@ async function installDependencies(sandbox, options = {}) {
|
|
|
136
136
|
return results;
|
|
137
137
|
}
|
|
138
138
|
//#endregion
|
|
139
|
-
export { BackendDeployFailed, CommandFailed, CommandTimedOut, ConfigLoadFailed, ConfigObjectNotSerializable, ConstructDiscoveryFailed, ConstructsNotSerializable, DeployTargetNotYetSupported, GKM_HOME_ENV, INSTALL_TIMEOUT_MS, InstallAllowlistNameInvalid, InstallScriptsAllowlistUnsupported, InvalidTargetOptions, LocalSandbox, MissingCredential, MissingEnvVars, NoDeployableApps, ProjectNotOwned, ProviderRemoved, RegistryAmbiguous, RegistryNotConfigured, RegistryNotFound, RollbackFailed, SANDBOX_ENV_ALLOWLIST, SECRETS_DIR_ENV, SandboxCwdEscape, SandboxWorkerFailed, SecretNameInvalid, SstConfigNotFound, SstOutputsUnreadable, StateLocked, StateVersionConflict, SurfacesUnhealthy, TargetEntryInvalid, TargetPackageInvalid, TargetPackageNotFound, TargetRuntimeMismatch, TargetRuntimeUndeclared, UnknownDeployApps, UnknownDeployTarget, allowlistedEnv, chainCredentials, confineCwd, deploy, deployIdentity, gkmHome, installDependencies, storedCredentials };
|
|
139
|
+
export { BackendDeployFailed, CommandFailed, CommandTimedOut, ConfigLoadFailed, ConfigObjectNotSerializable, ConstructDiscoveryFailed, ConstructsNotSerializable, DeployMigrationsFailed, DeployTargetNotYetSupported, DeploymentFailed, DeploymentTimedOut, FrontendDeployFailed, GKM_HOME_ENV, HealthCheckTimedOut, INSTALL_TIMEOUT_MS, InstallAllowlistNameInvalid, InstallScriptsAllowlistUnsupported, InvalidTargetOptions, LocalSandbox, MissingCredential, MissingEnvVars, NoDeployableApps, NothingToRollBack, ProjectNotOwned, ProviderRemoved, RegistryAmbiguous, RegistryNotConfigured, RegistryNotFound, RollbackFailed, RollbackNeedsApp, SANDBOX_ENV_ALLOWLIST, SECRETS_DIR_ENV, SandboxCwdEscape, SandboxWorkerFailed, SecretNameInvalid, SstConfigNotFound, SstOutputsUnreadable, StageNeverDeployed, StateLocked, StateVersionConflict, SurfacesUnhealthy, TargetEntryInvalid, TargetPackageInvalid, TargetPackageNotFound, TargetRuntimeMismatch, TargetRuntimeUndeclared, UnknownDeployApps, UnknownDeployTarget, allowlistedEnv, chainCredentials, confineCwd, deploy, deployIdentity, gkmHome, installDependencies, rollbackStage, storedCredentials };
|
|
140
140
|
|
|
141
141
|
//# sourceMappingURL=public.mjs.map
|