@geekmidas/cli 10.0.0-alpha.167 → 10.0.0-alpha.169

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 (251) hide show
  1. package/dist/{EndpointGenerator-DxrRqfJ3.cjs → EndpointGenerator-C1h_wExz.cjs} +2 -2
  2. package/dist/{EndpointGenerator-DxrRqfJ3.cjs.map → EndpointGenerator-C1h_wExz.cjs.map} +1 -1
  3. package/dist/{EndpointGenerator-B5BKAoLz.mjs → EndpointGenerator-CSKhAD6W.mjs} +2 -2
  4. package/dist/{EndpointGenerator-B5BKAoLz.mjs.map → EndpointGenerator-CSKhAD6W.mjs.map} +1 -1
  5. package/dist/{GoDaddyProvider-Dci0SlN5.mjs → GoDaddyProvider-Cvmy2SPq.mjs} +2 -2
  6. package/dist/{GoDaddyProvider-Dci0SlN5.mjs.map → GoDaddyProvider-Cvmy2SPq.mjs.map} +1 -1
  7. package/dist/{GoDaddyProvider-o6DJAsBZ.cjs → GoDaddyProvider-KmdZlFSL.cjs} +2 -2
  8. package/dist/{GoDaddyProvider-o6DJAsBZ.cjs.map → GoDaddyProvider-KmdZlFSL.cjs.map} +1 -1
  9. package/dist/{HostingerProvider-BzHPhONW.cjs → HostingerProvider--IyQKlIC.cjs} +2 -2
  10. package/dist/{HostingerProvider-BzHPhONW.cjs.map → HostingerProvider--IyQKlIC.cjs.map} +1 -1
  11. package/dist/{HostingerProvider-Dd5x1zvF.mjs → HostingerProvider-DYf1XT_W.mjs} +2 -2
  12. package/dist/{HostingerProvider-Dd5x1zvF.mjs.map → HostingerProvider-DYf1XT_W.mjs.map} +1 -1
  13. package/dist/{LegacyStateStore-tqY0hM8z.cjs → LegacyStateStore-8GVMHI12.cjs} +2 -2
  14. package/dist/{LegacyStateStore-tqY0hM8z.cjs.map → LegacyStateStore-8GVMHI12.cjs.map} +1 -1
  15. package/dist/{LegacyStateStore-CpF6rmZc.mjs → LegacyStateStore-BOZj8nj1.mjs} +2 -2
  16. package/dist/{LegacyStateStore-CpF6rmZc.mjs.map → LegacyStateStore-BOZj8nj1.mjs.map} +1 -1
  17. package/dist/{LocalStateStore-BYMUEGZN.cjs → LocalStateStore-CfBABk6G.cjs} +2 -2
  18. package/dist/{LocalStateStore-BYMUEGZN.cjs.map → LocalStateStore-CfBABk6G.cjs.map} +1 -1
  19. package/dist/{LocalStateStore-Adp96xPy.mjs → LocalStateStore-D3wY7Qkb.mjs} +2 -2
  20. package/dist/{LocalStateStore-Adp96xPy.mjs.map → LocalStateStore-D3wY7Qkb.mjs.map} +1 -1
  21. package/dist/{OpenApiTsGenerator-Vaf0pI8u.mjs → OpenApiTsGenerator-5xPn-p65.mjs} +2 -2
  22. package/dist/{OpenApiTsGenerator-Vaf0pI8u.mjs.map → OpenApiTsGenerator-5xPn-p65.mjs.map} +1 -1
  23. package/dist/{OpenApiTsGenerator-DOTLKBFf.cjs → OpenApiTsGenerator-CzrLGzC0.cjs} +2 -2
  24. package/dist/{OpenApiTsGenerator-DOTLKBFf.cjs.map → OpenApiTsGenerator-CzrLGzC0.cjs.map} +1 -1
  25. package/dist/{S3StateStore-DjXyhGIP.cjs → S3StateStore-C-Fs7CWD.cjs} +4 -4
  26. package/dist/{S3StateStore-DjXyhGIP.cjs.map → S3StateStore-C-Fs7CWD.cjs.map} +1 -1
  27. package/dist/{S3StateStore-13Go3hfM.mjs → S3StateStore-CO92LBQI.mjs} +4 -4
  28. package/dist/{S3StateStore-13Go3hfM.mjs.map → S3StateStore-CO92LBQI.mjs.map} +1 -1
  29. package/dist/{SSMStateStore-CQHUyH-c.mjs → SSMStateStore-Ns7FpnmB.mjs} +2 -2
  30. package/dist/{SSMStateStore-CQHUyH-c.mjs.map → SSMStateStore-Ns7FpnmB.mjs.map} +1 -1
  31. package/dist/{SSMStateStore-DspMPho-.cjs → SSMStateStore-t6mkXQew.cjs} +2 -2
  32. package/dist/{SSMStateStore-DspMPho-.cjs.map → SSMStateStore-t6mkXQew.cjs.map} +1 -1
  33. package/dist/{SubscriberGenerator-BybB6uez.mjs → SubscriberGenerator-CfZWX0lT.mjs} +6 -6
  34. package/dist/SubscriberGenerator-CfZWX0lT.mjs.map +1 -0
  35. package/dist/{SubscriberGenerator-mZpSuSU7.cjs → SubscriberGenerator-DMi4siph.cjs} +5 -5
  36. package/dist/SubscriberGenerator-DMi4siph.cjs.map +1 -0
  37. package/dist/{add-Dt8QKSOw.mjs → add-Byp8-rRf.mjs} +11 -11
  38. package/dist/add-Byp8-rRf.mjs.map +1 -0
  39. package/dist/{add-DsxJ0Knr.cjs → add-C3oUiBAc.cjs} +10 -10
  40. package/dist/add-C3oUiBAc.cjs.map +1 -0
  41. package/dist/{apps-w2sRQKCr.mjs → apps-C21-TXqR.mjs} +106 -50
  42. package/dist/apps-C21-TXqR.mjs.map +1 -0
  43. package/dist/{apps-C6s-trVp.cjs → apps-D_-DXV0H.cjs} +110 -48
  44. package/dist/apps-D_-DXV0H.cjs.map +1 -0
  45. package/dist/{bundler-AzkSRAuu.cjs → bundler-D43S2YTJ.cjs} +6 -6
  46. package/dist/{bundler-AzkSRAuu.cjs.map → bundler-D43S2YTJ.cjs.map} +1 -1
  47. package/dist/{bundler-BCWWne6N.mjs → bundler-DjfpJ0mX.mjs} +6 -6
  48. package/dist/{bundler-BCWWne6N.mjs.map → bundler-DjfpJ0mX.mjs.map} +1 -1
  49. package/dist/{cli-DSGw0Mw-.mjs → cli-00fMnBFk.mjs} +4 -4
  50. package/dist/{cli-DSGw0Mw-.mjs.map → cli-00fMnBFk.mjs.map} +1 -1
  51. package/dist/{cli-OGss08bZ.cjs → cli-CYBb8rgx.cjs} +4 -4
  52. package/dist/{cli-OGss08bZ.cjs.map → cli-CYBb8rgx.cjs.map} +1 -1
  53. package/dist/{compose-QSBmhr4V.cjs → compose-D9ksPt5H.cjs} +11 -11
  54. package/dist/compose-D9ksPt5H.cjs.map +1 -0
  55. package/dist/{compose-BqTuzitb.cjs → compose-Dgd-yfJT.cjs} +8 -8
  56. package/dist/compose-Dgd-yfJT.cjs.map +1 -0
  57. package/dist/{compose-Csegtvq_.mjs → compose-MwgjPj_A.mjs} +12 -12
  58. package/dist/compose-MwgjPj_A.mjs.map +1 -0
  59. package/dist/{compose-RhuFQmZS.mjs → compose-rn_DWcup.mjs} +9 -9
  60. package/dist/compose-rn_DWcup.mjs.map +1 -0
  61. package/dist/config.cjs +2 -2
  62. package/dist/config.mjs +2 -2
  63. package/dist/{credentialSchemas-mz9QZTYh.mjs → credentialSchemas-BzJiK1nQ.mjs} +4 -4
  64. package/dist/credentialSchemas-BzJiK1nQ.mjs.map +1 -0
  65. package/dist/{credentialSchemas-BAklWDna.cjs → credentialSchemas-OVXofU-r.cjs} +3 -3
  66. package/dist/credentialSchemas-OVXofU-r.cjs.map +1 -0
  67. package/dist/{credentials-CORvhcrO.cjs → credentials-C6n_kdu4.cjs} +7 -7
  68. package/dist/{credentials-CORvhcrO.cjs.map → credentials-C6n_kdu4.cjs.map} +1 -1
  69. package/dist/{credentials-D4DUPPPP.mjs → credentials-kK0X754I.mjs} +7 -7
  70. package/dist/{credentials-D4DUPPPP.mjs.map → credentials-kK0X754I.mjs.map} +1 -1
  71. package/dist/{databases-CrKh5jw6.cjs → databases-CuTL1e7s.cjs} +3 -3
  72. package/dist/databases-CuTL1e7s.cjs.map +1 -0
  73. package/dist/{databases-C1qqNxTu.mjs → databases-zN-gEox0.mjs} +4 -4
  74. package/dist/databases-zN-gEox0.mjs.map +1 -0
  75. package/dist/deploy/public.cjs +12 -12
  76. package/dist/deploy/public.mjs +12 -12
  77. package/dist/{deploy-BwJ7uWXd.cjs → deploy-C1gf4bT-.cjs} +47 -45
  78. package/dist/deploy-C1gf4bT-.cjs.map +1 -0
  79. package/dist/{deploy-DDfnQm8l.mjs → deploy-CFuDCbTq.mjs} +48 -46
  80. package/dist/deploy-CFuDCbTq.mjs.map +1 -0
  81. package/dist/{destroy-nTNRfdy6.cjs → destroy-CMz0BPEe.cjs} +9 -9
  82. package/dist/{destroy-nTNRfdy6.cjs.map → destroy-CMz0BPEe.cjs.map} +1 -1
  83. package/dist/{destroy-DKt8S051.mjs → destroy-UTWZmaGn.mjs} +9 -9
  84. package/dist/{destroy-DKt8S051.mjs.map → destroy-UTWZmaGn.mjs.map} +1 -1
  85. package/dist/{discover-CRywE7yc.cjs → discover-39VKSE2i.cjs} +5 -5
  86. package/dist/discover-39VKSE2i.cjs.map +1 -0
  87. package/dist/{discover-DbDrCQ8h.mjs → discover-B_PDDaVj.mjs} +6 -6
  88. package/dist/discover-B_PDDaVj.mjs.map +1 -0
  89. package/dist/{docker-Ele34O8z.mjs → docker-BIuidyEB.mjs} +11 -11
  90. package/dist/docker-BIuidyEB.mjs.map +1 -0
  91. package/dist/{docker-Dy1ZJUzV.cjs → docker-BrdCdNwm.cjs} +10 -10
  92. package/dist/docker-BrdCdNwm.cjs.map +1 -0
  93. package/dist/{dokploy-BrfA2m5K.mjs → dokploy--ndQ72iu.mjs} +2 -2
  94. package/dist/{dokploy-BrfA2m5K.mjs.map → dokploy--ndQ72iu.mjs.map} +1 -1
  95. package/dist/{dokploy-DN2W1YIH.cjs → dokploy-D7ZChrtZ.cjs} +2 -2
  96. package/dist/{dokploy-DN2W1YIH.cjs.map → dokploy-D7ZChrtZ.cjs.map} +1 -1
  97. package/dist/{eas-CO3ogve5.mjs → eas-BCcpBC4k.mjs} +3 -3
  98. package/dist/{eas-CO3ogve5.mjs.map → eas-BCcpBC4k.mjs.map} +1 -1
  99. package/dist/{eas-BRBdxmwe.cjs → eas-DCvA907G.cjs} +3 -3
  100. package/dist/{eas-BRBdxmwe.cjs.map → eas-DCvA907G.cjs.map} +1 -1
  101. package/dist/{encryption-BZ1zgtF5.cjs → encryption-8TklMCh2.cjs} +4 -4
  102. package/dist/encryption-8TklMCh2.cjs.map +1 -0
  103. package/dist/{encryption-CHmfNBAy.mjs → encryption-C2LzfQp8.mjs} +5 -5
  104. package/dist/encryption-C2LzfQp8.mjs.map +1 -0
  105. package/dist/{engine-DewbDHOq.cjs → engine-BMoNLayn.cjs} +37 -37
  106. package/dist/engine-BMoNLayn.cjs.map +1 -0
  107. package/dist/{engine-B3Gmu8-O.mjs → engine-D-_nkxQL.mjs} +38 -38
  108. package/dist/engine-D-_nkxQL.mjs.map +1 -0
  109. package/dist/{github-DU3iEmJN.mjs → github-B_zfStMR.mjs} +8 -8
  110. package/dist/{github-DU3iEmJN.mjs.map → github-B_zfStMR.mjs.map} +1 -1
  111. package/dist/{github-DPNgIxdc.cjs → github-CZjNDPAp.cjs} +8 -8
  112. package/dist/{github-DPNgIxdc.cjs.map → github-CZjNDPAp.cjs.map} +1 -1
  113. package/dist/{googlePlay-KPHn9H2f.mjs → googlePlay-BcVRYMh4.mjs} +4 -4
  114. package/dist/{googlePlay-KPHn9H2f.mjs.map → googlePlay-BcVRYMh4.mjs.map} +1 -1
  115. package/dist/{googlePlay-C2jnPqYn.cjs → googlePlay-Btn0lut5.cjs} +4 -4
  116. package/dist/{googlePlay-C2jnPqYn.cjs.map → googlePlay-Btn0lut5.cjs.map} +1 -1
  117. package/dist/{iam-C2sf6AUi.cjs → iam-BoYPPNdM.cjs} +2 -2
  118. package/dist/{iam-C2sf6AUi.cjs.map → iam-BoYPPNdM.cjs.map} +1 -1
  119. package/dist/{iam-CW61VcT3.mjs → iam-ra1_Y405.mjs} +2 -2
  120. package/dist/{iam-CW61VcT3.mjs.map → iam-ra1_Y405.mjs.map} +1 -1
  121. package/dist/index.cjs +79 -79
  122. package/dist/index.cjs.map +1 -1
  123. package/dist/index.mjs +80 -80
  124. package/dist/index.mjs.map +1 -1
  125. package/dist/{local-CwR2DW6i.mjs → local-B9Vniy-F.mjs} +3 -3
  126. package/dist/{local-CwR2DW6i.mjs.map → local-B9Vniy-F.mjs.map} +1 -1
  127. package/dist/{local-BxjA0EXj.cjs → local-DxfqOu7A.cjs} +3 -3
  128. package/dist/{local-BxjA0EXj.cjs.map → local-DxfqOu7A.cjs.map} +1 -1
  129. package/dist/{migrate-B0a3WY4X.cjs → migrate-C1u7Tl7D.cjs} +7 -7
  130. package/dist/{migrate-B0a3WY4X.cjs.map → migrate-C1u7Tl7D.cjs.map} +1 -1
  131. package/dist/{migrate-CYtM1UBH.cjs → migrate-CcYfCpMe.cjs} +3 -3
  132. package/dist/{migrate-CYtM1UBH.cjs.map → migrate-CcYfCpMe.cjs.map} +1 -1
  133. package/dist/{migrate-vWy2CUoi.mjs → migrate-b5rcr4sw.mjs} +7 -7
  134. package/dist/{migrate-vWy2CUoi.mjs.map → migrate-b5rcr4sw.mjs.map} +1 -1
  135. package/dist/{migrate-DHWy64pc.mjs → migrate-blnmh2Tm.mjs} +3 -3
  136. package/dist/{migrate-DHWy64pc.mjs.map → migrate-blnmh2Tm.mjs.map} +1 -1
  137. package/dist/{notes-9bOfe08J.mjs → notes-CT1jNLDC.mjs} +13 -12
  138. package/dist/notes-CT1jNLDC.mjs.map +1 -0
  139. package/dist/{notes-DRdlsCYV.cjs → notes-Cw3JQ0Y_.cjs} +12 -11
  140. package/dist/notes-Cw3JQ0Y_.cjs.map +1 -0
  141. package/dist/openapi.cjs +3 -3
  142. package/dist/openapi.mjs +3 -3
  143. package/dist/{projectBucket-gIQUuhGm.cjs → projectBucket-8hJmCusk.cjs} +2 -2
  144. package/dist/{projectBucket-gIQUuhGm.cjs.map → projectBucket-8hJmCusk.cjs.map} +1 -1
  145. package/dist/{projectBucket-Cd7sEDhG.mjs → projectBucket-DJNi2yJL.mjs} +2 -2
  146. package/dist/{projectBucket-Cd7sEDhG.mjs.map → projectBucket-DJNi2yJL.mjs.map} +1 -1
  147. package/dist/{publish-DOxz4mxf.mjs → publish-CMaPsMsT.mjs} +2 -2
  148. package/dist/{publish-DOxz4mxf.mjs.map → publish-CMaPsMsT.mjs.map} +1 -1
  149. package/dist/{publish-BgDFx08y.cjs → publish-Dlb-rrc5.cjs} +2 -2
  150. package/dist/{publish-BgDFx08y.cjs.map → publish-Dlb-rrc5.cjs.map} +1 -1
  151. package/dist/{ready-BjFMu_1J.mjs → ready-COJHr1Yi.mjs} +9 -9
  152. package/dist/ready-COJHr1Yi.mjs.map +1 -0
  153. package/dist/{ready-eVMJIcWn.cjs → ready-DcD0SCnV.cjs} +8 -8
  154. package/dist/ready-DcD0SCnV.cjs.map +1 -0
  155. package/dist/reconcile/public.cjs +1 -1
  156. package/dist/reconcile/public.mjs +1 -1
  157. package/dist/{resolve-BhQd4IkT.cjs → resolve-BKn4TTn3.cjs} +4 -4
  158. package/dist/{resolve-BhQd4IkT.cjs.map → resolve-BKn4TTn3.cjs.map} +1 -1
  159. package/dist/{resolve-CdDyPOE8.mjs → resolve-DrFS2Ivb.mjs} +4 -4
  160. package/dist/{resolve-CdDyPOE8.mjs.map → resolve-DrFS2Ivb.mjs.map} +1 -1
  161. package/dist/{rollback-Brc-_HBJ.cjs → rollback-6ZeoByXd.cjs} +7 -7
  162. package/dist/{rollback-Brc-_HBJ.cjs.map → rollback-6ZeoByXd.cjs.map} +1 -1
  163. package/dist/{rollback-CLBKeSMl.mjs → rollback-B3lHgwkj.mjs} +7 -7
  164. package/dist/{rollback-CLBKeSMl.mjs.map → rollback-B3lHgwkj.mjs.map} +1 -1
  165. package/dist/{s3-CuLmr6Q9.cjs → s3-Cq1_F2J8.cjs} +3 -3
  166. package/dist/{s3-CuLmr6Q9.cjs.map → s3-Cq1_F2J8.cjs.map} +1 -1
  167. package/dist/{s3-D0BIG_ml.mjs → s3-DfAM0soB.mjs} +3 -3
  168. package/dist/{s3-D0BIG_ml.mjs.map → s3-DfAM0soB.mjs.map} +1 -1
  169. package/dist/sandbox/credentials-worker.cjs +2 -2
  170. package/dist/sandbox/credentials-worker.mjs +2 -2
  171. package/dist/sandbox/discover-worker.cjs +1 -1
  172. package/dist/sandbox/discover-worker.mjs +1 -1
  173. package/dist/sandbox/migrate-worker.cjs +2 -2
  174. package/dist/sandbox/migrate-worker.mjs +2 -2
  175. package/dist/{serverSetup-BMpzrB1y.cjs → serverSetup-DMNKsLKq.cjs} +6 -6
  176. package/dist/{serverSetup-BMpzrB1y.cjs.map → serverSetup-DMNKsLKq.cjs.map} +1 -1
  177. package/dist/{serverSetup-An1fE9nd.mjs → serverSetup-lZ7tYUZJ.mjs} +6 -6
  178. package/dist/{serverSetup-An1fE9nd.mjs.map → serverSetup-lZ7tYUZJ.mjs.map} +1 -1
  179. package/dist/{sniffer-9a8wQeeD.cjs → sniffer-CUImZsQL.cjs} +8 -8
  180. package/dist/{sniffer-9a8wQeeD.cjs.map → sniffer-CUImZsQL.cjs.map} +1 -1
  181. package/dist/{sniffer-BObBXR5q.mjs → sniffer-DcT9RrAj.mjs} +8 -8
  182. package/dist/{sniffer-BObBXR5q.mjs.map → sniffer-DcT9RrAj.mjs.map} +1 -1
  183. package/dist/{snsSubscriptions-BRmEdsks.cjs → snsSubscriptions-1lX1ze3u.cjs} +10 -5
  184. package/dist/snsSubscriptions-1lX1ze3u.cjs.map +1 -0
  185. package/dist/{snsSubscriptions-oUTOkG-s.mjs → snsSubscriptions-DFWhEgiA.mjs} +10 -5
  186. package/dist/snsSubscriptions-DFWhEgiA.mjs.map +1 -0
  187. package/dist/{sst-DVIeKWCH.mjs → sst-CB6rX5Zs.mjs} +6 -6
  188. package/dist/{sst-DVIeKWCH.mjs.map → sst-CB6rX5Zs.mjs.map} +1 -1
  189. package/dist/{sst-CJQI9GYW.cjs → sst-ct0Vhta9.cjs} +6 -6
  190. package/dist/{sst-CJQI9GYW.cjs.map → sst-ct0Vhta9.cjs.map} +1 -1
  191. package/dist/{stack-2jMvQfLo.cjs → stack-CkdkfmpN.cjs} +124 -47
  192. package/dist/stack-CkdkfmpN.cjs.map +1 -0
  193. package/dist/{stack-kcxH-2tZ.mjs → stack-Dsl0l3fi.mjs} +120 -49
  194. package/dist/stack-Dsl0l3fi.mjs.map +1 -0
  195. package/dist/{stage-AHgVG7H8.cjs → stage-Cmn0dCV2.cjs} +7 -7
  196. package/dist/{stage-AHgVG7H8.cjs.map → stage-Cmn0dCV2.cjs.map} +1 -1
  197. package/dist/{stage-BQSSMJL4.mjs → stage-DfdUf2sj.mjs} +7 -7
  198. package/dist/{stage-BQSSMJL4.mjs.map → stage-DfdUf2sj.mjs.map} +1 -1
  199. package/dist/{stages-DpF2K3PZ.cjs → stages-BWg3NU3J.cjs} +2 -2
  200. package/dist/{stages-DpF2K3PZ.cjs.map → stages-BWg3NU3J.cjs.map} +1 -1
  201. package/dist/{stages-BsK1Ro4s.mjs → stages-COiipV8N.mjs} +2 -2
  202. package/dist/{stages-BsK1Ro4s.mjs.map → stages-COiipV8N.mjs.map} +1 -1
  203. package/dist/target/public.cjs +1 -1
  204. package/dist/target/public.mjs +1 -1
  205. package/dist/{terminal-DWROY7JE.mjs → terminal-BDKhPIBA.mjs} +3 -3
  206. package/dist/{terminal-DWROY7JE.mjs.map → terminal-BDKhPIBA.mjs.map} +1 -1
  207. package/dist/{terminal-BNjNr7BN.cjs → terminal-CFeiyJxJ.cjs} +3 -3
  208. package/dist/{terminal-BNjNr7BN.cjs.map → terminal-CFeiyJxJ.cjs.map} +1 -1
  209. package/dist/vitest.cjs +1 -1
  210. package/dist/vitest.mjs +1 -1
  211. package/dist/workspace/index.cjs +1 -1
  212. package/dist/workspace/index.mjs +1 -1
  213. package/dist/{workspace-Ciw3SnME.cjs → workspace-CEpojAus.cjs} +42 -15
  214. package/dist/workspace-CEpojAus.cjs.map +1 -0
  215. package/dist/{workspace-9q4TSHlM.mjs → workspace-_aoe8v6u.mjs} +43 -16
  216. package/dist/workspace-_aoe8v6u.mjs.map +1 -0
  217. package/package.json +15 -15
  218. package/dist/SubscriberGenerator-BybB6uez.mjs.map +0 -1
  219. package/dist/SubscriberGenerator-mZpSuSU7.cjs.map +0 -1
  220. package/dist/add-DsxJ0Knr.cjs.map +0 -1
  221. package/dist/add-Dt8QKSOw.mjs.map +0 -1
  222. package/dist/apps-C6s-trVp.cjs.map +0 -1
  223. package/dist/apps-w2sRQKCr.mjs.map +0 -1
  224. package/dist/compose-BqTuzitb.cjs.map +0 -1
  225. package/dist/compose-Csegtvq_.mjs.map +0 -1
  226. package/dist/compose-QSBmhr4V.cjs.map +0 -1
  227. package/dist/compose-RhuFQmZS.mjs.map +0 -1
  228. package/dist/credentialSchemas-BAklWDna.cjs.map +0 -1
  229. package/dist/credentialSchemas-mz9QZTYh.mjs.map +0 -1
  230. package/dist/databases-C1qqNxTu.mjs.map +0 -1
  231. package/dist/databases-CrKh5jw6.cjs.map +0 -1
  232. package/dist/deploy-BwJ7uWXd.cjs.map +0 -1
  233. package/dist/deploy-DDfnQm8l.mjs.map +0 -1
  234. package/dist/discover-CRywE7yc.cjs.map +0 -1
  235. package/dist/discover-DbDrCQ8h.mjs.map +0 -1
  236. package/dist/docker-Dy1ZJUzV.cjs.map +0 -1
  237. package/dist/docker-Ele34O8z.mjs.map +0 -1
  238. package/dist/encryption-BZ1zgtF5.cjs.map +0 -1
  239. package/dist/encryption-CHmfNBAy.mjs.map +0 -1
  240. package/dist/engine-B3Gmu8-O.mjs.map +0 -1
  241. package/dist/engine-DewbDHOq.cjs.map +0 -1
  242. package/dist/notes-9bOfe08J.mjs.map +0 -1
  243. package/dist/notes-DRdlsCYV.cjs.map +0 -1
  244. package/dist/ready-BjFMu_1J.mjs.map +0 -1
  245. package/dist/ready-eVMJIcWn.cjs.map +0 -1
  246. package/dist/snsSubscriptions-BRmEdsks.cjs.map +0 -1
  247. package/dist/snsSubscriptions-oUTOkG-s.mjs.map +0 -1
  248. package/dist/stack-2jMvQfLo.cjs.map +0 -1
  249. package/dist/stack-kcxH-2tZ.mjs.map +0 -1
  250. package/dist/workspace-9q4TSHlM.mjs.map +0 -1
  251. package/dist/workspace-Ciw3SnME.cjs.map +0 -1
