@geekmidas/cli 10.0.0-alpha.126 → 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-CvRVmN4W.mjs → GoDaddyProvider-BG-UdElN.mjs} +2 -2
- package/dist/{GoDaddyProvider-CvRVmN4W.mjs.map → GoDaddyProvider-BG-UdElN.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-DFfpzCOP.cjs → GoDaddyProvider-DnmLq7eo.cjs} +2 -2
- package/dist/{GoDaddyProvider-DFfpzCOP.cjs.map → GoDaddyProvider-DnmLq7eo.cjs.map} +1 -1
- package/dist/{LegacyStateStore-BFrCHrFQ.cjs → LegacyStateStore-CeBkK9K2.cjs} +3 -3
- package/dist/{LegacyStateStore-BFrCHrFQ.cjs.map → LegacyStateStore-CeBkK9K2.cjs.map} +1 -1
- package/dist/{LegacyStateStore-CgfENrXF.mjs → LegacyStateStore-DHG_4jcn.mjs} +3 -3
- package/dist/{LegacyStateStore-CgfENrXF.mjs.map → LegacyStateStore-DHG_4jcn.mjs.map} +1 -1
- package/dist/{LocalStateStore-DxoNpiBg.mjs → LocalStateStore-EenTHwr4.mjs} +2 -2
- package/dist/{LocalStateStore-DxoNpiBg.mjs.map → LocalStateStore-EenTHwr4.mjs.map} +1 -1
- package/dist/{LocalStateStore-BU5z_IOE.cjs → LocalStateStore-HRnBQFe3.cjs} +2 -2
- package/dist/{LocalStateStore-BU5z_IOE.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-DiekMLpn.cjs → S3StateStore-DyLljVN1.cjs} +2 -2
- package/dist/{S3StateStore-DiekMLpn.cjs.map → S3StateStore-DyLljVN1.cjs.map} +1 -1
- package/dist/{S3StateStore-CGMSDilh.mjs → S3StateStore-vbkyBnRB.mjs} +2 -2
- package/dist/{S3StateStore-CGMSDilh.mjs.map → S3StateStore-vbkyBnRB.mjs.map} +1 -1
- package/dist/{SSMStateStore-BDCOFdKq.cjs → SSMStateStore-BBKlmfaU.cjs} +2 -2
- package/dist/{SSMStateStore-BDCOFdKq.cjs.map → SSMStateStore-BBKlmfaU.cjs.map} +1 -1
- package/dist/{SSMStateStore-Cq2H9MlF.mjs → SSMStateStore-uk2QLUgz.mjs} +2 -2
- package/dist/{SSMStateStore-Cq2H9MlF.mjs.map → SSMStateStore-uk2QLUgz.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-BALddfuW.mjs → SubscriberGenerator-0ruEmYXj.mjs} +3 -3
- package/dist/{SubscriberGenerator-BALddfuW.mjs.map → SubscriberGenerator-0ruEmYXj.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-LgyTxZ8r.cjs → SubscriberGenerator-CPjbWEOI.cjs} +3 -3
- package/dist/{SubscriberGenerator-LgyTxZ8r.cjs.map → SubscriberGenerator-CPjbWEOI.cjs.map} +1 -1
- package/dist/{add-BsiBYkAW.cjs → add-CH7-9AHI.cjs} +7 -7
- package/dist/add-CH7-9AHI.cjs.map +1 -0
- package/dist/{add-CamA9Uqv.mjs → add-CgyyN6aF.mjs} +7 -7
- package/dist/add-CgyyN6aF.mjs.map +1 -0
- package/dist/{bundler-CijtdIZ2.cjs → bundler-BtAkF9wb.cjs} +5 -5
- package/dist/{bundler-CijtdIZ2.cjs.map → bundler-BtAkF9wb.cjs.map} +1 -1
- package/dist/{bundler-2V2PR_E-.mjs → bundler-DqHozK8W.mjs} +5 -5
- package/dist/{bundler-2V2PR_E-.mjs.map → bundler-DqHozK8W.mjs.map} +1 -1
- package/dist/{cli-7gc1QG8X.cjs → cli-D08bMg7m.cjs} +3 -3
- package/dist/{cli-7gc1QG8X.cjs.map → cli-D08bMg7m.cjs.map} +1 -1
- package/dist/{cli-PiyYqHGx.mjs → cli-D_BQkb4B.mjs} +3 -3
- package/dist/{cli-PiyYqHGx.mjs.map → cli-D_BQkb4B.mjs.map} +1 -1
- package/dist/{compose-8e2xJ61E.cjs → compose-BK9s_2Qe.cjs} +68 -40
- package/dist/compose-BK9s_2Qe.cjs.map +1 -0
- package/dist/{compose-CvHIjMDd.mjs → compose-CIzCcsoz.mjs} +68 -40
- 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/deploy/public.cjs +8 -8
- package/dist/deploy/public.d.cts +3 -3
- package/dist/deploy/public.d.mts +3 -3
- package/dist/deploy/public.mjs +8 -8
- package/dist/{deploy-wSlIRPn5.cjs → deploy-A_fzSa59.cjs} +10 -10
- package/dist/deploy-A_fzSa59.cjs.map +1 -0
- package/dist/{deploy-CIPwTJ47.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-BKbUrz05.cjs → dokploy-CshlFRwr.cjs} +2 -2
- package/dist/{dokploy-BKbUrz05.cjs.map → dokploy-CshlFRwr.cjs.map} +1 -1
- package/dist/{dokploy-BZf1AHd0.mjs → dokploy-DOndleTd.mjs} +2 -2
- package/dist/{dokploy-BZf1AHd0.mjs.map → dokploy-DOndleTd.mjs.map} +1 -1
- package/dist/{eas-DzDMGzfc.cjs → eas-ApfPYR4-.cjs} +3 -3
- package/dist/{eas-DzDMGzfc.cjs.map → eas-ApfPYR4-.cjs.map} +1 -1
- package/dist/{eas-CxX2RCE_.mjs → eas-Dlr1Lw56.mjs} +3 -3
- package/dist/{eas-CxX2RCE_.mjs.map → eas-Dlr1Lw56.mjs.map} +1 -1
- package/dist/{encryption-BFSrt89F.mjs → encryption-D0tWRvy_.mjs} +2 -2
- package/dist/{encryption-BFSrt89F.mjs.map → encryption-D0tWRvy_.mjs.map} +1 -1
- package/dist/{encryption-RNcBnG4Z.cjs → encryption-SGWvnBxV.cjs} +2 -2
- package/dist/{encryption-RNcBnG4Z.cjs.map → encryption-SGWvnBxV.cjs.map} +1 -1
- package/dist/{engine-Dqe9KQCm.cjs → engine-CYu4wavP.cjs} +5 -5
- package/dist/{engine-Dqe9KQCm.cjs.map → engine-CYu4wavP.cjs.map} +1 -1
- package/dist/{engine-_0pjyCd_.mjs → engine-DKz1NYDX.mjs} +5 -5
- package/dist/{engine-_0pjyCd_.mjs.map → engine-DKz1NYDX.mjs.map} +1 -1
- package/dist/{github-Csev5EFf.cjs → github-CxWaWQtW.cjs} +5 -5
- package/dist/{github-Csev5EFf.cjs.map → github-CxWaWQtW.cjs.map} +1 -1
- package/dist/{github-Dck0nLW9.mjs → github-VQaj8gLE.mjs} +5 -5
- package/dist/{github-Dck0nLW9.mjs.map → github-VQaj8gLE.mjs.map} +1 -1
- package/dist/{googlePlay-DBtDAGBk.cjs → googlePlay-4KVtZ89D.cjs} +3 -3
- package/dist/{googlePlay-DBtDAGBk.cjs.map → googlePlay-4KVtZ89D.cjs.map} +1 -1
- package/dist/{googlePlay-DTuvDHi5.mjs → googlePlay-Nqc4EAiC.mjs} +3 -3
- package/dist/{googlePlay-DTuvDHi5.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 +101 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +101 -73
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-3ZEoqx5q.cjs → migrate-BQPRclv2.cjs} +2 -2
- package/dist/{migrate-3ZEoqx5q.cjs.map → migrate-BQPRclv2.cjs.map} +1 -1
- package/dist/{migrate-BABIuzQj.mjs → migrate-C7exqXTD.mjs} +2 -2
- package/dist/{migrate-BABIuzQj.mjs.map → migrate-C7exqXTD.mjs.map} +1 -1
- package/dist/{migrate-DZeNpuX2.mjs → migrate-DQPEUiFC.mjs} +3 -3
- package/dist/{migrate-DZeNpuX2.mjs.map → migrate-DQPEUiFC.mjs.map} +1 -1
- package/dist/{migrate-pGiUqvBi.cjs → migrate-DTv6LHux.cjs} +3 -3
- package/dist/{migrate-pGiUqvBi.cjs.map → migrate-DTv6LHux.cjs.map} +1 -1
- 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-CS6xDvGT.cjs → publish-CgwqwKDs.cjs} +2 -2
- package/dist/{publish-CS6xDvGT.cjs.map → publish-CgwqwKDs.cjs.map} +1 -1
- package/dist/{publish-BsnDeOVL.mjs → publish-VYt4xOOc.mjs} +2 -2
- package/dist/{publish-BsnDeOVL.mjs.map → publish-VYt4xOOc.mjs.map} +1 -1
- package/dist/{ready-DrvaAwKv.mjs → ready-BwtLriAF.mjs} +5 -5
- package/dist/{ready-DrvaAwKv.mjs.map → ready-BwtLriAF.mjs.map} +1 -1
- package/dist/{ready-CxPJm0Hc.cjs → ready-Cj4pI0dw.cjs} +5 -5
- package/dist/{ready-CxPJm0Hc.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-zqCMFio0.cjs → resolve-C-W3kZM7.cjs} +4 -4
- package/dist/{resolve-zqCMFio0.cjs.map → resolve-C-W3kZM7.cjs.map} +1 -1
- package/dist/{resolve-fCGJmM-R.mjs → resolve-CCVCc43b.mjs} +4 -4
- package/dist/{resolve-fCGJmM-R.mjs.map → resolve-CCVCc43b.mjs.map} +1 -1
- package/dist/{rollback-qc79mj6L.cjs → rollback-CdBj1Boy.cjs} +4 -4
- package/dist/{rollback-qc79mj6L.cjs.map → rollback-CdBj1Boy.cjs.map} +1 -1
- package/dist/{rollback-BkhVrtAf.mjs → rollback-dUShCpZu.mjs} +4 -4
- package/dist/{rollback-BkhVrtAf.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 +1 -1
- package/dist/sandbox/migrate-worker.mjs +1 -1
- package/dist/{seeds-Cfejy8wj.mjs → seeds-BX9pskrU.mjs} +66 -27
- package/dist/seeds-BX9pskrU.mjs.map +1 -0
- package/dist/{seeds-3awh33Wz.cjs → seeds-sMVADbkg.cjs} +66 -27
- package/dist/seeds-sMVADbkg.cjs.map +1 -0
- package/dist/{serverSetup-BFQuwUeL.cjs → serverSetup-4avavig6.cjs} +25 -5
- package/dist/serverSetup-4avavig6.cjs.map +1 -0
- package/dist/{serverSetup-C8ZbHTm_.mjs → serverSetup-BvHpm7QD.mjs} +25 -5
- package/dist/serverSetup-BvHpm7QD.mjs.map +1 -0
- package/dist/{sniffer-Cq1nhxIB.cjs → sniffer-DWLala8l.cjs} +7 -7
- package/dist/{sniffer-Cq1nhxIB.cjs.map → sniffer-DWLala8l.cjs.map} +1 -1
- package/dist/{sniffer-CCkdzjiU.mjs → sniffer-XnAnEbuI.mjs} +7 -7
- package/dist/{sniffer-CCkdzjiU.mjs.map → sniffer-XnAnEbuI.mjs.map} +1 -1
- package/dist/{snsSubscriptions-R_AKBZYK.mjs → snsSubscriptions-BxLJQH4u.mjs} +3 -3
- package/dist/{snsSubscriptions-R_AKBZYK.mjs.map → snsSubscriptions-BxLJQH4u.mjs.map} +1 -1
- package/dist/{snsSubscriptions-DYyYP0Xf.cjs → snsSubscriptions-f_z4PSFb.cjs} +3 -3
- package/dist/{snsSubscriptions-DYyYP0Xf.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-BkgbVJ9Z.cjs → stage-ZWOE0oLB.cjs} +5 -5
- package/dist/{stage-BkgbVJ9Z.cjs.map → stage-ZWOE0oLB.cjs.map} +1 -1
- package/dist/{stage-DCaxqm-G.mjs → stage-mta618Oy.mjs} +5 -5
- package/dist/{stage-DCaxqm-G.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-D0IsQxES.d.cts → types-DLANxOpy.d.mts} +7 -2
- package/dist/types-DLANxOpy.d.mts.map +1 -0
- package/dist/{types-Bmjs4jZV.d.mts → types-SEHMr6Aw.d.cts} +8 -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/add-BsiBYkAW.cjs.map +0 -1
- package/dist/add-CamA9Uqv.mjs.map +0 -1
- package/dist/compose-8e2xJ61E.cjs.map +0 -1
- package/dist/compose-CvHIjMDd.mjs.map +0 -1
- package/dist/deploy-CIPwTJ47.mjs.map +0 -1
- package/dist/deploy-wSlIRPn5.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/seeds-3awh33Wz.cjs.map +0 -1
- package/dist/seeds-Cfejy8wj.mjs.map +0 -1
- package/dist/serverSetup-BFQuwUeL.cjs.map +0 -1
- package/dist/serverSetup-C8ZbHTm_.mjs.map +0 -1
- package/dist/types-Bmjs4jZV.d.mts.map +0 -1
- package/dist/types-D0IsQxES.d.cts.map +0 -1
|
@@ -2,14 +2,14 @@ import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
|
2
2
|
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
3
3
|
import { c as runOutput, s as run } from "./credentials-DpfnUvIR.mjs";
|
|
4
4
|
import { B as LOGS_PORT, I as otlpTelemetryEnv, L as resolveStageTelemetry, at as certificateFor, ft as SERVER_IPV4_KEY, ht as isReservedStageKey, it as ComposeTlsFileMissing, ot as proxyFor, z as telemetryEnv } from "./workspace-DBHF9Gba.mjs";
|
|
5
|
-
import { A as backupsRoleStatements, C as passwordSites, D as BACKUPS_SERVICE, E as withSitePasswords, M as stackBackups, R as stageBackups, T as siteNames, a as subscriptionKey, c as HostNotPointingAtServer, f as requiredServerAddress, g as stageDns, h as stackHosts, i as recordedPushSubscriptions, j as backupsService, n as SUBSCRIPTION_TYPE, o as subscriptionResource, p as serverAddressHint, r as confirmPendingSubscriptions, s as topicConnection, t as PushSubscriptionsUnconfirmed, u as isLocalHost, v as systemLookup, w as siteAuth } from "./snsSubscriptions-
|
|
5
|
+
import { A as backupsRoleStatements, C as passwordSites, D as BACKUPS_SERVICE, E as withSitePasswords, M as stackBackups, R as stageBackups, T as siteNames, a as subscriptionKey, c as HostNotPointingAtServer, f as requiredServerAddress, g as stageDns, h as stackHosts, i as recordedPushSubscriptions, j as backupsService, n as SUBSCRIPTION_TYPE, o as subscriptionResource, p as serverAddressHint, r as confirmPendingSubscriptions, s as topicConnection, t as PushSubscriptionsUnconfirmed, u as isLocalHost, v as systemLookup, w as siteAuth } from "./snsSubscriptions-BxLJQH4u.mjs";
|
|
6
6
|
import { t as defineTarget } from "./define-6poNqm5O.mjs";
|
|
7
|
-
import { $ as ORIGIN_VERIFY_HEADER, $n as telemetryOf, An as postgresSuperuser, At as LEGACY_LOCAL_LOGIN, B as processorDockerfile, Bn as redisService, Ct as backendsOf, Dn as LOCAL_RABBITMQ_USER, Ft as composeFor, Gn as localRolePassword, H as workerDockerfile, Hn as stackRedis, L as appDockerfile, Ln as withGeneratedSecrets, Mt as bucketClient, N as stageProviderNotes, Nt as pgClient, On as loadLocalCredentials, Qt as initStageSecrets, Rn as REDIS_SERVICE, S as recordRelease, Sn as bucketPolicies, Un as withRedisPassword, V as processorNative, Vn as runsRedis, Wn as envFor, Xn as isTelemetryKey, Zn as scopeTelemetryEnv, _n as applyLifecycles, _r as withLogsPassword, _t as appEnvKeys, a as dnsResources, an as PROCESSOR_PORT, ar as DEFAULT_IMAGES, bn as applyPostgres, br as resolveHost, bt as processorEnvKeys, c as currentActor, cr as portKeys, d as DeployJournal, dr as primaryPortKey, dt as devServicesUsed, er as usesTelemetry, fn as publicBuildValues, ft as externalServices, gn as applyBuckets, gr as stackLogs, gt as suppliedOnly, hn as workerUnits, hr as logsService, ht as stageServiceDeclarations, in as imageLayout, ir as hostFor, it as validateImageRef, jt as ensurePostgresLogin, ln as findBuildRoot, mn as processorUnits, mr as logsAccess, n as reportDatabaseRuns, nr as watchedBuckets, nt as originSecretKey, o as forgetDnsResource, on as TURBO_VERSION, pr as LOGS_SERVICE, qn as planFor, r as reportPlannedSeeds, rn as composeBuildPaths, rr as EMULATOR_ACCESS_KEY_ID, rt as processorOriginHost, s as recordDnsChanges, sn as WORKER_PORT, t as DeploySeedsFailed, tr as minioWebhookEnv, v as createComposeState, vn as applyNotifications, vr as NoDomainForStage, wn as postgresStatements, wt as constructGlobs, xn as bucketLifecycles, xt as workerEnvKeys, yn as applyPolicies, yr as isMainFrontendApp, yt as networkEnv, z as ensureDockerignore, zn as STACK_CACHE } from "./seeds-
|
|
8
|
-
import { t as appKey } from "./derive-
|
|
7
|
+
import { $ as ORIGIN_VERIFY_HEADER, $n as telemetryOf, An as postgresSuperuser, At as LEGACY_LOCAL_LOGIN, B as processorDockerfile, Bn as redisService, Ct as backendsOf, Dn as LOCAL_RABBITMQ_USER, Ft as composeFor, Gn as localRolePassword, H as workerDockerfile, Hn as stackRedis, L as appDockerfile, Ln as withGeneratedSecrets, Mt as bucketClient, N as stageProviderNotes, Nt as pgClient, On as loadLocalCredentials, Qt as initStageSecrets, Rn as REDIS_SERVICE, S as recordRelease, Sn as bucketPolicies, Un as withRedisPassword, V as processorNative, Vn as runsRedis, Wn as envFor, Xn as isTelemetryKey, Zn as scopeTelemetryEnv, _n as applyLifecycles, _r as withLogsPassword, _t as appEnvKeys, a as dnsResources, an as PROCESSOR_PORT, ar as DEFAULT_IMAGES, bn as applyPostgres, br as resolveHost, bt as processorEnvKeys, c as currentActor, cr as portKeys, d as DeployJournal, dr as primaryPortKey, dt as devServicesUsed, er as usesTelemetry, fn as publicBuildValues, ft as externalServices, gn as applyBuckets, gr as stackLogs, gt as suppliedOnly, hn as workerUnits, hr as logsService, ht as stageServiceDeclarations, in as imageLayout, ir as hostFor, it as validateImageRef, jt as ensurePostgresLogin, ln as findBuildRoot, mn as processorUnits, mr as logsAccess, n as reportDatabaseRuns, nr as watchedBuckets, nt as originSecretKey, o as forgetDnsResource, on as TURBO_VERSION, pr as LOGS_SERVICE, qn as planFor, r as reportPlannedSeeds, rn as composeBuildPaths, rr as EMULATOR_ACCESS_KEY_ID, rt as processorOriginHost, s as recordDnsChanges, sn as WORKER_PORT, t as DeploySeedsFailed, tr as minioWebhookEnv, v as createComposeState, vn as applyNotifications, vr as NoDomainForStage, wn as postgresStatements, wt as constructGlobs, xn as bucketLifecycles, xt as workerEnvKeys, yn as applyPolicies, yr as isMainFrontendApp, yt as networkEnv, z as ensureDockerignore, zn as STACK_CACHE } from "./seeds-BX9pskrU.mjs";
|
|
8
|
+
import { t as appKey } from "./derive-Dew0QoGe.mjs";
|
|
9
9
|
import { i as installedFrom, s as DEFAULT_EVENTS } from "./drivers-CDjpjakg.mjs";
|
|
10
10
|
import { a as imageRef } from "./identity-CBXr4wNi.mjs";
|
|
11
|
-
import { i as discover } from "./discover-
|
|
12
|
-
import { a as SNS_SUBSCRIPTIONS_KEY, o as objectsRoute, s as subscriberRoute } from "./SubscriberGenerator-
|
|
11
|
+
import { i as discover } from "./discover-DOhYSKY_.mjs";
|
|
12
|
+
import { a as SNS_SUBSCRIPTIONS_KEY, o as objectsRoute, s as subscriberRoute } from "./SubscriberGenerator-0ruEmYXj.mjs";
|
|
13
13
|
import { f as plannedSeeds, o as SeedFailed, p as seedDatabases, u as migrateDatabases } from "./databases-6GD0tI2F.mjs";
|
|
14
14
|
import { dirname, join } from "node:path";
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
@@ -663,6 +663,21 @@ var EdgeRouteConflict = class extends Error {
|
|
|
663
663
|
function assertRouteRenderable(route) {
|
|
664
664
|
if (route.handlers?.length && (route.allow || route.paths || route.prefixes || route.requireHeader)) throw new EdgeRouteConflict(route.name);
|
|
665
665
|
}
|
|
666
|
+
/** File descriptors a process holding sockets may open. */
|
|
667
|
+
const NOFILE = {
|
|
668
|
+
soft: 1048576,
|
|
669
|
+
hard: 1048576
|
|
670
|
+
};
|
|
671
|
+
/**
|
|
672
|
+
* What the edge runs with: a descriptor per socket, twice — the client's and
|
|
673
|
+
* the upstream's — and every local port for those upstream connections. One
|
|
674
|
+
* edge address to one upstream has only the ephemeral range to open
|
|
675
|
+
* connections from, ~28k by Linux's default; widened, ~64k per replica.
|
|
676
|
+
*/
|
|
677
|
+
const EDGE_LIMITS = {
|
|
678
|
+
sysctls: { "net.ipv4.ip_local_port_range": "1024 65535" },
|
|
679
|
+
ulimits: { nofile: NOFILE }
|
|
680
|
+
};
|
|
666
681
|
//#endregion
|
|
667
682
|
//#region src/compose/caddyfile.ts
|
|
668
683
|
/**
|
|
@@ -1023,6 +1038,7 @@ function edgeCompose(options) {
|
|
|
1023
1038
|
],
|
|
1024
1039
|
labels: { "dev.geekmidas.edge.config": createHash("sha256").update(options.staticConfig).digest("hex").slice(0, 16) },
|
|
1025
1040
|
networks: ["edge"],
|
|
1041
|
+
...EDGE_LIMITS,
|
|
1026
1042
|
healthcheck: {
|
|
1027
1043
|
test: [
|
|
1028
1044
|
"CMD",
|
|
@@ -1467,6 +1483,7 @@ function composeStack(input) {
|
|
|
1467
1483
|
owners.set(provideKey(resource.id, "inboxUrl"), resource);
|
|
1468
1484
|
}
|
|
1469
1485
|
if (resource.kind === "external-api") owners.set(provideKey(resource.id, "credentials"), resource);
|
|
1486
|
+
if (resource.kind === "websocket-api") owners.set(provideKey(resource.id, "publisherConnectionString"), resource);
|
|
1470
1487
|
}
|
|
1471
1488
|
const domain = workspace.domains?.[stage];
|
|
1472
1489
|
const telemetry = resolveStageTelemetry({
|
|
@@ -1562,7 +1579,7 @@ function composeStack(input) {
|
|
|
1562
1579
|
});
|
|
1563
1580
|
}
|
|
1564
1581
|
const edgeServices = new Set(proxy === "traefik" ? [
|
|
1565
|
-
...apps.
|
|
1582
|
+
...apps.flatMap(replicaNames),
|
|
1566
1583
|
...fileServers.size > 0 ? ["minio"] : [],
|
|
1567
1584
|
...logsBase?.host && logsBase.public ? [LOGS_SERVICE] : []
|
|
1568
1585
|
] : []);
|
|
@@ -1587,9 +1604,9 @@ function composeStack(input) {
|
|
|
1587
1604
|
}, hostOf);
|
|
1588
1605
|
const inside = networkEnv(plan, {
|
|
1589
1606
|
...derivation,
|
|
1590
|
-
addresses: Object.fromEntries(apps.map((app) => [app.id,
|
|
1607
|
+
addresses: Object.fromEntries(apps.map((app) => [app.id, `${app.kind === "websocket-api" ? "ws" : "http"}://${hostOf(app.name)}:${app.port}`]))
|
|
1591
1608
|
}, hostOf);
|
|
1592
|
-
const surfaceUrls = new Map(plan.resources.filter((r) => r.kind === "rest-api" || r.kind === "site").map((r) => [r.envKey, r.id]));
|
|
1609
|
+
const surfaceUrls = new Map(plan.resources.filter((r) => r.kind === "rest-api" || r.kind === "websocket-api" || r.kind === "site").map((r) => [r.envKey, r.id]));
|
|
1593
1610
|
const appById = new Map(apps.map((app) => [app.id, app]));
|
|
1594
1611
|
/**
|
|
1595
1612
|
* What a key resolves to for one app, from the stage's secrets where only
|
|
@@ -1615,8 +1632,9 @@ function composeStack(input) {
|
|
|
1615
1632
|
}
|
|
1616
1633
|
if (custom[key] !== void 0) return custom[key];
|
|
1617
1634
|
if (owner?.kind === "cache") return redis?.urls[key];
|
|
1635
|
+
if (owner?.kind === "websocket-api" && key === provideKey(owner.id, "publisherConnectionString")) return redis?.urls[key];
|
|
1618
1636
|
const surface = surfaceUrls.get(key);
|
|
1619
|
-
if (app.kind === "rest-api" && surface && surface !== app.id) return inside[key];
|
|
1637
|
+
if ((app.kind === "rest-api" || app.kind === "websocket-api") && surface && surface !== app.id) return inside[key];
|
|
1620
1638
|
return outside[key];
|
|
1621
1639
|
};
|
|
1622
1640
|
const telemetryValues = logs ? telemetryEnv({
|
|
@@ -1652,7 +1670,7 @@ function composeStack(input) {
|
|
|
1652
1670
|
const values = valuesFor(app, keys);
|
|
1653
1671
|
const trusted = provideKey(app.id, "trustedOrigins");
|
|
1654
1672
|
if (keys.has(trusted)) {
|
|
1655
|
-
const internal = (byId.get(app.id)?.callers ?? []).map((caller) => appById.get(caller)).filter((caller) => caller?.kind === "rest-api").map((caller) => `http://${hostOf(caller.name)}:${caller.port}`);
|
|
1673
|
+
const internal = (byId.get(app.id)?.callers ?? []).map((caller) => appById.get(caller)).filter((caller) => caller?.kind === "rest-api" || caller?.kind === "websocket-api").map((caller) => `http://${hostOf(caller.name)}:${caller.port}`);
|
|
1656
1674
|
const origins = [...(values[trusted] ?? "").split(",").filter(Boolean), ...internal];
|
|
1657
1675
|
values[trusted] = [...new Set(origins)].join(",");
|
|
1658
1676
|
}
|
|
@@ -1818,10 +1836,10 @@ function composeStack(input) {
|
|
|
1818
1836
|
...apps.map((app) => ({
|
|
1819
1837
|
name: app.name,
|
|
1820
1838
|
host: app.host,
|
|
1821
|
-
upstreams:
|
|
1822
|
-
service
|
|
1839
|
+
upstreams: replicaNames(app).map((service) => ({
|
|
1840
|
+
service,
|
|
1823
1841
|
port: app.port
|
|
1824
|
-
}
|
|
1842
|
+
})),
|
|
1825
1843
|
streaming: true,
|
|
1826
1844
|
...app.auth ? { auth: {
|
|
1827
1845
|
user: app.auth.user,
|
|
@@ -1952,7 +1970,7 @@ function stackApps(workspace, manifest, plan, options) {
|
|
|
1952
1970
|
const apps = [];
|
|
1953
1971
|
const resources = new Map(plan.resources.map((r) => [r.id, r]));
|
|
1954
1972
|
for (const [id, declaration] of Object.entries(manifest)) {
|
|
1955
|
-
if (declaration.kind !== "rest-api" && declaration.kind !== "site") continue;
|
|
1973
|
+
if (declaration.kind !== "rest-api" && declaration.kind !== "websocket-api" && declaration.kind !== "site") continue;
|
|
1956
1974
|
const name = appKey(id);
|
|
1957
1975
|
const app = workspace.apps[name];
|
|
1958
1976
|
const resource = resources.get(id);
|
|
@@ -1965,10 +1983,11 @@ function stackApps(workspace, manifest, plan, options) {
|
|
|
1965
1983
|
name,
|
|
1966
1984
|
id,
|
|
1967
1985
|
kind: declaration.kind,
|
|
1986
|
+
replicas: declaration.kind === "websocket-api" ? declaration.replicas ?? 1 : 1,
|
|
1968
1987
|
path: app.path,
|
|
1969
1988
|
port: app.port,
|
|
1970
1989
|
host,
|
|
1971
|
-
url:
|
|
1990
|
+
url: `${declaration.kind === "websocket-api" ? "wss" : "https"}://${host}${options.local && options.https !== 443 ? `:${options.https}` : ""}`,
|
|
1972
1991
|
ref,
|
|
1973
1992
|
tag,
|
|
1974
1993
|
...options.images.mode === "build" ? { build: { dockerfile: `${stackDir(options.stage)}/Dockerfile.${name}` } } : {}
|
|
@@ -2094,6 +2113,10 @@ function hostOf(name, app, workspace, resource, options) {
|
|
|
2094
2113
|
if (options.local) return hostFor(resource, workspace.name);
|
|
2095
2114
|
return resolveHost(name, app, options.stage, workspace.domains, isMainFrontendApp(name, app, workspace.apps));
|
|
2096
2115
|
}
|
|
2116
|
+
/** An app's compose services, one per replica: `api`, `api-2`, `api-3`. */
|
|
2117
|
+
function replicaNames(app) {
|
|
2118
|
+
return [app.name, ...Array.from({ length: app.replicas - 1 }, (_, i) => `${app.name}-${i + 2}`)];
|
|
2119
|
+
}
|
|
2097
2120
|
/** The compose document: the infrastructure, the apps, and the edge. */
|
|
2098
2121
|
function stackFile(options) {
|
|
2099
2122
|
const { project, plan, apps } = options;
|
|
@@ -2137,27 +2160,31 @@ function stackFile(options) {
|
|
|
2137
2160
|
if (services["redis"] && options.redis) services[REDIS_SERVICE] = redisService(options.redis);
|
|
2138
2161
|
if (options.logs) services[LOGS_SERVICE] = logsService(options.logs);
|
|
2139
2162
|
if (options.backups) services[BACKUPS_SERVICE] = backupsService(options.backups, options.envFiles);
|
|
2140
|
-
for (const app of apps)
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
...
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2163
|
+
for (const app of apps) {
|
|
2164
|
+
const definition = {
|
|
2165
|
+
image: app.ref,
|
|
2166
|
+
...app.build ? { build: {
|
|
2167
|
+
...composeBuildPaths({
|
|
2168
|
+
composeDir: options.composeDir,
|
|
2169
|
+
buildRoot: options.buildRoot,
|
|
2170
|
+
workspaceRoot: options.workspaceRoot,
|
|
2171
|
+
dockerfile: app.build.dockerfile
|
|
2172
|
+
}),
|
|
2173
|
+
...app.build.args ? { args: app.build.args } : {}
|
|
2174
|
+
} } : {},
|
|
2175
|
+
restart: "unless-stopped",
|
|
2176
|
+
...app.kind !== "site" ? {
|
|
2177
|
+
env_file: [{
|
|
2178
|
+
path: `./${app.name}.env`,
|
|
2179
|
+
format: "raw"
|
|
2180
|
+
}],
|
|
2181
|
+
...infra.length ? { depends_on: Object.fromEntries(infra.map((name) => [name, HEALTHY])) } : {}
|
|
2182
|
+
} : {},
|
|
2183
|
+
healthcheck: probe(app.port, app.kind === "site" ? "/" : "/health"),
|
|
2184
|
+
...app.kind === "websocket-api" ? { ulimits: { nofile: NOFILE } } : {}
|
|
2185
|
+
};
|
|
2186
|
+
for (const name of replicaNames(app)) services[name] = { ...definition };
|
|
2187
|
+
}
|
|
2161
2188
|
for (const worker of [...options.workers, ...options.processors]) services[worker.name] = {
|
|
2162
2189
|
image: worker.ref,
|
|
2163
2190
|
...worker.build ? { build: composeBuildPaths({
|
|
@@ -2179,8 +2206,9 @@ function stackFile(options) {
|
|
|
2179
2206
|
restart: "unless-stopped",
|
|
2180
2207
|
ports: [`${options.https}:443`, `${options.http}:80`],
|
|
2181
2208
|
volumes: ["caddy-data:/data", "caddy-config:/config"],
|
|
2209
|
+
...EDGE_LIMITS,
|
|
2182
2210
|
depends_on: Object.fromEntries([
|
|
2183
|
-
...apps.
|
|
2211
|
+
...apps.flatMap(replicaNames),
|
|
2184
2212
|
...options.workers.filter((w) => w.push).map((w) => w.name),
|
|
2185
2213
|
...options.processors.map((p) => p.name)
|
|
2186
2214
|
].map((name) => [name, HEALTHY])),
|
|
@@ -2906,7 +2934,7 @@ function assertRedisClient(workspace, stack, manifest, runnables) {
|
|
|
2906
2934
|
if (!stack.plan.resources.some((r) => r.kind === "cache")) return;
|
|
2907
2935
|
const cacheKeys = Object.values(manifest).filter((d) => d.kind === "cache").flatMap((d) => d.provides ?? []);
|
|
2908
2936
|
const reachesCache = (keys) => cacheKeys.some((key) => keys?.has(key));
|
|
2909
|
-
const missing = [.../* @__PURE__ */ new Set([...stack.apps.filter((app) => app.kind === "rest-api" && reachesCache(appEnvKeys(manifest, app.name, runnables))).map((a) => a.name), ...stack.workers.filter((worker) => reachesCache(workerEnvKeys(manifest, worker.id, runnables))).map((worker) => worker.host)])].filter((name) => {
|
|
2937
|
+
const missing = [.../* @__PURE__ */ new Set([...stack.apps.filter((app) => (app.kind === "rest-api" || app.kind === "websocket-api") && reachesCache(appEnvKeys(manifest, app.name, runnables))).map((a) => a.name), ...stack.workers.filter((worker) => reachesCache(workerEnvKeys(manifest, worker.id, runnables))).map((worker) => worker.host)])].filter((name) => {
|
|
2910
2938
|
const app = workspace.apps[name];
|
|
2911
2939
|
return app && !installedFrom(join(workspace.root, app.path), "ioredis");
|
|
2912
2940
|
}).sort();
|
|
@@ -3551,7 +3579,7 @@ function currentUser() {
|
|
|
3551
3579
|
}
|
|
3552
3580
|
}
|
|
3553
3581
|
async function checkApp(ctx, app, deps, options) {
|
|
3554
|
-
const url = `${app.url}${app.kind === "site" ? "/" : "/health"}`;
|
|
3582
|
+
const url = `${app.url.replace(/^ws/, "http")}${app.kind === "site" ? "/" : "/health"}`;
|
|
3555
3583
|
let last = "not asked";
|
|
3556
3584
|
for (let attempt = 1; attempt <= deps.healthAttempts; attempt++) {
|
|
3557
3585
|
ctx.signal.throwIfAborted();
|
|
@@ -3804,4 +3832,4 @@ function composeTarget(options = {}) {
|
|
|
3804
3832
|
//#endregion
|
|
3805
3833
|
export { dockerCompose as C, sshTarget as S, parseDigests as _, edgePorts as a, dockerHost as b, edgeRef as c, composeStack as d, derivedCredentials as f, edgeAlias as g, EDGE_PROJECT as h, ComposePushNeedsBuild as i, removeEdgeRoutes as l, stackPlan as m, compose_exports as n, stackOverrideFile as o, stackDir as p, ComposePinNeedsPull as r, deployedStackSecrets as s, composeTarget as t, composeProject as u, pinnedRef as v, projectNetwork as w, sshAccess as x, composeServer as y };
|
|
3806
3834
|
|
|
3807
|
-
//# sourceMappingURL=compose-
|
|
3835
|
+
//# sourceMappingURL=compose-CIzCcsoz.mjs.map
|