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

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 (230) hide show
  1. package/dist/{GoDaddyProvider-DSzYpSc3.cjs → GoDaddyProvider-DClFHezd.cjs} +2 -2
  2. package/dist/{GoDaddyProvider-DSzYpSc3.cjs.map → GoDaddyProvider-DClFHezd.cjs.map} +1 -1
  3. package/dist/{GoDaddyProvider-BrZ7WtmP.mjs → GoDaddyProvider-mnY-cdD2.mjs} +2 -2
  4. package/dist/{GoDaddyProvider-BrZ7WtmP.mjs.map → GoDaddyProvider-mnY-cdD2.mjs.map} +1 -1
  5. package/dist/{HostingerProvider-D7N8GbQm.mjs → HostingerProvider-39eSGyBa.mjs} +2 -2
  6. package/dist/{HostingerProvider-D7N8GbQm.mjs.map → HostingerProvider-39eSGyBa.mjs.map} +1 -1
  7. package/dist/{HostingerProvider-DQusFkZJ.cjs → HostingerProvider-BMyz2LnZ.cjs} +2 -2
  8. package/dist/{HostingerProvider-DQusFkZJ.cjs.map → HostingerProvider-BMyz2LnZ.cjs.map} +1 -1
  9. package/dist/{LegacyStateStore-B2vZVXVe.mjs → LegacyStateStore-B2TBaSMq.mjs} +3 -3
  10. package/dist/{LegacyStateStore-B2vZVXVe.mjs.map → LegacyStateStore-B2TBaSMq.mjs.map} +1 -1
  11. package/dist/{LegacyStateStore-CxQkI3fQ.cjs → LegacyStateStore-BJY7ntQk.cjs} +3 -3
  12. package/dist/{LegacyStateStore-CxQkI3fQ.cjs.map → LegacyStateStore-BJY7ntQk.cjs.map} +1 -1
  13. package/dist/{LocalStateStore-ff4XiebR.mjs → LocalStateStore-8LFd-aMA.mjs} +2 -2
  14. package/dist/{LocalStateStore-ff4XiebR.mjs.map → LocalStateStore-8LFd-aMA.mjs.map} +1 -1
  15. package/dist/{LocalStateStore-CrrjFgMc.cjs → LocalStateStore-BvoEjPi5.cjs} +2 -2
  16. package/dist/{LocalStateStore-CrrjFgMc.cjs.map → LocalStateStore-BvoEjPi5.cjs.map} +1 -1
  17. package/dist/{S3StateStore-62sFppnE.mjs → S3StateStore-DMzsqfSa.mjs} +4 -4
  18. package/dist/{S3StateStore-62sFppnE.mjs.map → S3StateStore-DMzsqfSa.mjs.map} +1 -1
  19. package/dist/{S3StateStore-EnatbBd3.cjs → S3StateStore-eeA5NXRa.cjs} +4 -4
  20. package/dist/{S3StateStore-EnatbBd3.cjs.map → S3StateStore-eeA5NXRa.cjs.map} +1 -1
  21. package/dist/{SSMStateStore-CYPYh1c7.cjs → SSMStateStore-BUv-du0T.cjs} +2 -2
  22. package/dist/{SSMStateStore-CYPYh1c7.cjs.map → SSMStateStore-BUv-du0T.cjs.map} +1 -1
  23. package/dist/{SSMStateStore-BON4jyRR.mjs → SSMStateStore-CE2DTAtT.mjs} +2 -2
  24. package/dist/{SSMStateStore-BON4jyRR.mjs.map → SSMStateStore-CE2DTAtT.mjs.map} +1 -1
  25. package/dist/{add-CzoX8swL.mjs → add-BgCYGJpE.mjs} +6 -6
  26. package/dist/{add-CzoX8swL.mjs.map → add-BgCYGJpE.mjs.map} +1 -1
  27. package/dist/{add-D65M2URP.cjs → add-Dp0KQNkQ.cjs} +7 -7
  28. package/dist/{add-D65M2URP.cjs.map → add-Dp0KQNkQ.cjs.map} +1 -1
  29. package/dist/{apps-Dquc1K9N.mjs → apps-CJTOIaz3.mjs} +4 -5
  30. package/dist/{apps-Dquc1K9N.mjs.map → apps-CJTOIaz3.mjs.map} +1 -1
  31. package/dist/{apps-DY82zCeA.cjs → apps-DkMR-qvD.cjs} +22 -23
  32. package/dist/{apps-DY82zCeA.cjs.map → apps-DkMR-qvD.cjs.map} +1 -1
  33. package/dist/{bundler-wtMYRk9K.cjs → bundler-CA7KimJ0.cjs} +6 -6
  34. package/dist/{bundler-wtMYRk9K.cjs.map → bundler-CA7KimJ0.cjs.map} +1 -1
  35. package/dist/{bundler-9RpLU2H3.mjs → bundler-Dt1ffXl6.mjs} +6 -6
  36. package/dist/{bundler-9RpLU2H3.mjs.map → bundler-Dt1ffXl6.mjs.map} +1 -1
  37. package/dist/{cli-D0Tu6u1G.mjs → cli-C-fdEb8N.mjs} +5 -5
  38. package/dist/{cli-D0Tu6u1G.mjs.map → cli-C-fdEb8N.mjs.map} +1 -1
  39. package/dist/{cli-CgZuiNWv.cjs → cli-CY1Cp8yN.cjs} +5 -5
  40. package/dist/{cli-CgZuiNWv.cjs.map → cli-CY1Cp8yN.cjs.map} +1 -1
  41. package/dist/{compose-DgBUpgXh.cjs → compose-BIm9yNH7.cjs} +6 -6
  42. package/dist/{compose-DgBUpgXh.cjs.map → compose-BIm9yNH7.cjs.map} +1 -1
  43. package/dist/{compose-pbLaJlts.mjs → compose-CZGeE6QJ.mjs} +6 -6
  44. package/dist/{compose-pbLaJlts.mjs.map → compose-CZGeE6QJ.mjs.map} +1 -1
  45. package/dist/{compose-kEjxTamg.cjs → compose-SmuCWWUh.cjs} +22 -10
  46. package/dist/compose-SmuCWWUh.cjs.map +1 -0
  47. package/dist/{compose-BfTrMiAk.mjs → compose-tX6YTa1U.mjs} +22 -10
  48. package/dist/compose-tX6YTa1U.mjs.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-BxSSAzVi.d.mts → config-u5XdE1Cq.d.cts} +3 -3
  52. package/dist/{config-DNoWqavN.d.cts.map → config-u5XdE1Cq.d.cts.map} +1 -1
  53. package/dist/config.cjs +457 -19
  54. package/dist/config.cjs.map +1 -0
  55. package/dist/config.d.cts +3 -3
  56. package/dist/config.d.mts +3 -3
  57. package/dist/config.mjs +440 -2
  58. package/dist/config.mjs.map +1 -0
  59. package/dist/{credentials-Bel6afW2.cjs → credentials-CS3Dr-pv.cjs} +6 -6
  60. package/dist/{credentials-Bel6afW2.cjs.map → credentials-CS3Dr-pv.cjs.map} +1 -1
  61. package/dist/{credentials-BgtOz5ec.mjs → credentials-V3WgiKmZ.mjs} +6 -6
  62. package/dist/{credentials-BgtOz5ec.mjs.map → credentials-V3WgiKmZ.mjs.map} +1 -1
  63. package/dist/deploy/public.cjs +13 -13
  64. package/dist/deploy/public.d.cts +4 -4
  65. package/dist/deploy/public.d.mts +4 -4
  66. package/dist/deploy/public.mjs +13 -13
  67. package/dist/{deploy-C4V-nsOF.cjs → deploy--ia-CGMv.cjs} +174 -68
  68. package/dist/deploy--ia-CGMv.cjs.map +1 -0
  69. package/dist/{deploy-D-5ib-ah.mjs → deploy-BWFFSN5p.mjs} +166 -60
  70. package/dist/deploy-BWFFSN5p.mjs.map +1 -0
  71. package/dist/{destroy-DuQqz53a.cjs → destroy-CrxF8Dlk.cjs} +12 -12
  72. package/dist/{destroy-DuQqz53a.cjs.map → destroy-CrxF8Dlk.cjs.map} +1 -1
  73. package/dist/{destroy-CYQCEn4A.mjs → destroy-ZNiKL3--.mjs} +12 -12
  74. package/dist/{destroy-CYQCEn4A.mjs.map → destroy-ZNiKL3--.mjs.map} +1 -1
  75. package/dist/{docker-BMReDeMB.cjs → docker-BtUjo-J_.cjs} +9 -8
  76. package/dist/{docker-BMReDeMB.cjs.map → docker-BtUjo-J_.cjs.map} +1 -1
  77. package/dist/{docker-BEsTfsFc.mjs → docker-DhmU416x.mjs} +6 -5
  78. package/dist/{docker-BEsTfsFc.mjs.map → docker-DhmU416x.mjs.map} +1 -1
  79. package/dist/{dokploy-BuYCnz9U.mjs → dokploy-BszAUbbA.mjs} +2 -2
  80. package/dist/{dokploy-BuYCnz9U.mjs.map → dokploy-BszAUbbA.mjs.map} +1 -1
  81. package/dist/{dokploy-BpPAgZ0u.cjs → dokploy-ComPiFLl.cjs} +2 -2
  82. package/dist/{dokploy-BpPAgZ0u.cjs.map → dokploy-ComPiFLl.cjs.map} +1 -1
  83. package/dist/{eas-DjVtUdb4.mjs → eas-DQudP2g2.mjs} +3 -3
  84. package/dist/{eas-DjVtUdb4.mjs.map → eas-DQudP2g2.mjs.map} +1 -1
  85. package/dist/{eas-H-6ixmsY.cjs → eas-zxVAWY6c.cjs} +6 -6
  86. package/dist/{eas-H-6ixmsY.cjs.map → eas-zxVAWY6c.cjs.map} +1 -1
  87. package/dist/{encryption-CR4aMkSK.mjs → encryption-BCaweYBJ.mjs} +4 -4
  88. package/dist/{encryption-CR4aMkSK.mjs.map → encryption-BCaweYBJ.mjs.map} +1 -1
  89. package/dist/{encryption-BvCsBp2p.cjs → encryption-CU5O0Y61.cjs} +4 -4
  90. package/dist/{encryption-BvCsBp2p.cjs.map → encryption-CU5O0Y61.cjs.map} +1 -1
  91. package/dist/{engine-upEpdhEF.mjs → engine-BzeCK6e8.mjs} +10 -11
  92. package/dist/{engine-upEpdhEF.mjs.map → engine-BzeCK6e8.mjs.map} +1 -1
  93. package/dist/{engine-CV2wqRFl.cjs → engine-xrlcbr1g.cjs} +11 -12
  94. package/dist/{engine-CV2wqRFl.cjs.map → engine-xrlcbr1g.cjs.map} +1 -1
  95. package/dist/{github-D2l7aqFx.mjs → github-CHClpJZS.mjs} +116 -72
  96. package/dist/github-CHClpJZS.mjs.map +1 -0
  97. package/dist/{github-BDOLgdMp.cjs → github-Jcrqfzg0.cjs} +116 -72
  98. package/dist/github-Jcrqfzg0.cjs.map +1 -0
  99. package/dist/{googlePlay-DJ2Kv0UX.mjs → googlePlay-Dk_pnif9.mjs} +5 -5
  100. package/dist/{googlePlay-DJ2Kv0UX.mjs.map → googlePlay-Dk_pnif9.mjs.map} +1 -1
  101. package/dist/{googlePlay-B3FR1VGL.cjs → googlePlay-e_tIBr4n.cjs} +5 -5
  102. package/dist/{googlePlay-B3FR1VGL.cjs.map → googlePlay-e_tIBr4n.cjs.map} +1 -1
  103. package/dist/{iam-BVPpX76R.cjs → iam-B6WLUf_x.cjs} +2 -2
  104. package/dist/{iam-BVPpX76R.cjs.map → iam-B6WLUf_x.cjs.map} +1 -1
  105. package/dist/{iam-q9ALh-Y5.mjs → iam-BKfO7u14.mjs} +2 -2
  106. package/dist/{iam-q9ALh-Y5.mjs.map → iam-BKfO7u14.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 +71 -71
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.mjs +65 -65
  114. package/dist/index.mjs.map +1 -1
  115. package/dist/{local-COaqGFDc.mjs → local-DUi3f-WB.mjs} +2 -2
  116. package/dist/{local-COaqGFDc.mjs.map → local-DUi3f-WB.mjs.map} +1 -1
  117. package/dist/{local-DhAnAhXn.cjs → local-Dc2h2Ex3.cjs} +2 -2
  118. package/dist/{local-DhAnAhXn.cjs.map → local-Dc2h2Ex3.cjs.map} +1 -1
  119. package/dist/{migrate-CusdrYsn.cjs → migrate-BU4eyd7z.cjs} +6 -6
  120. package/dist/{migrate-CusdrYsn.cjs.map → migrate-BU4eyd7z.cjs.map} +1 -1
  121. package/dist/{migrate-Nt9NOr1s.mjs → migrate-BxFCXc7M.mjs} +6 -6
  122. package/dist/{migrate-Nt9NOr1s.mjs.map → migrate-BxFCXc7M.mjs.map} +1 -1
  123. package/dist/{migrate-Hjvo9j_J.cjs → migrate-CIjcBr96.cjs} +4 -4
  124. package/dist/{migrate-Hjvo9j_J.cjs.map → migrate-CIjcBr96.cjs.map} +1 -1
  125. package/dist/{migrate-CpT7qBZE.mjs → migrate-CbpeVxEW.mjs} +4 -4
  126. package/dist/{migrate-CpT7qBZE.mjs.map → migrate-CbpeVxEW.mjs.map} +1 -1
  127. package/dist/{notes-CZvLIjfg.cjs → notes-DJyFkK13.cjs} +7 -8
  128. package/dist/{notes-CZvLIjfg.cjs.map → notes-DJyFkK13.cjs.map} +1 -1
  129. package/dist/{notes-B-tgKkvp.mjs → notes-TDHMzdVt.mjs} +3 -4
  130. package/dist/{notes-B-tgKkvp.mjs.map → notes-TDHMzdVt.mjs.map} +1 -1
  131. package/dist/openapi.cjs +3 -3
  132. package/dist/openapi.cjs.map +1 -1
  133. package/dist/openapi.d.cts +1 -1
  134. package/dist/openapi.d.mts +1 -1
  135. package/dist/openapi.mjs +2 -2
  136. package/dist/{projectBucket-DNAOBIYZ.mjs → projectBucket-BPzx0b0t.mjs} +2 -2
  137. package/dist/{projectBucket-DNAOBIYZ.mjs.map → projectBucket-BPzx0b0t.mjs.map} +1 -1
  138. package/dist/{projectBucket-XyxlpATc.cjs → projectBucket-CoskwJC5.cjs} +2 -2
  139. package/dist/{projectBucket-XyxlpATc.cjs.map → projectBucket-CoskwJC5.cjs.map} +1 -1
  140. package/dist/{publish-DmBXVNlk.cjs → publish-DB3-zkpm.cjs} +2 -2
  141. package/dist/{publish-DmBXVNlk.cjs.map → publish-DB3-zkpm.cjs.map} +1 -1
  142. package/dist/{publish-CwjRq8Ye.mjs → publish-LZ1eb-MI.mjs} +2 -2
  143. package/dist/{publish-CwjRq8Ye.mjs.map → publish-LZ1eb-MI.mjs.map} +1 -1
  144. package/dist/reconcile/public.d.cts +1 -1
  145. package/dist/reconcile/public.d.mts +1 -1
  146. package/dist/{resolve-BuqA14hD.cjs → resolve-B5_tOTJG.cjs} +4 -4
  147. package/dist/{resolve-BuqA14hD.cjs.map → resolve-B5_tOTJG.cjs.map} +1 -1
  148. package/dist/{resolve-vOUrXSHP.mjs → resolve-jez3Y1S0.mjs} +4 -4
  149. package/dist/{resolve-vOUrXSHP.mjs.map → resolve-jez3Y1S0.mjs.map} +1 -1
  150. package/dist/{rollback-CiyKH1HK.cjs → rollback-BNo1bCLO.cjs} +8 -8
  151. package/dist/{rollback-CiyKH1HK.cjs.map → rollback-BNo1bCLO.cjs.map} +1 -1
  152. package/dist/{rollback-glkFgz6-.mjs → rollback-BtOfxwo-.mjs} +8 -8
  153. package/dist/{rollback-glkFgz6-.mjs.map → rollback-BtOfxwo-.mjs.map} +1 -1
  154. package/dist/{runtime-MZ5Pqgan.d.mts → runtime-CKOkIrw0.d.cts} +2 -2
  155. package/dist/{runtime-BySbkdBz.d.cts.map → runtime-CKOkIrw0.d.cts.map} +1 -1
  156. package/dist/{runtime-BySbkdBz.d.cts → runtime-Cdvv8SfU.d.mts} +2 -2
  157. package/dist/{runtime-MZ5Pqgan.d.mts.map → runtime-Cdvv8SfU.d.mts.map} +1 -1
  158. package/dist/{s3-BZbRcH8T.mjs → s3-Bf_75vVl.mjs} +3 -3
  159. package/dist/{s3-BZbRcH8T.mjs.map → s3-Bf_75vVl.mjs.map} +1 -1
  160. package/dist/{s3-C0EBuF8n.cjs → s3-BlPwyu1L.cjs} +3 -3
  161. package/dist/{s3-C0EBuF8n.cjs.map → s3-BlPwyu1L.cjs.map} +1 -1
  162. package/dist/{seeds-D7q1zKCJ.cjs → seeds-Bc3niNVb.cjs} +95 -82
  163. package/dist/seeds-Bc3niNVb.cjs.map +1 -0
  164. package/dist/{seeds-y1rzXlAc.mjs → seeds-Ccn0Ru2T.mjs} +84 -83
  165. package/dist/seeds-Ccn0Ru2T.mjs.map +1 -0
  166. package/dist/{serverSetup-Dlj7JQW-.mjs → serverSetup-D0Zor2i4.mjs} +8 -8
  167. package/dist/{serverSetup-Dlj7JQW-.mjs.map → serverSetup-D0Zor2i4.mjs.map} +1 -1
  168. package/dist/{serverSetup-n1Znminh.cjs → serverSetup-D30vVD6t.cjs} +8 -8
  169. package/dist/{serverSetup-n1Znminh.cjs.map → serverSetup-D30vVD6t.cjs.map} +1 -1
  170. package/dist/{sniffer-DDAxYDqU.cjs → sniffer-Bw00z3I8.cjs} +8 -8
  171. package/dist/{sniffer-DDAxYDqU.cjs.map → sniffer-Bw00z3I8.cjs.map} +1 -1
  172. package/dist/{sniffer-BgzTs_Zt.mjs → sniffer-DdPDiNmc.mjs} +8 -8
  173. package/dist/{sniffer-BgzTs_Zt.mjs.map → sniffer-DdPDiNmc.mjs.map} +1 -1
  174. package/dist/{snsSubscriptions-CCyxCMoc.mjs → snsSubscriptions-DBxVTR6Y.mjs} +3 -3
  175. package/dist/{snsSubscriptions-CCyxCMoc.mjs.map → snsSubscriptions-DBxVTR6Y.mjs.map} +1 -1
  176. package/dist/{snsSubscriptions-Dr5ghfa5.cjs → snsSubscriptions-g7apv_fy.cjs} +3 -3
  177. package/dist/{snsSubscriptions-Dr5ghfa5.cjs.map → snsSubscriptions-g7apv_fy.cjs.map} +1 -1
  178. package/dist/{sst-DBkHn3mA.cjs → sst-CEs0bMxj.cjs} +6 -6
  179. package/dist/{sst-DBkHn3mA.cjs.map → sst-CEs0bMxj.cjs.map} +1 -1
  180. package/dist/{sst-CV5TemXa.mjs → sst-DJ22YDEq.mjs} +5 -5
  181. package/dist/{sst-CV5TemXa.mjs.map → sst-DJ22YDEq.mjs.map} +1 -1
  182. package/dist/{stack-Dku1pOA2.cjs → stack-BmG-lKgD.cjs} +12 -13
  183. package/dist/{stack-Dku1pOA2.cjs.map → stack-BmG-lKgD.cjs.map} +1 -1
  184. package/dist/{stack-r97Ao-uG.mjs → stack-Ds9jjpE1.mjs} +7 -8
  185. package/dist/{stack-r97Ao-uG.mjs.map → stack-Ds9jjpE1.mjs.map} +1 -1
  186. package/dist/{stage-Deb-7Ohk.mjs → stage-D9dfV1Ey.mjs} +7 -7
  187. package/dist/{stage-Deb-7Ohk.mjs.map → stage-D9dfV1Ey.mjs.map} +1 -1
  188. package/dist/{stage-Du8I-UIa.cjs → stage-kGc9L3yB.cjs} +7 -7
  189. package/dist/{stage-Du8I-UIa.cjs.map → stage-kGc9L3yB.cjs.map} +1 -1
  190. package/dist/{stages-CW7qtiJ2.mjs → stages-BL22BLJS.mjs} +3 -3
  191. package/dist/{stages-CW7qtiJ2.mjs.map → stages-BL22BLJS.mjs.map} +1 -1
  192. package/dist/{stages-CtqmEJJW.cjs → stages-CN53nNOK.cjs} +3 -3
  193. package/dist/{stages-CtqmEJJW.cjs.map → stages-CN53nNOK.cjs.map} +1 -1
  194. package/dist/target/public.cjs +1 -1
  195. package/dist/target/public.d.cts +2 -2
  196. package/dist/target/public.d.mts +2 -2
  197. package/dist/target/public.mjs +1 -1
  198. package/dist/{terminal-BEa0E3pz.mjs → terminal-C0A7S7fB.mjs} +2 -2
  199. package/dist/{terminal-BEa0E3pz.mjs.map → terminal-C0A7S7fB.mjs.map} +1 -1
  200. package/dist/{terminal-BXpp9kBr.cjs → terminal-DVlIWcUb.cjs} +2 -2
  201. package/dist/{terminal-BXpp9kBr.cjs.map → terminal-DVlIWcUb.cjs.map} +1 -1
  202. package/dist/{types-BsfPHUFZ.d.cts → types-DEmuMHsS.d.cts} +9 -1
  203. package/dist/types-DEmuMHsS.d.cts.map +1 -0
  204. package/dist/{types-BXboFkn9.d.mts → types-g_S0_RAi.d.mts} +9 -1
  205. package/dist/types-g_S0_RAi.d.mts.map +1 -0
  206. package/dist/workspace/index.cjs +1 -1
  207. package/dist/workspace/index.d.cts +2 -2
  208. package/dist/workspace/index.d.mts +2 -2
  209. package/dist/workspace/index.mjs +1 -1
  210. package/dist/{workspace-D5Vm2qcy.mjs → workspace-D4hzz6Xb.mjs} +331 -3
  211. package/dist/workspace-D4hzz6Xb.mjs.map +1 -0
  212. package/dist/{workspace-VhzmoxOv.cjs → workspace-DPSdiv-b.cjs} +371 -1
  213. package/dist/workspace-DPSdiv-b.cjs.map +1 -0
  214. package/package.json +15 -15
  215. package/dist/compose-BfTrMiAk.mjs.map +0 -1
  216. package/dist/compose-kEjxTamg.cjs.map +0 -1
  217. package/dist/config-CXj-9eRo.cjs +0 -890
  218. package/dist/config-CXj-9eRo.cjs.map +0 -1
  219. package/dist/config-Di0oJwM9.mjs +0 -759
  220. package/dist/config-Di0oJwM9.mjs.map +0 -1
  221. package/dist/deploy-C4V-nsOF.cjs.map +0 -1
  222. package/dist/deploy-D-5ib-ah.mjs.map +0 -1
  223. package/dist/github-BDOLgdMp.cjs.map +0 -1
  224. package/dist/github-D2l7aqFx.mjs.map +0 -1
  225. package/dist/seeds-D7q1zKCJ.cjs.map +0 -1
  226. package/dist/seeds-y1rzXlAc.mjs.map +0 -1
  227. package/dist/types-BXboFkn9.d.mts.map +0 -1
  228. package/dist/types-BsfPHUFZ.d.cts.map +0 -1
  229. package/dist/workspace-D5Vm2qcy.mjs.map +0 -1
  230. package/dist/workspace-VhzmoxOv.cjs.map +0 -1
@@ -1,24 +1,24 @@
1
1
  import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
2
- import { M as initStageSecrets, X as deployIdentity, Y as applicationName, a as findRootDomain, bt as gkmHome, d as mxValue, h as createEmptyState, i as extractSubdomain, k as secretsStoreFor, m as createComposeState, o as normalizeDnsConfig, r as storedCredentials } from "./credentials-BgtOz5ec.mjs";
3
- import { G as checkSesConfig, J as EmailNotProvisioned, K as checkSesEmailConfig, L as resolveStageTelemetry, N as assertDeployedStage, Q as IAM_POLICY_NAME, U as stageProvider, W as SES_PROVISIONING, X as InboxNotProvisioned, Y as EmailSenderUnknown, Z as SesReceivingUnsupported, _t as S3RegionRequired, at as checkS3Config, ct as BucketNameUnavailable, dt as BucketRegionMismatch, et as bucketName, ft as BucketRegionUnknown, ht as RecordedBucketUnreachable, it as S3_PROVISIONING, kt as isReservedStageKey, lt as BucketOwnedByAnotherProject, mt as ProvisionedBucketUnreachable, nt as randomSuffix, q as emailUserName, rt as suffixedBucketName, tt as iamUserName, u as getAppBuildOrder, ut as BucketProbeFailed } from "./workspace-D5Vm2qcy.mjs";
4
- import { A as originSecretKey, D as ORIGIN_VERIFY_HEADER, Et as mergeLifecycle, Gt as backupExpiries, Xt as deploysWithCompose, Yt as stageBackups, dt as BACKUPS_URL_KEY, f as constructGlobs, j as processorOriginHost, k as newOriginSecret, qt as backupsPrefix, t as appEnvKeys, ut as BACKUPS_SERVICE, zt as usesTelemetry } from "./apps-Dquc1K9N.mjs";
2
+ import { M as initStageSecrets, X as deployIdentity, Y as applicationName, a as findRootDomain, bt as gkmHome, d as mxValue, h as createEmptyState, i as extractSubdomain, k as secretsStoreFor, m as createComposeState, o as normalizeDnsConfig, r as storedCredentials } from "./credentials-V3WgiKmZ.mjs";
3
+ import { $ as SesReceivingUnsupported, G as checkSesConfig, It as isReservedStageKey, J as inboxBucketId, K as checkSesEmailConfig, L as resolveStageTelemetry, N as assertDeployedStage, Q as InboxNotProvisioned, St as RecordedBucketUnreachable, U as stageProvider, W as SES_PROVISIONING, X as EmailNotProvisioned, Y as inboxTopicName, Z as EmailSenderUnknown, _t as BucketProbeFailed, at as suffixedBucketName, dt as S3_PROVISIONING, et as IAM_POLICY_NAME, ft as checkS3Config, gt as BucketOwnedByAnotherProject, ht as BucketNameUnavailable, it as randomSuffix, nt as bucketName, ot as appKey, q as emailUserName, rt as iamUserName, st as derivedApps, u as getAppBuildOrder, ut as fileServerLabel, vt as BucketRegionMismatch, wt as S3RegionRequired, xt as ProvisionedBucketUnreachable, yt as BucketRegionUnknown } from "./workspace-D4hzz6Xb.mjs";
4
+ import { A as originSecretKey, D as ORIGIN_VERIFY_HEADER, Et as mergeLifecycle, Gt as backupExpiries, Xt as deploysWithCompose, Yt as stageBackups, dt as BACKUPS_URL_KEY, f as constructGlobs, j as processorOriginHost, k as newOriginSecret, qt as backupsPrefix, t as appEnvKeys, ut as BACKUPS_SERVICE, zt as usesTelemetry } from "./apps-CJTOIaz3.mjs";
5
5
  import { o as builtinTarget } from "./define-6poNqm5O.mjs";
6
- import { at as resolveHost, it as isMainFrontendApp, nt as NoDomainForStage } from "./compose-pbLaJlts.mjs";
7
- import { S as fileServerLabel, _ as withLoadedConfig, l as findWorkspaceRoot, m as loadWorkspaceConfig, v as appKey, y as derivedApps } from "./config-Di0oJwM9.mjs";
6
+ import { at as resolveHost, it as isMainFrontendApp, nt as NoDomainForStage } from "./compose-CZGeE6QJ.mjs";
8
7
  import { s as subscriberRoute } from "./SubscriberGenerator-BybB6uez.mjs";
9
8
  import { _ as withSandbox, b as withOutput, i as discover } from "./discover-DbDrCQ8h.mjs";
10
- import { a as parseTargetOptions, o as resolveTarget } from "./resolve-vOUrXSHP.mjs";
11
- import { a as PROVIDER_KINDS, c as DevServicesNeedServerTarget, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, l as ExternalServicesNotConfigured, m as reportDevServices, n as assertStageProvidersEnabled, p as externalServices } from "./notes-B-tgKkvp.mjs";
12
- import { w as assertSitePasswords } from "./stack-r97Ao-uG.mjs";
13
- import { S as awsProvisioningCredentials, a as subscriptionKey, b as awsClientConfig, f as recordTtl, h as settleStackDns, l as dnsCredentials, o as subscriptionResource, v as stageDnsDomains, x as awsEndpoint } from "./snsSubscriptions-CCyxCMoc.mjs";
14
- import { t as LocalSandbox } from "./local-COaqGFDc.mjs";
15
- import { E as eventError, S as createStateStore, v as assertStateOutlivesRun, y as assertStateRoom } from "./sniffer-BgzTs_Zt.mjs";
16
- import { a as identityTags, c as whileKeyIsNew, d as corsRule, f as publicAccessBlock, i as ensureIamUser, l as bucketPolicy, o as issuedJustNow, p as userPolicy, r as ensureAccessKey, s as s3KeySecret, t as TAG_PROJECT, u as canonicalPolicy } from "./iam-q9ALh-Y5.mjs";
17
- import { a as findProjectBucket, i as ensureProjectBucket, o as projectBucketName, r as callerAccountId, s as reconcileProjectBucketLifecycle } from "./projectBucket-DNAOBIYZ.mjs";
18
- import { f as DeployJournal } from "./seeds-y1rzXlAc.mjs";
9
+ import { findWorkspaceRoot, loadWorkspaceConfig, withLoadedConfig } from "./config.mjs";
10
+ import { a as parseTargetOptions, o as resolveTarget } from "./resolve-jez3Y1S0.mjs";
11
+ import { a as PROVIDER_KINDS, c as DevServicesNeedServerTarget, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, l as ExternalServicesNotConfigured, m as reportDevServices, n as assertStageProvidersEnabled, p as externalServices } from "./notes-TDHMzdVt.mjs";
12
+ import { w as assertSitePasswords } from "./stack-Ds9jjpE1.mjs";
13
+ import { S as awsProvisioningCredentials, a as subscriptionKey, b as awsClientConfig, f as recordTtl, h as settleStackDns, l as dnsCredentials, o as subscriptionResource, v as stageDnsDomains, x as awsEndpoint } from "./snsSubscriptions-DBxVTR6Y.mjs";
14
+ import { t as LocalSandbox } from "./local-DUi3f-WB.mjs";
15
+ import { E as eventError, S as createStateStore, v as assertStateOutlivesRun, y as assertStateRoom } from "./sniffer-DdPDiNmc.mjs";
16
+ import { a as identityTags, c as whileKeyIsNew, d as corsRule, f as publicAccessBlock, i as ensureIamUser, l as bucketPolicy, o as issuedJustNow, p as userPolicy, r as ensureAccessKey, s as s3KeySecret, t as TAG_PROJECT, u as canonicalPolicy } from "./iam-BKfO7u14.mjs";
17
+ import { a as findProjectBucket, i as ensureProjectBucket, o as projectBucketName, r as callerAccountId, s as reconcileProjectBucketLifecycle } from "./projectBucket-BPzx0b0t.mjs";
18
+ import { m as recordDnsResource, s as DeployJournal, u as dnsResourceKey } from "./seeds-Ccn0Ru2T.mjs";
19
19
  import { n as assertStageCredentials } from "./credentialSchemas-mz9QZTYh.mjs";
20
20
  import { resolve } from "node:path";
21
- import { createHmac } from "node:crypto";
21
+ import { createHash, createHmac } from "node:crypto";
22
22
  import { INBOX_MESSAGES_PREFIX, bucketExpiry, dependentsOf, provideKey, providedKeyFor, receiptRecipients } from "@geekmidas/manifest";
23
23
  import * as s3Url from "@geekmidas/storage/s3-url";
24
24
  //#region src/target/secrets.ts
@@ -365,7 +365,11 @@ async function writeProviderDns(records, options) {
365
365
  plan.records.push(planned);
366
366
  domains.set(domain, plan);
367
367
  }
368
- if (domains.size === 0) return { manual };
368
+ if (domains.size === 0) return {
369
+ manual,
370
+ changes: [],
371
+ providers: {}
372
+ };
369
373
  const plans = [...domains.values()];
370
374
  const tokens = await dnsCredentials(options.stage, plans.map(({ domain, config }) => ({
371
375
  domain,
@@ -391,10 +395,47 @@ async function writeProviderDns(records, options) {
391
395
  const host = plans.find((p) => p.domain === change.domain)?.records.find((r) => r.name === change.name)?.host;
392
396
  if (host) manual.push(host);
393
397
  }
394
- return { manual: [...new Set(manual)].sort() };
398
+ return {
399
+ manual: [...new Set(manual)].sort(),
400
+ changes: applied.changes,
401
+ providers: Object.fromEntries(plans.map((p) => [p.domain, p.provider]))
402
+ };
395
403
  }
396
404
  //#endregion
397
405
  //#region src/providers/s3/cdn.ts
406
+ /**
407
+ * A file server over an `s3` bucket, served through a CDN.
408
+ *
409
+ * Without one a file server answers on the bucket's regional endpoint: every
410
+ * reader, wherever they are, fetches from one region, on an `amazonaws.com`
411
+ * host. With one — the default — each file server gets, on the stage:
412
+ *
413
+ * - **a certificate** for `<fileserver>.<domain>`, from ACM in us-east-1 (the
414
+ * one region CloudFront reads certificates from), validated by a CNAME the
415
+ * deploy writes through the stage's DNS providers and keeps, because ACM
416
+ * renews against the same record;
417
+ * - **an origin access control**, which signs CloudFront's requests to the
418
+ * bucket, and a bucket policy statement granting exactly the stage's
419
+ * distributions `s3:GetObject` on exactly the open prefixes (see
420
+ * `bucketPolicy`) — the bucket itself is never public;
421
+ * - **response headers policies**: CORS for the stage's sites (the same
422
+ * derivation the bucket's own CORS rule uses), and, for the paths the file
423
+ * server calls `immutable`, `Cache-Control: public, max-age=31536000,
424
+ * immutable` over whatever the object was stored with;
425
+ * - **a distribution** on that name: HTTPS only, compressed, GET/HEAD/OPTIONS,
426
+ * cached with AWS's managed `CachingOptimized` policy — keyed on the path
427
+ * alone, so no query string or cookie fragments the cache;
428
+ * - **a CNAME** from the name to the distribution, through the same DNS
429
+ * providers.
430
+ *
431
+ * Open paths only: a key outside them is refused to CloudFront by the bucket
432
+ * policy, so the edge answers it 403, and a signed read goes to the bucket's
433
+ * own host as before (`signedUrl` is an S3 presign).
434
+ *
435
+ * Every resource is recorded in the stage's state and reused, found by its
436
+ * name when a run died before recording it, and put back when it drifted.
437
+ * Nothing is ever deleted.
438
+ */
398
439
  /** AWS's managed `CachingOptimized` cache policy: path-keyed, gzip and brotli. */
399
440
  const CACHING_OPTIMIZED = "658327ea-f89d-4fab-a63d-7e88639e58f6";
400
441
  /** What an immutable path is served with. */
@@ -808,6 +849,15 @@ async function ensureServerCdn(ctx, clients, input) {
808
849
  };
809
850
  }
810
851
  /**
852
+ * The idempotency token a certificate is requested with: one per file server
853
+ * and host. ACM answers a repeat of a token within the hour with the
854
+ * certificate it issued for it — so a host changed within the hour of the
855
+ * last request would otherwise get the old host's certificate back.
856
+ */
857
+ function certificateToken(name, host) {
858
+ return createHash("sha256").update(`${name}\n${host.toLowerCase()}`).digest("hex").slice(0, 32);
859
+ }
860
+ /**
811
861
  * The secret the CDN sends a file server's processors: the one in the stage's
812
862
  * secrets, or a new one written there — read by the stack, whose edge checks
813
863
  * it, when it composes.
@@ -854,7 +904,7 @@ async function ensureCertificate(ctx, clients, input) {
854
904
  arn = (await acm.send(new ACM.RequestCertificateCommand({
855
905
  DomainName: host,
856
906
  ValidationMethod: "DNS",
857
- IdempotencyToken: input.name.replace(/[^A-Za-z0-9]/g, "").slice(0, 32),
907
+ IdempotencyToken: certificateToken(input.name, host),
858
908
  Tags: identityTags(ctx, id).map((t) => ({
859
909
  Key: t.Key,
860
910
  Value: t.Value
@@ -2300,11 +2350,11 @@ async function ensureIdentity$1(ctx, { SES, ses }, domain) {
2300
2350
  /** One inbox: its bucket, its topic and their keys, and its receipt rule. */
2301
2351
  async function ensureInbox(ctx, { SES, ses }, events, input) {
2302
2352
  const { inbox, domain, region, ruleSet } = input;
2303
- const name = `${appKey(inbox.id)}-mail`;
2353
+ const name = inboxBucketId(inbox.id);
2304
2354
  const urlKey = provideKey(inbox.id, "url");
2305
2355
  const topicArn = await ensureTopic(ctx, events, {
2306
2356
  id: inbox.id,
2307
- topicName: `gkm-${ctx.identity.scope}-${ctx.stage}-${name}`.replace(/[^A-Za-z0-9_-]/g, "-").slice(0, 256),
2357
+ topicName: inboxTopicName(ctx.identity.scope, ctx.stage, inbox.id),
2308
2358
  publisher: "SES",
2309
2359
  policy: (arn) => receiptTopicPolicy(arn, events.account)
2310
2360
  });
@@ -2558,19 +2608,44 @@ function urlSetElsewhere(ctx, email) {
2558
2608
  const user = smtpUser(given);
2559
2609
  return user !== record.id && user !== record.data?.previous;
2560
2610
  }
2611
+ /** The state entry of the address gkm last wrote as `email`'s sender. */
2612
+ function senderEntry(email) {
2613
+ return {
2614
+ key: `email-from:${email}`,
2615
+ type: "email-from"
2616
+ };
2617
+ }
2561
2618
  /**
2562
- * The address `email` sends from: `from`, else what the stage's secrets
2563
- * hold, else `noreply@` the stage's domain.
2619
+ * The address `email` sends from: `from`; else one the stage's secrets hold
2620
+ * that gkm did not write — set by hand, or imported; else `noreply@` the
2621
+ * stage's domain. An address gkm wrote follows the domain: after a change of
2622
+ * `domains.<stage>`, mail is sent as the new one.
2564
2623
  *
2624
+ * @returns the address, and whether it is gkm's to write and record
2565
2625
  * @throws {EmailSenderUnknown} with none of them
2566
2626
  */
2567
2627
  function senderOf(ctx, email) {
2568
- if (ctx.config.from) return ctx.config.from;
2628
+ if (ctx.config.from) return {
2629
+ address: ctx.config.from,
2630
+ ours: true
2631
+ };
2569
2632
  const held = ctx.secrets[provideKey(email, "from")];
2570
- if (held) return held;
2633
+ const wrote = ctx.state.record(senderEntry(email).key)?.id;
2571
2634
  const domain = ctx.workspace.domains?.[ctx.stage];
2572
- if (!domain) throw new EmailSenderUnknown(ctx.stage);
2573
- return `noreply@${domain}`;
2635
+ const fallback = domain ? `noreply@${domain}` : void 0;
2636
+ if (held && held !== wrote && held !== fallback) return {
2637
+ address: held,
2638
+ ours: false
2639
+ };
2640
+ if (fallback) return {
2641
+ address: fallback,
2642
+ ours: true
2643
+ };
2644
+ if (held) return {
2645
+ address: held,
2646
+ ours: false
2647
+ };
2648
+ throw new EmailSenderUnknown(ctx.stage);
2574
2649
  }
2575
2650
  /** The domain of an address — `noreply@x.com` or `Acme <noreply@x.com>`. */
2576
2651
  function domainOf(address) {
@@ -2600,7 +2675,7 @@ async function ensureSesEmail(ctx) {
2600
2675
  if (owned.length === 0) return;
2601
2676
  const region = s3Region(ctx);
2602
2677
  const senders = new Map(owned.map((e) => [e.id, senderOf(ctx, e.id)]));
2603
- const domains = [...new Set([...senders.values()].map(domainOf))].sort();
2678
+ const domains = [...new Set([...senders.values()].map((s) => domainOf(s.address)))].sort();
2604
2679
  const ses = await sesClients(ctx.credential, region);
2605
2680
  const clients = await iamClients(ctx.credential, region);
2606
2681
  try {
@@ -2608,7 +2683,7 @@ async function ensureSesEmail(ctx) {
2608
2683
  for (const domain of domains) await ensureIdentity(ctx, ses, domain);
2609
2684
  await noteSandbox(ctx, ses, region);
2610
2685
  for (const email of owned) {
2611
- const from = senders.get(email.id);
2686
+ const { address: from, ours } = senders.get(email.id);
2612
2687
  const domain = domainOf(from);
2613
2688
  const user = await ensureIamUser(ctx, clients, {
2614
2689
  id: email.id,
@@ -2628,6 +2703,7 @@ async function ensureSesEmail(ctx) {
2628
2703
  resource: fromKey,
2629
2704
  change: `set to ${from}`
2630
2705
  }, () => ctx.writeSecrets({ [fromKey]: from }));
2706
+ if (ours && ctx.state.record(senderEntry(email.id).key)?.id !== from) await ctx.state.ready(senderEntry(email.id), from);
2631
2707
  }
2632
2708
  } finally {
2633
2709
  ses.ses.destroy();
@@ -2649,27 +2725,24 @@ async function ensureSesEmail(ctx) {
2649
2725
  async function ensureIdentity(ctx, { SES, ses }, domain) {
2650
2726
  const { DkimAttributes } = await ses.send(new SES.GetIdentityDkimAttributesCommand({ Identities: [domain] }));
2651
2727
  const dkim = DkimAttributes?.[domain];
2652
- if (dkim?.DkimVerificationStatus === "Success") {
2653
- if (dkim.DkimEnabled) return;
2654
- await ctx.change({
2655
- construct: "email",
2656
- resource: `SES identity ${domain}`,
2657
- change: "turn DKIM signing back on"
2658
- }, async () => {
2659
- await ses.send(new SES.SetIdentityDkimEnabledCommand({
2660
- Identity: domain,
2661
- DkimEnabled: true
2662
- }));
2663
- });
2664
- return;
2665
- }
2666
- let tokens = [];
2667
- await ctx.change({
2728
+ const verified = dkim?.DkimVerificationStatus === "Success";
2729
+ let tokens = dkim?.DkimTokens ?? [];
2730
+ if (verified && !dkim.DkimEnabled) await ctx.change({
2731
+ construct: "email",
2732
+ resource: `SES identity ${domain}`,
2733
+ change: "turn DKIM signing back on"
2734
+ }, async () => {
2735
+ await ses.send(new SES.SetIdentityDkimEnabledCommand({
2736
+ Identity: domain,
2737
+ DkimEnabled: true
2738
+ }));
2739
+ });
2740
+ if (!verified) await ctx.change({
2668
2741
  construct: "email",
2669
2742
  resource: `SES identity ${domain}`,
2670
2743
  change: "verify with DKIM"
2671
2744
  }, async () => {
2672
- tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ?? [];
2745
+ tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ?? tokens;
2673
2746
  });
2674
2747
  if (tokens.length === 0) return;
2675
2748
  await ctx.writeDns(tokens.map((token) => ({
@@ -2677,6 +2750,7 @@ async function ensureIdentity(ctx, { SES, ses }, domain) {
2677
2750
  type: "CNAME",
2678
2751
  value: `${token}.dkim.amazonses.com`
2679
2752
  })));
2753
+ if (verified) return;
2680
2754
  ctx.log(` ${domain}: SES sends as it once its DKIM records resolve — usually minutes, at most 72 hours`);
2681
2755
  }
2682
2756
  /** Say so when the account is in SES's sandbox, rather than fail on a send. */
@@ -2797,7 +2871,8 @@ async function provisionStage(options) {
2797
2871
  kind,
2798
2872
  mode: choice.mode,
2799
2873
  actions: [],
2800
- planned: []
2874
+ planned: [],
2875
+ dns: []
2801
2876
  });
2802
2877
  continue;
2803
2878
  }
@@ -2807,7 +2882,8 @@ async function provisionStage(options) {
2807
2882
  mode: "provider",
2808
2883
  provider: provider.name,
2809
2884
  actions: [],
2810
- planned: []
2885
+ planned: [],
2886
+ dns: []
2811
2887
  };
2812
2888
  reports.push(report);
2813
2889
  const ids = constructsOf(manifest, kind);
@@ -2835,7 +2911,8 @@ async function provisionStage(options) {
2835
2911
  const identity = deployIdentity(workspace, stage);
2836
2912
  let secrets = (await options.secrets.read())?.custom ?? {};
2837
2913
  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 DeployJournal.open(options.state, stage, () => deploysWithCompose(workspace) ? createComposeState(stage) : createEmptyState(stage, "", "")));
2914
+ const journal = dryRun ? void 0 : await DeployJournal.open(options.state, stage, () => deploysWithCompose(workspace) ? createComposeState(stage) : createEmptyState(stage, "", ""));
2915
+ const state = journal ? journalState(journal) : await readOnlyState(options.state, stage);
2839
2916
  const writeSecrets = async (values) => {
2840
2917
  if (dryRun) return;
2841
2918
  const stored = await options.secrets.read() ?? initStageSecrets(stage);
@@ -2873,17 +2950,22 @@ async function provisionStage(options) {
2873
2950
  log(` ${dryRun ? "would " : ""}${action.change} — ${action.resource}`);
2874
2951
  },
2875
2952
  writeSecrets,
2876
- writeDns: (records) => writeProviderDns(records, {
2877
- workspace,
2878
- stage,
2879
- dryRun,
2880
- credentials: options.credentials ?? storedCredentials({
2881
- env,
2882
- ...options.home ? { home: options.home } : {}
2883
- }),
2884
- ...options.dnsProviderFor ? { providerFor: options.dnsProviderFor } : {},
2885
- log
2886
- }),
2953
+ writeDns: async (records) => {
2954
+ for (const record of records) entry.report.dns.push(dnsResourceKey(record.host.replace(/\.$/, ""), record.type));
2955
+ const written = await writeProviderDns(records, {
2956
+ workspace,
2957
+ stage,
2958
+ dryRun,
2959
+ credentials: options.credentials ?? storedCredentials({
2960
+ env,
2961
+ ...options.home ? { home: options.home } : {}
2962
+ }),
2963
+ ...options.dnsProviderFor ? { providerFor: options.dnsProviderFor } : {},
2964
+ log
2965
+ });
2966
+ if (journal) await recordProviderDns(journal, written);
2967
+ return { manual: written.manual };
2968
+ },
2887
2969
  log
2888
2970
  });
2889
2971
  if (entry.report.actions.length === 0) log(" up to date");
@@ -2893,6 +2975,7 @@ async function provisionStage(options) {
2893
2975
  kind: "backups",
2894
2976
  mode: backups.mode === "on" ? "provider" : "none",
2895
2977
  actions: [],
2978
+ dns: [],
2896
2979
  planned: backups.mode === "on" && secrets["BACKUPS_URL"] === void 0 ? [BACKUPS_URL_KEY] : []
2897
2980
  };
2898
2981
  reports.push(report);
@@ -2926,6 +3009,28 @@ async function provisionStage(options) {
2926
3009
  }
2927
3010
  return reports;
2928
3011
  }
3012
+ /**
3013
+ * What a provider's records came to, kept in the stage's state as `dns-record`
3014
+ * resources a provider asked for — so a deploy on which no provider asks for
3015
+ * one any more, after a change of domain, prunes it like a stack's record.
3016
+ * One found already right is kept too: its value is an AWS resource's own —
3017
+ * a DKIM token, a validation record, a distribution — and gkm made that.
3018
+ */
3019
+ async function recordProviderDns(journal, written) {
3020
+ for (const change of written.changes) {
3021
+ if (change.value === void 0) continue;
3022
+ if (change.action === "delete" || change.action === "manual") continue;
3023
+ await recordDnsResource(journal, {
3024
+ domain: change.domain,
3025
+ name: change.name,
3026
+ type: change.type,
3027
+ value: change.value,
3028
+ ttl: change.ttl ?? 0,
3029
+ source: "provider",
3030
+ ...written.providers[change.domain] ? { provider: written.providers[change.domain] } : {}
3031
+ });
3032
+ }
3033
+ }
2929
3034
  /** The journal as `ensure()` sees it. */
2930
3035
  function journalState(journal) {
2931
3036
  return {
@@ -3325,6 +3430,7 @@ async function provisionResources(phaseCtx, request, ctx, store, emit) {
3325
3430
  credentials: ctx.credentials,
3326
3431
  log: (line) => phaseCtx.logger.info(line)
3327
3432
  });
3433
+ phaseCtx.providerDns = reports.flatMap((r) => r.dns);
3328
3434
  if (!ctx.dryRun) return;
3329
3435
  const planned = reports.flatMap((r) => r.planned);
3330
3436
  if (planned.length === 0) return;
@@ -3652,4 +3758,4 @@ async function load(input, sandbox) {
3652
3758
  //#endregion
3653
3759
  export { UnknownDeployApps as a, defaultCdnClients as c, TargetBuildsNothing as i, backupsUserName as l, NoDeployableApps as n, defaultClients as o, RollbackFailed as r, cdnName as s, deploy as t };
3654
3760
 
3655
- //# sourceMappingURL=deploy-D-5ib-ah.mjs.map
3761
+ //# sourceMappingURL=deploy-BWFFSN5p.mjs.map