@geekmidas/cli 10.0.0-alpha.170 → 10.0.0-alpha.171

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 (220) hide show
  1. package/dist/{GoDaddyProvider-DK9_Jw9d.cjs → GoDaddyProvider-Cs32wo6I.cjs} +2 -2
  2. package/dist/{GoDaddyProvider-DK9_Jw9d.cjs.map → GoDaddyProvider-Cs32wo6I.cjs.map} +1 -1
  3. package/dist/{GoDaddyProvider-Cf4MIuaD.mjs → GoDaddyProvider-D7CTqN0f.mjs} +2 -2
  4. package/dist/{GoDaddyProvider-Cf4MIuaD.mjs.map → GoDaddyProvider-D7CTqN0f.mjs.map} +1 -1
  5. package/dist/{HostingerProvider-CQebZrz3.mjs → HostingerProvider-B_3Qs9mT.mjs} +2 -2
  6. package/dist/{HostingerProvider-CQebZrz3.mjs.map → HostingerProvider-B_3Qs9mT.mjs.map} +1 -1
  7. package/dist/{HostingerProvider-qQzo4MYp.cjs → HostingerProvider-D0515Stf.cjs} +2 -2
  8. package/dist/{HostingerProvider-qQzo4MYp.cjs.map → HostingerProvider-D0515Stf.cjs.map} +1 -1
  9. package/dist/{LegacyStateStore-BeMRGXRi.cjs → LegacyStateStore-Bv_2L86H.cjs} +2 -2
  10. package/dist/{LegacyStateStore-BeMRGXRi.cjs.map → LegacyStateStore-Bv_2L86H.cjs.map} +1 -1
  11. package/dist/{LegacyStateStore-DXPHKdMk.mjs → LegacyStateStore-CUjKKENQ.mjs} +2 -2
  12. package/dist/{LegacyStateStore-DXPHKdMk.mjs.map → LegacyStateStore-CUjKKENQ.mjs.map} +1 -1
  13. package/dist/{LocalStateStore-BYQ9lPje.mjs → LocalStateStore-DXuj1BDq.mjs} +2 -2
  14. package/dist/{LocalStateStore-BYQ9lPje.mjs.map → LocalStateStore-DXuj1BDq.mjs.map} +1 -1
  15. package/dist/{LocalStateStore-E_sa5GR2.cjs → LocalStateStore-PQ2qJ5VF.cjs} +2 -2
  16. package/dist/{LocalStateStore-E_sa5GR2.cjs.map → LocalStateStore-PQ2qJ5VF.cjs.map} +1 -1
  17. package/dist/{S3StateStore-BQaGVNRf.mjs → S3StateStore-BGnOwqUp.mjs} +4 -4
  18. package/dist/{S3StateStore-BQaGVNRf.mjs.map → S3StateStore-BGnOwqUp.mjs.map} +1 -1
  19. package/dist/{S3StateStore-Cjr4Rtsf.cjs → S3StateStore-cmS6iUZn.cjs} +4 -4
  20. package/dist/{S3StateStore-Cjr4Rtsf.cjs.map → S3StateStore-cmS6iUZn.cjs.map} +1 -1
  21. package/dist/{SSMStateStore-Bq_S7x5_.mjs → SSMStateStore-BqXzPBbu.mjs} +2 -2
  22. package/dist/{SSMStateStore-Bq_S7x5_.mjs.map → SSMStateStore-BqXzPBbu.mjs.map} +1 -1
  23. package/dist/{SSMStateStore-Cnfwdlme.cjs → SSMStateStore-BtNGbg8Z.cjs} +2 -2
  24. package/dist/{SSMStateStore-Cnfwdlme.cjs.map → SSMStateStore-BtNGbg8Z.cjs.map} +1 -1
  25. package/dist/{add-CNQFnG0C.mjs → add-DW2KLCY0.mjs} +5 -5
  26. package/dist/{add-CNQFnG0C.mjs.map → add-DW2KLCY0.mjs.map} +1 -1
  27. package/dist/{add-3_IHpF5F.cjs → add-Dp5xRn-u.cjs} +5 -5
  28. package/dist/{add-3_IHpF5F.cjs.map → add-Dp5xRn-u.cjs.map} +1 -1
  29. package/dist/{apps-BGu47YRF.cjs → apps-DYGKg5SP.cjs} +28 -897
  30. package/dist/apps-DYGKg5SP.cjs.map +1 -0
  31. package/dist/{apps-DGod3aS9.mjs → apps-DrXwv-0A.mjs} +16 -795
  32. package/dist/apps-DrXwv-0A.mjs.map +1 -0
  33. package/dist/{bundler-DWGxNGSB.cjs → bundler-BIfEe05e.cjs} +6 -6
  34. package/dist/{bundler-DWGxNGSB.cjs.map → bundler-BIfEe05e.cjs.map} +1 -1
  35. package/dist/{bundler-Dm0mB7EK.mjs → bundler-Swt8wHG9.mjs} +6 -6
  36. package/dist/{bundler-Dm0mB7EK.mjs.map → bundler-Swt8wHG9.mjs.map} +1 -1
  37. package/dist/{cli-Qm-8tG46.mjs → cli-C9wdKQy_.mjs} +4 -4
  38. package/dist/{cli-Qm-8tG46.mjs.map → cli-C9wdKQy_.mjs.map} +1 -1
  39. package/dist/{cli-CYeZF85I.cjs → cli-ohJToj0E.cjs} +4 -4
  40. package/dist/{cli-CYeZF85I.cjs.map → cli-ohJToj0E.cjs.map} +1 -1
  41. package/dist/{compose-CXgwCuqv.mjs → compose-BLOnkeaJ.mjs} +887 -15
  42. package/dist/compose-BLOnkeaJ.mjs.map +1 -0
  43. package/dist/{compose-IsvqY6iX.cjs → compose-Br3SQ2bW.cjs} +62 -9
  44. package/dist/compose-Br3SQ2bW.cjs.map +1 -0
  45. package/dist/{compose-CshnO-Th.cjs → compose-SNYBstbO.cjs} +1025 -15
  46. package/dist/compose-SNYBstbO.cjs.map +1 -0
  47. package/dist/{compose-BVeevJO_.mjs → compose-iUOeazjW.mjs} +61 -8
  48. package/dist/compose-iUOeazjW.mjs.map +1 -0
  49. package/dist/{config-u5XdE1Cq.d.cts → config-CsCYzlVO.d.mts} +3 -3
  50. package/dist/{config-B8gSu59v.d.mts.map → config-CsCYzlVO.d.mts.map} +1 -1
  51. package/dist/{config-B8gSu59v.d.mts → config-D-gHQXhi.d.cts} +3 -3
  52. package/dist/{config-u5XdE1Cq.d.cts.map → config-D-gHQXhi.d.cts.map} +1 -1
  53. package/dist/config.cjs +1 -1
  54. package/dist/config.d.cts +3 -3
  55. package/dist/config.d.mts +3 -3
  56. package/dist/config.mjs +1 -1
  57. package/dist/{credentials-DzR2j8h1.cjs → credentials-BdZhygvW.cjs} +6 -6
  58. package/dist/{credentials-DzR2j8h1.cjs.map → credentials-BdZhygvW.cjs.map} +1 -1
  59. package/dist/{credentials-CKIeLL7T.mjs → credentials-C2VfI-uf.mjs} +6 -6
  60. package/dist/{credentials-CKIeLL7T.mjs.map → credentials-C2VfI-uf.mjs.map} +1 -1
  61. package/dist/deploy/public.cjs +11 -11
  62. package/dist/deploy/public.d.cts +4 -4
  63. package/dist/deploy/public.d.mts +4 -4
  64. package/dist/deploy/public.mjs +11 -11
  65. package/dist/{deploy-DQjEjUfB.cjs → deploy-CYyf-Q8N.cjs} +24 -26
  66. package/dist/deploy-CYyf-Q8N.cjs.map +1 -0
  67. package/dist/{deploy-CjubyZlP.mjs → deploy-DqH8QReb.mjs} +23 -25
  68. package/dist/deploy-DqH8QReb.mjs.map +1 -0
  69. package/dist/{destroy-D4m5aO9k.mjs → destroy-B9myEYFT.mjs} +9 -9
  70. package/dist/{destroy-D4m5aO9k.mjs.map → destroy-B9myEYFT.mjs.map} +1 -1
  71. package/dist/{destroy-D1375m8C.cjs → destroy-Bp5iHtLf.cjs} +9 -9
  72. package/dist/{destroy-D1375m8C.cjs.map → destroy-Bp5iHtLf.cjs.map} +1 -1
  73. package/dist/{docker-CSEAKwFr.cjs → docker-BezTRGxN.cjs} +9 -9
  74. package/dist/{docker-CSEAKwFr.cjs.map → docker-BezTRGxN.cjs.map} +1 -1
  75. package/dist/{docker-C27YUUMQ.mjs → docker-De_-Ll-A.mjs} +5 -5
  76. package/dist/{docker-C27YUUMQ.mjs.map → docker-De_-Ll-A.mjs.map} +1 -1
  77. package/dist/{dokploy-DJDdiFz6.cjs → dokploy-CWCIqro_.cjs} +2 -2
  78. package/dist/{dokploy-DJDdiFz6.cjs.map → dokploy-CWCIqro_.cjs.map} +1 -1
  79. package/dist/{dokploy-CSqDsvY-.mjs → dokploy-EsBgWO8W.mjs} +2 -2
  80. package/dist/{dokploy-CSqDsvY-.mjs.map → dokploy-EsBgWO8W.mjs.map} +1 -1
  81. package/dist/{eas-DryGYjFk.cjs → eas-8t6PJRni.cjs} +3 -3
  82. package/dist/{eas-DryGYjFk.cjs.map → eas-8t6PJRni.cjs.map} +1 -1
  83. package/dist/{eas-DC3F8cy0.mjs → eas-BalvsiH5.mjs} +3 -3
  84. package/dist/{eas-DC3F8cy0.mjs.map → eas-BalvsiH5.mjs.map} +1 -1
  85. package/dist/{encryption-C8Y8Ly6n.mjs → encryption-B4mWxt4G.mjs} +3 -3
  86. package/dist/{encryption-C8Y8Ly6n.mjs.map → encryption-B4mWxt4G.mjs.map} +1 -1
  87. package/dist/{encryption-8qZGm15p.cjs → encryption-CKBmU66R.cjs} +3 -3
  88. package/dist/{encryption-8qZGm15p.cjs.map → encryption-CKBmU66R.cjs.map} +1 -1
  89. package/dist/{engine-DI7JAyiD.cjs → engine-BTG46RG-.cjs} +19 -19
  90. package/dist/{engine-DI7JAyiD.cjs.map → engine-BTG46RG-.cjs.map} +1 -1
  91. package/dist/{engine-C9E0MeLm.mjs → engine-y8iWIXuv.mjs} +9 -9
  92. package/dist/{engine-C9E0MeLm.mjs.map → engine-y8iWIXuv.mjs.map} +1 -1
  93. package/dist/{github-g3nRZlli.cjs → github-CeXlzWWA.cjs} +7 -7
  94. package/dist/{github-g3nRZlli.cjs.map → github-CeXlzWWA.cjs.map} +1 -1
  95. package/dist/{github-DdaV-Gll.mjs → github-DvGoKoQO.mjs} +7 -7
  96. package/dist/{github-DdaV-Gll.mjs.map → github-DvGoKoQO.mjs.map} +1 -1
  97. package/dist/{googlePlay-BHJ_iThq.cjs → googlePlay-CfzG7jOJ.cjs} +4 -4
  98. package/dist/{googlePlay-BHJ_iThq.cjs.map → googlePlay-CfzG7jOJ.cjs.map} +1 -1
  99. package/dist/{googlePlay-BmeR1kY4.mjs → googlePlay-DWv6CUgM.mjs} +4 -4
  100. package/dist/{googlePlay-BmeR1kY4.mjs.map → googlePlay-DWv6CUgM.mjs.map} +1 -1
  101. package/dist/{iam-ra1_Y405.mjs → iam-BE0qX5Lb.mjs} +2 -2
  102. package/dist/{iam-ra1_Y405.mjs.map → iam-BE0qX5Lb.mjs.map} +1 -1
  103. package/dist/{iam-BoYPPNdM.cjs → iam-FA95ku7l.cjs} +2 -2
  104. package/dist/{iam-BoYPPNdM.cjs.map → iam-FA95ku7l.cjs.map} +1 -1
  105. package/dist/{index-DFZ0SMwN.d.mts → index-QxGYzGEN.d.mts} +2 -2
  106. package/dist/{index-1H93w_H6.d.cts.map → index-QxGYzGEN.d.mts.map} +1 -1
  107. package/dist/{index-1H93w_H6.d.cts → index-tFzoro1V.d.cts} +2 -2
  108. package/dist/{index-DFZ0SMwN.d.mts.map → index-tFzoro1V.d.cts.map} +1 -1
  109. package/dist/index.cjs +72 -72
  110. package/dist/index.cjs.map +1 -1
  111. package/dist/index.mjs +63 -63
  112. package/dist/index.mjs.map +1 -1
  113. package/dist/{local-Bkv-e8uM.mjs → local-CvRvfktv.mjs} +2 -2
  114. package/dist/{local-Bkv-e8uM.mjs.map → local-CvRvfktv.mjs.map} +1 -1
  115. package/dist/{local-DTidpa-a.cjs → local-DH9at_0c.cjs} +2 -2
  116. package/dist/{local-DTidpa-a.cjs.map → local-DH9at_0c.cjs.map} +1 -1
  117. package/dist/{migrate-CXLhrHwu.cjs → migrate-B1lHo2K2.cjs} +5 -5
  118. package/dist/{migrate-CXLhrHwu.cjs.map → migrate-B1lHo2K2.cjs.map} +1 -1
  119. package/dist/{migrate-DNOI23QA.mjs → migrate-D1iCmQgc.mjs} +5 -5
  120. package/dist/{migrate-DNOI23QA.mjs.map → migrate-D1iCmQgc.mjs.map} +1 -1
  121. package/dist/{migrate-DU4MtKxz.cjs → migrate-DzOWCnRR.cjs} +3 -3
  122. package/dist/{migrate-DU4MtKxz.cjs.map → migrate-DzOWCnRR.cjs.map} +1 -1
  123. package/dist/{migrate-BZRsJwni.mjs → migrate-NmW2Su8s.mjs} +3 -3
  124. package/dist/{migrate-BZRsJwni.mjs.map → migrate-NmW2Su8s.mjs.map} +1 -1
  125. package/dist/{notes-1TM_Vzi7.mjs → notes-BdIY7IoB.mjs} +4 -3
  126. package/dist/notes-BdIY7IoB.mjs.map +1 -0
  127. package/dist/{notes-BpaXOAkA.cjs → notes-ikElBCC8.cjs} +4 -3
  128. package/dist/{notes-1TM_Vzi7.mjs.map → notes-ikElBCC8.cjs.map} +1 -1
  129. package/dist/openapi.cjs +1 -1
  130. package/dist/openapi.d.cts +1 -1
  131. package/dist/openapi.d.mts +1 -1
  132. package/dist/openapi.mjs +1 -1
  133. package/dist/{projectBucket-BRgsSv2P.mjs → projectBucket-C-FOIic4.mjs} +2 -2
  134. package/dist/{projectBucket-BRgsSv2P.mjs.map → projectBucket-C-FOIic4.mjs.map} +1 -1
  135. package/dist/{projectBucket-DbEWuLGX.cjs → projectBucket-uidxz03Q.cjs} +2 -2
  136. package/dist/{projectBucket-DbEWuLGX.cjs.map → projectBucket-uidxz03Q.cjs.map} +1 -1
  137. package/dist/{publish-DjFgxu2v.mjs → publish-Ujng6o63.mjs} +2 -2
  138. package/dist/{publish-DjFgxu2v.mjs.map → publish-Ujng6o63.mjs.map} +1 -1
  139. package/dist/{publish-BN1l3tPF.cjs → publish-oO_8elIf.cjs} +2 -2
  140. package/dist/{publish-BN1l3tPF.cjs.map → publish-oO_8elIf.cjs.map} +1 -1
  141. package/dist/reconcile/public.d.cts +1 -1
  142. package/dist/reconcile/public.d.mts +1 -1
  143. package/dist/{resolve-BHVyg4Hg.cjs → resolve-CTb1gsTO.cjs} +4 -4
  144. package/dist/{resolve-BHVyg4Hg.cjs.map → resolve-CTb1gsTO.cjs.map} +1 -1
  145. package/dist/{resolve-NEKsqNAw.mjs → resolve-Lk7fd8Kb.mjs} +4 -4
  146. package/dist/{resolve-NEKsqNAw.mjs.map → resolve-Lk7fd8Kb.mjs.map} +1 -1
  147. package/dist/{rollback-BVgyLE7B.mjs → rollback-B2DhSX-I.mjs} +6 -6
  148. package/dist/{rollback-BVgyLE7B.mjs.map → rollback-B2DhSX-I.mjs.map} +1 -1
  149. package/dist/{rollback-CUjvOIDE.cjs → rollback-PK4pSOLd.cjs} +6 -6
  150. package/dist/{rollback-CUjvOIDE.cjs.map → rollback-PK4pSOLd.cjs.map} +1 -1
  151. package/dist/{runtime-CKOkIrw0.d.cts → runtime-BpGIXfYr.d.mts} +2 -2
  152. package/dist/{runtime-CKOkIrw0.d.cts.map → runtime-BpGIXfYr.d.mts.map} +1 -1
  153. package/dist/{runtime-Cdvv8SfU.d.mts → runtime-DLV0CNZ4.d.cts} +2 -2
  154. package/dist/{runtime-Cdvv8SfU.d.mts.map → runtime-DLV0CNZ4.d.cts.map} +1 -1
  155. package/dist/{s3-BO4yr61G.mjs → s3-BY5ry__M.mjs} +3 -3
  156. package/dist/{s3-BO4yr61G.mjs.map → s3-BY5ry__M.mjs.map} +1 -1
  157. package/dist/{s3-DnPbDfQN.cjs → s3-FG9qIgEB.cjs} +3 -3
  158. package/dist/{s3-DnPbDfQN.cjs.map → s3-FG9qIgEB.cjs.map} +1 -1
  159. package/dist/{serverSetup-BxnCM11A.mjs → serverSetup-BL1sHzRr.mjs} +6 -6
  160. package/dist/{serverSetup-BxnCM11A.mjs.map → serverSetup-BL1sHzRr.mjs.map} +1 -1
  161. package/dist/{serverSetup-DScJ7tQs.cjs → serverSetup-C7fDKGiN.cjs} +6 -6
  162. package/dist/{serverSetup-DScJ7tQs.cjs.map → serverSetup-C7fDKGiN.cjs.map} +1 -1
  163. package/dist/{sniffer-9smKtb86.mjs → sniffer-BvhDRsgI.mjs} +7 -7
  164. package/dist/{sniffer-9smKtb86.mjs.map → sniffer-BvhDRsgI.mjs.map} +1 -1
  165. package/dist/{sniffer-DHcxlSJF.cjs → sniffer-DJp9a2Pg.cjs} +7 -7
  166. package/dist/{sniffer-DHcxlSJF.cjs.map → sniffer-DJp9a2Pg.cjs.map} +1 -1
  167. package/dist/{snsSubscriptions-CygsiXhb.mjs → snsSubscriptions-7y2XBXde.mjs} +4 -4
  168. package/dist/{snsSubscriptions-CygsiXhb.mjs.map → snsSubscriptions-7y2XBXde.mjs.map} +1 -1
  169. package/dist/{snsSubscriptions-B8TYeAM-.cjs → snsSubscriptions-8t1XFvoc.cjs} +4 -4
  170. package/dist/{snsSubscriptions-B8TYeAM-.cjs.map → snsSubscriptions-8t1XFvoc.cjs.map} +1 -1
  171. package/dist/{sst-DiHVSku5.cjs → sst-8HZe83-M.cjs} +5 -5
  172. package/dist/{sst-DiHVSku5.cjs.map → sst-8HZe83-M.cjs.map} +1 -1
  173. package/dist/{sst-Bgb3WWEl.mjs → sst-CzFd-1om.mjs} +5 -5
  174. package/dist/{sst-Bgb3WWEl.mjs.map → sst-CzFd-1om.mjs.map} +1 -1
  175. package/dist/{stack-A3evQgbk.cjs → stack-3tvhk7SU.cjs} +80 -24
  176. package/dist/stack-3tvhk7SU.cjs.map +1 -0
  177. package/dist/{stack-Cy2FwO3Z.mjs → stack-j2e8ddGl.mjs} +62 -12
  178. package/dist/stack-j2e8ddGl.mjs.map +1 -0
  179. package/dist/{stage-Bm1x9Anp.cjs → stage-DCSJii_y.cjs} +6 -6
  180. package/dist/{stage-Bm1x9Anp.cjs.map → stage-DCSJii_y.cjs.map} +1 -1
  181. package/dist/{stage-Dgy08WVL.mjs → stage-DMv-IfSD.mjs} +6 -6
  182. package/dist/{stage-Dgy08WVL.mjs.map → stage-DMv-IfSD.mjs.map} +1 -1
  183. package/dist/{stages-COiipV8N.mjs → stages-CCAAe1tP.mjs} +2 -2
  184. package/dist/{stages-COiipV8N.mjs.map → stages-CCAAe1tP.mjs.map} +1 -1
  185. package/dist/{stages-BWg3NU3J.cjs → stages-D49CUpBY.cjs} +2 -2
  186. package/dist/{stages-BWg3NU3J.cjs.map → stages-D49CUpBY.cjs.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-BDRxzEZD.cjs → terminal-DIEj2Nap.cjs} +2 -2
  192. package/dist/{terminal-BDRxzEZD.cjs.map → terminal-DIEj2Nap.cjs.map} +1 -1
  193. package/dist/{terminal-BRAIvH83.mjs → terminal-VLmWgL_N.mjs} +2 -2
  194. package/dist/{terminal-BRAIvH83.mjs.map → terminal-VLmWgL_N.mjs.map} +1 -1
  195. package/dist/{types-DEmuMHsS.d.cts → types-Bj1A1wkS.d.mts} +3 -3
  196. package/dist/{types-g_S0_RAi.d.mts.map → types-Bj1A1wkS.d.mts.map} +1 -1
  197. package/dist/{types-g_S0_RAi.d.mts → types-CV4AzwC_.d.cts} +4 -2
  198. package/dist/{types-DEmuMHsS.d.cts.map → types-CV4AzwC_.d.cts.map} +1 -1
  199. package/dist/workspace/index.cjs +1 -1
  200. package/dist/workspace/index.d.cts +2 -2
  201. package/dist/workspace/index.d.mts +2 -2
  202. package/dist/workspace/index.mjs +1 -1
  203. package/dist/{workspace-_aoe8v6u.mjs → workspace-B0PI9k9p.mjs} +28 -5
  204. package/dist/workspace-B0PI9k9p.mjs.map +1 -0
  205. package/dist/{workspace-CEpojAus.cjs → workspace-LR9DFjU8.cjs} +39 -4
  206. package/dist/workspace-LR9DFjU8.cjs.map +1 -0
  207. package/package.json +15 -15
  208. package/dist/apps-BGu47YRF.cjs.map +0 -1
  209. package/dist/apps-DGod3aS9.mjs.map +0 -1
  210. package/dist/compose-BVeevJO_.mjs.map +0 -1
  211. package/dist/compose-CXgwCuqv.mjs.map +0 -1
  212. package/dist/compose-CshnO-Th.cjs.map +0 -1
  213. package/dist/compose-IsvqY6iX.cjs.map +0 -1
  214. package/dist/deploy-CjubyZlP.mjs.map +0 -1
  215. package/dist/deploy-DQjEjUfB.cjs.map +0 -1
  216. package/dist/notes-BpaXOAkA.cjs.map +0 -1
  217. package/dist/stack-A3evQgbk.cjs.map +0 -1
  218. package/dist/stack-Cy2FwO3Z.mjs.map +0 -1
  219. package/dist/workspace-CEpojAus.cjs.map +0 -1
  220. package/dist/workspace-_aoe8v6u.mjs.map +0 -1
