@geekmidas/cli 10.0.0-alpha.166 → 10.0.0-alpha.168

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 (259) 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-mnY-cdD2.mjs → GoDaddyProvider-CJIYlkUN.mjs} +2 -2
  6. package/dist/{GoDaddyProvider-mnY-cdD2.mjs.map → GoDaddyProvider-CJIYlkUN.mjs.map} +1 -1
  7. package/dist/{GoDaddyProvider-DClFHezd.cjs → GoDaddyProvider-CYAlIeML.cjs} +2 -2
  8. package/dist/{GoDaddyProvider-DClFHezd.cjs.map → GoDaddyProvider-CYAlIeML.cjs.map} +1 -1
  9. package/dist/{HostingerProvider-BMyz2LnZ.cjs → HostingerProvider-Ceqc_nlG.cjs} +2 -2
  10. package/dist/{HostingerProvider-BMyz2LnZ.cjs.map → HostingerProvider-Ceqc_nlG.cjs.map} +1 -1
  11. package/dist/{HostingerProvider-39eSGyBa.mjs → HostingerProvider-Tb0bnTpM.mjs} +2 -2
  12. package/dist/{HostingerProvider-39eSGyBa.mjs.map → HostingerProvider-Tb0bnTpM.mjs.map} +1 -1
  13. package/dist/{LegacyStateStore-BJY7ntQk.cjs → LegacyStateStore-Ci-CRqt2.cjs} +2 -2
  14. package/dist/{LegacyStateStore-BJY7ntQk.cjs.map → LegacyStateStore-Ci-CRqt2.cjs.map} +1 -1
  15. package/dist/{LegacyStateStore-B2TBaSMq.mjs → LegacyStateStore-DJWY64Jj.mjs} +2 -2
  16. package/dist/{LegacyStateStore-B2TBaSMq.mjs.map → LegacyStateStore-DJWY64Jj.mjs.map} +1 -1
  17. package/dist/{LocalStateStore-8LFd-aMA.mjs → LocalStateStore-BFgjv29N.mjs} +2 -2
  18. package/dist/{LocalStateStore-8LFd-aMA.mjs.map → LocalStateStore-BFgjv29N.mjs.map} +1 -1
  19. package/dist/{LocalStateStore-BvoEjPi5.cjs → LocalStateStore-Enw_wV7d.cjs} +2 -2
  20. package/dist/{LocalStateStore-BvoEjPi5.cjs.map → LocalStateStore-Enw_wV7d.cjs.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-eeA5NXRa.cjs → S3StateStore-B48M3z7L.cjs} +4 -4
  26. package/dist/{S3StateStore-eeA5NXRa.cjs.map → S3StateStore-B48M3z7L.cjs.map} +1 -1
  27. package/dist/{S3StateStore-DMzsqfSa.mjs → S3StateStore-Cwfd-ZnJ.mjs} +4 -4
  28. package/dist/{S3StateStore-DMzsqfSa.mjs.map → S3StateStore-Cwfd-ZnJ.mjs.map} +1 -1
  29. package/dist/{SSMStateStore-BUv-du0T.cjs → SSMStateStore-CuBe-NK5.cjs} +2 -2
  30. package/dist/{SSMStateStore-BUv-du0T.cjs.map → SSMStateStore-CuBe-NK5.cjs.map} +1 -1
  31. package/dist/{SSMStateStore-CE2DTAtT.mjs → SSMStateStore-DYgE98Sm.mjs} +2 -2
  32. package/dist/{SSMStateStore-CE2DTAtT.mjs.map → SSMStateStore-DYgE98Sm.mjs.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-Dp0KQNkQ.cjs → add-4AT0LlDK.cjs} +11 -11
  38. package/dist/add-4AT0LlDK.cjs.map +1 -0
  39. package/dist/{add-BgCYGJpE.mjs → add-C85tazt0.mjs} +12 -12
  40. package/dist/add-C85tazt0.mjs.map +1 -0
  41. package/dist/{apps-DkMR-qvD.cjs → apps-By6pnfzA.cjs} +99 -45
  42. package/dist/apps-By6pnfzA.cjs.map +1 -0
  43. package/dist/{apps-CJTOIaz3.mjs → apps-CWGmV2nQ.mjs} +99 -46
  44. package/dist/apps-CWGmV2nQ.mjs.map +1 -0
  45. package/dist/{bundler-Dt1ffXl6.mjs → bundler-B9rkNGpK.mjs} +6 -6
  46. package/dist/{bundler-Dt1ffXl6.mjs.map → bundler-B9rkNGpK.mjs.map} +1 -1
  47. package/dist/{bundler-CA7KimJ0.cjs → bundler-DPBLrtjT.cjs} +6 -6
  48. package/dist/{bundler-CA7KimJ0.cjs.map → bundler-DPBLrtjT.cjs.map} +1 -1
  49. package/dist/{cli-CY1Cp8yN.cjs → cli-BnWRqhwx.cjs} +4 -4
  50. package/dist/{cli-CY1Cp8yN.cjs.map → cli-BnWRqhwx.cjs.map} +1 -1
  51. package/dist/{cli-C-fdEb8N.mjs → cli-DgL0QED8.mjs} +4 -4
  52. package/dist/{cli-C-fdEb8N.mjs.map → cli-DgL0QED8.mjs.map} +1 -1
  53. package/dist/{compose-SmuCWWUh.cjs → compose-CLM-sqgE.cjs} +76 -11
  54. package/dist/compose-CLM-sqgE.cjs.map +1 -0
  55. package/dist/{compose-tX6YTa1U.mjs → compose-CcK-QoYU.mjs} +66 -13
  56. package/dist/compose-CcK-QoYU.mjs.map +1 -0
  57. package/dist/{compose-CZGeE6QJ.mjs → compose-DuRBnjxx.mjs} +9 -9
  58. package/dist/compose-DuRBnjxx.mjs.map +1 -0
  59. package/dist/{compose-BIm9yNH7.cjs → compose-DwjaxFFK.cjs} +8 -8
  60. package/dist/compose-DwjaxFFK.cjs.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-CS3Dr-pv.cjs → credentials-CCCAy3NL.cjs} +7 -7
  68. package/dist/{credentials-CS3Dr-pv.cjs.map → credentials-CCCAy3NL.cjs.map} +1 -1
  69. package/dist/{credentials-V3WgiKmZ.mjs → credentials-CeCOEKP3.mjs} +7 -7
  70. package/dist/{credentials-V3WgiKmZ.mjs.map → credentials-CeCOEKP3.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.d.cts.map +1 -1
  77. package/dist/deploy/public.d.mts.map +1 -1
  78. package/dist/deploy/public.mjs +12 -12
  79. package/dist/{deploy--ia-CGMv.cjs → deploy-Dy5jyciI.cjs} +123 -38
  80. package/dist/deploy-Dy5jyciI.cjs.map +1 -0
  81. package/dist/{deploy-BWFFSN5p.mjs → deploy-F6GA-u59.mjs} +124 -39
  82. package/dist/deploy-F6GA-u59.mjs.map +1 -0
  83. package/dist/{destroy-CrxF8Dlk.cjs → destroy-B7-8EgCJ.cjs} +9 -9
  84. package/dist/{destroy-CrxF8Dlk.cjs.map → destroy-B7-8EgCJ.cjs.map} +1 -1
  85. package/dist/{destroy-ZNiKL3--.mjs → destroy-Gyxrl5yO.mjs} +9 -9
  86. package/dist/{destroy-ZNiKL3--.mjs.map → destroy-Gyxrl5yO.mjs.map} +1 -1
  87. package/dist/{discover-CRywE7yc.cjs → discover-39VKSE2i.cjs} +5 -5
  88. package/dist/discover-39VKSE2i.cjs.map +1 -0
  89. package/dist/{discover-DbDrCQ8h.mjs → discover-B_PDDaVj.mjs} +6 -6
  90. package/dist/discover-B_PDDaVj.mjs.map +1 -0
  91. package/dist/{docker-DhmU416x.mjs → docker-COHyyOkv.mjs} +16 -12
  92. package/dist/docker-COHyyOkv.mjs.map +1 -0
  93. package/dist/{docker-BtUjo-J_.cjs → docker-CP4bspkW.cjs} +15 -11
  94. package/dist/docker-CP4bspkW.cjs.map +1 -0
  95. package/dist/{dokploy-ComPiFLl.cjs → dokploy-C7ampvzk.cjs} +2 -2
  96. package/dist/{dokploy-ComPiFLl.cjs.map → dokploy-C7ampvzk.cjs.map} +1 -1
  97. package/dist/{dokploy-BszAUbbA.mjs → dokploy-DBmB9vWu.mjs} +2 -2
  98. package/dist/{dokploy-BszAUbbA.mjs.map → dokploy-DBmB9vWu.mjs.map} +1 -1
  99. package/dist/{eas-zxVAWY6c.cjs → eas-CbnTdz8d.cjs} +3 -3
  100. package/dist/{eas-zxVAWY6c.cjs.map → eas-CbnTdz8d.cjs.map} +1 -1
  101. package/dist/{eas-DQudP2g2.mjs → eas-EXRkhGSM.mjs} +3 -3
  102. package/dist/{eas-DQudP2g2.mjs.map → eas-EXRkhGSM.mjs.map} +1 -1
  103. package/dist/{encryption-CU5O0Y61.cjs → encryption-CdDDSAu_.cjs} +4 -4
  104. package/dist/encryption-CdDDSAu_.cjs.map +1 -0
  105. package/dist/{encryption-BCaweYBJ.mjs → encryption-lLZV2eMs.mjs} +5 -5
  106. package/dist/encryption-lLZV2eMs.mjs.map +1 -0
  107. package/dist/{engine-xrlcbr1g.cjs → engine-Cg92m1Xf.cjs} +38 -38
  108. package/dist/engine-Cg92m1Xf.cjs.map +1 -0
  109. package/dist/{engine-BzeCK6e8.mjs → engine-ZzUy2czq.mjs} +39 -39
  110. package/dist/engine-ZzUy2czq.mjs.map +1 -0
  111. package/dist/{github-Jcrqfzg0.cjs → github-BHqRcUgU.cjs} +8 -8
  112. package/dist/{github-Jcrqfzg0.cjs.map → github-BHqRcUgU.cjs.map} +1 -1
  113. package/dist/{github-CHClpJZS.mjs → github-CPpJmNgV.mjs} +8 -8
  114. package/dist/{github-CHClpJZS.mjs.map → github-CPpJmNgV.mjs.map} +1 -1
  115. package/dist/{googlePlay-e_tIBr4n.cjs → googlePlay-DRz0ya3q.cjs} +4 -4
  116. package/dist/{googlePlay-e_tIBr4n.cjs.map → googlePlay-DRz0ya3q.cjs.map} +1 -1
  117. package/dist/{googlePlay-Dk_pnif9.mjs → googlePlay-Dg-0ASWN.mjs} +4 -4
  118. package/dist/{googlePlay-Dk_pnif9.mjs.map → googlePlay-Dg-0ASWN.mjs.map} +1 -1
  119. package/dist/{iam-BKfO7u14.mjs → iam-CLIne3Ny.mjs} +2 -2
  120. package/dist/{iam-BKfO7u14.mjs.map → iam-CLIne3Ny.mjs.map} +1 -1
  121. package/dist/{iam-B6WLUf_x.cjs → iam-b4IvC1fm.cjs} +2 -2
  122. package/dist/{iam-B6WLUf_x.cjs.map → iam-b4IvC1fm.cjs.map} +1 -1
  123. package/dist/index.cjs +367 -128
  124. package/dist/index.cjs.map +1 -1
  125. package/dist/index.mjs +368 -129
  126. package/dist/index.mjs.map +1 -1
  127. package/dist/{local-Dc2h2Ex3.cjs → local-BIrl0ENw.cjs} +3 -3
  128. package/dist/{local-Dc2h2Ex3.cjs.map → local-BIrl0ENw.cjs.map} +1 -1
  129. package/dist/{local-DUi3f-WB.mjs → local-Cin6exc0.mjs} +3 -3
  130. package/dist/{local-DUi3f-WB.mjs.map → local-Cin6exc0.mjs.map} +1 -1
  131. package/dist/{migrate-BU4eyd7z.cjs → migrate-BtkwylxW.cjs} +7 -7
  132. package/dist/{migrate-BU4eyd7z.cjs.map → migrate-BtkwylxW.cjs.map} +1 -1
  133. package/dist/{migrate-CIjcBr96.cjs → migrate-CxI07Ey0.cjs} +3 -3
  134. package/dist/{migrate-CIjcBr96.cjs.map → migrate-CxI07Ey0.cjs.map} +1 -1
  135. package/dist/{migrate-BxFCXc7M.mjs → migrate-DEU8I8sQ.mjs} +7 -7
  136. package/dist/{migrate-BxFCXc7M.mjs.map → migrate-DEU8I8sQ.mjs.map} +1 -1
  137. package/dist/{migrate-CbpeVxEW.mjs → migrate-DpLMJLCw.mjs} +3 -3
  138. package/dist/{migrate-CbpeVxEW.mjs.map → migrate-DpLMJLCw.mjs.map} +1 -1
  139. package/dist/next.cjs +59 -0
  140. package/dist/next.cjs.map +1 -0
  141. package/dist/next.d.cts +44 -0
  142. package/dist/next.d.cts.map +1 -0
  143. package/dist/next.d.mts +44 -0
  144. package/dist/next.d.mts.map +1 -0
  145. package/dist/next.mjs +58 -0
  146. package/dist/next.mjs.map +1 -0
  147. package/dist/{notes-TDHMzdVt.mjs → notes-or_kXTal.mjs} +13 -13
  148. package/dist/notes-or_kXTal.mjs.map +1 -0
  149. package/dist/{notes-DJyFkK13.cjs → notes-rTfi6rfN.cjs} +12 -12
  150. package/dist/notes-rTfi6rfN.cjs.map +1 -0
  151. package/dist/openapi.cjs +3 -3
  152. package/dist/openapi.mjs +3 -3
  153. package/dist/{projectBucket-CoskwJC5.cjs → projectBucket-CRa1b1Td.cjs} +2 -2
  154. package/dist/{projectBucket-CoskwJC5.cjs.map → projectBucket-CRa1b1Td.cjs.map} +1 -1
  155. package/dist/{projectBucket-BPzx0b0t.mjs → projectBucket-Coh5K3-g.mjs} +2 -2
  156. package/dist/{projectBucket-BPzx0b0t.mjs.map → projectBucket-Coh5K3-g.mjs.map} +1 -1
  157. package/dist/{publish-LZ1eb-MI.mjs → publish-Bwhywmpz.mjs} +2 -2
  158. package/dist/{publish-LZ1eb-MI.mjs.map → publish-Bwhywmpz.mjs.map} +1 -1
  159. package/dist/{publish-DB3-zkpm.cjs → publish-D9Yl4AzW.cjs} +2 -2
  160. package/dist/{publish-DB3-zkpm.cjs.map → publish-D9Yl4AzW.cjs.map} +1 -1
  161. package/dist/{ready-BjFMu_1J.mjs → ready-COJHr1Yi.mjs} +9 -9
  162. package/dist/ready-COJHr1Yi.mjs.map +1 -0
  163. package/dist/{ready-eVMJIcWn.cjs → ready-DcD0SCnV.cjs} +8 -8
  164. package/dist/ready-DcD0SCnV.cjs.map +1 -0
  165. package/dist/reconcile/public.cjs +1 -1
  166. package/dist/reconcile/public.mjs +1 -1
  167. package/dist/{resolve-jez3Y1S0.mjs → resolve-B9tboVm2.mjs} +4 -4
  168. package/dist/{resolve-jez3Y1S0.mjs.map → resolve-B9tboVm2.mjs.map} +1 -1
  169. package/dist/{resolve-B5_tOTJG.cjs → resolve-BrJUFIUu.cjs} +4 -4
  170. package/dist/{resolve-B5_tOTJG.cjs.map → resolve-BrJUFIUu.cjs.map} +1 -1
  171. package/dist/{rollback-BNo1bCLO.cjs → rollback-D48bPMpD.cjs} +7 -7
  172. package/dist/{rollback-BNo1bCLO.cjs.map → rollback-D48bPMpD.cjs.map} +1 -1
  173. package/dist/{rollback-BtOfxwo-.mjs → rollback-M6b0z1tp.mjs} +7 -7
  174. package/dist/{rollback-BtOfxwo-.mjs.map → rollback-M6b0z1tp.mjs.map} +1 -1
  175. package/dist/{s3-BlPwyu1L.cjs → s3-3iS3jlKU.cjs} +3 -3
  176. package/dist/{s3-BlPwyu1L.cjs.map → s3-3iS3jlKU.cjs.map} +1 -1
  177. package/dist/{s3-Bf_75vVl.mjs → s3-CNOSRjqH.mjs} +3 -3
  178. package/dist/{s3-Bf_75vVl.mjs.map → s3-CNOSRjqH.mjs.map} +1 -1
  179. package/dist/sandbox/credentials-worker.cjs +2 -2
  180. package/dist/sandbox/credentials-worker.mjs +2 -2
  181. package/dist/sandbox/discover-worker.cjs +1 -1
  182. package/dist/sandbox/discover-worker.mjs +1 -1
  183. package/dist/sandbox/migrate-worker.cjs +2 -2
  184. package/dist/sandbox/migrate-worker.mjs +2 -2
  185. package/dist/{serverSetup-D0Zor2i4.mjs → serverSetup-CzLJ_RV0.mjs} +6 -6
  186. package/dist/{serverSetup-D0Zor2i4.mjs.map → serverSetup-CzLJ_RV0.mjs.map} +1 -1
  187. package/dist/{serverSetup-D30vVD6t.cjs → serverSetup-DnOdoucM.cjs} +6 -6
  188. package/dist/{serverSetup-D30vVD6t.cjs.map → serverSetup-DnOdoucM.cjs.map} +1 -1
  189. package/dist/{sniffer-Bw00z3I8.cjs → sniffer-C5F7uYQB.cjs} +8 -8
  190. package/dist/{sniffer-Bw00z3I8.cjs.map → sniffer-C5F7uYQB.cjs.map} +1 -1
  191. package/dist/{sniffer-DdPDiNmc.mjs → sniffer-yeftYpWK.mjs} +8 -8
  192. package/dist/{sniffer-DdPDiNmc.mjs.map → sniffer-yeftYpWK.mjs.map} +1 -1
  193. package/dist/{snsSubscriptions-DBxVTR6Y.mjs → snsSubscriptions-CXRa_bwG.mjs} +3 -3
  194. package/dist/{snsSubscriptions-DBxVTR6Y.mjs.map → snsSubscriptions-CXRa_bwG.mjs.map} +1 -1
  195. package/dist/{snsSubscriptions-g7apv_fy.cjs → snsSubscriptions-CXwELBil.cjs} +3 -3
  196. package/dist/{snsSubscriptions-g7apv_fy.cjs.map → snsSubscriptions-CXwELBil.cjs.map} +1 -1
  197. package/dist/{sst-DJ22YDEq.mjs → sst-BAQrBaGa.mjs} +6 -6
  198. package/dist/{sst-DJ22YDEq.mjs.map → sst-BAQrBaGa.mjs.map} +1 -1
  199. package/dist/{sst-CEs0bMxj.cjs → sst-B_srWo15.cjs} +6 -6
  200. package/dist/{sst-CEs0bMxj.cjs.map → sst-B_srWo15.cjs.map} +1 -1
  201. package/dist/{stack-BmG-lKgD.cjs → stack-DaJ9D2Uc.cjs} +20 -20
  202. package/dist/stack-DaJ9D2Uc.cjs.map +1 -0
  203. package/dist/{stack-Ds9jjpE1.mjs → stack-t2tN1jYo.mjs} +21 -21
  204. package/dist/stack-t2tN1jYo.mjs.map +1 -0
  205. package/dist/{stage-D9dfV1Ey.mjs → stage-B4gqRg7l.mjs} +7 -7
  206. package/dist/{stage-D9dfV1Ey.mjs.map → stage-B4gqRg7l.mjs.map} +1 -1
  207. package/dist/{stage-kGc9L3yB.cjs → stage-Clk6oQO_.cjs} +7 -7
  208. package/dist/{stage-kGc9L3yB.cjs.map → stage-Clk6oQO_.cjs.map} +1 -1
  209. package/dist/{stages-BL22BLJS.mjs → stages-D1rnfO18.mjs} +2 -2
  210. package/dist/{stages-BL22BLJS.mjs.map → stages-D1rnfO18.mjs.map} +1 -1
  211. package/dist/{stages-CN53nNOK.cjs → stages-afi9P-Cd.cjs} +2 -2
  212. package/dist/{stages-CN53nNOK.cjs.map → stages-afi9P-Cd.cjs.map} +1 -1
  213. package/dist/target/public.cjs +1 -1
  214. package/dist/target/public.mjs +1 -1
  215. package/dist/{terminal-C0A7S7fB.mjs → terminal-D4kY5oz7.mjs} +3 -3
  216. package/dist/{terminal-C0A7S7fB.mjs.map → terminal-D4kY5oz7.mjs.map} +1 -1
  217. package/dist/{terminal-DVlIWcUb.cjs → terminal-JAudEZRC.cjs} +3 -3
  218. package/dist/{terminal-DVlIWcUb.cjs.map → terminal-JAudEZRC.cjs.map} +1 -1
  219. package/dist/vitest.cjs +1 -1
  220. package/dist/vitest.mjs +1 -1
  221. package/dist/workspace/index.cjs +1 -1
  222. package/dist/workspace/index.mjs +1 -1
  223. package/dist/{workspace-D4hzz6Xb.mjs → workspace-Gubg8xLJ.mjs} +8 -9
  224. package/dist/workspace-Gubg8xLJ.mjs.map +1 -0
  225. package/dist/{workspace-DPSdiv-b.cjs → workspace-p7gmCQVS.cjs} +7 -8
  226. package/dist/workspace-p7gmCQVS.cjs.map +1 -0
  227. package/package.json +25 -15
  228. package/dist/SubscriberGenerator-BybB6uez.mjs.map +0 -1
  229. package/dist/SubscriberGenerator-mZpSuSU7.cjs.map +0 -1
  230. package/dist/add-BgCYGJpE.mjs.map +0 -1
  231. package/dist/add-Dp0KQNkQ.cjs.map +0 -1
  232. package/dist/apps-CJTOIaz3.mjs.map +0 -1
  233. package/dist/apps-DkMR-qvD.cjs.map +0 -1
  234. package/dist/compose-BIm9yNH7.cjs.map +0 -1
  235. package/dist/compose-CZGeE6QJ.mjs.map +0 -1
  236. package/dist/compose-SmuCWWUh.cjs.map +0 -1
  237. package/dist/compose-tX6YTa1U.mjs.map +0 -1
  238. package/dist/credentialSchemas-BAklWDna.cjs.map +0 -1
  239. package/dist/credentialSchemas-mz9QZTYh.mjs.map +0 -1
  240. package/dist/databases-C1qqNxTu.mjs.map +0 -1
  241. package/dist/databases-CrKh5jw6.cjs.map +0 -1
  242. package/dist/deploy--ia-CGMv.cjs.map +0 -1
  243. package/dist/deploy-BWFFSN5p.mjs.map +0 -1
  244. package/dist/discover-CRywE7yc.cjs.map +0 -1
  245. package/dist/discover-DbDrCQ8h.mjs.map +0 -1
  246. package/dist/docker-BtUjo-J_.cjs.map +0 -1
  247. package/dist/docker-DhmU416x.mjs.map +0 -1
  248. package/dist/encryption-BCaweYBJ.mjs.map +0 -1
  249. package/dist/encryption-CU5O0Y61.cjs.map +0 -1
  250. package/dist/engine-BzeCK6e8.mjs.map +0 -1
  251. package/dist/engine-xrlcbr1g.cjs.map +0 -1
  252. package/dist/notes-DJyFkK13.cjs.map +0 -1
  253. package/dist/notes-TDHMzdVt.mjs.map +0 -1
  254. package/dist/ready-BjFMu_1J.mjs.map +0 -1
  255. package/dist/ready-eVMJIcWn.cjs.map +0 -1
  256. package/dist/stack-BmG-lKgD.cjs.map +0 -1
  257. package/dist/stack-Ds9jjpE1.mjs.map +0 -1
  258. package/dist/workspace-D4hzz6Xb.mjs.map +0 -1
  259. package/dist/workspace-DPSdiv-b.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-V3WgiKmZ.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-D4hzz6Xb.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-CZGeE6QJ.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-CeCOEKP3.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-Gubg8xLJ.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-DuRBnjxx.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,12 +15,13 @@ 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, PUBLIC_PREFIX, TELEMETRY_KEYS, WILDCARD_SUBDOMAIN, bucketExpiry, cacheTable, cookieDomain, dependenciesOf, dependentsOf, drawSecret, externalApiUrl, 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, imageOriginSources, imageOrigins, isPublicDeclaration, isWildcardSite, kebabCase, mobileOrigins, providedKeyFor, provisionOrder, publicEnvFor, schemeBase, 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";
22
22
  import * as snsUrl from "@geekmidas/events/sns/url";
23
23
  import * as sqsUrl from "@geekmidas/events/sqs/url";
24
+ import * as s3Url from "@geekmidas/storage/s3-url";
24
25
  import { cacheTableStatements } from "@geekmidas/cache/postgres";
25
26
  import { promisify } from "node:util";
26
27
  import forge from "node-forge";
@@ -51,6 +52,9 @@ function deploysWithCompose(workspace) {
51
52
  * gkm/<project>/<stage>/backups/2026-10-10/02-00-00Z/auth-database.sql.gz
52
53
  * ```
53
54
  *
55
+ * Beside the runs, `imports/` holds files prepared by hand for
56
+ * `gkm backup:restore --from` — never listed as a run, never expired.
57
+ *
54
58
  * The file is named after the database's construct, the way its migrations
55
59
  * folder is: `AuthDatabase` is `db/auth-database`, and `auth-database.sql.gz`.
56
60
  */
@@ -121,6 +125,10 @@ function backupDatabases(resources) {
121
125
  * deployed stage each time, never from the stage being deployed alone: one
122
126
  * stage's deploy keeps every other's rule. A stage set to `false` has none,
123
127
  * and its backups are kept until someone deletes them.
128
+ *
129
+ * The rule covers the runs and nothing else beside them: a lifecycle filter
130
+ * cannot leave a folder out, so it matches what every run folder starts
131
+ * with — its year, `2…` — and the stage's `imports/` is never expired.
124
132
  */
125
133
  function backupExpiries(workspace, manifest) {
126
134
  const expiries = [];
@@ -129,7 +137,7 @@ function backupExpiries(workspace, manifest) {
129
137
  if (choice.mode !== "on") continue;
130
138
  expiries.push({
131
139
  id: `gkm-backups-${stage}`,
132
- prefix: `${backupsPrefix(workspace, stage)}/`,
140
+ prefix: `${backupsPrefix(workspace, stage)}/2`,
133
141
  days: choice.backups.keepDays,
134
142
  abortIncompleteDays: 1
135
143
  });
@@ -157,7 +165,7 @@ function processorsDevRoute(fileServerId) {
157
165
  * The Caddy configuration a plan implies.
158
166
  *
159
167
  * A file server is a *domain that serves a bucket*, and locally it had neither:
160
- * `UPLOADS_SERVER_URL` resolved to MinIO's path-style address, which works and
168
+ * `UPLOADS_URL` resolved to MinIO's path-style address, which works and
161
169
  * is not the deployed shape. MinIO's own virtual-host mode cannot fix that —
162
170
  * it reads the leading label *as the bucket name*, so it produces the right
163
171
  * shape only when the server's id and the bucket's happen to agree, and never
@@ -639,13 +647,14 @@ const REQUIRES = { "redis-http": ["redis"] };
639
647
  *
640
648
  * The twin of `ProvidesByKind` in `@geekmidas/manifest`: that is what a
641
649
  * construct declares, this is what the local target resolves, and both derive
642
- * the key from the same `provideKey` so they cannot disagree.
650
+ * the key from the same `providedKeyFor` so they cannot disagree.
643
651
  */
644
652
  const ROLES = {
645
653
  queue: "publisherConnectionString",
646
654
  topic: "publisherConnectionString",
647
655
  credential: "credentials",
648
- "mobile-app": "scheme"
656
+ "mobile-app": "scheme",
657
+ objects: "connectionString"
649
658
  };
650
659
  /** The kinds whose container is the events backend's rather than their own. */
651
660
  const EVENT_KINDS = {
@@ -770,6 +779,10 @@ function planFor(manifest, stage, order, options = {}) {
770
779
  provisions: PROVISIONS[declaration.kind] === true,
771
780
  ...declaration.kind === "rest-api" || declaration.kind === "websocket-api" || declaration.kind === "objects" || declaration.kind === "file-server" ? { callers: dependentsOf(manifest, id) } : {},
772
781
  ...declaration.kind === "site" ? { publicEnv: publicEnvFor(declaration, manifest) } : {},
782
+ ...isPublicDeclaration(declaration) && imageOriginSources(declaration, manifest).length > 0 ? { imageOrigins: {
783
+ key: `${PUBLIC_PREFIX[declaration.variant]}${IMAGE_ORIGINS_KEY}`,
784
+ sources: imageOriginSources(declaration, manifest)
785
+ } } : {},
773
786
  ...declaration.kind === "mobile-app" ? {
774
787
  publicEnv: publicEnvFor(declaration, manifest),
775
788
  ...declaration.scheme ? { scheme: declaration.scheme } : {}
@@ -884,6 +897,36 @@ var PgBossNeedsDatabase = class extends GkmError {
884
897
  }
885
898
  };
886
899
  //#endregion
900
+ //#region src/reconcile/signedOrigins.ts
901
+ /**
902
+ * Where each bucket's presigned links point, derived from its connection.
903
+ *
904
+ * Not stored and not provisioned: the origin is a function of the connection
905
+ * string (`s3Url.signedOrigin`), so it is computed wherever the connection is
906
+ * resolved — a stage's secrets, MinIO locally — and can never disagree with
907
+ * the links the bucket's client signs.
908
+ */
909
+ /**
910
+ * `<ID>_SIGNED_ORIGIN` for each bucket whose connection `lookup` resolves to
911
+ * an `s3://` URL with a knowable host. A bucket with none, or another scheme,
912
+ * gets nothing rather than a guess.
913
+ */
914
+ function signedOrigins(buckets, lookup) {
915
+ const origins = {};
916
+ for (const id of buckets) {
917
+ const connection = lookup(providedKeyFor(id, "objects", "connectionString"));
918
+ if (!connection?.startsWith("s3:")) continue;
919
+ let origin;
920
+ try {
921
+ origin = s3Url.signedOrigin(s3Url.parse(connection));
922
+ } catch {
923
+ continue;
924
+ }
925
+ if (origin) origins[providedKeyFor(id, "objects", "signedOrigin")] = origin;
926
+ }
927
+ return origins;
928
+ }
929
+ //#endregion
887
930
  //#region src/reconcile/env.ts
888
931
  /**
889
932
  * The URLs a reconciled stage injects.
@@ -984,24 +1027,24 @@ function envFor(plan, options) {
984
1027
  ...options.metroPorts ? { metroPorts: options.metroPorts } : {}
985
1028
  }));
986
1029
  if (resource.kind === "websocket-api") {
987
- const origins = surfaceEnv(resource, url, resolved)[provideKey(resource.id, "trustedOrigins")];
988
- if (origins !== void 0) env[provideKey(resource.id, "trustedOrigins")] = origins;
1030
+ const origins = surfaceEnv(resource, url, resolved)[providedKeyFor(resource.id, resource.kind, "trustedOrigins")];
1031
+ if (origins !== void 0) env[providedKeyFor(resource.id, resource.kind, "trustedOrigins")] = origins;
989
1032
  const publisher = webSocketPublisher(resource, options.ports, options.project ?? "", credential);
990
- if (publisher) env[provideKey(resource.id, "publisherConnectionString")] = publisher;
1033
+ if (publisher) env[providedKeyFor(resource.id, resource.kind, "publisherConnectionString")] = publisher;
991
1034
  }
992
1035
  if (url) env[resource.envKey] = url;
993
1036
  if (resource.kind === "site" && resource.protectedSubdomains && url) {
994
1037
  const domain = wildcardDomainOf(new URL(url).hostname);
995
1038
  if (domain) {
996
- env[provideKey(resource.id, "domain")] = domain;
997
- env[provideKey(resource.id, "protectedSubdomains")] = resource.protectedSubdomains.join(",");
1039
+ env[providedKeyFor(resource.id, resource.kind, "domain")] = domain;
1040
+ env[providedKeyFor(resource.id, resource.kind, "protectedSubdomains")] = resource.protectedSubdomains.join(",");
998
1041
  }
999
1042
  }
1000
1043
  if (isDatabase(resource.kind) && resource.roles !== false) {
1001
1044
  const owner = ownerUrl(resource, plan, options.ports, options.project ?? "", credential);
1002
- if (owner) env[provideKey(resource.id, "ownerUrl")] = owner;
1045
+ if (owner) env[providedKeyFor(resource.id, resource.kind, "ownerUrl")] = owner;
1003
1046
  }
1004
- if (resource.kind === "external-api" && url && resource.fake) env[provideKey(resource.id, "credentials")] = resource.fake.credentials;
1047
+ if (resource.kind === "external-api" && url && resource.fake) env[providedKeyFor(resource.id, resource.kind, "credentials")] = resource.fake.credentials;
1005
1048
  if (resource.kind === "credential" && resource.fakeCredentials !== void 0) env[resource.envKey] = resource.fakeCredentials;
1006
1049
  if (resource.kind === "telemetry" && url) {
1007
1050
  const login = options.credentials.logs;
@@ -1013,20 +1056,21 @@ function envFor(plan, options) {
1013
1056
  if (resource.kind === "inbox" && url) {
1014
1057
  const base = resource.id.toLowerCase();
1015
1058
  const stage = resource.name === base ? void 0 : resource.name.slice(base.length + 1);
1016
- env[provideKey(resource.id, "domain")] = [
1059
+ env[providedKeyFor(resource.id, resource.kind, "domain")] = [
1017
1060
  stage,
1018
1061
  options.project,
1019
1062
  LOCAL_HOST
1020
1063
  ].filter(Boolean).join(".");
1021
1064
  const smtp = options.ports[primaryPortKey("mailpit")];
1022
- if (smtp !== void 0) env[provideKey(resource.id, "smtpUrl")] = `smtp://${LOCAL_HOST}:${smtp}`;
1065
+ if (smtp !== void 0) env[providedKeyFor(resource.id, resource.kind, "smtpUrl")] = `smtp://${LOCAL_HOST}:${smtp}`;
1023
1066
  }
1024
1067
  if (resource.kind === "email" && url) {
1025
- env[provideKey(resource.id, "from")] = options.mailFrom ?? `noreply@${LOCAL_HOST}`;
1068
+ env[providedKeyFor(resource.id, resource.kind, "from")] = options.mailFrom ?? `noreply@${LOCAL_HOST}`;
1026
1069
  const inbox = options.ports[MAILPIT_INBOX_PORT];
1027
- if (inbox !== void 0) env[provideKey(resource.id, "inboxUrl")] = `http://${LOCAL_HOST}:${inbox}`;
1070
+ if (inbox !== void 0) env[providedKeyFor(resource.id, resource.kind, "inboxUrl")] = `http://${LOCAL_HOST}:${inbox}`;
1028
1071
  }
1029
1072
  }
1073
+ Object.assign(env, signedOrigins(plan.resources.filter((r) => r.kind === "objects").map((r) => r.id), (key) => env[key]));
1030
1074
  Object.assign(env, publicEnv(plan, env, options.addresses));
1031
1075
  Object.assign(env, brokerEnv(plan, options.ports, credential));
1032
1076
  const relay = env.EVENT_PUBLISHER_CONNECTION_STRING;
@@ -1034,8 +1078,8 @@ function envFor(plan, options) {
1034
1078
  if (resource.kind !== "objects" || resource.container !== "minio") continue;
1035
1079
  if (!options.relayedBuckets.includes(resource.id)) continue;
1036
1080
  if (!env[resource.envKey]) continue;
1037
- env[provideKey(resource.id, "eventsConnectionString")] = relay;
1038
- env[provideKey(resource.id, "eventsToken")] = objectsWebhookToken(options.project ?? "", resource.id, credential.seed);
1081
+ env[providedKeyFor(resource.id, resource.kind, "eventsConnectionString")] = relay;
1082
+ env[providedKeyFor(resource.id, resource.kind, "eventsToken")] = objectsWebhookToken(options.project ?? "", resource.id, credential.seed);
1039
1083
  }
1040
1084
  if (plan.resources.some((r) => r.kind === "inbox" && env[r.envKey])) env[INBOX_RELAY_TOKEN_KEY] = inboxRelayToken(options.project ?? "", credential.seed);
1041
1085
  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);
@@ -1058,9 +1102,15 @@ function envFor(plan, options) {
1058
1102
  function publicEnv(plan, resolved, addresses = {}) {
1059
1103
  const env = {};
1060
1104
  const owners = new Map(plan.resources.map((r) => [r.envKey, r.id]));
1061
- for (const resource of plan.resources) for (const [key, source] of Object.entries(resource.publicEnv ?? {})) {
1062
- const value = (resource.kind === "mobile-app" ? addresses[owners.get(source) ?? ""] : void 0) ?? resolved[source];
1063
- if (value) env[key] = value;
1105
+ for (const resource of plan.resources) {
1106
+ for (const [key, source] of Object.entries(resource.publicEnv ?? {})) {
1107
+ const value = (resource.kind === "mobile-app" ? addresses[owners.get(source) ?? ""] : void 0) ?? resolved[source];
1108
+ if (value) env[key] = value;
1109
+ }
1110
+ if (resource.imageOrigins) {
1111
+ const origins = imageOrigins(resource.imageOrigins.sources, (key) => resolved[key]);
1112
+ if (origins) env[resource.imageOrigins.key] = origins;
1113
+ }
1064
1114
  }
1065
1115
  return env;
1066
1116
  }
@@ -1096,9 +1146,9 @@ function surfaceEnv(resource, url, resolved = {}, local = {}) {
1096
1146
  const own = local.addresses?.[resource.id];
1097
1147
  const device = mobile.length > 0 && local.lanAddress && own ? own.replace(/\/\/(localhost|127\.0\.0\.1)(?=[:/]|$)/, `//${local.lanAddress}`) : void 0;
1098
1148
  return {
1099
- [provideKey(resource.id, "trustedOrigins")]: [...origins, ...new Set(schemes)].join(","),
1100
- ...domain ? { [provideKey(resource.id, "cookieDomain")]: domain } : {},
1101
- ...device ? { [provideKey(resource.id, "deviceUrl")]: device } : {}
1149
+ [providedKeyFor(resource.id, resource.kind, "trustedOrigins")]: [...origins, ...new Set(schemes)].join(","),
1150
+ ...domain ? { [providedKeyFor(resource.id, resource.kind, "cookieDomain")]: domain } : {},
1151
+ ...device ? { [providedKeyFor(resource.id, resource.kind, "deviceUrl")]: device } : {}
1102
1152
  };
1103
1153
  }
1104
1154
  /**
@@ -2304,14 +2354,17 @@ function isUnder(file, dir) {
2304
2354
  */
2305
2355
  function publicBuildValues(site, manifest, resolve, secrets) {
2306
2356
  const args = {};
2307
- const own = provideKey(site.id, site.kind === "site" ? "url" : "scheme");
2357
+ const own = providedKeyFor(site.id, site.kind, site.kind === "site" ? "url" : "scheme");
2308
2358
  const ownValue = resolve(own);
2309
2359
  if (ownValue) args[own] = ownValue;
2360
+ const derived = signedOrigins(Object.keys(manifest).filter((id) => manifest[id]?.kind === "objects"), resolve);
2310
2361
  for (const [key, source] of Object.entries(publicEnvFor(site, manifest))) {
2311
- const value = resolve(source);
2362
+ const value = resolve(source) ?? derived[source];
2312
2363
  if (value) args[key] = value;
2313
2364
  }
2314
2365
  const prefix = PUBLIC_PREFIX[site.variant];
2366
+ const origins = imageOrigins(imageOriginSources(site, manifest), (source) => resolve(source) ?? derived[source]);
2367
+ if (origins) args[`${prefix}${IMAGE_ORIGINS_KEY}`] = origins;
2315
2368
  for (const [key, value] of Object.entries(secrets)) if (key.startsWith(prefix) && args[key] === void 0 && value) args[key] = value;
2316
2369
  return args;
2317
2370
  }
@@ -2341,7 +2394,7 @@ const OFFLINE_BUILD_ADDRESS = "127.0.0.1";
2341
2394
  */
2342
2395
  function offlineBuildHosts(site, manifest, resolve) {
2343
2396
  if (site.prerender === "stage") return [];
2344
- const sources = [provideKey(site.id, "url"), ...Object.values(publicEnvFor(site, manifest))];
2397
+ const sources = [providedKeyFor(site.id, site.kind, "url"), ...Object.values(publicEnvFor(site, manifest))];
2345
2398
  const hosts = /* @__PURE__ */ new Set();
2346
2399
  for (const source of sources) {
2347
2400
  const host = hostOf(resolve(source));
@@ -2371,7 +2424,7 @@ function siteOfflineHosts(manifest, appName, ownUrl, urls) {
2371
2424
  for (const [id] of entries) {
2372
2425
  const name = appKey(id);
2373
2426
  const url = name === appName ? ownUrl : urls[name];
2374
- if (url) byKey.set(provideKey(id, "url"), url);
2427
+ if (url) byKey.set(providedKeyFor(id, manifest[id].kind, "url"), url);
2375
2428
  }
2376
2429
  return offlineBuildHosts(site, manifest, (key) => byKey.get(key));
2377
2430
  }
@@ -3460,7 +3513,7 @@ function processorOriginHost(serverId, domain) {
3460
3513
  }
3461
3514
  /** The stage secret holding the header's value: `ASSETS_SERVER_ORIGIN_SECRET`. */
3462
3515
  function originSecretKey(serverId) {
3463
- return provideKey(serverId, "originSecret");
3516
+ return environmentCase(`${serverId}_originSecret`);
3464
3517
  }
3465
3518
  /**
3466
3519
  * What the processor unit reads that secret from. Set wherever the CDN fronts
@@ -5305,7 +5358,7 @@ function networkEnv(plan, options, hostOf = (container) => container) {
5305
5358
  * fails on its first local request rather than in production.
5306
5359
  *
5307
5360
  * What an edge `caller.dependsOn([target])` hands each side, `<C>` and `<T>`
5308
- * being the caller's and the target's ids (`provideKey`) — keep this list and
5361
+ * being the caller's and the target's ids (`providedKeyFor`) — keep this list and
5309
5362
  * `apps/docs/guide/edges.md` in step with the code below:
5310
5363
  *
5311
5364
  * - `rest-api`: the caller gets `<T>_URL`. The target gets `<C>_URL` from a
@@ -5356,9 +5409,9 @@ function appEnvKeys(manifest, appName) {
5356
5409
  ...declaration.requires ?? [],
5357
5410
  ...declaration.kind === "rest-api" ? declaration.endpoints.flatMap((endpoint) => endpoint.requires ?? []) : []
5358
5411
  ]);
5359
- addEdgeKeys(manifest, dependenciesOf(declaration).map((edge) => edge.target), keys, declaration.kind === "site" || declaration.kind === "mobile-app");
5412
+ addEdgeKeys(manifest, dependenciesOf(declaration).map((edge) => edge.target), keys, isPublicDeclaration(declaration));
5360
5413
  if (declaration.kind === "rest-api" || declaration.kind === "websocket-api") for (const key of callerKeys(manifest, id)) keys.add(key);
5361
- if (declaration.kind === "site" || declaration.kind === "mobile-app") {
5414
+ if (isPublicDeclaration(declaration)) {
5362
5415
  for (const key of TELEMETRY_KEYS) keys.delete(key);
5363
5416
  for (const key of Object.keys(publicEnvFor(declaration, manifest))) keys.add(key);
5364
5417
  }
@@ -5498,8 +5551,8 @@ function callerKeys(manifest, surfaceId) {
5498
5551
  const keys = [];
5499
5552
  for (const caller of dependentsOf(manifest, surfaceId)) {
5500
5553
  const declaration = manifest[caller];
5501
- if (declaration?.kind === "mobile-app") keys.push(provideKey(caller, "scheme"));
5502
- else if (declaration?.kind === "site") keys.push(provideKey(caller, "url"));
5554
+ if (declaration?.kind === "mobile-app") keys.push(providedKeyFor(caller, declaration.kind, "scheme"));
5555
+ else if (declaration?.kind === "site") keys.push(providedKeyFor(caller, declaration.kind, "url"));
5503
5556
  }
5504
5557
  return keys;
5505
5558
  }
@@ -5512,20 +5565,20 @@ function addEdgeKeys(manifest, edges, keys, client = false) {
5512
5565
  const bucket = eventsEdgeBucket(id);
5513
5566
  if (bucket) {
5514
5567
  if (manifest[bucket]?.kind === "objects") {
5515
- keys.add(provideKey(bucket, "eventsConnectionString"));
5516
- keys.add(provideKey(bucket, "eventsToken"));
5568
+ keys.add(providedKeyFor(bucket, "objects", "eventsConnectionString"));
5569
+ keys.add(providedKeyFor(bucket, "objects", "eventsToken"));
5517
5570
  }
5518
5571
  continue;
5519
5572
  }
5520
5573
  const target = manifest[id];
5521
5574
  if (!target) continue;
5522
5575
  if (target.kind === "rest-api") {
5523
- keys.add(provideKey(id, "url"));
5576
+ keys.add(providedKeyFor(id, target.kind, "url"));
5524
5577
  continue;
5525
5578
  }
5526
5579
  if (target.kind === "websocket-api") {
5527
- keys.add(provideKey(id, "url"));
5528
- if (!client) keys.add(provideKey(id, "publisherConnectionString"));
5580
+ keys.add(providedKeyFor(id, target.kind, "url"));
5581
+ if (!client) keys.add(providedKeyFor(id, target.kind, "publisherConnectionString"));
5529
5582
  continue;
5530
5583
  }
5531
5584
  for (const key of target.provides ?? []) keys.add(key);
@@ -5622,4 +5675,4 @@ function healthcheck(port, path) {
5622
5675
  //#endregion
5623
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 };
5624
5677
 
5625
- //# sourceMappingURL=apps-CJTOIaz3.mjs.map
5678
+ //# sourceMappingURL=apps-CWGmV2nQ.mjs.map