@geekmidas/cli 10.0.0-alpha.163 → 10.0.0-alpha.165

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 (223) hide show
  1. package/dist/{GoDaddyProvider-COSh6bNI.mjs → GoDaddyProvider-C7zClznh.mjs} +2 -2
  2. package/dist/{GoDaddyProvider-COSh6bNI.mjs.map → GoDaddyProvider-C7zClznh.mjs.map} +1 -1
  3. package/dist/{GoDaddyProvider-DyhN8PEn.cjs → GoDaddyProvider-Dx6v4Goj.cjs} +2 -2
  4. package/dist/{GoDaddyProvider-DyhN8PEn.cjs.map → GoDaddyProvider-Dx6v4Goj.cjs.map} +1 -1
  5. package/dist/{HostingerProvider-5Nekoneq.mjs → HostingerProvider-BALtMnss.mjs} +2 -2
  6. package/dist/{HostingerProvider-5Nekoneq.mjs.map → HostingerProvider-BALtMnss.mjs.map} +1 -1
  7. package/dist/{HostingerProvider-DG08aTyh.cjs → HostingerProvider-COuTy74z.cjs} +2 -2
  8. package/dist/{HostingerProvider-DG08aTyh.cjs.map → HostingerProvider-COuTy74z.cjs.map} +1 -1
  9. package/dist/{LegacyStateStore-5W4kFia3.cjs → LegacyStateStore-C0rh3dKV.cjs} +3 -3
  10. package/dist/{LegacyStateStore-5W4kFia3.cjs.map → LegacyStateStore-C0rh3dKV.cjs.map} +1 -1
  11. package/dist/{LegacyStateStore-CafGn2Yl.mjs → LegacyStateStore-CcNLLGX-.mjs} +3 -3
  12. package/dist/{LegacyStateStore-CafGn2Yl.mjs.map → LegacyStateStore-CcNLLGX-.mjs.map} +1 -1
  13. package/dist/{LocalStateStore-DrTw_EIu.mjs → LocalStateStore-CxCCBQkS.mjs} +2 -2
  14. package/dist/{LocalStateStore-DrTw_EIu.mjs.map → LocalStateStore-CxCCBQkS.mjs.map} +1 -1
  15. package/dist/{LocalStateStore--CJ7ksx6.cjs → LocalStateStore-Dcq3wd1v.cjs} +2 -2
  16. package/dist/{LocalStateStore--CJ7ksx6.cjs.map → LocalStateStore-Dcq3wd1v.cjs.map} +1 -1
  17. package/dist/{S3StateStore-M8vVPpr7.cjs → S3StateStore-Cgf1owUZ.cjs} +4 -4
  18. package/dist/{S3StateStore-M8vVPpr7.cjs.map → S3StateStore-Cgf1owUZ.cjs.map} +1 -1
  19. package/dist/{S3StateStore-DGEwSkf2.mjs → S3StateStore-DUwCcCgj.mjs} +4 -4
  20. package/dist/{S3StateStore-DGEwSkf2.mjs.map → S3StateStore-DUwCcCgj.mjs.map} +1 -1
  21. package/dist/{SSMStateStore-VYfuykBd.mjs → SSMStateStore-A_N_T4b0.mjs} +2 -2
  22. package/dist/{SSMStateStore-VYfuykBd.mjs.map → SSMStateStore-A_N_T4b0.mjs.map} +1 -1
  23. package/dist/{SSMStateStore-B2A27u0C.cjs → SSMStateStore-BarWA07O.cjs} +2 -2
  24. package/dist/{SSMStateStore-B2A27u0C.cjs.map → SSMStateStore-BarWA07O.cjs.map} +1 -1
  25. package/dist/{add-CistiUc6.mjs → add-DAeCqI9O.mjs} +5 -5
  26. package/dist/{add-CistiUc6.mjs.map → add-DAeCqI9O.mjs.map} +1 -1
  27. package/dist/{add-CijlgwVr.cjs → add-DVSNjsI8.cjs} +5 -5
  28. package/dist/{add-CijlgwVr.cjs.map → add-DVSNjsI8.cjs.map} +1 -1
  29. package/dist/{apps-BE97n0jO.mjs → apps-Ck_Ie6gN.mjs} +17 -12
  30. package/dist/apps-Ck_Ie6gN.mjs.map +1 -0
  31. package/dist/{apps-5iJb710M.cjs → apps-S3RMvFyk.cjs} +17 -12
  32. package/dist/apps-S3RMvFyk.cjs.map +1 -0
  33. package/dist/{bundler-D4E7kCYb.cjs → bundler-B_vQ_591.cjs} +6 -6
  34. package/dist/{bundler-D4E7kCYb.cjs.map → bundler-B_vQ_591.cjs.map} +1 -1
  35. package/dist/{bundler-D-SXSUZI.mjs → bundler-Bbn0opSb.mjs} +6 -6
  36. package/dist/{bundler-D-SXSUZI.mjs.map → bundler-Bbn0opSb.mjs.map} +1 -1
  37. package/dist/{cli-BAn-gJ6S.mjs → cli-CMykD9Py.mjs} +5 -5
  38. package/dist/{cli-BAn-gJ6S.mjs.map → cli-CMykD9Py.mjs.map} +1 -1
  39. package/dist/{cli-CI-wO3-w.cjs → cli-fs4D-3cd.cjs} +5 -5
  40. package/dist/{cli-CI-wO3-w.cjs.map → cli-fs4D-3cd.cjs.map} +1 -1
  41. package/dist/{compose-Dk0Z8zdf.mjs → compose-BtjZNCC-.mjs} +21 -9
  42. package/dist/compose-BtjZNCC-.mjs.map +1 -0
  43. package/dist/{compose-Dpkkp-Qq.cjs → compose-CNJO99Tv.cjs} +5 -5
  44. package/dist/{compose-Dpkkp-Qq.cjs.map → compose-CNJO99Tv.cjs.map} +1 -1
  45. package/dist/{compose-CuoV9T9U.mjs → compose-Cm6EWvjX.mjs} +5 -5
  46. package/dist/{compose-CuoV9T9U.mjs.map → compose-Cm6EWvjX.mjs.map} +1 -1
  47. package/dist/{compose-BoxgqTF8.cjs → compose-DmcYTLhO.cjs} +21 -9
  48. package/dist/compose-DmcYTLhO.cjs.map +1 -0
  49. package/dist/{config-DNoWqavN.d.cts → config-B8gSu59v.d.mts} +3 -3
  50. package/dist/{config-BxSSAzVi.d.mts.map → config-B8gSu59v.d.mts.map} +1 -1
  51. package/dist/{config-CLXSXbcs.cjs → config-CXj-9eRo.cjs} +77 -8
  52. package/dist/config-CXj-9eRo.cjs.map +1 -0
  53. package/dist/{config-Da9bxnkT.mjs → config-Di0oJwM9.mjs} +72 -9
  54. package/dist/config-Di0oJwM9.mjs.map +1 -0
  55. package/dist/{config-BxSSAzVi.d.mts → config-u5XdE1Cq.d.cts} +3 -3
  56. package/dist/{config-DNoWqavN.d.cts.map → config-u5XdE1Cq.d.cts.map} +1 -1
  57. package/dist/config.cjs +1 -1
  58. package/dist/config.d.cts +3 -3
  59. package/dist/config.d.mts +3 -3
  60. package/dist/config.mjs +1 -1
  61. package/dist/{credentials-DhCCRQJp.mjs → credentials-C-yuISKH.mjs} +5 -5
  62. package/dist/{credentials-DhCCRQJp.mjs.map → credentials-C-yuISKH.mjs.map} +1 -1
  63. package/dist/{credentials-BR3dNNtO.cjs → credentials-DVYgFK_H.cjs} +5 -5
  64. package/dist/{credentials-BR3dNNtO.cjs.map → credentials-DVYgFK_H.cjs.map} +1 -1
  65. package/dist/deploy/public.cjs +12 -12
  66. package/dist/deploy/public.d.cts +4 -4
  67. package/dist/deploy/public.d.cts.map +1 -1
  68. package/dist/deploy/public.d.mts +4 -4
  69. package/dist/deploy/public.d.mts.map +1 -1
  70. package/dist/deploy/public.mjs +12 -12
  71. package/dist/{deploy-C4Qb-A-z.mjs → deploy-CuSF9y7t.mjs} +167 -58
  72. package/dist/deploy-CuSF9y7t.mjs.map +1 -0
  73. package/dist/{deploy-CGywNg5R.cjs → deploy-DGXMqTan.cjs} +166 -57
  74. package/dist/deploy-DGXMqTan.cjs.map +1 -0
  75. package/dist/{destroy-IUx8vz1q.cjs → destroy-BROvAzQQ.cjs} +10 -10
  76. package/dist/{destroy-IUx8vz1q.cjs.map → destroy-BROvAzQQ.cjs.map} +1 -1
  77. package/dist/{destroy-xjqqzAmU.mjs → destroy-DpRGLdt1.mjs} +10 -10
  78. package/dist/{destroy-xjqqzAmU.mjs.map → destroy-DpRGLdt1.mjs.map} +1 -1
  79. package/dist/{docker-zaY5JoqN.mjs → docker-CRVWdGH9.mjs} +5 -5
  80. package/dist/{docker-zaY5JoqN.mjs.map → docker-CRVWdGH9.mjs.map} +1 -1
  81. package/dist/{docker-CIpOFfOw.cjs → docker-qq5xNUP2.cjs} +5 -5
  82. package/dist/{docker-CIpOFfOw.cjs.map → docker-qq5xNUP2.cjs.map} +1 -1
  83. package/dist/{dokploy-BTzdAG5F.mjs → dokploy-DcH7hY84.mjs} +2 -2
  84. package/dist/{dokploy-BTzdAG5F.mjs.map → dokploy-DcH7hY84.mjs.map} +1 -1
  85. package/dist/{dokploy-DLVSItVD.cjs → dokploy-Duyj4-pa.cjs} +2 -2
  86. package/dist/{dokploy-DLVSItVD.cjs.map → dokploy-Duyj4-pa.cjs.map} +1 -1
  87. package/dist/{eas-C1WvLOi1.mjs → eas-C11dyfIw.mjs} +3 -3
  88. package/dist/{eas-C1WvLOi1.mjs.map → eas-C11dyfIw.mjs.map} +1 -1
  89. package/dist/{eas-B6VYsGLs.cjs → eas-DqTDImhv.cjs} +3 -3
  90. package/dist/{eas-B6VYsGLs.cjs.map → eas-DqTDImhv.cjs.map} +1 -1
  91. package/dist/{encryption-oVcZSyLK.cjs → encryption-CsOfA6QT.cjs} +3 -3
  92. package/dist/{encryption-oVcZSyLK.cjs.map → encryption-CsOfA6QT.cjs.map} +1 -1
  93. package/dist/{encryption-DdnL7dor.mjs → encryption-DsZwqQyL.mjs} +3 -3
  94. package/dist/{encryption-DdnL7dor.mjs.map → encryption-DsZwqQyL.mjs.map} +1 -1
  95. package/dist/{engine-Viv9p-yK.mjs → engine-CdU3Oggs.mjs} +10 -10
  96. package/dist/{engine-Viv9p-yK.mjs.map → engine-CdU3Oggs.mjs.map} +1 -1
  97. package/dist/{engine-_zA1Selg.cjs → engine-WllCnGNy.cjs} +10 -10
  98. package/dist/{engine-_zA1Selg.cjs.map → engine-WllCnGNy.cjs.map} +1 -1
  99. package/dist/{github-82k5-OZO.cjs → github-B3lKrKIn.cjs} +7 -7
  100. package/dist/{github-82k5-OZO.cjs.map → github-B3lKrKIn.cjs.map} +1 -1
  101. package/dist/{github-DxgGIvq1.mjs → github-Bt3V7pdf.mjs} +7 -7
  102. package/dist/{github-DxgGIvq1.mjs.map → github-Bt3V7pdf.mjs.map} +1 -1
  103. package/dist/{googlePlay-C5T1SOGW.cjs → googlePlay-B7P3Ahps.cjs} +5 -5
  104. package/dist/{googlePlay-C5T1SOGW.cjs.map → googlePlay-B7P3Ahps.cjs.map} +1 -1
  105. package/dist/{googlePlay-C4UsG1Vd.mjs → googlePlay-D-6pUHGU.mjs} +5 -5
  106. package/dist/{googlePlay-C4UsG1Vd.mjs.map → googlePlay-D-6pUHGU.mjs.map} +1 -1
  107. package/dist/{index-Dy4ojz5P.d.cts → index-1H93w_H6.d.cts} +2 -2
  108. package/dist/{index-BC1BLv9Q.d.mts.map → index-1H93w_H6.d.cts.map} +1 -1
  109. package/dist/{index-BC1BLv9Q.d.mts → index-DFZ0SMwN.d.mts} +2 -2
  110. package/dist/{index-Dy4ojz5P.d.cts.map → index-DFZ0SMwN.d.mts.map} +1 -1
  111. package/dist/index.cjs +64 -64
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.mjs +64 -64
  114. package/dist/index.mjs.map +1 -1
  115. package/dist/{local-Bqx5Xj3z.mjs → local-B4H2Lsr6.mjs} +2 -2
  116. package/dist/{local-Bqx5Xj3z.mjs.map → local-B4H2Lsr6.mjs.map} +1 -1
  117. package/dist/{local-vSeEreyp.cjs → local-Cs_aQJ45.cjs} +2 -2
  118. package/dist/{local-vSeEreyp.cjs.map → local-Cs_aQJ45.cjs.map} +1 -1
  119. package/dist/{migrate-DvdpT5Y4.cjs → migrate-BQSPfKHa.cjs} +5 -5
  120. package/dist/{migrate-DvdpT5Y4.cjs.map → migrate-BQSPfKHa.cjs.map} +1 -1
  121. package/dist/{migrate-D8PSR_08.mjs → migrate-C8JFuMT-.mjs} +3 -3
  122. package/dist/{migrate-D8PSR_08.mjs.map → migrate-C8JFuMT-.mjs.map} +1 -1
  123. package/dist/{migrate-CEhUGDFy.mjs → migrate-CQ-PNghX.mjs} +5 -5
  124. package/dist/{migrate-CEhUGDFy.mjs.map → migrate-CQ-PNghX.mjs.map} +1 -1
  125. package/dist/{migrate-CLSY8gSY.cjs → migrate-CphnV0sY.cjs} +3 -3
  126. package/dist/{migrate-CLSY8gSY.cjs.map → migrate-CphnV0sY.cjs.map} +1 -1
  127. package/dist/{notes-B9ro_R3x.cjs → notes-BtyuHcKA.cjs} +4 -4
  128. package/dist/notes-BtyuHcKA.cjs.map +1 -0
  129. package/dist/{notes-CdbUjLBC.mjs → notes-IlQ35E3R.mjs} +4 -4
  130. package/dist/notes-IlQ35E3R.mjs.map +1 -0
  131. package/dist/openapi.cjs +1 -1
  132. package/dist/openapi.d.cts +1 -1
  133. package/dist/openapi.d.mts +1 -1
  134. package/dist/openapi.mjs +1 -1
  135. package/dist/{projectBucket-DUtWAxWn.cjs → projectBucket-0Lvy2J0h.cjs} +2 -2
  136. package/dist/{projectBucket-DUtWAxWn.cjs.map → projectBucket-0Lvy2J0h.cjs.map} +1 -1
  137. package/dist/{projectBucket-DPaUiLyY.mjs → projectBucket-SHlF0_Pr.mjs} +2 -2
  138. package/dist/{projectBucket-DPaUiLyY.mjs.map → projectBucket-SHlF0_Pr.mjs.map} +1 -1
  139. package/dist/{publish-CoCRpbPl.mjs → publish-C9IJb1Ez.mjs} +2 -2
  140. package/dist/{publish-CoCRpbPl.mjs.map → publish-C9IJb1Ez.mjs.map} +1 -1
  141. package/dist/{publish-DbR3j4TS.cjs → publish-igpjCzZj.cjs} +2 -2
  142. package/dist/{publish-DbR3j4TS.cjs.map → publish-igpjCzZj.cjs.map} +1 -1
  143. package/dist/reconcile/public.d.cts +1 -1
  144. package/dist/reconcile/public.d.mts +1 -1
  145. package/dist/{resolve-DDcPuS_G.cjs → resolve-5T34quci.cjs} +4 -4
  146. package/dist/{resolve-DDcPuS_G.cjs.map → resolve-5T34quci.cjs.map} +1 -1
  147. package/dist/{resolve-BjRvKEpw.mjs → resolve-Cl8CVASM.mjs} +4 -4
  148. package/dist/{resolve-BjRvKEpw.mjs.map → resolve-Cl8CVASM.mjs.map} +1 -1
  149. package/dist/{rollback-xLGFZaHy.mjs → rollback-1JLE6qPo.mjs} +7 -7
  150. package/dist/{rollback-xLGFZaHy.mjs.map → rollback-1JLE6qPo.mjs.map} +1 -1
  151. package/dist/{rollback-CvlebzBY.cjs → rollback-DMPb940C.cjs} +7 -7
  152. package/dist/{rollback-CvlebzBY.cjs.map → rollback-DMPb940C.cjs.map} +1 -1
  153. package/dist/{runtime-MZ5Pqgan.d.mts → runtime-CKOkIrw0.d.cts} +2 -2
  154. package/dist/{runtime-BySbkdBz.d.cts.map → runtime-CKOkIrw0.d.cts.map} +1 -1
  155. package/dist/{runtime-BySbkdBz.d.cts → runtime-Cdvv8SfU.d.mts} +2 -2
  156. package/dist/{runtime-MZ5Pqgan.d.mts.map → runtime-Cdvv8SfU.d.mts.map} +1 -1
  157. package/dist/{s3-CXA6Lleo.mjs → s3-CCuNLgHk.mjs} +2 -2
  158. package/dist/{s3-CXA6Lleo.mjs.map → s3-CCuNLgHk.mjs.map} +1 -1
  159. package/dist/{s3-D9pFisyo.cjs → s3-DkiOi5J1.cjs} +2 -2
  160. package/dist/{s3-D9pFisyo.cjs.map → s3-DkiOi5J1.cjs.map} +1 -1
  161. package/dist/{seeds-D7q1zKCJ.cjs → seeds-Bc3niNVb.cjs} +95 -82
  162. package/dist/seeds-Bc3niNVb.cjs.map +1 -0
  163. package/dist/{seeds-y1rzXlAc.mjs → seeds-Ccn0Ru2T.mjs} +84 -83
  164. package/dist/seeds-Ccn0Ru2T.mjs.map +1 -0
  165. package/dist/{serverSetup-CzoKT3nH.mjs → serverSetup-C0pLpF5w.mjs} +7 -7
  166. package/dist/{serverSetup-CzoKT3nH.mjs.map → serverSetup-C0pLpF5w.mjs.map} +1 -1
  167. package/dist/{serverSetup-BXk8SGuz.cjs → serverSetup-JYZxj371.cjs} +7 -7
  168. package/dist/{serverSetup-BXk8SGuz.cjs.map → serverSetup-JYZxj371.cjs.map} +1 -1
  169. package/dist/{sniffer-Csft3UaJ.mjs → sniffer-CiV4xGbe.mjs} +7 -7
  170. package/dist/{sniffer-Csft3UaJ.mjs.map → sniffer-CiV4xGbe.mjs.map} +1 -1
  171. package/dist/{sniffer-B2jgjk-F.cjs → sniffer-DB4Ocija.cjs} +7 -7
  172. package/dist/{sniffer-B2jgjk-F.cjs.map → sniffer-DB4Ocija.cjs.map} +1 -1
  173. package/dist/{snsSubscriptions-DgbFGyac.mjs → snsSubscriptions-C_-6fqBd.mjs} +2 -2
  174. package/dist/{snsSubscriptions-DgbFGyac.mjs.map → snsSubscriptions-C_-6fqBd.mjs.map} +1 -1
  175. package/dist/{snsSubscriptions-CSyPnoEQ.cjs → snsSubscriptions-DpYvMVR9.cjs} +2 -2
  176. package/dist/{snsSubscriptions-CSyPnoEQ.cjs.map → snsSubscriptions-DpYvMVR9.cjs.map} +1 -1
  177. package/dist/{sst-CmNUadAV.mjs → sst-BUzuE84X.mjs} +5 -5
  178. package/dist/{sst-CmNUadAV.mjs.map → sst-BUzuE84X.mjs.map} +1 -1
  179. package/dist/{sst-BtrgnhHy.cjs → sst-D1oSl_1d.cjs} +5 -5
  180. package/dist/{sst-BtrgnhHy.cjs.map → sst-D1oSl_1d.cjs.map} +1 -1
  181. package/dist/{stack-dVgzDUiH.mjs → stack-DhBBTTIa.mjs} +8 -8
  182. package/dist/stack-DhBBTTIa.mjs.map +1 -0
  183. package/dist/{stack-9qBhn2pd.cjs → stack-TUs2DY7v.cjs} +8 -8
  184. package/dist/stack-TUs2DY7v.cjs.map +1 -0
  185. package/dist/{stage-HEZZZJKr.cjs → stage-B3qg7LoZ.cjs} +6 -6
  186. package/dist/{stage-HEZZZJKr.cjs.map → stage-B3qg7LoZ.cjs.map} +1 -1
  187. package/dist/{stage-CwXpkN-y.mjs → stage-DuLwZ9wu.mjs} +6 -6
  188. package/dist/{stage-CwXpkN-y.mjs.map → stage-DuLwZ9wu.mjs.map} +1 -1
  189. package/dist/{stages-gG-DGHLb.mjs → stages-CW7qtiJ2.mjs} +2 -2
  190. package/dist/{stages-gG-DGHLb.mjs.map → stages-CW7qtiJ2.mjs.map} +1 -1
  191. package/dist/{stages-rzyes8Ew.cjs → stages-CtqmEJJW.cjs} +2 -2
  192. package/dist/{stages-rzyes8Ew.cjs.map → stages-CtqmEJJW.cjs.map} +1 -1
  193. package/dist/target/public.cjs +1 -1
  194. package/dist/target/public.d.cts +2 -2
  195. package/dist/target/public.d.mts +2 -2
  196. package/dist/target/public.mjs +1 -1
  197. package/dist/{terminal-BqqGsi0O.mjs → terminal-B_TanNPL.mjs} +2 -2
  198. package/dist/{terminal-BqqGsi0O.mjs.map → terminal-B_TanNPL.mjs.map} +1 -1
  199. package/dist/{terminal-8AA2uK0U.cjs → terminal-CXZWPHMW.cjs} +2 -2
  200. package/dist/{terminal-8AA2uK0U.cjs.map → terminal-CXZWPHMW.cjs.map} +1 -1
  201. package/dist/{types-BsfPHUFZ.d.cts → types-DEmuMHsS.d.cts} +9 -1
  202. package/dist/types-DEmuMHsS.d.cts.map +1 -0
  203. package/dist/{types-BXboFkn9.d.mts → types-g_S0_RAi.d.mts} +9 -1
  204. package/dist/types-g_S0_RAi.d.mts.map +1 -0
  205. package/dist/workspace/index.d.cts +2 -2
  206. package/dist/workspace/index.d.mts +2 -2
  207. package/package.json +15 -15
  208. package/dist/apps-5iJb710M.cjs.map +0 -1
  209. package/dist/apps-BE97n0jO.mjs.map +0 -1
  210. package/dist/compose-BoxgqTF8.cjs.map +0 -1
  211. package/dist/compose-Dk0Z8zdf.mjs.map +0 -1
  212. package/dist/config-CLXSXbcs.cjs.map +0 -1
  213. package/dist/config-Da9bxnkT.mjs.map +0 -1
  214. package/dist/deploy-C4Qb-A-z.mjs.map +0 -1
  215. package/dist/deploy-CGywNg5R.cjs.map +0 -1
  216. package/dist/notes-B9ro_R3x.cjs.map +0 -1
  217. package/dist/notes-CdbUjLBC.mjs.map +0 -1
  218. package/dist/seeds-D7q1zKCJ.cjs.map +0 -1
  219. package/dist/seeds-y1rzXlAc.mjs.map +0 -1
  220. package/dist/stack-9qBhn2pd.cjs.map +0 -1
  221. package/dist/stack-dVgzDUiH.mjs.map +0 -1
  222. package/dist/types-BXboFkn9.d.mts.map +0 -1
  223. package/dist/types-BsfPHUFZ.d.cts.map +0 -1
