@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.
Files changed (229) hide show
  1. package/dist/{EndpointGenerator-errMeldx.mjs → EndpointGenerator-B99OGzbO.mjs} +2 -2
  2. package/dist/{EndpointGenerator-errMeldx.mjs.map → EndpointGenerator-B99OGzbO.mjs.map} +1 -1
  3. package/dist/{EndpointGenerator-BGxf9jWE.cjs → EndpointGenerator-De0lknKD.cjs} +2 -2
  4. package/dist/{EndpointGenerator-BGxf9jWE.cjs.map → EndpointGenerator-De0lknKD.cjs.map} +1 -1
  5. package/dist/{GoDaddyProvider-BN1dODm9.mjs → GoDaddyProvider-BG-UdElN.mjs} +2 -2
  6. package/dist/{GoDaddyProvider-BN1dODm9.mjs.map → GoDaddyProvider-BG-UdElN.mjs.map} +1 -1
  7. package/dist/{GoDaddyProvider-BTdtqhI_.cjs → GoDaddyProvider-DnmLq7eo.cjs} +2 -2
  8. package/dist/{GoDaddyProvider-BTdtqhI_.cjs.map → GoDaddyProvider-DnmLq7eo.cjs.map} +1 -1
  9. package/dist/{LegacyStateStore-C2S8TGwx.cjs → LegacyStateStore-CeBkK9K2.cjs} +3 -3
  10. package/dist/{LegacyStateStore-C2S8TGwx.cjs.map → LegacyStateStore-CeBkK9K2.cjs.map} +1 -1
  11. package/dist/{LegacyStateStore-DgXmuG87.mjs → LegacyStateStore-DHG_4jcn.mjs} +3 -3
  12. package/dist/{LegacyStateStore-DgXmuG87.mjs.map → LegacyStateStore-DHG_4jcn.mjs.map} +1 -1
  13. package/dist/{LocalStateStore-ojY_BiMK.mjs → LocalStateStore-EenTHwr4.mjs} +2 -2
  14. package/dist/{LocalStateStore-ojY_BiMK.mjs.map → LocalStateStore-EenTHwr4.mjs.map} +1 -1
  15. package/dist/{LocalStateStore-CaJw9H-3.cjs → LocalStateStore-HRnBQFe3.cjs} +2 -2
  16. package/dist/{LocalStateStore-CaJw9H-3.cjs.map → LocalStateStore-HRnBQFe3.cjs.map} +1 -1
  17. package/dist/{OpenApiTsGenerator-cQgtxWQo.cjs → OpenApiTsGenerator-DMLzN-LU.cjs} +2 -2
  18. package/dist/{OpenApiTsGenerator-cQgtxWQo.cjs.map → OpenApiTsGenerator-DMLzN-LU.cjs.map} +1 -1
  19. package/dist/{OpenApiTsGenerator-W_HRXH1X.mjs → OpenApiTsGenerator-DNUCgkkx.mjs} +2 -2
  20. package/dist/{OpenApiTsGenerator-W_HRXH1X.mjs.map → OpenApiTsGenerator-DNUCgkkx.mjs.map} +1 -1
  21. package/dist/{S3StateStore-BqugXIcb.cjs → S3StateStore-DyLljVN1.cjs} +2 -2
  22. package/dist/{S3StateStore-BqugXIcb.cjs.map → S3StateStore-DyLljVN1.cjs.map} +1 -1
  23. package/dist/{S3StateStore-BSPkxhrx.mjs → S3StateStore-vbkyBnRB.mjs} +2 -2
  24. package/dist/{S3StateStore-BSPkxhrx.mjs.map → S3StateStore-vbkyBnRB.mjs.map} +1 -1
  25. package/dist/{SSMStateStore-B0OsuT_k.cjs → SSMStateStore-BBKlmfaU.cjs} +2 -2
  26. package/dist/{SSMStateStore-B0OsuT_k.cjs.map → SSMStateStore-BBKlmfaU.cjs.map} +1 -1
  27. package/dist/{SSMStateStore-DM85OiH0.mjs → SSMStateStore-uk2QLUgz.mjs} +2 -2
  28. package/dist/{SSMStateStore-DM85OiH0.mjs.map → SSMStateStore-uk2QLUgz.mjs.map} +1 -1
  29. package/dist/{SubscriberGenerator-ocQ2yj0K.mjs → SubscriberGenerator-0ruEmYXj.mjs} +4 -62
  30. package/dist/SubscriberGenerator-0ruEmYXj.mjs.map +1 -0
  31. package/dist/{SubscriberGenerator-BDUp7OeY.cjs → SubscriberGenerator-CPjbWEOI.cjs} +3 -91
  32. package/dist/SubscriberGenerator-CPjbWEOI.cjs.map +1 -0
  33. package/dist/{add-CrxvmSpq.cjs → add-CH7-9AHI.cjs} +7 -7
  34. package/dist/add-CH7-9AHI.cjs.map +1 -0
  35. package/dist/{add-C7ZBXIzM.mjs → add-CgyyN6aF.mjs} +7 -7
  36. package/dist/add-CgyyN6aF.mjs.map +1 -0
  37. package/dist/{bundler-DVUXW95p.cjs → bundler-BtAkF9wb.cjs} +5 -5
  38. package/dist/{bundler-DVUXW95p.cjs.map → bundler-BtAkF9wb.cjs.map} +1 -1
  39. package/dist/{bundler-DpZ9uBGN.mjs → bundler-DqHozK8W.mjs} +5 -5
  40. package/dist/{bundler-DpZ9uBGN.mjs.map → bundler-DqHozK8W.mjs.map} +1 -1
  41. package/dist/{cli-BMRhE6cZ.cjs → cli-D08bMg7m.cjs} +3 -3
  42. package/dist/{cli-BMRhE6cZ.cjs.map → cli-D08bMg7m.cjs.map} +1 -1
  43. package/dist/{cli-BWfYyy1k.mjs → cli-D_BQkb4B.mjs} +3 -3
  44. package/dist/{cli-BWfYyy1k.mjs.map → cli-D_BQkb4B.mjs.map} +1 -1
  45. package/dist/{compose-Bqcy0lqo.cjs → compose-BK9s_2Qe.cjs} +73 -44
  46. package/dist/compose-BK9s_2Qe.cjs.map +1 -0
  47. package/dist/{compose-BFmdLig3.mjs → compose-CIzCcsoz.mjs} +72 -43
  48. package/dist/compose-CIzCcsoz.mjs.map +1 -0
  49. package/dist/{config-_y1FGBWR.d.mts → config-B8fXmuK0.d.cts} +3 -3
  50. package/dist/{config-CdytFgSR.d.cts.map → config-B8fXmuK0.d.cts.map} +1 -1
  51. package/dist/{config-CdytFgSR.d.cts → config-CRRxZMk7.d.mts} +3 -3
  52. package/dist/{config-_y1FGBWR.d.mts.map → config-CRRxZMk7.d.mts.map} +1 -1
  53. package/dist/config.cjs +2 -2
  54. package/dist/config.d.cts +3 -3
  55. package/dist/config.d.mts +3 -3
  56. package/dist/config.mjs +2 -2
  57. package/dist/{credentialSchemas-DFxvGEwa.cjs → credentialSchemas-CM0rxWmS.cjs} +2 -2
  58. package/dist/{credentialSchemas-DFxvGEwa.cjs.map → credentialSchemas-CM0rxWmS.cjs.map} +1 -1
  59. package/dist/{credentialSchemas-DaMpt-Dx.mjs → credentialSchemas-DPOGqOrU.mjs} +2 -2
  60. package/dist/{credentialSchemas-DaMpt-Dx.mjs.map → credentialSchemas-DPOGqOrU.mjs.map} +1 -1
  61. package/dist/{databases-BPOgTn1u.mjs → databases-6GD0tI2F.mjs} +65 -3
  62. package/dist/databases-6GD0tI2F.mjs.map +1 -0
  63. package/dist/{databases-fOaoBInm.cjs → databases-CuVGf7-M.cjs} +75 -1
  64. package/dist/databases-CuVGf7-M.cjs.map +1 -0
  65. package/dist/deploy/public.cjs +8 -8
  66. package/dist/deploy/public.d.cts +3 -3
  67. package/dist/deploy/public.d.cts.map +1 -1
  68. package/dist/deploy/public.d.mts +3 -3
  69. package/dist/deploy/public.d.mts.map +1 -1
  70. package/dist/deploy/public.mjs +8 -8
  71. package/dist/{deploy-DVrNjX1X.cjs → deploy-A_fzSa59.cjs} +10 -10
  72. package/dist/deploy-A_fzSa59.cjs.map +1 -0
  73. package/dist/{deploy-D8pUA9Y0.mjs → deploy-BVf6c_h8.mjs} +10 -10
  74. package/dist/deploy-BVf6c_h8.mjs.map +1 -0
  75. package/dist/{derive-DAbo49sm.cjs → derive-BtGidITm.cjs} +7 -7
  76. package/dist/derive-BtGidITm.cjs.map +1 -0
  77. package/dist/{derive-B4vDpzgP.mjs → derive-Dew0QoGe.mjs} +7 -7
  78. package/dist/derive-Dew0QoGe.mjs.map +1 -0
  79. package/dist/{discover-DL6h-J97.cjs → discover-DEOspD9M.cjs} +12 -1
  80. package/dist/discover-DEOspD9M.cjs.map +1 -0
  81. package/dist/{discover-CzGM5P3p.mjs → discover-DOhYSKY_.mjs} +12 -1
  82. package/dist/discover-DOhYSKY_.mjs.map +1 -0
  83. package/dist/{dokploy-TtK6Zyl3.cjs → dokploy-CshlFRwr.cjs} +2 -2
  84. package/dist/{dokploy-TtK6Zyl3.cjs.map → dokploy-CshlFRwr.cjs.map} +1 -1
  85. package/dist/{dokploy-CzDGNB6A.mjs → dokploy-DOndleTd.mjs} +2 -2
  86. package/dist/{dokploy-CzDGNB6A.mjs.map → dokploy-DOndleTd.mjs.map} +1 -1
  87. package/dist/{drivers-L29WvE95.cjs → drivers-C47nm-wB.cjs} +91 -4
  88. package/dist/drivers-C47nm-wB.cjs.map +1 -0
  89. package/dist/{drivers-C-VqMtld.mjs → drivers-CDjpjakg.mjs} +60 -3
  90. package/dist/drivers-CDjpjakg.mjs.map +1 -0
  91. package/dist/{eas-D3clzkni.cjs → eas-ApfPYR4-.cjs} +3 -3
  92. package/dist/{eas-D3clzkni.cjs.map → eas-ApfPYR4-.cjs.map} +1 -1
  93. package/dist/{eas-DaobzDks.mjs → eas-Dlr1Lw56.mjs} +3 -3
  94. package/dist/{eas-DaobzDks.mjs.map → eas-Dlr1Lw56.mjs.map} +1 -1
  95. package/dist/{encryption-DV31gEY8.mjs → encryption-D0tWRvy_.mjs} +2 -2
  96. package/dist/{encryption-DV31gEY8.mjs.map → encryption-D0tWRvy_.mjs.map} +1 -1
  97. package/dist/{encryption-DBkIFiR2.cjs → encryption-SGWvnBxV.cjs} +2 -2
  98. package/dist/{encryption-DBkIFiR2.cjs.map → encryption-SGWvnBxV.cjs.map} +1 -1
  99. package/dist/{engine-CuZUGbEh.cjs → engine-CYu4wavP.cjs} +9 -7
  100. package/dist/engine-CYu4wavP.cjs.map +1 -0
  101. package/dist/{engine-CFOR9h6X.mjs → engine-DKz1NYDX.mjs} +9 -7
  102. package/dist/engine-DKz1NYDX.mjs.map +1 -0
  103. package/dist/{github-CsvtWSBW.cjs → github-CxWaWQtW.cjs} +5 -5
  104. package/dist/{github-CsvtWSBW.cjs.map → github-CxWaWQtW.cjs.map} +1 -1
  105. package/dist/{github-Nep8pI4_.mjs → github-VQaj8gLE.mjs} +5 -5
  106. package/dist/{github-Nep8pI4_.mjs.map → github-VQaj8gLE.mjs.map} +1 -1
  107. package/dist/{googlePlay-C-UfBXJU.cjs → googlePlay-4KVtZ89D.cjs} +3 -3
  108. package/dist/{googlePlay-C-UfBXJU.cjs.map → googlePlay-4KVtZ89D.cjs.map} +1 -1
  109. package/dist/{googlePlay-lF7Atm_N.mjs → googlePlay-Nqc4EAiC.mjs} +3 -3
  110. package/dist/{googlePlay-lF7Atm_N.mjs.map → googlePlay-Nqc4EAiC.mjs.map} +1 -1
  111. package/dist/{index-DrkV7N5w.d.mts → index-Cu8eIwUW.d.mts} +2 -2
  112. package/dist/{index-DrkV7N5w.d.mts.map → index-Cu8eIwUW.d.mts.map} +1 -1
  113. package/dist/{index-yaXZ9m-J.d.cts → index-Dx93n3Ur.d.cts} +2 -2
  114. package/dist/{index-yaXZ9m-J.d.cts.map → index-Dx93n3Ur.d.cts.map} +1 -1
  115. package/dist/index.cjs +105 -76
  116. package/dist/index.cjs.map +1 -1
  117. package/dist/index.mjs +104 -75
  118. package/dist/index.mjs.map +1 -1
  119. package/dist/{migrate-hlNKNWmg.cjs → migrate-BQPRclv2.cjs} +2 -2
  120. package/dist/{migrate-hlNKNWmg.cjs.map → migrate-BQPRclv2.cjs.map} +1 -1
  121. package/dist/{migrate-_sBX0pve.mjs → migrate-C7exqXTD.mjs} +2 -2
  122. package/dist/{migrate-_sBX0pve.mjs.map → migrate-C7exqXTD.mjs.map} +1 -1
  123. package/dist/{migrate-NfbPVhi9.mjs → migrate-DQPEUiFC.mjs} +7 -5
  124. package/dist/migrate-DQPEUiFC.mjs.map +1 -0
  125. package/dist/{migrate-Dp3GhFnf.cjs → migrate-DTv6LHux.cjs} +7 -5
  126. package/dist/migrate-DTv6LHux.cjs.map +1 -0
  127. package/dist/openapi.cjs +3 -3
  128. package/dist/openapi.d.cts +1 -1
  129. package/dist/openapi.d.mts +1 -1
  130. package/dist/openapi.mjs +3 -3
  131. package/dist/{publish-ZOo4xEuZ.cjs → publish-CgwqwKDs.cjs} +2 -2
  132. package/dist/{publish-ZOo4xEuZ.cjs.map → publish-CgwqwKDs.cjs.map} +1 -1
  133. package/dist/{publish-BuUVaZVy.mjs → publish-VYt4xOOc.mjs} +2 -2
  134. package/dist/{publish-BuUVaZVy.mjs.map → publish-VYt4xOOc.mjs.map} +1 -1
  135. package/dist/{ready-Ca883OvY.mjs → ready-BwtLriAF.mjs} +6 -6
  136. package/dist/{ready-Ca883OvY.mjs.map → ready-BwtLriAF.mjs.map} +1 -1
  137. package/dist/{ready-qnqp6JAY.cjs → ready-Cj4pI0dw.cjs} +6 -6
  138. package/dist/{ready-qnqp6JAY.cjs.map → ready-Cj4pI0dw.cjs.map} +1 -1
  139. package/dist/reconcile/public.cjs +1 -1
  140. package/dist/reconcile/public.d.cts +1 -1
  141. package/dist/reconcile/public.d.mts +1 -1
  142. package/dist/reconcile/public.mjs +1 -1
  143. package/dist/{resolve-C9QqOl5t.cjs → resolve-C-W3kZM7.cjs} +4 -4
  144. package/dist/{resolve-C9QqOl5t.cjs.map → resolve-C-W3kZM7.cjs.map} +1 -1
  145. package/dist/{resolve-BCU9pYDx.mjs → resolve-CCVCc43b.mjs} +4 -4
  146. package/dist/{resolve-BCU9pYDx.mjs.map → resolve-CCVCc43b.mjs.map} +1 -1
  147. package/dist/{rollback-CTWdDBgB.cjs → rollback-CdBj1Boy.cjs} +4 -4
  148. package/dist/{rollback-CTWdDBgB.cjs.map → rollback-CdBj1Boy.cjs.map} +1 -1
  149. package/dist/{rollback-CWyyTQ0B.mjs → rollback-dUShCpZu.mjs} +4 -4
  150. package/dist/{rollback-CWyyTQ0B.mjs.map → rollback-dUShCpZu.mjs.map} +1 -1
  151. package/dist/{runtime-DCkfI2E7.d.mts → runtime-C_1PteGG.d.cts} +2 -2
  152. package/dist/{runtime-DCkfI2E7.d.mts.map → runtime-C_1PteGG.d.cts.map} +1 -1
  153. package/dist/{runtime-Ie4znWIB.d.cts → runtime-jjB2e3-M.d.mts} +2 -2
  154. package/dist/{runtime-Ie4znWIB.d.cts.map → runtime-jjB2e3-M.d.mts.map} +1 -1
  155. package/dist/sandbox/credentials-worker.cjs +2 -2
  156. package/dist/sandbox/credentials-worker.mjs +2 -2
  157. package/dist/sandbox/discover-worker.cjs +1 -1
  158. package/dist/sandbox/discover-worker.mjs +1 -1
  159. package/dist/sandbox/migrate-worker.cjs +5 -4
  160. package/dist/sandbox/migrate-worker.cjs.map +1 -1
  161. package/dist/sandbox/migrate-worker.mjs +5 -4
  162. package/dist/sandbox/migrate-worker.mjs.map +1 -1
  163. package/dist/{seeds-CK7w79VC.mjs → seeds-BX9pskrU.mjs} +67 -27
  164. package/dist/seeds-BX9pskrU.mjs.map +1 -0
  165. package/dist/{seeds-CPEcmoPn.cjs → seeds-sMVADbkg.cjs} +74 -34
  166. package/dist/seeds-sMVADbkg.cjs.map +1 -0
  167. package/dist/{serverSetup-C6t6Vtt7.cjs → serverSetup-4avavig6.cjs} +25 -5
  168. package/dist/serverSetup-4avavig6.cjs.map +1 -0
  169. package/dist/{serverSetup-BAPNuNEX.mjs → serverSetup-BvHpm7QD.mjs} +25 -5
  170. package/dist/serverSetup-BvHpm7QD.mjs.map +1 -0
  171. package/dist/{sniffer-DdX_WN_-.cjs → sniffer-DWLala8l.cjs} +7 -7
  172. package/dist/{sniffer-DdX_WN_-.cjs.map → sniffer-DWLala8l.cjs.map} +1 -1
  173. package/dist/{sniffer-g9v7cqDN.mjs → sniffer-XnAnEbuI.mjs} +7 -7
  174. package/dist/{sniffer-g9v7cqDN.mjs.map → sniffer-XnAnEbuI.mjs.map} +1 -1
  175. package/dist/{snsSubscriptions-BmYeeTH8.mjs → snsSubscriptions-BxLJQH4u.mjs} +3 -3
  176. package/dist/{snsSubscriptions-BmYeeTH8.mjs.map → snsSubscriptions-BxLJQH4u.mjs.map} +1 -1
  177. package/dist/{snsSubscriptions-5Cqww8S7.cjs → snsSubscriptions-f_z4PSFb.cjs} +3 -3
  178. package/dist/{snsSubscriptions-5Cqww8S7.cjs.map → snsSubscriptions-f_z4PSFb.cjs.map} +1 -1
  179. package/dist/{sst-lEkBwzGc.cjs → sst-DmVJRu5l.cjs} +2 -2
  180. package/dist/{sst-lEkBwzGc.cjs.map → sst-DmVJRu5l.cjs.map} +1 -1
  181. package/dist/{sst-CTqZZl1_.mjs → sst-fop6uZ25.mjs} +2 -2
  182. package/dist/{sst-CTqZZl1_.mjs.map → sst-fop6uZ25.mjs.map} +1 -1
  183. package/dist/{stage-CUE5pMmw.cjs → stage-ZWOE0oLB.cjs} +5 -5
  184. package/dist/{stage-CUE5pMmw.cjs.map → stage-ZWOE0oLB.cjs.map} +1 -1
  185. package/dist/{stage-C-I2dVw1.mjs → stage-mta618Oy.mjs} +5 -5
  186. package/dist/{stage-C-I2dVw1.mjs.map → stage-mta618Oy.mjs.map} +1 -1
  187. package/dist/target/public.cjs +1 -1
  188. package/dist/target/public.d.cts +2 -2
  189. package/dist/target/public.d.mts +2 -2
  190. package/dist/target/public.mjs +1 -1
  191. package/dist/{terminal-bqY33lpN.mjs → terminal-CebFDhWQ.mjs} +2 -2
  192. package/dist/{terminal-bqY33lpN.mjs.map → terminal-CebFDhWQ.mjs.map} +1 -1
  193. package/dist/{terminal-PKhPAajN.cjs → terminal-DBwedwSS.cjs} +2 -2
  194. package/dist/{terminal-PKhPAajN.cjs.map → terminal-DBwedwSS.cjs.map} +1 -1
  195. package/dist/{types-Bmjs4jZV.d.mts → types-DLANxOpy.d.mts} +7 -1
  196. package/dist/types-DLANxOpy.d.mts.map +1 -0
  197. package/dist/{types-D0IsQxES.d.cts → types-SEHMr6Aw.d.cts} +7 -1
  198. package/dist/types-SEHMr6Aw.d.cts.map +1 -0
  199. package/dist/vitest.cjs +1 -1
  200. package/dist/vitest.mjs +1 -1
  201. package/dist/workspace/index.d.cts +2 -2
  202. package/dist/workspace/index.d.mts +2 -2
  203. package/package.json +15 -15
  204. package/dist/SubscriberGenerator-BDUp7OeY.cjs.map +0 -1
  205. package/dist/SubscriberGenerator-ocQ2yj0K.mjs.map +0 -1
  206. package/dist/add-C7ZBXIzM.mjs.map +0 -1
  207. package/dist/add-CrxvmSpq.cjs.map +0 -1
  208. package/dist/compose-BFmdLig3.mjs.map +0 -1
  209. package/dist/compose-Bqcy0lqo.cjs.map +0 -1
  210. package/dist/databases-BPOgTn1u.mjs.map +0 -1
  211. package/dist/databases-fOaoBInm.cjs.map +0 -1
  212. package/dist/deploy-D8pUA9Y0.mjs.map +0 -1
  213. package/dist/deploy-DVrNjX1X.cjs.map +0 -1
  214. package/dist/derive-B4vDpzgP.mjs.map +0 -1
  215. package/dist/derive-DAbo49sm.cjs.map +0 -1
  216. package/dist/discover-CzGM5P3p.mjs.map +0 -1
  217. package/dist/discover-DL6h-J97.cjs.map +0 -1
  218. package/dist/drivers-C-VqMtld.mjs.map +0 -1
  219. package/dist/drivers-L29WvE95.cjs.map +0 -1
  220. package/dist/engine-CFOR9h6X.mjs.map +0 -1
  221. package/dist/engine-CuZUGbEh.cjs.map +0 -1
  222. package/dist/migrate-Dp3GhFnf.cjs.map +0 -1
  223. package/dist/migrate-NfbPVhi9.mjs.map +0 -1
  224. package/dist/seeds-CK7w79VC.mjs.map +0 -1
  225. package/dist/seeds-CPEcmoPn.cjs.map +0 -1
  226. package/dist/serverSetup-BAPNuNEX.mjs.map +0 -1
  227. package/dist/serverSetup-C6t6Vtt7.cjs.map +0 -1
  228. package/dist/types-Bmjs4jZV.d.mts.map +0 -1
  229. package/dist/types-D0IsQxES.d.cts.map +0 -1
