@geekmidas/cli 10.0.0-alpha.170 → 10.0.0-alpha.172
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-DK9_Jw9d.cjs → GoDaddyProvider-BLCCgWNA.cjs} +2 -2
- package/dist/{GoDaddyProvider-DK9_Jw9d.cjs.map → GoDaddyProvider-BLCCgWNA.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-Cf4MIuaD.mjs → GoDaddyProvider-CIhg_ymt.mjs} +2 -2
- package/dist/{GoDaddyProvider-Cf4MIuaD.mjs.map → GoDaddyProvider-CIhg_ymt.mjs.map} +1 -1
- package/dist/{HostingerProvider-CQebZrz3.mjs → HostingerProvider-BOFzH5JM.mjs} +2 -2
- package/dist/{HostingerProvider-CQebZrz3.mjs.map → HostingerProvider-BOFzH5JM.mjs.map} +1 -1
- package/dist/{HostingerProvider-qQzo4MYp.cjs → HostingerProvider-BUBeLZFT.cjs} +2 -2
- package/dist/{HostingerProvider-qQzo4MYp.cjs.map → HostingerProvider-BUBeLZFT.cjs.map} +1 -1
- package/dist/{LegacyStateStore-BeMRGXRi.cjs → LegacyStateStore-CLuyua0d.cjs} +2 -2
- package/dist/{LegacyStateStore-BeMRGXRi.cjs.map → LegacyStateStore-CLuyua0d.cjs.map} +1 -1
- package/dist/{LegacyStateStore-DXPHKdMk.mjs → LegacyStateStore-CrkjCaSU.mjs} +2 -2
- package/dist/{LegacyStateStore-DXPHKdMk.mjs.map → LegacyStateStore-CrkjCaSU.mjs.map} +1 -1
- package/dist/{LocalStateStore-E_sa5GR2.cjs → LocalStateStore-Bu1mGMUv.cjs} +2 -2
- package/dist/{LocalStateStore-E_sa5GR2.cjs.map → LocalStateStore-Bu1mGMUv.cjs.map} +1 -1
- package/dist/{LocalStateStore-BYQ9lPje.mjs → LocalStateStore-DV4jBo8p.mjs} +2 -2
- package/dist/{LocalStateStore-BYQ9lPje.mjs.map → LocalStateStore-DV4jBo8p.mjs.map} +1 -1
- package/dist/{S3StateStore-BQaGVNRf.mjs → S3StateStore-B4FDrGY1.mjs} +4 -4
- package/dist/{S3StateStore-BQaGVNRf.mjs.map → S3StateStore-B4FDrGY1.mjs.map} +1 -1
- package/dist/{S3StateStore-Cjr4Rtsf.cjs → S3StateStore-kbkBod12.cjs} +4 -4
- package/dist/{S3StateStore-Cjr4Rtsf.cjs.map → S3StateStore-kbkBod12.cjs.map} +1 -1
- package/dist/{SSMStateStore-Bq_S7x5_.mjs → SSMStateStore-5MSu94ua.mjs} +2 -2
- package/dist/{SSMStateStore-Bq_S7x5_.mjs.map → SSMStateStore-5MSu94ua.mjs.map} +1 -1
- package/dist/{SSMStateStore-Cnfwdlme.cjs → SSMStateStore-DbsAcN97.cjs} +2 -2
- package/dist/{SSMStateStore-Cnfwdlme.cjs.map → SSMStateStore-DbsAcN97.cjs.map} +1 -1
- package/dist/{add-3_IHpF5F.cjs → add-CB1o52l-.cjs} +5 -5
- package/dist/{add-3_IHpF5F.cjs.map → add-CB1o52l-.cjs.map} +1 -1
- package/dist/{add-CNQFnG0C.mjs → add-CLEIQtcF.mjs} +5 -5
- package/dist/{add-CNQFnG0C.mjs.map → add-CLEIQtcF.mjs.map} +1 -1
- package/dist/{apps-DGod3aS9.mjs → apps-B4qOLFEC.mjs} +16 -795
- package/dist/apps-B4qOLFEC.mjs.map +1 -0
- package/dist/{apps-BGu47YRF.cjs → apps-CTyacCpW.cjs} +28 -897
- package/dist/apps-CTyacCpW.cjs.map +1 -0
- package/dist/{bundler-DWGxNGSB.cjs → bundler-Bma2_DTI.cjs} +6 -6
- package/dist/{bundler-DWGxNGSB.cjs.map → bundler-Bma2_DTI.cjs.map} +1 -1
- package/dist/{bundler-Dm0mB7EK.mjs → bundler-CSSYSsl8.mjs} +6 -6
- package/dist/{bundler-Dm0mB7EK.mjs.map → bundler-CSSYSsl8.mjs.map} +1 -1
- package/dist/{cli-Qm-8tG46.mjs → cli-BFEuBKiU.mjs} +4 -4
- package/dist/{cli-Qm-8tG46.mjs.map → cli-BFEuBKiU.mjs.map} +1 -1
- package/dist/{cli-CYeZF85I.cjs → cli-DXGl3fsc.cjs} +4 -4
- package/dist/{cli-CYeZF85I.cjs.map → cli-DXGl3fsc.cjs.map} +1 -1
- package/dist/{compose-IsvqY6iX.cjs → compose-BNWFrHHE.cjs} +64 -11
- package/dist/compose-BNWFrHHE.cjs.map +1 -0
- package/dist/{compose-CXgwCuqv.mjs → compose-CANkT9bL.mjs} +923 -25
- package/dist/compose-CANkT9bL.mjs.map +1 -0
- package/dist/{compose-CshnO-Th.cjs → compose-DpDrZwZS.cjs} +1063 -27
- package/dist/compose-DpDrZwZS.cjs.map +1 -0
- package/dist/{compose-BVeevJO_.mjs → compose-SSYHdZMN.mjs} +63 -10
- package/dist/compose-SSYHdZMN.mjs.map +1 -0
- package/dist/{config-u5XdE1Cq.d.cts → config-CsCYzlVO.d.mts} +3 -3
- package/dist/{config-B8gSu59v.d.mts.map → config-CsCYzlVO.d.mts.map} +1 -1
- package/dist/{config-B8gSu59v.d.mts → config-D-gHQXhi.d.cts} +3 -3
- package/dist/{config-u5XdE1Cq.d.cts.map → config-D-gHQXhi.d.cts.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/{credentials-DzR2j8h1.cjs → credentials-BAeWfaj3.cjs} +6 -6
- package/dist/{credentials-DzR2j8h1.cjs.map → credentials-BAeWfaj3.cjs.map} +1 -1
- package/dist/{credentials-CKIeLL7T.mjs → credentials-DmNpxlFO.mjs} +6 -6
- package/dist/{credentials-CKIeLL7T.mjs.map → credentials-DmNpxlFO.mjs.map} +1 -1
- package/dist/deploy/public.cjs +11 -11
- package/dist/deploy/public.d.cts +4 -4
- package/dist/deploy/public.d.mts +4 -4
- package/dist/deploy/public.mjs +11 -11
- package/dist/{deploy-DQjEjUfB.cjs → deploy-DHrbzHxT.cjs} +25 -27
- package/dist/deploy-DHrbzHxT.cjs.map +1 -0
- package/dist/{deploy-CjubyZlP.mjs → deploy-Qa7wXYS4.mjs} +24 -26
- package/dist/deploy-Qa7wXYS4.mjs.map +1 -0
- package/dist/{destroy-D1375m8C.cjs → destroy-CJ6wwQRQ.cjs} +9 -9
- package/dist/{destroy-D1375m8C.cjs.map → destroy-CJ6wwQRQ.cjs.map} +1 -1
- package/dist/{destroy-D4m5aO9k.mjs → destroy-CKuYg9JQ.mjs} +9 -9
- package/dist/{destroy-D4m5aO9k.mjs.map → destroy-CKuYg9JQ.mjs.map} +1 -1
- package/dist/{docker-CSEAKwFr.cjs → docker-C9ObsT80.cjs} +9 -9
- package/dist/{docker-CSEAKwFr.cjs.map → docker-C9ObsT80.cjs.map} +1 -1
- package/dist/{docker-C27YUUMQ.mjs → docker-CrNWM0jN.mjs} +5 -5
- package/dist/{docker-C27YUUMQ.mjs.map → docker-CrNWM0jN.mjs.map} +1 -1
- package/dist/{dokploy-DJDdiFz6.cjs → dokploy-C6KfcyOG.cjs} +2 -2
- package/dist/{dokploy-DJDdiFz6.cjs.map → dokploy-C6KfcyOG.cjs.map} +1 -1
- package/dist/{dokploy-CSqDsvY-.mjs → dokploy-DITW2LHL.mjs} +2 -2
- package/dist/{dokploy-CSqDsvY-.mjs.map → dokploy-DITW2LHL.mjs.map} +1 -1
- package/dist/{eas-DryGYjFk.cjs → eas-BBwlSGd8.cjs} +3 -3
- package/dist/{eas-DryGYjFk.cjs.map → eas-BBwlSGd8.cjs.map} +1 -1
- package/dist/{eas-DC3F8cy0.mjs → eas-BE7tu9eH.mjs} +3 -3
- package/dist/{eas-DC3F8cy0.mjs.map → eas-BE7tu9eH.mjs.map} +1 -1
- package/dist/{encryption-C8Y8Ly6n.mjs → encryption-Bn_pIrIe.mjs} +3 -3
- package/dist/{encryption-C8Y8Ly6n.mjs.map → encryption-Bn_pIrIe.mjs.map} +1 -1
- package/dist/{encryption-8qZGm15p.cjs → encryption-D0jmwRdU.cjs} +3 -3
- package/dist/{encryption-8qZGm15p.cjs.map → encryption-D0jmwRdU.cjs.map} +1 -1
- package/dist/{engine-DI7JAyiD.cjs → engine-BDqBychY.cjs} +19 -19
- package/dist/{engine-DI7JAyiD.cjs.map → engine-BDqBychY.cjs.map} +1 -1
- package/dist/{engine-C9E0MeLm.mjs → engine-Dv4SfML2.mjs} +9 -9
- package/dist/{engine-C9E0MeLm.mjs.map → engine-Dv4SfML2.mjs.map} +1 -1
- package/dist/{github-DdaV-Gll.mjs → github-7vONG88-.mjs} +7 -7
- package/dist/{github-DdaV-Gll.mjs.map → github-7vONG88-.mjs.map} +1 -1
- package/dist/{github-g3nRZlli.cjs → github-orgDU5Ta.cjs} +7 -7
- package/dist/{github-g3nRZlli.cjs.map → github-orgDU5Ta.cjs.map} +1 -1
- package/dist/{googlePlay-BmeR1kY4.mjs → googlePlay-DOPEv_Uu.mjs} +4 -4
- package/dist/{googlePlay-BmeR1kY4.mjs.map → googlePlay-DOPEv_Uu.mjs.map} +1 -1
- package/dist/{googlePlay-BHJ_iThq.cjs → googlePlay-DWiYD2Up.cjs} +4 -4
- package/dist/{googlePlay-BHJ_iThq.cjs.map → googlePlay-DWiYD2Up.cjs.map} +1 -1
- package/dist/{iam-ra1_Y405.mjs → iam-BE0qX5Lb.mjs} +2 -2
- package/dist/{iam-ra1_Y405.mjs.map → iam-BE0qX5Lb.mjs.map} +1 -1
- package/dist/{iam-BoYPPNdM.cjs → iam-FA95ku7l.cjs} +2 -2
- package/dist/{iam-BoYPPNdM.cjs.map → iam-FA95ku7l.cjs.map} +1 -1
- package/dist/{index-DFZ0SMwN.d.mts → index-QxGYzGEN.d.mts} +2 -2
- package/dist/{index-1H93w_H6.d.cts.map → index-QxGYzGEN.d.mts.map} +1 -1
- package/dist/{index-1H93w_H6.d.cts → index-tFzoro1V.d.cts} +2 -2
- package/dist/{index-DFZ0SMwN.d.mts.map → index-tFzoro1V.d.cts.map} +1 -1
- package/dist/index.cjs +72 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +63 -63
- package/dist/index.mjs.map +1 -1
- package/dist/{local-DTidpa-a.cjs → local-Dx_1DLrj.cjs} +2 -2
- package/dist/{local-DTidpa-a.cjs.map → local-Dx_1DLrj.cjs.map} +1 -1
- package/dist/{local-Bkv-e8uM.mjs → local-s-ReaV9D.mjs} +2 -2
- package/dist/{local-Bkv-e8uM.mjs.map → local-s-ReaV9D.mjs.map} +1 -1
- package/dist/{migrate-BZRsJwni.mjs → migrate-83OqvIDr.mjs} +3 -3
- package/dist/{migrate-BZRsJwni.mjs.map → migrate-83OqvIDr.mjs.map} +1 -1
- package/dist/{migrate-CXLhrHwu.cjs → migrate-BCnC1nUd.cjs} +5 -5
- package/dist/{migrate-CXLhrHwu.cjs.map → migrate-BCnC1nUd.cjs.map} +1 -1
- package/dist/{migrate-DU4MtKxz.cjs → migrate-BwKps39u.cjs} +3 -3
- package/dist/{migrate-DU4MtKxz.cjs.map → migrate-BwKps39u.cjs.map} +1 -1
- package/dist/{migrate-DNOI23QA.mjs → migrate-rZPQE2lm.mjs} +5 -5
- package/dist/{migrate-DNOI23QA.mjs.map → migrate-rZPQE2lm.mjs.map} +1 -1
- package/dist/{notes-1TM_Vzi7.mjs → notes-BvER-Te2.mjs} +4 -3
- package/dist/notes-BvER-Te2.mjs.map +1 -0
- package/dist/{notes-BpaXOAkA.cjs → notes-Chp3yhjU.cjs} +4 -3
- package/dist/{notes-1TM_Vzi7.mjs.map → notes-Chp3yhjU.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/{projectBucket-DbEWuLGX.cjs → projectBucket-BcbirdBj.cjs} +2 -2
- package/dist/{projectBucket-DbEWuLGX.cjs.map → projectBucket-BcbirdBj.cjs.map} +1 -1
- package/dist/{projectBucket-BRgsSv2P.mjs → projectBucket-BfE46Zj9.mjs} +2 -2
- package/dist/{projectBucket-BRgsSv2P.mjs.map → projectBucket-BfE46Zj9.mjs.map} +1 -1
- package/dist/{publish-DjFgxu2v.mjs → publish-Cm7fGhl3.mjs} +2 -2
- package/dist/{publish-DjFgxu2v.mjs.map → publish-Cm7fGhl3.mjs.map} +1 -1
- package/dist/{publish-BN1l3tPF.cjs → publish-N7RjKFiU.cjs} +2 -2
- package/dist/{publish-BN1l3tPF.cjs.map → publish-N7RjKFiU.cjs.map} +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-NEKsqNAw.mjs → resolve-BP-wvD7F.mjs} +4 -4
- package/dist/{resolve-NEKsqNAw.mjs.map → resolve-BP-wvD7F.mjs.map} +1 -1
- package/dist/{resolve-BHVyg4Hg.cjs → resolve-Bjz8vr36.cjs} +4 -4
- package/dist/{resolve-BHVyg4Hg.cjs.map → resolve-Bjz8vr36.cjs.map} +1 -1
- package/dist/{rollback-CUjvOIDE.cjs → rollback-C0QxGS7N.cjs} +6 -6
- package/dist/{rollback-CUjvOIDE.cjs.map → rollback-C0QxGS7N.cjs.map} +1 -1
- package/dist/{rollback-BVgyLE7B.mjs → rollback-OWocmLZ3.mjs} +6 -6
- package/dist/{rollback-BVgyLE7B.mjs.map → rollback-OWocmLZ3.mjs.map} +1 -1
- package/dist/{runtime-CKOkIrw0.d.cts → runtime-BpGIXfYr.d.mts} +2 -2
- package/dist/{runtime-CKOkIrw0.d.cts.map → runtime-BpGIXfYr.d.mts.map} +1 -1
- package/dist/{runtime-Cdvv8SfU.d.mts → runtime-DLV0CNZ4.d.cts} +2 -2
- package/dist/{runtime-Cdvv8SfU.d.mts.map → runtime-DLV0CNZ4.d.cts.map} +1 -1
- package/dist/{s3-BO4yr61G.mjs → s3-BrXDNOOi.mjs} +3 -3
- package/dist/{s3-BO4yr61G.mjs.map → s3-BrXDNOOi.mjs.map} +1 -1
- package/dist/{s3-DnPbDfQN.cjs → s3-CQHYU8Iy.cjs} +3 -3
- package/dist/{s3-DnPbDfQN.cjs.map → s3-CQHYU8Iy.cjs.map} +1 -1
- package/dist/{serverSetup-BxnCM11A.mjs → serverSetup-DAXGkiFf.mjs} +6 -6
- package/dist/{serverSetup-BxnCM11A.mjs.map → serverSetup-DAXGkiFf.mjs.map} +1 -1
- package/dist/{serverSetup-DScJ7tQs.cjs → serverSetup-DcyafYuO.cjs} +6 -6
- package/dist/{serverSetup-DScJ7tQs.cjs.map → serverSetup-DcyafYuO.cjs.map} +1 -1
- package/dist/{sniffer-9smKtb86.mjs → sniffer-D6dwbd7L.mjs} +7 -7
- package/dist/{sniffer-9smKtb86.mjs.map → sniffer-D6dwbd7L.mjs.map} +1 -1
- package/dist/{sniffer-DHcxlSJF.cjs → sniffer-DpiPHtcR.cjs} +7 -7
- package/dist/{sniffer-DHcxlSJF.cjs.map → sniffer-DpiPHtcR.cjs.map} +1 -1
- package/dist/{snsSubscriptions-CygsiXhb.mjs → snsSubscriptions-BVaZU0qQ.mjs} +4 -4
- package/dist/{snsSubscriptions-CygsiXhb.mjs.map → snsSubscriptions-BVaZU0qQ.mjs.map} +1 -1
- package/dist/{snsSubscriptions-B8TYeAM-.cjs → snsSubscriptions-CXpZqb-Y.cjs} +4 -4
- package/dist/{snsSubscriptions-B8TYeAM-.cjs.map → snsSubscriptions-CXpZqb-Y.cjs.map} +1 -1
- package/dist/{sst-DiHVSku5.cjs → sst-C0VMb3o0.cjs} +5 -5
- package/dist/{sst-DiHVSku5.cjs.map → sst-C0VMb3o0.cjs.map} +1 -1
- package/dist/{sst-Bgb3WWEl.mjs → sst-CglMlWMQ.mjs} +5 -5
- package/dist/{sst-Bgb3WWEl.mjs.map → sst-CglMlWMQ.mjs.map} +1 -1
- package/dist/{stack-A3evQgbk.cjs → stack-DKloCsy6.cjs} +80 -24
- package/dist/stack-DKloCsy6.cjs.map +1 -0
- package/dist/{stack-Cy2FwO3Z.mjs → stack-DXHdVCsD.mjs} +62 -12
- package/dist/stack-DXHdVCsD.mjs.map +1 -0
- package/dist/{stage-Dgy08WVL.mjs → stage-BOOoPl_k.mjs} +6 -6
- package/dist/{stage-Dgy08WVL.mjs.map → stage-BOOoPl_k.mjs.map} +1 -1
- package/dist/{stage-Bm1x9Anp.cjs → stage-CcsCwU8-.cjs} +6 -6
- package/dist/{stage-Bm1x9Anp.cjs.map → stage-CcsCwU8-.cjs.map} +1 -1
- package/dist/{stages-COiipV8N.mjs → stages-CCAAe1tP.mjs} +2 -2
- package/dist/{stages-COiipV8N.mjs.map → stages-CCAAe1tP.mjs.map} +1 -1
- package/dist/{stages-BWg3NU3J.cjs → stages-D49CUpBY.cjs} +2 -2
- package/dist/{stages-BWg3NU3J.cjs.map → stages-D49CUpBY.cjs.map} +1 -1
- 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/{terminal-BDRxzEZD.cjs → terminal-Bc0XhkqW.cjs} +2 -2
- package/dist/{terminal-BDRxzEZD.cjs.map → terminal-Bc0XhkqW.cjs.map} +1 -1
- package/dist/{terminal-BRAIvH83.mjs → terminal-D92VjzyD.mjs} +2 -2
- package/dist/{terminal-BRAIvH83.mjs.map → terminal-D92VjzyD.mjs.map} +1 -1
- package/dist/{types-DEmuMHsS.d.cts → types-Bj1A1wkS.d.mts} +3 -3
- package/dist/{types-g_S0_RAi.d.mts.map → types-Bj1A1wkS.d.mts.map} +1 -1
- package/dist/{types-g_S0_RAi.d.mts → types-CV4AzwC_.d.cts} +4 -2
- package/dist/{types-DEmuMHsS.d.cts.map → types-CV4AzwC_.d.cts.map} +1 -1
- 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-_aoe8v6u.mjs → workspace-B0PI9k9p.mjs} +28 -5
- package/dist/workspace-B0PI9k9p.mjs.map +1 -0
- package/dist/{workspace-CEpojAus.cjs → workspace-LR9DFjU8.cjs} +39 -4
- package/dist/workspace-LR9DFjU8.cjs.map +1 -0
- package/package.json +15 -15
- package/dist/apps-BGu47YRF.cjs.map +0 -1
- package/dist/apps-DGod3aS9.mjs.map +0 -1
- package/dist/compose-BVeevJO_.mjs.map +0 -1
- package/dist/compose-CXgwCuqv.mjs.map +0 -1
- package/dist/compose-CshnO-Th.cjs.map +0 -1
- package/dist/compose-IsvqY6iX.cjs.map +0 -1
- package/dist/deploy-CjubyZlP.mjs.map +0 -1
- package/dist/deploy-DQjEjUfB.cjs.map +0 -1
- package/dist/notes-BpaXOAkA.cjs.map +0 -1
- package/dist/stack-A3evQgbk.cjs.map +0 -1
- package/dist/stack-Cy2FwO3Z.mjs.map +0 -1
- package/dist/workspace-CEpojAus.cjs.map +0 -1
- package/dist/workspace-_aoe8v6u.mjs.map +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
2
|
const require_errors = require("./errors-DMC4Umsb.cjs");
|
|
3
|
-
const require_credentials = require("./credentials-
|
|
4
|
-
const require_workspace = require("./workspace-
|
|
5
|
-
const require_compose = require("./compose-
|
|
3
|
+
const require_credentials = require("./credentials-BAeWfaj3.cjs");
|
|
4
|
+
const require_workspace = require("./workspace-LR9DFjU8.cjs");
|
|
5
|
+
const require_compose = require("./compose-DpDrZwZS.cjs");
|
|
6
6
|
const require_SubscriberGenerator = require("./SubscriberGenerator-DMi4siph.cjs");
|
|
7
|
-
const require_types = require("./types-Bl_CwZC9.cjs");
|
|
8
7
|
const require_EndpointGenerator = require("./EndpointGenerator-C1h_wExz.cjs");
|
|
9
8
|
const require_discover = require("./discover-39VKSE2i.cjs");
|
|
10
9
|
let node_path = require("node:path");
|
|
@@ -149,789 +148,6 @@ function backupExpiries(workspace, manifest) {
|
|
|
149
148
|
return expiries;
|
|
150
149
|
}
|
|
151
150
|
//#endregion
|
|
152
|
-
//#region src/generators/processorRoute.ts
|
|
153
|
-
/**
|
|
154
|
-
* Where `gkm dev` serves a file server's processors, on the dev server of the
|
|
155
|
-
* app holding them: named after the file server.
|
|
156
|
-
*
|
|
157
|
-
* One definition for both sides — the dev server mounts it, and the local
|
|
158
|
-
* edge rewrites each processor pattern on the file server's host onto it — so
|
|
159
|
-
* the path the edge sends and the path the server answers cannot drift.
|
|
160
|
-
*/
|
|
161
|
-
const PROCESSORS_DEV_PREFIX = "/__gkm/processors/";
|
|
162
|
-
/** The base a file server's processors answer under, in `gkm dev`. */
|
|
163
|
-
function processorsDevRoute(fileServerId) {
|
|
164
|
-
return `${PROCESSORS_DEV_PREFIX}${fileServerId}`;
|
|
165
|
-
}
|
|
166
|
-
//#endregion
|
|
167
|
-
//#region src/reconcile/caddyfile.ts
|
|
168
|
-
/**
|
|
169
|
-
* The Caddy configuration a plan implies.
|
|
170
|
-
*
|
|
171
|
-
* A file server is a *domain that serves a bucket*, and locally it had neither:
|
|
172
|
-
* `UPLOADS_URL` resolved to MinIO's path-style address, which works and
|
|
173
|
-
* is not the deployed shape. MinIO's own virtual-host mode cannot fix that —
|
|
174
|
-
* it reads the leading label *as the bucket name*, so it produces the right
|
|
175
|
-
* shape only when the server's id and the bucket's happen to agree, and never
|
|
176
|
-
* for a server fronting two buckets.
|
|
177
|
-
*
|
|
178
|
-
* So the mapping lives in front of MinIO instead: one host per file server,
|
|
179
|
-
* rewriting the bucket in as a path prefix. That is the whole of it — no
|
|
180
|
-
* caching, because caching is not what is missing locally, and a caching proxy
|
|
181
|
-
* would add an invalidation story a local stack has no use for.
|
|
182
|
-
*
|
|
183
|
-
* What it buys beyond the shape is a certificate: gkm's local authority
|
|
184
|
-
* (`trust/authority.ts`) issues one for the stage's hosts, which the edge
|
|
185
|
-
* serves the way a deployed edge serves the stage's own, so a local address is
|
|
186
|
-
* `https://` like the deployed one, and
|
|
187
|
-
* everything downstream of that — `Secure` cookies, `SameSite`, a cookie domain
|
|
188
|
-
* with more than one host under it — starts behaving the way it will in
|
|
189
|
-
* production rather than the way `http://localhost` allows.
|
|
190
|
-
*
|
|
191
|
-
* Pure, like `composeFor`: what should exist is data, and rendering it is one
|
|
192
|
-
* line at the edge.
|
|
193
|
-
*/
|
|
194
|
-
/**
|
|
195
|
-
* The kinds the edge serves.
|
|
196
|
-
*
|
|
197
|
-
* Everything that owns a *public address*. Deployed, each of these has a real
|
|
198
|
-
* hostname and a certificate, so this is what makes the local shape the same
|
|
199
|
-
* one rather than a near-enough one — and the application is indifferent
|
|
200
|
-
* either way, because it reads whichever address was injected and never
|
|
201
|
-
* composes one.
|
|
202
|
-
*
|
|
203
|
-
* Adding a kind here is the whole of adding it to the edge.
|
|
204
|
-
*/
|
|
205
|
-
const EDGE_KINDS = {
|
|
206
|
-
"file-server": true,
|
|
207
|
-
"rest-api": true,
|
|
208
|
-
"websocket-api": true,
|
|
209
|
-
site: true
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* How the edge reaches the host, from inside its container.
|
|
213
|
-
*
|
|
214
|
-
* A surface and a site are served by processes `gkm dev` starts on the host,
|
|
215
|
-
* not by containers — so the edge has to leave Docker's network to reach them.
|
|
216
|
-
* Docker Desktop resolves this name already; on Linux the compose definition
|
|
217
|
-
* maps it to the host gateway.
|
|
218
|
-
*/
|
|
219
|
-
const HOST_GATEWAY = "host.docker.internal";
|
|
220
|
-
/** Where the edge's container reads `.gkm/caddy-sites/` — routes and certificates. */
|
|
221
|
-
const CADDY_SITES_IN_CONTAINER = "/etc/caddy/sites";
|
|
222
|
-
/**
|
|
223
|
-
* The suffix every local host shares.
|
|
224
|
-
*
|
|
225
|
-
* `.localhost` rather than a made-up TLD because it resolves to loopback
|
|
226
|
-
* without touching `/etc/hosts` — macOS and systemd-resolved both answer for
|
|
227
|
-
* subdomains of it.
|
|
228
|
-
*/
|
|
229
|
-
const LOCAL_TLD = "localhost";
|
|
230
|
-
/**
|
|
231
|
-
* The sites a plan implies, one per file server.
|
|
232
|
-
*
|
|
233
|
-
* The leading label is the *server's* stage-scoped name rather than the
|
|
234
|
-
* bucket's, which is the difference that matters: two servers over one bucket
|
|
235
|
-
* are a legitimate arrangement — two cache behaviours, one origin — and naming
|
|
236
|
-
* the host after the bucket would make them collide.
|
|
237
|
-
*/
|
|
238
|
-
function sitesFor(plan, project, addresses = {}, processorAddresses = {}) {
|
|
239
|
-
const byId = new Map(plan.resources.map((r) => [r.id, r]));
|
|
240
|
-
const sites = [];
|
|
241
|
-
for (const resource of plan.resources) {
|
|
242
|
-
if (!EDGE_KINDS[resource.kind]) continue;
|
|
243
|
-
const host = hostFor$1(resource, project);
|
|
244
|
-
if (resource.kind === "file-server") {
|
|
245
|
-
const origin = resource.of ? byId.get(resource.of) : void 0;
|
|
246
|
-
if (!origin) continue;
|
|
247
|
-
const address = processorAddresses[resource.id];
|
|
248
|
-
const port = address ? portOf(address) : void 0;
|
|
249
|
-
sites.push({
|
|
250
|
-
host,
|
|
251
|
-
upstream: "http://minio:9000",
|
|
252
|
-
rewrite: `/${origin.name}{uri}`,
|
|
253
|
-
...resource.processors?.length && port ? { processors: {
|
|
254
|
-
prefixes: resource.processors,
|
|
255
|
-
upstream: `http://${HOST_GATEWAY}:${port}`,
|
|
256
|
-
under: processorsDevRoute(resource.id)
|
|
257
|
-
} } : {}
|
|
258
|
-
});
|
|
259
|
-
continue;
|
|
260
|
-
}
|
|
261
|
-
const address = addresses[resource.id];
|
|
262
|
-
if (!address) continue;
|
|
263
|
-
const port = portOf(address);
|
|
264
|
-
if (!port) continue;
|
|
265
|
-
const upstream = `http://${HOST_GATEWAY}:${port}`;
|
|
266
|
-
if (resource.subdomain === _geekmidas_manifest.WILDCARD_SUBDOMAIN) {
|
|
267
|
-
sites.push({
|
|
268
|
-
host,
|
|
269
|
-
upstream,
|
|
270
|
-
tenants: tenantsOf(resource, host, addresses)
|
|
271
|
-
});
|
|
272
|
-
continue;
|
|
273
|
-
}
|
|
274
|
-
const { aliases, redirects } = hostsFor(resource, project);
|
|
275
|
-
sites.push({
|
|
276
|
-
host,
|
|
277
|
-
upstream,
|
|
278
|
-
...aliases.length ? { aliases } : {},
|
|
279
|
-
...redirects.length ? { redirects } : {}
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
return sites;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* What stands between a wildcard site and a host that is not a tenant.
|
|
286
|
-
*
|
|
287
|
-
* Caddy already prefers a named host to the `*`, so `api.shop.localhost`
|
|
288
|
-
* reaches the API whatever the wildcard says. What it cannot know is the
|
|
289
|
-
* labels nothing is running on: `www`, or an app this stage has not started.
|
|
290
|
-
* Those are refused here, so no slug that a deploy would protect is ever
|
|
291
|
-
* served locally either.
|
|
292
|
-
*
|
|
293
|
-
* The `hosts` route is asked through `forward_auth`, which is a deployed
|
|
294
|
-
* edge's check in miniature: a `2xx` lets the request through, and any other
|
|
295
|
-
* answer — the app's own `404` — is what the browser gets, so a mistyped
|
|
296
|
-
* slug fails here and not first in production. Without an address for the
|
|
297
|
-
* surface serving it there is nothing to ask, and every host is served.
|
|
298
|
-
*/
|
|
299
|
-
function tenantsOf(resource, host, addresses) {
|
|
300
|
-
const domain = host.slice(`${_geekmidas_manifest.WILDCARD_SUBDOMAIN}.`.length);
|
|
301
|
-
const surface = resource.hosts ? addresses[resource.hosts.surface] : void 0;
|
|
302
|
-
const port = surface ? portOf(surface) : void 0;
|
|
303
|
-
return {
|
|
304
|
-
protected: (resource.protectedSubdomains ?? []).map((label) => `${label}.${domain}`),
|
|
305
|
-
...resource.hosts && port ? { hosts: {
|
|
306
|
-
upstream: `http://${HOST_GATEWAY}:${port}`,
|
|
307
|
-
uri: `${resource.hosts.path}?domain={host}`
|
|
308
|
-
} } : {}
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
/** The port a local address answers on, defaulting by scheme. */
|
|
312
|
-
function portOf(address) {
|
|
313
|
-
try {
|
|
314
|
-
const { port, protocol } = new URL(address);
|
|
315
|
-
return port || (protocol === "https:" ? "443" : "80");
|
|
316
|
-
} catch {
|
|
317
|
-
return;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Where one file server answers, including the stage its name carries.
|
|
322
|
-
*
|
|
323
|
-
* The project is a label rather than a decoration: it is what keeps two
|
|
324
|
-
* checkouts from answering on one address. Omitted when there is no project to
|
|
325
|
-
* name, because an empty label makes `uploads..localhost` — a host nothing
|
|
326
|
-
* resolves and no certificate can be issued for.
|
|
327
|
-
*/
|
|
328
|
-
function hostFor$1(resource, project) {
|
|
329
|
-
const label = resource.root && project ? stageOf(resource) : labelOf(resource);
|
|
330
|
-
if (resource.subdomain === _geekmidas_manifest.WILDCARD_SUBDOMAIN) return [
|
|
331
|
-
_geekmidas_manifest.WILDCARD_SUBDOMAIN,
|
|
332
|
-
stageOf(resource),
|
|
333
|
-
project,
|
|
334
|
-
LOCAL_TLD
|
|
335
|
-
].filter(Boolean).join(".");
|
|
336
|
-
return [
|
|
337
|
-
label,
|
|
338
|
-
project,
|
|
339
|
-
LOCAL_TLD
|
|
340
|
-
].filter(Boolean).join(".");
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* Where a resource answers, every host of it: {@link hostFor}'s, and each
|
|
344
|
-
* alias and redirect label under the project, carrying the stage as its own
|
|
345
|
-
* label does — `www-test.shop.localhost` for `gkm test`.
|
|
346
|
-
*/
|
|
347
|
-
function hostsFor(resource, project) {
|
|
348
|
-
const stage = stageOf(resource);
|
|
349
|
-
const under = (label) => [
|
|
350
|
-
stage ? `${label}-${stage}` : label,
|
|
351
|
-
project,
|
|
352
|
-
LOCAL_TLD
|
|
353
|
-
].filter(Boolean).join(".");
|
|
354
|
-
return {
|
|
355
|
-
host: hostFor$1(resource, project),
|
|
356
|
-
aliases: (resource.aliases ?? []).map(under),
|
|
357
|
-
redirects: (resource.redirects ?? []).map(under)
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* A resource's own label: its `subdomain` where it declared one, and a file
|
|
362
|
-
* server's own name — the label a deploy uses too — with the stage it carries
|
|
363
|
-
* kept, so `gkm test` and `gkm dev` still answer on different hosts.
|
|
364
|
-
*/
|
|
365
|
-
function labelOf(resource) {
|
|
366
|
-
const own = resource.kind === "file-server" ? require_workspace.fileServerLabel(resource.id) : resource.subdomain;
|
|
367
|
-
if (!own) return resource.name;
|
|
368
|
-
const stage = stageOf(resource);
|
|
369
|
-
return stage ? `${own}-${stage}` : own;
|
|
370
|
-
}
|
|
371
|
-
/** The stage a resource's name carries, or nothing for the local stage's. */
|
|
372
|
-
function stageOf(resource) {
|
|
373
|
-
const base = resource.id.toLowerCase();
|
|
374
|
-
return resource.name === base ? void 0 : resource.name.slice(base.length + 1);
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
* The static root config, which only ever imports.
|
|
378
|
-
*
|
|
379
|
-
* Written once and identical for every stage, because the *sites* are what
|
|
380
|
-
* differ and they live in their own files. That split is not tidiness: one
|
|
381
|
-
* container serves every stage — the same way one Postgres holds `orders` and
|
|
382
|
-
* `orders_test` — so a single Caddyfile would mean `gkm test` deleting the
|
|
383
|
-
* routes `gkm dev` is serving, and each command silently breaking the other.
|
|
384
|
-
*/
|
|
385
|
-
function caddyfileRoot() {
|
|
386
|
-
return `${GENERATED}
|
|
387
|
-
{
|
|
388
|
-
# No ACME, no public DNS: each stage's certificate is gkm's, beside its
|
|
389
|
-
# routes, and the names are local.
|
|
390
|
-
auto_https disable_redirects
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
# One file per stage, so two stages share this edge the way they already share
|
|
394
|
-
# one Postgres and one MinIO.
|
|
395
|
-
import ${CADDY_SITES_IN_CONTAINER}/*.caddy
|
|
396
|
-
`;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* One stage's sites, as the file imported above.
|
|
400
|
-
*
|
|
401
|
-
* `rewrite` rather than a path prefix on the address: the bucket is the
|
|
402
|
-
* origin's business, and the client asks for the key it stored.
|
|
403
|
-
*
|
|
404
|
-
* `header_up Host {upstream_hostport}` matters more than it looks. MinIO routes
|
|
405
|
-
* and signs on the Host header, so forwarding the requested hostname would make
|
|
406
|
-
* it look for a bucket named after the domain.
|
|
407
|
-
*/
|
|
408
|
-
function toCaddyfile(sites, options) {
|
|
409
|
-
if (sites.length === 0) return `${GENERATED}
|
|
410
|
-
# No file server is declared in this stage, so it routes nothing.
|
|
411
|
-
`;
|
|
412
|
-
const port = options.port && options.port !== 443 ? `:${options.port}` : "";
|
|
413
|
-
const blocks = sites.map(({ host, upstream, rewrite, processors, tenants, aliases, redirects }) => {
|
|
414
|
-
const proxy = `reverse_proxy ${upstream} {${rewrite ? `
|
|
415
|
-
rewrite ${rewrite}
|
|
416
|
-
# MinIO routes and signs on the Host header, so forwarding the requested
|
|
417
|
-
# hostname would make it look for a bucket named after the domain.
|
|
418
|
-
header_up Host {upstream_hostport}` : `
|
|
419
|
-
# The application reads whatever address was injected, so it has to see
|
|
420
|
-
# the one a caller used — that is what makes a redirect, a cookie domain
|
|
421
|
-
# and a generated link point back here rather than at the upstream.
|
|
422
|
-
header_up Host {host}
|
|
423
|
-
header_up X-Forwarded-Proto {scheme}`}
|
|
424
|
-
}`;
|
|
425
|
-
const redirectBlocks = (redirects ?? []).map((from) => `
|
|
426
|
-
https://${from} {
|
|
427
|
-
tls ${options.certificate} ${options.certificate}
|
|
428
|
-
|
|
429
|
-
redir https://${host}${port}{uri} permanent
|
|
430
|
-
}`).join("");
|
|
431
|
-
return `
|
|
432
|
-
${[host, ...aliases ?? []].map((name) => `https://${name}`).join(", ")} {
|
|
433
|
-
tls ${options.certificate} ${options.certificate}
|
|
434
|
-
|
|
435
|
-
${clientIpRule(options.edgeToken)}
|
|
436
|
-
${processors ? `
|
|
437
|
-
# Its processors' patterns, to the dev server holding them — under the
|
|
438
|
-
# route it mounts them on. Answered there, so the bucket below never is.
|
|
439
|
-
@processors path ${processors.prefixes.map((prefix) => `${prefix}*`).join(" ")}
|
|
440
|
-
handle @processors {
|
|
441
|
-
reverse_proxy ${processors.upstream} {
|
|
442
|
-
rewrite ${processors.under}{uri}
|
|
443
|
-
header_up Host {host}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
` : ""}${tenants ? tenantBlock(tenants, proxy) : ` ${proxy}`}
|
|
447
|
-
}${redirectBlocks}`;
|
|
448
|
-
});
|
|
449
|
-
return `${GENERATED}${blocks.join("\n")}\n`;
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* A wildcard site's routes: a protected host refused, every other host asked
|
|
453
|
-
* about before it is proxied. `handle` blocks rather than bare directives,
|
|
454
|
-
* because Caddy orders directives itself and would proxy before it refused.
|
|
455
|
-
*/
|
|
456
|
-
function tenantBlock(tenants, proxy) {
|
|
457
|
-
return `${tenants.protected.length ? `
|
|
458
|
-
# Labels an app answers on, or that the workspace protects: never a
|
|
459
|
-
# tenant's, whether or not anything is running on them.
|
|
460
|
-
@protected host ${tenants.protected.join(" ")}
|
|
461
|
-
handle @protected {
|
|
462
|
-
respond 404
|
|
463
|
-
}
|
|
464
|
-
` : ""}
|
|
465
|
-
handle {${tenants.hosts ? `
|
|
466
|
-
# Which hosts are tenants is the app's to say: its \`hosts\` route
|
|
467
|
-
# answers 200 to serve this one, and anything else goes back as is.
|
|
468
|
-
forward_auth ${tenants.hosts.upstream} {
|
|
469
|
-
uri ${tenants.hosts.uri}
|
|
470
|
-
}
|
|
471
|
-
` : ""}
|
|
472
|
-
${proxy.replaceAll("\n", "\n ")}
|
|
473
|
-
}`;
|
|
474
|
-
}
|
|
475
|
-
const GENERATED = `# Generated by gkm from the construct manifest — do not edit.
|
|
476
|
-
#
|
|
477
|
-
# One host per declared file server, in front of the object store that holds its
|
|
478
|
-
# objects. This is the shape a file server has deployed — a domain serving a
|
|
479
|
-
# bucket — which MinIO alone cannot produce: its virtual-host mode reads the
|
|
480
|
-
# leading label as the bucket name.
|
|
481
|
-
#
|
|
482
|
-
# Certificates come from gkm's local CA. "gkm dev" and "gkm test" point Node at
|
|
483
|
-
# its root, so nothing has to be installed to use these URLs from code; a
|
|
484
|
-
# browser needs the root trusted once ("gkm trust").
|
|
485
|
-
`;
|
|
486
|
-
/**
|
|
487
|
-
* The lines every site block of an edge opens with, for gkm's own
|
|
488
|
-
* `x-gkm-client-ip` — the client address the auth server rate-limits by.
|
|
489
|
-
*
|
|
490
|
-
* Only a service of this stack may send it. One that calls a sibling at its
|
|
491
|
-
* public address comes through this edge, and proves where it comes from with
|
|
492
|
-
* the stack's token (`x-gkm-edge-token`), derived from the stage's seed and
|
|
493
|
-
* handed to every process of the stack — never to a browser. A request
|
|
494
|
-
* without it has the header removed, so nobody outside can choose the address
|
|
495
|
-
* they are rate-limited by. Without a token, it is removed from every request.
|
|
496
|
-
*/
|
|
497
|
-
function clientIpRule(edgeToken) {
|
|
498
|
-
if (!edgeToken) return `
|
|
499
|
-
# gkm's own header, which only a service of this stack may send: the auth
|
|
500
|
-
# server rate-limits by the client address it carries.
|
|
501
|
-
request_header -${_geekmidas_manifest.CLIENT_IP_HEADER}`;
|
|
502
|
-
return `
|
|
503
|
-
# gkm's own header, which only a service of this stack may send — proven by
|
|
504
|
-
# the stack's token: the auth server rate-limits by the client address it
|
|
505
|
-
# carries. Removed from every other request.
|
|
506
|
-
@gkm_outside not header ${_geekmidas_manifest.EDGE_TOKEN_HEADER} ${edgeToken}
|
|
507
|
-
request_header @gkm_outside -${_geekmidas_manifest.CLIENT_IP_HEADER}`;
|
|
508
|
-
}
|
|
509
|
-
//#endregion
|
|
510
|
-
//#region src/telemetry/edges.ts
|
|
511
|
-
/**
|
|
512
|
-
* Which processes use a `Telemetry` node — read off the manifest's edges.
|
|
513
|
-
*
|
|
514
|
-
* A process uses telemetry when its own declaration names the node: a
|
|
515
|
-
* surface's `telemetry`, a worker's. A surface's process runs its own
|
|
516
|
-
* endpoints, so a worker's edge never counts for it.
|
|
517
|
-
*
|
|
518
|
-
* A site's edge is recorded and never followed here: a site is handed none of
|
|
519
|
-
* the node's keys (see `PUBLIC.telemetry`).
|
|
520
|
-
*/
|
|
521
|
-
/** The `OTEL_*` keys a `Telemetry` node provides. */
|
|
522
|
-
const TELEMETRY_ENV_KEYS = _geekmidas_manifest.TELEMETRY_KEYS;
|
|
523
|
-
/** Whether `key` is one of the keys a `Telemetry` node provides. */
|
|
524
|
-
function isTelemetryKey(key) {
|
|
525
|
-
return TELEMETRY_ENV_KEYS.includes(key);
|
|
526
|
-
}
|
|
527
|
-
/** The node a declaration's `telemetry` edge names, when it names one. */
|
|
528
|
-
function nodeOf(manifest, id) {
|
|
529
|
-
if (!id) return void 0;
|
|
530
|
-
const node = manifest[id];
|
|
531
|
-
return node?.kind === "telemetry" ? node : void 0;
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* The `Telemetry` node the process for `id` — a surface, a worker, or a file
|
|
535
|
-
* server's processor unit, by construct id — emits through, or undefined
|
|
536
|
-
* when it has no edge to one.
|
|
537
|
-
*/
|
|
538
|
-
function telemetryOf(manifest, id) {
|
|
539
|
-
const declaration = manifest[id];
|
|
540
|
-
if (!declaration) return void 0;
|
|
541
|
-
if (declaration.kind === "worker" || declaration.kind === "file-server") return nodeOf(manifest, declaration.telemetry);
|
|
542
|
-
if (declaration.kind !== "rest-api" && declaration.kind !== "websocket-api") return void 0;
|
|
543
|
-
return nodeOf(manifest, declaration.telemetry);
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* The `Telemetry` node the app `appName` emits through — its surface's, or
|
|
547
|
-
* undefined for a site, an app without one, or one with no edge.
|
|
548
|
-
*/
|
|
549
|
-
function appTelemetry(manifest, appName) {
|
|
550
|
-
const id = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "websocket-api") && require_workspace.appKey(id) === appName)?.[0];
|
|
551
|
-
return id ? telemetryOf(manifest, id) : void 0;
|
|
552
|
-
}
|
|
553
|
-
/** Whether any process in the manifest emits through a `Telemetry` node. */
|
|
554
|
-
function usesTelemetry(manifest) {
|
|
555
|
-
return Object.entries(manifest).some(([id, d]) => (d.kind === "rest-api" || d.kind === "websocket-api" || d.kind === "worker" || d.kind === "file-server") && telemetryOf(manifest, id) !== void 0);
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* One process's share of the telemetry keys a stage resolved: all of them,
|
|
559
|
-
* named for the process, when it has an edge to the node — and none
|
|
560
|
-
* otherwise.
|
|
561
|
-
*
|
|
562
|
-
* `env` is everything else the process is handed; its `OTEL_*` keys are
|
|
563
|
-
* replaced, never merged, so a process without the edge cannot inherit them.
|
|
564
|
-
*/
|
|
565
|
-
function scopeTelemetryEnv(env, options) {
|
|
566
|
-
const scoped = Object.fromEntries(Object.entries(env).filter(([key]) => !isTelemetryKey(key)));
|
|
567
|
-
if (!options.uses || !options.telemetry) return scoped;
|
|
568
|
-
const values = Object.fromEntries(Object.entries(options.telemetry).filter(([key]) => isTelemetryKey(key)));
|
|
569
|
-
if (!values.OTEL_EXPORTER_OTLP_ENDPOINT) return scoped;
|
|
570
|
-
return {
|
|
571
|
-
...scoped,
|
|
572
|
-
...values,
|
|
573
|
-
OTEL_SERVICE_NAME: options.serviceName
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
/** Whether the site `siteId` has an edge to a `Telemetry` node. */
|
|
577
|
-
function siteUsesTelemetry(manifest, siteId) {
|
|
578
|
-
const site = manifest[siteId];
|
|
579
|
-
return site?.kind === "site" && nodeOf(manifest, site.telemetry) !== void 0;
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* Whether the client of the surface `surfaceId` propagates trace context:
|
|
583
|
-
* when a site that calls it has an edge to a `Telemetry` node. One client
|
|
584
|
-
* serves every site that calls the surface on the host, so one with the
|
|
585
|
-
* edge turns it on; a site's image generates its own, from its own edge.
|
|
586
|
-
*/
|
|
587
|
-
function surfaceClientTraced(manifest, surfaceId) {
|
|
588
|
-
return Object.entries(manifest).some(([id, d]) => d.kind === "site" && siteUsesTelemetry(manifest, id) && d.dependencies.some((edge) => edge.target === surfaceId));
|
|
589
|
-
}
|
|
590
|
-
/**
|
|
591
|
-
* Whether the site app `appName`'s clients propagate trace context, and at
|
|
592
|
-
* what rate: when the site has an edge to a `Telemetry` construct, at the
|
|
593
|
-
* stage's sample rate — a public value, every trace locally — and not at all
|
|
594
|
-
* for a stage that sends no telemetry.
|
|
595
|
-
*/
|
|
596
|
-
function siteClientTelemetry(manifest, appName, workspace, stage) {
|
|
597
|
-
const id = Object.entries(manifest).find(([id, d]) => d.kind === "site" && require_workspace.appKey(id) === appName)?.[0];
|
|
598
|
-
if (!id || !siteUsesTelemetry(manifest, id)) return void 0;
|
|
599
|
-
const sampleRate = require_workspace.stageSampleRate(workspace.deploy?.telemetry, stage ?? workspace.stages.local, !stage || stage === workspace.stages.local);
|
|
600
|
-
return sampleRate === void 0 ? void 0 : { sampleRate };
|
|
601
|
-
}
|
|
602
|
-
//#endregion
|
|
603
|
-
//#region src/reconcile/plan.ts
|
|
604
|
-
/**
|
|
605
|
-
* The reconcile plan — what a manifest wants to exist, for one stage.
|
|
606
|
-
*
|
|
607
|
-
* Pure. Turning the plan into running containers and provisioned resources is
|
|
608
|
-
* the applier's job; deciding *what* should exist is this, so the decisions can
|
|
609
|
-
* be asserted as data rather than by starting Docker.
|
|
610
|
-
*
|
|
611
|
-
* One plan serves every stage. `gkm dev` reconciles `development` and `gkm test`
|
|
612
|
-
* reconciles `test`; they differ only in what the resources are called, never in
|
|
613
|
-
* what infrastructure exists. Roles are cluster-scoped in Postgres while grants
|
|
614
|
-
* are per-object, so one container and one role pair serve both.
|
|
615
|
-
*/
|
|
616
|
-
/**
|
|
617
|
-
* Which container serves a kind.
|
|
618
|
-
*
|
|
619
|
-
* Derived kinds map to the same container as their parent — a schema tenant
|
|
620
|
-
* lives in its parent's Postgres — so the set is deduplicated rather than
|
|
621
|
-
* counted.
|
|
622
|
-
*/
|
|
623
|
-
const CONTAINERS = {
|
|
624
|
-
database: "postgres",
|
|
625
|
-
"database-reader": "postgres",
|
|
626
|
-
"database-schema": "postgres",
|
|
627
|
-
objects: "minio",
|
|
628
|
-
"file-server": "caddy",
|
|
629
|
-
email: "mailpit",
|
|
630
|
-
inbox: "mailpit",
|
|
631
|
-
"websocket-api": "redis"
|
|
632
|
-
};
|
|
633
|
-
/**
|
|
634
|
-
* The container a cache backend needs locally.
|
|
635
|
-
*
|
|
636
|
-
* Each one matches the protocol its deployed form speaks, which is the property
|
|
637
|
-
* worth having: a cache that behaves differently in the two places is worse than
|
|
638
|
-
* a slower one.
|
|
639
|
-
*
|
|
640
|
-
* `db` is deliberately absent, the same way `pgboss` is absent from
|
|
641
|
-
* `EVENT_CONTAINERS`: the cache is a table in a database the manifest already
|
|
642
|
-
* declares, so mapping it here would start a container for a project that needs
|
|
643
|
-
* none.
|
|
644
|
-
*/
|
|
645
|
-
const CACHE_CONTAINERS = {
|
|
646
|
-
upstash: "redis-http",
|
|
647
|
-
elasticache: "redis",
|
|
648
|
-
redis: "redis"
|
|
649
|
-
};
|
|
650
|
-
/**
|
|
651
|
-
* Kinds that resolve a value without anything running.
|
|
652
|
-
*
|
|
653
|
-
* A secret is the case: it has no address, so there is nothing to start and
|
|
654
|
-
* nothing to connect to — but it still appears in the plan, because the target
|
|
655
|
-
* still has to resolve it.
|
|
656
|
-
*/
|
|
657
|
-
const CONTAINERLESS = {
|
|
658
|
-
secret: true,
|
|
659
|
-
credential: true,
|
|
660
|
-
encryption: true,
|
|
661
|
-
"rest-api": true,
|
|
662
|
-
site: true,
|
|
663
|
-
"mobile-app": true,
|
|
664
|
-
"external-api": true,
|
|
665
|
-
telemetry: true
|
|
666
|
-
};
|
|
667
|
-
/** The container that collects telemetry locally, and serves its UI. */
|
|
668
|
-
const TELEMETRY_CONTAINER = "openobserve";
|
|
669
|
-
/**
|
|
670
|
-
* Containers that cannot run alone.
|
|
671
|
-
*
|
|
672
|
-
* The one case is the cache: `serverless-redis-http` is a proxy and needs the
|
|
673
|
-
* Redis it proxies. Kept here rather than in the compose definition so the plan
|
|
674
|
-
* -- which is what decides what must be running -- still names everything.
|
|
675
|
-
*/
|
|
676
|
-
const REQUIRES = { "redis-http": ["redis"] };
|
|
677
|
-
/**
|
|
678
|
-
* The role each kind's one key plays, where it is not a URL.
|
|
679
|
-
*
|
|
680
|
-
* The twin of `ProvidesByKind` in `@geekmidas/manifest`: that is what a
|
|
681
|
-
* construct declares, this is what the local target resolves, and both derive
|
|
682
|
-
* the key from the same `providedKeyFor` so they cannot disagree.
|
|
683
|
-
*/
|
|
684
|
-
const ROLES = {
|
|
685
|
-
queue: "publisherConnectionString",
|
|
686
|
-
topic: "publisherConnectionString",
|
|
687
|
-
credential: "credentials",
|
|
688
|
-
"mobile-app": "scheme",
|
|
689
|
-
objects: "connectionString"
|
|
690
|
-
};
|
|
691
|
-
/** The kinds whose container is the events backend's rather than their own. */
|
|
692
|
-
const EVENT_KINDS = {
|
|
693
|
-
queue: true,
|
|
694
|
-
topic: true
|
|
695
|
-
};
|
|
696
|
-
/**
|
|
697
|
-
* Which kinds provision something *inside* their container.
|
|
698
|
-
*
|
|
699
|
-
* A database creates a database, a bucket creates a bucket; mail creates
|
|
700
|
-
* nothing — Mailpit accepts whatever is sent to it and has no per-stage object
|
|
701
|
-
* to name. Both still appear in the plan, because both still resolve a URL; the
|
|
702
|
-
* flag is the difference between "must be running" and "must be created".
|
|
703
|
-
*/
|
|
704
|
-
const PROVISIONS = {
|
|
705
|
-
database: true,
|
|
706
|
-
"database-reader": true,
|
|
707
|
-
"database-schema": true,
|
|
708
|
-
objects: true,
|
|
709
|
-
cache: true,
|
|
710
|
-
"file-server": true
|
|
711
|
-
};
|
|
712
|
-
/**
|
|
713
|
-
* The container each events backend needs, where it needs one of its own.
|
|
714
|
-
*
|
|
715
|
-
* `pgboss` is deliberately absent rather than mapped to `postgres`: it is a
|
|
716
|
-
* schema tenant in a database the manifest already declares, so mapping it here
|
|
717
|
-
* would start a Postgres for a project that declared no database at all.
|
|
718
|
-
*
|
|
719
|
-
* This one comes from config rather than from a declaration because there are
|
|
720
|
-
* no `topic` or `queue` kinds yet. When they land the mapping moves to
|
|
721
|
-
* {@link CONTAINERS} keyed by kind, and this constant goes with them.
|
|
722
|
-
*/
|
|
723
|
-
const EVENT_CONTAINERS = {
|
|
724
|
-
sns: "localstack",
|
|
725
|
-
rabbitmq: "rabbitmq"
|
|
726
|
-
};
|
|
727
|
-
/** The backend a project gets when it declares queues or topics and says nothing. */
|
|
728
|
-
const DEFAULT_EVENTS = "pgboss";
|
|
729
|
-
/**
|
|
730
|
-
* How a resource of each kind separates its stage suffix.
|
|
731
|
-
*
|
|
732
|
-
* Postgres identifiers are snake_case and a hyphen would need quoting
|
|
733
|
-
* everywhere; buckets and queues are kebab and disallow underscores in some
|
|
734
|
-
* providers. The suffix is the same word either way.
|
|
735
|
-
*/
|
|
736
|
-
const SEPARATORS = {
|
|
737
|
-
database: "_",
|
|
738
|
-
"database-reader": "_",
|
|
739
|
-
"database-schema": "_",
|
|
740
|
-
objects: "-"
|
|
741
|
-
};
|
|
742
|
-
/**
|
|
743
|
-
* The stage-scoped name for a resource.
|
|
744
|
-
*
|
|
745
|
-
* The local stage carries no suffix, so `gkm dev` keeps using `orders` and a
|
|
746
|
-
* developer's psql history, saved connections, and muscle memory survive a
|
|
747
|
-
* change of stage name. Every other stage is suffixed.
|
|
748
|
-
*/
|
|
749
|
-
function resourceName(id, kind, stage, localStage) {
|
|
750
|
-
const base = id.toLowerCase();
|
|
751
|
-
if (stage === localStage) return base;
|
|
752
|
-
return `${base}${SEPARATORS[kind] ?? "-"}${stage}`;
|
|
753
|
-
}
|
|
754
|
-
/**
|
|
755
|
-
* The container a kind needs, or `undefined` if it needs none.
|
|
756
|
-
*
|
|
757
|
-
* Queues and topics have no container of their own — they live in whichever
|
|
758
|
-
* broker the project selected, which is why the backend is an argument here
|
|
759
|
-
* rather than a second pass that adds containers after the fact.
|
|
760
|
-
*/
|
|
761
|
-
function containerFor(kind, events = DEFAULT_EVENTS, cache = require_types.DEFAULT_CACHE.aws, derived = false, edge = true) {
|
|
762
|
-
if (EVENT_KINDS[kind]) return EVENT_CONTAINERS[events] ?? CONTAINERS.database;
|
|
763
|
-
if (kind === "file-server") return edge ? "caddy" : CONTAINERS.objects;
|
|
764
|
-
if (kind === "cache") {
|
|
765
|
-
if (derived && !require_types.holdsEveryCache(cache)) return CONTAINERS.database;
|
|
766
|
-
return CACHE_CONTAINERS[cache] ?? CONTAINERS.database;
|
|
767
|
-
}
|
|
768
|
-
return CONTAINERS[kind];
|
|
769
|
-
}
|
|
770
|
-
/**
|
|
771
|
-
* Build the plan for a manifest and stage.
|
|
772
|
-
*
|
|
773
|
-
* `order` is the caller's provisioning order — parents before children — which
|
|
774
|
-
* `provisionOrder` produces from the manifest. Passing it in keeps this
|
|
775
|
-
* function free of the traversal and makes the ordering assertable on its own.
|
|
776
|
-
*/
|
|
777
|
-
function planFor(manifest, stage, order, options = {}) {
|
|
778
|
-
const containers = /* @__PURE__ */ new Set();
|
|
779
|
-
const resources = [];
|
|
780
|
-
const fakes = {};
|
|
781
|
-
const events = options.events ?? "pgboss";
|
|
782
|
-
const cache = options.cache ?? require_types.DEFAULT_CACHE.aws;
|
|
783
|
-
for (const id of order) {
|
|
784
|
-
const declaration = manifest[id];
|
|
785
|
-
if (!declaration) continue;
|
|
786
|
-
const local = declaration.kind === "external-api" ? options.fakes?.[id] : void 0;
|
|
787
|
-
const fake = local && {
|
|
788
|
-
key: require_compose.fakeKey(id),
|
|
789
|
-
...local
|
|
790
|
-
};
|
|
791
|
-
if (fake) fakes[fake.key] = {
|
|
792
|
-
id,
|
|
793
|
-
...fake.image ? {
|
|
794
|
-
image: fake.image,
|
|
795
|
-
port: fake.port
|
|
796
|
-
} : {}
|
|
797
|
-
};
|
|
798
|
-
const detached = declaration.kind === "cache" && require_types.holdsEveryCache(cache);
|
|
799
|
-
const container = fake?.image ? fake.key : declaration.kind === "telemetry" ? usesTelemetry(manifest) ? TELEMETRY_CONTAINER : void 0 : containerFor(declaration.kind, events, cache, "of" in declaration && typeof declaration.of === "string", options.edge !== false);
|
|
800
|
-
if (!container && !CONTAINERLESS[declaration.kind]) continue;
|
|
801
|
-
if (container) {
|
|
802
|
-
containers.add(container);
|
|
803
|
-
for (const required of REQUIRES[container] ?? []) containers.add(required);
|
|
804
|
-
}
|
|
805
|
-
resources.push({
|
|
806
|
-
id,
|
|
807
|
-
kind: declaration.kind,
|
|
808
|
-
...container ? { container } : {},
|
|
809
|
-
name: resourceName(id, declaration.kind, stage, options.localStage),
|
|
810
|
-
envKey: (0, _geekmidas_manifest.providedKeyFor)(id, declaration.kind, ROLES[declaration.kind] ?? "url"),
|
|
811
|
-
provisions: PROVISIONS[declaration.kind] === true,
|
|
812
|
-
...declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "objects" || declaration.kind === "file-server" ? { callers: (0, _geekmidas_manifest.dependentsOf)(manifest, id) } : {},
|
|
813
|
-
...declaration.kind === "site" ? { publicEnv: (0, _geekmidas_manifest.publicEnvFor)(declaration, manifest) } : {},
|
|
814
|
-
...(0, _geekmidas_manifest.isPublicDeclaration)(declaration) && (0, _geekmidas_manifest.imageOriginSources)(declaration, manifest).length > 0 ? { imageOrigins: {
|
|
815
|
-
key: `${_geekmidas_manifest.PUBLIC_PREFIX[declaration.variant]}${_geekmidas_manifest.IMAGE_ORIGINS_KEY}`,
|
|
816
|
-
sources: (0, _geekmidas_manifest.imageOriginSources)(declaration, manifest)
|
|
817
|
-
} } : {},
|
|
818
|
-
...declaration.kind === "mobile-app" ? {
|
|
819
|
-
publicEnv: (0, _geekmidas_manifest.publicEnvFor)(declaration, manifest),
|
|
820
|
-
...declaration.scheme ? { scheme: declaration.scheme } : {}
|
|
821
|
-
} : {},
|
|
822
|
-
...declaration.kind === "file-server" && declaration.open?.length ? { open: declaration.open } : {},
|
|
823
|
-
...declaration.kind === "file-server" && declaration.processors?.length ? { processors: [...new Set(declaration.processors.map((p) => p.prefix))].sort() } : {},
|
|
824
|
-
...declaration.kind === "email" && declaration.from ? { from: declaration.from } : {},
|
|
825
|
-
...declaration.kind === "inbox" ? { inbox: {
|
|
826
|
-
addresses: declaration.addresses,
|
|
827
|
-
subdomains: declaration.subdomains === true,
|
|
828
|
-
topic: declaration.topic
|
|
829
|
-
} } : {},
|
|
830
|
-
...declaration.kind === "objects" && (0, _geekmidas_manifest.bucketExpiry)(manifest, id) ? { expire: (0, _geekmidas_manifest.bucketExpiry)(manifest, id) } : {},
|
|
831
|
-
...(declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "site") && declaration.subdomain ? { subdomain: declaration.subdomain } : {},
|
|
832
|
-
...(0, _geekmidas_manifest.isHostedDeclaration)(declaration) && (0, _geekmidas_manifest.hostLabels)(declaration).aliases.length ? { aliases: [...(0, _geekmidas_manifest.hostLabels)(declaration).aliases] } : {},
|
|
833
|
-
...(0, _geekmidas_manifest.isHostedDeclaration)(declaration) && (0, _geekmidas_manifest.hostLabels)(declaration).redirects.length ? { redirects: [...(0, _geekmidas_manifest.hostLabels)(declaration).redirects] } : {},
|
|
834
|
-
...(0, _geekmidas_manifest.isWildcardSite)(declaration) ? {
|
|
835
|
-
protectedSubdomains: require_workspace.protectedSubdomains(manifest, options.protectedSubdomains),
|
|
836
|
-
...declaration.hosts ? { hosts: declaration.hosts } : {}
|
|
837
|
-
} : {},
|
|
838
|
-
...fake ? { fake: {
|
|
839
|
-
key: fake.key,
|
|
840
|
-
credentials: fake.credentials
|
|
841
|
-
} } : {},
|
|
842
|
-
...declaration.kind === "external-api" && !fake ? { url: declaration.url } : {},
|
|
843
|
-
...declaration.kind === "credential" && options.credentialFakes?.[id] !== void 0 ? { fakeCredentials: options.credentialFakes[id] } : {},
|
|
844
|
-
...declaration.kind === "secret" && (declaration.length !== void 0 || declaration.symbols !== void 0) ? { format: {
|
|
845
|
-
...declaration.length !== void 0 ? { length: declaration.length } : {},
|
|
846
|
-
...declaration.symbols !== void 0 ? { symbols: declaration.symbols } : {}
|
|
847
|
-
} } : {},
|
|
848
|
-
..."of" in declaration && !detached ? { of: declaration.of } : {},
|
|
849
|
-
..."schema" in declaration && declaration.schema ? { schema: declaration.schema } : {},
|
|
850
|
-
..."version" in declaration && declaration.version ? { version: declaration.version } : {},
|
|
851
|
-
..."image" in declaration && declaration.image ? { image: declaration.image } : {},
|
|
852
|
-
..."extensions" in declaration && declaration.extensions?.length ? { extensions: declaration.extensions } : {},
|
|
853
|
-
..."roles" in declaration && declaration.roles === false ? { roles: false } : {},
|
|
854
|
-
..."table" in declaration && declaration.table && !detached ? { table: declaration.table } : {}
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
if (options.edge !== false && resources.some((r) => EDGE_KINDS[r.kind] === true)) containers.add("caddy");
|
|
858
|
-
for (const extra of options.extraContainers ?? []) containers.add(extra);
|
|
859
|
-
if (events === "pgboss" && resources.some((r) => EVENT_KINDS[r.kind]) && !resources.some((r) => r.kind === "database")) throw new PgBossNeedsDatabase(resources.filter((r) => EVENT_KINDS[r.kind]).map((r) => r.id));
|
|
860
|
-
if (cache === "db") {
|
|
861
|
-
const placeless = resources.filter((r) => r.kind === "cache" && !r.of);
|
|
862
|
-
if (placeless.length > 0) {
|
|
863
|
-
const databases = resources.filter((r) => r.kind === "database");
|
|
864
|
-
const [only] = databases;
|
|
865
|
-
if (!only) throw new CacheNeedsDatabase(resources.filter((r) => r.kind === "cache").map((r) => r.id));
|
|
866
|
-
if (databases.length > 1) throw new CacheIsAmbiguous(placeless.map((r) => r.id), databases.map((r) => r.id));
|
|
867
|
-
for (const resource of placeless) resource.of = only.id;
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
const sites = resources.filter((r) => r.kind === "site" && r.subdomain !== _geekmidas_manifest.WILDCARD_SUBDOMAIN);
|
|
871
|
-
const root = require_compose.rootSite(sites.map((r) => {
|
|
872
|
-
const declared = manifest[r.id];
|
|
873
|
-
return {
|
|
874
|
-
name: require_workspace.appKey(r.id),
|
|
875
|
-
...declared?.kind === "site" && declared.root ? { root: true } : {}
|
|
876
|
-
};
|
|
877
|
-
}));
|
|
878
|
-
for (const site of sites) if (require_workspace.appKey(site.id) === root) site.root = true;
|
|
879
|
-
const workerBroker = events === "pgboss" && Object.values(manifest).some((d) => d?.kind === "worker") && resources.some((r) => r.kind === "database");
|
|
880
|
-
return {
|
|
881
|
-
stage,
|
|
882
|
-
events,
|
|
883
|
-
cache,
|
|
884
|
-
containers: [...containers],
|
|
885
|
-
resources,
|
|
886
|
-
...Object.keys(fakes).length ? { fakes } : {},
|
|
887
|
-
...workerBroker ? { workerBroker: true } : {}
|
|
888
|
-
};
|
|
889
|
-
}
|
|
890
|
-
/**
|
|
891
|
-
* Queues or topics were declared with pg-boss and no database to hold them.
|
|
892
|
-
*
|
|
893
|
-
* Not a reconcile failure but a manifest one: the fix is a line of application
|
|
894
|
-
* code either way — declare a database, or select a backend that brings its own
|
|
895
|
-
* broker.
|
|
896
|
-
*/
|
|
897
|
-
var CacheNeedsDatabase = class extends require_errors.GkmError {
|
|
898
|
-
ids;
|
|
899
|
-
constructor(ids) {
|
|
900
|
-
super(`A cache backed by the database needs a declared database, and none was declared, and on this deploy target that is where a cache lives. Declare one. Caches affected: ${ids.join(", ")}.`);
|
|
901
|
-
this.ids = ids;
|
|
902
|
-
this.name = "CacheNeedsDatabase";
|
|
903
|
-
}
|
|
904
|
-
};
|
|
905
|
-
/**
|
|
906
|
-
* A `'db'` cache — a server target's default — in an app that declares more
|
|
907
|
-
* than one database.
|
|
908
|
-
*
|
|
909
|
-
* The target says *a* database and the graph offers several, so there is no
|
|
910
|
-
* answer to give — and the wrong kind of failure would be to pick one, since a
|
|
911
|
-
* cache silently landing in the wrong database is a bug that surfaces as
|
|
912
|
-
* missing rows much later. The fix is a stronger statement in application code:
|
|
913
|
-
* `orders.cache('Sessions')` names the database, which is a fact about the
|
|
914
|
-
* application rather than a deployment choice.
|
|
915
|
-
*/
|
|
916
|
-
var CacheIsAmbiguous = class extends require_errors.GkmError {
|
|
917
|
-
ids;
|
|
918
|
-
databases;
|
|
919
|
-
constructor(ids, databases) {
|
|
920
|
-
super(`A cache backed by the database needs to know which one, and this app declares ${databases.length}: ${databases.join(", ")}. Declare the cache from its database — e.g. ${databases[0]}.cache('Sessions') — rather than as a bare new Cache(). Caches affected: ${ids.join(", ")}.`);
|
|
921
|
-
this.ids = ids;
|
|
922
|
-
this.databases = databases;
|
|
923
|
-
this.name = "CacheIsAmbiguous";
|
|
924
|
-
}
|
|
925
|
-
};
|
|
926
|
-
var PgBossNeedsDatabase = class extends require_errors.GkmError {
|
|
927
|
-
ids;
|
|
928
|
-
constructor(ids) {
|
|
929
|
-
super(`pg-boss keeps its queues in a declared database, and none was declared. Declare one: on this deploy target, events are carried by pg-boss. Queues and topics affected: ${ids.join(", ")}.`);
|
|
930
|
-
this.ids = ids;
|
|
931
|
-
this.name = "PgBossNeedsDatabase";
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
//#endregion
|
|
935
151
|
//#region src/reconcile/signedOrigins.ts
|
|
936
152
|
/**
|
|
937
153
|
* Where each bucket's presigned links point, derived from its connection.
|
|
@@ -1201,7 +417,7 @@ function aliasAddressesFor(plan, options) {
|
|
|
1201
417
|
for (const resource of plan.resources) {
|
|
1202
418
|
if (!resource.aliases?.length) continue;
|
|
1203
419
|
if (!options.addresses?.[resource.id]) continue;
|
|
1204
|
-
aliased[resource.id] = hostsFor(resource, options.project ?? "").aliases.map((host) => `https://${host}:${edge}`);
|
|
420
|
+
aliased[resource.id] = require_compose.hostsFor(resource, options.project ?? "").aliases.map((host) => `https://${host}:${edge}`);
|
|
1205
421
|
}
|
|
1206
422
|
return aliased;
|
|
1207
423
|
}
|
|
@@ -1332,12 +548,12 @@ function urlFor(resource, plan, ports, project, addresses, credential, lan) {
|
|
|
1332
548
|
if (resource.kind === "rest-api" || resource.kind === "site") {
|
|
1333
549
|
const address = addresses?.[resource.id];
|
|
1334
550
|
const edge = plan.containers.includes("caddy") ? ports[require_compose.primaryPortKey("caddy")] : void 0;
|
|
1335
|
-
return address && edge !== void 0 ? `https://${hostFor
|
|
551
|
+
return address && edge !== void 0 ? `https://${require_compose.hostFor(resource, project)}:${edge}` : address;
|
|
1336
552
|
}
|
|
1337
553
|
if (resource.kind === "websocket-api") {
|
|
1338
554
|
const address = addresses?.[resource.id];
|
|
1339
555
|
const edge = plan.containers.includes("caddy") ? ports[require_compose.primaryPortKey("caddy")] : void 0;
|
|
1340
|
-
return address && edge !== void 0 ? `wss://${hostFor
|
|
556
|
+
return address && edge !== void 0 ? `wss://${require_compose.hostFor(resource, project)}:${edge}` : address?.replace(/^http/, "ws");
|
|
1341
557
|
}
|
|
1342
558
|
if (!resource.container) return void 0;
|
|
1343
559
|
const port = ports[require_compose.primaryPortKey(resource.container)];
|
|
@@ -1372,7 +588,7 @@ function urlFor(resource, plan, ports, project, addresses, credential, lan) {
|
|
|
1372
588
|
if (placed) return placed;
|
|
1373
589
|
const objects = origin.container ? ports[require_compose.primaryPortKey(origin.container)] : void 0;
|
|
1374
590
|
if (lan && !resource.processors?.length && objects !== void 0) return `http://${lan}:${objects}/${origin.name}`;
|
|
1375
|
-
return plan.containers.includes("caddy") ? `https://${hostFor
|
|
591
|
+
return plan.containers.includes("caddy") ? `https://${require_compose.hostFor(resource, project)}:${port}` : `http://${LOCAL_HOST}:${port}/${origin.name}`;
|
|
1376
592
|
}
|
|
1377
593
|
case "cache":
|
|
1378
594
|
if (resource.of) {
|
|
@@ -1401,7 +617,7 @@ function broker(plan, port, credential, resource) {
|
|
|
1401
617
|
switch (plan.events) {
|
|
1402
618
|
case "pgboss": {
|
|
1403
619
|
const database = plan.resources.find((r) => r.kind === "database");
|
|
1404
|
-
if (!database) throw new PgBossNeedsDatabase([]);
|
|
620
|
+
if (!database) throw new require_compose.PgBossNeedsDatabase([]);
|
|
1405
621
|
const { user, password } = credential.containers.postgres;
|
|
1406
622
|
return `pgboss://${user}:${encodeURIComponent(password)}@${LOCAL_HOST}:${port}/${database.name}?schema=${PGBOSS_SCHEMA}`;
|
|
1407
623
|
}
|
|
@@ -4876,7 +4092,7 @@ const caddyCertificatePath = (stage) => `.gkm/caddy-sites/${stage}.pem`;
|
|
|
4876
4092
|
async function reconcile(options) {
|
|
4877
4093
|
const { root, project, manifest, stage, start = true, provision = true, docker = dockerCli, probe = isPortFree, sql = pgClient, buckets = bucketClient, carriers = carrierClient, logins = ensureLogins } = options;
|
|
4878
4094
|
const { seed } = options.credentials;
|
|
4879
|
-
const plan = planFor(manifest, stage, (0, _geekmidas_manifest.provisionOrder)(manifest), {
|
|
4095
|
+
const plan = require_compose.planFor(manifest, stage, (0, _geekmidas_manifest.provisionOrder)(manifest), {
|
|
4880
4096
|
localStage: options.localStage,
|
|
4881
4097
|
events: options.events,
|
|
4882
4098
|
cache: options.cache,
|
|
@@ -4887,7 +4103,7 @@ async function reconcile(options) {
|
|
|
4887
4103
|
...options.protectedSubdomains ? { protectedSubdomains: options.protectedSubdomains } : {}
|
|
4888
4104
|
});
|
|
4889
4105
|
const exports = stage !== require_workspace.TEST_STAGE;
|
|
4890
|
-
const running = exports ? plan.containers : plan.containers.filter((c) => c !== TELEMETRY_CONTAINER);
|
|
4106
|
+
const running = exports ? plan.containers : plan.containers.filter((c) => c !== require_compose.TELEMETRY_CONTAINER);
|
|
4891
4107
|
const composePath = (0, node_path.join)(root, COMPOSE_PATH);
|
|
4892
4108
|
const observed = await observedPorts(docker, composePath, plan.containers, plan.fakes);
|
|
4893
4109
|
const keys = require_compose.portKeys(plan.containers, plan.fakes);
|
|
@@ -4908,12 +4124,12 @@ async function reconcile(options) {
|
|
|
4908
4124
|
...options.objectWebhooks?.length ? { objectWebhooks: options.objectWebhooks } : {},
|
|
4909
4125
|
...options.inboxRelay ? { inboxRelay: options.inboxRelay } : {}
|
|
4910
4126
|
});
|
|
4911
|
-
const sites = sitesFor(plan, project, options.addresses, options.processorAddresses);
|
|
4127
|
+
const sites = require_compose.sitesFor(plan, project, options.addresses, options.processorAddresses);
|
|
4912
4128
|
const edged = plan.containers.includes("caddy");
|
|
4913
4129
|
const authorityPaths = options.authority ?? localAuthorityPaths();
|
|
4914
4130
|
const edgePort = ports[require_compose.primaryPortKey("caddy")];
|
|
4915
|
-
const caddyfile = toCaddyfile(sites, {
|
|
4916
|
-
certificate: `${CADDY_SITES_IN_CONTAINER}/${stage}.pem`,
|
|
4131
|
+
const caddyfile = require_compose.toCaddyfile(sites, {
|
|
4132
|
+
certificate: `${require_compose.CADDY_SITES_IN_CONTAINER}/${stage}.pem`,
|
|
4917
4133
|
edgeToken: edgeToken(project, seed),
|
|
4918
4134
|
...edgePort !== void 0 ? { port: edgePort } : {}
|
|
4919
4135
|
});
|
|
@@ -4935,7 +4151,7 @@ async function reconcile(options) {
|
|
|
4935
4151
|
...options.metroPorts ? { metroPorts: options.metroPorts } : {},
|
|
4936
4152
|
...options.objectWebhooks?.length ? { relayedBuckets: options.objectWebhooks.map((hook) => hook.bucket) } : {}
|
|
4937
4153
|
});
|
|
4938
|
-
const env = exports ? resolved : scopeTelemetryEnv(resolved, {
|
|
4154
|
+
const env = exports ? resolved : require_compose.scopeTelemetryEnv(resolved, {
|
|
4939
4155
|
uses: false,
|
|
4940
4156
|
serviceName: project
|
|
4941
4157
|
});
|
|
@@ -4967,7 +4183,7 @@ async function reconcile(options) {
|
|
|
4967
4183
|
if (!certificate?.issued && recorded?.hash === hash && (0, node_fs.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;
|
|
4968
4184
|
await write(composePath, require_compose.toYaml(compose), 384);
|
|
4969
4185
|
if (edged) {
|
|
4970
|
-
await write((0, node_path.join)(root, CADDYFILE_PATH), caddyfileRoot());
|
|
4186
|
+
await write((0, node_path.join)(root, CADDYFILE_PATH), require_compose.caddyfileRoot());
|
|
4971
4187
|
await write((0, node_path.join)(root, caddySitesPath(stage)), caddyfile);
|
|
4972
4188
|
await pruneCaddySites(root, [
|
|
4973
4189
|
stage,
|
|
@@ -5136,7 +4352,7 @@ async function derivedContainers(workspace, stage, manifest) {
|
|
|
5136
4352
|
patterns: constructGlobs(workspace),
|
|
5137
4353
|
cwd: workspace.root
|
|
5138
4354
|
});
|
|
5139
|
-
return planFor(found, stage, (0, _geekmidas_manifest.provisionOrder)(found), {
|
|
4355
|
+
return require_compose.planFor(found, stage, (0, _geekmidas_manifest.provisionOrder)(found), {
|
|
5140
4356
|
localStage: workspace.stages.local,
|
|
5141
4357
|
...backendsOf(workspace)
|
|
5142
4358
|
}).containers;
|
|
@@ -5385,7 +4601,7 @@ function dockerfileOf(appName, path) {
|
|
|
5385
4601
|
* rewrite to the compose network then turned into an address nothing answers.
|
|
5386
4602
|
*/
|
|
5387
4603
|
function localPlan(workspace, manifest, fakes = {}, credentialFakes = {}) {
|
|
5388
|
-
return planFor(manifest, workspace.stages.local, (0, _geekmidas_manifest.provisionOrder)(manifest), {
|
|
4604
|
+
return require_compose.planFor(manifest, workspace.stages.local, (0, _geekmidas_manifest.provisionOrder)(manifest), {
|
|
5389
4605
|
localStage: workspace.stages.local,
|
|
5390
4606
|
...backendsOf(workspace),
|
|
5391
4607
|
...workspace.protectedSubdomains ? { protectedSubdomains: workspace.protectedSubdomains } : {},
|
|
@@ -5460,7 +4676,10 @@ function networkEnv(plan, options, hostOf = (container) => container) {
|
|
|
5460
4676
|
* - `queue`, `topic`: the caller gets the target's `provides` and
|
|
5461
4677
|
* `EVENT_PUBLISHER_CONNECTION_STRING`. The target gets nothing.
|
|
5462
4678
|
* - `objects`: the target's `provides`, its file server's, and the S3 key
|
|
5463
|
-
* pair (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION`).
|
|
4679
|
+
* pair (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION`). A site
|
|
4680
|
+
* or mobile app gets `<T>_SIGNED_ORIGIN` and nothing else on its plain
|
|
4681
|
+
* edge, and all of it, signed origin included, on `.server`
|
|
4682
|
+
* (`reachesServerHalf`).
|
|
5464
4683
|
* - `inbox`: the target's `provides`, and the local relay token.
|
|
5465
4684
|
* - anything else (a database, cache, secret, credential, external API…):
|
|
5466
4685
|
* the target's `provides`. The target gets nothing.
|
|
@@ -5500,11 +4719,13 @@ function appEnvKeys(manifest, appName) {
|
|
|
5500
4719
|
...declaration.requires ?? [],
|
|
5501
4720
|
...declaration.kind === "rest-api" ? declaration.endpoints.flatMap((endpoint) => endpoint.requires ?? []) : []
|
|
5502
4721
|
]);
|
|
5503
|
-
|
|
4722
|
+
const client = (0, _geekmidas_manifest.isPublicDeclaration)(declaration);
|
|
4723
|
+
addEdgeKeys(manifest, (0, _geekmidas_manifest.dependenciesOf)(declaration).filter((edge) => manifest[edge.target]?.kind !== "objects" || (0, _geekmidas_manifest.reachesServerHalf)(declaration, edge)).map((edge) => edge.target), keys, client);
|
|
5504
4724
|
if (declaration.kind === "rest-api" || declaration.kind === "websocket-api") for (const key of callerKeys(manifest, id)) keys.add(key);
|
|
5505
|
-
if (
|
|
4725
|
+
if (client) {
|
|
5506
4726
|
for (const key of _geekmidas_manifest.TELEMETRY_KEYS) keys.delete(key);
|
|
5507
4727
|
for (const key of Object.keys((0, _geekmidas_manifest.publicEnvFor)(declaration, manifest))) keys.add(key);
|
|
4728
|
+
for (const { key } of (0, _geekmidas_manifest.publicValues)(declaration, manifest)) keys.add(key);
|
|
5508
4729
|
}
|
|
5509
4730
|
return keys;
|
|
5510
4731
|
}
|
|
@@ -5727,8 +4948,8 @@ function appServices(workspace, manifest, containers, credentials, fakes = {}, c
|
|
|
5727
4948
|
continue;
|
|
5728
4949
|
}
|
|
5729
4950
|
const allowed = appEnvKeys(manifest, name);
|
|
5730
|
-
const own = scopeTelemetryEnv(Object.fromEntries(Object.entries(env).filter(([envKey]) => allowed?.has(envKey))), {
|
|
5731
|
-
uses: appTelemetry(manifest, name) !== void 0,
|
|
4951
|
+
const own = require_compose.scopeTelemetryEnv(Object.fromEntries(Object.entries(env).filter(([envKey]) => allowed?.has(envKey))), {
|
|
4952
|
+
uses: require_compose.appTelemetry(manifest, name) !== void 0,
|
|
5732
4953
|
serviceName: name,
|
|
5733
4954
|
telemetry: env
|
|
5734
4955
|
});
|
|
@@ -5800,12 +5021,6 @@ Object.defineProperty(exports, "LOCAL_CA_BUILD_SECRET", {
|
|
|
5800
5021
|
return LOCAL_CA_BUILD_SECRET;
|
|
5801
5022
|
}
|
|
5802
5023
|
});
|
|
5803
|
-
Object.defineProperty(exports, "LOCAL_TLD", {
|
|
5804
|
-
enumerable: true,
|
|
5805
|
-
get: function() {
|
|
5806
|
-
return LOCAL_TLD;
|
|
5807
|
-
}
|
|
5808
|
-
});
|
|
5809
5024
|
Object.defineProperty(exports, "OFFLINE_BUILD_ADDRESS", {
|
|
5810
5025
|
enumerable: true,
|
|
5811
5026
|
get: function() {
|
|
@@ -5824,12 +5039,6 @@ Object.defineProperty(exports, "PRERENDER_RUN_ARG", {
|
|
|
5824
5039
|
return PRERENDER_RUN_ARG;
|
|
5825
5040
|
}
|
|
5826
5041
|
});
|
|
5827
|
-
Object.defineProperty(exports, "PROCESSORS_DEV_PREFIX", {
|
|
5828
|
-
enumerable: true,
|
|
5829
|
-
get: function() {
|
|
5830
|
-
return PROCESSORS_DEV_PREFIX;
|
|
5831
|
-
}
|
|
5832
|
-
});
|
|
5833
5042
|
Object.defineProperty(exports, "PROCESSOR_ORIGIN_SECRET_ENV", {
|
|
5834
5043
|
enumerable: true,
|
|
5835
5044
|
get: function() {
|
|
@@ -5848,12 +5057,6 @@ Object.defineProperty(exports, "RUNNER_PATH", {
|
|
|
5848
5057
|
return RUNNER_PATH;
|
|
5849
5058
|
}
|
|
5850
5059
|
});
|
|
5851
|
-
Object.defineProperty(exports, "TELEMETRY_CONTAINER", {
|
|
5852
|
-
enumerable: true,
|
|
5853
|
-
get: function() {
|
|
5854
|
-
return TELEMETRY_CONTAINER;
|
|
5855
|
-
}
|
|
5856
|
-
});
|
|
5857
5060
|
Object.defineProperty(exports, "TURBO_VERSION", {
|
|
5858
5061
|
enumerable: true,
|
|
5859
5062
|
get: function() {
|
|
@@ -5884,12 +5087,6 @@ Object.defineProperty(exports, "appProcess", {
|
|
|
5884
5087
|
return appProcess;
|
|
5885
5088
|
}
|
|
5886
5089
|
});
|
|
5887
|
-
Object.defineProperty(exports, "appTelemetry", {
|
|
5888
|
-
enumerable: true,
|
|
5889
|
-
get: function() {
|
|
5890
|
-
return appTelemetry;
|
|
5891
|
-
}
|
|
5892
|
-
});
|
|
5893
5090
|
Object.defineProperty(exports, "applyBuckets", {
|
|
5894
5091
|
enumerable: true,
|
|
5895
5092
|
get: function() {
|
|
@@ -5986,12 +5183,6 @@ Object.defineProperty(exports, "bucketPolicies", {
|
|
|
5986
5183
|
return bucketPolicies;
|
|
5987
5184
|
}
|
|
5988
5185
|
});
|
|
5989
|
-
Object.defineProperty(exports, "clientIpRule", {
|
|
5990
|
-
enumerable: true,
|
|
5991
|
-
get: function() {
|
|
5992
|
-
return clientIpRule;
|
|
5993
|
-
}
|
|
5994
|
-
});
|
|
5995
5186
|
Object.defineProperty(exports, "composeBuildPaths", {
|
|
5996
5187
|
enumerable: true,
|
|
5997
5188
|
get: function() {
|
|
@@ -6118,18 +5309,6 @@ Object.defineProperty(exports, "generateWorkerDockerfile", {
|
|
|
6118
5309
|
return generateWorkerDockerfile;
|
|
6119
5310
|
}
|
|
6120
5311
|
});
|
|
6121
|
-
Object.defineProperty(exports, "hostFor", {
|
|
6122
|
-
enumerable: true,
|
|
6123
|
-
get: function() {
|
|
6124
|
-
return hostFor$1;
|
|
6125
|
-
}
|
|
6126
|
-
});
|
|
6127
|
-
Object.defineProperty(exports, "hostsFor", {
|
|
6128
|
-
enumerable: true,
|
|
6129
|
-
get: function() {
|
|
6130
|
-
return hostsFor;
|
|
6131
|
-
}
|
|
6132
|
-
});
|
|
6133
5312
|
Object.defineProperty(exports, "imageBuildCredentials", {
|
|
6134
5313
|
enumerable: true,
|
|
6135
5314
|
get: function() {
|
|
@@ -6148,12 +5327,6 @@ Object.defineProperty(exports, "isImageBuild", {
|
|
|
6148
5327
|
return isImageBuild;
|
|
6149
5328
|
}
|
|
6150
5329
|
});
|
|
6151
|
-
Object.defineProperty(exports, "isTelemetryKey", {
|
|
6152
|
-
enumerable: true,
|
|
6153
|
-
get: function() {
|
|
6154
|
-
return isTelemetryKey;
|
|
6155
|
-
}
|
|
6156
|
-
});
|
|
6157
5330
|
Object.defineProperty(exports, "isUnder", {
|
|
6158
5331
|
enumerable: true,
|
|
6159
5332
|
get: function() {
|
|
@@ -6220,12 +5393,6 @@ Object.defineProperty(exports, "pgClient", {
|
|
|
6220
5393
|
return pgClient;
|
|
6221
5394
|
}
|
|
6222
5395
|
});
|
|
6223
|
-
Object.defineProperty(exports, "planFor", {
|
|
6224
|
-
enumerable: true,
|
|
6225
|
-
get: function() {
|
|
6226
|
-
return planFor;
|
|
6227
|
-
}
|
|
6228
|
-
});
|
|
6229
5396
|
Object.defineProperty(exports, "postgresDatabaseNames", {
|
|
6230
5397
|
enumerable: true,
|
|
6231
5398
|
get: function() {
|
|
@@ -6304,12 +5471,6 @@ Object.defineProperty(exports, "resolveDockerConfig", {
|
|
|
6304
5471
|
return resolveDockerConfig;
|
|
6305
5472
|
}
|
|
6306
5473
|
});
|
|
6307
|
-
Object.defineProperty(exports, "resourceName", {
|
|
6308
|
-
enumerable: true,
|
|
6309
|
-
get: function() {
|
|
6310
|
-
return resourceName;
|
|
6311
|
-
}
|
|
6312
|
-
});
|
|
6313
5474
|
Object.defineProperty(exports, "runTime", {
|
|
6314
5475
|
enumerable: true,
|
|
6315
5476
|
get: function() {
|
|
@@ -6322,24 +5483,12 @@ Object.defineProperty(exports, "runsServer", {
|
|
|
6322
5483
|
return runsServer;
|
|
6323
5484
|
}
|
|
6324
5485
|
});
|
|
6325
|
-
Object.defineProperty(exports, "scopeTelemetryEnv", {
|
|
6326
|
-
enumerable: true,
|
|
6327
|
-
get: function() {
|
|
6328
|
-
return scopeTelemetryEnv;
|
|
6329
|
-
}
|
|
6330
|
-
});
|
|
6331
5486
|
Object.defineProperty(exports, "signedOrigins", {
|
|
6332
5487
|
enumerable: true,
|
|
6333
5488
|
get: function() {
|
|
6334
5489
|
return signedOrigins;
|
|
6335
5490
|
}
|
|
6336
5491
|
});
|
|
6337
|
-
Object.defineProperty(exports, "siteClientTelemetry", {
|
|
6338
|
-
enumerable: true,
|
|
6339
|
-
get: function() {
|
|
6340
|
-
return siteClientTelemetry;
|
|
6341
|
-
}
|
|
6342
|
-
});
|
|
6343
5492
|
Object.defineProperty(exports, "siteOfflineHosts", {
|
|
6344
5493
|
enumerable: true,
|
|
6345
5494
|
get: function() {
|
|
@@ -6364,24 +5513,6 @@ Object.defineProperty(exports, "stageEnv", {
|
|
|
6364
5513
|
return stageEnv;
|
|
6365
5514
|
}
|
|
6366
5515
|
});
|
|
6367
|
-
Object.defineProperty(exports, "surfaceClientTraced", {
|
|
6368
|
-
enumerable: true,
|
|
6369
|
-
get: function() {
|
|
6370
|
-
return surfaceClientTraced;
|
|
6371
|
-
}
|
|
6372
|
-
});
|
|
6373
|
-
Object.defineProperty(exports, "telemetryOf", {
|
|
6374
|
-
enumerable: true,
|
|
6375
|
-
get: function() {
|
|
6376
|
-
return telemetryOf;
|
|
6377
|
-
}
|
|
6378
|
-
});
|
|
6379
|
-
Object.defineProperty(exports, "usesTelemetry", {
|
|
6380
|
-
enumerable: true,
|
|
6381
|
-
get: function() {
|
|
6382
|
-
return usesTelemetry;
|
|
6383
|
-
}
|
|
6384
|
-
});
|
|
6385
5516
|
Object.defineProperty(exports, "workerEnvKeys", {
|
|
6386
5517
|
enumerable: true,
|
|
6387
5518
|
get: function() {
|
|
@@ -6401,4 +5532,4 @@ Object.defineProperty(exports, "workspace_exports", {
|
|
|
6401
5532
|
}
|
|
6402
5533
|
});
|
|
6403
5534
|
|
|
6404
|
-
//# sourceMappingURL=apps-
|
|
5535
|
+
//# sourceMappingURL=apps-CTyacCpW.cjs.map
|