@@ -1,12 +1,12 @@
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-D4DUPPPP.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-9q4TSHlM.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-RhuFQmZS.mjs";
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-BybB6uez.mjs";
3
+ import { E as providerOf, R as externalsManifestName, T as eventsBackendFor, bt as gkmHome, w as cacheBackendFor } from "./credentials-kK0X754I.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-rn_DWcup.mjs";
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
7
  import { i as holdsEveryCache, t as DEFAULT_CACHE } from "./types-Y1NfWlyG.mjs";
8
- import { u as telemetryArgs } from "./EndpointGenerator-B5BKAoLz.mjs";
9
- import { i as discover, w as workerEdges, x as eventsEdgeBucket } from "./discover-DbDrCQ8h.mjs";
8
+ import { u as telemetryArgs } from "./EndpointGenerator-CSKhAD6W.mjs";
9
+ import { i as discover, w as workerEdges, x as eventsEdgeBucket } from "./discover-B_PDDaVj.mjs";
10
10
  import { createRequire } from "node:module";
11
11
  import { dirname, isAbsolute, join, parse, posix, relative, sep } from "node:path";
12
12
  import { existsSync, readFileSync } from "node:fs";
@@ -15,7 +15,7 @@ import { hostname, networkInterfaces, userInfo } from "node:os";
15
15
  import { execFile, spawn } from "node:child_process";