@@ -2,13 +2,14 @@ import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
2
  import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
3
3
  import { s as run$1, x as gkmHome } from "./credentials-DpfnUvIR.mjs";
4
4
  import { B as LOGS_PORT, H as provisioningOf, R as stageSampleRate, U as stageProvider, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, ct as UnknownSecretsStoreProvider, ft as SERVER_IPV4_KEY, ht as isReservedStageKey, j as TEST_STAGE, pt as SERVER_IPV6_KEY, ut as s3SecretsLocation, v as getPublicEnvPrefix, z as telemetryEnv } from "./workspace-DBHF9Gba.mjs";
5
- import { t as appKey } from "./derive-B4vDpzgP.mjs";
6
- import { c as DEFAULT_CACHE, d as holdsEveryCache, i as readFakes, l as DEFAULT_EVENTS$1, o as objectsRoute, r as readCredentialFakes, t as SubscriberGenerator, u as DEFAULT_STORAGE } from "./SubscriberGenerator-ocQ2yj0K.mjs";
5
+ import { t as appKey } from "./derive-Dew0QoGe.mjs";
6
+ import { c as DEFAULT_STORAGE, l as holdsEveryCache, o as DEFAULT_CACHE, s as DEFAULT_EVENTS$1 } from "./drivers-CDjpjakg.mjs";
7
7
  import { n as deployIdentity } from "./identity-CBXr4wNi.mjs";
