@geekmidas/cli 10.0.0-alpha.168 → 10.0.0-alpha.169
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-CJIYlkUN.mjs → GoDaddyProvider-Cvmy2SPq.mjs} +2 -2
- package/dist/{GoDaddyProvider-CJIYlkUN.mjs.map → GoDaddyProvider-Cvmy2SPq.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-CYAlIeML.cjs → GoDaddyProvider-KmdZlFSL.cjs} +2 -2
- package/dist/{GoDaddyProvider-CYAlIeML.cjs.map → GoDaddyProvider-KmdZlFSL.cjs.map} +1 -1
- package/dist/{HostingerProvider-Ceqc_nlG.cjs → HostingerProvider--IyQKlIC.cjs} +2 -2
- package/dist/{HostingerProvider-Ceqc_nlG.cjs.map → HostingerProvider--IyQKlIC.cjs.map} +1 -1
- package/dist/{HostingerProvider-Tb0bnTpM.mjs → HostingerProvider-DYf1XT_W.mjs} +2 -2
- package/dist/{HostingerProvider-Tb0bnTpM.mjs.map → HostingerProvider-DYf1XT_W.mjs.map} +1 -1
- package/dist/{LegacyStateStore-Ci-CRqt2.cjs → LegacyStateStore-8GVMHI12.cjs} +2 -2
- package/dist/{LegacyStateStore-Ci-CRqt2.cjs.map → LegacyStateStore-8GVMHI12.cjs.map} +1 -1
- package/dist/{LegacyStateStore-DJWY64Jj.mjs → LegacyStateStore-BOZj8nj1.mjs} +2 -2
- package/dist/{LegacyStateStore-DJWY64Jj.mjs.map → LegacyStateStore-BOZj8nj1.mjs.map} +1 -1
- package/dist/{LocalStateStore-Enw_wV7d.cjs → LocalStateStore-CfBABk6G.cjs} +2 -2
- package/dist/{LocalStateStore-Enw_wV7d.cjs.map → LocalStateStore-CfBABk6G.cjs.map} +1 -1
- package/dist/{LocalStateStore-BFgjv29N.mjs → LocalStateStore-D3wY7Qkb.mjs} +2 -2
- package/dist/{LocalStateStore-BFgjv29N.mjs.map → LocalStateStore-D3wY7Qkb.mjs.map} +1 -1
- package/dist/{S3StateStore-B48M3z7L.cjs → S3StateStore-C-Fs7CWD.cjs} +4 -4
- package/dist/{S3StateStore-B48M3z7L.cjs.map → S3StateStore-C-Fs7CWD.cjs.map} +1 -1
- package/dist/{S3StateStore-Cwfd-ZnJ.mjs → S3StateStore-CO92LBQI.mjs} +4 -4
- package/dist/{S3StateStore-Cwfd-ZnJ.mjs.map → S3StateStore-CO92LBQI.mjs.map} +1 -1
- package/dist/{SSMStateStore-DYgE98Sm.mjs → SSMStateStore-Ns7FpnmB.mjs} +2 -2
- package/dist/{SSMStateStore-DYgE98Sm.mjs.map → SSMStateStore-Ns7FpnmB.mjs.map} +1 -1
- package/dist/{SSMStateStore-CuBe-NK5.cjs → SSMStateStore-t6mkXQew.cjs} +2 -2
- package/dist/{SSMStateStore-CuBe-NK5.cjs.map → SSMStateStore-t6mkXQew.cjs.map} +1 -1
- package/dist/{add-C85tazt0.mjs → add-Byp8-rRf.mjs} +5 -5
- package/dist/{add-C85tazt0.mjs.map → add-Byp8-rRf.mjs.map} +1 -1
- package/dist/{add-4AT0LlDK.cjs → add-C3oUiBAc.cjs} +5 -5
- package/dist/{add-4AT0LlDK.cjs.map → add-C3oUiBAc.cjs.map} +1 -1
- package/dist/{apps-CWGmV2nQ.mjs → apps-C21-TXqR.mjs} +72 -16
- package/dist/apps-C21-TXqR.mjs.map +1 -0
- package/dist/{apps-By6pnfzA.cjs → apps-D_-DXV0H.cjs} +76 -14
- package/dist/apps-D_-DXV0H.cjs.map +1 -0
- package/dist/{bundler-DPBLrtjT.cjs → bundler-D43S2YTJ.cjs} +6 -6
- package/dist/{bundler-DPBLrtjT.cjs.map → bundler-D43S2YTJ.cjs.map} +1 -1
- package/dist/{bundler-B9rkNGpK.mjs → bundler-DjfpJ0mX.mjs} +6 -6
- package/dist/{bundler-B9rkNGpK.mjs.map → bundler-DjfpJ0mX.mjs.map} +1 -1
- package/dist/{cli-DgL0QED8.mjs → cli-00fMnBFk.mjs} +4 -4
- package/dist/{cli-DgL0QED8.mjs.map → cli-00fMnBFk.mjs.map} +1 -1
- package/dist/{cli-BnWRqhwx.cjs → cli-CYBb8rgx.cjs} +4 -4
- package/dist/{cli-BnWRqhwx.cjs.map → cli-CYBb8rgx.cjs.map} +1 -1
- package/dist/{compose-CLM-sqgE.cjs → compose-D9ksPt5H.cjs} +8 -8
- package/dist/{compose-CLM-sqgE.cjs.map → compose-D9ksPt5H.cjs.map} +1 -1
- package/dist/{compose-DwjaxFFK.cjs → compose-Dgd-yfJT.cjs} +5 -5
- package/dist/{compose-DwjaxFFK.cjs.map → compose-Dgd-yfJT.cjs.map} +1 -1
- package/dist/{compose-CcK-QoYU.mjs → compose-MwgjPj_A.mjs} +8 -8
- package/dist/{compose-CcK-QoYU.mjs.map → compose-MwgjPj_A.mjs.map} +1 -1
- package/dist/{compose-DuRBnjxx.mjs → compose-rn_DWcup.mjs} +5 -5
- package/dist/{compose-DuRBnjxx.mjs.map → compose-rn_DWcup.mjs.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{credentials-CCCAy3NL.cjs → credentials-C6n_kdu4.cjs} +6 -6
- package/dist/{credentials-CCCAy3NL.cjs.map → credentials-C6n_kdu4.cjs.map} +1 -1
- package/dist/{credentials-CeCOEKP3.mjs → credentials-kK0X754I.mjs} +6 -6
- package/dist/{credentials-CeCOEKP3.mjs.map → credentials-kK0X754I.mjs.map} +1 -1
- package/dist/deploy/public.cjs +11 -11
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +11 -11
- package/dist/{deploy-Dy5jyciI.cjs → deploy-C1gf4bT-.cjs} +25 -23
- package/dist/deploy-C1gf4bT-.cjs.map +1 -0
- package/dist/{deploy-F6GA-u59.mjs → deploy-CFuDCbTq.mjs} +26 -24
- package/dist/deploy-CFuDCbTq.mjs.map +1 -0
- package/dist/{destroy-B7-8EgCJ.cjs → destroy-CMz0BPEe.cjs} +9 -9
- package/dist/{destroy-B7-8EgCJ.cjs.map → destroy-CMz0BPEe.cjs.map} +1 -1
- package/dist/{destroy-Gyxrl5yO.mjs → destroy-UTWZmaGn.mjs} +9 -9
- package/dist/{destroy-Gyxrl5yO.mjs.map → destroy-UTWZmaGn.mjs.map} +1 -1
- package/dist/{docker-COHyyOkv.mjs → docker-BIuidyEB.mjs} +5 -5
- package/dist/{docker-COHyyOkv.mjs.map → docker-BIuidyEB.mjs.map} +1 -1
- package/dist/{docker-CP4bspkW.cjs → docker-BrdCdNwm.cjs} +5 -5
- package/dist/{docker-CP4bspkW.cjs.map → docker-BrdCdNwm.cjs.map} +1 -1
- package/dist/{dokploy-DBmB9vWu.mjs → dokploy--ndQ72iu.mjs} +2 -2
- package/dist/{dokploy-DBmB9vWu.mjs.map → dokploy--ndQ72iu.mjs.map} +1 -1
- package/dist/{dokploy-C7ampvzk.cjs → dokploy-D7ZChrtZ.cjs} +2 -2
- package/dist/{dokploy-C7ampvzk.cjs.map → dokploy-D7ZChrtZ.cjs.map} +1 -1
- package/dist/{eas-EXRkhGSM.mjs → eas-BCcpBC4k.mjs} +3 -3
- package/dist/{eas-EXRkhGSM.mjs.map → eas-BCcpBC4k.mjs.map} +1 -1
- package/dist/{eas-CbnTdz8d.cjs → eas-DCvA907G.cjs} +3 -3
- package/dist/{eas-CbnTdz8d.cjs.map → eas-DCvA907G.cjs.map} +1 -1
- package/dist/{encryption-CdDDSAu_.cjs → encryption-8TklMCh2.cjs} +3 -3
- package/dist/{encryption-CdDDSAu_.cjs.map → encryption-8TklMCh2.cjs.map} +1 -1
- package/dist/{encryption-lLZV2eMs.mjs → encryption-C2LzfQp8.mjs} +3 -3
- package/dist/{encryption-lLZV2eMs.mjs.map → encryption-C2LzfQp8.mjs.map} +1 -1
- package/dist/{engine-Cg92m1Xf.cjs → engine-BMoNLayn.cjs} +9 -9
- package/dist/{engine-Cg92m1Xf.cjs.map → engine-BMoNLayn.cjs.map} +1 -1
- package/dist/{engine-ZzUy2czq.mjs → engine-D-_nkxQL.mjs} +9 -9
- package/dist/{engine-ZzUy2czq.mjs.map → engine-D-_nkxQL.mjs.map} +1 -1
- package/dist/{github-CPpJmNgV.mjs → github-B_zfStMR.mjs} +7 -7
- package/dist/{github-CPpJmNgV.mjs.map → github-B_zfStMR.mjs.map} +1 -1
- package/dist/{github-BHqRcUgU.cjs → github-CZjNDPAp.cjs} +7 -7
- package/dist/{github-BHqRcUgU.cjs.map → github-CZjNDPAp.cjs.map} +1 -1
- package/dist/{googlePlay-Dg-0ASWN.mjs → googlePlay-BcVRYMh4.mjs} +4 -4
- package/dist/{googlePlay-Dg-0ASWN.mjs.map → googlePlay-BcVRYMh4.mjs.map} +1 -1
- package/dist/{googlePlay-DRz0ya3q.cjs → googlePlay-Btn0lut5.cjs} +4 -4
- package/dist/{googlePlay-DRz0ya3q.cjs.map → googlePlay-Btn0lut5.cjs.map} +1 -1
- package/dist/{iam-b4IvC1fm.cjs → iam-BoYPPNdM.cjs} +2 -2
- package/dist/{iam-b4IvC1fm.cjs.map → iam-BoYPPNdM.cjs.map} +1 -1
- package/dist/{iam-CLIne3Ny.mjs → iam-ra1_Y405.mjs} +2 -2
- package/dist/{iam-CLIne3Ny.mjs.map → iam-ra1_Y405.mjs.map} +1 -1
- package/dist/index.cjs +63 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +63 -63
- package/dist/index.mjs.map +1 -1
- package/dist/{local-Cin6exc0.mjs → local-B9Vniy-F.mjs} +2 -2
- package/dist/{local-Cin6exc0.mjs.map → local-B9Vniy-F.mjs.map} +1 -1
- package/dist/{local-BIrl0ENw.cjs → local-DxfqOu7A.cjs} +2 -2
- package/dist/{local-BIrl0ENw.cjs.map → local-DxfqOu7A.cjs.map} +1 -1
- package/dist/{migrate-BtkwylxW.cjs → migrate-C1u7Tl7D.cjs} +5 -5
- package/dist/{migrate-BtkwylxW.cjs.map → migrate-C1u7Tl7D.cjs.map} +1 -1
- package/dist/{migrate-CxI07Ey0.cjs → migrate-CcYfCpMe.cjs} +3 -3
- package/dist/{migrate-CxI07Ey0.cjs.map → migrate-CcYfCpMe.cjs.map} +1 -1
- package/dist/{migrate-DEU8I8sQ.mjs → migrate-b5rcr4sw.mjs} +5 -5
- package/dist/{migrate-DEU8I8sQ.mjs.map → migrate-b5rcr4sw.mjs.map} +1 -1
- package/dist/{migrate-DpLMJLCw.mjs → migrate-blnmh2Tm.mjs} +3 -3
- package/dist/{migrate-DpLMJLCw.mjs.map → migrate-blnmh2Tm.mjs.map} +1 -1
- package/dist/{notes-or_kXTal.mjs → notes-CT1jNLDC.mjs} +6 -5
- package/dist/notes-CT1jNLDC.mjs.map +1 -0
- package/dist/{notes-rTfi6rfN.cjs → notes-Cw3JQ0Y_.cjs} +5 -4
- package/dist/notes-Cw3JQ0Y_.cjs.map +1 -0
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{projectBucket-CRa1b1Td.cjs → projectBucket-8hJmCusk.cjs} +2 -2
- package/dist/{projectBucket-CRa1b1Td.cjs.map → projectBucket-8hJmCusk.cjs.map} +1 -1
- package/dist/{projectBucket-Coh5K3-g.mjs → projectBucket-DJNi2yJL.mjs} +2 -2
- package/dist/{projectBucket-Coh5K3-g.mjs.map → projectBucket-DJNi2yJL.mjs.map} +1 -1
- package/dist/{publish-Bwhywmpz.mjs → publish-CMaPsMsT.mjs} +2 -2
- package/dist/{publish-Bwhywmpz.mjs.map → publish-CMaPsMsT.mjs.map} +1 -1
- package/dist/{publish-D9Yl4AzW.cjs → publish-Dlb-rrc5.cjs} +2 -2
- package/dist/{publish-D9Yl4AzW.cjs.map → publish-Dlb-rrc5.cjs.map} +1 -1
- package/dist/{resolve-BrJUFIUu.cjs → resolve-BKn4TTn3.cjs} +4 -4
- package/dist/{resolve-BrJUFIUu.cjs.map → resolve-BKn4TTn3.cjs.map} +1 -1
- package/dist/{resolve-B9tboVm2.mjs → resolve-DrFS2Ivb.mjs} +4 -4
- package/dist/{resolve-B9tboVm2.mjs.map → resolve-DrFS2Ivb.mjs.map} +1 -1
- package/dist/{rollback-D48bPMpD.cjs → rollback-6ZeoByXd.cjs} +6 -6
- package/dist/{rollback-D48bPMpD.cjs.map → rollback-6ZeoByXd.cjs.map} +1 -1
- package/dist/{rollback-M6b0z1tp.mjs → rollback-B3lHgwkj.mjs} +6 -6
- package/dist/{rollback-M6b0z1tp.mjs.map → rollback-B3lHgwkj.mjs.map} +1 -1
- package/dist/{s3-3iS3jlKU.cjs → s3-Cq1_F2J8.cjs} +3 -3
- package/dist/{s3-3iS3jlKU.cjs.map → s3-Cq1_F2J8.cjs.map} +1 -1
- package/dist/{s3-CNOSRjqH.mjs → s3-DfAM0soB.mjs} +3 -3
- package/dist/{s3-CNOSRjqH.mjs.map → s3-DfAM0soB.mjs.map} +1 -1
- package/dist/{serverSetup-DnOdoucM.cjs → serverSetup-DMNKsLKq.cjs} +6 -6
- package/dist/{serverSetup-DnOdoucM.cjs.map → serverSetup-DMNKsLKq.cjs.map} +1 -1
- package/dist/{serverSetup-CzLJ_RV0.mjs → serverSetup-lZ7tYUZJ.mjs} +6 -6
- package/dist/{serverSetup-CzLJ_RV0.mjs.map → serverSetup-lZ7tYUZJ.mjs.map} +1 -1
- package/dist/{sniffer-C5F7uYQB.cjs → sniffer-CUImZsQL.cjs} +7 -7
- package/dist/{sniffer-C5F7uYQB.cjs.map → sniffer-CUImZsQL.cjs.map} +1 -1
- package/dist/{sniffer-yeftYpWK.mjs → sniffer-DcT9RrAj.mjs} +7 -7
- package/dist/{sniffer-yeftYpWK.mjs.map → sniffer-DcT9RrAj.mjs.map} +1 -1
- package/dist/{snsSubscriptions-CXwELBil.cjs → snsSubscriptions-1lX1ze3u.cjs} +10 -5
- package/dist/snsSubscriptions-1lX1ze3u.cjs.map +1 -0
- package/dist/{snsSubscriptions-CXRa_bwG.mjs → snsSubscriptions-DFWhEgiA.mjs} +10 -5
- package/dist/snsSubscriptions-DFWhEgiA.mjs.map +1 -0
- package/dist/{sst-BAQrBaGa.mjs → sst-CB6rX5Zs.mjs} +5 -5
- package/dist/{sst-BAQrBaGa.mjs.map → sst-CB6rX5Zs.mjs.map} +1 -1
- package/dist/{sst-B_srWo15.cjs → sst-ct0Vhta9.cjs} +5 -5
- package/dist/{sst-B_srWo15.cjs.map → sst-ct0Vhta9.cjs.map} +1 -1
- package/dist/{stack-DaJ9D2Uc.cjs → stack-CkdkfmpN.cjs} +111 -34
- package/dist/stack-CkdkfmpN.cjs.map +1 -0
- package/dist/{stack-t2tN1jYo.mjs → stack-Dsl0l3fi.mjs} +106 -35
- package/dist/stack-Dsl0l3fi.mjs.map +1 -0
- package/dist/{stage-Clk6oQO_.cjs → stage-Cmn0dCV2.cjs} +6 -6
- package/dist/{stage-Clk6oQO_.cjs.map → stage-Cmn0dCV2.cjs.map} +1 -1
- package/dist/{stage-B4gqRg7l.mjs → stage-DfdUf2sj.mjs} +6 -6
- package/dist/{stage-B4gqRg7l.mjs.map → stage-DfdUf2sj.mjs.map} +1 -1
- package/dist/{stages-afi9P-Cd.cjs → stages-BWg3NU3J.cjs} +2 -2
- package/dist/{stages-afi9P-Cd.cjs.map → stages-BWg3NU3J.cjs.map} +1 -1
- package/dist/{stages-D1rnfO18.mjs → stages-COiipV8N.mjs} +2 -2
- package/dist/{stages-D1rnfO18.mjs.map → stages-COiipV8N.mjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-D4kY5oz7.mjs → terminal-BDKhPIBA.mjs} +2 -2
- package/dist/{terminal-D4kY5oz7.mjs.map → terminal-BDKhPIBA.mjs.map} +1 -1
- package/dist/{terminal-JAudEZRC.cjs → terminal-CFeiyJxJ.cjs} +2 -2
- package/dist/{terminal-JAudEZRC.cjs.map → terminal-CFeiyJxJ.cjs.map} +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-p7gmCQVS.cjs → workspace-CEpojAus.cjs} +41 -14
- package/dist/workspace-CEpojAus.cjs.map +1 -0
- package/dist/{workspace-Gubg8xLJ.mjs → workspace-_aoe8v6u.mjs} +42 -15
- package/dist/workspace-_aoe8v6u.mjs.map +1 -0
- package/package.json +15 -15
- package/dist/apps-By6pnfzA.cjs.map +0 -1
- package/dist/apps-CWGmV2nQ.mjs.map +0 -1
- package/dist/deploy-Dy5jyciI.cjs.map +0 -1
- package/dist/deploy-F6GA-u59.mjs.map +0 -1
- package/dist/notes-or_kXTal.mjs.map +0 -1
- package/dist/notes-rTfi6rfN.cjs.map +0 -1
- package/dist/snsSubscriptions-CXRa_bwG.mjs.map +0 -1
- package/dist/snsSubscriptions-CXwELBil.cjs.map +0 -1
- package/dist/stack-DaJ9D2Uc.cjs.map +0 -1
- package/dist/stack-t2tN1jYo.mjs.map +0 -1
- package/dist/workspace-Gubg8xLJ.mjs.map +0 -1
- package/dist/workspace-p7gmCQVS.cjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
2
|
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
3
|
-
import { E as providerOf, R as externalsManifestName, T as eventsBackendFor, bt as gkmHome, w as cacheBackendFor } from "./credentials-
|
|
4
|
-
import { It as isReservedStageKey, Mt as checkStageBackups, R as stageSampleRate, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, ct as protectedSubdomains, j as TEST_STAGE, ot as appKey, ut as fileServerLabel, z as telemetryEnv } from "./workspace-
|
|
5
|
-
import { $ as otlpHeaders, B as fakeKey, D as HOST_GATEWAY$1, F as emulatorEndpoint, G as serviceAddresses, H as portsOf, I as emulatorQueueUrl, J as LOGS_ORG, L as emulatorTopicArn, M as watchedBuckets, O as NOTIFICATION_RULE_PREFIX, P as EMULATOR_REGION, U as postgresImage, V as portKeys, W as primaryPortKey, Y as LOGS_PASSWORD_KEY, b as REDIS_PASSWORD_KEY, f as savePortState, h as postgresRoleSlug, j as objectsWebhookToken, k as minioNotificationRule, l as loadPortState, m as loadLocalCredentials, n as composeFor, ot as rootSite, q as LOGS_EMAIL_KEY, r as toYaml, t as CLUSTER_DATABASE, v as saveLocalCredentials } from "./compose-
|
|
3
|
+
import { E as providerOf, R as externalsManifestName, T as eventsBackendFor, bt as gkmHome, w as cacheBackendFor } from "./credentials-kK0X754I.mjs";
|
|
4
|
+
import { It as isReservedStageKey, Mt as checkStageBackups, R as stageSampleRate, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, ct as protectedSubdomains, j as TEST_STAGE, ot as appKey, ut as fileServerLabel, z as telemetryEnv } from "./workspace-_aoe8v6u.mjs";
|
|
5
|
+
import { $ as otlpHeaders, B as fakeKey, D as HOST_GATEWAY$1, F as emulatorEndpoint, G as serviceAddresses, H as portsOf, I as emulatorQueueUrl, J as LOGS_ORG, L as emulatorTopicArn, M as watchedBuckets, O as NOTIFICATION_RULE_PREFIX, P as EMULATOR_REGION, U as postgresImage, V as portKeys, W as primaryPortKey, Y as LOGS_PASSWORD_KEY, b as REDIS_PASSWORD_KEY, f as savePortState, h as postgresRoleSlug, j as objectsWebhookToken, k as minioNotificationRule, l as loadPortState, m as loadLocalCredentials, n as composeFor, ot as rootSite, q as LOGS_EMAIL_KEY, r as toYaml, t as CLUSTER_DATABASE, v as saveLocalCredentials } from "./compose-rn_DWcup.mjs";
|
|
6
6
|
import { c as INBOX_RELAY_TOKEN_KEY, d as inboxWebhookUrl, i as readFakes, l as inboxRelayToken, o as objectsRoute, r as readCredentialFakes, u as inboxRelayWorker } from "./SubscriberGenerator-CfZWX0lT.mjs";
|
|
7
7
|
import { i as holdsEveryCache, t as DEFAULT_CACHE } from "./types-Y1NfWlyG.mjs";
|
|
8
8
|
import { u as telemetryArgs } from "./EndpointGenerator-CSKhAD6W.mjs";
|
|
@@ -15,7 +15,7 @@ import { hostname, networkInterfaces, userInfo } from "node:os";
|
|
|
15
15
|
import { execFile, spawn } from "node:child_process";
|
|
16
16
|
import { createServer } from "node:net";
|
|
17
17
|
import { createHash, createPrivateKey, createPublicKey, generateKeyPairSync, randomBytes } from "node:crypto";
|
|
18
|
-
import { CLIENT_IP_HEADER, DEFAULT_POSTGRES_VERSION, EDGE_TOKEN_HEADER, EDGE_TOKEN_KEY, IMAGE_ORIGINS_KEY, PUBLIC_PREFIX, TELEMETRY_KEYS, WILDCARD_SUBDOMAIN, bucketExpiry, cacheTable, cookieDomain, dependenciesOf, dependentsOf, drawSecret, environmentCase, externalApiUrl, imageOriginSources, imageOrigins, isPublicDeclaration, isWildcardSite, kebabCase, mobileOrigins, providedKeyFor, provisionOrder, publicEnvFor, schemeBase, wildcardDomainOf } from "@geekmidas/manifest";
|
|
18
|
+
import { CLIENT_IP_HEADER, DEFAULT_POSTGRES_VERSION, EDGE_TOKEN_HEADER, EDGE_TOKEN_KEY, IMAGE_ORIGINS_KEY, PUBLIC_PREFIX, TELEMETRY_KEYS, WILDCARD_SUBDOMAIN, bucketExpiry, cacheTable, cookieDomain, dependenciesOf, dependentsOf, drawSecret, environmentCase, externalApiUrl, hostLabels, imageOriginSources, imageOrigins, isHostedDeclaration, isPublicDeclaration, isWildcardSite, kebabCase, mobileOrigins, providedKeyFor, provisionOrder, publicEnvFor, schemeBase, senderAddress, wildcardDomainOf } from "@geekmidas/manifest";
|
|
19
19
|
import { fileURLToPath } from "node:url";
|
|
20
20
|
import { formatKeyring } from "@geekmidas/constructs/encryption";
|
|
21
21
|
import { ownerRole, readerRole, roleStatements } from "@geekmidas/db/pg/roles";
|
|
@@ -267,9 +267,12 @@ function sitesFor(plan, project, addresses = {}, processorAddresses = {}) {
|
|
|
267
267
|
});
|
|
268
268
|
continue;
|
|
269
269
|
}
|
|
270
|
+
const { aliases, redirects } = hostsFor(resource, project);
|
|
270
271
|
sites.push({
|
|
271
272
|
host,
|
|
272
|
-
upstream
|
|
273
|
+
upstream,
|
|
274
|
+
...aliases.length ? { aliases } : {},
|
|
275
|
+
...redirects.length ? { redirects } : {}
|
|
273
276
|
});
|
|
274
277
|
}
|
|
275
278
|
return sites;
|
|
@@ -333,6 +336,24 @@ function hostFor$1(resource, project) {
|
|
|
333
336
|
].filter(Boolean).join(".");
|
|
334
337
|
}
|
|
335
338
|
/**
|
|
339
|
+
* Where a resource answers, every host of it: {@link hostFor}'s, and each
|
|
340
|
+
* alias and redirect label under the project, carrying the stage as its own
|
|
341
|
+
* label does — `www-test.shop.localhost` for `gkm test`.
|
|
342
|
+
*/
|
|
343
|
+
function hostsFor(resource, project) {
|
|
344
|
+
const stage = stageOf(resource);
|
|
345
|
+
const under = (label) => [
|
|
346
|
+
stage ? `${label}-${stage}` : label,
|
|
347
|
+
project,
|
|
348
|
+
LOCAL_TLD
|
|
349
|
+
].filter(Boolean).join(".");
|
|
350
|
+
return {
|
|
351
|
+
host: hostFor$1(resource, project),
|
|
352
|
+
aliases: (resource.aliases ?? []).map(under),
|
|
353
|
+
redirects: (resource.redirects ?? []).map(under)
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
336
357
|
* A resource's own label: its `subdomain` where it declared one, and a file
|
|
337
358
|
* server's own name — the label a deploy uses too — with the stage it carries
|
|
338
359
|
* kept, so `gkm test` and `gkm dev` still answer on different hosts.
|
|
@@ -384,7 +405,8 @@ function toCaddyfile(sites, options) {
|
|
|
384
405
|
if (sites.length === 0) return `${GENERATED}
|
|
385
406
|
# No file server is declared in this stage, so it routes nothing.
|
|
386
407
|
`;
|
|
387
|
-
const
|
|
408
|
+
const port = options.port && options.port !== 443 ? `:${options.port}` : "";
|
|
409
|
+
const blocks = sites.map(({ host, upstream, rewrite, processors, tenants, aliases, redirects }) => {
|
|
388
410
|
const proxy = `reverse_proxy ${upstream} {${rewrite ? `
|
|
389
411
|
rewrite ${rewrite}
|
|
390
412
|
# MinIO routes and signs on the Host header, so forwarding the requested
|
|
@@ -396,8 +418,14 @@ function toCaddyfile(sites, options) {
|
|
|
396
418
|
header_up Host {host}
|
|
397
419
|
header_up X-Forwarded-Proto {scheme}`}
|
|
398
420
|
}`;
|
|
421
|
+
const redirectBlocks = (redirects ?? []).map((from) => `
|
|
422
|
+
https://${from} {
|
|
423
|
+
tls ${options.certificate} ${options.certificate}
|
|
424
|
+
|
|
425
|
+
redir https://${host}${port}{uri} permanent
|
|
426
|
+
}`).join("");
|
|
399
427
|
return `
|
|
400
|
-
https://${
|
|
428
|
+
${[host, ...aliases ?? []].map((name) => `https://${name}`).join(", ")} {
|
|
401
429
|
tls ${options.certificate} ${options.certificate}
|
|
402
430
|
|
|
403
431
|
${clientIpRule(options.edgeToken)}
|
|
@@ -412,7 +440,7 @@ ${processors ? `
|
|
|
412
440
|
}
|
|
413
441
|
}
|
|
414
442
|
` : ""}${tenants ? tenantBlock(tenants, proxy) : ` ${proxy}`}
|
|
415
|
-
}`;
|
|
443
|
+
}${redirectBlocks}`;
|
|
416
444
|
});
|
|
417
445
|
return `${GENERATED}${blocks.join("\n")}\n`;
|
|
418
446
|
}
|
|
@@ -789,6 +817,7 @@ function planFor(manifest, stage, order, options = {}) {
|
|
|
789
817
|
} : {},
|
|
790
818
|
...declaration.kind === "file-server" && declaration.open?.length ? { open: declaration.open } : {},
|
|
791
819
|
...declaration.kind === "file-server" && declaration.processors?.length ? { processors: [...new Set(declaration.processors.map((p) => p.prefix))].sort() } : {},
|
|
820
|
+
...declaration.kind === "email" && declaration.from ? { from: declaration.from } : {},
|
|
792
821
|
...declaration.kind === "inbox" ? { inbox: {
|
|
793
822
|
addresses: declaration.addresses,
|
|
794
823
|
subdomains: declaration.subdomains === true,
|
|
@@ -796,6 +825,8 @@ function planFor(manifest, stage, order, options = {}) {
|
|
|
796
825
|
} } : {},
|
|
797
826
|
...declaration.kind === "objects" && bucketExpiry(manifest, id) ? { expire: bucketExpiry(manifest, id) } : {},
|
|
798
827
|
...(declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "site") && declaration.subdomain ? { subdomain: declaration.subdomain } : {},
|
|
828
|
+
...isHostedDeclaration(declaration) && hostLabels(declaration).aliases.length ? { aliases: [...hostLabels(declaration).aliases] } : {},
|
|
829
|
+
...isHostedDeclaration(declaration) && hostLabels(declaration).redirects.length ? { redirects: [...hostLabels(declaration).redirects] } : {},
|
|
799
830
|
...isWildcardSite(declaration) ? {
|
|
800
831
|
protectedSubdomains: protectedSubdomains(manifest, options.protectedSubdomains),
|
|
801
832
|
...declaration.hosts ? { hosts: declaration.hosts } : {}
|
|
@@ -1018,16 +1049,18 @@ function envFor(plan, options) {
|
|
|
1018
1049
|
const url = urlFor(resource, plan, options.ports, options.project ?? "", options.addresses, credential, devices.has(resource.id) ? options.lanAddress : void 0);
|
|
1019
1050
|
if (url) resolved[resource.id] = url;
|
|
1020
1051
|
}
|
|
1052
|
+
const aliased = aliasAddressesFor(plan, options);
|
|
1021
1053
|
for (const resource of plan.resources) {
|
|
1022
1054
|
const url = resolved[resource.id];
|
|
1023
1055
|
if (resource.kind === "rest-api") Object.assign(env, surfaceEnv(resource, url, resolved, {
|
|
1024
1056
|
plan,
|
|
1057
|
+
aliased,
|
|
1025
1058
|
...options.addresses ? { addresses: options.addresses } : {},
|
|
1026
1059
|
...options.lanAddress ? { lanAddress: options.lanAddress } : {},
|
|
1027
1060
|
...options.metroPorts ? { metroPorts: options.metroPorts } : {}
|
|
1028
1061
|
}));
|
|
1029
1062
|
if (resource.kind === "websocket-api") {
|
|
1030
|
-
const origins = surfaceEnv(resource, url, resolved)[providedKeyFor(resource.id, resource.kind, "trustedOrigins")];
|
|
1063
|
+
const origins = surfaceEnv(resource, url, resolved, { aliased })[providedKeyFor(resource.id, resource.kind, "trustedOrigins")];
|
|
1031
1064
|
if (origins !== void 0) env[providedKeyFor(resource.id, resource.kind, "trustedOrigins")] = origins;
|
|
1032
1065
|
const publisher = webSocketPublisher(resource, options.ports, options.project ?? "", credential);
|
|
1033
1066
|
if (publisher) env[providedKeyFor(resource.id, resource.kind, "publisherConnectionString")] = publisher;
|
|
@@ -1065,7 +1098,7 @@ function envFor(plan, options) {
|
|
|
1065
1098
|
if (smtp !== void 0) env[providedKeyFor(resource.id, resource.kind, "smtpUrl")] = `smtp://${LOCAL_HOST}:${smtp}`;
|
|
1066
1099
|
}
|
|
1067
1100
|
if (resource.kind === "email" && url) {
|
|
1068
|
-
env[providedKeyFor(resource.id, resource.kind, "from")] = options.
|
|
1101
|
+
env[providedKeyFor(resource.id, resource.kind, "from")] = senderAddress(resource, options.mailDomain ?? LOCAL_HOST);
|
|
1069
1102
|
const inbox = options.ports[MAILPIT_INBOX_PORT];
|
|
1070
1103
|
if (inbox !== void 0) env[providedKeyFor(resource.id, resource.kind, "inboxUrl")] = `http://${LOCAL_HOST}:${inbox}`;
|
|
1071
1104
|
}
|
|
@@ -1131,7 +1164,7 @@ function publicEnv(plan, resolved, addresses = {}) {
|
|
|
1131
1164
|
*/
|
|
1132
1165
|
function surfaceEnv(resource, url, resolved = {}, local = {}) {
|
|
1133
1166
|
if (!url) return {};
|
|
1134
|
-
const origins = [...new Set((resource.callers ?? []).
|
|
1167
|
+
const origins = [...new Set((resource.callers ?? []).flatMap((caller) => resolved[caller] ? [resolved[caller], ...local.aliased?.[caller] ?? []] : []).map(originOf).filter((origin) => Boolean(origin)))].sort();
|
|
1135
1168
|
const domain = cookieDomain([url, ...origins]);
|
|
1136
1169
|
const mobile = (resource.callers ?? []).map((caller) => local.plan?.resources.find((r) => r.id === caller && r.kind === "mobile-app")).filter((caller) => Boolean(caller));
|
|
1137
1170
|
const hosts = [...local.lanAddress ? [local.lanAddress] : [], LOCAL_HOST];
|
|
@@ -1152,6 +1185,23 @@ function surfaceEnv(resource, url, resolved = {}, local = {}) {
|
|
|
1152
1185
|
};
|
|
1153
1186
|
}
|
|
1154
1187
|
/**
|
|
1188
|
+
* Every construct's alias addresses: where a target placed them, and
|
|
1189
|
+
* otherwise — behind the local edge — each alias under the project, on the
|
|
1190
|
+
* edge's port, as {@link hostsFor} names it. Never a redirect's.
|
|
1191
|
+
*/
|
|
1192
|
+
function aliasAddressesFor(plan, options) {
|
|
1193
|
+
if (options.aliasAddresses) return { ...options.aliasAddresses };
|
|
1194
|
+
const edge = plan.containers.includes("caddy") ? options.ports[primaryPortKey("caddy")] : void 0;
|
|
1195
|
+
if (edge === void 0) return {};
|
|
1196
|
+
const aliased = {};
|
|
1197
|
+
for (const resource of plan.resources) {
|
|
1198
|
+
if (!resource.aliases?.length) continue;
|
|
1199
|
+
if (!options.addresses?.[resource.id]) continue;
|
|
1200
|
+
aliased[resource.id] = hostsFor(resource, options.project ?? "").aliases.map((host) => `https://${host}:${edge}`);
|
|
1201
|
+
}
|
|
1202
|
+
return aliased;
|
|
1203
|
+
}
|
|
1204
|
+
/**
|
|
1155
1205
|
* The buckets whose links a phone opens: those a surface a mobile app calls
|
|
1156
1206
|
* depends on.
|
|
1157
1207
|
*
|
|
@@ -4826,9 +4876,11 @@ async function reconcile(options) {
|
|
|
4826
4876
|
const sites = sitesFor(plan, project, options.addresses, options.processorAddresses);
|
|
4827
4877
|
const edged = plan.containers.includes("caddy");
|
|
4828
4878
|
const authorityPaths = options.authority ?? localAuthorityPaths();
|
|
4879
|
+
const edgePort = ports[primaryPortKey("caddy")];
|
|
4829
4880
|
const caddyfile = toCaddyfile(sites, {
|
|
4830
4881
|
certificate: `${CADDY_SITES_IN_CONTAINER}/${stage}.pem`,
|
|
4831
|
-
edgeToken: edgeToken(project, seed)
|
|
4882
|
+
edgeToken: edgeToken(project, seed),
|
|
4883
|
+
...edgePort !== void 0 ? { port: edgePort } : {}
|
|
4832
4884
|
});
|
|
4833
4885
|
const hash = planHash(plan, compose, {
|
|
4834
4886
|
caddyfile,
|
|
@@ -4842,7 +4894,7 @@ async function reconcile(options) {
|
|
|
4842
4894
|
project,
|
|
4843
4895
|
credentials,
|
|
4844
4896
|
seed,
|
|
4845
|
-
...options.
|
|
4897
|
+
...options.mailDomain ? { mailDomain: options.mailDomain } : {},
|
|
4846
4898
|
...options.addresses ? { addresses: options.addresses } : {},
|
|
4847
4899
|
...lan ? { lanAddress: lan } : {},
|
|
4848
4900
|
...options.metroPorts ? { metroPorts: options.metroPorts } : {},
|
|
@@ -4870,7 +4922,11 @@ async function reconcile(options) {
|
|
|
4870
4922
|
hash,
|
|
4871
4923
|
changed: false
|
|
4872
4924
|
};
|
|
4873
|
-
const certificate = edged ? await ensureLocalCertificate(await ensureLocalAuthority(authorityPaths), localCertificateNames(project, sites.
|
|
4925
|
+
const certificate = edged ? await ensureLocalCertificate(await ensureLocalAuthority(authorityPaths), localCertificateNames(project, sites.flatMap((site) => [
|
|
4926
|
+
site.host,
|
|
4927
|
+
...site.aliases ?? [],
|
|
4928
|
+
...site.redirects ?? []
|
|
4929
|
+
])), join(root, caddyCertificatePath(stage))) : void 0;
|
|
4874
4930
|
const recorded = await loadState(root, stage);
|
|
4875
4931
|
const postgresPort = ports[primaryPortKey("postgres")];
|
|
4876
4932
|
if (!certificate?.issued && recorded?.hash === hash && existsSync(composePath) && (!start || await docker.healthy(composePath, running, { mounted: CHECKOUT_MOUNTS })) && (!start || !provision || postgresPort === void 0 || await databasesExist(sql(postgresPort, options.credentials.postgres), postgresDatabaseNames(plan)))) return result;
|
|
@@ -5673,6 +5729,6 @@ function healthcheck(port, path) {
|
|
|
5673
5729
|
};
|
|
5674
5730
|
}
|
|
5675
5731
|
//#endregion
|
|
5676
|
-
export { imageBuildCredentials as $, originSecretKey as A, TELEMETRY_CONTAINER as At, WORKER_PORT as B, LOCAL_TLD as Bt, ensureLocalCertificate as C, postgresDatabaseNames as Ct, ORIGIN_VERIFY_HEADER as D, envFor as Dt, readLocalAuthority as E, mergeLifecycle as Et, imageLayout as F, scopeTelemetryEnv as Ft, generateEntryDockerfile as G,
|
|
5732
|
+
export { imageBuildCredentials as $, originSecretKey as A, TELEMETRY_CONTAINER as At, WORKER_PORT as B, LOCAL_TLD as Bt, ensureLocalCertificate as C, postgresDatabaseNames as Ct, ORIGIN_VERIFY_HEADER as D, envFor as Dt, readLocalAuthority as E, mergeLifecycle as Et, imageLayout as F, scopeTelemetryEnv as Ft, generateEntryDockerfile as G, backupDatabases as Gt, findBuildRoot as H, hostFor$1 as Ht, LOCAL_CA_BUILD_SECRET as I, siteClientTelemetry as It, generateProcessorDockerfile as J, backupsPrefix as Jt, generateNextjsDockerfile as K, backupExpiries as Kt, PRERENDER_RUN_ARG as L, surfaceClientTraced as Lt, appImageOptions as M, resourceName as Mt, composeBuildPaths as N, appTelemetry as Nt, PROCESSOR_ORIGIN_SECRET_ENV as O, localRolePassword as Ot, fromBuildRoot as P, isTelemetryKey as Pt, resolveDockerConfig as Q, PROCESSOR_PORT as R, telemetryOf as Rt, ensureLocalAuthority as S, bucketPolicies as St, localCertificateNames as T, quoteIdentifier as Tt, generateBackendDockerfile as U, hostsFor as Ut, detectPackageManager as V, clientIpRule as Vt, generateDockerignore as W, PROCESSORS_DEV_PREFIX as Wt, generateWorkerDockerfile as X, stageBackups as Xt, generateViteStaticDockerfile as Y, runTime as Yt, nextPrerenderManifest as Z, deploysWithCompose as Zt, forgetState as _, applyLifecycles as _t, networkEnv as a, siteOfflineHosts as at, bucketClient as b, applyPostgres as bt, processorEnvKeys as c, processorUnits as ct, backendsOf as d, BACKUPS_URL_KEY as dt, isImageBuild as et, constructGlobs as f, RUNNER_PATH as ft, COMPOSE_PATH as g, applyBuckets as gt, workspace_exports as h, stackBackups as ht, dockerfileOf as i, runsServer as it, processorOriginHost as j, planFor as jt, newOriginSecret as k, stageEnv as kt, workerEnvKeys as l, workerUnits as lt, reconcileWorkspace as m, backupsService as mt, appProcess as n, offlineBuildHosts as nt, processEnv as o, isUnder as ot, derivedContainers as p, backupsRoleStatements as pt, generateNodeWebDockerfile as q, backupFile as qt, apps_exports as r, publicBuildValues as rt, processEnvKeys as s, processorUnitName as st, appEnvKeys as t, OFFLINE_BUILD_ADDRESS as tt, FAKE_ENV as u, BACKUPS_SERVICE as ut, LEGACY_LOCAL_LOGIN as v, applyNotifications as vt, localAuthorityPaths as w, postgresStatements as wt, pgClient as x, bucketLifecycles as xt, ensurePostgresLogin as y, applyPolicies as yt, TURBO_VERSION as z, usesTelemetry as zt };
|
|
5677
5733
|
|
|
5678
|
-
//# sourceMappingURL=apps-
|
|
5734
|
+
//# sourceMappingURL=apps-C21-TXqR.mjs.map
|