@geekmidas/cli 10.0.0-alpha.140 → 10.0.0-alpha.142

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 (262) hide show
  1. package/dist/{EndpointGenerator-BMRL04ic.mjs → EndpointGenerator-CusLH-9S.mjs} +2 -2
  2. package/dist/{EndpointGenerator-BMRL04ic.mjs.map → EndpointGenerator-CusLH-9S.mjs.map} +1 -1
  3. package/dist/{EndpointGenerator-ePscnbwB.cjs → EndpointGenerator-DyLMYClE.cjs} +2 -2
  4. package/dist/{EndpointGenerator-ePscnbwB.cjs.map → EndpointGenerator-DyLMYClE.cjs.map} +1 -1
  5. package/dist/{GoDaddyProvider-BgY6mqoH.mjs → GoDaddyProvider-BIibcRG4.mjs} +2 -3
  6. package/dist/{GoDaddyProvider-BgY6mqoH.mjs.map → GoDaddyProvider-BIibcRG4.mjs.map} +1 -1
  7. package/dist/{GoDaddyProvider-C-rs22Zv.cjs → GoDaddyProvider-C7Zt4dVy.cjs} +5 -6
  8. package/dist/{GoDaddyProvider-C-rs22Zv.cjs.map → GoDaddyProvider-C7Zt4dVy.cjs.map} +1 -1
  9. package/dist/{HostingerProvider-DEqpvoiD.cjs → HostingerProvider-BVhFhzCW.cjs} +2 -2
  10. package/dist/{HostingerProvider-DEqpvoiD.cjs.map → HostingerProvider-BVhFhzCW.cjs.map} +1 -1
  11. package/dist/{HostingerProvider-CgMuKgO_.mjs → HostingerProvider-DSHpNBim.mjs} +2 -2
  12. package/dist/{HostingerProvider-CgMuKgO_.mjs.map → HostingerProvider-DSHpNBim.mjs.map} +1 -1
  13. package/dist/{LegacyStateStore-Dx65SWE9.mjs → LegacyStateStore-Bd2I3zz7.mjs} +3 -3
  14. package/dist/{LegacyStateStore-Dx65SWE9.mjs.map → LegacyStateStore-Bd2I3zz7.mjs.map} +1 -1
  15. package/dist/{LegacyStateStore-6xskEtld.cjs → LegacyStateStore-DzRGMFhs.cjs} +3 -3
  16. package/dist/{LegacyStateStore-6xskEtld.cjs.map → LegacyStateStore-DzRGMFhs.cjs.map} +1 -1
  17. package/dist/{LocalStateStore-DFtTtHty.cjs → LocalStateStore-Ci_tzIfp.cjs} +2 -2
  18. package/dist/{LocalStateStore-DFtTtHty.cjs.map → LocalStateStore-Ci_tzIfp.cjs.map} +1 -1
  19. package/dist/{LocalStateStore-Dto39TCx.mjs → LocalStateStore-CzNrVQd2.mjs} +2 -2
  20. package/dist/{LocalStateStore-Dto39TCx.mjs.map → LocalStateStore-CzNrVQd2.mjs.map} +1 -1
  21. package/dist/{OpenApiTsGenerator-B-PQLx8X.mjs → OpenApiTsGenerator-BTMuu1WS.mjs} +2 -2
  22. package/dist/{OpenApiTsGenerator-B-PQLx8X.mjs.map → OpenApiTsGenerator-BTMuu1WS.mjs.map} +1 -1
  23. package/dist/{OpenApiTsGenerator-BvacdbiG.cjs → OpenApiTsGenerator-CI-tceXV.cjs} +2 -2
  24. package/dist/{OpenApiTsGenerator-BvacdbiG.cjs.map → OpenApiTsGenerator-CI-tceXV.cjs.map} +1 -1
  25. package/dist/{S3StateStore-C01zMOYm.mjs → S3StateStore-DVtcCMEc.mjs} +4 -4
  26. package/dist/{S3StateStore-C01zMOYm.mjs.map → S3StateStore-DVtcCMEc.mjs.map} +1 -1
  27. package/dist/{S3StateStore-B-9ea-sX.cjs → S3StateStore-LrKb9lH7.cjs} +5 -5
  28. package/dist/{S3StateStore-B-9ea-sX.cjs.map → S3StateStore-LrKb9lH7.cjs.map} +1 -1
  29. package/dist/{SSMStateStore-k-4XM7mb.mjs → SSMStateStore-CNHYH6g7.mjs} +2 -2
  30. package/dist/{SSMStateStore-k-4XM7mb.mjs.map → SSMStateStore-CNHYH6g7.mjs.map} +1 -1
  31. package/dist/{SSMStateStore-CKArcPUh.cjs → SSMStateStore-CpkvL95K.cjs} +2 -2
  32. package/dist/{SSMStateStore-CKArcPUh.cjs.map → SSMStateStore-CpkvL95K.cjs.map} +1 -1
  33. package/dist/{SubscriberGenerator-DR4Y7ihK.cjs → SubscriberGenerator-BNJyPmXJ.cjs} +3 -3
  34. package/dist/{SubscriberGenerator-DR4Y7ihK.cjs.map → SubscriberGenerator-BNJyPmXJ.cjs.map} +1 -1
  35. package/dist/{SubscriberGenerator-DLPH-ynS.mjs → SubscriberGenerator-CzPrixYu.mjs} +3 -3
  36. package/dist/{SubscriberGenerator-DLPH-ynS.mjs.map → SubscriberGenerator-CzPrixYu.mjs.map} +1 -1
  37. package/dist/{add-BgzsYxUq.cjs → add-AlV6_ljM.cjs} +18 -17
  38. package/dist/{add-BgzsYxUq.cjs.map → add-AlV6_ljM.cjs.map} +1 -1
  39. package/dist/{add-CiIrpOb9.mjs → add-B51nMuUd.mjs} +8 -7
  40. package/dist/{add-CiIrpOb9.mjs.map → add-B51nMuUd.mjs.map} +1 -1
  41. package/dist/apps-C1KiJqth.mjs +4593 -0
  42. package/dist/apps-C1KiJqth.mjs.map +1 -0
  43. package/dist/apps-CPdR2pYw.cjs +5002 -0
  44. package/dist/apps-CPdR2pYw.cjs.map +1 -0
  45. package/dist/{bundler-DKxuDoVL.cjs → bundler-B-hw8rJi.cjs} +33 -9
  46. package/dist/bundler-B-hw8rJi.cjs.map +1 -0
  47. package/dist/{bundler-C4uMSy8e.mjs → bundler-DbIt3a6I.mjs} +34 -10
  48. package/dist/bundler-DbIt3a6I.mjs.map +1 -0
  49. package/dist/{cli-na0npMhC.cjs → cli-6eYxU_Q2.cjs} +4 -4
  50. package/dist/{cli-na0npMhC.cjs.map → cli-6eYxU_Q2.cjs.map} +1 -1
  51. package/dist/{cli-Bm2is6R_.mjs → cli-CmmrPCM_.mjs} +4 -4
  52. package/dist/{cli-Bm2is6R_.mjs.map → cli-CmmrPCM_.mjs.map} +1 -1
  53. package/dist/compose-B2dCLbrc.cjs +1895 -0
  54. package/dist/compose-B2dCLbrc.cjs.map +1 -0
  55. package/dist/{compose-CVatM7Cl.mjs → compose-DVARqEeR.mjs} +16 -1830
  56. package/dist/compose-DVARqEeR.mjs.map +1 -0
  57. package/dist/{compose-D8U9ygdm.cjs → compose-D_fNsrkx.cjs} +101 -1969
  58. package/dist/compose-D_fNsrkx.cjs.map +1 -0
  59. package/dist/compose-kOpW9Pa1.mjs +1554 -0
  60. package/dist/compose-kOpW9Pa1.mjs.map +1 -0
  61. package/dist/config-BKpzKP6W.mjs +659 -0
  62. package/dist/config-BKpzKP6W.mjs.map +1 -0
  63. package/dist/config-QAqAEgb0.cjs +772 -0
  64. package/dist/config-QAqAEgb0.cjs.map +1 -0
  65. package/dist/config.cjs +16 -419
  66. package/dist/config.mjs +2 -405
  67. package/dist/{credentialSchemas-DZ2Nh5li.cjs → credentialSchemas-BAklWDna.cjs} +4 -5
  68. package/dist/{credentialSchemas-DZ2Nh5li.cjs.map → credentialSchemas-BAklWDna.cjs.map} +1 -1
  69. package/dist/{credentialSchemas-DUCSYl9a.mjs → credentialSchemas-mz9QZTYh.mjs} +2 -3
  70. package/dist/{credentialSchemas-DUCSYl9a.mjs.map → credentialSchemas-mz9QZTYh.mjs.map} +1 -1
  71. package/dist/credentials-CIpa4Hgs.cjs +2336 -0
  72. package/dist/credentials-CIpa4Hgs.cjs.map +1 -0
  73. package/dist/credentials-CWa7hRXd.mjs +1851 -0
  74. package/dist/credentials-CWa7hRXd.mjs.map +1 -0
  75. package/dist/{databases-P824RTnx.cjs → databases-DawSdqBI.cjs} +2 -2
  76. package/dist/{databases-P824RTnx.cjs.map → databases-DawSdqBI.cjs.map} +1 -1
  77. package/dist/{databases-Db48ZIXL.mjs → databases-mzSUFBTw.mjs} +2 -2
  78. package/dist/{databases-Db48ZIXL.mjs.map → databases-mzSUFBTw.mjs.map} +1 -1
  79. package/dist/deploy/public.cjs +24 -24
  80. package/dist/deploy/public.cjs.map +1 -1
  81. package/dist/deploy/public.d.cts.map +1 -1
  82. package/dist/deploy/public.d.mts.map +1 -1
  83. package/dist/deploy/public.mjs +13 -13
  84. package/dist/{deploy-DrQB7ytj.cjs → deploy-CjJ447kd.cjs} +73 -72
  85. package/dist/{deploy-DrQB7ytj.cjs.map → deploy-CjJ447kd.cjs.map} +1 -1
  86. package/dist/{deploy-CDcO08Xz.mjs → deploy-DqJiCwI9.mjs} +16 -15
  87. package/dist/{deploy-CDcO08Xz.mjs.map → deploy-DqJiCwI9.mjs.map} +1 -1
  88. package/dist/{discover-yqeJ2Bx7.cjs → discover-CRywE7yc.cjs} +157 -6
  89. package/dist/discover-CRywE7yc.cjs.map +1 -0
  90. package/dist/{discover-B2m8ytyq.mjs → discover-DbDrCQ8h.mjs} +117 -8
  91. package/dist/discover-DbDrCQ8h.mjs.map +1 -0
  92. package/dist/docker-CCzFCus7.mjs +1407 -0
  93. package/dist/docker-CCzFCus7.mjs.map +1 -0
  94. package/dist/docker-DK4rmb0u.cjs +1514 -0
  95. package/dist/docker-DK4rmb0u.cjs.map +1 -0
  96. package/dist/{dokploy-k4_ZN8zN.mjs → dokploy-B5_Y5wf0.mjs} +2 -2
  97. package/dist/{dokploy-k4_ZN8zN.mjs.map → dokploy-B5_Y5wf0.mjs.map} +1 -1
  98. package/dist/{dokploy-BKjPDvSN.cjs → dokploy-EJKX2T7M.cjs} +2 -2
  99. package/dist/{dokploy-BKjPDvSN.cjs.map → dokploy-EJKX2T7M.cjs.map} +1 -1
  100. package/dist/{drivers-C47nm-wB.cjs → drivers-aM87NQJi.cjs} +4 -91
  101. package/dist/drivers-aM87NQJi.cjs.map +1 -0
  102. package/dist/{drivers-CDjpjakg.mjs → drivers-uxLBq3e3.mjs} +3 -60
  103. package/dist/drivers-uxLBq3e3.mjs.map +1 -0
  104. package/dist/{eas-Bg4dI6n2.cjs → eas-AqSay-vE.cjs} +6 -6
  105. package/dist/{eas-Bg4dI6n2.cjs.map → eas-AqSay-vE.cjs.map} +1 -1
  106. package/dist/{eas-B1wBvwPH.mjs → eas-BQlD6Z-u.mjs} +3 -3
  107. package/dist/{eas-B1wBvwPH.mjs.map → eas-BQlD6Z-u.mjs.map} +1 -1
  108. package/dist/{encryption-DL_y8t6V.cjs → encryption-B6_aL5d-.cjs} +6 -6
  109. package/dist/{encryption-DL_y8t6V.cjs.map → encryption-B6_aL5d-.cjs.map} +1 -1
  110. package/dist/{encryption-Bve0PVOo.mjs → encryption-Dlh5mcE1.mjs} +3 -3
  111. package/dist/{encryption-Bve0PVOo.mjs.map → encryption-Dlh5mcE1.mjs.map} +1 -1
  112. package/dist/{engine-BhR5lt_V.cjs → engine-BAkmPI2z.cjs} +99 -97
  113. package/dist/{engine-BhR5lt_V.cjs.map → engine-BAkmPI2z.cjs.map} +1 -1
  114. package/dist/{engine-HMLf20iZ.mjs → engine-D3P2P6RK.mjs} +12 -10
  115. package/dist/{engine-HMLf20iZ.mjs.map → engine-D3P2P6RK.mjs.map} +1 -1
  116. package/dist/{github-B2hJVl-n.cjs → github-DokGIXT-.cjs} +18 -17
  117. package/dist/{github-B2hJVl-n.cjs.map → github-DokGIXT-.cjs.map} +1 -1
  118. package/dist/{github-DKn9ACi2.mjs → github-STWxD6cu.mjs} +9 -8
  119. package/dist/{github-DKn9ACi2.mjs.map → github-STWxD6cu.mjs.map} +1 -1
  120. package/dist/{googlePlay-DtuN0-7D.cjs → googlePlay-DL0htRJD.cjs} +5 -5
  121. package/dist/{googlePlay-DtuN0-7D.cjs.map → googlePlay-DL0htRJD.cjs.map} +1 -1
  122. package/dist/{googlePlay-CWq7ND_X.mjs → googlePlay-uAyXzxlu.mjs} +5 -5
  123. package/dist/{googlePlay-CWq7ND_X.mjs.map → googlePlay-uAyXzxlu.mjs.map} +1 -1
  124. package/dist/index.cjs +196 -192
  125. package/dist/index.cjs.map +1 -1
  126. package/dist/index.mjs +70 -66
  127. package/dist/index.mjs.map +1 -1
  128. package/dist/{local-OPC9BCZt.cjs → local-C6ndR_Wx.cjs} +6 -6
  129. package/dist/{local-OPC9BCZt.cjs.map → local-C6ndR_Wx.cjs.map} +1 -1
  130. package/dist/{local-B7Zv1NoA.mjs → local-CC7rdmgg.mjs} +3 -3
  131. package/dist/{local-B7Zv1NoA.mjs.map → local-CC7rdmgg.mjs.map} +1 -1
  132. package/dist/{migrate-BLVZqHtN.cjs → migrate-BbJUJ4CY.cjs} +6 -6
  133. package/dist/{migrate-BLVZqHtN.cjs.map → migrate-BbJUJ4CY.cjs.map} +1 -1
  134. package/dist/{migrate-iUui7B4q.cjs → migrate-CMurhHuj.cjs} +15 -13
  135. package/dist/{migrate-iUui7B4q.cjs.map → migrate-CMurhHuj.cjs.map} +1 -1
  136. package/dist/{migrate-W0ruUNb9.mjs → migrate-D079sADO.mjs} +3 -3
  137. package/dist/{migrate-W0ruUNb9.mjs.map → migrate-D079sADO.mjs.map} +1 -1
  138. package/dist/{migrate-DCvD4RJW.mjs → migrate-D27h4H79.mjs} +7 -5
  139. package/dist/{migrate-DCvD4RJW.mjs.map → migrate-D27h4H79.mjs.map} +1 -1
  140. package/dist/notes-B655tUny.cjs +500 -0
  141. package/dist/notes-B655tUny.cjs.map +1 -0
  142. package/dist/notes-wPJlNUj7.mjs +399 -0
  143. package/dist/notes-wPJlNUj7.mjs.map +1 -0
  144. package/dist/openapi.cjs +4 -5
  145. package/dist/openapi.cjs.map +1 -1
  146. package/dist/openapi.mjs +3 -4
  147. package/dist/openapi.mjs.map +1 -1
  148. package/dist/{projectBucket-BBbQ1lHF.cjs → projectBucket-Bs8ftcgB.cjs} +2 -2
  149. package/dist/{projectBucket-BBbQ1lHF.cjs.map → projectBucket-Bs8ftcgB.cjs.map} +1 -1
  150. package/dist/{projectBucket-C_DN4WzF.mjs → projectBucket-XVxyvW1y.mjs} +2 -2
  151. package/dist/{projectBucket-C_DN4WzF.mjs.map → projectBucket-XVxyvW1y.mjs.map} +1 -1
  152. package/dist/{publish-CxIBBD3b.mjs → publish-B9BNIaf2.mjs} +2 -2
  153. package/dist/{publish-CxIBBD3b.mjs.map → publish-B9BNIaf2.mjs.map} +1 -1
  154. package/dist/{publish-CqvDA5ry.cjs → publish-Bwgb-1JN.cjs} +2 -2
  155. package/dist/{publish-CqvDA5ry.cjs.map → publish-Bwgb-1JN.cjs.map} +1 -1
  156. package/dist/{ready-DuU0FXSj.cjs → ready-BNh3zsSn.cjs} +6 -6
  157. package/dist/{ready-DuU0FXSj.cjs.map → ready-BNh3zsSn.cjs.map} +1 -1
  158. package/dist/{ready-CGqJ74Kt.mjs → ready-g25dcGzK.mjs} +6 -6
  159. package/dist/{ready-CGqJ74Kt.mjs.map → ready-g25dcGzK.mjs.map} +1 -1
  160. package/dist/reconcile/public.cjs +1 -1
  161. package/dist/reconcile/public.mjs +1 -1
  162. package/dist/{resolve-CMC0MI0Z.mjs → resolve-DheFxtmy.mjs} +4 -4
  163. package/dist/{resolve-CMC0MI0Z.mjs.map → resolve-DheFxtmy.mjs.map} +1 -1
  164. package/dist/{resolve-BEVVvi13.cjs → resolve-Dir9EjMu.cjs} +4 -4
  165. package/dist/{resolve-BEVVvi13.cjs.map → resolve-Dir9EjMu.cjs.map} +1 -1
  166. package/dist/{rollback-CZiQkukY.mjs → rollback-BWAB77F9.mjs} +8 -8
  167. package/dist/{rollback-CZiQkukY.mjs.map → rollback-BWAB77F9.mjs.map} +1 -1
  168. package/dist/{rollback-e0zGkaBx.cjs → rollback-CrtuUKqe.cjs} +11 -11
  169. package/dist/{rollback-e0zGkaBx.cjs.map → rollback-CrtuUKqe.cjs.map} +1 -1
  170. package/dist/{s3-BKnL6YGQ.cjs → s3-DKJfDHUQ.cjs} +2 -2
  171. package/dist/{s3-BKnL6YGQ.cjs.map → s3-DKJfDHUQ.cjs.map} +1 -1
  172. package/dist/{s3-DW7SLsb8.mjs → s3-DNp8U0Ea.mjs} +2 -2
  173. package/dist/{s3-DW7SLsb8.mjs.map → s3-DNp8U0Ea.mjs.map} +1 -1
  174. package/dist/sandbox/credentials-worker.cjs +3 -4
  175. package/dist/sandbox/credentials-worker.cjs.map +1 -1
  176. package/dist/sandbox/credentials-worker.mjs +2 -3
  177. package/dist/sandbox/credentials-worker.mjs.map +1 -1
  178. package/dist/sandbox/discover-worker.cjs +1 -1
  179. package/dist/sandbox/discover-worker.mjs +1 -1
  180. package/dist/sandbox/migrate-worker.cjs +3 -4
  181. package/dist/sandbox/migrate-worker.cjs.map +1 -1
  182. package/dist/sandbox/migrate-worker.mjs +2 -3
  183. package/dist/sandbox/migrate-worker.mjs.map +1 -1
  184. package/dist/seeds-B3xvUAQf.cjs +363 -0
  185. package/dist/seeds-B3xvUAQf.cjs.map +1 -0
  186. package/dist/seeds-BCC8vAXR.mjs +298 -0
  187. package/dist/seeds-BCC8vAXR.mjs.map +1 -0
  188. package/dist/{serverSetup-D2Xzsp2t.cjs → serverSetup-BVL9HhNE.cjs} +9 -8
  189. package/dist/{serverSetup-D2Xzsp2t.cjs.map → serverSetup-BVL9HhNE.cjs.map} +1 -1
  190. package/dist/{serverSetup-C3Tt9X1R.mjs → serverSetup-D---hcyW.mjs} +7 -6
  191. package/dist/{serverSetup-C3Tt9X1R.mjs.map → serverSetup-D---hcyW.mjs.map} +1 -1
  192. package/dist/{sniffer-BWgXPFAt.cjs → sniffer-BjHnOaCe.cjs} +9 -10
  193. package/dist/{sniffer-BWgXPFAt.cjs.map → sniffer-BjHnOaCe.cjs.map} +1 -1
  194. package/dist/{sniffer-eEF_fIId.mjs → sniffer-DOyzfgPF.mjs} +8 -9
  195. package/dist/{sniffer-eEF_fIId.mjs.map → sniffer-DOyzfgPF.mjs.map} +1 -1
  196. package/dist/{snsSubscriptions-BSoqUgsq.mjs → snsSubscriptions-Cf5DZfO5.mjs} +4 -453
  197. package/dist/snsSubscriptions-Cf5DZfO5.mjs.map +1 -0
  198. package/dist/{snsSubscriptions-Y9declDd.cjs → snsSubscriptions-DB0iRByH.cjs} +12 -559
  199. package/dist/snsSubscriptions-DB0iRByH.cjs.map +1 -0
  200. package/dist/{sst-Bz2HJlqc.mjs → sst-3V-rcKcw.mjs} +27 -5
  201. package/dist/sst-3V-rcKcw.mjs.map +1 -0
  202. package/dist/{sst-lvCHdYsY.cjs → sst-DuU7Ju0c.cjs} +29 -7
  203. package/dist/sst-DuU7Ju0c.cjs.map +1 -0
  204. package/dist/stack-BRKZ69bf.mjs +2307 -0
  205. package/dist/stack-BRKZ69bf.mjs.map +1 -0
  206. package/dist/stack-CmHjkg7D.cjs +2536 -0
  207. package/dist/stack-CmHjkg7D.cjs.map +1 -0
  208. package/dist/{stage-DhcbcAar.mjs → stage-CTq3Gjsx.mjs} +7 -7
  209. package/dist/{stage-DhcbcAar.mjs.map → stage-CTq3Gjsx.mjs.map} +1 -1
  210. package/dist/{stage-BEcxppsu.cjs → stage-s_8HOsH0.cjs} +13 -13
  211. package/dist/{stage-BEcxppsu.cjs.map → stage-s_8HOsH0.cjs.map} +1 -1
  212. package/dist/{stages--icWbhPy.cjs → stages-CFI0OiLj.cjs} +2 -2
  213. package/dist/{stages--icWbhPy.cjs.map → stages-CFI0OiLj.cjs.map} +1 -1
  214. package/dist/{stages-CUwSy39f.mjs → stages-DoYa81kN.mjs} +2 -2
  215. package/dist/{stages-CUwSy39f.mjs.map → stages-DoYa81kN.mjs.map} +1 -1
  216. package/dist/target/public.cjs +1 -1
  217. package/dist/target/public.mjs +1 -1
  218. package/dist/{terminal-DURcYlVX.cjs → terminal-ChxtuTYJ.cjs} +3 -3
  219. package/dist/{terminal-DURcYlVX.cjs.map → terminal-ChxtuTYJ.cjs.map} +1 -1
  220. package/dist/{terminal-yOZ7kKF9.mjs → terminal-oHKnZHkT.mjs} +3 -3
  221. package/dist/{terminal-yOZ7kKF9.mjs.map → terminal-oHKnZHkT.mjs.map} +1 -1
  222. package/dist/types-Bl_CwZC9.cjs +90 -0
  223. package/dist/types-Bl_CwZC9.cjs.map +1 -0
  224. package/dist/types-Y1NfWlyG.mjs +61 -0
  225. package/dist/types-Y1NfWlyG.mjs.map +1 -0
  226. package/dist/vitest.cjs +1 -1
  227. package/dist/vitest.mjs +1 -1
  228. package/package.json +15 -15
  229. package/dist/bundler-C4uMSy8e.mjs.map +0 -1
  230. package/dist/bundler-DKxuDoVL.cjs.map +0 -1
  231. package/dist/compose-CVatM7Cl.mjs.map +0 -1
  232. package/dist/compose-D8U9ygdm.cjs.map +0 -1
  233. package/dist/config.cjs.map +0 -1
  234. package/dist/config.mjs.map +0 -1
  235. package/dist/credentials-D7XJypNd.cjs +0 -520
  236. package/dist/credentials-D7XJypNd.cjs.map +0 -1
  237. package/dist/credentials-DpfnUvIR.mjs +0 -395
  238. package/dist/credentials-DpfnUvIR.mjs.map +0 -1
  239. package/dist/derive-Cd7Hl3r2.mjs +0 -259
  240. package/dist/derive-Cd7Hl3r2.mjs.map +0 -1
  241. package/dist/derive-CgZfoBU2.cjs +0 -282
  242. package/dist/derive-CgZfoBU2.cjs.map +0 -1
  243. package/dist/discover-B2m8ytyq.mjs.map +0 -1
  244. package/dist/discover-yqeJ2Bx7.cjs.map +0 -1
  245. package/dist/drivers-C47nm-wB.cjs.map +0 -1
  246. package/dist/drivers-CDjpjakg.mjs.map +0 -1
  247. package/dist/identity-CBXr4wNi.mjs +0 -129
  248. package/dist/identity-CBXr4wNi.mjs.map +0 -1
  249. package/dist/identity-CbLfgQNT.cjs +0 -182
  250. package/dist/identity-CbLfgQNT.cjs.map +0 -1
  251. package/dist/sandbox-CHv3OYXg.cjs +0 -165
  252. package/dist/sandbox-CHv3OYXg.cjs.map +0 -1
  253. package/dist/sandbox-CbVB7uOD.mjs +0 -118
  254. package/dist/sandbox-CbVB7uOD.mjs.map +0 -1
  255. package/dist/seeds-BR_7hJTw.cjs +0 -10541
  256. package/dist/seeds-BR_7hJTw.cjs.map +0 -1
  257. package/dist/seeds-nCxxlP5h.mjs +0 -9418
  258. package/dist/seeds-nCxxlP5h.mjs.map +0 -1
  259. package/dist/snsSubscriptions-BSoqUgsq.mjs.map +0 -1
  260. package/dist/snsSubscriptions-Y9declDd.cjs.map +0 -1
  261. package/dist/sst-Bz2HJlqc.mjs.map +0 -1
  262. package/dist/sst-lvCHdYsY.cjs.map +0 -1