8
- import { a as startTelemetryCode, n as runtimeFor, s as writeTelemetryModule, u as telemetryArgs } from "./EndpointGenerator-errMeldx.mjs";
9
- import { d as ConstructGenerator, f as output, h as eventsEdgeBucket, i as discover } from "./discover-CzGM5P3p.mjs";
8
+ import { a as startTelemetryCode, n as runtimeFor, s as writeTelemetryModule, u as telemetryArgs } from "./EndpointGenerator-B99OGzbO.mjs";
9
+ import { d as ConstructGenerator, f as output, h as eventsEdgeBucket, i as discover } from "./discover-DOhYSKY_.mjs";
10
10
  import { ConfigNotFound, NotInAnApp, loadWorkspaceAppInfo, loadWorkspaceConfig } from "./config.mjs";
11
- import { c as runtimeOf } from "./resolve-BCU9pYDx.mjs";
11
+ import { i as readFakes, o as objectsRoute, r as readCredentialFakes, t as SubscriberGenerator } from "./SubscriberGenerator-0ruEmYXj.mjs";
12
+ import { c as runtimeOf } from "./resolve-CCVCc43b.mjs";
12
13
  import { basename, dirname, isAbsolute, join, parse, relative, resolve, sep } from "node:path";
13
14
  import { constants, existsSync, readFileSync } from "node:fs";