16
16
  import { createServer } from "node:net";
17
17
  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, externalApiUrl, imageOriginSources, imageOrigins, isWildcardSite, kebabCase, mobileOrigins, provideKey, providedKeyFor, provisionOrder, publicEnvFor, schemeBase, wildcardDomainOf } from "@geekmidas/manifest";
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, schemeBase, senderAddress, wildcardDomainOf } from "@geekmidas/manifest";
19
19
  import { fileURLToPath } from "node:url";
20
20
  import { formatKeyring } from "@geekmidas/constructs/encryption";
21
21
  import { ownerRole, readerRole, roleStatements } from "@geekmidas/db/pg/roles";
@@ -267,9 +267,12 @@ function sitesFor(plan, project, addresses = {}, processorAddresses = {}) {
267
267
  });
268
268
  continue;
269
269
  }
270
+ const { aliases, redirects } = hostsFor(resource, project);
270
271
  sites.push({
271
272
  host,
272
- upstream
273
+ upstream,
274
+ ...aliases.length ? { aliases } : {},
275
+ ...redirects.length ? { redirects } : {}
273
276
  });
274
277
  }
275
278
  return sites;
@@ -333,6 +336,24 @@ function hostFor$1(resource, project) {
333
336
  ].filter(Boolean).join(".");