@@ -1,10 +1,9 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
2
  import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
3
- import { E as providerOf, R as externalsManifestName, T as eventsBackendFor, bt as gkmHome, w as cacheBackendFor } from "./credentials-CKIeLL7T.mjs";
4
- import { It as isReservedStageKey, Mt as checkStageBackups, R as stageSampleRate, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, ct as protectedSubdomains, j as TEST_STAGE, ot as appKey, ut as fileServerLabel, z as telemetryEnv } from "./workspace-_aoe8v6u.mjs";
5
- import { $ as otlpHeaders, B as fakeKey, D as HOST_GATEWAY$1, F as emulatorEndpoint, G as serviceAddresses, H as portsOf, I as emulatorQueueUrl, J as LOGS_ORG, L as emulatorTopicArn, M as watchedBuckets, O as NOTIFICATION_RULE_PREFIX, P as EMULATOR_REGION, U as postgresImage, V as portKeys, W as primaryPortKey, Y as LOGS_PASSWORD_KEY, b as REDIS_PASSWORD_KEY, f as savePortState, h as postgresRoleSlug, j as objectsWebhookToken, k as minioNotificationRule, l as loadPortState, m as loadLocalCredentials, n as composeFor, ot as rootSite, q as LOGS_EMAIL_KEY, r as toYaml, t as CLUSTER_DATABASE, v as saveLocalCredentials } from "./compose-CXgwCuqv.mjs";
3
+ import { E as providerOf, R as externalsManifestName, T as eventsBackendFor, bt as gkmHome, w as cacheBackendFor } from "./credentials-C2VfI-uf.mjs";
4
+ import { Pt as checkStageBackups, Rt as isReservedStageKey, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, dt as fileServerLabel, j as TEST_STAGE, ot as appKey, z as telemetryEnv } from "./workspace-B0PI9k9p.mjs";
5
+ import { B as NOTIFICATION_RULE_PREFIX, Ct as otlpHeaders, D as PgBossNeedsDatabase, J as emulatorQueueUrl, K as EMULATOR_REGION, N as scopeTelemetryEnv, O as TELEMETRY_CONTAINER, Q as caddyfileRoot, U as objectsWebhookToken, V as minioNotificationRule, W as watchedBuckets, X as CADDY_SITES_IN_CONTAINER, Y as emulatorTopicArn, b as REDIS_PASSWORD_KEY, ct as portKeys, dt as primaryPortKey, et as hostFor$1, f as savePortState, ft as serviceAddresses, gt as LOGS_PASSWORD_KEY, h as postgresRoleSlug, ht as LOGS_ORG, j as appTelemetry, k as planFor, l as loadPortState, lt as portsOf, m as loadLocalCredentials, mt as LOGS_EMAIL_KEY, n as composeFor, nt as sitesFor, q as emulatorEndpoint, r as toYaml, rt as toCaddyfile, t as CLUSTER_DATABASE, tt as hostsFor, ut as postgresImage, v as saveLocalCredentials, z as HOST_GATEWAY } from "./compose-BLOnkeaJ.mjs";
6
6
  import { c as INBOX_RELAY_TOKEN_KEY, d as inboxWebhookUrl, i as readFakes, l as inboxRelayToken, o as objectsRoute, r as readCredentialFakes, u as inboxRelayWorker } from "./SubscriberGenerator-CfZWX0lT.mjs";