14
15
  import { appendFile, chmod, copyFile, mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
@@ -541,6 +542,7 @@ function processorsDevRoute(fileServerId) {
541
542
  const EDGE_KINDS = {
542
543
  "file-server": true,
543
544
  "rest-api": true,
545
+ "websocket-api": true,
544
546
  site: true
545
547
  };
546
548
  /**
@@ -887,7 +889,7 @@ function telemetryOf(manifest, id) {
887
889
  const declaration = manifest[id];
888
890
  if (!declaration) return void 0;
889
891
  if (declaration.kind === "worker" || declaration.kind === "file-server") return nodeOf(manifest, declaration.telemetry);
890
- if (declaration.kind !== "rest-api") return void 0;
892
+ if (declaration.kind !== "rest-api" && declaration.kind !== "websocket-api") return void 0;
891
893
  return nodeOf(manifest, declaration.telemetry);
892
894
  }
893
895
  /**
@@ -895,12 +897,12 @@ function telemetryOf(manifest, id) {
895
897
  * undefined for a site, an app without one, or one with no edge.
896
898
  */
897
899
  function appTelemetry(manifest, appName) {
898
- const id = Object.entries(manifest).find(([id, d]) => d.kind === "rest-api" && appKey(id) === appName)?.[0];
900
+ const id = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "websocket-api") && appKey(id) === appName)?.[0];
899
901
  return id ? telemetryOf(manifest, id) : void 0;
900
902
  }
