@geekmidas/cli 10.0.0-alpha.125 → 10.0.0-alpha.127
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/{EndpointGenerator-errMeldx.mjs → EndpointGenerator-B99OGzbO.mjs} +2 -2
- package/dist/{EndpointGenerator-errMeldx.mjs.map → EndpointGenerator-B99OGzbO.mjs.map} +1 -1
- package/dist/{EndpointGenerator-BGxf9jWE.cjs → EndpointGenerator-De0lknKD.cjs} +2 -2
- package/dist/{EndpointGenerator-BGxf9jWE.cjs.map → EndpointGenerator-De0lknKD.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-BN1dODm9.mjs → GoDaddyProvider-BG-UdElN.mjs} +2 -2
- package/dist/{GoDaddyProvider-BN1dODm9.mjs.map → GoDaddyProvider-BG-UdElN.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-BTdtqhI_.cjs → GoDaddyProvider-DnmLq7eo.cjs} +2 -2
- package/dist/{GoDaddyProvider-BTdtqhI_.cjs.map → GoDaddyProvider-DnmLq7eo.cjs.map} +1 -1
- package/dist/{LegacyStateStore-C2S8TGwx.cjs → LegacyStateStore-CeBkK9K2.cjs} +3 -3
- package/dist/{LegacyStateStore-C2S8TGwx.cjs.map → LegacyStateStore-CeBkK9K2.cjs.map} +1 -1
- package/dist/{LegacyStateStore-DgXmuG87.mjs → LegacyStateStore-DHG_4jcn.mjs} +3 -3
- package/dist/{LegacyStateStore-DgXmuG87.mjs.map → LegacyStateStore-DHG_4jcn.mjs.map} +1 -1
- package/dist/{LocalStateStore-ojY_BiMK.mjs → LocalStateStore-EenTHwr4.mjs} +2 -2
- package/dist/{LocalStateStore-ojY_BiMK.mjs.map → LocalStateStore-EenTHwr4.mjs.map} +1 -1
- package/dist/{LocalStateStore-CaJw9H-3.cjs → LocalStateStore-HRnBQFe3.cjs} +2 -2
- package/dist/{LocalStateStore-CaJw9H-3.cjs.map → LocalStateStore-HRnBQFe3.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-cQgtxWQo.cjs → OpenApiTsGenerator-DMLzN-LU.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-cQgtxWQo.cjs.map → OpenApiTsGenerator-DMLzN-LU.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-W_HRXH1X.mjs → OpenApiTsGenerator-DNUCgkkx.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-W_HRXH1X.mjs.map → OpenApiTsGenerator-DNUCgkkx.mjs.map} +1 -1
- package/dist/{S3StateStore-BqugXIcb.cjs → S3StateStore-DyLljVN1.cjs} +2 -2
- package/dist/{S3StateStore-BqugXIcb.cjs.map → S3StateStore-DyLljVN1.cjs.map} +1 -1
- package/dist/{S3StateStore-BSPkxhrx.mjs → S3StateStore-vbkyBnRB.mjs} +2 -2
- package/dist/{S3StateStore-BSPkxhrx.mjs.map → S3StateStore-vbkyBnRB.mjs.map} +1 -1
- package/dist/{SSMStateStore-B0OsuT_k.cjs → SSMStateStore-BBKlmfaU.cjs} +2 -2
- package/dist/{SSMStateStore-B0OsuT_k.cjs.map → SSMStateStore-BBKlmfaU.cjs.map} +1 -1
- package/dist/{SSMStateStore-DM85OiH0.mjs → SSMStateStore-uk2QLUgz.mjs} +2 -2
- package/dist/{SSMStateStore-DM85OiH0.mjs.map → SSMStateStore-uk2QLUgz.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-ocQ2yj0K.mjs → SubscriberGenerator-0ruEmYXj.mjs} +4 -62
- package/dist/SubscriberGenerator-0ruEmYXj.mjs.map +1 -0
- package/dist/{SubscriberGenerator-BDUp7OeY.cjs → SubscriberGenerator-CPjbWEOI.cjs} +3 -91
- package/dist/SubscriberGenerator-CPjbWEOI.cjs.map +1 -0
- package/dist/{add-CrxvmSpq.cjs → add-CH7-9AHI.cjs} +7 -7
- package/dist/add-CH7-9AHI.cjs.map +1 -0
- package/dist/{add-C7ZBXIzM.mjs → add-CgyyN6aF.mjs} +7 -7
- package/dist/add-CgyyN6aF.mjs.map +1 -0
- package/dist/{bundler-DVUXW95p.cjs → bundler-BtAkF9wb.cjs} +5 -5
- package/dist/{bundler-DVUXW95p.cjs.map → bundler-BtAkF9wb.cjs.map} +1 -1
- package/dist/{bundler-DpZ9uBGN.mjs → bundler-DqHozK8W.mjs} +5 -5
- package/dist/{bundler-DpZ9uBGN.mjs.map → bundler-DqHozK8W.mjs.map} +1 -1
- package/dist/{cli-BMRhE6cZ.cjs → cli-D08bMg7m.cjs} +3 -3
- package/dist/{cli-BMRhE6cZ.cjs.map → cli-D08bMg7m.cjs.map} +1 -1
- package/dist/{cli-BWfYyy1k.mjs → cli-D_BQkb4B.mjs} +3 -3
- package/dist/{cli-BWfYyy1k.mjs.map → cli-D_BQkb4B.mjs.map} +1 -1
- package/dist/{compose-Bqcy0lqo.cjs → compose-BK9s_2Qe.cjs} +73 -44
- package/dist/compose-BK9s_2Qe.cjs.map +1 -0
- package/dist/{compose-BFmdLig3.mjs → compose-CIzCcsoz.mjs} +72 -43
- package/dist/compose-CIzCcsoz.mjs.map +1 -0
- package/dist/{config-_y1FGBWR.d.mts → config-B8fXmuK0.d.cts} +3 -3
- package/dist/{config-CdytFgSR.d.cts.map → config-B8fXmuK0.d.cts.map} +1 -1
- package/dist/{config-CdytFgSR.d.cts → config-CRRxZMk7.d.mts} +3 -3
- package/dist/{config-_y1FGBWR.d.mts.map → config-CRRxZMk7.d.mts.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +2 -2
- package/dist/{credentialSchemas-DFxvGEwa.cjs → credentialSchemas-CM0rxWmS.cjs} +2 -2
- package/dist/{credentialSchemas-DFxvGEwa.cjs.map → credentialSchemas-CM0rxWmS.cjs.map} +1 -1
- package/dist/{credentialSchemas-DaMpt-Dx.mjs → credentialSchemas-DPOGqOrU.mjs} +2 -2
- package/dist/{credentialSchemas-DaMpt-Dx.mjs.map → credentialSchemas-DPOGqOrU.mjs.map} +1 -1
- package/dist/{databases-BPOgTn1u.mjs → databases-6GD0tI2F.mjs} +65 -3
- package/dist/databases-6GD0tI2F.mjs.map +1 -0
- package/dist/{databases-fOaoBInm.cjs → databases-CuVGf7-M.cjs} +75 -1
- package/dist/databases-CuVGf7-M.cjs.map +1 -0
- package/dist/deploy/public.cjs +8 -8
- package/dist/deploy/public.d.cts +3 -3
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +3 -3
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +8 -8
- package/dist/{deploy-DVrNjX1X.cjs → deploy-A_fzSa59.cjs} +10 -10
- package/dist/deploy-A_fzSa59.cjs.map +1 -0
- package/dist/{deploy-D8pUA9Y0.mjs → deploy-BVf6c_h8.mjs} +10 -10
- package/dist/deploy-BVf6c_h8.mjs.map +1 -0
- package/dist/{derive-DAbo49sm.cjs → derive-BtGidITm.cjs} +7 -7
- package/dist/derive-BtGidITm.cjs.map +1 -0
- package/dist/{derive-B4vDpzgP.mjs → derive-Dew0QoGe.mjs} +7 -7
- package/dist/derive-Dew0QoGe.mjs.map +1 -0
- package/dist/{discover-DL6h-J97.cjs → discover-DEOspD9M.cjs} +12 -1
- package/dist/discover-DEOspD9M.cjs.map +1 -0
- package/dist/{discover-CzGM5P3p.mjs → discover-DOhYSKY_.mjs} +12 -1
- package/dist/discover-DOhYSKY_.mjs.map +1 -0
- package/dist/{dokploy-TtK6Zyl3.cjs → dokploy-CshlFRwr.cjs} +2 -2
- package/dist/{dokploy-TtK6Zyl3.cjs.map → dokploy-CshlFRwr.cjs.map} +1 -1
- package/dist/{dokploy-CzDGNB6A.mjs → dokploy-DOndleTd.mjs} +2 -2
- package/dist/{dokploy-CzDGNB6A.mjs.map → dokploy-DOndleTd.mjs.map} +1 -1
- package/dist/{drivers-L29WvE95.cjs → drivers-C47nm-wB.cjs} +91 -4
- package/dist/drivers-C47nm-wB.cjs.map +1 -0
- package/dist/{drivers-C-VqMtld.mjs → drivers-CDjpjakg.mjs} +60 -3
- package/dist/drivers-CDjpjakg.mjs.map +1 -0
- package/dist/{eas-D3clzkni.cjs → eas-ApfPYR4-.cjs} +3 -3
- package/dist/{eas-D3clzkni.cjs.map → eas-ApfPYR4-.cjs.map} +1 -1
- package/dist/{eas-DaobzDks.mjs → eas-Dlr1Lw56.mjs} +3 -3
- package/dist/{eas-DaobzDks.mjs.map → eas-Dlr1Lw56.mjs.map} +1 -1
- package/dist/{encryption-DV31gEY8.mjs → encryption-D0tWRvy_.mjs} +2 -2
- package/dist/{encryption-DV31gEY8.mjs.map → encryption-D0tWRvy_.mjs.map} +1 -1
- package/dist/{encryption-DBkIFiR2.cjs → encryption-SGWvnBxV.cjs} +2 -2
- package/dist/{encryption-DBkIFiR2.cjs.map → encryption-SGWvnBxV.cjs.map} +1 -1
- package/dist/{engine-CuZUGbEh.cjs → engine-CYu4wavP.cjs} +9 -7
- package/dist/engine-CYu4wavP.cjs.map +1 -0
- package/dist/{engine-CFOR9h6X.mjs → engine-DKz1NYDX.mjs} +9 -7
- package/dist/engine-DKz1NYDX.mjs.map +1 -0
- package/dist/{github-CsvtWSBW.cjs → github-CxWaWQtW.cjs} +5 -5
- package/dist/{github-CsvtWSBW.cjs.map → github-CxWaWQtW.cjs.map} +1 -1
- package/dist/{github-Nep8pI4_.mjs → github-VQaj8gLE.mjs} +5 -5
- package/dist/{github-Nep8pI4_.mjs.map → github-VQaj8gLE.mjs.map} +1 -1
- package/dist/{googlePlay-C-UfBXJU.cjs → googlePlay-4KVtZ89D.cjs} +3 -3
- package/dist/{googlePlay-C-UfBXJU.cjs.map → googlePlay-4KVtZ89D.cjs.map} +1 -1
- package/dist/{googlePlay-lF7Atm_N.mjs → googlePlay-Nqc4EAiC.mjs} +3 -3
- package/dist/{googlePlay-lF7Atm_N.mjs.map → googlePlay-Nqc4EAiC.mjs.map} +1 -1
- package/dist/{index-DrkV7N5w.d.mts → index-Cu8eIwUW.d.mts} +2 -2
- package/dist/{index-DrkV7N5w.d.mts.map → index-Cu8eIwUW.d.mts.map} +1 -1
- package/dist/{index-yaXZ9m-J.d.cts → index-Dx93n3Ur.d.cts} +2 -2
- package/dist/{index-yaXZ9m-J.d.cts.map → index-Dx93n3Ur.d.cts.map} +1 -1
- package/dist/index.cjs +105 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +104 -75
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-hlNKNWmg.cjs → migrate-BQPRclv2.cjs} +2 -2
- package/dist/{migrate-hlNKNWmg.cjs.map → migrate-BQPRclv2.cjs.map} +1 -1
- package/dist/{migrate-_sBX0pve.mjs → migrate-C7exqXTD.mjs} +2 -2
- package/dist/{migrate-_sBX0pve.mjs.map → migrate-C7exqXTD.mjs.map} +1 -1
- package/dist/{migrate-NfbPVhi9.mjs → migrate-DQPEUiFC.mjs} +7 -5
- package/dist/migrate-DQPEUiFC.mjs.map +1 -0
- package/dist/{migrate-Dp3GhFnf.cjs → migrate-DTv6LHux.cjs} +7 -5
- package/dist/migrate-DTv6LHux.cjs.map +1 -0
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +3 -3
- package/dist/{publish-ZOo4xEuZ.cjs → publish-CgwqwKDs.cjs} +2 -2
- package/dist/{publish-ZOo4xEuZ.cjs.map → publish-CgwqwKDs.cjs.map} +1 -1
- package/dist/{publish-BuUVaZVy.mjs → publish-VYt4xOOc.mjs} +2 -2
- package/dist/{publish-BuUVaZVy.mjs.map → publish-VYt4xOOc.mjs.map} +1 -1
- package/dist/{ready-Ca883OvY.mjs → ready-BwtLriAF.mjs} +6 -6
- package/dist/{ready-Ca883OvY.mjs.map → ready-BwtLriAF.mjs.map} +1 -1
- package/dist/{ready-qnqp6JAY.cjs → ready-Cj4pI0dw.cjs} +6 -6
- package/dist/{ready-qnqp6JAY.cjs.map → ready-Cj4pI0dw.cjs.map} +1 -1
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/{resolve-C9QqOl5t.cjs → resolve-C-W3kZM7.cjs} +4 -4
- package/dist/{resolve-C9QqOl5t.cjs.map → resolve-C-W3kZM7.cjs.map} +1 -1
- package/dist/{resolve-BCU9pYDx.mjs → resolve-CCVCc43b.mjs} +4 -4
- package/dist/{resolve-BCU9pYDx.mjs.map → resolve-CCVCc43b.mjs.map} +1 -1
- package/dist/{rollback-CTWdDBgB.cjs → rollback-CdBj1Boy.cjs} +4 -4
- package/dist/{rollback-CTWdDBgB.cjs.map → rollback-CdBj1Boy.cjs.map} +1 -1
- package/dist/{rollback-CWyyTQ0B.mjs → rollback-dUShCpZu.mjs} +4 -4
- package/dist/{rollback-CWyyTQ0B.mjs.map → rollback-dUShCpZu.mjs.map} +1 -1
- package/dist/{runtime-DCkfI2E7.d.mts → runtime-C_1PteGG.d.cts} +2 -2
- package/dist/{runtime-DCkfI2E7.d.mts.map → runtime-C_1PteGG.d.cts.map} +1 -1
- package/dist/{runtime-Ie4znWIB.d.cts → runtime-jjB2e3-M.d.mts} +2 -2
- package/dist/{runtime-Ie4znWIB.d.cts.map → runtime-jjB2e3-M.d.mts.map} +1 -1
- package/dist/sandbox/credentials-worker.cjs +2 -2
- package/dist/sandbox/credentials-worker.mjs +2 -2
- package/dist/sandbox/discover-worker.cjs +1 -1
- package/dist/sandbox/discover-worker.mjs +1 -1
- package/dist/sandbox/migrate-worker.cjs +5 -4
- package/dist/sandbox/migrate-worker.cjs.map +1 -1
- package/dist/sandbox/migrate-worker.mjs +5 -4
- package/dist/sandbox/migrate-worker.mjs.map +1 -1
- package/dist/{seeds-CK7w79VC.mjs → seeds-BX9pskrU.mjs} +67 -27
- package/dist/seeds-BX9pskrU.mjs.map +1 -0
- package/dist/{seeds-CPEcmoPn.cjs → seeds-sMVADbkg.cjs} +74 -34
- package/dist/seeds-sMVADbkg.cjs.map +1 -0
- package/dist/{serverSetup-C6t6Vtt7.cjs → serverSetup-4avavig6.cjs} +25 -5
- package/dist/serverSetup-4avavig6.cjs.map +1 -0
- package/dist/{serverSetup-BAPNuNEX.mjs → serverSetup-BvHpm7QD.mjs} +25 -5
- package/dist/serverSetup-BvHpm7QD.mjs.map +1 -0
- package/dist/{sniffer-DdX_WN_-.cjs → sniffer-DWLala8l.cjs} +7 -7
- package/dist/{sniffer-DdX_WN_-.cjs.map → sniffer-DWLala8l.cjs.map} +1 -1
- package/dist/{sniffer-g9v7cqDN.mjs → sniffer-XnAnEbuI.mjs} +7 -7
- package/dist/{sniffer-g9v7cqDN.mjs.map → sniffer-XnAnEbuI.mjs.map} +1 -1
- package/dist/{snsSubscriptions-BmYeeTH8.mjs → snsSubscriptions-BxLJQH4u.mjs} +3 -3
- package/dist/{snsSubscriptions-BmYeeTH8.mjs.map → snsSubscriptions-BxLJQH4u.mjs.map} +1 -1
- package/dist/{snsSubscriptions-5Cqww8S7.cjs → snsSubscriptions-f_z4PSFb.cjs} +3 -3
- package/dist/{snsSubscriptions-5Cqww8S7.cjs.map → snsSubscriptions-f_z4PSFb.cjs.map} +1 -1
- package/dist/{sst-lEkBwzGc.cjs → sst-DmVJRu5l.cjs} +2 -2
- package/dist/{sst-lEkBwzGc.cjs.map → sst-DmVJRu5l.cjs.map} +1 -1
- package/dist/{sst-CTqZZl1_.mjs → sst-fop6uZ25.mjs} +2 -2
- package/dist/{sst-CTqZZl1_.mjs.map → sst-fop6uZ25.mjs.map} +1 -1
- package/dist/{stage-CUE5pMmw.cjs → stage-ZWOE0oLB.cjs} +5 -5
- package/dist/{stage-CUE5pMmw.cjs.map → stage-ZWOE0oLB.cjs.map} +1 -1
- package/dist/{stage-C-I2dVw1.mjs → stage-mta618Oy.mjs} +5 -5
- package/dist/{stage-C-I2dVw1.mjs.map → stage-mta618Oy.mjs.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-bqY33lpN.mjs → terminal-CebFDhWQ.mjs} +2 -2
- package/dist/{terminal-bqY33lpN.mjs.map → terminal-CebFDhWQ.mjs.map} +1 -1
- package/dist/{terminal-PKhPAajN.cjs → terminal-DBwedwSS.cjs} +2 -2
- package/dist/{terminal-PKhPAajN.cjs.map → terminal-DBwedwSS.cjs.map} +1 -1
- package/dist/{types-Bmjs4jZV.d.mts → types-DLANxOpy.d.mts} +7 -1
- package/dist/types-DLANxOpy.d.mts.map +1 -0
- package/dist/{types-D0IsQxES.d.cts → types-SEHMr6Aw.d.cts} +7 -1
- package/dist/types-SEHMr6Aw.d.cts.map +1 -0
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/package.json +15 -15
- package/dist/SubscriberGenerator-BDUp7OeY.cjs.map +0 -1
- package/dist/SubscriberGenerator-ocQ2yj0K.mjs.map +0 -1
- package/dist/add-C7ZBXIzM.mjs.map +0 -1
- package/dist/add-CrxvmSpq.cjs.map +0 -1
- package/dist/compose-BFmdLig3.mjs.map +0 -1
- package/dist/compose-Bqcy0lqo.cjs.map +0 -1
- package/dist/databases-BPOgTn1u.mjs.map +0 -1
- package/dist/databases-fOaoBInm.cjs.map +0 -1
- package/dist/deploy-D8pUA9Y0.mjs.map +0 -1
- package/dist/deploy-DVrNjX1X.cjs.map +0 -1
- package/dist/derive-B4vDpzgP.mjs.map +0 -1
- package/dist/derive-DAbo49sm.cjs.map +0 -1
- package/dist/discover-CzGM5P3p.mjs.map +0 -1
- package/dist/discover-DL6h-J97.cjs.map +0 -1
- package/dist/drivers-C-VqMtld.mjs.map +0 -1
- package/dist/drivers-L29WvE95.cjs.map +0 -1
- package/dist/engine-CFOR9h6X.mjs.map +0 -1
- package/dist/engine-CuZUGbEh.cjs.map +0 -1
- package/dist/migrate-Dp3GhFnf.cjs.map +0 -1
- package/dist/migrate-NfbPVhi9.mjs.map +0 -1
- package/dist/seeds-CK7w79VC.mjs.map +0 -1
- package/dist/seeds-CPEcmoPn.cjs.map +0 -1
- package/dist/serverSetup-BAPNuNEX.mjs.map +0 -1
- package/dist/serverSetup-C6t6Vtt7.cjs.map +0 -1
- package/dist/types-Bmjs4jZV.d.mts.map +0 -1
- package/dist/types-D0IsQxES.d.cts.map +0 -1
|
@@ -2,13 +2,14 @@ const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
|
2
2
|
const require_errors = require("./errors-DMC4Umsb.cjs");
|
|
3
3
|
const require_credentials = require("./credentials-D7XJypNd.cjs");
|
|
4
4
|
const require_workspace = require("./workspace-Du4Afb03.cjs");
|
|
5
|
-
const require_derive = require("./derive-
|
|
6
|
-
const
|
|
5
|
+
const require_derive = require("./derive-BtGidITm.cjs");
|
|
6
|
+
const require_drivers = require("./drivers-C47nm-wB.cjs");
|
|
7
7
|
const require_identity = require("./identity-CbLfgQNT.cjs");
|
|
8
|
-
const require_EndpointGenerator = require("./EndpointGenerator-
|
|
9
|
-
const require_discover = require("./discover-
|
|
8
|
+
const require_EndpointGenerator = require("./EndpointGenerator-De0lknKD.cjs");
|
|
9
|
+
const require_discover = require("./discover-DEOspD9M.cjs");
|
|
10
10
|
const require_config = require("./config.cjs");
|
|
11
|
-
const
|
|
11
|
+
const require_SubscriberGenerator = require("./SubscriberGenerator-CPjbWEOI.cjs");
|
|
12
|
+
const require_resolve = require("./resolve-C-W3kZM7.cjs");
|
|
12
13
|
let node_path = require("node:path");
|
|
13
14
|
let node_fs = require("node:fs");
|
|
14
15
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -543,6 +544,7 @@ function processorsDevRoute(fileServerId) {
|
|
|
543
544
|
const EDGE_KINDS = {
|
|
544
545
|
"file-server": true,
|
|
545
546
|
"rest-api": true,
|
|
547
|
+
"websocket-api": true,
|
|
546
548
|
site: true
|
|
547
549
|
};
|
|
548
550
|
/**
|
|
@@ -889,7 +891,7 @@ function telemetryOf(manifest, id) {
|
|
|
889
891
|
const declaration = manifest[id];
|
|
890
892
|
if (!declaration) return void 0;
|
|
891
893
|
if (declaration.kind === "worker" || declaration.kind === "file-server") return nodeOf(manifest, declaration.telemetry);
|
|
892
|
-
if (declaration.kind !== "rest-api") return void 0;
|
|
894
|
+
if (declaration.kind !== "rest-api" && declaration.kind !== "websocket-api") return void 0;
|
|
893
895
|
return nodeOf(manifest, declaration.telemetry);
|
|
894
896
|
}
|
|
895
897
|
/**
|
|
@@ -897,12 +899,12 @@ function telemetryOf(manifest, id) {
|
|
|
897
899
|
* undefined for a site, an app without one, or one with no edge.
|
|
898
900
|
*/
|
|
899
901
|
function appTelemetry(manifest, appName) {
|
|
900
|
-
const id = Object.entries(manifest).find(([id, d]) => d.kind === "rest-api" && require_derive.appKey(id) === appName)?.[0];
|
|
902
|
+
const id = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "websocket-api") && require_derive.appKey(id) === appName)?.[0];
|
|
901
903
|
return id ? telemetryOf(manifest, id) : void 0;
|
|
902
904
|
}
|
|
903
905
|
/** Whether any process in the manifest emits through a `Telemetry` node. */
|
|
904
906
|
function usesTelemetry(manifest) {
|
|
905
|
-
return Object.entries(manifest).some(([id, d]) => (d.kind === "rest-api" || d.kind === "worker" || d.kind === "file-server") && telemetryOf(manifest, id) !== void 0);
|
|
907
|
+
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);
|
|
906
908
|
}
|
|
907
909
|
/**
|
|
908
910
|
* One process's share of the telemetry keys a stage resolved: all of them,
|
|
@@ -976,7 +978,8 @@ const CONTAINERS = {
|
|
|
976
978
|
"database-schema": "postgres",
|
|
977
979
|
objects: "minio",
|
|
978
980
|
"file-server": "caddy",
|
|
979
|
-
email: "mailpit"
|
|
981
|
+
email: "mailpit",
|
|
982
|
+
"websocket-api": "redis"
|
|
980
983
|
};
|
|
981
984
|
/**
|
|
982
985
|
* The container a cache backend needs locally.
|
|
@@ -1105,11 +1108,11 @@ function resourceName(id, kind, stage, localStage) {
|
|
|
1105
1108
|
* broker the project selected, which is why the backend is an argument here
|
|
1106
1109
|
* rather than a second pass that adds containers after the fact.
|
|
1107
1110
|
*/
|
|
1108
|
-
function containerFor(kind, events = DEFAULT_EVENTS, cache =
|
|
1111
|
+
function containerFor(kind, events = DEFAULT_EVENTS, cache = require_drivers.DEFAULT_CACHE.aws, derived = false, edge = true) {
|
|
1109
1112
|
if (EVENT_KINDS[kind]) return EVENT_CONTAINERS[events] ?? CONTAINERS.database;
|
|
1110
1113
|
if (kind === "file-server") return edge ? "caddy" : CONTAINERS.objects;
|
|
1111
1114
|
if (kind === "cache") {
|
|
1112
|
-
if (derived && !
|
|
1115
|
+
if (derived && !require_drivers.holdsEveryCache(cache)) return CONTAINERS.database;
|
|
1113
1116
|
return CACHE_CONTAINERS[cache] ?? CONTAINERS.database;
|
|
1114
1117
|
}
|
|
1115
1118
|
return CONTAINERS[kind];
|
|
@@ -1126,7 +1129,7 @@ function planFor(manifest, stage, order, options = {}) {
|
|
|
1126
1129
|
const resources = [];
|
|
1127
1130
|
const fakes = {};
|
|
1128
1131
|
const events = options.events ?? "pgboss";
|
|
1129
|
-
const cache = options.cache ??
|
|
1132
|
+
const cache = options.cache ?? require_drivers.DEFAULT_CACHE.aws;
|
|
1130
1133
|
for (const id of order) {
|
|
1131
1134
|
const declaration = manifest[id];
|
|
1132
1135
|
if (!declaration) continue;
|
|
@@ -1142,7 +1145,7 @@ function planFor(manifest, stage, order, options = {}) {
|
|
|
1142
1145
|
port: fake.port
|
|
1143
1146
|
} : {}
|
|
1144
1147
|
};
|
|
1145
|
-
const detached = declaration.kind === "cache" &&
|
|
1148
|
+
const detached = declaration.kind === "cache" && require_drivers.holdsEveryCache(cache);
|
|
1146
1149
|
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);
|
|
1147
1150
|
if (!container && !CONTAINERLESS[declaration.kind]) continue;
|
|
1148
1151
|
if (container) {
|
|
@@ -1156,7 +1159,7 @@ function planFor(manifest, stage, order, options = {}) {
|
|
|
1156
1159
|
name: resourceName(id, declaration.kind, stage, options.localStage),
|
|
1157
1160
|
envKey: (0, _geekmidas_manifest.providedKeyFor)(id, declaration.kind, ROLES[declaration.kind] ?? "url"),
|
|
1158
1161
|
provisions: PROVISIONS[declaration.kind] === true,
|
|
1159
|
-
...declaration.kind === "rest-api" ? { callers: (0, _geekmidas_manifest.dependentsOf)(manifest, id) } : {},
|
|
1162
|
+
...declaration.kind === "rest-api" || declaration.kind === "websocket-api" ? { callers: (0, _geekmidas_manifest.dependentsOf)(manifest, id) } : {},
|
|
1160
1163
|
...declaration.kind === "site" ? { publicEnv: (0, _geekmidas_manifest.publicEnvFor)(declaration, manifest) } : {},
|
|
1161
1164
|
...declaration.kind === "mobile-app" ? {
|
|
1162
1165
|
publicEnv: (0, _geekmidas_manifest.publicEnvFor)(declaration, manifest),
|
|
@@ -1165,7 +1168,7 @@ function planFor(manifest, stage, order, options = {}) {
|
|
|
1165
1168
|
...declaration.kind === "file-server" && declaration.open?.length ? { open: declaration.open } : {},
|
|
1166
1169
|
...declaration.kind === "file-server" && declaration.processors?.length ? { processors: [...new Set(declaration.processors.map((p) => p.prefix))].sort() } : {},
|
|
1167
1170
|
...declaration.kind === "objects" && (0, _geekmidas_manifest.bucketExpiry)(manifest, id) ? { expire: (0, _geekmidas_manifest.bucketExpiry)(manifest, id) } : {},
|
|
1168
|
-
...(declaration.kind === "rest-api" || declaration.kind === "site") && declaration.subdomain ? { subdomain: declaration.subdomain } : {},
|
|
1171
|
+
...(declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "site") && declaration.subdomain ? { subdomain: declaration.subdomain } : {},
|
|
1169
1172
|
...fake ? { fake: {
|
|
1170
1173
|
key: fake.key,
|
|
1171
1174
|
credentials: fake.credentials
|
|
@@ -1332,6 +1335,12 @@ function envFor(plan, options) {
|
|
|
1332
1335
|
...options.lanAddress ? { lanAddress: options.lanAddress } : {},
|
|
1333
1336
|
...options.metroPorts ? { metroPorts: options.metroPorts } : {}
|
|
1334
1337
|
}));
|
|
1338
|
+
if (resource.kind === "websocket-api") {
|
|
1339
|
+
const origins = surfaceEnv(resource, url, resolved)[(0, _geekmidas_manifest.provideKey)(resource.id, "trustedOrigins")];
|
|
1340
|
+
if (origins !== void 0) env[(0, _geekmidas_manifest.provideKey)(resource.id, "trustedOrigins")] = origins;
|
|
1341
|
+
const publisher = webSocketPublisher(resource, options.ports, options.project ?? "", credential);
|
|
1342
|
+
if (publisher) env[(0, _geekmidas_manifest.provideKey)(resource.id, "publisherConnectionString")] = publisher;
|
|
1343
|
+
}
|
|
1335
1344
|
if (url) env[resource.envKey] = url;
|
|
1336
1345
|
if (isDatabase(resource.kind) && resource.roles !== false) {
|
|
1337
1346
|
const owner = ownerUrl(resource, plan, options.ports, options.project ?? "", credential);
|
|
@@ -1424,10 +1433,27 @@ function surfaceEnv(resource, url, resolved = {}, local = {}) {
|
|
|
1424
1433
|
...device ? { [(0, _geekmidas_manifest.provideKey)(resource.id, "deviceUrl")]: device } : {}
|
|
1425
1434
|
};
|
|
1426
1435
|
}
|
|
1427
|
-
/**
|
|
1436
|
+
/**
|
|
1437
|
+
* Where a WebSocket surface's publisher meets its sockets: the local Redis,
|
|
1438
|
+
* on channels named for the project and the surface, so two projects sharing
|
|
1439
|
+
* one Redis never see each other's frames.
|
|
1440
|
+
*/
|
|
1441
|
+
function webSocketPublisher(resource, ports, project, credential) {
|
|
1442
|
+
const port = ports[primaryPortKey("redis")];
|
|
1443
|
+
if (port === void 0) return void 0;
|
|
1444
|
+
const channel = encodeURIComponent(`gkm:ws:${project ? `${project}:` : ""}${resource.id}`);
|
|
1445
|
+
return `redis://:${encodeURIComponent(credential.containers.redis.password)}@${LOCAL_HOST}:${port}?channel=${channel}`;
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* An address reduced to the origin a browser compares against.
|
|
1449
|
+
*
|
|
1450
|
+
* A WebSocket surface's address is `wss://`, but its host is served over
|
|
1451
|
+
* HTTPS like any other: its origin is that one, and a non-web scheme among the
|
|
1452
|
+
* origins means a mobile app to whoever reads the list.
|
|
1453
|
+
*/
|
|
1428
1454
|
function originOf(address) {
|
|
1429
1455
|
try {
|
|
1430
|
-
return new URL(address).origin;
|
|
1456
|
+
return new URL(address.replace(/^ws(s?):/, "http$1:")).origin;
|
|
1431
1457
|
} catch {
|
|
1432
1458
|
return;
|
|
1433
1459
|
}
|
|
@@ -1515,6 +1541,11 @@ function urlFor(resource, plan, ports, project, addresses, credential) {
|
|
|
1515
1541
|
const edge = plan.containers.includes("caddy") ? ports[primaryPortKey("caddy")] : void 0;
|
|
1516
1542
|
return address && edge !== void 0 ? `https://${hostFor$1(resource, project)}:${edge}` : address;
|
|
1517
1543
|
}
|
|
1544
|
+
if (resource.kind === "websocket-api") {
|
|
1545
|
+
const address = addresses?.[resource.id];
|
|
1546
|
+
const edge = plan.containers.includes("caddy") ? ports[primaryPortKey("caddy")] : void 0;
|
|
1547
|
+
return address && edge !== void 0 ? `wss://${hostFor$1(resource, project)}:${edge}` : address?.replace(/^http/, "ws");
|
|
1548
|
+
}
|
|
1518
1549
|
if (!resource.container) return void 0;
|
|
1519
1550
|
const port = ports[primaryPortKey(resource.container)];
|
|
1520
1551
|
if (port === void 0) return void 0;
|
|
@@ -1787,11 +1818,14 @@ var RedisPasswordMissing = class extends require_errors.GkmError {
|
|
|
1787
1818
|
}
|
|
1788
1819
|
};
|
|
1789
1820
|
/**
|
|
1790
|
-
* Whether a stage's stack runs Redis: a cache
|
|
1791
|
-
* secrets do not set the URL of every one.
|
|
1821
|
+
* Whether a stage's stack runs Redis: a cache or a WebSocket surface is
|
|
1822
|
+
* declared and the stage's secrets do not set the URL of every one.
|
|
1792
1823
|
*/
|
|
1793
1824
|
function runsRedis(manifest, custom) {
|
|
1794
|
-
return Object.values(manifest).some((declaration) =>
|
|
1825
|
+
return Object.values(manifest).some((declaration) => {
|
|
1826
|
+
if (declaration?.kind === "cache") return (declaration.provides ?? []).some((key) => custom[key] === void 0);
|
|
1827
|
+
return declaration?.kind === "websocket-api" && custom[(0, _geekmidas_manifest.provideKey)(declaration.id, "publisherConnectionString")] === void 0;
|
|
1828
|
+
});
|
|
1795
1829
|
}
|
|
1796
1830
|
/** A password: 256 random bits, URL-safe, so it sits in a URL unescaped. */
|
|
1797
1831
|
function generateRedisPassword() {
|
|
@@ -1828,7 +1862,8 @@ function withRedisPassword(secrets) {
|
|
|
1828
1862
|
function stackRedis(options) {
|
|
1829
1863
|
const { plan, stage, local, custom } = options;
|
|
1830
1864
|
const caches = plan.resources.filter((r) => r.kind === "cache" && custom[r.envKey] === void 0).sort((a, b) => a.id.localeCompare(b.id));
|
|
1831
|
-
|
|
1865
|
+
const publishers = plan.resources.filter((r) => r.kind === "websocket-api").map((r) => (0, _geekmidas_manifest.provideKey)(r.id, "publisherConnectionString")).filter((key) => custom[key] === void 0);
|
|
1866
|
+
if (caches.length === 0 && publishers.length === 0) return void 0;
|
|
1832
1867
|
const set = custom[REDIS_PASSWORD_KEY];
|
|
1833
1868
|
const password = set ?? (local ? options.localPassword : void 0);
|
|
1834
1869
|
if (!password) throw new RedisPasswordMissing(stage);
|
|
@@ -1836,7 +1871,7 @@ function stackRedis(options) {
|
|
|
1836
1871
|
return {
|
|
1837
1872
|
password,
|
|
1838
1873
|
passwordFromSecrets: Boolean(set),
|
|
1839
|
-
urls: Object.fromEntries(caches.map((cache, index) => [cache.envKey, `redis://:${auth}@${REDIS_SERVICE}:${REDIS_PORT}/${index}`])),
|
|
1874
|
+
urls: Object.fromEntries([...caches.map((cache, index) => [cache.envKey, `redis://:${auth}@${REDIS_SERVICE}:${REDIS_PORT}/${index}`]), ...publishers.map((key) => [key, `redis://:${auth}@${REDIS_SERVICE}:${REDIS_PORT}`])]),
|
|
1840
1875
|
env: {
|
|
1841
1876
|
[REDIS_PASSWORD_KEY]: password,
|
|
1842
1877
|
REDISCLI_AUTH: password
|
|
@@ -2961,11 +2996,11 @@ function processorUnits(workspace, manifest) {
|
|
|
2961
2996
|
/** The backend apps whose builds generate a server, each where it lives. */
|
|
2962
2997
|
function hostApps(workspace, manifest) {
|
|
2963
2998
|
return Object.entries(workspace.apps).filter(([, app]) => app.type === "backend" && !app.entry).map(([name, app]) => {
|
|
2964
|
-
const surface = Object.entries(manifest).find(([id, d]) => d.kind === "rest-api" && require_derive.appKey(id) === name)?.[1];
|
|
2999
|
+
const surface = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "websocket-api") && require_derive.appKey(id) === name)?.[1];
|
|
2965
3000
|
return {
|
|
2966
3001
|
name,
|
|
2967
3002
|
root: (0, node_path.isAbsolute)(app.path) ? app.path : (0, node_path.join)(workspace.root, app.path),
|
|
2968
|
-
generated: !(surface?.kind === "rest-api" && surface.endpoints.length > 0)
|
|
3003
|
+
generated: !(surface?.kind === "websocket-api" || surface?.kind === "rest-api" && surface.endpoints.length > 0)
|
|
2969
3004
|
};
|
|
2970
3005
|
}).sort((a, b) => a.name.localeCompare(b.name));
|
|
2971
3006
|
}
|
|
@@ -4494,11 +4529,11 @@ function providerOf(workspace) {
|
|
|
4494
4529
|
* would be worse than a slower one.
|
|
4495
4530
|
*/
|
|
4496
4531
|
function cacheBackendFor(on) {
|
|
4497
|
-
return
|
|
4532
|
+
return require_drivers.DEFAULT_CACHE[on];
|
|
4498
4533
|
}
|
|
4499
4534
|
/** Where a declared bucket lives on a target. */
|
|
4500
4535
|
function storageBackendFor(on) {
|
|
4501
|
-
return
|
|
4536
|
+
return require_drivers.DEFAULT_STORAGE[on];
|
|
4502
4537
|
}
|
|
4503
4538
|
/**
|
|
4504
4539
|
* Which broker carries declared queues and topics on a target.
|
|
@@ -4507,7 +4542,7 @@ function storageBackendFor(on) {
|
|
|
4507
4542
|
* `Queue` has no events at all, whatever the target.
|
|
4508
4543
|
*/
|
|
4509
4544
|
function eventsBackendFor(on) {
|
|
4510
|
-
return
|
|
4545
|
+
return require_drivers.DEFAULT_EVENTS[on];
|
|
4511
4546
|
}
|
|
4512
4547
|
//#endregion
|
|
4513
4548
|
//#region src/reconcile/compose.ts
|
|
@@ -6153,7 +6188,7 @@ function processorAddresses(workspace, manifest) {
|
|
|
6153
6188
|
function surfaceAddresses(workspace, manifest, at = (_app, port) => localAddress(port)) {
|
|
6154
6189
|
const addresses = {};
|
|
6155
6190
|
for (const [id, declaration] of Object.entries(manifest)) {
|
|
6156
|
-
if (declaration.kind !== "rest-api" && declaration.kind !== "site") continue;
|
|
6191
|
+
if (declaration.kind !== "rest-api" && declaration.kind !== "websocket-api" && declaration.kind !== "site") continue;
|
|
6157
6192
|
const host = require_derive.appKey(id);
|
|
6158
6193
|
const port = workspace.apps[host]?.port;
|
|
6159
6194
|
if (port) addresses[id] = at(host, port);
|
|
@@ -6278,7 +6313,7 @@ function networkEnv(plan, options, hostOf = (container) => container) {
|
|
|
6278
6313
|
* port.
|
|
6279
6314
|
*/
|
|
6280
6315
|
function appEnvKeys(manifest, appName, runnables = {}) {
|
|
6281
|
-
const entry = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "site" || d.kind === "mobile-app") && require_derive.appKey(id) === appName);
|
|
6316
|
+
const entry = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "websocket-api" || d.kind === "site" || d.kind === "mobile-app") && require_derive.appKey(id) === appName);
|
|
6282
6317
|
if (!entry) return void 0;
|
|
6283
6318
|
const [id, declaration] = entry;
|
|
6284
6319
|
const keys = /* @__PURE__ */ new Set([
|
|
@@ -6286,7 +6321,7 @@ function appEnvKeys(manifest, appName, runnables = {}) {
|
|
|
6286
6321
|
...declaration.requires ?? [],
|
|
6287
6322
|
...declaration.kind === "rest-api" ? declaration.endpoints.flatMap((endpoint) => endpoint.requires ?? []) : []
|
|
6288
6323
|
]);
|
|
6289
|
-
addEdgeKeys(manifest, [...(0, _geekmidas_manifest.dependenciesOf)(declaration).map((edge) => edge.target), ...runnables[id] ?? []], keys);
|
|
6324
|
+
addEdgeKeys(manifest, [...(0, _geekmidas_manifest.dependenciesOf)(declaration).map((edge) => edge.target), ...runnables[id] ?? []], keys, declaration.kind === "site" || declaration.kind === "mobile-app");
|
|
6290
6325
|
if (declaration.kind === "site" || declaration.kind === "mobile-app") {
|
|
6291
6326
|
for (const key of _geekmidas_manifest.TELEMETRY_KEYS) keys.delete(key);
|
|
6292
6327
|
for (const key of Object.keys((0, _geekmidas_manifest.publicEnvFor)(declaration, manifest))) keys.add(key);
|
|
@@ -6328,7 +6363,7 @@ function processorEnvKeys(manifest, fileServerId, runnables = {}) {
|
|
|
6328
6363
|
], keys);
|
|
6329
6364
|
return keys;
|
|
6330
6365
|
}
|
|
6331
|
-
function addEdgeKeys(manifest, edges, keys) {
|
|
6366
|
+
function addEdgeKeys(manifest, edges, keys, client = false) {
|
|
6332
6367
|
for (const id of edges) {
|
|
6333
6368
|
const bucket = require_discover.eventsEdgeBucket(id);
|
|
6334
6369
|
if (bucket) {
|
|
@@ -6344,6 +6379,11 @@ function addEdgeKeys(manifest, edges, keys) {
|
|
|
6344
6379
|
keys.add((0, _geekmidas_manifest.provideKey)(id, "url"));
|
|
6345
6380
|
continue;
|
|
6346
6381
|
}
|
|
6382
|
+
if (target.kind === "websocket-api") {
|
|
6383
|
+
keys.add((0, _geekmidas_manifest.provideKey)(id, "url"));
|
|
6384
|
+
if (!client) keys.add((0, _geekmidas_manifest.provideKey)(id, "publisherConnectionString"));
|
|
6385
|
+
continue;
|
|
6386
|
+
}
|
|
6347
6387
|
for (const key of target.provides ?? []) keys.add(key);
|
|
6348
6388
|
if (target.kind === "queue" || target.kind === "topic") keys.add("EVENT_PUBLISHER_CONNECTION_STRING");
|
|
6349
6389
|
if (target.kind === "objects") {
|
|
@@ -6574,7 +6614,7 @@ function stageServiceDeclarations(input) {
|
|
|
6574
6614
|
};
|
|
6575
6615
|
for (const [id, declaration] of Object.entries(manifest)) {
|
|
6576
6616
|
const name = require_derive.appKey(id);
|
|
6577
|
-
if (declaration.kind === "rest-api" || declaration.kind === "site" || declaration.kind === "mobile-app") read(name, appEnvKeys(manifest, name, runnables) ?? []);
|
|
6617
|
+
if (declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "site" || declaration.kind === "mobile-app") read(name, appEnvKeys(manifest, name, runnables) ?? []);
|
|
6578
6618
|
if (declaration.kind === "site") read(name, Object.values((0, _geekmidas_manifest.publicEnvFor)(declaration, manifest)));
|
|
6579
6619
|
if (declaration.kind === "worker") read(name, workerEnvKeys(manifest, id, runnables) ?? []);
|
|
6580
6620
|
}
|
|
@@ -8285,7 +8325,7 @@ async function createDnsProvider(options) {
|
|
|
8285
8325
|
});
|
|
8286
8326
|
}
|
|
8287
8327
|
if (provider === "godaddy") {
|
|
8288
|
-
const { GoDaddyProvider } = await Promise.resolve().then(() => require("./GoDaddyProvider-
|
|
8328
|
+
const { GoDaddyProvider } = await Promise.resolve().then(() => require("./GoDaddyProvider-DnmLq7eo.cjs"));
|
|
8289
8329
|
return new GoDaddyProvider(options.godaddy ?? {});
|
|
8290
8330
|
}
|
|
8291
8331
|
if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
|
|
@@ -10239,4 +10279,4 @@ Object.defineProperty(exports, "workspace_exports", {
|
|
|
10239
10279
|
}
|
|
10240
10280
|
});
|
|
10241
10281
|
|
|
10242
|
-
//# sourceMappingURL=seeds-
|
|
10282
|
+
//# sourceMappingURL=seeds-sMVADbkg.cjs.map
|