@geekmidas/cli 10.0.0-alpha.96 → 10.0.0-alpha.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{GoDaddyProvider-BsUKjGcg.mjs → GoDaddyProvider-C2fK-zeQ.mjs} +2 -2
- package/dist/{GoDaddyProvider-BsUKjGcg.mjs.map → GoDaddyProvider-C2fK-zeQ.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-DyHXHDHe.cjs → GoDaddyProvider-SLlyDwD1.cjs} +2 -2
- package/dist/{GoDaddyProvider-DyHXHDHe.cjs.map → GoDaddyProvider-SLlyDwD1.cjs.map} +1 -1
- package/dist/{LegacyStateStore-BnMcONE0.cjs → LegacyStateStore-CAvxM8U5.cjs} +3 -3
- package/dist/{LegacyStateStore-BnMcONE0.cjs.map → LegacyStateStore-CAvxM8U5.cjs.map} +1 -1
- package/dist/{LegacyStateStore-B6SOqRFi.mjs → LegacyStateStore-D9QDWCst.mjs} +3 -3
- package/dist/{LegacyStateStore-B6SOqRFi.mjs.map → LegacyStateStore-D9QDWCst.mjs.map} +1 -1
- package/dist/{LocalStateStore-6CrsZzqI.mjs → LocalStateStore-DPQSqkSb.mjs} +2 -2
- package/dist/{LocalStateStore-6CrsZzqI.mjs.map → LocalStateStore-DPQSqkSb.mjs.map} +1 -1
- package/dist/{LocalStateStore-pd4bbdJJ.cjs → LocalStateStore-QcrdjCl6.cjs} +2 -2
- package/dist/{LocalStateStore-pd4bbdJJ.cjs.map → LocalStateStore-QcrdjCl6.cjs.map} +1 -1
- package/dist/{S3StateStore-CoGk6ZKU.cjs → S3StateStore-C16tVikU.cjs} +73 -11
- package/dist/S3StateStore-C16tVikU.cjs.map +1 -0
- package/dist/{S3StateStore-DP_7Q4yb.mjs → S3StateStore-jorgKaee.mjs} +73 -11
- package/dist/S3StateStore-jorgKaee.mjs.map +1 -0
- package/dist/{SSMStateStore-Bo6_KDYY.mjs → SSMStateStore-Dvjt_INw.mjs} +58 -7
- package/dist/SSMStateStore-Dvjt_INw.mjs.map +1 -0
- package/dist/{SSMStateStore-D9s4_Do3.cjs → SSMStateStore-mPAEr2P2.cjs} +58 -7
- package/dist/SSMStateStore-mPAEr2P2.cjs.map +1 -0
- package/dist/{add-BQS2QZHp.mjs → add-CZIIsTcv.mjs} +4 -4
- package/dist/{add-BQS2QZHp.mjs.map → add-CZIIsTcv.mjs.map} +1 -1
- package/dist/{add-CjURJ-vI.cjs → add-SRk65Udu.cjs} +4 -4
- package/dist/{add-CjURJ-vI.cjs.map → add-SRk65Udu.cjs.map} +1 -1
- package/dist/{aws-Dz2bYxK1.mjs → aws-8QQ8n-t6.mjs} +2 -2
- package/dist/{aws-Dz2bYxK1.mjs.map → aws-8QQ8n-t6.mjs.map} +1 -1
- package/dist/{aws-BTReGjpY.cjs → aws-DY9NqQIT.cjs} +2 -2
- package/dist/{aws-BTReGjpY.cjs.map → aws-DY9NqQIT.cjs.map} +1 -1
- package/dist/{awsStore-BWa1KNY-.mjs → awsStore-Bx5nCFnS.mjs} +8 -6
- package/dist/awsStore-Bx5nCFnS.mjs.map +1 -0
- package/dist/{awsStore-B5We7bMg.cjs → awsStore-u3ehhMoY.cjs} +8 -6
- package/dist/awsStore-u3ehhMoY.cjs.map +1 -0
- package/dist/{bundler-DmLJQ7AY.cjs → bundler-B0Pj5FXT.cjs} +5 -5
- package/dist/{bundler-DmLJQ7AY.cjs.map → bundler-B0Pj5FXT.cjs.map} +1 -1
- package/dist/{bundler-BMM3UsGm.mjs → bundler-DxJ-cIEt.mjs} +5 -5
- package/dist/{bundler-BMM3UsGm.mjs.map → bundler-DxJ-cIEt.mjs.map} +1 -1
- package/dist/{cli-C2c-jOVK.cjs → cli-CRDJWWmZ.cjs} +2 -2
- package/dist/{cli-C2c-jOVK.cjs.map → cli-CRDJWWmZ.cjs.map} +1 -1
- package/dist/{cli-Ce6NgaQF.mjs → cli-CV85bY3-.mjs} +2 -2
- package/dist/{cli-Ce6NgaQF.mjs.map → cli-CV85bY3-.mjs.map} +1 -1
- package/dist/{compose-BJDPFBAN.mjs → compose-CQQRRJC3.mjs} +7 -7
- package/dist/{compose-BJDPFBAN.mjs.map → compose-CQQRRJC3.mjs.map} +1 -1
- package/dist/{compose-ETFKqkTu.cjs → compose-DMY4ouEk.cjs} +7 -7
- package/dist/{compose-ETFKqkTu.cjs.map → compose-DMY4ouEk.cjs.map} +1 -1
- package/dist/{config-C8NPCn1l.d.mts → config-CS76CzXM.d.cts} +4 -4
- package/dist/{config-4yirvxS8.d.cts.map → config-CS76CzXM.d.cts.map} +1 -1
- package/dist/{config-4yirvxS8.d.cts → config-pBzLfNef.d.mts} +4 -4
- package/dist/{config-C8NPCn1l.d.mts.map → config-pBzLfNef.d.mts.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +1 -1
- package/dist/deploy/public.cjs +7 -7
- package/dist/deploy/public.d.cts +5 -5
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +5 -5
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +7 -7
- package/dist/{deploy-BdN0ym2i.cjs → deploy-277jek46.cjs} +19 -8
- package/dist/deploy-277jek46.cjs.map +1 -0
- package/dist/{deploy-DktQl7ti.mjs → deploy-Dw8g3sLY.mjs} +19 -8
- package/dist/{deploy-DktQl7ti.mjs.map → deploy-Dw8g3sLY.mjs.map} +1 -1
- package/dist/{discover-D-MdXZgm.d.mts → discover-CU1LjCOf.d.cts} +2 -2
- package/dist/{discover-BtFofyQB.d.cts.map → discover-CU1LjCOf.d.cts.map} +1 -1
- package/dist/{discover-BtFofyQB.d.cts → discover-DJCCgimv.d.mts} +2 -2
- package/dist/{discover-D-MdXZgm.d.mts.map → discover-DJCCgimv.d.mts.map} +1 -1
- package/dist/{dns-ClI7-d5g.cjs → dns-4RAiVFa7.cjs} +5 -5
- package/dist/{dns-ClI7-d5g.cjs.map → dns-4RAiVFa7.cjs.map} +1 -1
- package/dist/{dns-BjHECDO7.mjs → dns-CU22K_i0.mjs} +5 -5
- package/dist/{dns-BjHECDO7.mjs.map → dns-CU22K_i0.mjs.map} +1 -1
- package/dist/{dns-C-X6PLkV.cjs → dns-Dhjbnjgl.cjs} +3 -3
- package/dist/{dns-C-X6PLkV.cjs.map → dns-Dhjbnjgl.cjs.map} +1 -1
- package/dist/{dns-C2EeR6n2.mjs → dns-LqWzPb8l.mjs} +3 -3
- package/dist/{dns-C2EeR6n2.mjs.map → dns-LqWzPb8l.mjs.map} +1 -1
- package/dist/{dokploy-CxtkS5hl.mjs → dokploy-D_uCbZQ7.mjs} +2 -2
- package/dist/{dokploy-CxtkS5hl.mjs.map → dokploy-D_uCbZQ7.mjs.map} +1 -1
- package/dist/{dokploy-CD_Bc4EV.cjs → dokploy-Dw4oCXqR.cjs} +2 -2
- package/dist/{dokploy-CD_Bc4EV.cjs.map → dokploy-Dw4oCXqR.cjs.map} +1 -1
- package/dist/{encryption-BgQd4f2S.mjs → encryption-C0uKYE9v.mjs} +3 -3
- package/dist/{encryption-BgQd4f2S.mjs.map → encryption-C0uKYE9v.mjs.map} +1 -1
- package/dist/{encryption-CqVfz-m7.cjs → encryption-CtVPHWWq.cjs} +3 -3
- package/dist/{encryption-CqVfz-m7.cjs.map → encryption-CtVPHWWq.cjs.map} +1 -1
- package/dist/{engine-YlXzlTUl.mjs → engine-BE5PdE8S.mjs} +4 -4
- package/dist/{engine-YlXzlTUl.mjs.map → engine-BE5PdE8S.mjs.map} +1 -1
- package/dist/{engine-OVVKtPmW.cjs → engine-HI8aLw1M.cjs} +4 -4
- package/dist/{engine-OVVKtPmW.cjs.map → engine-HI8aLw1M.cjs.map} +1 -1
- package/dist/{github-CsMloeSL.cjs → github-BCdfZ9zO.cjs} +63 -26
- package/dist/github-BCdfZ9zO.cjs.map +1 -0
- package/dist/{github-DuuvqI3Z.mjs → github-CT3X720_.mjs} +63 -26
- package/dist/github-CT3X720_.mjs.map +1 -0
- package/dist/{index-5eL8rM6H.d.mts → index-DKtB01YC.d.cts} +2 -2
- package/dist/{index-5eL8rM6H.d.mts.map → index-DKtB01YC.d.cts.map} +1 -1
- package/dist/{index-Dz-gyjm_.d.cts → index-ZAUrXH6Q.d.mts} +2 -2
- package/dist/{index-Dz-gyjm_.d.cts.map → index-ZAUrXH6Q.d.mts.map} +1 -1
- package/dist/index.cjs +81 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +81 -62
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-CB8B6W9y.mjs → migrate-CCZUgxMK.mjs} +3 -3
- package/dist/{migrate-CB8B6W9y.mjs.map → migrate-CCZUgxMK.mjs.map} +1 -1
- package/dist/{migrate-BAmJeVq1.cjs → migrate-Cs7kQxD5.cjs} +3 -3
- package/dist/{migrate-BAmJeVq1.cjs.map → migrate-Cs7kQxD5.cjs.map} +1 -1
- package/dist/migrate-DBGyoBvZ.cjs +181 -0
- package/dist/migrate-DBGyoBvZ.cjs.map +1 -0
- package/dist/migrate-DH-lOK3j.mjs +181 -0
- package/dist/migrate-DH-lOK3j.mjs.map +1 -0
- 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/projectBucket-BjeDcAYy.cjs +206 -0
- package/dist/projectBucket-BjeDcAYy.cjs.map +1 -0
- package/dist/projectBucket-DrkEht-j.mjs +177 -0
- package/dist/projectBucket-DrkEht-j.mjs.map +1 -0
- package/dist/reconcile/public.d.cts +2 -2
- package/dist/reconcile/public.d.mts +2 -2
- package/dist/{resolve-BDatNOoG.cjs → resolve-CScrqgdC.cjs} +3 -3
- package/dist/{resolve-BDatNOoG.cjs.map → resolve-CScrqgdC.cjs.map} +1 -1
- package/dist/{resolve-CUne0qOm.mjs → resolve-OfLaxaxY.mjs} +3 -3
- package/dist/{resolve-CUne0qOm.mjs.map → resolve-OfLaxaxY.mjs.map} +1 -1
- package/dist/{rollback-CuG3DkTY.cjs → rollback-D7p4wJNO.cjs} +7 -6
- package/dist/{rollback-CuG3DkTY.cjs.map → rollback-D7p4wJNO.cjs.map} +1 -1
- package/dist/{rollback-CCdEEEcF.mjs → rollback-DQBSN-i7.mjs} +7 -6
- package/dist/{rollback-CCdEEEcF.mjs.map → rollback-DQBSN-i7.mjs.map} +1 -1
- package/dist/{runtime-Vr6mleo2.d.mts → runtime-BlHOVx8L.d.cts} +2 -2
- package/dist/{runtime-DUQdM-mW.d.cts.map → runtime-BlHOVx8L.d.cts.map} +1 -1
- package/dist/{runtime-DUQdM-mW.d.cts → runtime-DMq9C3KB.d.mts} +2 -2
- package/dist/{runtime-Vr6mleo2.d.mts.map → runtime-DMq9C3KB.d.mts.map} +1 -1
- package/dist/s3-CUKzBBae.mjs +215 -0
- package/dist/s3-CUKzBBae.mjs.map +1 -0
- package/dist/s3-QQi4sNOQ.cjs +215 -0
- package/dist/s3-QQi4sNOQ.cjs.map +1 -0
- package/dist/{sandbox-DGOsMPMf.d.mts → sandbox-ArJ_hEKk.d.cts} +2 -2
- package/dist/{sandbox-BbJmh2rI.d.cts.map → sandbox-ArJ_hEKk.d.cts.map} +1 -1
- package/dist/{sandbox-BbJmh2rI.d.cts → sandbox-Cm4X6HRh.d.mts} +2 -2
- package/dist/{sandbox-DGOsMPMf.d.mts.map → sandbox-Cm4X6HRh.d.mts.map} +1 -1
- package/dist/{secrets-ZikTIxEm.mjs → secrets-AA_tQUl-.mjs} +3 -3
- package/dist/{secrets-ZikTIxEm.mjs.map → secrets-AA_tQUl-.mjs.map} +1 -1
- package/dist/{secrets-C5qROlbp.cjs → secrets-B_biKsKx.cjs} +3 -3
- package/dist/{secrets-C5qROlbp.cjs.map → secrets-B_biKsKx.cjs.map} +1 -1
- package/dist/{secretsManager-C6wm-9uZ.mjs → secretsManager-CQORubp9.mjs} +2 -2
- package/dist/{secretsManager-C6wm-9uZ.mjs.map → secretsManager-CQORubp9.mjs.map} +1 -1
- package/dist/{secretsManager-Cwwgs81g.cjs → secretsManager-RAGcEDX1.cjs} +2 -2
- package/dist/{secretsManager-Cwwgs81g.cjs.map → secretsManager-RAGcEDX1.cjs.map} +1 -1
- package/dist/{seeds-CbJSne1A.mjs → seeds-BvxWUGKJ.mjs} +32 -6
- package/dist/seeds-BvxWUGKJ.mjs.map +1 -0
- package/dist/{seeds-BjXW-Krf.cjs → seeds-Df4BI-T3.cjs} +32 -6
- package/dist/seeds-Df4BI-T3.cjs.map +1 -0
- package/dist/{sniffer-DQGBYY8i.mjs → sniffer-BqjXvcaK.mjs} +77 -11
- package/dist/sniffer-BqjXvcaK.mjs.map +1 -0
- package/dist/{sniffer-NPD1dyab.cjs → sniffer-DZeQJKty.cjs} +100 -10
- package/dist/sniffer-DZeQJKty.cjs.map +1 -0
- package/dist/{stack-BFq3K-_z.mjs → stack-A6MAFZ6u.mjs} +3 -3
- package/dist/{stack-BFq3K-_z.mjs.map → stack-A6MAFZ6u.mjs.map} +1 -1
- package/dist/{stack-DOVvEd1T.cjs → stack-BpkZEEfB.cjs} +3 -3
- package/dist/{stack-DOVvEd1T.cjs.map → stack-BpkZEEfB.cjs.map} +1 -1
- package/dist/{stages-BEn2ArJZ.mjs → stages-6SEoRA4x.mjs} +6 -5
- package/dist/stages-6SEoRA4x.mjs.map +1 -0
- package/dist/{stages-Cw6urZyJ.cjs → stages-DH5z89eT.cjs} +6 -5
- package/dist/stages-DH5z89eT.cjs.map +1 -0
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +1 -1
- package/dist/{types-dipJRmKV.d.cts → types-DipUP9zp.d.cts} +82 -11
- package/dist/types-DipUP9zp.d.cts.map +1 -0
- package/dist/{types-bkqVscdN.d.mts → types-Drpl9HX9.d.mts} +82 -11
- package/dist/types-Drpl9HX9.d.mts.map +1 -0
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-CqFUjObk.mjs → workspace-BBeT6Pil.mjs} +63 -7
- package/dist/workspace-BBeT6Pil.mjs.map +1 -0
- package/dist/{workspace-DDkm4y6D.cjs → workspace-BJ78Bgvm.cjs} +74 -6
- package/dist/workspace-BJ78Bgvm.cjs.map +1 -0
- package/package.json +16 -15
- package/dist/S3StateStore-CoGk6ZKU.cjs.map +0 -1
- package/dist/S3StateStore-DP_7Q4yb.mjs.map +0 -1
- package/dist/SSMStateStore-Bo6_KDYY.mjs.map +0 -1
- package/dist/SSMStateStore-D9s4_Do3.cjs.map +0 -1
- package/dist/awsStore-B5We7bMg.cjs.map +0 -1
- package/dist/awsStore-BWa1KNY-.mjs.map +0 -1
- package/dist/deploy-BdN0ym2i.cjs.map +0 -1
- package/dist/github-CsMloeSL.cjs.map +0 -1
- package/dist/github-DuuvqI3Z.mjs.map +0 -1
- package/dist/migrate-BdkoNdIu.cjs +0 -94
- package/dist/migrate-BdkoNdIu.cjs.map +0 -1
- package/dist/migrate-CsPFHgTs.mjs +0 -94
- package/dist/migrate-CsPFHgTs.mjs.map +0 -1
- package/dist/seeds-BjXW-Krf.cjs.map +0 -1
- package/dist/seeds-CbJSne1A.mjs.map +0 -1
- package/dist/sniffer-DQGBYY8i.mjs.map +0 -1
- package/dist/sniffer-NPD1dyab.cjs.map +0 -1
- package/dist/stages-BEn2ArJZ.mjs.map +0 -1
- package/dist/stages-Cw6urZyJ.cjs.map +0 -1
- package/dist/types-bkqVscdN.d.mts.map +0 -1
- package/dist/types-dipJRmKV.d.cts.map +0 -1
- package/dist/workspace-CqFUjObk.mjs.map +0 -1
- package/dist/workspace-DDkm4y6D.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import { r as DEFAULT_TIMEOUT_MS, t as CommandFailed } from "./run-BJLIerMM.mjs"
|
|
|
5
5
|
import { a as getDokployCredentials, d as removeGoDaddyCredentials, f as storeDokployCredentials, i as getCredentialsPath, l as readCredentials, m as storeHostingerToken, o as getDokployRegistryId, p as storeGoDaddyToken, s as getDokployToken, u as removeDokployCredentials } from "./credentials-B5N5yKk6.mjs";
|
|
6
6
|
import { l as withOwningTsconfigJsx, r as discover, u as ConstructGenerator } from "./discover-qjFapetL.mjs";
|
|
7
7
|
import { t as appKey } from "./derive-B4vDpzgP.mjs";
|
|
8
|
-
import { A as InvalidStages, F as stageProblems, P as deployedProblems, R as stageSampleRate, a as allConstructGlobs, d as getAppGkmConfig, j as TEST_STAGE, u as getAppBuildOrder } from "./workspace-
|
|
8
|
+
import { A as InvalidStages, F as stageProblems, P as deployedProblems, R as stageSampleRate, a as allConstructGlobs, d as getAppGkmConfig, j as TEST_STAGE, u as getAppBuildOrder } from "./workspace-BBeT6Pil.mjs";
|
|
9
9
|
import { ConfigNotFound, NotABackendApp, NotInAnApp, loadAppConfig, loadConfig, loadWorkspaceConfig, loadWorkspaceSettings, parseModuleConfig } from "./config.mjs";
|
|
10
|
-
import { C as assertDevServicesFlag, Cn as loadEnvFiles, Ct as LOCAL_CA_PATH, En as prepareEntryCredentials, Ft as pgClient, Gn as maskPassword, Jn as withCustomSecret, Jt as imageBuildCredentials, Ln as deployIdentity, Mn as getKeyPath, On as secretsStoreFor, Pn as projectKey, Qt as providerOf, Sn as isPortAvailable, Tn as loadSecretsForApp, Xt as cacheBackendFor, Yn as LOCAL_LOGS_EMAIL, Yt as isImageBuild, Zt as eventsBackendFor, _n as portsOf, at as CronGenerator, bn as createEntryWrapper, ct as constructGlobs, dn as telemetryOf, en as CLUSTER_DATABASE, et as workerUnits, g as describeActor, hn as fakeKey, ht as readLocalCredentials, it as QueueGenerator, jn as FileSecretsStore, jt as quoteIdentifier, kt as postgresDatabaseNames, ln as scopeTelemetryEnv, lt as derivedContainers, mn as describeServices, nt as workerBundleName, ot as FAKE_ENV, p as dnsResources, qn as toEmbeddableSecrets, rn as TELEMETRY_CONTAINER, rt as workerEntryDir, s as dockerCommand, sn as appTelemetry, st as backendsOf$1, tt as WorkerGenerator, un as surfaceClientTraced, ut as reconcileWorkspace, vn as primaryPortKey, wn as loadPortState, wt as forgetState, xn as findAvailablePort, yn as createCredentialsPreload } from "./seeds-
|
|
10
|
+
import { C as assertDevServicesFlag, Cn as loadEnvFiles, Ct as LOCAL_CA_PATH, En as prepareEntryCredentials, Ft as pgClient, Gn as maskPassword, Jn as withCustomSecret, Jt as imageBuildCredentials, Ln as deployIdentity, Mn as getKeyPath, On as secretsStoreFor, Pn as projectKey, Qt as providerOf, Sn as isPortAvailable, Tn as loadSecretsForApp, Xt as cacheBackendFor, Yn as LOCAL_LOGS_EMAIL, Yt as isImageBuild, Zt as eventsBackendFor, _n as portsOf, at as CronGenerator, bn as createEntryWrapper, ct as constructGlobs, dn as telemetryOf, en as CLUSTER_DATABASE, et as workerUnits, g as describeActor, hn as fakeKey, ht as readLocalCredentials, it as QueueGenerator, jn as FileSecretsStore, jt as quoteIdentifier, kt as postgresDatabaseNames, ln as scopeTelemetryEnv, lt as derivedContainers, mn as describeServices, nt as workerBundleName, ot as FAKE_ENV, p as dnsResources, qn as toEmbeddableSecrets, rn as TELEMETRY_CONTAINER, rt as workerEntryDir, s as dockerCommand, sn as appTelemetry, st as backendsOf$1, tt as WorkerGenerator, un as surfaceClientTraced, ut as reconcileWorkspace, vn as primaryPortKey, wn as loadPortState, wt as forgetState, xn as findAvailablePort, yn as createCredentialsPreload } from "./seeds-BvxWUGKJ.mjs";
|
|
11
11
|
import { c as startTelemetryCode, l as telemetryFor, n as runtimeFor, o as mountRequestSpansCode, r as parseTelemetryFlag, s as routeTelemetry, t as EndpointGenerator, u as writeTelemetryModule } from "./EndpointGenerator-Bor2tZCm.mjs";
|
|
12
12
|
import { generateOpenApi, openapiCommand, resolveOpenApiConfig } from "./openapi.mjs";
|
|
13
13
|
import { s as isCacheBackend, t as SubscriberGenerator } from "./SubscriberGenerator-CyN2VF5X.mjs";
|
|
@@ -15,12 +15,12 @@ import { a as describeHolder, i as assignAppPorts, o as holderOf, r as appTag, s
|
|
|
15
15
|
import { n as driversFor, r as eventsBackendsIn, t as cacheBackendsIn } from "./drivers-CTaWrA_L.mjs";
|
|
16
16
|
import { n as withCompute, r as withRoutes, t as manifestModule } from "./emit-C1e8qD08.mjs";
|
|
17
17
|
import { t as LocalSandbox } from "./local-BwC2v2Y8.mjs";
|
|
18
|
-
import {
|
|
19
|
-
import { t as deploy$1 } from "./deploy-
|
|
18
|
+
import { S as createStateStore, k as keyFingerprint, n as sniffAppEnvironment, o as DokployApi } from "./sniffer-BqjXvcaK.mjs";
|
|
19
|
+
import { t as deploy$1 } from "./deploy-Dw8g3sLY.mjs";
|
|
20
20
|
import { o as loadCredentialSchemas, t as CredentialsInvalid } from "./credentialSchemas-BJFvfkaz.mjs";
|
|
21
|
-
import { a as stackOverrideFile, c as dockerCompose, i as ComposePushNeedsBuild, o as edgeDir, r as ComposePinNeedsPull, s as removeEdgeRoutes, t as composeTarget } from "./compose-
|
|
22
|
-
import { d as parseDigests, h as EDGE_PROJECT, i as composeProject, p as pinnedRef, s as stackDir } from "./stack-
|
|
23
|
-
import { t as LocalStateStore } from "./LocalStateStore-
|
|
21
|
+
import { a as stackOverrideFile, c as dockerCompose, i as ComposePushNeedsBuild, o as edgeDir, r as ComposePinNeedsPull, s as removeEdgeRoutes, t as composeTarget } from "./compose-CQQRRJC3.mjs";
|
|
22
|
+
import { d as parseDigests, h as EDGE_PROJECT, i as composeProject, p as pinnedRef, s as stackDir } from "./stack-A6MAFZ6u.mjs";
|
|
23
|
+
import { t as LocalStateStore } from "./LocalStateStore-DPQSqkSb.mjs";
|
|
24
24
|
import { a as getExecCommand, c as validateProjectName, i as findWorkspaceRoot, n as detectPackageManager$1, o as getInstallCommand, r as findWorkspacePackages, s as getRunCommand, t as checkDirectoryExists } from "./utils-D_fxUqvU.mjs";
|
|
25
25
|
import { a as writeTestHarness, i as TEST_MANIFEST_ENV, n as TEST_READY_FILE, t as TEST_READY_ENV } from "./ready-naOSJpeJ.mjs";
|
|
26
26
|
import { createRequire } from "node:module";
|
|
@@ -50,7 +50,7 @@ import crypto from "crypto";
|
|
|
50
50
|
import { Function } from "@geekmidas/constructs/functions";
|
|
51
51
|
import { Topic } from "@geekmidas/constructs/topic";
|
|
52
52
|
//#region package.json
|
|
53
|
-
var version = "10.0.0-alpha.
|
|
53
|
+
var version = "10.0.0-alpha.98";
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/prompt.ts
|
|
56
56
|
/**
|
|
@@ -133,7 +133,7 @@ const logger$8 = console;
|
|
|
133
133
|
* Validate Dokploy token by making a test API call
|
|
134
134
|
*/
|
|
135
135
|
async function validateDokployToken(endpoint, token) {
|
|
136
|
-
const { DokployApi } = await import("./sniffer-
|
|
136
|
+
const { DokployApi } = await import("./sniffer-BqjXvcaK.mjs").then((n) => n.c);
|
|
137
137
|
return new DokployApi({
|
|
138
138
|
baseUrl: endpoint,
|
|
139
139
|
token
|
|
@@ -2327,9 +2327,9 @@ async function workspaceDevCommand(configured, options) {
|
|
|
2327
2327
|
for (const { id, port } of fakes) logger$5.log(`🎭 ${id} fake: http://localhost:${port}`);
|
|
2328
2328
|
logger$5.log(options.migrate || options.seed ? "🗄️ Migrating the databases" : "🗄️ Checking for pending migrations");
|
|
2329
2329
|
if (options.migrate || options.seed) {
|
|
2330
|
-
const { prepareDevDatabases } = await import("./migrate-
|
|
2330
|
+
const { prepareDevDatabases } = await import("./migrate-CCZUgxMK.mjs");
|
|
2331
2331
|
await prepareDevDatabases(workspace, reconciled.env, { seed: !!options.seed });
|
|
2332
|
-
} else await import("./migrate-
|
|
2332
|
+
} else await import("./migrate-CCZUgxMK.mjs").then(({ reportPendingMigrations }) => reportPendingMigrations(workspace, reconciled.env)).catch((error) => {
|
|
2333
2333
|
logger$5.log(`⚠️ Could not check for pending migrations: ${error instanceof Error ? error.message : String(error)}`);
|
|
2334
2334
|
});
|
|
2335
2335
|
const appUrls = {};
|
|
@@ -3382,7 +3382,7 @@ async function buildApp(input) {
|
|
|
3382
3382
|
...production,
|
|
3383
3383
|
...telemetry ? { telemetry } : {}
|
|
3384
3384
|
});
|
|
3385
|
-
const { bundleServer } = await import("./bundler-
|
|
3385
|
+
const { bundleServer } = await import("./bundler-DxJ-cIEt.mjs");
|
|
3386
3386
|
await bundleServer({
|
|
3387
3387
|
entryPoint,
|
|
3388
3388
|
outputDir: join(outputDir, "dist"),
|
|
@@ -3527,7 +3527,7 @@ async function buildWorkers(input) {
|
|
|
3527
3527
|
});
|
|
3528
3528
|
logger$4.log(`Generated worker ${worker.id}: ${crons.length} crons, ${queues.length} queues, ${subscribers.length} subscribers`);
|
|
3529
3529
|
if (!input.bundle) continue;
|
|
3530
|
-
const { bundleServer } = await import("./bundler-
|
|
3530
|
+
const { bundleServer } = await import("./bundler-DxJ-cIEt.mjs");
|
|
3531
3531
|
const outfile = workerBundleName(worker.id);
|
|
3532
3532
|
await bundleServer({
|
|
3533
3533
|
entryPoint,
|
|
@@ -3613,7 +3613,7 @@ async function buildForTarget(target, context, appRoot, workspaceRoot, endpointG
|
|
|
3613
3613
|
let masterKey;
|
|
3614
3614
|
if (context.production?.bundle && !skipBundle) {
|
|
3615
3615
|
logger$4.log(`\n📦 Bundling production server...`);
|
|
3616
|
-
const { bundleServer } = await import("./bundler-
|
|
3616
|
+
const { bundleServer } = await import("./bundler-DxJ-cIEt.mjs");
|
|
3617
3617
|
const allConstructs = [
|
|
3618
3618
|
...endpoints.map((e) => e.construct),
|
|
3619
3619
|
...functions.map((f) => f.construct),
|
|
@@ -4184,7 +4184,8 @@ async function stateShowCommand(options) {
|
|
|
4184
4184
|
const stored = await (await createStateStore({
|
|
4185
4185
|
config: workspace.state,
|
|
4186
4186
|
workspaceRoot: workspace.root,
|
|
4187
|
-
workspaceName: workspace.name
|
|
4187
|
+
workspaceName: workspace.name,
|
|
4188
|
+
namespace: workspace.deploy?.namespace
|
|
4188
4189
|
})).read(options.stage);
|
|
4189
4190
|
if (!stored) {
|
|
4190
4191
|
console.log(`No state found for stage: ${options.stage}`);
|
|
@@ -4211,7 +4212,8 @@ async function stateUnlockCommand(options) {
|
|
|
4211
4212
|
const holder = await (await createStateStore({
|
|
4212
4213
|
config: workspace.state,
|
|
4213
4214
|
workspaceRoot: workspace.root,
|
|
4214
|
-
workspaceName: workspace.name
|
|
4215
|
+
workspaceName: workspace.name,
|
|
4216
|
+
namespace: workspace.deploy?.namespace
|
|
4215
4217
|
})).forceUnlock(options.stage);
|
|
4216
4218
|
if (!holder) {
|
|
4217
4219
|
console.log(`Stage ${options.stage} was not locked.`);
|
|
@@ -4288,7 +4290,8 @@ async function remoteAndLocal(workspace, hint = ["Add a remote provider in gkm.c
|
|
|
4288
4290
|
remote: await createStateStore({
|
|
4289
4291
|
config: workspace.state,
|
|
4290
4292
|
workspaceRoot: workspace.root,
|
|
4291
|
-
workspaceName: workspace.name
|
|
4293
|
+
workspaceName: workspace.name,
|
|
4294
|
+
namespace: workspace.deploy?.namespace
|
|
4292
4295
|
})
|
|
4293
4296
|
};
|
|
4294
4297
|
}
|
|
@@ -4436,7 +4439,8 @@ async function stateHistoryCommand(options) {
|
|
|
4436
4439
|
const stored = await (await createStateStore({
|
|
4437
4440
|
config: workspace.state,
|
|
4438
4441
|
workspaceRoot: workspace.root,
|
|
4439
|
-
workspaceName: workspace.name
|
|
4442
|
+
workspaceName: workspace.name,
|
|
4443
|
+
namespace: workspace.deploy?.namespace
|
|
4440
4444
|
})).read(options.stage);
|
|
4441
4445
|
if (!stored) {
|
|
4442
4446
|
console.log(`No state found for stage: ${options.stage}`);
|
|
@@ -5428,25 +5432,25 @@ function loadPackageJson() {
|
|
|
5428
5432
|
* Run: pnpm --filter @geekmidas/cli sync-versions
|
|
5429
5433
|
*/
|
|
5430
5434
|
const GEEKMIDAS_VERSIONS = {
|
|
5431
|
-
"@geekmidas/audit": "~10.0.0-alpha.
|
|
5432
|
-
"@geekmidas/auth": "~10.0.0-alpha.
|
|
5433
|
-
"@geekmidas/cache": "~10.0.0-alpha.
|
|
5434
|
-
"@geekmidas/client": "~10.0.0-alpha.
|
|
5435
|
-
"@geekmidas/cloud": "~10.0.0-alpha.
|
|
5436
|
-
"@geekmidas/constructs": "~10.0.0-alpha.
|
|
5437
|
-
"@geekmidas/db": "~10.0.0-alpha.
|
|
5438
|
-
"@geekmidas/emailkit": "~10.0.0-alpha.
|
|
5439
|
-
"@geekmidas/envkit": "~10.0.0-alpha.
|
|
5440
|
-
"@geekmidas/errors": "~10.0.0-alpha.
|
|
5441
|
-
"@geekmidas/events": "~10.0.0-alpha.
|
|
5442
|
-
"@geekmidas/logger": "~10.0.0-alpha.
|
|
5443
|
-
"@geekmidas/manifest": "~10.0.0-alpha.
|
|
5444
|
-
"@geekmidas/rate-limit": "~10.0.0-alpha.
|
|
5445
|
-
"@geekmidas/schema": "~10.0.0-alpha.
|
|
5446
|
-
"@geekmidas/services": "~10.0.0-alpha.
|
|
5447
|
-
"@geekmidas/storage": "~10.0.0-alpha.
|
|
5448
|
-
"@geekmidas/telescope": "~10.0.0-alpha.
|
|
5449
|
-
"@geekmidas/testkit": "~10.0.0-alpha.
|
|
5435
|
+
"@geekmidas/audit": "~10.0.0-alpha.98",
|
|
5436
|
+
"@geekmidas/auth": "~10.0.0-alpha.98",
|
|
5437
|
+
"@geekmidas/cache": "~10.0.0-alpha.98",
|
|
5438
|
+
"@geekmidas/client": "~10.0.0-alpha.98",
|
|
5439
|
+
"@geekmidas/cloud": "~10.0.0-alpha.98",
|
|
5440
|
+
"@geekmidas/constructs": "~10.0.0-alpha.98",
|
|
5441
|
+
"@geekmidas/db": "~10.0.0-alpha.98",
|
|
5442
|
+
"@geekmidas/emailkit": "~10.0.0-alpha.98",
|
|
5443
|
+
"@geekmidas/envkit": "~10.0.0-alpha.98",
|
|
5444
|
+
"@geekmidas/errors": "~10.0.0-alpha.98",
|
|
5445
|
+
"@geekmidas/events": "~10.0.0-alpha.98",
|
|
5446
|
+
"@geekmidas/logger": "~10.0.0-alpha.98",
|
|
5447
|
+
"@geekmidas/manifest": "~10.0.0-alpha.98",
|
|
5448
|
+
"@geekmidas/rate-limit": "~10.0.0-alpha.98",
|
|
5449
|
+
"@geekmidas/schema": "~10.0.0-alpha.98",
|
|
5450
|
+
"@geekmidas/services": "~10.0.0-alpha.98",
|
|
5451
|
+
"@geekmidas/storage": "~10.0.0-alpha.98",
|
|
5452
|
+
"@geekmidas/telescope": "~10.0.0-alpha.98",
|
|
5453
|
+
"@geekmidas/testkit": "~10.0.0-alpha.98",
|
|
5450
5454
|
"@geekmidas/cli": `~${loadPackageJson().version}`
|
|
5451
5455
|
};
|
|
5452
5456
|
//#endregion
|
|
@@ -5847,7 +5851,7 @@ const COMMIT = /^[0-9a-f]{40}$/;
|
|
|
5847
5851
|
* The `uses:` value for the stages action, with a comment saying which CLI
|
|
5848
5852
|
* release the pinned commit is.
|
|
5849
5853
|
*/
|
|
5850
|
-
function stagesActionUses(commit = "
|
|
5854
|
+
function stagesActionUses(commit = "e20b5756311a0437161b94dc9be00aa1ff1120ab", version = cliVersion()) {
|
|
5851
5855
|
return commit && COMMIT.test(commit) ? `${STAGES_ACTION}@${commit} # @geekmidas/cli ${version}` : `${STAGES_ACTION}@main # pin to a commit SHA: see the action's README`;
|
|
5852
5856
|
}
|
|
5853
5857
|
//#endregion
|
|
@@ -6181,7 +6185,7 @@ ${pm.setup}
|
|
|
6181
6185
|
|
|
6182
6186
|
${registryLogin(registry)}
|
|
6183
6187
|
# A site's public URLs are built into it, so the build reads the stage's
|
|
6184
|
-
# secrets store. With secrets.store on SSM or Secrets Manager the job
|
|
6188
|
+
# secrets store. With secrets.store on S3, SSM or Secrets Manager the job
|
|
6185
6189
|
# assumes the stage's role (AWS_ROLE_ARN, set by gkm deploy:github);
|
|
6186
6190
|
# with the default 'file' store there is no role to assume.
|
|
6187
6191
|
- name: Assume the stage's AWS role
|
|
@@ -7801,7 +7805,7 @@ ${deployBlock(options)}
|
|
|
7801
7805
|
${workspaceConstructsGlobs(options.routesStructure, dirname(options.apiPath)).map((glob) => ` '${glob}',`).join("\n")}
|
|
7802
7806
|
],
|
|
7803
7807
|
|
|
7804
|
-
secrets: {
|
|
7808
|
+
${stateBlock(options)} secrets: {
|
|
7805
7809
|
enabled: true,${secretsStore(options)}
|
|
7806
7810
|
},
|
|
7807
7811
|
});
|
|
@@ -7827,17 +7831,32 @@ function deployBlock(options) {
|
|
|
7827
7831
|
`;
|
|
7828
7832
|
}
|
|
7829
7833
|
/**
|
|
7830
|
-
* Where a deployed stage's
|
|
7831
|
-
*
|
|
7832
|
-
*
|
|
7834
|
+
* Where a deployed stage's deploy state lives: on AWS, the project bucket —
|
|
7835
|
+
* one bucket per project and account, created by the first deploy — which
|
|
7836
|
+
* the stage's secrets share.
|
|
7837
|
+
*/
|
|
7838
|
+
function stateBlock(options) {
|
|
7839
|
+
if (options.deployTarget !== "sst" || !options.region) return "";
|
|
7840
|
+
return ` // Deploy state, secrets and backups share one bucket per project and
|
|
7841
|
+
// account, gkm-<project>-<account id>, created by the first deploy:
|
|
7842
|
+
// versioned, encrypted, never public.
|
|
7843
|
+
state: { provider: 's3', region: '${options.region}' },
|
|
7844
|
+
|
|
7845
|
+
`;
|
|
7846
|
+
}
|
|
7847
|
+
/**
|
|
7848
|
+
* Where a deployed stage's secrets live. On AWS that is the project bucket,
|
|
7849
|
+
* beside the deploy state, in the stage's own account, which the deploy job
|
|
7850
|
+
* reaches with the role it already assumed; a server target keeps the
|
|
7851
|
+
* encrypted local file, the default.
|
|
7833
7852
|
*/
|
|
7834
7853
|
function secretsStore(options) {
|
|
7835
7854
|
if (options.deployTarget !== "sst" || !options.region) return "";
|
|
7836
7855
|
return `
|
|
7837
|
-
// Deployed stages keep their secrets in
|
|
7838
|
-
//
|
|
7839
|
-
//
|
|
7840
|
-
store: { provider: '
|
|
7856
|
+
// Deployed stages keep their secrets in the project bucket, beside the
|
|
7857
|
+
// state, in the account each stage deploys to:
|
|
7858
|
+
// \`gkm secrets:set <KEY> '…' --stage <stage>\` writes there.
|
|
7859
|
+
store: { provider: 's3' },`;
|
|
7841
7860
|
}
|
|
7842
7861
|
/**
|
|
7843
7862
|
* The workspace's constructs, at its root rather than inside an app.
|
|
@@ -11587,7 +11606,7 @@ function testDatabases(reconciled) {
|
|
|
11587
11606
|
* starts without the reference data the app needs.
|
|
11588
11607
|
*/
|
|
11589
11608
|
async function migrateTestStage(workspace, env) {
|
|
11590
|
-
const { migrateAndSeed } = await import("./migrate-
|
|
11609
|
+
const { migrateAndSeed } = await import("./migrate-CCZUgxMK.mjs");
|
|
11591
11610
|
const { discover } = await import("./discover-qjFapetL.mjs").then((n) => n.i);
|
|
11592
11611
|
const sources = {};
|
|
11593
11612
|
const manifest = await discover({
|
|
@@ -12023,7 +12042,7 @@ program.command("migrate").description("Apply each database construct's migratio
|
|
|
12023
12042
|
try {
|
|
12024
12043
|
const globalOptions = program.opts();
|
|
12025
12044
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12026
|
-
const { migrateCommand } = await import("./migrate-
|
|
12045
|
+
const { migrateCommand } = await import("./migrate-CCZUgxMK.mjs");
|
|
12027
12046
|
await migrateCommand({
|
|
12028
12047
|
...options,
|
|
12029
12048
|
...construct ? { construct } : {}
|
|
@@ -12036,7 +12055,7 @@ program.command("seed").description("Migrate, then run each database construct's
|
|
|
12036
12055
|
try {
|
|
12037
12056
|
const globalOptions = program.opts();
|
|
12038
12057
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12039
|
-
const { seedCommand } = await import("./migrate-
|
|
12058
|
+
const { seedCommand } = await import("./migrate-CCZUgxMK.mjs");
|
|
12040
12059
|
await seedCommand({
|
|
12041
12060
|
...options,
|
|
12042
12061
|
...construct ? { construct } : {}
|
|
@@ -12049,7 +12068,7 @@ program.command("migration").description("Write a construct's next migration: an
|
|
|
12049
12068
|
try {
|
|
12050
12069
|
const globalOptions = program.opts();
|
|
12051
12070
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12052
|
-
const { migrationCommand } = await import("./migrate-
|
|
12071
|
+
const { migrationCommand } = await import("./migrate-CCZUgxMK.mjs");
|
|
12053
12072
|
await migrationCommand({
|
|
12054
12073
|
construct,
|
|
12055
12074
|
...name ? { name } : {}
|
|
@@ -12149,7 +12168,7 @@ program.command("secrets:add").description("Build the keys a stage must be given
|
|
|
12149
12168
|
try {
|
|
12150
12169
|
const globalOptions = program.opts();
|
|
12151
12170
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12152
|
-
const { secretsAddCommand } = await import("./add-
|
|
12171
|
+
const { secretsAddCommand } = await import("./add-CZIIsTcv.mjs");
|
|
12153
12172
|
await secretsAddCommand(options);
|
|
12154
12173
|
} catch (error) {
|
|
12155
12174
|
exitWithError(error);
|
|
@@ -12159,7 +12178,7 @@ program.command("encryption:rotate").description("Add a new current key to an En
|
|
|
12159
12178
|
try {
|
|
12160
12179
|
const globalOptions = program.opts();
|
|
12161
12180
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12162
|
-
const { encryptionRotateCommand } = await import("./encryption-
|
|
12181
|
+
const { encryptionRotateCommand } = await import("./encryption-C0uKYE9v.mjs");
|
|
12163
12182
|
await encryptionRotateCommand(construct, options);
|
|
12164
12183
|
} catch (error) {
|
|
12165
12184
|
exitWithError(error);
|
|
@@ -12169,7 +12188,7 @@ program.command("encryption:retire").description("Remove an old key from an Encr
|
|
|
12169
12188
|
try {
|
|
12170
12189
|
const globalOptions = program.opts();
|
|
12171
12190
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12172
|
-
const { encryptionRetireCommand } = await import("./encryption-
|
|
12191
|
+
const { encryptionRetireCommand } = await import("./encryption-C0uKYE9v.mjs");
|
|
12173
12192
|
await encryptionRetireCommand(construct, key, options);
|
|
12174
12193
|
} catch (error) {
|
|
12175
12194
|
exitWithError(error);
|
|
@@ -12208,7 +12227,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12208
12227
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12209
12228
|
const { loadWorkspaceConfig } = await import("./config.mjs");
|
|
12210
12229
|
const { reconcileMissingSecrets } = await import("./reconcile--I7V4Klj.mjs");
|
|
12211
|
-
const { secretsStoreFor } = await import("./seeds-
|
|
12230
|
+
const { secretsStoreFor } = await import("./seeds-BvxWUGKJ.mjs").then((n) => n.An);
|
|
12212
12231
|
const { workspace } = await loadWorkspaceConfig();
|
|
12213
12232
|
const stage = options.stage ?? workspace.stages.local;
|
|
12214
12233
|
const store = await secretsStoreFor(workspace, stage);
|
|
@@ -12217,7 +12236,7 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12217
12236
|
console.error(`No secrets found for stage "${stage}". Run "gkm secrets:init --stage ${stage}" first.`);
|
|
12218
12237
|
process.exit(1);
|
|
12219
12238
|
}
|
|
12220
|
-
const { derivedContainers } = await import("./seeds-
|
|
12239
|
+
const { derivedContainers } = await import("./seeds-BvxWUGKJ.mjs").then((n) => n.dt);
|
|
12221
12240
|
const result = reconcileMissingSecrets(secrets, workspace, await derivedContainers(workspace, stage));
|
|
12222
12241
|
if (!result) {
|
|
12223
12242
|
console.log(`\n✓ Secrets for stage "${stage}" are up-to-date`);
|
|
@@ -12230,18 +12249,18 @@ program.command("secrets:reconcile").description("Backfill missing custom secret
|
|
|
12230
12249
|
exitWithError(error);
|
|
12231
12250
|
}
|
|
12232
12251
|
});
|
|
12233
|
-
program.command("secrets:migrate").description("Copy a deployed stage's secrets from the configured store to another (
|
|
12252
|
+
program.command("secrets:migrate").description("Copy a deployed stage's secrets from the configured store to another (s3, ssm, secrets-manager, file), verify the copy, and print how to delete the source").requiredOption("--stage <stage>", "A deployed stage").requiredOption("--to <provider>", "s3, ssm, secrets-manager or file").option("--region <region>", "The target's AWS region (default: the S3 state's for s3, else the configured store's)").option("--profile <profile>", "AWS profile for the stage's account").option("--force", "Replace different secrets the target already holds").action(async (options) => {
|
|
12234
12253
|
try {
|
|
12235
12254
|
const globalOptions = program.opts();
|
|
12236
12255
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12237
|
-
const { secretsMigrateCommand } = await import("./migrate-
|
|
12256
|
+
const { secretsMigrateCommand } = await import("./migrate-DH-lOK3j.mjs");
|
|
12238
12257
|
await secretsMigrateCommand(options);
|
|
12239
12258
|
} catch (error) {
|
|
12240
12259
|
exitWithError(error);
|
|
12241
12260
|
}
|
|
12242
12261
|
});
|
|
12243
12262
|
program.command("deploy").description("Deploy a stage through its target").option("--target <name>", "Deploy target: dokploy, compose, sst, or one named in deploy.targets (default: deploy.default)").option("--provider <provider>", "[DEPRECATED] Use --target instead").requiredOption("--stage <stage>", "Deployment stage (e.g., production, staging)").option("--tag <tag>", "Image tag (default: stage-timestamp; compose: the commit). Compose pulls a given tag").option("--skip-push", "Skip pushing image to registry").option("--skip-build", "Skip build step (use existing build)").option("--json", "Write events as JSON lines instead of progress; never prompts").option("--dry-run", "Show what would be created or reused; change, build and push nothing").option("--atomic", "If the release fails, roll back every app it released, not only the failed ones").option("--allow-dev-services", "Server targets: run the dev service (MinIO, Mailpit) for every bucket and mail the stage doesn't account for. Not production-grade").option("--skip-dns", "Compose: neither write the public hosts' DNS records nor check they point at GKM_SERVER_IPV4 (a CDN or proxy in front, or records written elsewhere)").option("--resources-only", "Deployed stage: create its resources — deploy.<kind>.<stage> providers' buckets and keys, and its DNS records — and nothing else (a CI runner, before the server deploys)").option("--skip-resources", "Deployed stage: an earlier --resources-only run created its resources; run no provider and write or check no DNS record").option("--rotate-keys", "Deployed stage: each provider issues its runtime keys a successor (the old one is deleted by the next deploy)").option("--retire-old-keys", "Deployed stage: delete a rotated-out key now instead of on the next deploy").action(async (options) => {
|
|
12244
|
-
const { deployCli } = await import("./cli-
|
|
12263
|
+
const { deployCli } = await import("./cli-CV85bY3-.mjs");
|
|
12245
12264
|
const globalOptions = program.opts();
|
|
12246
12265
|
const code = await deployCli({
|
|
12247
12266
|
cwd: resolve(globalOptions.cwd ?? process.cwd()),
|
|
@@ -12263,7 +12282,7 @@ program.command("deploy").description("Deploy a stage through its target").optio
|
|
|
12263
12282
|
});
|
|
12264
12283
|
program.command("deploy:rollback").description("Put a stage's app back on its previous release (Dokploy): one app with --app, every app with --atomic").requiredOption("--stage <stage>", "A deployed stage").option("--app <app>", "The app to roll back").option("--atomic", "Roll back every app that has an earlier release").action(async (options) => {
|
|
12265
12284
|
try {
|
|
12266
|
-
const { rollbackStage } = await import("./rollback-
|
|
12285
|
+
const { rollbackStage } = await import("./rollback-DQBSN-i7.mjs").then((n) => n.a);
|
|
12267
12286
|
const { terminalCredentials } = await import("./terminal-iNmAXXjs.mjs");
|
|
12268
12287
|
const globalOptions = program.opts();
|
|
12269
12288
|
await rollbackStage({
|
|
@@ -12297,7 +12316,7 @@ program.command("deploy:github").description("Let GitHub Actions deploy a stage:
|
|
|
12297
12316
|
try {
|
|
12298
12317
|
const globalOptions = program.opts();
|
|
12299
12318
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12300
|
-
const { deployGithubCommand } = await import("./github-
|
|
12319
|
+
const { deployGithubCommand } = await import("./github-CT3X720_.mjs");
|
|
12301
12320
|
await deployGithubCommand(options);
|
|
12302
12321
|
} catch (error) {
|
|
12303
12322
|
exitWithError(error);
|
|
@@ -12307,7 +12326,7 @@ program.command("stages").description("The workspace's stages from gkm.config.ts
|
|
|
12307
12326
|
try {
|
|
12308
12327
|
const globalOptions = program.opts();
|
|
12309
12328
|
if (globalOptions.cwd) process.chdir(globalOptions.cwd);
|
|
12310
|
-
const { stagesCommand } = await import("./stages-
|
|
12329
|
+
const { stagesCommand } = await import("./stages-6SEoRA4x.mjs");
|
|
12311
12330
|
await stagesCommand(options);
|
|
12312
12331
|
} catch (error) {
|
|
12313
12332
|
exitWithError(error);
|