901
903
  /** Whether any process in the manifest emits through a `Telemetry` node. */
902
904
  function usesTelemetry(manifest) {
903
- return Object.entries(manifest).some(([id, d]) => (d.kind === "rest-api" || d.kind === "worker" || d.kind === "file-server") && telemetryOf(manifest, id) !== void 0);
905
+ 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);
904
906
  }
905
907
  /**
906
908
  * One process's share of the telemetry keys a stage resolved: all of them,
@@ -974,7 +976,8 @@ const CONTAINERS = {
974
976
  "database-schema": "postgres",
975
977
  objects: "minio",
976
978
  "file-server": "caddy",
977
- email: "mailpit"
979
+ email: "mailpit",
980
+ "websocket-api": "redis"
978
981
  };
979
982
  /**
980
983
  * The container a cache backend needs locally.
@@ -1154,7 +1157,7 @@ function planFor(manifest, stage, order, options = {}) {
1154
1157
  name: resourceName(id, declaration.kind, stage, options.localStage),
1155
1158
  envKey: providedKeyFor(id, declaration.kind, ROLES[declaration.kind] ?? "url"),
1156
1159
  provisions: PROVISIONS[declaration.kind] === true,
1157
- ...declaration.kind === "rest-api" ? { callers: dependentsOf(manifest, id) } : {},
1160
+ ...declaration.kind === "rest-api" || declaration.kind === "websocket-api" ? { callers: dependentsOf(manifest, id) } : {},
1158
1161
  ...declaration.kind === "site" ? { publicEnv: publicEnvFor(declaration, manifest) } : {},
1159
1162
  ...declaration.kind === "mobile-app" ? {
1160
1163
  publicEnv: publicEnvFor(declaration, manifest),
@@ -1163,7 +1166,7 @@ function planFor(manifest, stage, order, options = {}) {
1163
1166
  ...declaration.kind === "file-server" && declaration.open?.length ? { open: declaration.open } : {},
1164
1167
  ...declaration.kind === "file-server" && declaration.processors?.length ? { processors: [...new Set(declaration.processors.map((p) => p.prefix))].sort() } : {},
1165
1168
  ...declaration.kind === "objects" && bucketExpiry(manifest, id) ? { expire: bucketExpiry(manifest, id) } : {},
1166
- ...(declaration.kind === "rest-api" || declaration.kind === "site") && declaration.subdomain ? { subdomain: declaration.subdomain } : {},
1169
+ ...(declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "site") && declaration.subdomain ? { subdomain: declaration.subdomain } : {},
1167
1170
  ...fake ? { fake: {
1168
1171
  key: fake.key,
1169
1172
  credentials: fake.credentials
@@ -1330,6 +1333,12 @@ function envFor(plan, options) {
1330
1333
  ...options.lanAddress ? { lanAddress: options.lanAddress } : {},
1331
1334
  ...options.metroPorts ? { metroPorts: options.metroPorts } : {}
1332
1335
  }));
1336
+ if (resource.kind === "websocket-api") {
1337
+ const origins = surfaceEnv(resource, url, resolved)[provideKey(resource.id, "trustedOrigins")];
1338
+ if (origins !== void 0) env[provideKey(resource.id, "trustedOrigins")] = origins;
1339
+ const publisher = webSocketPublisher(resource, options.ports, options.project ?? "", credential);
1340
+ if (publisher) env[provideKey(resource.id, "publisherConnectionString")] = publisher;
1341
+ }
1333
1342
  if (url) env[resource.envKey] = url;
1334
1343
  if (isDatabase(resource.kind) && resource.roles !== false) {
1335
1344
  const owner = ownerUrl(resource, plan, options.ports, options.project ?? "", credential);
@@ -1422,10 +1431,27 @@ function surfaceEnv(resource, url, resolved = {}, local = {}) {
1422
1431
  ...device ? { [provideKey(resource.id, "deviceUrl")]: device } : {}
1423
1432
  };
1424
1433
  }
1425
- /** An address reduced to the origin a browser compares against. */
1434
+ /**
1435
+ * Where a WebSocket surface's publisher meets its sockets: the local Redis,
1436
+ * on channels named for the project and the surface, so two projects sharing
1437
+ * one Redis never see each other's frames.
1438
+ */
1439
+ function webSocketPublisher(resource, ports, project, credential) {
1440
+ const port = ports[primaryPortKey("redis")];
1441
+ if (port === void 0) return void 0;
1442
+ const channel = encodeURIComponent(`gkm:ws:${project ? `${project}:` : ""}${resource.id}`);
1443
+ return `redis://:${encodeURIComponent(credential.containers.redis.password)}@${LOCAL_HOST}:${port}?channel=${channel}`;
1444
+ }
1445
+ /**
1446
+ * An address reduced to the origin a browser compares against.
1447
+ *
1448
+ * A WebSocket surface's address is `wss://`, but its host is served over
1449
+ * HTTPS like any other: its origin is that one, and a non-web scheme among the
1450
+ * origins means a mobile app to whoever reads the list.
1451
+ */
1426
1452
  function originOf(address) {
1427
1453
  try {
1428
- return new URL(address).origin;
1454
+ return new URL(address.replace(/^ws(s?):/, "http$1:")).origin;
1429
1455
  } catch {
1430
1456
  return;
1431
1457
  }
@@ -1513,6 +1539,11 @@ function urlFor(resource, plan, ports, project, addresses, credential) {
1513
1539
  const edge = plan.containers.includes("caddy") ? ports[primaryPortKey("caddy")] : void 0;
1514
1540
  return address && edge !== void 0 ? `https://${hostFor$1(resource, project)}:${edge}` : address;
1515
1541
  }
1542
+ if (resource.kind === "websocket-api") {
1543
+ const address = addresses?.[resource.id];
1544
+ const edge = plan.containers.includes("caddy") ? ports[primaryPortKey("caddy")] : void 0;
1545
+ return address && edge !== void 0 ? `wss://${hostFor$1(resource, project)}:${edge}` : address?.replace(/^http/, "ws");
1546
+ }
1516
1547
  if (!resource.container) return void 0;
1517
1548
  const port = ports[primaryPortKey(resource.container)];
1518
1549
  if (port === void 0) return void 0;
@@ -1785,11 +1816,14 @@ var RedisPasswordMissing = class extends GkmError {
1785
1816
  }
1786
1817
  };