334
337
  }
335
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
+ /**
336
357
  * A resource's own label: its `subdomain` where it declared one, and a file
337
358
  * server's own name — the label a deploy uses too — with the stage it carries
338
359
  * kept, so `gkm test` and `gkm dev` still answer on different hosts.
@@ -384,7 +405,8 @@ function toCaddyfile(sites, options) {
384
405
  if (sites.length === 0) return `${GENERATED}
385
406
  # No file server is declared in this stage, so it routes nothing.
386
407
  `;
387
- const blocks = sites.map(({ host, upstream, rewrite, processors, tenants }) => {
408
+ const port = options.port && options.port !== 443 ? `:${options.port}` : "";
409
+ const blocks = sites.map(({ host, upstream, rewrite, processors, tenants, aliases, redirects }) => {
388
410
  const proxy = `reverse_proxy ${upstream} {${rewrite ? `
389
411
  rewrite ${rewrite}
390
412
  # MinIO routes and signs on the Host header, so forwarding the requested
@@ -396,8 +418,14 @@ function toCaddyfile(sites, options) {
396
418
  header_up Host {host}
397
419
  header_up X-Forwarded-Proto {scheme}`}
398
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("");
399
427
  return `
400
- https://${host} {
428
+ ${[host, ...aliases ?? []].map((name) => `https://${name}`).join(", ")} {
401
429
  tls ${options.certificate} ${options.certificate}
402
430
 
403
431
  ${clientIpRule(options.edgeToken)}
@@ -412,7 +440,7 @@ ${processors ? `
412
440
  }
413
441
  }
414
442
  ` : ""}${tenants ? tenantBlock(tenants, proxy) : ` ${proxy}`}
415
- }`;
443
+ }${redirectBlocks}`;
416
444
  });
417
445
  return `${GENERATED}${blocks.join("\n")}\n`;
418
446
  }
@@ -647,7 +675,7 @@ const REQUIRES = { "redis-http": ["redis"] };
647
675
  *
648
676
  * The twin of `ProvidesByKind` in `@geekmidas/manifest`: that is what a
649
677
  * construct declares, this is what the local target resolves, and both derive
650
- * the key from the same `provideKey` so they cannot disagree.
678
+ * the key from the same `providedKeyFor` so they cannot disagree.
651
679
  */
