@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/target/public.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_define = require("../define-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
2
|
+
const require_define = require("../define-DzRz8FgH.cjs");
|
|
3
|
+
const require_resolve = require("../resolve-CVmch0wI.cjs");
|
|
4
|
+
const require_provider = require("../provider-C9_-45d5.cjs");
|
|
5
5
|
exports.DeployTargetNotYetSupported = require_define.DeployTargetNotYetSupported;
|
|
6
6
|
exports.InvalidTargetOptions = require_resolve.InvalidTargetOptions;
|
|
7
|
-
exports.ProviderRemoved =
|
|
7
|
+
exports.ProviderRemoved = require_provider.ProviderRemoved;
|
|
8
8
|
exports.TargetEntryInvalid = require_resolve.TargetEntryInvalid;
|
|
9
9
|
exports.TargetPackageInvalid = require_resolve.TargetPackageInvalid;
|
|
10
|
-
exports.TargetPackageNotFound =
|
|
10
|
+
exports.TargetPackageNotFound = require_resolve.TargetPackageNotFound;
|
|
11
11
|
exports.TargetRuntimeMismatch = require_resolve.TargetRuntimeMismatch;
|
|
12
|
-
exports.TargetRuntimeUndeclared =
|
|
12
|
+
exports.TargetRuntimeUndeclared = require_resolve.TargetRuntimeUndeclared;
|
|
13
13
|
exports.UnknownDeployTarget = require_define.UnknownDeployTarget;
|
|
14
14
|
exports.defineTarget = require_define.defineTarget;
|
|
15
15
|
exports.isDeployTarget = require_define.isDeployTarget;
|
package/dist/target/public.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as DeployEventError, B as DeployFailure, G as DeployTargetCapabilities, H as DeployRuntime, J as TargetEvent, K as DeployTargetEntry, Q as DeployEvent, U as DeploySecrets, V as DeployPhaseContext, W as DeployTarget, X as TargetOptionsIssue, Y as TargetOptions, Z as TargetOptionsSchema, _t as StateStore, at as DeployResult, bt as
|
|
2
|
-
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-
|
|
1
|
+
import { $ as DeployEventError, B as DeployFailure, G as DeployTargetCapabilities, H as DeployRuntime, J as TargetEvent, K as DeployTargetEntry, Q as DeployEvent, U as DeploySecrets, V as DeployPhaseContext, W as DeployTarget, X as TargetOptionsIssue, Y as TargetOptions, Z as TargetOptionsSchema, _t as StateStore, at as DeployResult, bt as StageSecrets, ct as CredentialKind, dt as CredentialRequest, et as DeployEventType, it as AppDeployResult, lt as CredentialKinds, nt as ResourceChange, ot as AwsCredential, q as DeployTargetLogger, rt as ResourceVia, st as Credential, tt as DeployPhase, ut as CredentialProvider, xt as DeployIdentity, z as AnyDeployTarget } from "../types-D5WIxRDP.cjs";
|
|
2
|
+
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";
|
|
3
3
|
//#region src/target/define.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A deploy target, typed from what it is written with: the options from its
|
package/dist/target/public.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as DeployEventError, B as DeployFailure, G as DeployTargetCapabilities, H as DeployRuntime, J as TargetEvent, K as DeployTargetEntry, Q as DeployEvent, U as DeploySecrets, V as DeployPhaseContext, W as DeployTarget, X as TargetOptionsIssue, Y as TargetOptions, Z as TargetOptionsSchema, _t as StateStore, at as DeployResult, bt as
|
|
2
|
-
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-
|
|
1
|
+
import { $ as DeployEventError, B as DeployFailure, G as DeployTargetCapabilities, H as DeployRuntime, J as TargetEvent, K as DeployTargetEntry, Q as DeployEvent, U as DeploySecrets, V as DeployPhaseContext, W as DeployTarget, X as TargetOptionsIssue, Y as TargetOptions, Z as TargetOptionsSchema, _t as StateStore, at as DeployResult, bt as StageSecrets, ct as CredentialKind, dt as CredentialRequest, et as DeployEventType, it as AppDeployResult, lt as CredentialKinds, nt as ResourceChange, ot as AwsCredential, q as DeployTargetLogger, rt as ResourceVia, st as Credential, tt as DeployPhase, ut as CredentialProvider, xt as DeployIdentity, z as AnyDeployTarget } from "../types-CSw2w69a.mjs";
|
|
2
|
+
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";
|
|
3
3
|
//#region src/target/define.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A deploy target, typed from what it is written with: the options from its
|
package/dist/target/public.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UnknownDeployTarget, i as DeployTargetNotYetSupported, n as isDeployTarget, t as defineTarget } from "../define-
|
|
2
|
-
import { i as TargetPackageNotFound,
|
|
3
|
-
import {
|
|
1
|
+
import { a as UnknownDeployTarget, i as DeployTargetNotYetSupported, n as isDeployTarget, t as defineTarget } from "../define-DR8xGYfL.mjs";
|
|
2
|
+
import { i as TargetRuntimeMismatch, l as TargetPackageNotFound, n as TargetEntryInvalid, r as TargetPackageInvalid, s as TargetRuntimeUndeclared, t as InvalidTargetOptions } from "../resolve-Db0tNlrW.mjs";
|
|
3
|
+
import { t as ProviderRemoved } from "../provider-q4lsYzYG.mjs";
|
|
4
4
|
export { DeployTargetNotYetSupported, InvalidTargetOptions, ProviderRemoved, TargetEntryInvalid, TargetPackageInvalid, TargetPackageNotFound, TargetRuntimeMismatch, TargetRuntimeUndeclared, UnknownDeployTarget, defineTarget, isDeployTarget };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const require_credentials = require("./credentials-Bzbg23n8.cjs");
|
|
2
|
+
const require_discover = require("./discover-OEfZ9OkA.cjs");
|
|
3
|
+
const require_index = require("./index.cjs");
|
|
4
|
+
//#region src/deploy/terminal.ts
|
|
5
|
+
/**
|
|
6
|
+
* The credentials `gkm deploy` can ask a person for. CLI layer only.
|
|
7
|
+
*
|
|
8
|
+
* `deploy()` asks its `CredentialProvider` and stops with `MissingCredential`
|
|
9
|
+
* when the answer is nothing. At a terminal, `gkm deploy` would rather ask:
|
|
10
|
+
* this provider reads the environment and the stored login first, and only
|
|
11
|
+
* when both are empty prompts — and stores a Dokploy login it validated, so
|
|
12
|
+
* the next deploy does not ask again. With no terminal it answers nothing, and
|
|
13
|
+
* the deploy says what was missing instead of waiting on a prompt nobody sees.
|
|
14
|
+
*/
|
|
15
|
+
const logger = require_discover.output;
|
|
16
|
+
/** What answers a deploy prompt without a terminal. */
|
|
17
|
+
const INSTEAD = "Please configure manually.";
|
|
18
|
+
/** The Dokploy URL typed at the prompt is not a URL. */
|
|
19
|
+
var DokployEndpointInvalid = class extends Error {
|
|
20
|
+
endpoint;
|
|
21
|
+
constructor(endpoint) {
|
|
22
|
+
super("Invalid URL format");
|
|
23
|
+
this.endpoint = endpoint;
|
|
24
|
+
this.name = "DokployEndpointInvalid";
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
/** Dokploy refused the token typed at the prompt; nothing was stored. */
|
|
28
|
+
var DokployTokenRejected = class extends Error {
|
|
29
|
+
endpoint;
|
|
30
|
+
constructor(endpoint) {
|
|
31
|
+
super("Invalid credentials. Please check your token.");
|
|
32
|
+
this.endpoint = endpoint;
|
|
33
|
+
this.name = "DokployTokenRejected";
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
/** Asks the person at the terminal for what nothing else supplied. */
|
|
37
|
+
function asking() {
|
|
38
|
+
return { async get(asked) {
|
|
39
|
+
if (!require_index.canPrompt()) return void 0;
|
|
40
|
+
const request = asked;
|
|
41
|
+
if (request.kind === "dokploy") {
|
|
42
|
+
logger.log("\n📋 Dokploy credentials not found. Let's set them up.");
|
|
43
|
+
const endpoint = (await require_index.prompt("Dokploy URL (e.g., https://dokploy.example.com): ", { instead: INSTEAD })).replace(/\/$/, "");
|
|
44
|
+
try {
|
|
45
|
+
new URL(endpoint);
|
|
46
|
+
} catch {
|
|
47
|
+
throw new DokployEndpointInvalid(endpoint);
|
|
48
|
+
}
|
|
49
|
+
logger.log(`\nGenerate a token at: ${endpoint}/settings/profile\n`);
|
|
50
|
+
const token = await require_index.prompt("API Token: ", {
|
|
51
|
+
hidden: true,
|
|
52
|
+
instead: INSTEAD
|
|
53
|
+
});
|
|
54
|
+
logger.log("\nValidating credentials...");
|
|
55
|
+
if (!await require_index.validateDokployToken(endpoint, token)) throw new DokployTokenRejected(endpoint);
|
|
56
|
+
await require_credentials.storeDokployCredentials(token, endpoint);
|
|
57
|
+
logger.log("✓ Credentials saved");
|
|
58
|
+
return {
|
|
59
|
+
endpoint,
|
|
60
|
+
token
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (request.kind !== "registry") return void 0;
|
|
64
|
+
logger.log(` Dokploy has no registry for ${request.url}. Let's create one.`);
|
|
65
|
+
return {
|
|
66
|
+
username: await require_index.prompt("Registry username: ", { instead: INSTEAD }),
|
|
67
|
+
password: await require_index.prompt("Registry password/token: ", {
|
|
68
|
+
hidden: true,
|
|
69
|
+
instead: INSTEAD
|
|
70
|
+
})
|
|
71
|
+
};
|
|
72
|
+
} };
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The environment, then the stored login, then — at a terminal — the person
|
|
76
|
+
* running the command.
|
|
77
|
+
*/
|
|
78
|
+
function terminalCredentials(base = require_credentials.storedCredentials()) {
|
|
79
|
+
return require_credentials.chainCredentials(base, asking());
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
exports.terminalCredentials = terminalCredentials;
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=terminal-CHy_MdjG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-CHy_MdjG.cjs","names":["output","canPrompt","prompt","validateDokployToken","storeDokployCredentials","storedCredentials","chainCredentials"],"sources":["../src/deploy/terminal.ts"],"sourcesContent":["/**\n * The credentials `gkm deploy` can ask a person for. CLI layer only.\n *\n * `deploy()` asks its `CredentialProvider` and stops with `MissingCredential`\n * when the answer is nothing. At a terminal, `gkm deploy` would rather ask:\n * this provider reads the environment and the stored login first, and only\n * when both are empty prompts — and stores a Dokploy login it validated, so\n * the next deploy does not ask again. With no terminal it answers nothing, and\n * the deploy says what was missing instead of waiting on a prompt nobody sees.\n */\n\nimport { validateDokployToken } from '../auth';\nimport { storeDokployCredentials } from '../auth/credentials';\nimport { output } from '../output';\nimport { canPrompt, prompt } from '../prompt';\nimport {\n\ttype CredentialProvider,\n\ttype CredentialRequest,\n\tchainCredentials,\n\tstoredCredentials,\n} from './credentials';\n\nconst logger = output;\n\n/** What answers a deploy prompt without a terminal. */\nconst INSTEAD = 'Please configure manually.';\n\n/** The Dokploy URL typed at the prompt is not a URL. */\nexport class DokployEndpointInvalid extends Error {\n\tconstructor(readonly endpoint: string) {\n\t\tsuper('Invalid URL format');\n\t\tthis.name = 'DokployEndpointInvalid';\n\t}\n}\n\n/** Dokploy refused the token typed at the prompt; nothing was stored. */\nexport class DokployTokenRejected extends Error {\n\tconstructor(readonly endpoint: string) {\n\t\tsuper('Invalid credentials. Please check your token.');\n\t\tthis.name = 'DokployTokenRejected';\n\t}\n}\n\n/** Asks the person at the terminal for what nothing else supplied. */\nfunction asking(): CredentialProvider {\n\treturn {\n\t\tasync get(asked) {\n\t\t\tif (!canPrompt()) return undefined;\n\t\t\t// The union, so checking `kind` narrows it: `K` itself never is.\n\t\t\tconst request = asked as CredentialRequest;\n\n\t\t\tif (request.kind === 'dokploy') {\n\t\t\t\tlogger.log(\"\\n📋 Dokploy credentials not found. Let's set them up.\");\n\t\t\t\tconst endpoint = (\n\t\t\t\t\tawait prompt('Dokploy URL (e.g., https://dokploy.example.com): ', {\n\t\t\t\t\t\tinstead: INSTEAD,\n\t\t\t\t\t})\n\t\t\t\t).replace(/\\/$/, '');\n\n\t\t\t\ttry {\n\t\t\t\t\tnew URL(endpoint);\n\t\t\t\t} catch {\n\t\t\t\t\tthrow new DokployEndpointInvalid(endpoint);\n\t\t\t\t}\n\n\t\t\t\tlogger.log(`\\nGenerate a token at: ${endpoint}/settings/profile\\n`);\n\t\t\t\tconst token = await prompt('API Token: ', {\n\t\t\t\t\thidden: true,\n\t\t\t\t\tinstead: INSTEAD,\n\t\t\t\t});\n\n\t\t\t\tlogger.log('\\nValidating credentials...');\n\t\t\t\tif (!(await validateDokployToken(endpoint, token))) {\n\t\t\t\t\tthrow new DokployTokenRejected(endpoint);\n\t\t\t\t}\n\n\t\t\t\tawait storeDokployCredentials(token, endpoint);\n\t\t\t\tlogger.log('✓ Credentials saved');\n\t\t\t\treturn { endpoint, token } as never;\n\t\t\t}\n\n\t\t\t// AWS is a profile or a role, set up with the AWS CLI — not keys\n\t\t\t// typed into a deploy.\n\t\t\tif (request.kind !== 'registry') return undefined;\n\n\t\t\tlogger.log(\n\t\t\t\t` Dokploy has no registry for ${request.url}. Let's create one.`,\n\t\t\t);\n\t\t\tconst username = await prompt('Registry username: ', {\n\t\t\t\tinstead: INSTEAD,\n\t\t\t});\n\t\t\tconst password = await prompt('Registry password/token: ', {\n\t\t\t\thidden: true,\n\t\t\t\tinstead: INSTEAD,\n\t\t\t});\n\t\t\treturn { username, password } as never;\n\t\t},\n\t};\n}\n\n/**\n * The environment, then the stored login, then — at a terminal — the person\n * running the command.\n */\nexport function terminalCredentials(\n\tbase: CredentialProvider = storedCredentials(),\n): CredentialProvider {\n\treturn chainCredentials(base, asking());\n}\n"],"mappings":";;;;;;;;;;;;;;AAsBA,MAAM,SAASA,iBAAAA;;AAGf,MAAM,UAAU;;AAGhB,IAAa,yBAAb,cAA4C,MAAM;CAC5B;CAArB,YAAY,UAA2B;EACtC,MAAM,oBAAoB;EADN,KAAA,WAAA;EAEpB,KAAK,OAAO;CACb;AACD;;AAGA,IAAa,uBAAb,cAA0C,MAAM;CAC1B;CAArB,YAAY,UAA2B;EACtC,MAAM,+CAA+C;EADjC,KAAA,WAAA;EAEpB,KAAK,OAAO;CACb;AACD;;AAGA,SAAS,SAA6B;CACrC,OAAO,EACN,MAAM,IAAI,OAAO;EAChB,IAAI,CAACC,cAAAA,UAAU,GAAG,OAAO,KAAA;EAEzB,MAAM,UAAU;EAEhB,IAAI,QAAQ,SAAS,WAAW;GAC/B,OAAO,IAAI,wDAAwD;GACnE,MAAM,YACL,MAAMC,cAAAA,OAAO,qDAAqD,EACjE,SAAS,QACV,CAAC,EAAA,CACA,QAAQ,OAAO,EAAE;GAEnB,IAAI;IACH,IAAI,IAAI,QAAQ;GACjB,QAAQ;IACP,MAAM,IAAI,uBAAuB,QAAQ;GAC1C;GAEA,OAAO,IAAI,0BAA0B,SAAS,oBAAoB;GAClE,MAAM,QAAQ,MAAMA,cAAAA,OAAO,eAAe;IACzC,QAAQ;IACR,SAAS;GACV,CAAC;GAED,OAAO,IAAI,6BAA6B;GACxC,IAAI,CAAE,MAAMC,cAAAA,qBAAqB,UAAU,KAAK,GAC/C,MAAM,IAAI,qBAAqB,QAAQ;GAGxC,MAAMC,oBAAAA,wBAAwB,OAAO,QAAQ;GAC7C,OAAO,IAAI,qBAAqB;GAChC,OAAO;IAAE;IAAU;GAAM;EAC1B;EAIA,IAAI,QAAQ,SAAS,YAAY,OAAO,KAAA;EAExC,OAAO,IACN,kCAAkC,QAAQ,IAAI,oBAC/C;EAQA,OAAO;GAAE,UAAA,MAPcF,cAAAA,OAAO,uBAAuB,EACpD,SAAS,QACV,CAAC;GAKkB,UAAA,MAJIA,cAAAA,OAAO,6BAA6B;IAC1D,QAAQ;IACR,SAAS;GACV,CAAC;EAC2B;CAC7B,EACD;AACD;;;;;AAMA,SAAgB,oBACf,OAA2BG,oBAAAA,kBAAkB,GACxB;CACrB,OAAOC,oBAAAA,iBAAiB,MAAM,OAAO,CAAC;AACvC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { n as chainCredentials, r as storedCredentials, u as storeDokployCredentials } from "./credentials-Dq1MnWQf.mjs";
|
|
2
|
+
import { d as output } from "./discover-BFoJWKGD.mjs";
|
|
3
|
+
import { a as validateDokployToken, o as canPrompt, s as prompt } from "./index.mjs";
|
|
4
|
+
//#region src/deploy/terminal.ts
|
|
5
|
+
/**
|
|
6
|
+
* The credentials `gkm deploy` can ask a person for. CLI layer only.
|
|
7
|
+
*
|
|
8
|
+
* `deploy()` asks its `CredentialProvider` and stops with `MissingCredential`
|
|
9
|
+
* when the answer is nothing. At a terminal, `gkm deploy` would rather ask:
|
|
10
|
+
* this provider reads the environment and the stored login first, and only
|
|
11
|
+
* when both are empty prompts — and stores a Dokploy login it validated, so
|
|
12
|
+
* the next deploy does not ask again. With no terminal it answers nothing, and
|
|
13
|
+
* the deploy says what was missing instead of waiting on a prompt nobody sees.
|
|
14
|
+
*/
|
|
15
|
+
const logger = output;
|
|
16
|
+
/** What answers a deploy prompt without a terminal. */
|
|
17
|
+
const INSTEAD = "Please configure manually.";
|
|
18
|
+
/** The Dokploy URL typed at the prompt is not a URL. */
|
|
19
|
+
var DokployEndpointInvalid = class extends Error {
|
|
20
|
+
endpoint;
|
|
21
|
+
constructor(endpoint) {
|
|
22
|
+
super("Invalid URL format");
|
|
23
|
+
this.endpoint = endpoint;
|
|
24
|
+
this.name = "DokployEndpointInvalid";
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
/** Dokploy refused the token typed at the prompt; nothing was stored. */
|
|
28
|
+
var DokployTokenRejected = class extends Error {
|
|
29
|
+
endpoint;
|
|
30
|
+
constructor(endpoint) {
|
|
31
|
+
super("Invalid credentials. Please check your token.");
|
|
32
|
+
this.endpoint = endpoint;
|
|
33
|
+
this.name = "DokployTokenRejected";
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
/** Asks the person at the terminal for what nothing else supplied. */
|
|
37
|
+
function asking() {
|
|
38
|
+
return { async get(asked) {
|
|
39
|
+
if (!canPrompt()) return void 0;
|
|
40
|
+
const request = asked;
|
|
41
|
+
if (request.kind === "dokploy") {
|
|
42
|
+
logger.log("\n📋 Dokploy credentials not found. Let's set them up.");
|
|
43
|
+
const endpoint = (await prompt("Dokploy URL (e.g., https://dokploy.example.com): ", { instead: INSTEAD })).replace(/\/$/, "");
|
|
44
|
+
try {
|
|
45
|
+
new URL(endpoint);
|
|
46
|
+
} catch {
|
|
47
|
+
throw new DokployEndpointInvalid(endpoint);
|
|
48
|
+
}
|
|
49
|
+
logger.log(`\nGenerate a token at: ${endpoint}/settings/profile\n`);
|
|
50
|
+
const token = await prompt("API Token: ", {
|
|
51
|
+
hidden: true,
|
|
52
|
+
instead: INSTEAD
|
|
53
|
+
});
|
|
54
|
+
logger.log("\nValidating credentials...");
|
|
55
|
+
if (!await validateDokployToken(endpoint, token)) throw new DokployTokenRejected(endpoint);
|
|
56
|
+
await storeDokployCredentials(token, endpoint);
|
|
57
|
+
logger.log("✓ Credentials saved");
|
|
58
|
+
return {
|
|
59
|
+
endpoint,
|
|
60
|
+
token
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (request.kind !== "registry") return void 0;
|
|
64
|
+
logger.log(` Dokploy has no registry for ${request.url}. Let's create one.`);
|
|
65
|
+
return {
|
|
66
|
+
username: await prompt("Registry username: ", { instead: INSTEAD }),
|
|
67
|
+
password: await prompt("Registry password/token: ", {
|
|
68
|
+
hidden: true,
|
|
69
|
+
instead: INSTEAD
|
|
70
|
+
})
|
|
71
|
+
};
|
|
72
|
+
} };
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The environment, then the stored login, then — at a terminal — the person
|
|
76
|
+
* running the command.
|
|
77
|
+
*/
|
|
78
|
+
function terminalCredentials(base = storedCredentials()) {
|
|
79
|
+
return chainCredentials(base, asking());
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { terminalCredentials };
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=terminal-DUhcZ1ND.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-DUhcZ1ND.mjs","names":[],"sources":["../src/deploy/terminal.ts"],"sourcesContent":["/**\n * The credentials `gkm deploy` can ask a person for. CLI layer only.\n *\n * `deploy()` asks its `CredentialProvider` and stops with `MissingCredential`\n * when the answer is nothing. At a terminal, `gkm deploy` would rather ask:\n * this provider reads the environment and the stored login first, and only\n * when both are empty prompts — and stores a Dokploy login it validated, so\n * the next deploy does not ask again. With no terminal it answers nothing, and\n * the deploy says what was missing instead of waiting on a prompt nobody sees.\n */\n\nimport { validateDokployToken } from '../auth';\nimport { storeDokployCredentials } from '../auth/credentials';\nimport { output } from '../output';\nimport { canPrompt, prompt } from '../prompt';\nimport {\n\ttype CredentialProvider,\n\ttype CredentialRequest,\n\tchainCredentials,\n\tstoredCredentials,\n} from './credentials';\n\nconst logger = output;\n\n/** What answers a deploy prompt without a terminal. */\nconst INSTEAD = 'Please configure manually.';\n\n/** The Dokploy URL typed at the prompt is not a URL. */\nexport class DokployEndpointInvalid extends Error {\n\tconstructor(readonly endpoint: string) {\n\t\tsuper('Invalid URL format');\n\t\tthis.name = 'DokployEndpointInvalid';\n\t}\n}\n\n/** Dokploy refused the token typed at the prompt; nothing was stored. */\nexport class DokployTokenRejected extends Error {\n\tconstructor(readonly endpoint: string) {\n\t\tsuper('Invalid credentials. Please check your token.');\n\t\tthis.name = 'DokployTokenRejected';\n\t}\n}\n\n/** Asks the person at the terminal for what nothing else supplied. */\nfunction asking(): CredentialProvider {\n\treturn {\n\t\tasync get(asked) {\n\t\t\tif (!canPrompt()) return undefined;\n\t\t\t// The union, so checking `kind` narrows it: `K` itself never is.\n\t\t\tconst request = asked as CredentialRequest;\n\n\t\t\tif (request.kind === 'dokploy') {\n\t\t\t\tlogger.log(\"\\n📋 Dokploy credentials not found. Let's set them up.\");\n\t\t\t\tconst endpoint = (\n\t\t\t\t\tawait prompt('Dokploy URL (e.g., https://dokploy.example.com): ', {\n\t\t\t\t\t\tinstead: INSTEAD,\n\t\t\t\t\t})\n\t\t\t\t).replace(/\\/$/, '');\n\n\t\t\t\ttry {\n\t\t\t\t\tnew URL(endpoint);\n\t\t\t\t} catch {\n\t\t\t\t\tthrow new DokployEndpointInvalid(endpoint);\n\t\t\t\t}\n\n\t\t\t\tlogger.log(`\\nGenerate a token at: ${endpoint}/settings/profile\\n`);\n\t\t\t\tconst token = await prompt('API Token: ', {\n\t\t\t\t\thidden: true,\n\t\t\t\t\tinstead: INSTEAD,\n\t\t\t\t});\n\n\t\t\t\tlogger.log('\\nValidating credentials...');\n\t\t\t\tif (!(await validateDokployToken(endpoint, token))) {\n\t\t\t\t\tthrow new DokployTokenRejected(endpoint);\n\t\t\t\t}\n\n\t\t\t\tawait storeDokployCredentials(token, endpoint);\n\t\t\t\tlogger.log('✓ Credentials saved');\n\t\t\t\treturn { endpoint, token } as never;\n\t\t\t}\n\n\t\t\t// AWS is a profile or a role, set up with the AWS CLI — not keys\n\t\t\t// typed into a deploy.\n\t\t\tif (request.kind !== 'registry') return undefined;\n\n\t\t\tlogger.log(\n\t\t\t\t` Dokploy has no registry for ${request.url}. Let's create one.`,\n\t\t\t);\n\t\t\tconst username = await prompt('Registry username: ', {\n\t\t\t\tinstead: INSTEAD,\n\t\t\t});\n\t\t\tconst password = await prompt('Registry password/token: ', {\n\t\t\t\thidden: true,\n\t\t\t\tinstead: INSTEAD,\n\t\t\t});\n\t\t\treturn { username, password } as never;\n\t\t},\n\t};\n}\n\n/**\n * The environment, then the stored login, then — at a terminal — the person\n * running the command.\n */\nexport function terminalCredentials(\n\tbase: CredentialProvider = storedCredentials(),\n): CredentialProvider {\n\treturn chainCredentials(base, asking());\n}\n"],"mappings":";;;;;;;;;;;;;;AAsBA,MAAM,SAAS;;AAGf,MAAM,UAAU;;AAGhB,IAAa,yBAAb,cAA4C,MAAM;CAC5B;CAArB,YAAY,UAA2B;EACtC,MAAM,oBAAoB;EADN,KAAA,WAAA;EAEpB,KAAK,OAAO;CACb;AACD;;AAGA,IAAa,uBAAb,cAA0C,MAAM;CAC1B;CAArB,YAAY,UAA2B;EACtC,MAAM,+CAA+C;EADjC,KAAA,WAAA;EAEpB,KAAK,OAAO;CACb;AACD;;AAGA,SAAS,SAA6B;CACrC,OAAO,EACN,MAAM,IAAI,OAAO;EAChB,IAAI,CAAC,UAAU,GAAG,OAAO,KAAA;EAEzB,MAAM,UAAU;EAEhB,IAAI,QAAQ,SAAS,WAAW;GAC/B,OAAO,IAAI,wDAAwD;GACnE,MAAM,YACL,MAAM,OAAO,qDAAqD,EACjE,SAAS,QACV,CAAC,EAAA,CACA,QAAQ,OAAO,EAAE;GAEnB,IAAI;IACH,IAAI,IAAI,QAAQ;GACjB,QAAQ;IACP,MAAM,IAAI,uBAAuB,QAAQ;GAC1C;GAEA,OAAO,IAAI,0BAA0B,SAAS,oBAAoB;GAClE,MAAM,QAAQ,MAAM,OAAO,eAAe;IACzC,QAAQ;IACR,SAAS;GACV,CAAC;GAED,OAAO,IAAI,6BAA6B;GACxC,IAAI,CAAE,MAAM,qBAAqB,UAAU,KAAK,GAC/C,MAAM,IAAI,qBAAqB,QAAQ;GAGxC,MAAM,wBAAwB,OAAO,QAAQ;GAC7C,OAAO,IAAI,qBAAqB;GAChC,OAAO;IAAE;IAAU;GAAM;EAC1B;EAIA,IAAI,QAAQ,SAAS,YAAY,OAAO,KAAA;EAExC,OAAO,IACN,kCAAkC,QAAQ,IAAI,oBAC/C;EAQA,OAAO;GAAE,UAAA,MAPc,OAAO,uBAAuB,EACpD,SAAS,QACV,CAAC;GAKkB,UAAA,MAJI,OAAO,6BAA6B;IAC1D,QAAQ;IACR,SAAS;GACV,CAAC;EAC2B;CAC7B,EACD;AACD;;;;;AAMA,SAAgB,oBACf,OAA2B,kBAAkB,GACxB;CACrB,OAAO,iBAAiB,MAAM,OAAO,CAAC;AACvC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ConstructManifest } from "@geekmidas/manifest";
|
|
2
|
-
//#endregion
|
|
3
2
|
//#region src/deploy/identity.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Who a deploy is, on a target it shares with other workspaces.
|
|
@@ -228,16 +227,40 @@ interface DokployStageState {
|
|
|
228
227
|
* deployed with whoever deploys it next.
|
|
229
228
|
*/
|
|
230
229
|
registryId?: string;
|
|
231
|
-
/**
|
|
232
|
-
|
|
230
|
+
/**
|
|
231
|
+
* Each app's releases, keyed by app name: what runs now, what ran before
|
|
232
|
+
* it — which `gkm deploy:rollback` restores — and the history behind both.
|
|
233
|
+
*/
|
|
234
|
+
releases?: Record<string, AppReleases>;
|
|
233
235
|
lastDeployedAt: string;
|
|
234
236
|
}
|
|
235
237
|
/** An image a stage runs: the ref it was pushed as, and what it resolved to. */
|
|
236
238
|
interface DeployedImage {
|
|
237
239
|
ref: string;
|
|
240
|
+
/**
|
|
241
|
+
* The tag it was released under — a site's carries its stage
|
|
242
|
+
* (`v1.4.0-production`). Recorded by targets that pull a release by tag.
|
|
243
|
+
*/
|
|
244
|
+
tag?: string;
|
|
238
245
|
/** The registry's digest, `sha256:…` — absent if it could not be read. */
|
|
239
246
|
digest?: string;
|
|
240
247
|
}
|
|
248
|
+
/** An image that went live, and when. */
|
|
249
|
+
interface ReleasedImage extends DeployedImage {
|
|
250
|
+
/** The image tag the deploy released under. */
|
|
251
|
+
tag?: string;
|
|
252
|
+
releasedAt: string;
|
|
253
|
+
/** Set when a rollback replaced it: it is never rolled back *to*. */
|
|
254
|
+
rolledBack?: true;
|
|
255
|
+
}
|
|
256
|
+
/** An app's releases: what runs, what ran before it, and what ran before that. */
|
|
257
|
+
interface AppReleases {
|
|
258
|
+
current: ReleasedImage;
|
|
259
|
+
/** What a rollback restores; absent until a second release. */
|
|
260
|
+
previous?: ReleasedImage;
|
|
261
|
+
/** Every release, newest first, at most {@link RELEASE_HISTORY} of them. */
|
|
262
|
+
history: ReleasedImage[];
|
|
263
|
+
}
|
|
241
264
|
//#endregion
|
|
242
265
|
//#region src/deploy/StateStore.d.ts
|
|
243
266
|
/** Opaque: a file hash, an SSM parameter version or an S3 ETag. */
|
|
@@ -444,11 +467,11 @@ interface CredentialKinds {
|
|
|
444
467
|
};
|
|
445
468
|
/**
|
|
446
469
|
* A container registry login, for Dokploy to pull with. Asked for only when
|
|
447
|
-
* Dokploy has no registry for `deploy.
|
|
470
|
+
* Dokploy has no registry for `deploy.registry` and one has to be
|
|
448
471
|
* created.
|
|
449
472
|
*/
|
|
450
473
|
registry: {
|
|
451
|
-
/** `deploy.
|
|
474
|
+
/** `deploy.registry`. */
|
|
452
475
|
request: {
|
|
453
476
|
url: string;
|
|
454
477
|
};
|
|
@@ -615,11 +638,12 @@ interface DeployResult extends WorkspaceDeployResult {
|
|
|
615
638
|
* - `provision`: what the apps run on — for Dokploy the project, environment
|
|
616
639
|
* and registry — and the declared constructs
|
|
617
640
|
* - `build`: each app's artifact, built without changing anything live
|
|
618
|
-
* - `release`: the artifacts put live. Dokploy
|
|
619
|
-
*
|
|
620
|
-
* per app
|
|
621
|
-
*
|
|
622
|
-
*
|
|
641
|
+
* - `release`: the artifacts put live. Dokploy applies the stage's
|
|
642
|
+
* migrations, then builds and pushes each image here, beside its
|
|
643
|
+
* application, because a site's build args are resolved per app — and
|
|
644
|
+
* checks each backend before any site is released
|
|
645
|
+
* - `verify`: what was released answers — for Dokploy, each site's DNS
|
|
646
|
+
* records and health
|
|
623
647
|
* - `rollback`: the previous release restored, after `release` or `verify`
|
|
624
648
|
* failed, on a target that can
|
|
625
649
|
*/
|
|
@@ -765,6 +789,14 @@ interface DeployTargetCapabilities {
|
|
|
765
789
|
* the deploy runs, and a registry to push to.
|
|
766
790
|
*/
|
|
767
791
|
images: boolean;
|
|
792
|
+
/**
|
|
793
|
+
* Whether it can also run the project's local stage — `gkm deploy --stage
|
|
794
|
+
* <local>`. Only a target that runs on this machine can: a stack started
|
|
795
|
+
* here is the local stage's, while one on a server is shared, and the local
|
|
796
|
+
* stage's secrets are a developer's. Absent, a deploy refuses the local
|
|
797
|
+
* stage with `UndeclaredStage`.
|
|
798
|
+
*/
|
|
799
|
+
localStage?: boolean;
|
|
768
800
|
}
|
|
769
801
|
/** A failed validation of a target's options, issue by issue. */
|
|
770
802
|
interface TargetOptionsIssue {
|
|
@@ -838,6 +870,12 @@ interface DeployPhaseContext<Options = undefined> {
|
|
|
838
870
|
readonly stage: string;
|
|
839
871
|
/** The image tag, or whatever version label the target releases under. */
|
|
840
872
|
readonly tag: string;
|
|
873
|
+
/**
|
|
874
|
+
* Whether `tag` was asked for (`--tag`) rather than made up for this run
|
|
875
|
+
* — by the target's own `tag()`, else `<stage>-<timestamp>`. A target that
|
|
876
|
+
* releases what CI already pushed when given one tells the two apart here.
|
|
877
|
+
*/
|
|
878
|
+
readonly tagGiven: boolean;
|
|
841
879
|
/**
|
|
842
880
|
* The apps this target deploys, in dependency order: those asked for that
|
|
843
881
|
* deploy here. Apps that deploy elsewhere are already in `skipped`.
|
|
@@ -861,6 +899,13 @@ interface DeployPhaseContext<Options = undefined> {
|
|
|
861
899
|
* events — without changing anything. Only `validate` and `plan` run.
|
|
862
900
|
*/
|
|
863
901
|
readonly dryRun: boolean;
|
|
902
|
+
/**
|
|
903
|
+
* When `release` or `verify` fails, roll back every app the run released
|
|
904
|
+
* rather than only those that failed — for apps that must move together,
|
|
905
|
+
* an API and the site built against it. Only a target that can roll back
|
|
906
|
+
* reads it.
|
|
907
|
+
*/
|
|
908
|
+
readonly atomic: boolean;
|
|
864
909
|
/** Where every credential comes from. Nothing prompts. */
|
|
865
910
|
readonly credentials: CredentialProvider;
|
|
866
911
|
/**
|
|
@@ -939,6 +984,15 @@ interface DeployTarget<Options = undefined, Run = unknown> {
|
|
|
939
984
|
* host or `gkm login` can collect them up front.
|
|
940
985
|
*/
|
|
941
986
|
readonly credentials?: readonly CredentialKind[];
|
|
987
|
+
/**
|
|
988
|
+
* The tag a run releases under when none is asked for. Without one it is
|
|
989
|
+
* `<stage>-<timestamp>`; a target that builds from the checkout can name
|
|
990
|
+
* its images after the commit instead.
|
|
991
|
+
*/
|
|
992
|
+
tag?(where: {
|
|
993
|
+
readonly cwd: string;
|
|
994
|
+
readonly stage: string;
|
|
995
|
+
}): Promise<string>;
|
|
942
996
|
/**
|
|
943
997
|
* Everything the deploy needs, checked before anything changes: the
|
|
944
998
|
* config, the apps, credentials, the stage's secrets.
|
|
@@ -5629,11 +5683,18 @@ declare const WorkspaceConfigSchema: ZodObject<{
|
|
|
5629
5683
|
targets: ZodOptional<ZodRecord<ZodString, ZodUnion<readonly [ZodString, ZodCustom<unknown, unknown>, ZodTuple<[ZodUnion<readonly [ZodString, ZodCustom<unknown, unknown>]>, ZodUnknown], null>]>>>;
|
|
5630
5684
|
namespace: ZodOptional<ZodString>;
|
|
5631
5685
|
domains: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
5686
|
+
registry: ZodOptional<ZodString>;
|
|
5632
5687
|
dokploy: ZodOptional<ZodObject<{
|
|
5633
5688
|
endpoint: ZodOptional<ZodURL>;
|
|
5634
5689
|
endpoints: ZodOptional<ZodRecord<ZodString, ZodURL>>;
|
|
5635
|
-
registry: ZodOptional<ZodString>;
|
|
5636
5690
|
registryId: ZodOptional<ZodString>;
|
|
5691
|
+
verify: ZodOptional<ZodObject<{
|
|
5692
|
+
deploymentTimeoutMs: ZodOptional<ZodNumber>;
|
|
5693
|
+
healthCheckPath: ZodOptional<ZodString>;
|
|
5694
|
+
healthyAfter: ZodOptional<ZodNumber>;
|
|
5695
|
+
intervalMs: ZodOptional<ZodNumber>;
|
|
5696
|
+
healthTimeoutMs: ZodOptional<ZodNumber>;
|
|
5697
|
+
}, $strip>>;
|
|
5637
5698
|
}, $strip>>;
|
|
5638
5699
|
dns: ZodOptional<ZodUnion<readonly [ZodRecord<ZodString, ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
|
|
5639
5700
|
provider: ZodLiteral<"hostinger">;
|
|
@@ -5952,7 +6013,7 @@ declare function formatValidationErrors(error: ZodError): string;
|
|
|
5952
6013
|
* deploy: 'acme' // deploy: { targets: { acme: '@acme/gkm-target' } }
|
|
5953
6014
|
* ```
|
|
5954
6015
|
*/
|
|
5955
|
-
type DeployTargetName = 'dokploy' | 'sst' | (string & {});
|
|
6016
|
+
type DeployTargetName = 'dokploy' | 'compose' | 'sst' | (string & {});
|
|
5956
6017
|
/**
|
|
5957
6018
|
* Each deployed stage's base domain — `deploy.domains`.
|
|
5958
6019
|
*
|
|
@@ -6005,9 +6066,9 @@ type AppDomainConfig = string | Record<string, string>;
|
|
|
6005
6066
|
* ```ts
|
|
6006
6067
|
* deploy: {
|
|
6007
6068
|
* default: 'dokploy',
|
|
6069
|
+
* registry: 'ghcr.io/myorg',
|
|
6008
6070
|
* dokploy: {
|
|
6009
6071
|
* endpoint: 'https://dokploy.myserver.com',
|
|
6010
|
-
* registry: 'ghcr.io/myorg',
|
|
6011
6072
|
* },
|
|
6012
6073
|
* }
|
|
6013
6074
|
* ```
|
|
@@ -6016,12 +6077,12 @@ type AppDomainConfig = string | Record<string, string>;
|
|
|
6016
6077
|
* ```ts
|
|
6017
6078
|
* deploy: {
|
|
6018
6079
|
* default: 'dokploy',
|
|
6080
|
+
* registry: 'ghcr.io/myorg',
|
|
6019
6081
|
* dokploy: {
|
|
6020
6082
|
* endpoints: {
|
|
6021
6083
|
* development: 'https://dev-dokploy.myserver.com',
|
|
6022
6084
|
* production: 'https://dokploy.myserver.com',
|
|
6023
6085
|
* },
|
|
6024
|
-
* registry: 'ghcr.io/myorg',
|
|
6025
6086
|
* },
|
|
6026
6087
|
* }
|
|
6027
6088
|
* ```
|
|
@@ -6031,10 +6092,33 @@ interface DokployWorkspaceConfig {
|
|
|
6031
6092
|
endpoint?: string;
|
|
6032
6093
|
/** Per-stage Dokploy API endpoints (overrides endpoint) */
|
|
6033
6094
|
endpoints?: Record<string, string>;
|
|
6034
|
-
/** Container registry for Docker images (e.g., 'ghcr.io/myorg') */
|
|
6035
|
-
registry?: string;
|
|
6036
6095
|
/** Registry ID in Dokploy (auto-configured) */
|
|
6037
6096
|
registryId?: string;
|
|
6097
|
+
/** How a release is waited for and checked before it counts as live. */
|
|
6098
|
+
verify?: DokployVerifyConfig;
|
|
6099
|
+
}
|
|
6100
|
+
/**
|
|
6101
|
+
* How a Dokploy release is waited for and checked.
|
|
6102
|
+
*
|
|
6103
|
+
* A release counts once Dokploy's deployment has finished and the app has
|
|
6104
|
+
* answered its health route `healthyAfter` times in a row. One that does not
|
|
6105
|
+
* is rolled back.
|
|
6106
|
+
*/
|
|
6107
|
+
interface DokployVerifyConfig {
|
|
6108
|
+
/** How long Dokploy may take to finish a deployment. Default 10 minutes. */
|
|
6109
|
+
deploymentTimeoutMs?: number;
|
|
6110
|
+
/**
|
|
6111
|
+
* The path each backend is checked on, under its domain. Default
|
|
6112
|
+
* `/health`, which every production server build serves. A site is
|
|
6113
|
+
* checked at `/`.
|
|
6114
|
+
*/
|
|
6115
|
+
healthCheckPath?: string;
|
|
6116
|
+
/** Consecutive 2xx answers that make an app healthy. Default 3. */
|
|
6117
|
+
healthyAfter?: number;
|
|
6118
|
+
/** Between health checks, and the first wait between polls. Default 2s. */
|
|
6119
|
+
intervalMs?: number;
|
|
6120
|
+
/** How long an app may take to become healthy. Default 5 minutes. */
|
|
6121
|
+
healthTimeoutMs?: number;
|
|
6038
6122
|
}
|
|
6039
6123
|
/**
|
|
6040
6124
|
* Deployment configuration for the workspace.
|
|
@@ -6049,10 +6133,10 @@ interface DokployWorkspaceConfig {
|
|
|
6049
6133
|
* // Full configuration with DNS and backups
|
|
6050
6134
|
* deploy: {
|
|
6051
6135
|
* default: 'dokploy',
|
|
6136
|
+
* registry: 'ghcr.io/myorg',
|
|
6052
6137
|
* dokploy: {
|
|
6053
6138
|
* endpoint: 'https://dokploy.myserver.com',
|
|
6054
6139
|
* projectId: 'proj_abc123',
|
|
6055
|
-
* registry: 'ghcr.io/myorg',
|
|
6056
6140
|
* domains: {
|
|
6057
6141
|
* production: 'myapp.com',
|
|
6058
6142
|
* },
|
|
@@ -6101,6 +6185,12 @@ interface DeployConfig {
|
|
|
6101
6185
|
namespace?: string;
|
|
6102
6186
|
/** Each deployed stage's base domain — see {@link DomainsConfig}. */
|
|
6103
6187
|
domains?: DomainsConfig;
|
|
6188
|
+
/**
|
|
6189
|
+
* The container registry the apps' images are pushed to and pulled from,
|
|
6190
|
+
* whatever the target — `ghcr.io/myorg`. An image is
|
|
6191
|
+
* `<registry>/<namespace>/<project>-<app>:<tag>`.
|
|
6192
|
+
*/
|
|
6193
|
+
registry?: string;
|
|
6104
6194
|
/** Dokploy-specific configuration */
|
|
6105
6195
|
dokploy?: DokployWorkspaceConfig;
|
|
6106
6196
|
/** DNS configuration for automatic record creation */
|
|
@@ -6654,6 +6744,7 @@ type InferredWorkspaceConfig<TApps extends AppsRecord> = {
|
|
|
6654
6744
|
* // Deployment configuration
|
|
6655
6745
|
* deploy: {
|
|
6656
6746
|
* default: 'dokploy',
|
|
6747
|
+
* registry: 'ghcr.io/myorg',
|
|
6657
6748
|
* domains: {
|
|
6658
6749
|
* production: 'myapp.com',
|
|
6659
6750
|
* staging: 'staging.myapp.com',
|
|
@@ -6661,7 +6752,6 @@ type InferredWorkspaceConfig<TApps extends AppsRecord> = {
|
|
|
6661
6752
|
* dokploy: {
|
|
6662
6753
|
* endpoint: 'https://dokploy.myserver.com',
|
|
6663
6754
|
* projectId: 'proj_abc123',
|
|
6664
|
-
* registry: 'ghcr.io/myorg',
|
|
6665
6755
|
* },
|
|
6666
6756
|
* },
|
|
6667
6757
|
*
|
|
@@ -7034,5 +7124,5 @@ interface GkmConfig {
|
|
|
7034
7124
|
deploy?: DeployConfig;
|
|
7035
7125
|
}
|
|
7036
7126
|
//#endregion
|
|
7037
|
-
export { DeployEventError as $, PHASE_2_DEPLOY_TARGETS as A, DeployFailure as B, WorkspaceConfig as C, Framework as D, BackendFramework as E, isDeployTargetSupported as F, DeployTargetCapabilities as G, DeployRuntime as H, isPhase2DeployTarget as I, TargetEvent as J, DeployTargetEntry as K, safeValidateWorkspaceConfig as L, WorkspaceConfigSchema as M, formatValidationErrors as N, FrontendFramework as O, getDeployTargetError as P, DeployEvent as Q, validateWorkspaceConfig as R, SharedConfig as S, isWorkspaceConfig as T, DeploySecrets as U, DeployPhaseContext as V, DeployTarget as W, TargetOptionsIssue as X, TargetOptions as Y, TargetOptionsSchema as Z, LoadedConfig as _, StateStore as _t, Routes as a, DeployResult as at, NormalizedWorkspace as b,
|
|
7038
|
-
//# sourceMappingURL=types-
|
|
7127
|
+
export { DeployEventError as $, PHASE_2_DEPLOY_TARGETS as A, DeployFailure as B, WorkspaceConfig as C, Framework as D, BackendFramework as E, isDeployTargetSupported as F, DeployTargetCapabilities as G, DeployRuntime as H, isPhase2DeployTarget as I, TargetEvent as J, DeployTargetEntry as K, safeValidateWorkspaceConfig as L, WorkspaceConfigSchema as M, formatValidationErrors as N, FrontendFramework as O, getDeployTargetError as P, DeployEvent as Q, validateWorkspaceConfig as R, SharedConfig as S, deployIdentity as St, isWorkspaceConfig as T, DeploySecrets as U, DeployPhaseContext as V, DeployTarget as W, TargetOptionsIssue as X, TargetOptions as Y, TargetOptionsSchema as Z, LoadedConfig as _, StateStore as _t, Routes as a, DeployResult as at, NormalizedWorkspace as b, StageSecrets as bt, AppInput as c, CredentialKind as ct, DeployConfig as d, CredentialRequest as dt, DeployEventType as et, DeployTargetName as f, MissingCredential as ft, InferredWorkspaceConfig as g, StateLocked as gt, InferAppNames as h, storedCredentials as ht, OpenApiConfig as i, AppDeployResult as it, SUPPORTED_DEPLOY_TARGETS as j, MobileFramework as k, AppsRecord as l, CredentialKinds as lt, DokployWorkspaceConfig as m, chainCredentials as mt, EmailBackend as n, ResourceChange as nt, AppConfig as o, AwsCredential as ot, DevConfig as p, StoredCredentialsOptions as pt, DeployTargetLogger as q, GkmConfig as r, ResourceVia as rt, AppConfigInput as s, Credential as st, CacheBackend as t, DeployPhase as tt, ConstrainedApps as u, CredentialProvider as ut, ModelsConfig as v, StateVersionConflict as vt, WorkspaceInput as w, SecretsConfig as x, DeployIdentity as xt, NormalizedAppConfig as y, ReleasedImage as yt, AnyDeployTarget as z };
|
|
7128
|
+
//# sourceMappingURL=types-CSw2w69a.d.mts.map
|