@@ -1,459 +1,8 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
1
  const require_errors = require("./errors-DMC4Umsb.cjs");
3
- const require_credentials = require("./credentials-D7XJypNd.cjs");
2
+ const require_credentials = require("./credentials-CIpa4Hgs.cjs");
4
3
  const require_workspace = require("./workspace-Dkm3HL9e.cjs");
5
- const require_seeds = require("./seeds-BR_7hJTw.cjs");
6
- const require_derive = require("./derive-CgZfoBU2.cjs");
7
- let node_path = require("node:path");
8
- let node_fs = require("node:fs");
9
4
  let node_net = require("node:net");
10
- let node_crypto = require("node:crypto");
11
- let _geekmidas_manifest = require("@geekmidas/manifest");
12
- let node_module = require("node:module");
13
- let node_url = require("node:url");
14
5
  let node_dns_promises = require("node:dns/promises");
15
- let bcryptjs = require("bcryptjs");
16
- bcryptjs = require_rolldown_runtime.__toESM(bcryptjs, 1);
17
- //#region src/providers/dns.ts
18
- /** Whether the workspace deploys through the compose target. */
19
- function deploysWithCompose(workspace) {
20
- return workspace.deploy?.default === "compose" || Object.values(workspace.apps).some((app) => app.resolvedDeployTarget === "compose");
21
- }
22
- //#endregion
23
- //#region src/backups/config.ts
24
- /**
25
- * Which stages take backups, and where they are kept.
26
- *
27
- * A deployed compose stage whose stack runs Postgres is backed up by
28
- * default — every day at 02:00 UTC, kept 30 days — unless
29
- * `deploy.backups.<stage>` says otherwise. The local stage never is.
30
- *
31
- * Every backup is kept in the project bucket (`providers/projectBucket.ts`),
32
- * beside the stage's deploy state, one folder per run and one file per
33
- * database:
34
- *
35
- * ```
36
- * gkm/<project>/<stage>/backups/2026-10-10/02-00-00Z/database.sql.gz
37
- * gkm/<project>/<stage>/backups/2026-10-10/02-00-00Z/auth-database.sql.gz
38
- * ```
39
- *
40
- * The file is named after the database's construct, the way its migrations
41
- * folder is: `AuthDatabase` is `db/auth-database`, and `auth-database.sql.gz`.
42
- */
43
- /** Whether the stack runs Postgres: some construct is a database. */
44
- function runsPostgres(manifest) {
45
- return Object.values(manifest).some((d) => d.kind === "database");
46
- }
47
- /**
48
- * What `stage`'s backups are: on — by its entry or the default — off by
49
- * `false`, or none, for the local stage, a stage compose does not deploy,
50
- * and a stack with no database.
51
- */
52
- function stageBackups(workspace, manifest, stage) {
53
- if (stage === workspace.stages?.local) return {
54
- mode: "none",
55
- reason: "local"
56
- };
57
- if (!deploysWithCompose(workspace)) return {
58
- mode: "none",
59
- reason: "not-compose"
60
- };
61
- if (!runsPostgres(manifest)) return {
62
- mode: "none",
63
- reason: "no-postgres"
64
- };
65
- const value = (workspace.deploy?.backups)?.[stage];
66
- const checked = require_workspace.checkStageBackups(stage, value ?? {});
67
- if (checked === false) return { mode: "disabled" };
68
- return {
69
- mode: "on",
70
- backups: checked,
71
- source: value === void 0 ? "default" : "config"
72
- };
73
- }
74
- /**
75
- * Where a stage's backups are, in the project bucket — under the same
76
- * `<prefix>/<project>/<stage>` its deploy state is: `gkm/shop/production/backups`.
77
- */
78
- function backupsPrefix(workspace, stage) {
79
- const state = workspace.state;
80
- const prefix = state?.provider === "s3" && state.prefix !== void 0 ? state.prefix.replace(/\/+$/, "") : "gkm";
81
- return `${prefix ? `${prefix}/` : ""}${workspace.name}/${stage}/backups`;
82
- }
83
- /** A run folder's time back, or `undefined` for a key that is not one. */
84
- function runTime(folder) {
85
- const match = /^(\d{4}-\d{2}-\d{2})\/(\d{2})-(\d{2})-(\d{2})Z$/.exec(folder);
86
- if (!match) return void 0;
87
- const at = /* @__PURE__ */ new Date(`${match[1]}T${match[2]}:${match[3]}:${match[4]}Z`);
88
- return Number.isNaN(at.getTime()) ? void 0 : at;
89
- }
90
- /** A database's file in a run's folder: `auth-database.sql.gz`. */
91
- function backupFile(database) {
92
- return `${database.file}.sql.gz`;
93
- }
94
- /** Each database the stack runs, by its construct and its name in Postgres. */
95
- function backupDatabases(resources) {
96
- return resources.filter((r) => r.kind === "database").map((r) => ({
97
- id: r.id,
98
- file: (0, _geekmidas_manifest.kebabCase)(r.id),
99
- name: r.name
100
- })).sort((a, b) => a.file.localeCompare(b.file));
101
- }
102
- /**
103
- * The expiry of every stage's backups, by each stage's own entry — what the
104
- * project bucket's lifecycle carries beside its own rule.
105
- *
106
- * A put replaces a bucket's whole lifecycle, so this is built from every
107
- * deployed stage each time, never from the stage being deployed alone: one
108
- * stage's deploy keeps every other's rule. A stage set to `false` has none,
109
- * and its backups are kept until someone deletes them.
110
- */
111
- function backupExpiries(workspace, manifest) {
112
- const expiries = [];
113
- for (const stage of [...workspace.stages?.deployed ?? []].sort()) {
114
- const choice = stageBackups(workspace, manifest, stage);
115
- if (choice.mode !== "on") continue;
116
- expiries.push({
117
- id: `gkm-backups-${stage}`,
118
- prefix: `${backupsPrefix(workspace, stage)}/`,
119
- days: choice.backups.keepDays,
120
- abortIncompleteDays: 1
121
- });
122
- }
123
- return expiries;
124
- }
125
- //#endregion
126
- //#region src/backups/service.ts
127
- /**
128
- * The stack's `backups` service: what a deployed compose stage with Postgres
129
- * runs beside its apps, unless `deploy.backups.<stage>` is `false`.
130
- *
131
- * - **The image** is built from the stack's own Postgres image —
132
- * `postgres:<major>-alpine`, already on the server for the stack, and with
133
- * the `pg_dump` that matches the server — with Node added and gkm's runner
134
- * (`runner.ts`) copied in. Nothing is pulled that the stack does not have,
135
- * and nothing is mounted from the host: the build context is two files.
136
- * - **Its key** is `BACKUPS_URL`, from the stage's secrets, like any app's:
137
- * allowed to put objects under the stage's backups prefix and nothing else.
138
- * The server holds no AWS credentials of its own.
139
- * - **Its login** is a role of its own, `<project>_backups`, granted
140
- * `pg_read_all_data` — it can read every database and write none. Postgres
141
- * before 14 has no such role, and there it signs in as the stack's
142
- * superuser.
143
- * - **Its health** is the last good run: unhealthy once that is more than
144
- * twice the schedule's longest gap old, after a startup grace.
145
- */
146
- /** The service's name in the stack. */
147
- const BACKUPS_SERVICE = "backups";
148
- /** The secret its key is written to. */
149
- const BACKUPS_URL_KEY = "BACKUPS_URL";
150
- /** Where the runner is, in the image. */
151
- const RUNNER_PATH = "/gkm/backup.mjs";
152
- /** The first Postgres with `pg_read_all_data`. */
153
- const READ_ALL_DATA_SINCE = 14;
154
- /** A stage that backs up, and no key to back up with. */
155
- var BackupsUrlMissing = class extends require_errors.GkmError {
156
- stage;
157
- constructor(stage) {
158
- super(`'${stage}' runs Postgres, so its stack backs it up, and its secrets hold no ${BACKUPS_URL_KEY} to back up with. The deploy writes it — the IAM user and key it creates in the stage's AWS account — so run the deploy with the account's credentials. To take no backups on this stage, set deploy.backups.${stage}: false.`);
159
- this.stage = stage;
160
- this.name = "BackupsUrlMissing";
161
- }
162
- };
163
- /** The backups role: `<project>_backups`, as the superuser is `<project>_admin`. */
164
- function backupsRole(project) {
165
- return `${require_seeds.postgresRoleSlug(project)}_backups`;
166
- }
167
- /**
168
- * The runner's source, as JavaScript: the built `backups/runner.mjs` beside
169
- * the CLI's bundle, or — run from source — `runner.ts`, with its types
170
- * stripped by esbuild.
171
- */
172
- function runnerSource() {
173
- const here = (0, node_path.dirname)((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
174
- for (const path of [
175
- (0, node_path.join)(here, "backups", "runner.mjs"),
176
- (0, node_path.join)(here, "runner.mjs"),
177
- (0, node_path.join)(here, "..", "backups", "runner.mjs")
178
- ]) if ((0, node_fs.existsSync)(path)) return (0, node_fs.readFileSync)(path, "utf-8");
179
- const { transformSync } = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href)("esbuild");
180
- return transformSync((0, node_fs.readFileSync)((0, node_path.join)(here, "runner.ts"), "utf-8"), {
181
- loader: "ts",
182
- format: "esm",
183
- target: "node22"
184
- }).code;
185
- }
186
- /** The image's Dockerfile: the stack's Postgres, Node, and the runner. */
187
- function backupsDockerfile(from) {
188
- return `# Generated by gkm — the stage's backups: pg_dump from ${from}, and gkm's uploader.
189
- FROM ${from}
190
- RUN apk add --no-cache nodejs
191
- COPY backup.mjs ${RUNNER_PATH}
192
- USER postgres
193
- ENTRYPOINT []
194
- CMD ["node", "${RUNNER_PATH}", "serve"]
195
- `;
196
- }
197
- /**
198
- * The stack's backups service, for a stage whose backups are on.
199
- *
200
- * @throws {BackupsUrlMissing} when the stage's secrets hold no key
201
- */
202
- function stackBackups(input) {
203
- const { plan, stage } = input;
204
- const version = plan.resources.find((r) => r.version)?.version ?? _geekmidas_manifest.DEFAULT_POSTGRES_VERSION;
205
- const from = require_seeds.postgresImage(version);
206
- const script = runnerSource();
207
- const dockerfile = backupsDockerfile(from);
208
- const hash = (0, node_crypto.createHash)("sha256").update(dockerfile).update(script).digest("hex").slice(0, 12);
209
- const readOnly = version >= READ_ALL_DATA_SINCE;
210
- const role = backupsRole(input.workspace.name);
211
- const login = readOnly ? {
212
- user: role,
213
- password: require_seeds.localRolePassword(input.workspace.name, plan, role, input.seed)
214
- } : input.superuser;
215
- const databases = backupDatabases(plan.resources);
216
- const prefix = backupsPrefix(input.workspace, stage);
217
- const { kind, ...schedule } = input.backups.schedule;
218
- let env = {};
219
- if (!input.buildOnly) {
220
- const url = input.custom[BACKUPS_URL_KEY];
221
- if (!url) throw new BackupsUrlMissing(stage);
222
- env = {
223
- BACKUPS_URL: url,
224
- BACKUPS_PREFIX: prefix,
225
- BACKUPS_DATABASES: JSON.stringify(databases.map(({ file, name }) => ({
226
- file,
227
- name
228
- }))),
229
- BACKUPS_SCHEDULE: JSON.stringify(kind === "cron" ? {
230
- kind,
231
- minutes: input.backups.schedule.minutes,
232
- hours: input.backups.schedule.hours,
233
- days: input.backups.schedule.days,
234
- months: input.backups.schedule.months,
235
- weekdays: input.backups.schedule.weekdays
236
- } : {
237
- kind,
238
- ...schedule
239
- }),
240
- BACKUPS_MAX_GAP_SECONDS: String(input.backups.maxGapSeconds),
241
- PGHOST: "postgres",
242
- PGPORT: "5432",
243
- PGUSER: login.user,
244
- PGPASSWORD: login.password,
245
- ...input.telemetry?.OTEL_EXPORTER_OTLP_ENDPOINT ? {
246
- OTEL_EXPORTER_OTLP_ENDPOINT: input.telemetry.OTEL_EXPORTER_OTLP_ENDPOINT,
247
- ...input.telemetry.OTEL_EXPORTER_OTLP_HEADERS ? { OTEL_EXPORTER_OTLP_HEADERS: input.telemetry.OTEL_EXPORTER_OTLP_HEADERS } : {},
248
- OTEL_SERVICE_NAME: BACKUPS_SERVICE
249
- } : {}
250
- };
251
- }
252
- return {
253
- backups: input.backups,
254
- databases,
255
- prefix,
256
- from,
257
- image: `${input.project}-backups:pg${version}-${hash}`,
258
- files: {
259
- Dockerfile: dockerfile,
260
- "backup.mjs": script
261
- },
262
- login,
263
- readOnly,
264
- env
265
- };
266
- }
267
- /** The service in the stack's compose file. */
268
- function backupsService(backups, envFiles) {
269
- return {
270
- image: backups.image,
271
- build: {
272
- context: `./${BACKUPS_SERVICE}`,
273
- dockerfile: "Dockerfile"
274
- },
275
- pull_policy: "build",
276
- restart: "unless-stopped",
277
- ...envFiles ? { env_file: [{
278
- path: `./${BACKUPS_SERVICE}.env`,
279
- format: "raw"
280
- }] } : {},
281
- depends_on: { postgres: { condition: "service_healthy" } },
282
- healthcheck: {
283
- test: [
284
- "CMD",
285
- "node",
286
- RUNNER_PATH,
287
- "health"
288
- ],
289
- interval: "1m",
290
- timeout: "10s",
291
- retries: 3,
292
- start_period: "30s"
293
- }
294
- };
295
- }
296
- /**
297
- * The backups role, created and kept: able to sign in and read every
298
- * database, and nothing else. None when it signs in as the superuser.
299
- */
300
- function backupsRoleStatements(backups) {
301
- if (!backups.readOnly) return [];
302
- const role = require_seeds.quoteIdentifier(backups.login.user);
303
- const password = `'${backups.login.password.replace(/'/g, "''")}'`;
304
- return [
305
- {
306
- id: BACKUPS_SERVICE,
307
- describe: `role ${backups.login.user}`,
308
- exists: {
309
- sql: "SELECT 1 FROM pg_roles WHERE rolname = $1",
310
- values: [backups.login.user]
311
- },
312
- create: `CREATE ROLE ${role} LOGIN PASSWORD ${password}`
313
- },
314
- {
315
- id: BACKUPS_SERVICE,
316
- describe: `role ${backups.login.user}: its password`,
317
- create: `ALTER ROLE ${role} WITH LOGIN PASSWORD ${password}`
318
- },
319
- {
320
- id: BACKUPS_SERVICE,
321
- describe: `role ${backups.login.user}: read every database`,
322
- create: `GRANT pg_read_all_data TO ${role}`
323
- }
324
- ];
325
- }
326
- //#endregion
327
- //#region src/compose/sitePassword.ts
328
- /**
329
- * A site served behind a password on some deployed stages — a `StaticSite`'s
330
- * `password`, naming a `RandomPassword` — so a staging build is not public
331
- * while it is being tried.
332
- *
333
- * The edge asks for it with HTTP basic auth, before a request reaches the
334
- * site: the browser prompts, and nothing of the site loads until the stage's
335
- * login is given. The user is the stage's name; the password is the
336
- * `RandomPassword`'s value on the stage, generated and kept like any other.
337
- * Only its bcrypt hash reaches the edge's config.
338
- *
339
- * Pure.
340
- */
341
- /** A site's `password` names a `RandomPassword` the manifest does not hold. */
342
- var SitePasswordNotDeclared = class extends require_errors.GkmError {
343
- site;
344
- secret;
345
- constructor(site, secret) {
346
- super(`'${site}' is served behind the password '${secret}', and no RandomPassword '${secret}' was found. Export it from a constructs file, as any construct is: export const ${secret[0].toLowerCase()}${secret.slice(1)} = new RandomPassword('${secret}');`);
347
- this.site = site;
348
- this.secret = secret;
349
- this.name = "SitePasswordNotDeclared";
350
- }
351
- };
352
- /** A site's `password` names a stage the workspace does not deploy. */
353
- var UnknownPasswordStage = class extends require_errors.GkmError {
354
- site;
355
- stage;
356
- deployed;
357
- constructor(site, stage, deployed) {
358
- super(`'${site}' is served behind a password on '${stage}', which is not one of the workspace's deployed stages (${deployed.map((s) => `'${s}'`).join(", ")}). Name one of them in its password's stages.`);
359
- this.site = site;
360
- this.stage = stage;
361
- this.deployed = deployed;
362
- this.name = "UnknownPasswordStage";
363
- }
364
- };
365
- /** A site behind a password, with none in the stage's secrets. */
366
- var SitePasswordMissing = class extends require_errors.GkmError {
367
- stage;
368
- key;
369
- constructor(stage, key) {
370
- super(`A site of '${stage}' is served behind a password, and the stage has no ${key} in its secrets. Run gkm compose --stage ${stage} once to generate it, or set one: gkm secrets:set ${key} '…' --stage ${stage}`);
371
- this.stage = stage;
372
- this.key = key;
373
- this.name = "SitePasswordMissing";
374
- }
375
- };
376
- /**
377
- * A site behind a password on a stage it deploys through a target that cannot
378
- * ask for a login. Refused rather than ignored: ignored, the site would be
379
- * public while its construct says it is not.
380
- */
381
- var SitePasswordNeedsCompose = class extends require_errors.GkmError {
382
- site;
383
- stage;
384
- target;
385
- constructor(site, stage, target) {
386
- super(`'${site}' is served behind a password on '${stage}', and it deploys through '${target}', which cannot ask for one yet — only compose does. Remove ${stage} from its password's stages, or deploy it with compose.`);
387
- this.site = site;
388
- this.stage = stage;
389
- this.target = target;
390
- this.name = "SitePasswordNeedsCompose";
391
- }
392
- };
393
- /**
394
- * The `RandomPassword` a site is served behind on `stage`, by its key —
395
- * `SITE_PASSWORD` — or `undefined` where the stage asks for none.
396
- *
397
- * @throws {SitePasswordNotDeclared} where the password is not in the manifest
398
- */
399
- function sitePasswordKey(manifest, site, stage) {
400
- const password = site.password;
401
- if (!password?.stages.includes(stage)) return void 0;
402
- const secret = manifest[password.secret];
403
- const key = secret?.kind === "secret" ? secret.provides?.[0] : void 0;
404
- if (!key) throw new SitePasswordNotDeclared(site.id, password.secret);
405
- return key;
406
- }
407
- /**
408
- * Before anything is deployed: every site behind a password names a deployed
409
- * stage and a declared `RandomPassword`, and one of `apps` behind it on
410
- * `stage` deploys through compose.
411
- *
412
- * @throws {UnknownPasswordStage}, {SitePasswordNotDeclared},
413
- * {SitePasswordNeedsCompose}
414
- */
415
- function assertSitePasswords(workspace, manifest, stage, apps, target) {
416
- for (const site of Object.values(manifest)) {
417
- if (site.kind !== "site" || !site.password) continue;
418
- for (const named of site.password.stages) if (!workspace.stages.deployed.includes(named)) throw new UnknownPasswordStage(site.id, named, workspace.stages.deployed);
419
- if (sitePasswordKey(manifest, site, stage) && target !== "compose" && apps.includes(require_derive.appKey(site.id))) throw new SitePasswordNeedsCompose(site.id, stage, target);
420
- }
421
- }
422
- /**
423
- * The login a site is served behind on `stage`, from the password kept under
424
- * `key`.
425
- *
426
- * The hash's salt is derived from the password, so the same password always
427
- * renders the same edge config: a deploy that changed nothing rewrites
428
- * nothing, and the proxy is not reloaded for it. A per-hash random salt
429
- * guards against a precomputed table of common passwords; a generated one is
430
- * 43 random characters, which no table holds.
431
- *
432
- * @throws {SitePasswordMissing} where the stage's secrets hold none
433
- */
434
- function siteAuth(stage, key, custom) {
435
- const password = custom[key];
436
- if (!password) throw new SitePasswordMissing(stage, key);
437
- return {
438
- user: stage,
439
- password,
440
- hash: bcryptjs.default.hashSync(password, saltFor(password)),
441
- key
442
- };
443
- }
444
- /** bcrypt's own base-64 alphabet, in which a salt is written. */
445
- const BCRYPT_ALPHABET = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
446
- /**
447
- * A bcrypt salt — `$2a$`, which Caddy and Traefik both read, at cost 10 —
448
- * derived from the password.
449
- */
450
- function saltFor(password) {
451
- const digest = (0, node_crypto.createHash)("sha256").update(password).digest();
452
- let salt = "";
453
- for (let i = 0; i < 22; i++) salt += BCRYPT_ALPHABET[digest[i] % 64];
454
- return `$2a$10$${salt}`;
455
- }
456
- //#endregion
457
6
  //#region src/providers/aws.ts
458
7
  /**
459
8
  * The AWS account a provider provisions in — the stage's, found the way the
@@ -669,11 +218,11 @@ var DnsWildcardRefused = class extends require_errors.GkmError {
669
218
  /** The records a stage's hosts need — pure. */
670
219
  function planStackDns(input) {
671
220
  const { stage, server } = input;
672
- const dns = input.dns ? require_seeds.normalizeDnsConfig(input.dns) : {};
221
+ const dns = input.dns ? require_credentials.normalizeDnsConfig(input.dns) : {};
673
222
  const records = /* @__PURE__ */ new Map();
674
223
  const uncovered = [];
675
224
  const add = (host, domain, type, value) => {
676
- const name = require_seeds.extractSubdomain(host, domain);
225
+ const name = require_credentials.extractSubdomain(host, domain);
677
226
  records.set(`${domain} ${name} ${type}`, {
678
227
  host,
679
228
  domain,
@@ -690,7 +239,7 @@ function planStackDns(input) {
690
239
  for (const raw of input.hosts) {
691
240
  const host = raw.toLowerCase();
692
241
  if (host.includes("*") && host !== input.wildcard?.toLowerCase()) throw new DnsWildcardRefused(stage, host);
693
- const domain = require_seeds.findRootDomain(host, dns);
242
+ const domain = require_credentials.findRootDomain(host, dns);
694
243
  if (!domain) {
695
244
  uncovered.push(host);
696
245
  continue;
@@ -774,7 +323,7 @@ async function readRecords(provider, domain, wanted) {
774
323
  }
775
324
  /** The provider for a domain's config: `providerFor`, or the real one. */
776
325
  function providerResolver(options) {
777
- return options.providerFor ?? ((config) => require_seeds.createDnsProvider({
326
+ return options.providerFor ?? ((config) => require_credentials.createDnsProvider({
778
327
  config,
779
328
  ...options.credentials ? { godaddy: options.credentials } : {},
780
329
  ...options.hostinger ? { hostinger: options.hostinger } : {}
@@ -900,7 +449,7 @@ async function settleStackDns(plan, options = {}) {
900
449
  existing = await existingRecords(provider, domain);
901
450
  diff = diffDomainDns(domain, existing);
902
451
  } catch (error) {
903
- if (!(error instanceof require_seeds.DnsRecordsUnreadable)) throw error;
452
+ if (!(error instanceof require_credentials.DnsRecordsUnreadable)) throw error;
904
453
  log(` ℹ The ${provider.name} key cannot read ${domain.domain}'s DNS records, so changes cannot be diffed: every record is written (idempotent).`);
905
454
  unreadable = true;
906
455
  existing = [];
@@ -996,7 +545,7 @@ async function pruneStackDns(stale, options) {
996
545
  const dryRun = options.dryRun === true;
997
546
  const log = options.log ?? ((line) => console.log(line));
998
547
  const providerFor = providerResolver(options);
999
- const dns = options.dns ? require_seeds.normalizeDnsConfig(options.dns) : {};
548
+ const dns = options.dns ? require_credentials.normalizeDnsConfig(options.dns) : {};
1000
549
  const byDomain = /* @__PURE__ */ new Map();
1001
550
  for (const record of stale) byDomain.set(record.domain, [...byDomain.get(record.domain) ?? [], record]);
1002
551
  log(` No longer served by '${options.stage}':`);
@@ -1029,7 +578,7 @@ async function pruneStackDns(stale, options) {
1029
578
  type: r.type
1030
579
  })));
1031
580
  } catch (error) {
1032
- if (!(error instanceof require_seeds.DnsRecordsUnreadable)) throw error;
581
+ if (!(error instanceof require_credentials.DnsRecordsUnreadable)) throw error;
1033
582
  byHand(domain, records, `the ${provider.name} key cannot read its records, so none is deleted unchecked`);
1034
583
  continue;
1035
584
  }
@@ -1188,8 +737,8 @@ var DnsCredentialMissing = class extends require_errors.GkmError {
1188
737
  function stageDnsDomains(stage, domains, dns) {
1189
738
  const own = domains?.[stage];
1190
739
  if (!own || !dns || isLocalHost(own)) return [];
1191
- const normalized = require_seeds.normalizeDnsConfig(dns);
1192
- const root = require_seeds.findRootDomain(own.toLowerCase(), normalized);
740
+ const normalized = require_credentials.normalizeDnsConfig(dns);
741
+ const root = require_credentials.findRootDomain(own.toLowerCase(), normalized);
1193
742
  return root ? [{
1194
743
  domain: root,
1195
744
  config: normalized[root]
@@ -1239,7 +788,7 @@ async function stageDns(input) {
1239
788
  ...input.wildcard ? { wildcard: input.wildcard } : {}
1240
789
  });
1241
790
  const recorded = diffRecordedDns(plan, input.recorded ?? []);
1242
- const dns = input.dns ? require_seeds.normalizeDnsConfig(input.dns) : {};
791
+ const dns = input.dns ? require_credentials.normalizeDnsConfig(input.dns) : {};
1243
792
  const staleDomains = [...new Set(recorded.stale.map((r) => r.domain))].filter((domain) => dns[domain] && !plan.domains.some((d) => d.domain === domain)).map((domain) => ({
1244
793
  domain,
1245
794
  config: dns[domain]
@@ -1494,18 +1043,6 @@ async function confirmPendingSubscriptions(input) {
1494
1043
  return left;
1495
1044
  }
1496
1045
  //#endregion
1497
- Object.defineProperty(exports, "BACKUPS_SERVICE", {
1498
- enumerable: true,
1499
- get: function() {
1500
- return BACKUPS_SERVICE;
1501
- }
1502
- });
1503
- Object.defineProperty(exports, "BACKUPS_URL_KEY", {
1504
- enumerable: true,
1505
- get: function() {
1506
- return BACKUPS_URL_KEY;
1507
- }
1508
- });
1509
1046
  Object.defineProperty(exports, "HostNotPointingAtServer", {
1510
1047
  enumerable: true,
1511
1048
  get: function() {
@@ -1518,24 +1055,12 @@ Object.defineProperty(exports, "PushSubscriptionsUnconfirmed", {
1518
1055
  return PushSubscriptionsUnconfirmed;
1519
1056
  }
1520
1057
  });
1521
- Object.defineProperty(exports, "RUNNER_PATH", {
1522
- enumerable: true,
1523
- get: function() {
1524
- return RUNNER_PATH;
1525
- }
1526
- });
1527
1058
  Object.defineProperty(exports, "SUBSCRIPTION_TYPE", {
1528
1059
  enumerable: true,
1529
1060
  get: function() {
1530
1061
  return SUBSCRIPTION_TYPE;
1531
1062
  }
1532
1063
  });
1533
- Object.defineProperty(exports, "assertSitePasswords", {
1534
- enumerable: true,
1535
- get: function() {
1536
- return assertSitePasswords;
1537
- }
1538
- });
1539
1064
  Object.defineProperty(exports, "awsClientConfig", {
1540
1065
  enumerable: true,
1541
1066
  get: function() {
@@ -1554,54 +1079,12 @@ Object.defineProperty(exports, "awsProvisioningCredentials", {
1554
1079
  return awsProvisioningCredentials;
1555
1080
  }
1556
1081
  });
1557
- Object.defineProperty(exports, "backupDatabases", {
1558
- enumerable: true,
1559
- get: function() {
1560
- return backupDatabases;
1561
- }
1562
- });
1563
- Object.defineProperty(exports, "backupExpiries", {
1564
- enumerable: true,
1565
- get: function() {
1566
- return backupExpiries;
1567
- }
1568
- });
1569
- Object.defineProperty(exports, "backupFile", {
1570
- enumerable: true,
1571
- get: function() {
1572
- return backupFile;
1573
- }
1574
- });
1575
- Object.defineProperty(exports, "backupsPrefix", {
1576
- enumerable: true,
1577
- get: function() {
1578
- return backupsPrefix;
1579
- }
1580
- });
1581
- Object.defineProperty(exports, "backupsRoleStatements", {
1582
- enumerable: true,
1583
- get: function() {
1584
- return backupsRoleStatements;
1585
- }
1586
- });
1587
- Object.defineProperty(exports, "backupsService", {
1588
- enumerable: true,
1589
- get: function() {
1590
- return backupsService;
1591
- }
1592
- });
1593
1082
  Object.defineProperty(exports, "confirmPendingSubscriptions", {
1594
1083
  enumerable: true,
1595
1084
  get: function() {
1596
1085
  return confirmPendingSubscriptions;
1597
1086
  }
1598
1087
  });
1599
- Object.defineProperty(exports, "deploysWithCompose", {
1600
- enumerable: true,
1601
- get: function() {
1602
- return deploysWithCompose;
1603
- }
1604
- });
1605
1088
  Object.defineProperty(exports, "dnsCredentials", {
1606
1089
  enumerable: true,
1607
1090
  get: function() {
@@ -1632,12 +1115,6 @@ Object.defineProperty(exports, "requiredServerAddress", {
1632
1115
  return requiredServerAddress;
1633
1116
  }
1634
1117
  });
1635
- Object.defineProperty(exports, "runTime", {
1636
- enumerable: true,
1637
- get: function() {
1638
- return runTime;
1639
- }
1640
- });
1641
1118
  Object.defineProperty(exports, "serverAddressHint", {
1642
1119
  enumerable: true,
1643
1120
  get: function() {
@@ -1650,36 +1127,12 @@ Object.defineProperty(exports, "settleStackDns", {
1650
1127
  return settleStackDns;
1651
1128
  }
1652
1129
  });
1653
- Object.defineProperty(exports, "siteAuth", {
1654
- enumerable: true,
1655
- get: function() {
1656
- return siteAuth;
1657
- }
1658
- });
1659
- Object.defineProperty(exports, "sitePasswordKey", {
1660
- enumerable: true,
1661
- get: function() {
1662
- return sitePasswordKey;
1663
- }
1664
- });
1665
- Object.defineProperty(exports, "stackBackups", {
1666
- enumerable: true,
1667
- get: function() {
1668
- return stackBackups;
1669
- }
1670
- });
1671
1130
  Object.defineProperty(exports, "stackHosts", {
1672
1131
  enumerable: true,
1673
1132
  get: function() {
1674
1133
  return stackHosts;
1675
1134
  }
1676
1135
  });
1677
- Object.defineProperty(exports, "stageBackups", {
1678
- enumerable: true,
1679
- get: function() {
1680
- return stageBackups;
1681
- }
1682
- });
1683
1136
  Object.defineProperty(exports, "stageDns", {
1684
1137
  enumerable: true,
1685
1138
  get: function() {
@@ -1717,4 +1170,4 @@ Object.defineProperty(exports, "topicConnection", {
1717
1170
  }
1718
1171
  });
1719
1172
 
1720
- //# sourceMappingURL=snsSubscriptions-Y9declDd.cjs.map
1173
+ //# sourceMappingURL=snsSubscriptions-DB0iRByH.cjs.map