@@ -1,22 +1,22 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
2
  const require_errors = require("./errors-DMC4Umsb.cjs");
3
- const require_credentials = require("./credentials-BR3dNNtO.cjs");
3
+ const require_credentials = require("./credentials-DVYgFK_H.cjs");
4
4
  const require_workspace = require("./workspace-VhzmoxOv.cjs");
5
- const require_apps = require("./apps-5iJb710M.cjs");
5
+ const require_apps = require("./apps-S3RMvFyk.cjs");
6
6
  const require_define = require("./define-crmMcXFS.cjs");
7
- const require_compose = require("./compose-Dpkkp-Qq.cjs");
7
+ const require_compose = require("./compose-CNJO99Tv.cjs");
8
+ const require_config = require("./config-CXj-9eRo.cjs");
8
9
  const require_SubscriberGenerator = require("./SubscriberGenerator-mZpSuSU7.cjs");
9
- const require_config = require("./config-CLXSXbcs.cjs");
10
10
  const require_discover = require("./discover-CRywE7yc.cjs");
11
- const require_resolve = require("./resolve-DDcPuS_G.cjs");
12
- const require_notes = require("./notes-B9ro_R3x.cjs");
13
- const require_stack = require("./stack-9qBhn2pd.cjs");
14
- const require_snsSubscriptions = require("./snsSubscriptions-CSyPnoEQ.cjs");
15
- const require_local = require("./local-vSeEreyp.cjs");
16
- const require_sniffer = require("./sniffer-B2jgjk-F.cjs");
11
+ const require_resolve = require("./resolve-5T34quci.cjs");
12
+ const require_notes = require("./notes-BtyuHcKA.cjs");
13
+ const require_stack = require("./stack-TUs2DY7v.cjs");
14
+ const require_snsSubscriptions = require("./snsSubscriptions-DpYvMVR9.cjs");
15
+ const require_local = require("./local-Cs_aQJ45.cjs");
16
+ const require_sniffer = require("./sniffer-DB4Ocija.cjs");
17
17
  const require_iam = require("./iam-BVPpX76R.cjs");