652
680
  const ROLES = {
653
681
  queue: "publisherConnectionString",
@@ -779,7 +807,7 @@ function planFor(manifest, stage, order, options = {}) {
779
807
  provisions: PROVISIONS[declaration.kind] === true,
780
808
  ...declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "objects" || declaration.kind === "file-server" ? { callers: dependentsOf(manifest, id) } : {},
781
809
  ...declaration.kind === "site" ? { publicEnv: publicEnvFor(declaration, manifest) } : {},
782
- ...(declaration.kind === "site" || declaration.kind === "mobile-app") && imageOriginSources(declaration, manifest).length > 0 ? { imageOrigins: {
810
+ ...isPublicDeclaration(declaration) && imageOriginSources(declaration, manifest).length > 0 ? { imageOrigins: {
783
811
  key: `${PUBLIC_PREFIX[declaration.variant]}${IMAGE_ORIGINS_KEY}`,
784
812
  sources: imageOriginSources(declaration, manifest)
785
813
  } } : {},
@@ -789,6 +817,7 @@ function planFor(manifest, stage, order, options = {}) {
789
817
  } : {},
790
818
  ...declaration.kind === "file-server" && declaration.open?.length ? { open: declaration.open } : {},
791
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 } : {},
792
821
  ...declaration.kind === "inbox" ? { inbox: {
793
822
  addresses: declaration.addresses,
794
823
  subdomains: declaration.subdomains === true,
@@ -796,6 +825,8 @@ function planFor(manifest, stage, order, options = {}) {
796
825
  } } : {},
797
826
  ...declaration.kind === "objects" && bucketExpiry(manifest, id) ? { expire: bucketExpiry(manifest, id) } : {},
798
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] } : {},
799
830
  ...isWildcardSite(declaration) ? {
800
831
  protectedSubdomains: protectedSubdomains(manifest, options.protectedSubdomains),
801
832
  ...declaration.hosts ? { hosts: declaration.hosts } : {}
@@ -914,7 +945,7 @@ var PgBossNeedsDatabase = class extends GkmError {
914
945
  function signedOrigins(buckets, lookup) {
915
946
  const origins = {};
916
947
  for (const id of buckets) {
917
- const connection = lookup(provideKey(id, "connectionString"));
948
+ const connection = lookup(providedKeyFor(id, "objects", "connectionString"));
918
949
  if (!connection?.startsWith("s3:")) continue;
919
950
  let origin;
920
951
  try {
@@ -922,7 +953,7 @@ function signedOrigins(buckets, lookup) {
922
953
  } catch {
923
954
  continue;
924
955
  }
925
- if (origin) origins[provideKey(id, "signedOrigin")] = origin;
956
+ if (origin) origins[providedKeyFor(id, "objects", "signedOrigin")] = origin;
926
957
  }
927
958
  return origins;
928
959
  }
@@ -1018,33 +1049,35 @@ function envFor(plan, options) {
1018
1049
  const url = urlFor(resource, plan, options.ports, options.project ?? "", options.addresses, credential, devices.has(resource.id) ? options.lanAddress : void 0);
1019
1050
  if (url) resolved[resource.id] = url;
1020
1051
  }
1052
+ const aliased = aliasAddressesFor(plan, options);
1021
1053
  for (const resource of plan.resources) {
1022
1054
  const url = resolved[resource.id];
1023
1055
  if (resource.kind === "rest-api") Object.assign(env, surfaceEnv(resource, url, resolved, {
1024
1056
  plan,
1057
+ aliased,
1025
1058
  ...options.addresses ? { addresses: options.addresses } : {},
1026
1059
  ...options.lanAddress ? { lanAddress: options.lanAddress } : {},
1027
1060
  ...options.metroPorts ? { metroPorts: options.metroPorts } : {}
1028
1061
  }));
1029
1062
  if (resource.kind === "websocket-api") {
1030
- const origins = surfaceEnv(resource, url, resolved)[provideKey(resource.id, "trustedOrigins")];
1031
- if (origins !== void 0) env[provideKey(resource.id, "trustedOrigins")] = origins;
1063
+ const origins = surfaceEnv(resource, url, resolved, { aliased })[providedKeyFor(resource.id, resource.kind, "trustedOrigins")];
1064
+ if (origins !== void 0) env[providedKeyFor(resource.id, resource.kind, "trustedOrigins")] = origins;
1032
1065
  const publisher = webSocketPublisher(resource, options.ports, options.project ?? "", credential);
1033
- if (publisher) env[provideKey(resource.id, "publisherConnectionString")] = publisher;
1066
+ if (publisher) env[providedKeyFor(resource.id, resource.kind, "publisherConnectionString")] = publisher;
1034
1067
  }
1035
1068
  if (url) env[resource.envKey] = url;
1036
1069
  if (resource.kind === "site" && resource.protectedSubdomains && url) {
1037
1070
  const domain = wildcardDomainOf(new URL(url).hostname);
1038
1071
  if (domain) {
1039
- env[provideKey(resource.id, "domain")] = domain;
1040
- env[provideKey(resource.id, "protectedSubdomains")] = resource.protectedSubdomains.join(",");
1072
+ env[providedKeyFor(resource.id, resource.kind, "domain")] = domain;
1073
+ env[providedKeyFor(resource.id, resource.kind, "protectedSubdomains")] = resource.protectedSubdomains.join(",");
1041
1074
  }
1042
1075
  }
1043
1076
  if (isDatabase(resource.kind) && resource.roles !== false) {
1044
1077
  const owner = ownerUrl(resource, plan, options.ports, options.project ?? "", credential);
1045
- if (owner) env[provideKey(resource.id, "ownerUrl")] = owner;
1078
+ if (owner) env[providedKeyFor(resource.id, resource.kind, "ownerUrl")] = owner;
1046
1079
  }
1047
- if (resource.kind === "external-api" && url && resource.fake) env[provideKey(resource.id, "credentials")] = resource.fake.credentials;
1080
+ if (resource.kind === "external-api" && url && resource.fake) env[providedKeyFor(resource.id, resource.kind, "credentials")] = resource.fake.credentials;
1048
1081
  if (resource.kind === "credential" && resource.fakeCredentials !== void 0) env[resource.envKey] = resource.fakeCredentials;
1049
1082
  if (resource.kind === "telemetry" && url) {
1050
1083
  const login = options.credentials.logs;
@@ -1056,18 +1089,18 @@ function envFor(plan, options) {
1056
1089
  if (resource.kind === "inbox" && url) {
1057
1090
  const base = resource.id.toLowerCase();
1058
1091
  const stage = resource.name === base ? void 0 : resource.name.slice(base.length + 1);
1059
- env[provideKey(resource.id, "domain")] = [
1092
+ env[providedKeyFor(resource.id, resource.kind, "domain")] = [
1060
1093
  stage,
1061
1094
  options.project,
1062
1095
  LOCAL_HOST
1063
1096
  ].filter(Boolean).join(".");
1064
1097
  const smtp = options.ports[primaryPortKey("mailpit")];
1065
- if (smtp !== void 0) env[provideKey(resource.id, "smtpUrl")] = `smtp://${LOCAL_HOST}:${smtp}`;
1098
+ if (smtp !== void 0) env[providedKeyFor(resource.id, resource.kind, "smtpUrl")] = `smtp://${LOCAL_HOST}:${smtp}`;
1066
1099
  }
1067
1100
  if (resource.kind === "email" && url) {
1068
- env[provideKey(resource.id, "from")] = options.mailFrom ?? `noreply@${LOCAL_HOST}`;
1101
+ env[providedKeyFor(resource.id, resource.kind, "from")] = senderAddress(resource, options.mailDomain ?? LOCAL_HOST);
1069
1102
  const inbox = options.ports[MAILPIT_INBOX_PORT];
1070
- if (inbox !== void 0) env[provideKey(resource.id, "inboxUrl")] = `http://${LOCAL_HOST}:${inbox}`;
1103
+ if (inbox !== void 0) env[providedKeyFor(resource.id, resource.kind, "inboxUrl")] = `http://${LOCAL_HOST}:${inbox}`;
1071
1104
  }
1072
1105
  }
1073
1106
  Object.assign(env, signedOrigins(plan.resources.filter((r) => r.kind === "objects").map((r) => r.id), (key) => env[key]));
@@ -1078,8 +1111,8 @@ function envFor(plan, options) {
1078
1111
  if (resource.kind !== "objects" || resource.container !== "minio") continue;
1079
1112
  if (!options.relayedBuckets.includes(resource.id)) continue;
1080
1113
  if (!env[resource.envKey]) continue;
1081
- env[provideKey(resource.id, "eventsConnectionString")] = relay;
1082
- env[provideKey(resource.id, "eventsToken")] = objectsWebhookToken(options.project ?? "", resource.id, credential.seed);
1114
+ env[providedKeyFor(resource.id, resource.kind, "eventsConnectionString")] = relay;
1115
+ env[providedKeyFor(resource.id, resource.kind, "eventsToken")] = objectsWebhookToken(options.project ?? "", resource.id, credential.seed);
1083
1116
  }
1084
1117
  if (plan.resources.some((r) => r.kind === "inbox" && env[r.envKey])) env[INBOX_RELAY_TOKEN_KEY] = inboxRelayToken(options.project ?? "", credential.seed);
1085
1118
  if (plan.resources.some((r) => (r.kind === "rest-api" || r.kind === "websocket-api") && env[r.envKey])) env[EDGE_TOKEN_KEY] = edgeToken(options.project ?? "", credential.seed);
@@ -1131,7 +1164,7 @@ function publicEnv(plan, resolved, addresses = {}) {
1131
1164
  */
1132
1165
  function surfaceEnv(resource, url, resolved = {}, local = {}) {
1133
1166
  if (!url) return {};
1134
- const origins = [...new Set((resource.callers ?? []).map((caller) => resolved[caller]).filter((address) => Boolean(address)).map(originOf).filter((origin) => Boolean(origin)))].sort();
1167
+ const origins = [...new Set((resource.callers ?? []).flatMap((caller) => resolved[caller] ? [resolved[caller], ...local.aliased?.[caller] ?? []] : []).map(originOf).filter((origin) => Boolean(origin)))].sort();
1135
1168
  const domain = cookieDomain([url, ...origins]);
1136
1169
  const mobile = (resource.callers ?? []).map((caller) => local.plan?.resources.find((r) => r.id === caller && r.kind === "mobile-app")).filter((caller) => Boolean(caller));
1137
1170
  const hosts = [...local.lanAddress ? [local.lanAddress] : [], LOCAL_HOST];
@@ -1146,12 +1179,29 @@ function surfaceEnv(resource, url, resolved = {}, local = {}) {
1146
1179
  const own = local.addresses?.[resource.id];
1147
1180
  const device = mobile.length > 0 && local.lanAddress && own ? own.replace(/\/\/(localhost|127\.0\.0\.1)(?=[:/]|$)/, `//${local.lanAddress}`) : void 0;
1148
1181
  return {
1149
- [provideKey(resource.id, "trustedOrigins")]: [...origins, ...new Set(schemes)].join(","),
1150
- ...domain ? { [provideKey(resource.id, "cookieDomain")]: domain } : {},
1151
- ...device ? { [provideKey(resource.id, "deviceUrl")]: device } : {}
1182
+ [providedKeyFor(resource.id, resource.kind, "trustedOrigins")]: [...origins, ...new Set(schemes)].join(","),
1183
+ ...domain ? { [providedKeyFor(resource.id, resource.kind, "cookieDomain")]: domain } : {},
1184
+ ...device ? { [providedKeyFor(resource.id, resource.kind, "deviceUrl")]: device } : {}
1152
1185
  };
1153
1186
  }
1154
1187
  /**
1188
+ * Every construct's alias addresses: where a target placed them, and
1189
+ * otherwise — behind the local edge — each alias under the project, on the
1190
+ * edge's port, as {@link hostsFor} names it. Never a redirect's.
1191
+ */
1192
+ function aliasAddressesFor(plan, options) {
1193
+ if (options.aliasAddresses) return { ...options.aliasAddresses };
1194
+ const edge = plan.containers.includes("caddy") ? options.ports[primaryPortKey("caddy")] : void 0;
1195
+ if (edge === void 0) return {};
1196
+ const aliased = {};
1197
+ for (const resource of plan.resources) {
1198
+ if (!resource.aliases?.length) continue;
1199
+ if (!options.addresses?.[resource.id]) continue;
1200
+ aliased[resource.id] = hostsFor(resource, options.project ?? "").aliases.map((host) => `https://${host}:${edge}`);
1201
+ }
1202
+ return aliased;
1203
+ }
1204
+ /**
1155
1205
  * The buckets whose links a phone opens: those a surface a mobile app calls
1156
1206
  * depends on.
1157
1207
  *
@@ -2354,7 +2404,7 @@ function isUnder(file, dir) {
2354
2404
  */
2355
2405
  function publicBuildValues(site, manifest, resolve, secrets) {
2356
2406
  const args = {};
2357
- const own = provideKey(site.id, site.kind === "site" ? "url" : "scheme");
2407
+ const own = providedKeyFor(site.id, site.kind, site.kind === "site" ? "url" : "scheme");
2358
2408
  const ownValue = resolve(own);
2359
2409
  if (ownValue) args[own] = ownValue;
2360
2410
  const derived = signedOrigins(Object.keys(manifest).filter((id) => manifest[id]?.kind === "objects"), resolve);
@@ -2394,7 +2444,7 @@ const OFFLINE_BUILD_ADDRESS = "127.0.0.1";
2394
2444
  */
2395
2445
  function offlineBuildHosts(site, manifest, resolve) {
2396
2446
  if (site.prerender === "stage") return [];
2397
- const sources = [provideKey(site.id, "url"), ...Object.values(publicEnvFor(site, manifest))];
2447
+ const sources = [providedKeyFor(site.id, site.kind, "url"), ...Object.values(publicEnvFor(site, manifest))];
2398
2448
  const hosts = /* @__PURE__ */ new Set();
2399
2449
  for (const source of sources) {
2400
2450
  const host = hostOf(resolve(source));
@@ -3513,7 +3563,7 @@ function processorOriginHost(serverId, domain) {
3513
3563
  }
3514
3564
  /** The stage secret holding the header's value: `ASSETS_SERVER_ORIGIN_SECRET`. */
3515
3565
  function originSecretKey(serverId) {
3516
- return provideKey(serverId, "originSecret");
3566
+ return environmentCase(`${serverId}_originSecret`);
3517
3567
  }
3518
3568
  /**
3519
3569
  * What the processor unit reads that secret from. Set wherever the CDN fronts
@@ -4826,9 +4876,11 @@ async function reconcile(options) {
4826
4876
  const sites = sitesFor(plan, project, options.addresses, options.processorAddresses);
4827
4877
  const edged = plan.containers.includes("caddy");
4828
4878
  const authorityPaths = options.authority ?? localAuthorityPaths();
4879
+ const edgePort = ports[primaryPortKey("caddy")];
4829
4880
  const caddyfile = toCaddyfile(sites, {
4830
4881
  certificate: `${CADDY_SITES_IN_CONTAINER}/${stage}.pem`,
4831
- edgeToken: edgeToken(project, seed)
4882
+ edgeToken: edgeToken(project, seed),
4883
+ ...edgePort !== void 0 ? { port: edgePort } : {}
4832
4884
  });
4833
4885
  const hash = planHash(plan, compose, {
4834
4886
  caddyfile,
@@ -4842,7 +4894,7 @@ async function reconcile(options) {
4842
4894
  project,
4843
4895
  credentials,
4844
4896
  seed,
4845
- ...options.mailFrom ? { mailFrom: options.mailFrom } : {},
4897
+ ...options.mailDomain ? { mailDomain: options.mailDomain } : {},
4846
4898
  ...options.addresses ? { addresses: options.addresses } : {},
4847
4899
  ...lan ? { lanAddress: lan } : {},
4848
4900
  ...options.metroPorts ? { metroPorts: options.metroPorts } : {},
@@ -4870,7 +4922,11 @@ async function reconcile(options) {
4870
4922
  hash,
4871
4923
  changed: false
4872
4924
  };
4873
- const certificate = edged ? await ensureLocalCertificate(await ensureLocalAuthority(authorityPaths), localCertificateNames(project, sites.map((site) => site.host)), join(root, caddyCertificatePath(stage))) : void 0;
4925
+ const certificate = edged ? await ensureLocalCertificate(await ensureLocalAuthority(authorityPaths), localCertificateNames(project, sites.flatMap((site) => [
4926
+ site.host,
4927
+ ...site.aliases ?? [],
4928
+ ...site.redirects ?? []
4929
+ ])), join(root, caddyCertificatePath(stage))) : void 0;
4874
4930
  const recorded = await loadState(root, stage);
4875
4931
  const postgresPort = ports[primaryPortKey("postgres")];
4876
4932
  if (!certificate?.issued && recorded?.hash === hash && existsSync(composePath) && (!start || await docker.healthy(composePath, running, { mounted: CHECKOUT_MOUNTS })) && (!start || !provision || postgresPort === void 0 || await databasesExist(sql(postgresPort, options.credentials.postgres), postgresDatabaseNames(plan)))) return result;
@@ -5358,7 +5414,7 @@ function networkEnv(plan, options, hostOf = (container) => container) {
5358
5414
  * fails on its first local request rather than in production.
5359
5415
  *
5360
5416
  * What an edge `caller.dependsOn([target])` hands each side, `<C>` and `<T>`
5361
- * being the caller's and the target's ids (`provideKey`) — keep this list and
5417
+ * being the caller's and the target's ids (`providedKeyFor`) — keep this list and
5362
5418
  * `apps/docs/guide/edges.md` in step with the code below:
5363
5419
  *
5364
5420
  * - `rest-api`: the caller gets `<T>_URL`. The target gets `<C>_URL` from a
@@ -5409,9 +5465,9 @@ function appEnvKeys(manifest, appName) {
5409
5465
  ...declaration.requires ?? [],
5410
5466
  ...declaration.kind === "rest-api" ? declaration.endpoints.flatMap((endpoint) => endpoint.requires ?? []) : []
5411
5467
  ]);
5412
- addEdgeKeys(manifest, dependenciesOf(declaration).map((edge) => edge.target), keys, declaration.kind === "site" || declaration.kind === "mobile-app");
5468
+ addEdgeKeys(manifest, dependenciesOf(declaration).map((edge) => edge.target), keys, isPublicDeclaration(declaration));
5413
5469
  if (declaration.kind === "rest-api" || declaration.kind === "websocket-api") for (const key of callerKeys(manifest, id)) keys.add(key);
5414
- if (declaration.kind === "site" || declaration.kind === "mobile-app") {
5470
+ if (isPublicDeclaration(declaration)) {
5415
5471
  for (const key of TELEMETRY_KEYS) keys.delete(key);
5416
5472
  for (const key of Object.keys(publicEnvFor(declaration, manifest))) keys.add(key);
5417
5473
  }
@@ -5551,8 +5607,8 @@ function callerKeys(manifest, surfaceId) {
5551
5607
  const keys = [];
5552
5608
  for (const caller of dependentsOf(manifest, surfaceId)) {
5553
5609
  const declaration = manifest[caller];
5554
- if (declaration?.kind === "mobile-app") keys.push(provideKey(caller, "scheme"));
5555
- else if (declaration?.kind === "site") keys.push(provideKey(caller, "url"));
5610
+ if (declaration?.kind === "mobile-app") keys.push(providedKeyFor(caller, declaration.kind, "scheme"));
5611
+ else if (declaration?.kind === "site") keys.push(providedKeyFor(caller, declaration.kind, "url"));
5556
5612
  }
5557
5613
  return keys;
5558
5614
  }
@@ -5565,20 +5621,20 @@ function addEdgeKeys(manifest, edges, keys, client = false) {
5565
5621
  const bucket = eventsEdgeBucket(id);
5566
5622
  if (bucket) {
5567
5623
  if (manifest[bucket]?.kind === "objects") {
5568
- keys.add(provideKey(bucket, "eventsConnectionString"));
5569
- keys.add(provideKey(bucket, "eventsToken"));
5624
+ keys.add(providedKeyFor(bucket, "objects", "eventsConnectionString"));
5625
+ keys.add(providedKeyFor(bucket, "objects", "eventsToken"));
5570
5626
  }
5571
5627
  continue;
5572
5628
  }
5573
5629
  const target = manifest[id];
5574
5630
  if (!target) continue;
5575
5631
  if (target.kind === "rest-api") {
5576
- keys.add(provideKey(id, "url"));
5632
+ keys.add(providedKeyFor(id, target.kind, "url"));
5577
5633
  continue;
5578
5634
  }
5579
5635
  if (target.kind === "websocket-api") {
5580
- keys.add(provideKey(id, "url"));
5581
- if (!client) keys.add(provideKey(id, "publisherConnectionString"));
5636
+ keys.add(providedKeyFor(id, target.kind, "url"));
5637
+ if (!client) keys.add(providedKeyFor(id, target.kind, "publisherConnectionString"));
5582
5638
  continue;
5583
5639
  }
5584
5640
  for (const key of target.provides ?? []) keys.add(key);
@@ -5673,6 +5729,6 @@ function healthcheck(port, path) {
5673
5729
  };
5674
5730
  }
5675
5731
  //#endregion
5676
- export { imageBuildCredentials as $, originSecretKey as A, TELEMETRY_CONTAINER as At, WORKER_PORT as B, LOCAL_TLD 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, scopeTelemetryEnv as Ft, generateEntryDockerfile as G, backupExpiries as Gt, findBuildRoot as H, hostFor$1 as Ht, LOCAL_CA_BUILD_SECRET as I, siteClientTelemetry as It, generateProcessorDockerfile as J, runTime as Jt, generateNextjsDockerfile as K, backupFile as Kt, PRERENDER_RUN_ARG as L, surfaceClientTraced as Lt, appImageOptions as M, resourceName as Mt, composeBuildPaths as N, appTelemetry as Nt, PROCESSOR_ORIGIN_SECRET_ENV as O, localRolePassword as Ot, fromBuildRoot as P, isTelemetryKey as Pt, resolveDockerConfig as Q, PROCESSOR_PORT as R, telemetryOf as Rt, ensureLocalAuthority as S, bucketPolicies as St, localCertificateNames as T, quoteIdentifier as Tt, generateBackendDockerfile as U, PROCESSORS_DEV_PREFIX as Ut, detectPackageManager as V, clientIpRule as Vt, generateDockerignore as W, backupDatabases as Wt, generateWorkerDockerfile as X, deploysWithCompose as Xt, generateViteStaticDockerfile as Y, stageBackups as Yt, 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, planFor 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, backupsPrefix 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, usesTelemetry as zt };
5732
+ export { imageBuildCredentials as $, originSecretKey as A, TELEMETRY_CONTAINER as At, WORKER_PORT as B, LOCAL_TLD 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, scopeTelemetryEnv as Ft, generateEntryDockerfile as G, backupDatabases as Gt, findBuildRoot as H, hostFor$1 as Ht, LOCAL_CA_BUILD_SECRET as I, siteClientTelemetry as It, generateProcessorDockerfile as J, backupsPrefix as Jt, generateNextjsDockerfile as K, backupExpiries as Kt, PRERENDER_RUN_ARG as L, surfaceClientTraced as Lt, appImageOptions as M, resourceName as Mt, composeBuildPaths as N, appTelemetry as Nt, PROCESSOR_ORIGIN_SECRET_ENV as O, localRolePassword as Ot, fromBuildRoot as P, isTelemetryKey as Pt, resolveDockerConfig as Q, PROCESSOR_PORT as R, telemetryOf as Rt, ensureLocalAuthority as S, bucketPolicies as St, localCertificateNames as T, quoteIdentifier as Tt, generateBackendDockerfile as U, hostsFor as Ut, detectPackageManager as V, clientIpRule as Vt, generateDockerignore as W, PROCESSORS_DEV_PREFIX as Wt, generateWorkerDockerfile as X, stageBackups as Xt, generateViteStaticDockerfile as Y, runTime as Yt, nextPrerenderManifest as Z, deploysWithCompose 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, planFor 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, backupFile 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, usesTelemetry as zt };
5677
5733
 
5678
- //# sourceMappingURL=apps-w2sRQKCr.mjs.map
5734
+ //# sourceMappingURL=apps-C21-TXqR.mjs.map