7
- import { i as holdsEveryCache, t as DEFAULT_CACHE } from "./types-Y1NfWlyG.mjs";
8
7
  import { u as telemetryArgs } from "./EndpointGenerator-CSKhAD6W.mjs";
9
8
  import { i as discover, w as workerEdges, x as eventsEdgeBucket } from "./discover-B_PDDaVj.mjs";
10
9
  import { createRequire } from "node:module";
@@ -15,7 +14,7 @@ import { hostname, networkInterfaces, userInfo } from "node:os";
15
14
  import { execFile, spawn } from "node:child_process";
16
15
  import { createServer } from "node:net";
17
16
  import { createHash, createPrivateKey, createPublicKey, generateKeyPairSync, randomBytes } from "node:crypto";
18
- import { CLIENT_IP_HEADER, DEFAULT_POSTGRES_VERSION, EDGE_TOKEN_HEADER, EDGE_TOKEN_KEY, IMAGE_ORIGINS_KEY, PUBLIC_PREFIX, TELEMETRY_KEYS, WILDCARD_SUBDOMAIN, bucketExpiry, cacheTable, cookieDomain, dependenciesOf, dependentsOf, drawSecret, environmentCase, externalApiUrl, hostLabels, imageOriginSources, imageOrigins, isHostedDeclaration, isPublicDeclaration, isWildcardSite, kebabCase, mobileOrigins, providedKeyFor, provisionOrder, publicEnvFor, publicValues, schemeBase, senderAddress, wildcardDomainOf } from "@geekmidas/manifest";
17
+ import { DEFAULT_POSTGRES_VERSION, EDGE_TOKEN_KEY, IMAGE_ORIGINS_KEY, PUBLIC_PREFIX, TELEMETRY_KEYS, cacheTable, cookieDomain, dependenciesOf, dependentsOf, drawSecret, environmentCase, externalApiUrl, imageOriginSources, imageOrigins, isPublicDeclaration, kebabCase, mobileOrigins, providedKeyFor, provisionOrder, publicEnvFor, publicValues, reachesServerHalf, schemeBase, senderAddress, wildcardDomainOf } from "@geekmidas/manifest";
19
18
  import { fileURLToPath } from "node:url";