18
- const require_projectBucket = require("./projectBucket-DUtWAxWn.cjs");
19
- const require_seeds = require("./seeds-D7q1zKCJ.cjs");
18
+ const require_projectBucket = require("./projectBucket-0Lvy2J0h.cjs");
19
+ const require_seeds = require("./seeds-Bc3niNVb.cjs");
20
20
  const require_credentialSchemas = require("./credentialSchemas-BAklWDna.cjs");
21
21
  let node_path = require("node:path");
22
22
  let node_crypto = require("node:crypto");
@@ -367,7 +367,11 @@ async function writeProviderDns(records, options) {
367
367
  plan.records.push(planned);
368
368
  domains.set(domain, plan);
369
369
  }
370
- if (domains.size === 0) return { manual };
370
+ if (domains.size === 0) return {
371
+ manual,
372
+ changes: [],
373
+ providers: {}
374
+ };
371
375
  const plans = [...domains.values()];
372
376
  const tokens = await require_snsSubscriptions.dnsCredentials(options.stage, plans.map(({ domain, config }) => ({
373
377
  domain,
@@ -393,10 +397,47 @@ async function writeProviderDns(records, options) {
393
397
  const host = plans.find((p) => p.domain === change.domain)?.records.find((r) => r.name === change.name)?.host;
394
398
  if (host) manual.push(host);
395
399
  }
396
- return { manual: [...new Set(manual)].sort() };
400
+ return {
401
+ manual: [...new Set(manual)].sort(),
402
+ changes: applied.changes,
403
+ providers: Object.fromEntries(plans.map((p) => [p.domain, p.provider]))
404
+ };
397
405
  }
398
406
  //#endregion
399
407
  //#region src/providers/s3/cdn.ts
408
+ /**
409
+ * A file server over an `s3` bucket, served through a CDN.
410
+ *
411
+ * Without one a file server answers on the bucket's regional endpoint: every
412
+ * reader, wherever they are, fetches from one region, on an `amazonaws.com`
413
+ * host. With one — the default — each file server gets, on the stage:
414
+ *
415
+ * - **a certificate** for `<fileserver>.<domain>`, from ACM in us-east-1 (the
416
+ * one region CloudFront reads certificates from), validated by a CNAME the
417
+ * deploy writes through the stage's DNS providers and keeps, because ACM
418
+ * renews against the same record;
419
+ * - **an origin access control**, which signs CloudFront's requests to the
420
+ * bucket, and a bucket policy statement granting exactly the stage's
421
+ * distributions `s3:GetObject` on exactly the open prefixes (see
422
+ * `bucketPolicy`) — the bucket itself is never public;
423
+ * - **response headers policies**: CORS for the stage's sites (the same
424
+ * derivation the bucket's own CORS rule uses), and, for the paths the file
425
+ * server calls `immutable`, `Cache-Control: public, max-age=31536000,
426
+ * immutable` over whatever the object was stored with;
427
+ * - **a distribution** on that name: HTTPS only, compressed, GET/HEAD/OPTIONS,
428
+ * cached with AWS's managed `CachingOptimized` policy — keyed on the path
429
+ * alone, so no query string or cookie fragments the cache;
430
+ * - **a CNAME** from the name to the distribution, through the same DNS
431
+ * providers.
432
+ *
433
+ * Open paths only: a key outside them is refused to CloudFront by the bucket
434
+ * policy, so the edge answers it 403, and a signed read goes to the bucket's
435
+ * own host as before (`signedUrl` is an S3 presign).
436
+ *
437
+ * Every resource is recorded in the stage's state and reused, found by its
438
+ * name when a run died before recording it, and put back when it drifted.
439
+ * Nothing is ever deleted.
440
+ */
400
441
  /** AWS's managed `CachingOptimized` cache policy: path-keyed, gzip and brotli. */
401
442
  const CACHING_OPTIMIZED = "658327ea-f89d-4fab-a63d-7e88639e58f6";
402
443
  /** What an immutable path is served with. */
@@ -460,9 +501,12 @@ var CdnCertificateFailed = class extends require_errors.GkmError {
460
501
  this.name = "CdnCertificateFailed";
461
502
  }
462
503
  };
463
- /** Where a file server answers: `<fileserver>.<domain>`. */
504
+ /**
505
+ * Where a file server answers: its own name, `assets.<domain>` for
506
+ * `AssetsServer` — see {@link fileServerLabel}.
507
+ */
464
508
  function cdnHost(serverId, domain) {
465
- return `${require_config.appKey(serverId)}.${domain}`.toLowerCase();
509
+ return `${require_config.fileServerLabel(serverId)}.${domain}`.toLowerCase();
466
510
  }
467
511
  /**
468
512
  * The name the stage's CDN resources go by, within CloudFront's limits:
@@ -807,6 +851,15 @@ async function ensureServerCdn(ctx, clients, input) {
807
851
  };
808
852
  }
809
853
  /**
854
+ * The idempotency token a certificate is requested with: one per file server
855
+ * and host. ACM answers a repeat of a token within the hour with the
856
+ * certificate it issued for it — so a host changed within the hour of the
857
+ * last request would otherwise get the old host's certificate back.
858
+ */
859
+ function certificateToken(name, host) {
860
+ return (0, node_crypto.createHash)("sha256").update(`${name}\n${host.toLowerCase()}`).digest("hex").slice(0, 32);
861
+ }
862
+ /**
810
863
  * The secret the CDN sends a file server's processors: the one in the stage's
811
864
  * secrets, or a new one written there — read by the stack, whose edge checks
812
865
  * it, when it composes.
@@ -853,7 +906,7 @@ async function ensureCertificate(ctx, clients, input) {
853
906
  arn = (await acm.send(new ACM.RequestCertificateCommand({
854
907
  DomainName: host,
855
908
  ValidationMethod: "DNS",
856
- IdempotencyToken: input.name.replace(/[^A-Za-z0-9]/g, "").slice(0, 32),
909
+ IdempotencyToken: certificateToken(input.name, host),
857
910
  Tags: require_iam.identityTags(ctx, id).map((t) => ({
858
911
  Key: t.Key,
859
912
  Value: t.Value
@@ -2557,19 +2610,44 @@ function urlSetElsewhere(ctx, email) {
2557
2610
  const user = smtpUser(given);
2558
2611
  return user !== record.id && user !== record.data?.previous;
2559
2612
  }
2613
+ /** The state entry of the address gkm last wrote as `email`'s sender. */
2614
+ function senderEntry(email) {
2615
+ return {
2616
+ key: `email-from:${email}`,
2617
+ type: "email-from"
2618
+ };
2619
+ }
2560
2620
  /**
2561
- * The address `email` sends from: `from`, else what the stage's secrets
2562
- * hold, else `noreply@` the stage's domain.
2621
+ * The address `email` sends from: `from`; else one the stage's secrets hold
2622
+ * that gkm did not write — set by hand, or imported; else `noreply@` the
2623
+ * stage's domain. An address gkm wrote follows the domain: after a change of
2624
+ * `domains.<stage>`, mail is sent as the new one.
2563
2625
  *
2626
+ * @returns the address, and whether it is gkm's to write and record
2564
2627
  * @throws {EmailSenderUnknown} with none of them
2565
2628
  */
2566
2629
  function senderOf(ctx, email) {
2567
- if (ctx.config.from) return ctx.config.from;
2630
+ if (ctx.config.from) return {
2631
+ address: ctx.config.from,
2632
+ ours: true
2633
+ };
2568
2634
  const held = ctx.secrets[(0, _geekmidas_manifest.provideKey)(email, "from")];
2569
- if (held) return held;
2635
+ const wrote = ctx.state.record(senderEntry(email).key)?.id;
2570
2636
  const domain = ctx.workspace.domains?.[ctx.stage];
2571
- if (!domain) throw new require_workspace.EmailSenderUnknown(ctx.stage);
2572
- return `noreply@${domain}`;
2637
+ const fallback = domain ? `noreply@${domain}` : void 0;
2638
+ if (held && held !== wrote && held !== fallback) return {
2639
+ address: held,
2640
+ ours: false
2641
+ };
2642
+ if (fallback) return {
2643
+ address: fallback,
2644
+ ours: true
2645
+ };
2646
+ if (held) return {
2647
+ address: held,
2648
+ ours: false
2649
+ };
2650
+ throw new require_workspace.EmailSenderUnknown(ctx.stage);
2573
2651
  }
2574
2652
  /** The domain of an address — `noreply@x.com` or `Acme <noreply@x.com>`. */
2575
2653
  function domainOf(address) {
@@ -2599,7 +2677,7 @@ async function ensureSesEmail(ctx) {
2599
2677
  if (owned.length === 0) return;
2600
2678
  const region = s3Region(ctx);
2601
2679
  const senders = new Map(owned.map((e) => [e.id, senderOf(ctx, e.id)]));
2602
- const domains = [...new Set([...senders.values()].map(domainOf))].sort();
2680
+ const domains = [...new Set([...senders.values()].map((s) => domainOf(s.address)))].sort();
2603
2681
  const ses = await sesClients(ctx.credential, region);
2604
2682
  const clients = await iamClients(ctx.credential, region);
2605
2683
  try {
@@ -2607,7 +2685,7 @@ async function ensureSesEmail(ctx) {
2607
2685
  for (const domain of domains) await ensureIdentity(ctx, ses, domain);
2608
2686
  await noteSandbox(ctx, ses, region);
2609
2687
  for (const email of owned) {
2610
- const from = senders.get(email.id);
2688
+ const { address: from, ours } = senders.get(email.id);
2611
2689
  const domain = domainOf(from);
2612
2690
  const user = await require_iam.ensureIamUser(ctx, clients, {
2613
2691
  id: email.id,
@@ -2627,6 +2705,7 @@ async function ensureSesEmail(ctx) {
2627
2705
  resource: fromKey,
2628
2706
  change: `set to ${from}`
2629
2707
  }, () => ctx.writeSecrets({ [fromKey]: from }));
2708
+ if (ours && ctx.state.record(senderEntry(email.id).key)?.id !== from) await ctx.state.ready(senderEntry(email.id), from);
2630
2709
  }
2631
2710
  } finally {
2632
2711
  ses.ses.destroy();
@@ -2648,27 +2727,24 @@ async function ensureSesEmail(ctx) {
2648
2727
  async function ensureIdentity(ctx, { SES, ses }, domain) {
2649
2728
  const { DkimAttributes } = await ses.send(new SES.GetIdentityDkimAttributesCommand({ Identities: [domain] }));
2650
2729
  const dkim = DkimAttributes?.[domain];
2651
- if (dkim?.DkimVerificationStatus === "Success") {
2652
- if (dkim.DkimEnabled) return;
2653
- await ctx.change({
2654
- construct: "email",
2655
- resource: `SES identity ${domain}`,
2656
- change: "turn DKIM signing back on"
2657
- }, async () => {
2658
- await ses.send(new SES.SetIdentityDkimEnabledCommand({
2659
- Identity: domain,
2660
- DkimEnabled: true
2661
- }));
2662
- });
2663
- return;
2664
- }
2665
- let tokens = [];
2666
- await ctx.change({
2730
+ const verified = dkim?.DkimVerificationStatus === "Success";
2731
+ let tokens = dkim?.DkimTokens ?? [];
2732
+ if (verified && !dkim.DkimEnabled) await ctx.change({
2733
+ construct: "email",
2734
+ resource: `SES identity ${domain}`,
2735
+ change: "turn DKIM signing back on"
2736
+ }, async () => {
2737
+ await ses.send(new SES.SetIdentityDkimEnabledCommand({
2738
+ Identity: domain,
2739
+ DkimEnabled: true
2740
+ }));
2741
+ });
2742
+ if (!verified) await ctx.change({
2667
2743
  construct: "email",
2668
2744
  resource: `SES identity ${domain}`,
2669
2745
  change: "verify with DKIM"
2670
2746
  }, async () => {
2671
- tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ?? [];
2747
+ tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ?? tokens;
2672
2748
  });
2673
2749
  if (tokens.length === 0) return;
2674
2750
  await ctx.writeDns(tokens.map((token) => ({
@@ -2676,6 +2752,7 @@ async function ensureIdentity(ctx, { SES, ses }, domain) {
2676
2752
  type: "CNAME",
2677
2753
  value: `${token}.dkim.amazonses.com`
2678
2754
  })));
2755
+ if (verified) return;
2679
2756
  ctx.log(` ${domain}: SES sends as it once its DKIM records resolve — usually minutes, at most 72 hours`);
2680
2757
  }
2681
2758
  /** Say so when the account is in SES's sandbox, rather than fail on a send. */
@@ -2797,7 +2874,8 @@ async function provisionStage(options) {
2797
2874
  kind,
2798
2875
  mode: choice.mode,
2799
2876
  actions: [],
2800
- planned: []
2877
+ planned: [],
2878
+ dns: []
2801
2879
  });
2802
2880
  continue;
2803
2881
  }
@@ -2807,7 +2885,8 @@ async function provisionStage(options) {
2807
2885
  mode: "provider",
2808
2886
  provider: provider.name,
2809
2887
  actions: [],
2810
- planned: []
2888
+ planned: [],
2889
+ dns: []
2811
2890
  };
2812
2891
  reports.push(report);
2813
2892
  const ids = constructsOf(manifest, kind);
@@ -2835,7 +2914,8 @@ async function provisionStage(options) {
2835
2914
  const identity = require_credentials.deployIdentity(workspace, stage);
2836
2915
  let secrets = (await options.secrets.read())?.custom ?? {};
2837
2916
  for (const entry of configured) entry.report.planned = entry.provider.runtimeKeys(manifest).filter((key) => secrets[key] === void 0);
2838
- const state = dryRun ? await readOnlyState(options.state, stage) : journalState(await require_seeds.DeployJournal.open(options.state, stage, () => require_apps.deploysWithCompose(workspace) ? require_credentials.createComposeState(stage) : require_credentials.createEmptyState(stage, "", "")));
2917
+ const journal = dryRun ? void 0 : await require_seeds.DeployJournal.open(options.state, stage, () => require_apps.deploysWithCompose(workspace) ? require_credentials.createComposeState(stage) : require_credentials.createEmptyState(stage, "", ""));
2918
+ const state = journal ? journalState(journal) : await readOnlyState(options.state, stage);
2839
2919
  const writeSecrets = async (values) => {
2840
2920
  if (dryRun) return;
2841
2921
  const stored = await options.secrets.read() ?? require_credentials.initStageSecrets(stage);
@@ -2873,17 +2953,22 @@ async function provisionStage(options) {
2873
2953
  log(` ${dryRun ? "would " : ""}${action.change} — ${action.resource}`);
2874
2954
  },
2875
2955
  writeSecrets,
2876
- writeDns: (records) => writeProviderDns(records, {
2877
- workspace,
2878
- stage,
2879
- dryRun,
2880
- credentials: options.credentials ?? require_credentials.storedCredentials({
2881
- env,
2882
- ...options.home ? { home: options.home } : {}
2883
- }),
2884
- ...options.dnsProviderFor ? { providerFor: options.dnsProviderFor } : {},
2885
- log
2886
- }),
2956
+ writeDns: async (records) => {
2957
+ for (const record of records) entry.report.dns.push(require_seeds.dnsResourceKey(record.host.replace(/\.$/, ""), record.type));
2958
+ const written = await writeProviderDns(records, {
2959
+ workspace,
2960
+ stage,
2961
+ dryRun,
2962
+ credentials: options.credentials ?? require_credentials.storedCredentials({
2963
+ env,
2964
+ ...options.home ? { home: options.home } : {}
2965
+ }),
2966
+ ...options.dnsProviderFor ? { providerFor: options.dnsProviderFor } : {},
2967
+ log
2968
+ });
2969
+ if (journal) await recordProviderDns(journal, written);
2970
+ return { manual: written.manual };
2971
+ },
2887
2972
  log
2888
2973
  });
2889
2974
  if (entry.report.actions.length === 0) log(" up to date");
@@ -2893,6 +2978,7 @@ async function provisionStage(options) {
2893
2978
  kind: "backups",
2894
2979
  mode: backups.mode === "on" ? "provider" : "none",
2895
2980
  actions: [],
2981
+ dns: [],
2896
2982
  planned: backups.mode === "on" && secrets["BACKUPS_URL"] === void 0 ? [require_apps.BACKUPS_URL_KEY] : []
2897
2983
  };
2898
2984
  reports.push(report);
@@ -2926,6 +3012,28 @@ async function provisionStage(options) {
2926
3012
  }
2927
3013
  return reports;
2928
3014
  }
3015
+ /**
3016
+ * What a provider's records came to, kept in the stage's state as `dns-record`
3017
+ * resources a provider asked for — so a deploy on which no provider asks for
3018
+ * one any more, after a change of domain, prunes it like a stack's record.
3019
+ * One found already right is kept too: its value is an AWS resource's own —
3020
+ * a DKIM token, a validation record, a distribution — and gkm made that.
3021
+ */
3022
+ async function recordProviderDns(journal, written) {
3023
+ for (const change of written.changes) {
3024
+ if (change.value === void 0) continue;
3025
+ if (change.action === "delete" || change.action === "manual") continue;
3026
+ await require_seeds.recordDnsResource(journal, {
3027
+ domain: change.domain,
3028
+ name: change.name,
3029
+ type: change.type,
3030
+ value: change.value,
3031
+ ttl: change.ttl ?? 0,
3032
+ source: "provider",
3033
+ ...written.providers[change.domain] ? { provider: written.providers[change.domain] } : {}
3034
+ });
3035
+ }
3036
+ }
2929
3037
  /** The journal as `ensure()` sees it. */
2930
3038
  function journalState(journal) {
2931
3039
  return {
@@ -3325,6 +3433,7 @@ async function provisionResources(phaseCtx, request, ctx, store, emit) {
3325
3433
  credentials: ctx.credentials,
3326
3434
  log: (line) => phaseCtx.logger.info(line)
3327
3435
  });
3436
+ phaseCtx.providerDns = reports.flatMap((r) => r.dns);
3328
3437
  if (!ctx.dryRun) return;
3329
3438
  const planned = reports.flatMap((r) => r.planned);
3330
3439
  if (planned.length === 0) return;
@@ -3705,4 +3814,4 @@ Object.defineProperty(exports, "deploy", {
3705
3814
  }
3706
3815
  });
3707
3816
 
3708
- //# sourceMappingURL=deploy-CGywNg5R.cjs.map
3817
+ //# sourceMappingURL=deploy-DGXMqTan.cjs.map