1787
1818
  /**
1788
- * Whether a stage's stack runs Redis: a cache is declared and the stage's
1789
- * secrets do not set the URL of every one.
1819
+ * Whether a stage's stack runs Redis: a cache or a WebSocket surface is
1820
+ * declared and the stage's secrets do not set the URL of every one.
1790
1821
  */
1791
1822
  function runsRedis(manifest, custom) {
1792
- return Object.values(manifest).some((declaration) => declaration?.kind === "cache" && (declaration.provides ?? []).some((key) => custom[key] === void 0));
1823
+ return Object.values(manifest).some((declaration) => {
1824
+ if (declaration?.kind === "cache") return (declaration.provides ?? []).some((key) => custom[key] === void 0);
1825
+ return declaration?.kind === "websocket-api" && custom[provideKey(declaration.id, "publisherConnectionString")] === void 0;
1826
+ });
1793
1827
  }
1794
1828
  /** A password: 256 random bits, URL-safe, so it sits in a URL unescaped. */
1795
1829
  function generateRedisPassword() {
@@ -1826,7 +1860,8 @@ function withRedisPassword(secrets) {
1826
1860
  function stackRedis(options) {
1827
1861
  const { plan, stage, local, custom } = options;
1828
1862
  const caches = plan.resources.filter((r) => r.kind === "cache" && custom[r.envKey] === void 0).sort((a, b) => a.id.localeCompare(b.id));
1829
- if (caches.length === 0) return void 0;
1863
+ const publishers = plan.resources.filter((r) => r.kind === "websocket-api").map((r) => provideKey(r.id, "publisherConnectionString")).filter((key) => custom[key] === void 0);
1864
+ if (caches.length === 0 && publishers.length === 0) return void 0;
1830
1865
  const set = custom[REDIS_PASSWORD_KEY];
1831
1866
  const password = set ?? (local ? options.localPassword : void 0);
1832
1867
  if (!password) throw new RedisPasswordMissing(stage);
@@ -1834,7 +1869,7 @@ function stackRedis(options) {
1834
1869
  return {
1835
1870
  password,
1836
1871
  passwordFromSecrets: Boolean(set),
1837
- urls: Object.fromEntries(caches.map((cache, index) => [cache.envKey, `redis://:${auth}@${REDIS_SERVICE}:${REDIS_PORT}/${index}`])),
1872
+ 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}`])]),
1838
1873
  env: {
1839
1874
  [REDIS_PASSWORD_KEY]: password,
1840
1875
  REDISCLI_AUTH: password
@@ -2959,11 +2994,11 @@ function processorUnits(workspace, manifest) {
2959
2994
  /** The backend apps whose builds generate a server, each where it lives. */
2960
2995
  function hostApps(workspace, manifest) {
2961
2996
  return Object.entries(workspace.apps).filter(([, app]) => app.type === "backend" && !app.entry).map(([name, app]) => {
2962
- const surface = Object.entries(manifest).find(([id, d]) => d.kind === "rest-api" && appKey(id) === name)?.[1];
2997
+ const surface = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "websocket-api") && appKey(id) === name)?.[1];
2963
2998
  return {
2964
2999
  name,
2965
3000
  root: isAbsolute(app.path) ? app.path : join(workspace.root, app.path),
2966
- generated: !(surface?.kind === "rest-api" && surface.endpoints.length > 0)
3001
+ generated: !(surface?.kind === "websocket-api" || surface?.kind === "rest-api" && surface.endpoints.length > 0)
2967
3002
  };
2968
3003
  }).sort((a, b) => a.name.localeCompare(b.name));
2969
3004
  }
@@ -6151,7 +6186,7 @@ function processorAddresses(workspace, manifest) {
6151
6186
  function surfaceAddresses(workspace, manifest, at = (_app, port) => localAddress(port)) {
6152
6187
  const addresses = {};
6153
6188
  for (const [id, declaration] of Object.entries(manifest)) {
6154
- if (declaration.kind !== "rest-api" && declaration.kind !== "site") continue;
6189
+ if (declaration.kind !== "rest-api" && declaration.kind !== "websocket-api" && declaration.kind !== "site") continue;
6155
6190
  const host = appKey(id);
6156
6191
  const port = workspace.apps[host]?.port;
6157
6192
  if (port) addresses[id] = at(host, port);
@@ -6276,7 +6311,7 @@ function networkEnv(plan, options, hostOf = (container) => container) {
6276
6311
  * port.
6277
6312
  */
6278
6313
  function appEnvKeys(manifest, appName, runnables = {}) {
6279
- const entry = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "site" || d.kind === "mobile-app") && appKey(id) === appName);
6314
+ const entry = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "websocket-api" || d.kind === "site" || d.kind === "mobile-app") && appKey(id) === appName);
6280
6315
  if (!entry) return void 0;
6281
6316
  const [id, declaration] = entry;
6282
6317
  const keys = /* @__PURE__ */ new Set([
@@ -6284,7 +6319,7 @@ function appEnvKeys(manifest, appName, runnables = {}) {
6284
6319
  ...declaration.requires ?? [],
6285
6320
  ...declaration.kind === "rest-api" ? declaration.endpoints.flatMap((endpoint) => endpoint.requires ?? []) : []
6286
6321
  ]);
6287
- addEdgeKeys(manifest, [...dependenciesOf(declaration).map((edge) => edge.target), ...runnables[id] ?? []], keys);
6322
+ addEdgeKeys(manifest, [...dependenciesOf(declaration).map((edge) => edge.target), ...runnables[id] ?? []], keys, declaration.kind === "site" || declaration.kind === "mobile-app");
6288
6323
  if (declaration.kind === "site" || declaration.kind === "mobile-app") {
6289
6324
  for (const key of TELEMETRY_KEYS) keys.delete(key);
6290
6325
  for (const key of Object.keys(publicEnvFor(declaration, manifest))) keys.add(key);
@@ -6326,7 +6361,7 @@ function processorEnvKeys(manifest, fileServerId, runnables = {}) {
6326
6361
  ], keys);
6327
6362
  return keys;
6328
6363
  }
6329
- function addEdgeKeys(manifest, edges, keys) {
6364
+ function addEdgeKeys(manifest, edges, keys, client = false) {
6330
6365
  for (const id of edges) {
6331
6366
  const bucket = eventsEdgeBucket(id);
6332
6367
  if (bucket) {
@@ -6342,6 +6377,11 @@ function addEdgeKeys(manifest, edges, keys) {
6342
6377
  keys.add(provideKey(id, "url"));
6343
6378
  continue;
6344
6379
  }
6380
+ if (target.kind === "websocket-api") {
6381
+ keys.add(provideKey(id, "url"));
6382
+ if (!client) keys.add(provideKey(id, "publisherConnectionString"));
6383
+ continue;
6384
+ }
6345
6385
  for (const key of target.provides ?? []) keys.add(key);
6346
6386
  if (target.kind === "queue" || target.kind === "topic") keys.add("EVENT_PUBLISHER_CONNECTION_STRING");
6347
6387
  if (target.kind === "objects") {
@@ -6572,7 +6612,7 @@ function stageServiceDeclarations(input) {
6572
6612
  };
6573
6613
  for (const [id, declaration] of Object.entries(manifest)) {
6574
6614
  const name = appKey(id);
6575
- if (declaration.kind === "rest-api" || declaration.kind === "site" || declaration.kind === "mobile-app") read(name, appEnvKeys(manifest, name, runnables) ?? []);
6615
+ if (declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "site" || declaration.kind === "mobile-app") read(name, appEnvKeys(manifest, name, runnables) ?? []);
6576
6616
  if (declaration.kind === "site") read(name, Object.values(publicEnvFor(declaration, manifest)));
6577
6617
  if (declaration.kind === "worker") read(name, workerEnvKeys(manifest, id, runnables) ?? []);
6578
6618
  }
@@ -8283,7 +8323,7 @@ async function createDnsProvider(options) {
8283
8323
  });
8284
8324
  }
8285
8325
  if (provider === "godaddy") {
8286
- const { GoDaddyProvider } = await import("./GoDaddyProvider-BN1dODm9.mjs");
8326
+ const { GoDaddyProvider } = await import("./GoDaddyProvider-BG-UdElN.mjs");
8287
8327
  return new GoDaddyProvider(options.godaddy ?? {});
8288
8328
  }
8289
8329
  if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
@@ -9134,4 +9174,4 @@ function reportPlannedSeeds(planned, log) {
9134
9174
  //#endregion
9135
9175
  export { ORIGIN_VERIFY_HEADER as $, telemetryOf as $n, maskPassword as $t, StageProviderDisabled as A, postgresSuperuser as An, LEGACY_LOCAL_LOGIN as At, processorDockerfile as B, redisService as Bn, createCredentialsPreload as Bt, recordRollback as C, postgresDatabaseNames as Cn, backendsOf as Ct, setPostgresBackupId as D, LOCAL_RABBITMQ_USER as Dn, workspace_exports as Dt, setGeneratedSecret as E, mergeLifecycle as En, reconcileWorkspace as Et, DockerBuildFailed as F, projectKey as Fn, composeFor as Ft, workerBundleName as G, localRolePassword as Gn, loadPortState as Gt, workerDockerfile as H, stackRedis as Hn, findAvailablePort as Ht, DockerPushFailed as I, readKey as In, cacheBackendFor as It, CronGenerator as J, resourceName as Jn, isRemoteStore as Jt, workerEntryDir as K, TELEMETRY_CONTAINER as Kn, loadSecretsForApp as Kt, appDockerfile as L, withGeneratedSecrets as Ln, eventsBackendFor as Lt, provisionCommand as M, FileSecretsStore as Mn, bucketClient as Mt, stageProviderNotes as N, getKeyPath as Nn, pgClient as Nt, DnsRecordsUnreadable as O, loadLocalCredentials as On, LOCAL_CA_PATH as Ot, PROVIDER_KINDS as P, keystoreProject as Pn, CLUSTER_DATABASE as Pt, processorInfo as Q, surfaceClientTraced as Qn, initStageSecrets as Qt, dockerCommand as R, REDIS_SERVICE as Rn, providerOf as Rt, recordRelease as S, bucketPolicies as Sn, FAKE_ENV as St, setBackupState as T, quoteIdentifier as Tn, derivedContainers as Tt, workerDockerfileOf as U, withRedisPassword as Un, isPortAvailable as Ut, processorNative as V, runsRedis as Vn, createEntryWrapper as Vt, WorkerGenerator as W, envFor as Wn, loadEnvFiles as Wt, processorBundleName as X, isTelemetryKey as Xn, storeFromConfig as Xt, ProcessorGenerator as Y, appTelemetry as Yn, secretsStoreFor as Yt, processorEntryDir as Z, scopeTelemetryEnv as Zn, store_exports as Zt, asDokployState as _, applyLifecycles as _n, withLogsPassword as _r, appEnvKeys as _t, dnsResources as a, PROCESSOR_PORT as an, DEFAULT_IMAGES as ar, AllowDevServicesTakesNoValue as at, getBackupState as b, applyPostgres as bn, resolveHost as br, processorEnvKeys as bt, currentActor as c, detectPackageManager as cn, portKeys as cr, ExternalServicesNotConfigured as ct, DeployJournal as d, isImageBuild as dn, primaryPortKey as dr, devServicesUsed as dt, storage_exports as en, usesTelemetry as er, PROCESSOR_ORIGIN_SECRET_ENV as et, extractSubdomain as f, publicBuildValues as fn, LOCAL_LOGS_EMAIL as fr, externalServices as ft, verifyDnsRecords as g, applyBuckets as gn, stackLogs as gr, suppliedOnly as gt, orchestrateDns as h, workerUnits as hn, logsService as hr, stageServiceDeclarations as ht, dnsRecordResource as i, imageLayout as in, hostFor$1 as ir, validateImageRef as it, assertStageProvidersEnabled as j, readLocalCredentials as jn, ensurePostgresLogin as jt, createDnsProvider as k, postgresRoleSlug as kn, forgetState as kt, describeActor as l, findBuildRoot as ln, portsOf as lr, STORAGE_KEY_PAIR as lt, normalizeDnsConfig as m, processorUnits as mn, logsAccess as mr, requiredStageKeys as mt, reportDatabaseRuns as n, withCustomSecret as nn, watchedBuckets as nr, originSecretKey as nt, forgetDnsResource as o, TURBO_VERSION as on, describeServices as or, DEV_SERVICES as ot, findRootDomain as p, isUnder as pn, LOGS_SERVICE as pr, reportDevServices as pt, QueueGenerator as q, planFor as qn, prepareEntryCredentials as qt, reportPlannedSeeds as r, composeBuildPaths as rn, EMULATOR_ACCESS_KEY_ID as rr, processorOriginHost as rt, recordDnsChanges as s, WORKER_PORT as sn, fakeKey as sr, DevServicesNeedServerTarget as st, DeploySeedsFailed as t, toEmbeddableSecrets as tn, minioWebhookEnv as tr, newOriginSecret as tt, isCi as u, imageBuildCredentials as un, postgresImage as ur, assertDevServicesFlag as ut, createComposeState as v, applyNotifications as vn, NoDomainForStage as vr, dockerfileOf as vt, setApplicationId as w, postgresStatements as wn, constructGlobs as wt, getGeneratedSecret as x, bucketLifecycles as xn, workerEnvKeys as xt, createEmptyState as y, applyPolicies as yn, isMainFrontendApp as yr, networkEnv as yt, ensureDockerignore as z, STACK_CACHE as zn, storageBackendFor as zt };
9136
9176
 
9137
- //# sourceMappingURL=seeds-CK7w79VC.mjs.map
9177
+ //# sourceMappingURL=seeds-BX9pskrU.mjs.map