20
19
  import { formatKeyring } from "@geekmidas/constructs/encryption";
21
20
  import { ownerRole, readerRole, roleStatements } from "@geekmidas/db/pg/roles";
@@ -145,789 +144,6 @@ function backupExpiries(workspace, manifest) {
145
144
  return expiries;
146
145
  }
147
146
  //#endregion
148
- //#region src/generators/processorRoute.ts
149
- /**
150
- * Where `gkm dev` serves a file server's processors, on the dev server of the
151
- * app holding them: named after the file server.
152
- *
153
- * One definition for both sides — the dev server mounts it, and the local
154
- * edge rewrites each processor pattern on the file server's host onto it — so
155
- * the path the edge sends and the path the server answers cannot drift.
156
- */
157
- const PROCESSORS_DEV_PREFIX = "/__gkm/processors/";
158
- /** The base a file server's processors answer under, in `gkm dev`. */
159
- function processorsDevRoute(fileServerId) {
160
- return `${PROCESSORS_DEV_PREFIX}${fileServerId}`;
161
- }
162
- //#endregion
163
- //#region src/reconcile/caddyfile.ts
164
- /**
165
- * The Caddy configuration a plan implies.
166
- *
167
- * A file server is a *domain that serves a bucket*, and locally it had neither:
168
- * `UPLOADS_URL` resolved to MinIO's path-style address, which works and
169
- * is not the deployed shape. MinIO's own virtual-host mode cannot fix that —
170
- * it reads the leading label *as the bucket name*, so it produces the right
171
- * shape only when the server's id and the bucket's happen to agree, and never
172
- * for a server fronting two buckets.
173
- *
174
- * So the mapping lives in front of MinIO instead: one host per file server,
175
- * rewriting the bucket in as a path prefix. That is the whole of it — no
176
- * caching, because caching is not what is missing locally, and a caching proxy
177
- * would add an invalidation story a local stack has no use for.
178
- *
179
- * What it buys beyond the shape is a certificate: gkm's local authority
180
- * (`trust/authority.ts`) issues one for the stage's hosts, which the edge
181
- * serves the way a deployed edge serves the stage's own, so a local address is
182
- * `https://` like the deployed one, and
183
- * everything downstream of that — `Secure` cookies, `SameSite`, a cookie domain
184
- * with more than one host under it — starts behaving the way it will in
185
- * production rather than the way `http://localhost` allows.
186
- *
187
- * Pure, like `composeFor`: what should exist is data, and rendering it is one
188
- * line at the edge.
189
- */
190
- /**
191
- * The kinds the edge serves.
192
- *
193
- * Everything that owns a *public address*. Deployed, each of these has a real
194
- * hostname and a certificate, so this is what makes the local shape the same
195
- * one rather than a near-enough one — and the application is indifferent
196
- * either way, because it reads whichever address was injected and never
197
- * composes one.
198
- *
199
- * Adding a kind here is the whole of adding it to the edge.
200
- */
201
- const EDGE_KINDS = {
202
- "file-server": true,
203
- "rest-api": true,
204
- "websocket-api": true,
205
- site: true
206
- };
207
- /**
208
- * How the edge reaches the host, from inside its container.
209
- *
210
- * A surface and a site are served by processes `gkm dev` starts on the host,
211
- * not by containers — so the edge has to leave Docker's network to reach them.
212
- * Docker Desktop resolves this name already; on Linux the compose definition
213
- * maps it to the host gateway.
214
- */
215
- const HOST_GATEWAY = "host.docker.internal";
216
- /** Where the edge's container reads `.gkm/caddy-sites/` — routes and certificates. */
217
- const CADDY_SITES_IN_CONTAINER = "/etc/caddy/sites";
218
- /**
219
- * The suffix every local host shares.
220
- *
221
- * `.localhost` rather than a made-up TLD because it resolves to loopback
222
- * without touching `/etc/hosts` — macOS and systemd-resolved both answer for
223
- * subdomains of it.
224
- */
225
- const LOCAL_TLD = "localhost";
226
- /**
227
- * The sites a plan implies, one per file server.
228
- *
229
- * The leading label is the *server's* stage-scoped name rather than the
230
- * bucket's, which is the difference that matters: two servers over one bucket
231
- * are a legitimate arrangement — two cache behaviours, one origin — and naming
232
- * the host after the bucket would make them collide.
233
- */
234
- function sitesFor(plan, project, addresses = {}, processorAddresses = {}) {
235
- const byId = new Map(plan.resources.map((r) => [r.id, r]));
236
- const sites = [];
237
- for (const resource of plan.resources) {
238
- if (!EDGE_KINDS[resource.kind]) continue;
239
- const host = hostFor$1(resource, project);
240
- if (resource.kind === "file-server") {
241
- const origin = resource.of ? byId.get(resource.of) : void 0;
242
- if (!origin) continue;
243
- const address = processorAddresses[resource.id];
244
- const port = address ? portOf(address) : void 0;
245
- sites.push({
246
- host,
247
- upstream: "http://minio:9000",
248
- rewrite: `/${origin.name}{uri}`,
249
- ...resource.processors?.length && port ? { processors: {
250
- prefixes: resource.processors,
251
- upstream: `http://${HOST_GATEWAY}:${port}`,
252
- under: processorsDevRoute(resource.id)
253
- } } : {}
254
- });
255
- continue;
256
- }
257
- const address = addresses[resource.id];
258
- if (!address) continue;
259
- const port = portOf(address);
260
- if (!port) continue;
261
- const upstream = `http://${HOST_GATEWAY}:${port}`;
262
- if (resource.subdomain === WILDCARD_SUBDOMAIN) {
263
- sites.push({
264
- host,
265
- upstream,
266
- tenants: tenantsOf(resource, host, addresses)
267
- });
268
- continue;
269
- }
270
- const { aliases, redirects } = hostsFor(resource, project);
271
- sites.push({
272
- host,
273
- upstream,
274
- ...aliases.length ? { aliases } : {},
275
- ...redirects.length ? { redirects } : {}
276
- });
277
- }
278
- return sites;
279
- }
280
- /**
281
- * What stands between a wildcard site and a host that is not a tenant.
282
- *
283
- * Caddy already prefers a named host to the `*`, so `api.shop.localhost`
284
- * reaches the API whatever the wildcard says. What it cannot know is the
285
- * labels nothing is running on: `www`, or an app this stage has not started.
286
- * Those are refused here, so no slug that a deploy would protect is ever
287
- * served locally either.
288
- *
289
- * The `hosts` route is asked through `forward_auth`, which is a deployed
290
- * edge's check in miniature: a `2xx` lets the request through, and any other
291
- * answer — the app's own `404` — is what the browser gets, so a mistyped
292
- * slug fails here and not first in production. Without an address for the
293
- * surface serving it there is nothing to ask, and every host is served.
294
- */
295
- function tenantsOf(resource, host, addresses) {
296
- const domain = host.slice(`${WILDCARD_SUBDOMAIN}.`.length);
297
- const surface = resource.hosts ? addresses[resource.hosts.surface] : void 0;
298
- const port = surface ? portOf(surface) : void 0;
299
- return {
300
- protected: (resource.protectedSubdomains ?? []).map((label) => `${label}.${domain}`),
301
- ...resource.hosts && port ? { hosts: {
302
- upstream: `http://${HOST_GATEWAY}:${port}`,
303
- uri: `${resource.hosts.path}?domain={host}`
304
- } } : {}
305
- };
306
- }
307
- /** The port a local address answers on, defaulting by scheme. */
308
- function portOf(address) {
309
- try {
310
- const { port, protocol } = new URL(address);
311
- return port || (protocol === "https:" ? "443" : "80");
312
- } catch {
313
- return;
314
- }
315
- }
316
- /**
317
- * Where one file server answers, including the stage its name carries.
318
- *
319
- * The project is a label rather than a decoration: it is what keeps two
320
- * checkouts from answering on one address. Omitted when there is no project to
321
- * name, because an empty label makes `uploads..localhost` — a host nothing
322
- * resolves and no certificate can be issued for.
323
- */
324
- function hostFor$1(resource, project) {
325
- const label = resource.root && project ? stageOf(resource) : labelOf(resource);
326
- if (resource.subdomain === WILDCARD_SUBDOMAIN) return [
327
- WILDCARD_SUBDOMAIN,
328
- stageOf(resource),
329
- project,
330
- LOCAL_TLD
331
- ].filter(Boolean).join(".");
332
- return [
333
- label,
334
- project,
335
- LOCAL_TLD
336
- ].filter(Boolean).join(".");
337
- }
338
- /**
339
- * Where a resource answers, every host of it: {@link hostFor}'s, and each
340
- * alias and redirect label under the project, carrying the stage as its own
341
- * label does — `www-test.shop.localhost` for `gkm test`.
342
- */
343
- function hostsFor(resource, project) {
344
- const stage = stageOf(resource);
345
- const under = (label) => [
346
- stage ? `${label}-${stage}` : label,
347
- project,
348
- LOCAL_TLD
349
- ].filter(Boolean).join(".");
350
- return {
351
- host: hostFor$1(resource, project),
352
- aliases: (resource.aliases ?? []).map(under),
353
- redirects: (resource.redirects ?? []).map(under)
354
- };
355
- }
356
- /**
357
- * A resource's own label: its `subdomain` where it declared one, and a file
358
- * server's own name — the label a deploy uses too — with the stage it carries
359
- * kept, so `gkm test` and `gkm dev` still answer on different hosts.
360
- */
361
- function labelOf(resource) {
362
- const own = resource.kind === "file-server" ? fileServerLabel(resource.id) : resource.subdomain;
363
- if (!own) return resource.name;
364
- const stage = stageOf(resource);
365
- return stage ? `${own}-${stage}` : own;
366
- }
367
- /** The stage a resource's name carries, or nothing for the local stage's. */
368
- function stageOf(resource) {
369
- const base = resource.id.toLowerCase();
370
- return resource.name === base ? void 0 : resource.name.slice(base.length + 1);
371
- }
372
- /**
373
- * The static root config, which only ever imports.
374
- *
375
- * Written once and identical for every stage, because the *sites* are what
376
- * differ and they live in their own files. That split is not tidiness: one
377
- * container serves every stage — the same way one Postgres holds `orders` and
378
- * `orders_test` — so a single Caddyfile would mean `gkm test` deleting the
379
- * routes `gkm dev` is serving, and each command silently breaking the other.
380
- */
381
- function caddyfileRoot() {
382
- return `${GENERATED}
383
- {
384
- # No ACME, no public DNS: each stage's certificate is gkm's, beside its
385
- # routes, and the names are local.
386
- auto_https disable_redirects
387
- }
388
-
389
- # One file per stage, so two stages share this edge the way they already share
390
- # one Postgres and one MinIO.
391
- import ${CADDY_SITES_IN_CONTAINER}/*.caddy
392
- `;
393
- }
394
- /**
395
- * One stage's sites, as the file imported above.
396
- *
397
- * `rewrite` rather than a path prefix on the address: the bucket is the
398
- * origin's business, and the client asks for the key it stored.
399
- *
400
- * `header_up Host {upstream_hostport}` matters more than it looks. MinIO routes
401
- * and signs on the Host header, so forwarding the requested hostname would make
402
- * it look for a bucket named after the domain.
403
- */
404
- function toCaddyfile(sites, options) {
405
- if (sites.length === 0) return `${GENERATED}
406
- # No file server is declared in this stage, so it routes nothing.
407
- `;
408
- const port = options.port && options.port !== 443 ? `:${options.port}` : "";
409
- const blocks = sites.map(({ host, upstream, rewrite, processors, tenants, aliases, redirects }) => {
410
- const proxy = `reverse_proxy ${upstream} {${rewrite ? `
411
- rewrite ${rewrite}
412
- # MinIO routes and signs on the Host header, so forwarding the requested
413
- # hostname would make it look for a bucket named after the domain.
414
- header_up Host {upstream_hostport}` : `
415
- # The application reads whatever address was injected, so it has to see
416
- # the one a caller used — that is what makes a redirect, a cookie domain
417
- # and a generated link point back here rather than at the upstream.
418
- header_up Host {host}
419
- header_up X-Forwarded-Proto {scheme}`}
420
- }`;
421
- const redirectBlocks = (redirects ?? []).map((from) => `
422
- https://${from} {
423
- tls ${options.certificate} ${options.certificate}
424
-
425
- redir https://${host}${port}{uri} permanent
426
- }`).join("");
427
- return `
428
- ${[host, ...aliases ?? []].map((name) => `https://${name}`).join(", ")} {
429
- tls ${options.certificate} ${options.certificate}
430
-
431
- ${clientIpRule(options.edgeToken)}
432
- ${processors ? `
433
- # Its processors' patterns, to the dev server holding them — under the
434
- # route it mounts them on. Answered there, so the bucket below never is.
435
- @processors path ${processors.prefixes.map((prefix) => `${prefix}*`).join(" ")}
436
- handle @processors {
437
- reverse_proxy ${processors.upstream} {
438
- rewrite ${processors.under}{uri}
439
- header_up Host {host}
440
- }
441
- }
442
- ` : ""}${tenants ? tenantBlock(tenants, proxy) : ` ${proxy}`}
443
- }${redirectBlocks}`;
444
- });
445
- return `${GENERATED}${blocks.join("\n")}\n`;
446
- }
447
- /**
448
- * A wildcard site's routes: a protected host refused, every other host asked
449
- * about before it is proxied. `handle` blocks rather than bare directives,
450
- * because Caddy orders directives itself and would proxy before it refused.
451
- */
452
- function tenantBlock(tenants, proxy) {
453
- return `${tenants.protected.length ? `
454
- # Labels an app answers on, or that the workspace protects: never a
455
- # tenant's, whether or not anything is running on them.
456
- @protected host ${tenants.protected.join(" ")}
457
- handle @protected {
458
- respond 404
459
- }
460
- ` : ""}
461
- handle {${tenants.hosts ? `
462
- # Which hosts are tenants is the app's to say: its \`hosts\` route
463
- # answers 200 to serve this one, and anything else goes back as is.
464
- forward_auth ${tenants.hosts.upstream} {
465
- uri ${tenants.hosts.uri}
466
- }
467
- ` : ""}
468
- ${proxy.replaceAll("\n", "\n ")}
469
- }`;
470
- }
471
- const GENERATED = `# Generated by gkm from the construct manifest — do not edit.
472
- #
473
- # One host per declared file server, in front of the object store that holds its
474
- # objects. This is the shape a file server has deployed — a domain serving a
475
- # bucket — which MinIO alone cannot produce: its virtual-host mode reads the
476
- # leading label as the bucket name.
477
- #
478
- # Certificates come from gkm's local CA. "gkm dev" and "gkm test" point Node at
479
- # its root, so nothing has to be installed to use these URLs from code; a
480
- # browser needs the root trusted once ("gkm trust").
481
- `;
482
- /**
483
- * The lines every site block of an edge opens with, for gkm's own
484
- * `x-gkm-client-ip` — the client address the auth server rate-limits by.
485
- *
486
- * Only a service of this stack may send it. One that calls a sibling at its
487
- * public address comes through this edge, and proves where it comes from with
488
- * the stack's token (`x-gkm-edge-token`), derived from the stage's seed and
489
- * handed to every process of the stack — never to a browser. A request
490
- * without it has the header removed, so nobody outside can choose the address
491
- * they are rate-limited by. Without a token, it is removed from every request.
492
- */
493
- function clientIpRule(edgeToken) {
494
- if (!edgeToken) return `
495
- # gkm's own header, which only a service of this stack may send: the auth
496
- # server rate-limits by the client address it carries.
497
- request_header -${CLIENT_IP_HEADER}`;
498
- return `
499
- # gkm's own header, which only a service of this stack may send — proven by
500
- # the stack's token: the auth server rate-limits by the client address it
501
- # carries. Removed from every other request.
502
- @gkm_outside not header ${EDGE_TOKEN_HEADER} ${edgeToken}
503
- request_header @gkm_outside -${CLIENT_IP_HEADER}`;
504
- }
505
- //#endregion
506
- //#region src/telemetry/edges.ts
507
- /**
508
- * Which processes use a `Telemetry` node — read off the manifest's edges.
509
- *
510
- * A process uses telemetry when its own declaration names the node: a
511
- * surface's `telemetry`, a worker's. A surface's process runs its own
512
- * endpoints, so a worker's edge never counts for it.
513
- *
514
- * A site's edge is recorded and never followed here: a site is handed none of
515
- * the node's keys (see `PUBLIC.telemetry`).
516
- */
517
- /** The `OTEL_*` keys a `Telemetry` node provides. */
518
- const TELEMETRY_ENV_KEYS = TELEMETRY_KEYS;
519
- /** Whether `key` is one of the keys a `Telemetry` node provides. */
520
- function isTelemetryKey(key) {
521
- return TELEMETRY_ENV_KEYS.includes(key);
522
- }
523
- /** The node a declaration's `telemetry` edge names, when it names one. */
524
- function nodeOf(manifest, id) {
525
- if (!id) return void 0;
526
- const node = manifest[id];
527
- return node?.kind === "telemetry" ? node : void 0;
528
- }
529
- /**
530
- * The `Telemetry` node the process for `id` — a surface, a worker, or a file
531
- * server's processor unit, by construct id — emits through, or undefined
532
- * when it has no edge to one.
533
- */
534
- function telemetryOf(manifest, id) {
535
- const declaration = manifest[id];
536
- if (!declaration) return void 0;
537
- if (declaration.kind === "worker" || declaration.kind === "file-server") return nodeOf(manifest, declaration.telemetry);
538
- if (declaration.kind !== "rest-api" && declaration.kind !== "websocket-api") return void 0;
539
- return nodeOf(manifest, declaration.telemetry);
540
- }
541
- /**
542
- * The `Telemetry` node the app `appName` emits through — its surface's, or
543
- * undefined for a site, an app without one, or one with no edge.
544
- */
545
- function appTelemetry(manifest, appName) {
546
- const id = Object.entries(manifest).find(([id, d]) => (d.kind === "rest-api" || d.kind === "websocket-api") && appKey(id) === appName)?.[0];
547
- return id ? telemetryOf(manifest, id) : void 0;
548
- }
549
- /** Whether any process in the manifest emits through a `Telemetry` node. */
550
- function usesTelemetry(manifest) {
551
- 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);
552
- }
553
- /**
554
- * One process's share of the telemetry keys a stage resolved: all of them,
555
- * named for the process, when it has an edge to the node — and none
556
- * otherwise.
557
- *
558
- * `env` is everything else the process is handed; its `OTEL_*` keys are
559
- * replaced, never merged, so a process without the edge cannot inherit them.
560
- */
561
- function scopeTelemetryEnv(env, options) {
562
- const scoped = Object.fromEntries(Object.entries(env).filter(([key]) => !isTelemetryKey(key)));
563
- if (!options.uses || !options.telemetry) return scoped;
564
- const values = Object.fromEntries(Object.entries(options.telemetry).filter(([key]) => isTelemetryKey(key)));
565
- if (!values.OTEL_EXPORTER_OTLP_ENDPOINT) return scoped;
566
- return {
567
- ...scoped,
568
- ...values,
569
- OTEL_SERVICE_NAME: options.serviceName
570
- };
571
- }
572
- /** Whether the site `siteId` has an edge to a `Telemetry` node. */
573
- function siteUsesTelemetry(manifest, siteId) {
574
- const site = manifest[siteId];
575
- return site?.kind === "site" && nodeOf(manifest, site.telemetry) !== void 0;
576
- }
577
- /**
578
- * Whether the client of the surface `surfaceId` propagates trace context:
579
- * when a site that calls it has an edge to a `Telemetry` node. One client
580
- * serves every site that calls the surface on the host, so one with the
581
- * edge turns it on; a site's image generates its own, from its own edge.
582
- */
583
- function surfaceClientTraced(manifest, surfaceId) {
584
- return Object.entries(manifest).some(([id, d]) => d.kind === "site" && siteUsesTelemetry(manifest, id) && d.dependencies.some((edge) => edge.target === surfaceId));
585
- }
586
- /**
587
- * Whether the site app `appName`'s clients propagate trace context, and at
588
- * what rate: when the site has an edge to a `Telemetry` construct, at the
589
- * stage's sample rate — a public value, every trace locally — and not at all
590
- * for a stage that sends no telemetry.
591
- */
592
- function siteClientTelemetry(manifest, appName, workspace, stage) {
593
- const id = Object.entries(manifest).find(([id, d]) => d.kind === "site" && appKey(id) === appName)?.[0];
594
- if (!id || !siteUsesTelemetry(manifest, id)) return void 0;
595
- const sampleRate = stageSampleRate(workspace.deploy?.telemetry, stage ?? workspace.stages.local, !stage || stage === workspace.stages.local);
596
- return sampleRate === void 0 ? void 0 : { sampleRate };
597
- }
598
- //#endregion
599
- //#region src/reconcile/plan.ts
600
- /**
601
- * The reconcile plan — what a manifest wants to exist, for one stage.
602
- *
603
- * Pure. Turning the plan into running containers and provisioned resources is
604
- * the applier's job; deciding *what* should exist is this, so the decisions can
605
- * be asserted as data rather than by starting Docker.
606
- *
607
- * One plan serves every stage. `gkm dev` reconciles `development` and `gkm test`
608
- * reconciles `test`; they differ only in what the resources are called, never in
609
- * what infrastructure exists. Roles are cluster-scoped in Postgres while grants
610
- * are per-object, so one container and one role pair serve both.
611
- */
612
- /**
613
- * Which container serves a kind.
614
- *
615
- * Derived kinds map to the same container as their parent — a schema tenant
616
- * lives in its parent's Postgres — so the set is deduplicated rather than
617
- * counted.
618
- */
619
- const CONTAINERS = {
620
- database: "postgres",
621
- "database-reader": "postgres",
622
- "database-schema": "postgres",
623
- objects: "minio",
624
- "file-server": "caddy",
625
- email: "mailpit",
626
- inbox: "mailpit",
627
- "websocket-api": "redis"
628
- };
629
- /**
630
- * The container a cache backend needs locally.
631
- *
632
- * Each one matches the protocol its deployed form speaks, which is the property
633
- * worth having: a cache that behaves differently in the two places is worse than
634
- * a slower one.
635
- *
636
- * `db` is deliberately absent, the same way `pgboss` is absent from
637
- * `EVENT_CONTAINERS`: the cache is a table in a database the manifest already
638
- * declares, so mapping it here would start a container for a project that needs
639
- * none.
640
- */
641
- const CACHE_CONTAINERS = {
642
- upstash: "redis-http",
643
- elasticache: "redis",
644
- redis: "redis"
645
- };
646
- /**
647
- * Kinds that resolve a value without anything running.
648
- *
649
- * A secret is the case: it has no address, so there is nothing to start and
650
- * nothing to connect to — but it still appears in the plan, because the target
651
- * still has to resolve it.
652
- */
653
- const CONTAINERLESS = {
654
- secret: true,
655
- credential: true,
656
- encryption: true,
657
- "rest-api": true,
658
- site: true,
659
- "mobile-app": true,
660
- "external-api": true,
661
- telemetry: true
662
- };
663
- /** The container that collects telemetry locally, and serves its UI. */
664
- const TELEMETRY_CONTAINER = "openobserve";
665
- /**
666
- * Containers that cannot run alone.
667
- *
668
- * The one case is the cache: `serverless-redis-http` is a proxy and needs the
669
- * Redis it proxies. Kept here rather than in the compose definition so the plan
670
- * -- which is what decides what must be running -- still names everything.
671
- */
672
- const REQUIRES = { "redis-http": ["redis"] };
673
- /**
674
- * The role each kind's one key plays, where it is not a URL.
675
- *
676
- * The twin of `ProvidesByKind` in `@geekmidas/manifest`: that is what a
677
- * construct declares, this is what the local target resolves, and both derive
678
- * the key from the same `providedKeyFor` so they cannot disagree.
679
- */
680
- const ROLES = {
681
- queue: "publisherConnectionString",
682
- topic: "publisherConnectionString",
683
- credential: "credentials",
684
- "mobile-app": "scheme",
685
- objects: "connectionString"
686
- };
687
- /** The kinds whose container is the events backend's rather than their own. */
688
- const EVENT_KINDS = {
689
- queue: true,
690
- topic: true
691
- };
692
- /**
693
- * Which kinds provision something *inside* their container.
694
- *
695
- * A database creates a database, a bucket creates a bucket; mail creates
696
- * nothing — Mailpit accepts whatever is sent to it and has no per-stage object
697
- * to name. Both still appear in the plan, because both still resolve a URL; the
698
- * flag is the difference between "must be running" and "must be created".
699
- */
700
- const PROVISIONS = {
701
- database: true,
702
- "database-reader": true,
703
- "database-schema": true,
704
- objects: true,
705
- cache: true,
706
- "file-server": true
707
- };
708
- /**
709
- * The container each events backend needs, where it needs one of its own.
710
- *
711
- * `pgboss` is deliberately absent rather than mapped to `postgres`: it is a
712
- * schema tenant in a database the manifest already declares, so mapping it here
713
- * would start a Postgres for a project that declared no database at all.
714
- *
715
- * This one comes from config rather than from a declaration because there are
716
- * no `topic` or `queue` kinds yet. When they land the mapping moves to
717
- * {@link CONTAINERS} keyed by kind, and this constant goes with them.
718
- */
719
- const EVENT_CONTAINERS = {
720
- sns: "localstack",
721
- rabbitmq: "rabbitmq"
722
- };
723
- /** The backend a project gets when it declares queues or topics and says nothing. */
724
- const DEFAULT_EVENTS = "pgboss";
725
- /**
726
- * How a resource of each kind separates its stage suffix.
727
- *
728
- * Postgres identifiers are snake_case and a hyphen would need quoting
729
- * everywhere; buckets and queues are kebab and disallow underscores in some
730
- * providers. The suffix is the same word either way.
731
- */
732
- const SEPARATORS = {
733
- database: "_",
734
- "database-reader": "_",
735
- "database-schema": "_",
736
- objects: "-"
737
- };
738
- /**
739
- * The stage-scoped name for a resource.
740
- *
741
- * The local stage carries no suffix, so `gkm dev` keeps using `orders` and a
742
- * developer's psql history, saved connections, and muscle memory survive a
743
- * change of stage name. Every other stage is suffixed.
744
- */
745
- function resourceName(id, kind, stage, localStage) {
746
- const base = id.toLowerCase();
747
- if (stage === localStage) return base;
748
- return `${base}${SEPARATORS[kind] ?? "-"}${stage}`;
749
- }
750
- /**
751
- * The container a kind needs, or `undefined` if it needs none.
752
- *
753
- * Queues and topics have no container of their own — they live in whichever
754
- * broker the project selected, which is why the backend is an argument here
755
- * rather than a second pass that adds containers after the fact.
756
- */
757
- function containerFor(kind, events = DEFAULT_EVENTS, cache = DEFAULT_CACHE.aws, derived = false, edge = true) {
758
- if (EVENT_KINDS[kind]) return EVENT_CONTAINERS[events] ?? CONTAINERS.database;
759
- if (kind === "file-server") return edge ? "caddy" : CONTAINERS.objects;
760
- if (kind === "cache") {
761
- if (derived && !holdsEveryCache(cache)) return CONTAINERS.database;
762
- return CACHE_CONTAINERS[cache] ?? CONTAINERS.database;
763
- }
764
- return CONTAINERS[kind];
765
- }
766
- /**
767
- * Build the plan for a manifest and stage.
768
- *
769
- * `order` is the caller's provisioning order — parents before children — which
770
- * `provisionOrder` produces from the manifest. Passing it in keeps this
771
- * function free of the traversal and makes the ordering assertable on its own.
772
- */
773
- function planFor(manifest, stage, order, options = {}) {
774
- const containers = /* @__PURE__ */ new Set();
775
- const resources = [];
776
- const fakes = {};
777
- const events = options.events ?? "pgboss";
778
- const cache = options.cache ?? DEFAULT_CACHE.aws;
779
- for (const id of order) {
780
- const declaration = manifest[id];
781
- if (!declaration) continue;
782
- const local = declaration.kind === "external-api" ? options.fakes?.[id] : void 0;
783
- const fake = local && {
784
- key: fakeKey(id),
785
- ...local
786
- };
787
- if (fake) fakes[fake.key] = {
788
- id,
789
- ...fake.image ? {
790
- image: fake.image,
791
- port: fake.port
792
- } : {}
793
- };
794
- const detached = declaration.kind === "cache" && holdsEveryCache(cache);
795
- 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);
796
- if (!container && !CONTAINERLESS[declaration.kind]) continue;
797
- if (container) {
798
- containers.add(container);
799
- for (const required of REQUIRES[container] ?? []) containers.add(required);
800
- }
801
- resources.push({
802
- id,
803
- kind: declaration.kind,
804
- ...container ? { container } : {},
805
- name: resourceName(id, declaration.kind, stage, options.localStage),
806
- envKey: providedKeyFor(id, declaration.kind, ROLES[declaration.kind] ?? "url"),
807
- provisions: PROVISIONS[declaration.kind] === true,
808
- ...declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "objects" || declaration.kind === "file-server" ? { callers: dependentsOf(manifest, id) } : {},
809
- ...declaration.kind === "site" ? { publicEnv: publicEnvFor(declaration, manifest) } : {},
810
- ...isPublicDeclaration(declaration) && imageOriginSources(declaration, manifest).length > 0 ? { imageOrigins: {
811
- key: `${PUBLIC_PREFIX[declaration.variant]}${IMAGE_ORIGINS_KEY}`,
812
- sources: imageOriginSources(declaration, manifest)
813
- } } : {},
814
- ...declaration.kind === "mobile-app" ? {
815
- publicEnv: publicEnvFor(declaration, manifest),
816
- ...declaration.scheme ? { scheme: declaration.scheme } : {}
817
- } : {},
818
- ...declaration.kind === "file-server" && declaration.open?.length ? { open: declaration.open } : {},
819
- ...declaration.kind === "file-server" && declaration.processors?.length ? { processors: [...new Set(declaration.processors.map((p) => p.prefix))].sort() } : {},
820
- ...declaration.kind === "email" && declaration.from ? { from: declaration.from } : {},
821
- ...declaration.kind === "inbox" ? { inbox: {
822
- addresses: declaration.addresses,
823
- subdomains: declaration.subdomains === true,
824
- topic: declaration.topic
825
- } } : {},
826
- ...declaration.kind === "objects" && bucketExpiry(manifest, id) ? { expire: bucketExpiry(manifest, id) } : {},
827
- ...(declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "site") && declaration.subdomain ? { subdomain: declaration.subdomain } : {},
828
- ...isHostedDeclaration(declaration) && hostLabels(declaration).aliases.length ? { aliases: [...hostLabels(declaration).aliases] } : {},
829
- ...isHostedDeclaration(declaration) && hostLabels(declaration).redirects.length ? { redirects: [...hostLabels(declaration).redirects] } : {},
830
- ...isWildcardSite(declaration) ? {
831
- protectedSubdomains: protectedSubdomains(manifest, options.protectedSubdomains),
832
- ...declaration.hosts ? { hosts: declaration.hosts } : {}
833
- } : {},
834
- ...fake ? { fake: {
835
- key: fake.key,
836
- credentials: fake.credentials
837
- } } : {},
838
- ...declaration.kind === "external-api" && !fake ? { url: declaration.url } : {},
839
- ...declaration.kind === "credential" && options.credentialFakes?.[id] !== void 0 ? { fakeCredentials: options.credentialFakes[id] } : {},
840
- ...declaration.kind === "secret" && (declaration.length !== void 0 || declaration.symbols !== void 0) ? { format: {
841
- ...declaration.length !== void 0 ? { length: declaration.length } : {},
842
- ...declaration.symbols !== void 0 ? { symbols: declaration.symbols } : {}
843
- } } : {},
844
- ..."of" in declaration && !detached ? { of: declaration.of } : {},
845
- ..."schema" in declaration && declaration.schema ? { schema: declaration.schema } : {},
846
- ..."version" in declaration && declaration.version ? { version: declaration.version } : {},
847
- ..."image" in declaration && declaration.image ? { image: declaration.image } : {},
848
- ..."extensions" in declaration && declaration.extensions?.length ? { extensions: declaration.extensions } : {},
849
- ..."roles" in declaration && declaration.roles === false ? { roles: false } : {},
850
- ..."table" in declaration && declaration.table && !detached ? { table: declaration.table } : {}
851
- });
852
- }
853
- if (options.edge !== false && resources.some((r) => EDGE_KINDS[r.kind] === true)) containers.add("caddy");
854
- for (const extra of options.extraContainers ?? []) containers.add(extra);
855
- if (events === "pgboss" && resources.some((r) => EVENT_KINDS[r.kind]) && !resources.some((r) => r.kind === "database")) throw new PgBossNeedsDatabase(resources.filter((r) => EVENT_KINDS[r.kind]).map((r) => r.id));
856
- if (cache === "db") {
857
- const placeless = resources.filter((r) => r.kind === "cache" && !r.of);
858
- if (placeless.length > 0) {
859
- const databases = resources.filter((r) => r.kind === "database");
860
- const [only] = databases;
861
- if (!only) throw new CacheNeedsDatabase(resources.filter((r) => r.kind === "cache").map((r) => r.id));
862
- if (databases.length > 1) throw new CacheIsAmbiguous(placeless.map((r) => r.id), databases.map((r) => r.id));
863
- for (const resource of placeless) resource.of = only.id;
864
- }
865
- }
866
- const sites = resources.filter((r) => r.kind === "site" && r.subdomain !== WILDCARD_SUBDOMAIN);
867
- const root = rootSite(sites.map((r) => {
868
- const declared = manifest[r.id];
869
- return {
870
- name: appKey(r.id),
871
- ...declared?.kind === "site" && declared.root ? { root: true } : {}
872
- };
873
- }));
874
- for (const site of sites) if (appKey(site.id) === root) site.root = true;
875
- const workerBroker = events === "pgboss" && Object.values(manifest).some((d) => d?.kind === "worker") && resources.some((r) => r.kind === "database");
876
- return {
877
- stage,
878
- events,
879
- cache,
880
- containers: [...containers],
881
- resources,
882
- ...Object.keys(fakes).length ? { fakes } : {},
883
- ...workerBroker ? { workerBroker: true } : {}
884
- };
885
- }
886
- /**
887
- * Queues or topics were declared with pg-boss and no database to hold them.
888
- *
889
- * Not a reconcile failure but a manifest one: the fix is a line of application
890
- * code either way — declare a database, or select a backend that brings its own
891
- * broker.
892
- */
893
- var CacheNeedsDatabase = class extends GkmError {
894
- ids;
895
- constructor(ids) {
896
- super(`A cache backed by the database needs a declared database, and none was declared, and on this deploy target that is where a cache lives. Declare one. Caches affected: ${ids.join(", ")}.`);
897
- this.ids = ids;
898
- this.name = "CacheNeedsDatabase";
899
- }
900
- };
901
- /**
902
- * A `'db'` cache — a server target's default — in an app that declares more
903
- * than one database.
904
- *
905
- * The target says *a* database and the graph offers several, so there is no
906
- * answer to give — and the wrong kind of failure would be to pick one, since a
907
- * cache silently landing in the wrong database is a bug that surfaces as
908
- * missing rows much later. The fix is a stronger statement in application code:
909
- * `orders.cache('Sessions')` names the database, which is a fact about the
910
- * application rather than a deployment choice.
911
- */
912
- var CacheIsAmbiguous = class extends GkmError {
913
- ids;
914
- databases;
915
- constructor(ids, databases) {
916
- super(`A cache backed by the database needs to know which one, and this app declares ${databases.length}: ${databases.join(", ")}. Declare the cache from its database — e.g. ${databases[0]}.cache('Sessions') — rather than as a bare new Cache(). Caches affected: ${ids.join(", ")}.`);
917
- this.ids = ids;
918
- this.databases = databases;
919
- this.name = "CacheIsAmbiguous";
920
- }
921
- };
922
- var PgBossNeedsDatabase = class extends GkmError {
923
- ids;
924
- constructor(ids) {
925
- super(`pg-boss keeps its queues in a declared database, and none was declared. Declare one: on this deploy target, events are carried by pg-boss. Queues and topics affected: ${ids.join(", ")}.`);
926
- this.ids = ids;
927
- this.name = "PgBossNeedsDatabase";
928
- }
929
- };
930
- //#endregion
931
147
  //#region src/reconcile/signedOrigins.ts
932
148
  /**
933
149
  * Where each bucket's presigned links point, derived from its connection.
@@ -5240,7 +4456,7 @@ function localObjectWebhooks(workspace, manifest, options) {
5240
4456
  if (!port) continue;
5241
4457
  hooks.push({
5242
4458
  bucket,
5243
- endpoint: `http://${HOST_GATEWAY$1}:${port}${objectsRoute(bucket)}`,
4459
+ endpoint: `http://${HOST_GATEWAY}:${port}${objectsRoute(bucket)}`,
5244
4460
  token: objectsWebhookToken(workspace.name, bucket, options.seed)
5245
4461
  });
5246
4462
  }
@@ -5265,7 +4481,7 @@ function localInboxWebhook(workspace, manifest, options) {
5265
4481
  const app = units.find((unit) => unit.id === worker)?.app;
5266
4482
  const port = app ? workspace.apps[app]?.port : void 0;
5267
4483
  if (!port) return void 0;
5268
- return inboxWebhookUrl(`http://${HOST_GATEWAY$1}:${port}`, inboxRelayToken(workspace.name, options.seed));
4484
+ return inboxWebhookUrl(`http://${HOST_GATEWAY}:${port}`, inboxRelayToken(workspace.name, options.seed));
5269
4485
  }
5270
4486
  /**
5271
4487
  * Where each mobile app's Metro runs: its app's port, which `gkm exec` hands
@@ -5456,7 +4672,10 @@ function networkEnv(plan, options, hostOf = (container) => container) {
5456
4672
  * - `queue`, `topic`: the caller gets the target's `provides` and
5457
4673
  * `EVENT_PUBLISHER_CONNECTION_STRING`. The target gets nothing.
5458
4674
  * - `objects`: the target's `provides`, its file server's, and the S3 key
5459
- * pair (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION`).
4675
+ * pair (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION`). A site
4676
+ * or mobile app gets `<T>_SIGNED_ORIGIN` and nothing else on its plain
4677
+ * edge, and all of it, signed origin included, on `.server`
4678
+ * (`reachesServerHalf`).
5460
4679
  * - `inbox`: the target's `provides`, and the local relay token.
5461
4680
  * - anything else (a database, cache, secret, credential, external API…):
5462
4681
  * the target's `provides`. The target gets nothing.
@@ -5496,11 +4715,13 @@ function appEnvKeys(manifest, appName) {
5496
4715
  ...declaration.requires ?? [],
5497
4716
  ...declaration.kind === "rest-api" ? declaration.endpoints.flatMap((endpoint) => endpoint.requires ?? []) : []
5498
4717
  ]);
5499
- addEdgeKeys(manifest, dependenciesOf(declaration).map((edge) => edge.target), keys, isPublicDeclaration(declaration));
4718
+ const client = isPublicDeclaration(declaration);
4719
+ addEdgeKeys(manifest, dependenciesOf(declaration).filter((edge) => manifest[edge.target]?.kind !== "objects" || reachesServerHalf(declaration, edge)).map((edge) => edge.target), keys, client);
5500
4720
  if (declaration.kind === "rest-api" || declaration.kind === "websocket-api") for (const key of callerKeys(manifest, id)) keys.add(key);
5501
- if (isPublicDeclaration(declaration)) {
4721
+ if (client) {
5502
4722
  for (const key of TELEMETRY_KEYS) keys.delete(key);
5503
4723
  for (const key of Object.keys(publicEnvFor(declaration, manifest))) keys.add(key);
4724
+ for (const { key } of publicValues(declaration, manifest)) keys.add(key);
5504
4725
  }
5505
4726
  return keys;
5506
4727
  }
@@ -5760,6 +4981,6 @@ function healthcheck(port, path) {
5760
4981
  };
5761
4982
  }
5762
4983
  //#endregion
5763
- export { imageBuildCredentials as $, originSecretKey as A, signedOrigins as At, WORKER_PORT as B, usesTelemetry as Bt, ensureLocalCertificate as C, postgresDatabaseNames as Ct, ORIGIN_VERIFY_HEADER as D, envFor as Dt, readLocalAuthority as E, mergeLifecycle as Et, imageLayout as F, isTelemetryKey as Ft, generateEntryDockerfile as G, PROCESSORS_DEV_PREFIX as Gt, findBuildRoot as H, clientIpRule as Ht, LOCAL_CA_BUILD_SECRET as I, scopeTelemetryEnv as It, generateProcessorDockerfile as J, backupFile as Jt, generateNextjsDockerfile as K, backupDatabases as Kt, PRERENDER_RUN_ARG as L, siteClientTelemetry as Lt, appImageOptions as M, planFor as Mt, composeBuildPaths as N, resourceName as Nt, PROCESSOR_ORIGIN_SECRET_ENV as O, localRolePassword as Ot, fromBuildRoot as P, appTelemetry as Pt, resolveDockerConfig as Q, deploysWithCompose as Qt, PROCESSOR_PORT as R, surfaceClientTraced as Rt, ensureLocalAuthority as S, bucketPolicies as St, localCertificateNames as T, quoteIdentifier as Tt, generateBackendDockerfile as U, hostFor$1 as Ut, detectPackageManager as V, LOCAL_TLD as Vt, generateDockerignore as W, hostsFor as Wt, generateWorkerDockerfile as X, runTime as Xt, generateViteStaticDockerfile as Y, backupsPrefix as Yt, nextPrerenderManifest as Z, stageBackups as Zt, forgetState as _, applyLifecycles as _t, networkEnv as a, siteOfflineHosts as at, bucketClient as b, applyPostgres as bt, processorEnvKeys as c, processorUnits as ct, backendsOf as d, BACKUPS_URL_KEY as dt, isImageBuild as et, constructGlobs as f, RUNNER_PATH as ft, COMPOSE_PATH as g, applyBuckets as gt, workspace_exports as h, stackBackups as ht, dockerfileOf as i, runsServer as it, processorOriginHost as j, TELEMETRY_CONTAINER as jt, newOriginSecret as k, stageEnv as kt, workerEnvKeys as l, workerUnits as lt, reconcileWorkspace as m, backupsService as mt, appProcess as n, offlineBuildHosts as nt, processEnv as o, isUnder as ot, derivedContainers as p, backupsRoleStatements as pt, generateNodeWebDockerfile as q, backupExpiries as qt, apps_exports as r, publicBuildValues as rt, processEnvKeys as s, processorUnitName as st, appEnvKeys as t, OFFLINE_BUILD_ADDRESS as tt, FAKE_ENV as u, BACKUPS_SERVICE as ut, LEGACY_LOCAL_LOGIN as v, applyNotifications as vt, localAuthorityPaths as w, postgresStatements as wt, pgClient as x, bucketLifecycles as xt, ensurePostgresLogin as y, applyPolicies as yt, TURBO_VERSION as z, telemetryOf as zt };
4984
+ export { imageBuildCredentials as $, originSecretKey as A, signedOrigins as At, WORKER_PORT as B, ensureLocalCertificate as C, postgresDatabaseNames as Ct, ORIGIN_VERIFY_HEADER as D, envFor as Dt, readLocalAuthority as E, mergeLifecycle as Et, imageLayout as F, runTime as Ft, generateEntryDockerfile as G, findBuildRoot as H, LOCAL_CA_BUILD_SECRET as I, stageBackups as It, generateProcessorDockerfile as J, generateNextjsDockerfile as K, PRERENDER_RUN_ARG as L, deploysWithCompose as Lt, appImageOptions as M, backupExpiries as Mt, composeBuildPaths as N, backupFile as Nt, PROCESSOR_ORIGIN_SECRET_ENV as O, localRolePassword as Ot, fromBuildRoot as P, backupsPrefix as Pt, resolveDockerConfig as Q, PROCESSOR_PORT as R, ensureLocalAuthority as S, bucketPolicies as St, localCertificateNames as T, quoteIdentifier as Tt, generateBackendDockerfile as U, detectPackageManager as V, generateDockerignore as W, generateWorkerDockerfile as X, generateViteStaticDockerfile as Y, nextPrerenderManifest as Z, forgetState as _, applyLifecycles as _t, networkEnv as a, siteOfflineHosts as at, bucketClient as b, applyPostgres as bt, processorEnvKeys as c, processorUnits as ct, backendsOf as d, BACKUPS_URL_KEY as dt, isImageBuild as et, constructGlobs as f, RUNNER_PATH as ft, COMPOSE_PATH as g, applyBuckets as gt, workspace_exports as h, stackBackups as ht, dockerfileOf as i, runsServer as it, processorOriginHost as j, backupDatabases as jt, newOriginSecret as k, stageEnv as kt, workerEnvKeys as l, workerUnits as lt, reconcileWorkspace as m, backupsService as mt, appProcess as n, offlineBuildHosts as nt, processEnv as o, isUnder as ot, derivedContainers as p, backupsRoleStatements as pt, generateNodeWebDockerfile as q, apps_exports as r, publicBuildValues as rt, processEnvKeys as s, processorUnitName as st, appEnvKeys as t, OFFLINE_BUILD_ADDRESS as tt, FAKE_ENV as u, BACKUPS_SERVICE as ut, LEGACY_LOCAL_LOGIN as v, applyNotifications as vt, localAuthorityPaths as w, postgresStatements as wt, pgClient as x, bucketLifecycles as xt, ensurePostgresLogin as y, applyPolicies as yt, TURBO_VERSION as z };
5764
4985
 
5765
- //# sourceMappingURL=apps-DGod3aS9.mjs.map
4986
+ //# sourceMappingURL=apps-DrXwv-0A.mjs.map