@geekmidas/cli 10.0.0-alpha.179 → 10.0.0-alpha.180

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 (306) hide show
  1. package/dist/{EndpointGenerator-DMq6ameY.mjs → EndpointGenerator-CBKH87_b.mjs} +3 -3
  2. package/dist/{EndpointGenerator-DMq6ameY.mjs.map → EndpointGenerator-CBKH87_b.mjs.map} +1 -1
  3. package/dist/{EndpointGenerator-yx7_SoXT.cjs → EndpointGenerator-iyA3HkOH.cjs} +3 -3
  4. package/dist/{EndpointGenerator-yx7_SoXT.cjs.map → EndpointGenerator-iyA3HkOH.cjs.map} +1 -1
  5. package/dist/{LegacyStateStore-BzUlIHvz.mjs → LegacyStateStore-B7pQA25B.mjs} +2 -2
  6. package/dist/{LegacyStateStore-BzUlIHvz.mjs.map → LegacyStateStore-B7pQA25B.mjs.map} +1 -1
  7. package/dist/{LegacyStateStore-C7FFaVce.cjs → LegacyStateStore-l0hBdv-E.cjs} +2 -2
  8. package/dist/{LegacyStateStore-C7FFaVce.cjs.map → LegacyStateStore-l0hBdv-E.cjs.map} +1 -1
  9. package/dist/{LocalStateStore-BvI8RUtS.mjs → LocalStateStore-CP0UHL85.mjs} +2 -2
  10. package/dist/{LocalStateStore-BvI8RUtS.mjs.map → LocalStateStore-CP0UHL85.mjs.map} +1 -1
  11. package/dist/{LocalStateStore-BJQvLCrg.cjs → LocalStateStore-DEE0Kc_s.cjs} +2 -2
  12. package/dist/{LocalStateStore-BJQvLCrg.cjs.map → LocalStateStore-DEE0Kc_s.cjs.map} +1 -1
  13. package/dist/{OpenApiTsGenerator-C_JqxkWt.mjs → OpenApiTsGenerator-CoVA3Ykv.mjs} +2 -2
  14. package/dist/{OpenApiTsGenerator-C_JqxkWt.mjs.map → OpenApiTsGenerator-CoVA3Ykv.mjs.map} +1 -1
  15. package/dist/{OpenApiTsGenerator-gM70-7qw.cjs → OpenApiTsGenerator-vy-fOJgs.cjs} +2 -2
  16. package/dist/{OpenApiTsGenerator-gM70-7qw.cjs.map → OpenApiTsGenerator-vy-fOJgs.cjs.map} +1 -1
  17. package/dist/{S3StateStore-C1ZX1w5v.cjs → S3StateStore-DE0BNuXc.cjs} +4 -4
  18. package/dist/{S3StateStore-C1ZX1w5v.cjs.map → S3StateStore-DE0BNuXc.cjs.map} +1 -1
  19. package/dist/{S3StateStore-DYQSxiVw.mjs → S3StateStore-vmxZWMKh.mjs} +4 -4
  20. package/dist/{S3StateStore-DYQSxiVw.mjs.map → S3StateStore-vmxZWMKh.mjs.map} +1 -1
  21. package/dist/{SSMStateStore-DWQk17j8.mjs → SSMStateStore-DQyXnX2M.mjs} +2 -2
  22. package/dist/{SSMStateStore-DWQk17j8.mjs.map → SSMStateStore-DQyXnX2M.mjs.map} +1 -1
  23. package/dist/{SSMStateStore-tXnZSJxP.cjs → SSMStateStore-p4hBdTg3.cjs} +2 -2
  24. package/dist/{SSMStateStore-tXnZSJxP.cjs.map → SSMStateStore-p4hBdTg3.cjs.map} +1 -1
  25. package/dist/{SubscriberGenerator-NxcLNeDJ.mjs → SubscriberGenerator-B3jHf26s.mjs} +4 -4
  26. package/dist/{SubscriberGenerator-NxcLNeDJ.mjs.map → SubscriberGenerator-B3jHf26s.mjs.map} +1 -1
  27. package/dist/{SubscriberGenerator-DXh1Touk.cjs → SubscriberGenerator-JhwVlWBS.cjs} +4 -4
  28. package/dist/{SubscriberGenerator-DXh1Touk.cjs.map → SubscriberGenerator-JhwVlWBS.cjs.map} +1 -1
  29. package/dist/{add-D6GloVNz.cjs → add-DEdpKya-.cjs} +8 -8
  30. package/dist/{add-D6GloVNz.cjs.map → add-DEdpKya-.cjs.map} +1 -1
  31. package/dist/{add-nJBUo4fT.mjs → add-QBvDmVA-.mjs} +8 -8
  32. package/dist/{add-nJBUo4fT.mjs.map → add-QBvDmVA-.mjs.map} +1 -1
  33. package/dist/{apps-GDmO_v7v.mjs → apps-D0LULFmU.mjs} +15 -361
  34. package/dist/apps-D0LULFmU.mjs.map +1 -0
  35. package/dist/{apps-DPw1i9E7.cjs → apps-qJ5FPJGQ.cjs} +12 -389
  36. package/dist/apps-qJ5FPJGQ.cjs.map +1 -0
  37. package/dist/{aws-DKC2m3sT.cjs → aws-BXfiWNbi.cjs} +2 -2
  38. package/dist/{aws-DKC2m3sT.cjs.map → aws-BXfiWNbi.cjs.map} +1 -1
  39. package/dist/{aws-C5LAU_Ii.mjs → aws-BjvSTTcE.mjs} +2 -2
  40. package/dist/{aws-C5LAU_Ii.mjs.map → aws-BjvSTTcE.mjs.map} +1 -1
  41. package/dist/{awsStore-Bx5nCFnS.mjs → awsStore-BYYCmXiq.mjs} +2 -2
  42. package/dist/{awsStore-Bx5nCFnS.mjs.map → awsStore-BYYCmXiq.mjs.map} +1 -1
  43. package/dist/{awsStore-u3ehhMoY.cjs → awsStore-DKQUElJL.cjs} +2 -2
  44. package/dist/{awsStore-u3ehhMoY.cjs.map → awsStore-DKQUElJL.cjs.map} +1 -1
  45. package/dist/{bundler-DzN34D-8.cjs → bundler-BuBCXA0t.cjs} +6 -6
  46. package/dist/{bundler-DzN34D-8.cjs.map → bundler-BuBCXA0t.cjs.map} +1 -1
  47. package/dist/{bundler-BFGjH_mQ.mjs → bundler-DZKdVVKZ.mjs} +6 -6
  48. package/dist/{bundler-BFGjH_mQ.mjs.map → bundler-DZKdVVKZ.mjs.map} +1 -1
  49. package/dist/{cli-CVlkduxS.cjs → cli-BCGkzaR1.cjs} +5 -5
  50. package/dist/{cli-CVlkduxS.cjs.map → cli-BCGkzaR1.cjs.map} +1 -1
  51. package/dist/{cli-Ik7ar-Ux.mjs → cli-CgEbT00Q.mjs} +5 -5
  52. package/dist/{cli-Ik7ar-Ux.mjs.map → cli-CgEbT00Q.mjs.map} +1 -1
  53. package/dist/clientTelemetry-BAwj6MOf.d.cts +10 -0
  54. package/dist/clientTelemetry-BAwj6MOf.d.cts.map +1 -0
  55. package/dist/clientTelemetry-CvamPJj_.d.mts +10 -0
  56. package/dist/clientTelemetry-CvamPJj_.d.mts.map +1 -0
  57. package/dist/{compose-CE0Vi7zq.cjs → compose-AO8u4mBI.cjs} +51 -49
  58. package/dist/compose-AO8u4mBI.cjs.map +1 -0
  59. package/dist/{compose-BKLJMnDI.cjs → compose-C-yjexqX.cjs} +9 -37
  60. package/dist/compose-C-yjexqX.cjs.map +1 -0
  61. package/dist/{compose-pFnSi3Zf.mjs → compose-C23RpAaF.mjs} +15 -13
  62. package/dist/compose-C23RpAaF.mjs.map +1 -0
  63. package/dist/{compose-DH1ToGh2.mjs → compose-DtfoUChm.mjs} +10 -32
  64. package/dist/compose-DtfoUChm.mjs.map +1 -0
  65. package/dist/{config-CsCYzlVO.d.mts → config-BODxZemw.d.mts} +3 -3
  66. package/dist/{config-CsCYzlVO.d.mts.map → config-BODxZemw.d.mts.map} +1 -1
  67. package/dist/{config-D-gHQXhi.d.cts → config-C3U5HulX.d.cts} +3 -3
  68. package/dist/{config-D-gHQXhi.d.cts.map → config-C3U5HulX.d.cts.map} +1 -1
  69. package/dist/config.cjs +3 -3
  70. package/dist/config.d.cts +3 -3
  71. package/dist/config.d.mts +3 -3
  72. package/dist/config.mjs +3 -3
  73. package/dist/{credentialSchemas-BzJiK1nQ.mjs → credentialSchemas-D_85KW2k.mjs} +3 -3
  74. package/dist/{credentialSchemas-BzJiK1nQ.mjs.map → credentialSchemas-D_85KW2k.mjs.map} +1 -1
  75. package/dist/{credentialSchemas-OVXofU-r.cjs → credentialSchemas-DjK6xKMk.cjs} +3 -3
  76. package/dist/{credentialSchemas-OVXofU-r.cjs.map → credentialSchemas-DjK6xKMk.cjs.map} +1 -1
  77. package/dist/{databases-SFnPaOGM.mjs → databases-CV22HzrI.mjs} +2 -2
  78. package/dist/{databases-SFnPaOGM.mjs.map → databases-CV22HzrI.mjs.map} +1 -1
  79. package/dist/{databases-BOuB-zg4.cjs → databases-DwYYH2mX.cjs} +2 -2
  80. package/dist/{databases-BOuB-zg4.cjs.map → databases-DwYYH2mX.cjs.map} +1 -1
  81. package/dist/{dbTunnel-BnacLKDV.cjs → dbTunnel-Bve0zBqT.cjs} +7 -7
  82. package/dist/{dbTunnel-BnacLKDV.cjs.map → dbTunnel-Bve0zBqT.cjs.map} +1 -1
  83. package/dist/{dbTunnel-CqDaxQig.mjs → dbTunnel-CnubkLBa.mjs} +7 -7
  84. package/dist/{dbTunnel-CqDaxQig.mjs.map → dbTunnel-CnubkLBa.mjs.map} +1 -1
  85. package/dist/{define-6poNqm5O.mjs → define-BfrNaY82.mjs} +2 -2
  86. package/dist/{define-6poNqm5O.mjs.map → define-BfrNaY82.mjs.map} +1 -1
  87. package/dist/{define-crmMcXFS.cjs → define-zKgLY65H.cjs} +2 -2
  88. package/dist/{define-crmMcXFS.cjs.map → define-zKgLY65H.cjs.map} +1 -1
  89. package/dist/deploy/public.cjs +15 -15
  90. package/dist/deploy/public.d.cts +5 -4
  91. package/dist/deploy/public.d.cts.map +1 -1
  92. package/dist/deploy/public.d.mts +5 -4
  93. package/dist/deploy/public.d.mts.map +1 -1
  94. package/dist/deploy/public.mjs +15 -15
  95. package/dist/{deploy-l0Vc846k.cjs → deploy-C2MKxzm9.cjs} +20 -19
  96. package/dist/deploy-C2MKxzm9.cjs.map +1 -0
  97. package/dist/{deploy-CpAkrZ25.mjs → deploy-Qq41vtpm.mjs} +19 -18
  98. package/dist/deploy-Qq41vtpm.mjs.map +1 -0
  99. package/dist/{destroy-eeB_PrmN.mjs → destroy-Bg4IUf_Z.mjs} +11 -10
  100. package/dist/destroy-Bg4IUf_Z.mjs.map +1 -0
  101. package/dist/{destroy-DtAqmjGz.cjs → destroy-CCpnHI2v.cjs} +13 -12
  102. package/dist/destroy-CCpnHI2v.cjs.map +1 -0
  103. package/dist/{discover-B_PDDaVj.mjs → discover-Dfmn6HQ7.mjs} +2 -2
  104. package/dist/{discover-B_PDDaVj.mjs.map → discover-Dfmn6HQ7.mjs.map} +1 -1
  105. package/dist/{discover-39VKSE2i.cjs → discover-OXczlq08.cjs} +2 -2
  106. package/dist/{discover-39VKSE2i.cjs.map → discover-OXczlq08.cjs.map} +1 -1
  107. package/dist/{dns-B2vsk2Rc.mjs → dns-BAM8VH1v.mjs} +147 -179
  108. package/dist/dns-BAM8VH1v.mjs.map +1 -0
  109. package/dist/{dns-WneRa4VJ.cjs → dns-D_0z9Tm1.cjs} +145 -201
  110. package/dist/dns-D_0z9Tm1.cjs.map +1 -0
  111. package/dist/{docker-Dk6p33pD.cjs → docker-6EUbKrEl.cjs} +9 -9
  112. package/dist/{docker-Dk6p33pD.cjs.map → docker-6EUbKrEl.cjs.map} +1 -1
  113. package/dist/{docker-DyUpcwqy.mjs → docker-DQoE3Fr7.mjs} +9 -9
  114. package/dist/{docker-DyUpcwqy.mjs.map → docker-DQoE3Fr7.mjs.map} +1 -1
  115. package/dist/{dokploy-Byg0zr1O.cjs → dokploy-BD8NXy8y.cjs} +3 -3
  116. package/dist/{dokploy-Byg0zr1O.cjs.map → dokploy-BD8NXy8y.cjs.map} +1 -1
  117. package/dist/{dokploy-De5b47YI.mjs → dokploy-CU9iuc35.mjs} +3 -3
  118. package/dist/{dokploy-De5b47YI.mjs.map → dokploy-CU9iuc35.mjs.map} +1 -1
  119. package/dist/{eas-DAH6D89J.cjs → eas-BhTOdQrE.cjs} +4 -4
  120. package/dist/{eas-DAH6D89J.cjs.map → eas-BhTOdQrE.cjs.map} +1 -1
  121. package/dist/{eas-BnLaz86I.mjs → eas-iYyg7Xjy.mjs} +4 -4
  122. package/dist/{eas-BnLaz86I.mjs.map → eas-iYyg7Xjy.mjs.map} +1 -1
  123. package/dist/{encryption-IiDQJs6j.mjs → encryption-hgmnMZw0.mjs} +4 -4
  124. package/dist/{encryption-IiDQJs6j.mjs.map → encryption-hgmnMZw0.mjs.map} +1 -1
  125. package/dist/{encryption-D7u_SKqz.cjs → encryption-yROMpM67.cjs} +4 -4
  126. package/dist/{encryption-D7u_SKqz.cjs.map → encryption-yROMpM67.cjs.map} +1 -1
  127. package/dist/{engine-BhS-wyH0.mjs → engine-B4whsrrE.mjs} +12 -12
  128. package/dist/engine-B4whsrrE.mjs.map +1 -0
  129. package/dist/{engine-CaWo9tZO.cjs → engine-D0XYdIiE.cjs} +12 -12
  130. package/dist/engine-D0XYdIiE.cjs.map +1 -0
  131. package/dist/{errors-D8Gwp5kU.mjs → errors-C9uIyIDt.mjs} +7 -3
  132. package/dist/{errors-D8Gwp5kU.mjs.map → errors-C9uIyIDt.mjs.map} +1 -1
  133. package/dist/{errors-DMC4Umsb.cjs → errors-D1x8duqI.cjs} +7 -3
  134. package/dist/errors-D1x8duqI.cjs.map +1 -0
  135. package/dist/{github-BQCqBMZ9.mjs → github-CBkZF4PS.mjs} +11 -11
  136. package/dist/{github-BQCqBMZ9.mjs.map → github-CBkZF4PS.mjs.map} +1 -1
  137. package/dist/{github-Cz_LTqBn.cjs → github-D1-_OnGL.cjs} +11 -11
  138. package/dist/{github-Cz_LTqBn.cjs.map → github-D1-_OnGL.cjs.map} +1 -1
  139. package/dist/{googlePlay-DowNo3wp.mjs → googlePlay-Bwv8TVi8.mjs} +5 -5
  140. package/dist/{googlePlay-DowNo3wp.mjs.map → googlePlay-Bwv8TVi8.mjs.map} +1 -1
  141. package/dist/{googlePlay-CuqPxtno.cjs → googlePlay-s9dGfrrb.cjs} +5 -5
  142. package/dist/{googlePlay-CuqPxtno.cjs.map → googlePlay-s9dGfrrb.cjs.map} +1 -1
  143. package/dist/{iam-Cs2Ph5f2.mjs → iam-BzFyFf7T.mjs} +2 -2
  144. package/dist/{iam-Cs2Ph5f2.mjs.map → iam-BzFyFf7T.mjs.map} +1 -1
  145. package/dist/{iam-CGd_oEyz.cjs → iam-WIoKnLBp.cjs} +2 -2
  146. package/dist/{iam-CGd_oEyz.cjs.map → iam-WIoKnLBp.cjs.map} +1 -1
  147. package/dist/{index-QxGYzGEN.d.mts → index-BKgOlfK2.d.mts} +2 -2
  148. package/dist/{index-QxGYzGEN.d.mts.map → index-BKgOlfK2.d.mts.map} +1 -1
  149. package/dist/{index-tFzoro1V.d.cts → index-zPzigXh-.d.cts} +2 -2
  150. package/dist/{index-tFzoro1V.d.cts.map → index-zPzigXh-.d.cts.map} +1 -1
  151. package/dist/index.cjs +75 -73
  152. package/dist/index.cjs.map +1 -1
  153. package/dist/index.mjs +73 -71
  154. package/dist/index.mjs.map +1 -1
  155. package/dist/{local-CWNFE8Sg.cjs → local-CFnHQgWC.cjs} +3 -3
  156. package/dist/{local-CWNFE8Sg.cjs.map → local-CFnHQgWC.cjs.map} +1 -1
  157. package/dist/{local-BQQHvZ4q.mjs → local-JOnTFJA5.mjs} +3 -3
  158. package/dist/{local-BQQHvZ4q.mjs.map → local-JOnTFJA5.mjs.map} +1 -1
  159. package/dist/{migrate-D_7oRThu.mjs → migrate-BtnpQocG.mjs} +6 -6
  160. package/dist/{migrate-D_7oRThu.mjs.map → migrate-BtnpQocG.mjs.map} +1 -1
  161. package/dist/{migrate-8QGCWIqm.cjs → migrate-CGXrmZyV.cjs} +8 -8
  162. package/dist/{migrate-8QGCWIqm.cjs.map → migrate-CGXrmZyV.cjs.map} +1 -1
  163. package/dist/{migrate-CNrPM5zg.cjs → migrate-CxWXW-Lw.cjs} +6 -6
  164. package/dist/{migrate-CNrPM5zg.cjs.map → migrate-CxWXW-Lw.cjs.map} +1 -1
  165. package/dist/{migrate-CqiOiRvz.mjs → migrate-fLIgSpPB.mjs} +8 -8
  166. package/dist/{migrate-CqiOiRvz.mjs.map → migrate-fLIgSpPB.mjs.map} +1 -1
  167. package/dist/{notes-dD3gRvZw.cjs → notes-ChYPaRLu.cjs} +4 -4
  168. package/dist/{notes-dD3gRvZw.cjs.map → notes-ChYPaRLu.cjs.map} +1 -1
  169. package/dist/{notes-D2KWnUSL.mjs → notes-LATU2vLI.mjs} +4 -4
  170. package/dist/{notes-D2KWnUSL.mjs.map → notes-LATU2vLI.mjs.map} +1 -1
  171. package/dist/openapi.cjs +3 -3
  172. package/dist/openapi.d.cts +3 -8
  173. package/dist/openapi.d.cts.map +1 -1
  174. package/dist/openapi.d.mts +3 -8
  175. package/dist/openapi.d.mts.map +1 -1
  176. package/dist/openapi.mjs +3 -3
  177. package/dist/{projectBucket-BcTodL8A.cjs → projectBucket-BIeh2HTj.cjs} +3 -3
  178. package/dist/{projectBucket-BcTodL8A.cjs.map → projectBucket-BIeh2HTj.cjs.map} +1 -1
  179. package/dist/{projectBucket-BDytiu7A.mjs → projectBucket-D_4zb_oh.mjs} +3 -3
  180. package/dist/{projectBucket-BDytiu7A.mjs.map → projectBucket-D_4zb_oh.mjs.map} +1 -1
  181. package/dist/{provider-CEOKk8NS.mjs → provider-BvjDbsTR.mjs} +3 -3
  182. package/dist/{provider-CEOKk8NS.mjs.map → provider-BvjDbsTR.mjs.map} +1 -1
  183. package/dist/{provider-BqpjG9QM.cjs → provider-DLhgo-mB.cjs} +3 -3
  184. package/dist/{provider-BqpjG9QM.cjs.map → provider-DLhgo-mB.cjs.map} +1 -1
  185. package/dist/{publish-Da9gxP5Q.cjs → publish-Dc-1GQp8.cjs} +3 -3
  186. package/dist/{publish-Da9gxP5Q.cjs.map → publish-Dc-1GQp8.cjs.map} +1 -1
  187. package/dist/{publish-Cr8wv7nO.mjs → publish-DhzRYhVZ.mjs} +3 -3
  188. package/dist/{publish-Cr8wv7nO.mjs.map → publish-DhzRYhVZ.mjs.map} +1 -1
  189. package/dist/{ready-D1gctv-5.mjs → ready-BcV28QoW.mjs} +6 -6
  190. package/dist/{ready-D1gctv-5.mjs.map → ready-BcV28QoW.mjs.map} +1 -1
  191. package/dist/{ready-Bgj2cf4j.cjs → ready-ByQvw4-W.cjs} +6 -6
  192. package/dist/{ready-Bgj2cf4j.cjs.map → ready-ByQvw4-W.cjs.map} +1 -1
  193. package/dist/reconcile/public.cjs +1 -1
  194. package/dist/reconcile/public.d.cts +1 -1
  195. package/dist/reconcile/public.d.mts +1 -1
  196. package/dist/reconcile/public.mjs +1 -1
  197. package/dist/{resolve-Dyki9ZJX.mjs → resolve-CJvM2bUx.mjs} +6 -6
  198. package/dist/{resolve-Dyki9ZJX.mjs.map → resolve-CJvM2bUx.mjs.map} +1 -1
  199. package/dist/{resolve-DRldmRYb.cjs → resolve-DyUXmA0z.cjs} +6 -6
  200. package/dist/{resolve-DRldmRYb.cjs.map → resolve-DyUXmA0z.cjs.map} +1 -1
  201. package/dist/{rollback-Do0i6x3b.mjs → rollback-BO1asWkd.mjs} +8 -8
  202. package/dist/{rollback-Do0i6x3b.mjs.map → rollback-BO1asWkd.mjs.map} +1 -1
  203. package/dist/{rollback-R_j7f9cY.cjs → rollback-Op8Tc5N-.cjs} +8 -8
  204. package/dist/{rollback-R_j7f9cY.cjs.map → rollback-Op8Tc5N-.cjs.map} +1 -1
  205. package/dist/{runtime-BpGIXfYr.d.mts → runtime-CaejlcZt.d.mts} +2 -2
  206. package/dist/{runtime-BpGIXfYr.d.mts.map → runtime-CaejlcZt.d.mts.map} +1 -1
  207. package/dist/{runtime-DLV0CNZ4.d.cts → runtime-D3jD4Dvn.d.cts} +2 -2
  208. package/dist/{runtime-DLV0CNZ4.d.cts.map → runtime-D3jD4Dvn.d.cts.map} +1 -1
  209. package/dist/{s3-CYEU7r1x.mjs → s3-BbtwHSod.mjs} +5 -5
  210. package/dist/{s3-CYEU7r1x.mjs.map → s3-BbtwHSod.mjs.map} +1 -1
  211. package/dist/{s3-D9aPMh9u.cjs → s3-CwacPd8J.cjs} +5 -5
  212. package/dist/{s3-D9aPMh9u.cjs.map → s3-CwacPd8J.cjs.map} +1 -1
  213. package/dist/sandbox/credentials-worker.cjs +2 -2
  214. package/dist/sandbox/credentials-worker.mjs +2 -2
  215. package/dist/sandbox/discover-worker.cjs +1 -1
  216. package/dist/sandbox/discover-worker.mjs +1 -1
  217. package/dist/sandbox/migrate-worker.cjs +2 -2
  218. package/dist/sandbox/migrate-worker.mjs +2 -2
  219. package/dist/{secretsManager-CJyxFcBH.mjs → secretsManager-CjTo6CRq.mjs} +2 -2
  220. package/dist/{secretsManager-CJyxFcBH.mjs.map → secretsManager-CjTo6CRq.mjs.map} +1 -1
  221. package/dist/{secretsManager-D8on44WI.cjs → secretsManager-CvmBGjdM.cjs} +2 -2
  222. package/dist/{secretsManager-D8on44WI.cjs.map → secretsManager-CvmBGjdM.cjs.map} +1 -1
  223. package/dist/{serverSetup-BmPwcMQN.cjs → serverSetup-BFdzPTIT.cjs} +7 -7
  224. package/dist/{serverSetup-BmPwcMQN.cjs.map → serverSetup-BFdzPTIT.cjs.map} +1 -1
  225. package/dist/{serverSetup-Bw5gc57O.mjs → serverSetup-CSxaZ7ha.mjs} +7 -7
  226. package/dist/{serverSetup-Bw5gc57O.mjs.map → serverSetup-CSxaZ7ha.mjs.map} +1 -1
  227. package/dist/{sniffer-XsTiFI3l.mjs → sniffer-CwxpsSez.mjs} +9 -9
  228. package/dist/{sniffer-XsTiFI3l.mjs.map → sniffer-CwxpsSez.mjs.map} +1 -1
  229. package/dist/{sniffer-BPLYWu70.cjs → sniffer-D3gH7aJT.cjs} +9 -9
  230. package/dist/{sniffer-BPLYWu70.cjs.map → sniffer-D3gH7aJT.cjs.map} +1 -1
  231. package/dist/{snsSubscriptions-CATtZwGv.cjs → snsSubscriptions-B8tGxND5.cjs} +10 -8
  232. package/dist/snsSubscriptions-B8tGxND5.cjs.map +1 -0
  233. package/dist/{snsSubscriptions-D9Rm_Eug.mjs → snsSubscriptions-n3sjbrRM.mjs} +7 -5
  234. package/dist/snsSubscriptions-n3sjbrRM.mjs.map +1 -0
  235. package/dist/{sst-C56i2cst.cjs → sst-Cjocp7gi.cjs} +8 -8
  236. package/dist/{sst-C56i2cst.cjs.map → sst-Cjocp7gi.cjs.map} +1 -1
  237. package/dist/{sst-BCvYZtVF.mjs → sst-DeF0BfDA.mjs} +8 -8
  238. package/dist/{sst-BCvYZtVF.mjs.map → sst-DeF0BfDA.mjs.map} +1 -1
  239. package/dist/{stack-TttsEL7X.mjs → stack-CyoRqyPt.mjs} +16 -609
  240. package/dist/stack-CyoRqyPt.mjs.map +1 -0
  241. package/dist/{stack-Dal2Oq2D.cjs → stack-Dr2FSxGm.cjs} +28 -687
  242. package/dist/stack-Dr2FSxGm.cjs.map +1 -0
  243. package/dist/{stage--ixwLSTc.mjs → stage-TAx0Gcq8.mjs} +8 -8
  244. package/dist/{stage--ixwLSTc.mjs.map → stage-TAx0Gcq8.mjs.map} +1 -1
  245. package/dist/{stage-BLsuXUP_.cjs → stage-aTBLKonw.cjs} +8 -8
  246. package/dist/{stage-BLsuXUP_.cjs.map → stage-aTBLKonw.cjs.map} +1 -1
  247. package/dist/{stages-8izznWib.cjs → stages-BeSQQQ4z.cjs} +3 -3
  248. package/dist/{stages-8izznWib.cjs.map → stages-BeSQQQ4z.cjs.map} +1 -1
  249. package/dist/{stages-QPWgbm9P.mjs → stages-DjFKQv08.mjs} +3 -3
  250. package/dist/{stages-QPWgbm9P.mjs.map → stages-DjFKQv08.mjs.map} +1 -1
  251. package/dist/target/public.cjs +3 -3
  252. package/dist/target/public.d.cts +2 -2
  253. package/dist/target/public.d.mts +2 -2
  254. package/dist/target/public.mjs +3 -3
  255. package/dist/{terminal-gOLDmpW-.mjs → terminal-Bk4PjXWY.mjs} +4 -4
  256. package/dist/{terminal-gOLDmpW-.mjs.map → terminal-Bk4PjXWY.mjs.map} +1 -1
  257. package/dist/{terminal-Dy4zzTCA.cjs → terminal-DPf137EJ.cjs} +4 -4
  258. package/dist/{terminal-Dy4zzTCA.cjs.map → terminal-DPf137EJ.cjs.map} +1 -1
  259. package/dist/{types-CV4AzwC_.d.cts → types-CLxsw-QY.d.cts} +3 -16
  260. package/dist/types-CLxsw-QY.d.cts.map +1 -0
  261. package/dist/{types-Bj1A1wkS.d.mts → types-wLlwkSib.d.mts} +3 -16
  262. package/dist/types-wLlwkSib.d.mts.map +1 -0
  263. package/dist/vitest.cjs +1 -1
  264. package/dist/vitest.mjs +1 -1
  265. package/dist/workspace/index.cjs +1 -1
  266. package/dist/workspace/index.d.cts +2 -2
  267. package/dist/workspace/index.d.mts +2 -2
  268. package/dist/workspace/index.mjs +1 -1
  269. package/dist/{workspace-BBa1Ck5j.mjs → workspace-DJjhfAGf.mjs} +3 -3
  270. package/dist/{workspace-BBa1Ck5j.mjs.map → workspace-DJjhfAGf.mjs.map} +1 -1
  271. package/dist/{workspace-DirP2-ed.cjs → workspace-wTLnc1Ef.cjs} +3 -3
  272. package/dist/{workspace-DirP2-ed.cjs.map → workspace-wTLnc1Ef.cjs.map} +1 -1
  273. package/package.json +16 -15
  274. package/dist/GoDaddyProvider-B9AMLUHF.cjs +0 -412
  275. package/dist/GoDaddyProvider-B9AMLUHF.cjs.map +0 -1
  276. package/dist/GoDaddyProvider-DLVKx7er.mjs +0 -412
  277. package/dist/GoDaddyProvider-DLVKx7er.mjs.map +0 -1
  278. package/dist/HostingerProvider-DBPWhL_s.cjs +0 -257
  279. package/dist/HostingerProvider-DBPWhL_s.cjs.map +0 -1
  280. package/dist/HostingerProvider-kLQsBCjz.mjs +0 -257
  281. package/dist/HostingerProvider-kLQsBCjz.mjs.map +0 -1
  282. package/dist/Route53Provider-Di_SD9CF.mjs +0 -209
  283. package/dist/Route53Provider-Di_SD9CF.mjs.map +0 -1
  284. package/dist/Route53Provider-emLuQHVw.cjs +0 -209
  285. package/dist/Route53Provider-emLuQHVw.cjs.map +0 -1
  286. package/dist/apps-DPw1i9E7.cjs.map +0 -1
  287. package/dist/apps-GDmO_v7v.mjs.map +0 -1
  288. package/dist/compose-BKLJMnDI.cjs.map +0 -1
  289. package/dist/compose-CE0Vi7zq.cjs.map +0 -1
  290. package/dist/compose-DH1ToGh2.mjs.map +0 -1
  291. package/dist/compose-pFnSi3Zf.mjs.map +0 -1
  292. package/dist/deploy-CpAkrZ25.mjs.map +0 -1
  293. package/dist/deploy-l0Vc846k.cjs.map +0 -1
  294. package/dist/destroy-DtAqmjGz.cjs.map +0 -1
  295. package/dist/destroy-eeB_PrmN.mjs.map +0 -1
  296. package/dist/dns-B2vsk2Rc.mjs.map +0 -1
  297. package/dist/dns-WneRa4VJ.cjs.map +0 -1
  298. package/dist/engine-BhS-wyH0.mjs.map +0 -1
  299. package/dist/engine-CaWo9tZO.cjs.map +0 -1
  300. package/dist/errors-DMC4Umsb.cjs.map +0 -1
  301. package/dist/snsSubscriptions-CATtZwGv.cjs.map +0 -1
  302. package/dist/snsSubscriptions-D9Rm_Eug.mjs.map +0 -1
  303. package/dist/stack-Dal2Oq2D.cjs.map +0 -1
  304. package/dist/stack-TttsEL7X.mjs.map +0 -1
  305. package/dist/types-Bj1A1wkS.d.mts.map +0 -1
  306. package/dist/types-CV4AzwC_.d.cts.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
3
- import { Nt as s3SecretsLocation, Rt as isReservedStageKey, jt as UnknownSecretsStoreProvider } from "./workspace-BBa1Ck5j.mjs";
2
+ import { t as GkmError } from "./errors-C9uIyIDt.mjs";
3
+ import { Nt as s3SecretsLocation, Rt as isReservedStageKey, jt as UnknownSecretsStoreProvider } from "./workspace-DJjhfAGf.mjs";
4
4
  import { d as DEFAULT_EVENTS, f as DEFAULT_STORAGE, u as DEFAULT_CACHE } from "./drivers-BQRb3KsL.mjs";
5
- import { y as output } from "./discover-B_PDDaVj.mjs";
6
- import { c as runtimeOf } from "./resolve-Dyki9ZJX.mjs";
5
+ import { y as output } from "./discover-Dfmn6HQ7.mjs";
6
+ import { c as runtimeOf } from "./resolve-CJvM2bUx.mjs";
7
7
  import { basename, dirname, join, resolve, sep } from "node:path";
8
8
  import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync } from "node:fs";
9
9
  import { chmod, link, mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -12,6 +12,7 @@ import { spawn } from "node:child_process";
12
12
  import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
13
13
  import { kebabCase, scopedName } from "@geekmidas/manifest";
14
14
  import { lookup } from "node:dns/promises";
15
+ import { isDnsProvider } from "@geekmidas/edge/dns";
15
16
  //#region src/home.ts
16
17
  /**
17
18
  * Where the CLI keeps what belongs to a person rather than a project: stage
@@ -1009,7 +1010,7 @@ async function storeFromConfig(workspace, config, options = {}) {
1009
1010
  const profile = options.profile ? { profile: options.profile } : {};
1010
1011
  switch (config.provider) {
1011
1012
  case "s3": {
1012
- const { S3SecretsStore } = await import("./s3-CYEU7r1x.mjs");
1013
+ const { S3SecretsStore } = await import("./s3-BbtwHSod.mjs");
1013
1014
  const { deployIdentity } = await Promise.resolve().then(() => identity_exports);
1014
1015
  const location = s3SecretsLocation(config, workspace.state);
1015
1016
  return new S3SecretsStore({
@@ -1022,7 +1023,7 @@ async function storeFromConfig(workspace, config, options = {}) {
1022
1023
  });
1023
1024
  }
1024
1025
  case "ssm": {
1025
- const { AwsSecretsStore } = await import("./aws-C5LAU_Ii.mjs").then((n) => n.t);
1026
+ const { AwsSecretsStore } = await import("./aws-BjvSTTcE.mjs").then((n) => n.t);
1026
1027
  return new AwsSecretsStore({
1027
1028
  project: workspace.name,
1028
1029
  region: config.region,
@@ -1031,7 +1032,7 @@ async function storeFromConfig(workspace, config, options = {}) {
1031
1032
  }
1032
1033
  case "secrets-manager": {
1033
1034
  const { kmsKeyId } = config;
1034
- const { SecretsManagerSecretsStore } = await import("./secretsManager-CJyxFcBH.mjs").then((n) => n.n);
1035
+ const { SecretsManagerSecretsStore } = await import("./secretsManager-CjTo6CRq.mjs").then((n) => n.n);
1035
1036
  return new SecretsManagerSecretsStore({
1036
1037
  project: workspace.name,
1037
1038
  region: config.region,
@@ -1109,122 +1110,6 @@ function eventsBackendFor(on) {
1109
1110
  return DEFAULT_EVENTS[on];
1110
1111
  }
1111
1112
  //#endregion
1112
- //#region src/deploy/credentials.ts
1113
- /**
1114
- * How a deploy gets the credentials it acts with.
1115
- *
1116
- * `deploy()` never prompts and never reads a terminal: it asks a
1117
- * `CredentialProvider` and, when the provider has nothing, stops with
1118
- * `MissingCredential` naming what it needed and how to supply it. Whether to
1119
- * ask a person, read a vault or fail is the caller's decision — `gkm deploy`
1120
- * prompts at a terminal and stores what was typed; a CI job sets the
1121
- * environment; a host passes its own provider.
1122
- */
1123
- /**
1124
- * How to supply each kind the CLI knows, for the error that says it is
1125
- * missing. A target's own kinds are its to explain.
1126
- */
1127
- const HOW_TO_PROVIDE = {
1128
- dokploy: "Set DOKPLOY_API_TOKEN (and DOKPLOY_ENDPOINT, or deploy.dokploy.endpoint in gkm.config.ts), run `gkm login --provider dokploy`, or pass them through the deploy's CredentialProvider.",
1129
- registry: "Add the registry in Dokploy (Settings → Docker Registry) and set deploy.dokploy.registryId, set DOCKER_REGISTRY_USERNAME and DOCKER_REGISTRY_PASSWORD, or run `gkm deploy` at a terminal to be asked for them.",
1130
- godaddy: "Set GODADDY_API_TOKEN to a Personal Access Token scoped to domains.dns:update (create one in the GoDaddy developer dashboard), or run `gkm login --provider godaddy`.",
1131
- hostinger: "Set HOSTINGER_API_TOKEN to a token from hpanel.hostinger.com/profile/api, or run `gkm login --provider hostinger`.",
1132
- aws: "Set AWS_PROFILE to the stage account's profile, or AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (and AWS_SESSION_TOKEN) — in CI, the keys aws-actions/configure-aws-credentials exports — or pass them through the deploy's CredentialProvider."
1133
- };
1134
- /** A deploy needed a credential, and its provider had none. */
1135
- var MissingCredential = class extends GkmError {
1136
- kind;
1137
- target;
1138
- howToProvide;
1139
- constructor(kind, target, howToProvide = HOW_TO_PROVIDE[kind] ?? "Pass it through the deploy's CredentialProvider.") {
1140
- const what = kind === "dokploy" ? `No Dokploy credentials${target ? ` for ${target}` : ""}.` : kind === "registry" ? `Dokploy has no registry for ${target ?? "the configured registry"}, and there are no credentials to create one with.` : kind === "aws" ? `No AWS credentials${target ? ` for the "${target}" stage` : ""}.` : kind === "godaddy" ? `No GoDaddy API token${target ? ` for ${target}` : ""}.` : kind === "hostinger" ? `No Hostinger API token${target ? ` for ${target}` : ""}.` : `No "${String(kind)}" credentials${target ? ` for ${target}` : ""}.`;
1141
- super(`${what} ${howToProvide}`);
1142
- this.kind = kind;
1143
- this.target = target;
1144
- this.howToProvide = howToProvide;
1145
- this.name = "MissingCredential";
1146
- }
1147
- };
1148
- /** Whatever was asked for, from the first provider that has it. */
1149
- function chainCredentials(...providers) {
1150
- return { async get(request, options) {
1151
- for (const provider of providers) {
1152
- const found = await provider.get(request, options);
1153
- if (found) return found;
1154
- }
1155
- } };
1156
- }
1157
- /**
1158
- * Credentials from the environment, then from what `gkm login` stored. What
1159
- * `deploy()` uses when it is handed no provider.
1160
- *
1161
- * - Dokploy: `DOKPLOY_API_TOKEN` / `DOKPLOY_ENDPOINT`, each falling back to
1162
- * the stored login, and the endpoint finally to `deploy.dokploy.endpoint`.
1163
- * Each half is read on its own: a token is a secret and belongs in the
1164
- * environment, an endpoint is configuration and belongs in the config.
1165
- * - Registry: `DOCKER_REGISTRY_USERNAME` / `DOCKER_REGISTRY_PASSWORD`.
1166
- * - AWS: `AWS_PROFILE` when it is set, and then nothing else; otherwise
1167
- * `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN`. The
1168
- * profile winning is `secretsStoreFor`'s rule: a profile is a choice of
1169
- * account someone made, exported keys may be left over from another.
1170
- * Read here, by name, and handed only to the command that deploys — the
1171
- * sandbox every other step runs in passes no `AWS_*` on.
1172
- */
1173
- function storedCredentials(options = {}) {
1174
- const env = options.env ?? process.env;
1175
- return { async get(asked) {
1176
- const request = asked;
1177
- switch (request.kind) {
1178
- case "dokploy": {
1179
- const stored = (await readCredentials(options.home ? { home: options.home } : void 0)).dokploy;
1180
- const token = env.DOKPLOY_API_TOKEN ?? stored?.token;
1181
- const endpoint = env.DOKPLOY_ENDPOINT ?? stored?.endpoint ?? request.endpoint;
1182
- if (!token || !endpoint) return void 0;
1183
- return {
1184
- endpoint: endpoint.replace(/\/$/, ""),
1185
- token
1186
- };
1187
- }
1188
- case "registry": {
1189
- const username = env.DOCKER_REGISTRY_USERNAME;
1190
- const password = env.DOCKER_REGISTRY_PASSWORD;
1191
- if (!username || !password) return void 0;
1192
- return {
1193
- username,
1194
- password
1195
- };
1196
- }
1197
- case "godaddy": {
1198
- const token = env.GODADDY_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).godaddy?.token;
1199
- if (!token) return void 0;
1200
- return { token };
1201
- }
1202
- case "hostinger": {
1203
- const token = env.HOSTINGER_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).hostinger?.token;
1204
- if (!token) return void 0;
1205
- return { token };
1206
- }
1207
- case "aws": {
1208
- const region = env.AWS_REGION ?? env.AWS_DEFAULT_REGION;
1209
- const where = region ? { region } : {};
1210
- if (env.AWS_PROFILE) return {
1211
- profile: env.AWS_PROFILE,
1212
- ...where
1213
- };
1214
- const accessKeyId = env.AWS_ACCESS_KEY_ID;
1215
- const secretAccessKey = env.AWS_SECRET_ACCESS_KEY;
1216
- if (!accessKeyId || !secretAccessKey) return void 0;
1217
- return {
1218
- accessKeyId,
1219
- secretAccessKey,
1220
- ...env.AWS_SESSION_TOKEN ? { sessionToken: env.AWS_SESSION_TOKEN } : {},
1221
- ...where
1222
- };
1223
- }
1224
- }
1225
- } };
1226
- }
1227
- //#endregion
1228
1113
  //#region src/deploy/state.ts
1229
1114
  /**
1230
1115
  * Create a new empty state for a stage
@@ -1394,45 +1279,130 @@ function setPostgresBackupId(state, backupId) {
1394
1279
  if (state.backups) state.backups.postgresBackupId = backupId;
1395
1280
  }
1396
1281
  //#endregion
1397
- //#region src/target/dokploy/dns/DnsProvider.ts
1398
- /**
1399
- * An MX record's value as every provider here reads and writes it — the zone
1400
- * file's `<priority> <host>`, which is what Route53 and Hostinger take as is.
1401
- * A provider whose API keeps the priority apart (GoDaddy) splits it with
1402
- * {@link parseMxValue}.
1403
- */
1404
- function mxValue(priority, host) {
1405
- return `${priority} ${host.trim().replace(/\.$/, "")}`;
1406
- }
1407
- /** An MX value that is not `<priority> <host>`. */
1408
- var MxValueInvalid = class extends GkmError {
1409
- value;
1410
- constructor(value) {
1411
- super(`'${value}' is not an MX record's value: it is written '<priority> <host>', like '10 inbound-smtp.eu-west-1.amazonaws.com'. Build it with mxValue(priority, host).`);
1412
- this.value = value;
1413
- this.name = "MxValueInvalid";
1282
+ //#region src/deploy/credentials.ts
1283
+ /**
1284
+ * How a deploy gets the credentials it acts with.
1285
+ *
1286
+ * `deploy()` never prompts and never reads a terminal: it asks a
1287
+ * `CredentialProvider` and, when the provider has nothing, stops with
1288
+ * `MissingCredential` naming what it needed and how to supply it. Whether to
1289
+ * ask a person, read a vault or fail is the caller's decision — `gkm deploy`
1290
+ * prompts at a terminal and stores what was typed; a CI job sets the
1291
+ * environment; a host passes its own provider.
1292
+ */
1293
+ /**
1294
+ * How to supply each kind the CLI knows, for the error that says it is
1295
+ * missing. A target's own kinds are its to explain.
1296
+ */
1297
+ const HOW_TO_PROVIDE = {
1298
+ dokploy: "Set DOKPLOY_API_TOKEN (and DOKPLOY_ENDPOINT, or deploy.dokploy.endpoint in gkm.config.ts), run `gkm login --provider dokploy`, or pass them through the deploy's CredentialProvider.",
1299
+ registry: "Add the registry in Dokploy (Settings → Docker Registry) and set deploy.dokploy.registryId, set DOCKER_REGISTRY_USERNAME and DOCKER_REGISTRY_PASSWORD, or run `gkm deploy` at a terminal to be asked for them.",
1300
+ godaddy: "Set GODADDY_API_TOKEN to a Personal Access Token scoped to domains.dns:update (create one in the GoDaddy developer dashboard), or run `gkm login --provider godaddy`.",
1301
+ hostinger: "Set HOSTINGER_API_TOKEN to a token from hpanel.hostinger.com/profile/api, or run `gkm login --provider hostinger`.",
1302
+ aws: "Set AWS_PROFILE to the stage account's profile, or AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (and AWS_SESSION_TOKEN) — in CI, the keys aws-actions/configure-aws-credentials exports — or pass them through the deploy's CredentialProvider."
1303
+ };
1304
+ /** A deploy needed a credential, and its provider had none. */
1305
+ var MissingCredential = class extends GkmError {
1306
+ kind;
1307
+ target;
1308
+ howToProvide;
1309
+ constructor(kind, target, howToProvide = HOW_TO_PROVIDE[kind] ?? "Pass it through the deploy's CredentialProvider.") {
1310
+ const what = kind === "dokploy" ? `No Dokploy credentials${target ? ` for ${target}` : ""}.` : kind === "registry" ? `Dokploy has no registry for ${target ?? "the configured registry"}, and there are no credentials to create one with.` : kind === "aws" ? `No AWS credentials${target ? ` for the "${target}" stage` : ""}.` : kind === "godaddy" ? `No GoDaddy API token${target ? ` for ${target}` : ""}.` : kind === "hostinger" ? `No Hostinger API token${target ? ` for ${target}` : ""}.` : `No "${String(kind)}" credentials${target ? ` for ${target}` : ""}.`;
1311
+ super(`${what} ${howToProvide}`);
1312
+ this.kind = kind;
1313
+ this.target = target;
1314
+ this.howToProvide = howToProvide;
1315
+ this.name = "MissingCredential";
1414
1316
  }
1415
1317
  };
1318
+ /** Whatever was asked for, from the first provider that has it. */
1319
+ function chainCredentials(...providers) {
1320
+ return { async get(request, options) {
1321
+ for (const provider of providers) {
1322
+ const found = await provider.get(request, options);
1323
+ if (found) return found;
1324
+ }
1325
+ } };
1326
+ }
1416
1327
  /**
1417
- * The priority and host of an MX value.
1328
+ * Credentials from the environment, then from what `gkm login` stored. What
1329
+ * `deploy()` uses when it is handed no provider.
1418
1330
  *
1419
- * @throws {MxValueInvalid} for a value that is not `<priority> <host>`
1331
+ * - Dokploy: `DOKPLOY_API_TOKEN` / `DOKPLOY_ENDPOINT`, each falling back to
1332
+ * the stored login, and the endpoint finally to `deploy.dokploy.endpoint`.
1333
+ * Each half is read on its own: a token is a secret and belongs in the
1334
+ * environment, an endpoint is configuration and belongs in the config.
1335
+ * - Registry: `DOCKER_REGISTRY_USERNAME` / `DOCKER_REGISTRY_PASSWORD`.
1336
+ * - AWS: `AWS_PROFILE` when it is set, and then nothing else; otherwise
1337
+ * `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN`. The
1338
+ * profile winning is `secretsStoreFor`'s rule: a profile is a choice of
1339
+ * account someone made, exported keys may be left over from another.
1340
+ * Read here, by name, and handed only to the command that deploys — the
1341
+ * sandbox every other step runs in passes no `AWS_*` on.
1420
1342
  */
1421
- function parseMxValue(value) {
1422
- const match = value.trim().match(/^(\d{1,5})\s+(\S+)$/);
1423
- const priority = match ? Number(match[1]) : NaN;
1424
- if (!match || priority > 65535) throw new MxValueInvalid(value);
1425
- return {
1426
- priority,
1427
- host: match[2].replace(/\.$/, "")
1428
- };
1343
+ function storedCredentials(options = {}) {
1344
+ const env = options.env ?? process.env;
1345
+ return { async get(asked) {
1346
+ const request = asked;
1347
+ switch (request.kind) {
1348
+ case "dokploy": {
1349
+ const stored = (await readCredentials(options.home ? { home: options.home } : void 0)).dokploy;
1350
+ const token = env.DOKPLOY_API_TOKEN ?? stored?.token;
1351
+ const endpoint = env.DOKPLOY_ENDPOINT ?? stored?.endpoint ?? request.endpoint;
1352
+ if (!token || !endpoint) return void 0;
1353
+ return {
1354
+ endpoint: endpoint.replace(/\/$/, ""),
1355
+ token
1356
+ };
1357
+ }
1358
+ case "registry": {
1359
+ const username = env.DOCKER_REGISTRY_USERNAME;
1360
+ const password = env.DOCKER_REGISTRY_PASSWORD;
1361
+ if (!username || !password) return void 0;
1362
+ return {
1363
+ username,
1364
+ password
1365
+ };
1366
+ }
1367
+ case "godaddy": {
1368
+ const token = env.GODADDY_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).godaddy?.token;
1369
+ if (!token) return void 0;
1370
+ return { token };
1371
+ }
1372
+ case "hostinger": {
1373
+ const token = env.HOSTINGER_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).hostinger?.token;
1374
+ if (!token) return void 0;
1375
+ return { token };
1376
+ }
1377
+ case "aws": {
1378
+ const region = env.AWS_REGION ?? env.AWS_DEFAULT_REGION;
1379
+ const where = region ? { region } : {};
1380
+ if (env.AWS_PROFILE) return {
1381
+ profile: env.AWS_PROFILE,
1382
+ ...where
1383
+ };
1384
+ const accessKeyId = env.AWS_ACCESS_KEY_ID;
1385
+ const secretAccessKey = env.AWS_SECRET_ACCESS_KEY;
1386
+ if (!accessKeyId || !secretAccessKey) return void 0;
1387
+ return {
1388
+ accessKeyId,
1389
+ secretAccessKey,
1390
+ ...env.AWS_SESSION_TOKEN ? { sessionToken: env.AWS_SESSION_TOKEN } : {},
1391
+ ...where
1392
+ };
1393
+ }
1394
+ }
1395
+ } };
1429
1396
  }
1397
+ //#endregion
1398
+ //#region src/dns/providers.ts
1430
1399
  /**
1431
- * Check if value is a DnsProvider implementation.
1400
+ * The DNS provider a `dns` domain names, built from the workspace's config.
1401
+ *
1402
+ * The providers themselves are `@geekmidas/edge`'s and take their credentials
1403
+ * as given. Where a credential comes from (a stored login, the environment)
1404
+ * and what to say when there is none are the CLI's, and are decided here.
1432
1405
  */
1433
- function isDnsProvider(value) {
1434
- return typeof value === "object" && value !== null && typeof value.name === "string" && typeof value.getRecords === "function" && typeof value.upsertRecords === "function" && typeof value.deleteRecords === "function";
1435
- }
1436
1406
  /**
1437
1407
  * Create a DNS provider based on configuration.
1438
1408
  *
@@ -1448,11 +1418,15 @@ async function createDnsProvider(options) {
1448
1418
  if (isDnsProvider(config.provider)) return config.provider;
1449
1419
  const provider = config.provider;
1450
1420
  if (provider === "hostinger") {
1451
- const { HostingerProvider } = await import("./HostingerProvider-kLQsBCjz.mjs");
1452
- return new HostingerProvider(options.hostinger);
1421
+ const { HostingerProvider } = await import("@geekmidas/edge/dns/hostinger");
1422
+ return new HostingerProvider(async () => {
1423
+ const token = options.hostinger?.token ?? await getHostingerToken();
1424
+ if (!token) throw new MissingCredential("hostinger", void 0);
1425
+ return { token };
1426
+ });
1453
1427
  }
1454
1428
  if (provider === "route53") {
1455
- const { Route53Provider } = await import("./Route53Provider-Di_SD9CF.mjs");
1429
+ const { Route53Provider } = await import("@geekmidas/edge/dns/route53");
1456
1430
  const route53Config = config;
1457
1431
  return new Route53Provider({
1458
1432
  region: route53Config.region,
@@ -1461,29 +1435,23 @@ async function createDnsProvider(options) {
1461
1435
  });
1462
1436
  }
1463
1437
  if (provider === "godaddy") {
1464
- const { GoDaddyProvider } = await import("./GoDaddyProvider-DLVKx7er.mjs");
1465
- return new GoDaddyProvider(options.godaddy ?? {});
1438
+ const { GoDaddyProvider } = await import("@geekmidas/edge/dns/godaddy");
1439
+ const { credential, env, home, ...rest } = options.godaddy ?? {};
1440
+ return new GoDaddyProvider({
1441
+ ...rest,
1442
+ credential: async () => {
1443
+ const found = credential ?? await storedCredentials({
1444
+ env: env ?? process.env,
1445
+ ...home ? { home } : {}
1446
+ }).get({ kind: "godaddy" });
1447
+ if (!found) throw new MissingCredential("godaddy", void 0);
1448
+ return found;
1449
+ }
1450
+ });
1466
1451
  }
1467
1452
  if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
1468
1453
  throw new DnsProviderUnknown(config);
1469
1454
  }
1470
- /**
1471
- * The provider's credentials can write records and not read them — a key
1472
- * scoped to updates only. What reads them falls back to writing every record,
1473
- * which is idempotent, without a diff.
1474
- */
1475
- var DnsRecordsUnreadable = class extends GkmError {
1476
- provider;
1477
- domain;
1478
- reason;
1479
- constructor(provider, domain, reason) {
1480
- super(`The ${provider} key cannot read ${domain}'s DNS records (${reason}), so changes cannot be compared with what is there: every record is written, which leaves one that already has its value as it was.`);
1481
- this.provider = provider;
1482
- this.domain = domain;
1483
- this.reason = reason;
1484
- this.name = "DnsRecordsUnreadable";
1485
- }
1486
- };
1487
1455
  /** A DNS provider gkm names and does not have yet. */
1488
1456
  var DnsProviderNotImplemented = class extends Error {
1489
1457
  provider;
@@ -1503,7 +1471,7 @@ var DnsProviderUnknown = class extends GkmError {
1503
1471
  }
1504
1472
  };
1505
1473
  //#endregion
1506
- //#region src/target/dokploy/dns/index.ts
1474
+ //#region src/dns/index.ts
1507
1475
  /**
1508
1476
  * DNS orchestration for deployments
1509
1477
  *
@@ -1847,6 +1815,6 @@ async function verifyDnsRecords(appHostnames, serverIp, state) {
1847
1815
  return results;
1848
1816
  }
1849
1817
  //#endregion
1850
- export { isOwnedBy as $, storeFromConfig as A, FileSecretsStore as B, storedCredentials as C, storageBackendFor as D, providerOf as E, toEmbeddableSecrets as F, getOrCreateKey as G, encrypt as H, withCustomSecret as I, readKey as J, keystoreProject as K, bundleExternals as L, initStageSecrets as M, maskPassword as N, isRemoteStore as O, storage_exports as P, imageRef as Q, externalsManifestName as R, chainCredentials as S, eventsBackendFor as T, getKeyPath as U, decrypt as V, getKeystoreDir as W, deployIdentity as X, applicationName as Y, imageName as Z, setApplicationId as _, storeDokployCredentials as _t, verifyDnsRecords as a, CommandTimedOut as at, setPostgresBackupId as b, GKM_HOME_ENV as bt, mxValue as c, runOutput as ct, createComposeState as d, getDokployRegistryId as dt, markerOf as et, createEmptyState as f, getDokployToken as ft, recordRollback as g, removeGoDaddyCredentials as gt, recordRelease as h, removeDokployCredentials as ht, orchestrateDns as i, CommandFailed as it, store_exports as j, secretsStoreFor as k, parseMxValue as l, getCredentialsPath as lt, getGeneratedSecret as m, readCredentials as mt, findRootDomain as n, projectName as nt, DnsRecordsUnreadable as o, DEFAULT_TIMEOUT_MS as ot, getBackupState as p, getHostingerToken as pt, projectKey as q, normalizeDnsConfig as r, stageTag as rt, createDnsProvider as s, run as st, extractSubdomain as t, ownershipMarker as tt, asDokployState as u, getDokployCredentials as ut, setBackupState as v, storeGoDaddyToken as vt, cacheBackendFor as w, MissingCredential as x, gkmHome as xt, setGeneratedSecret as y, storeHostingerToken as yt, importedPackages as z };
1818
+ export { projectName as $, maskPassword as A, getKeyPath as B, providerOf as C, storeFromConfig as D, secretsStoreFor as E, externalsManifestName as F, readKey as G, getOrCreateKey as H, importedPackages as I, imageName as J, applicationName as K, FileSecretsStore as L, toEmbeddableSecrets as M, withCustomSecret as N, store_exports as O, bundleExternals as P, ownershipMarker as Q, decrypt as R, eventsBackendFor as S, isRemoteStore as T, keystoreProject as U, getKeystoreDir as V, projectKey as W, isOwnedBy as X, imageRef as Y, markerOf as Z, setApplicationId as _, gkmHome as _t, verifyDnsRecords as a, runOutput as at, setPostgresBackupId as b, chainCredentials as c, getDokployRegistryId as ct, createComposeState as d, removeDokployCredentials as dt, stageTag as et, createEmptyState as f, removeGoDaddyCredentials as ft, recordRollback as g, GKM_HOME_ENV as gt, recordRelease as h, storeHostingerToken as ht, orchestrateDns as i, run as it, storage_exports as j, initStageSecrets as k, storedCredentials as l, getDokployToken as lt, getGeneratedSecret as m, storeGoDaddyToken as mt, findRootDomain as n, CommandTimedOut as nt, createDnsProvider as o, getCredentialsPath as ot, getBackupState as p, storeDokployCredentials as pt, deployIdentity as q, normalizeDnsConfig as r, DEFAULT_TIMEOUT_MS as rt, MissingCredential as s, getDokployCredentials as st, extractSubdomain as t, CommandFailed as tt, asDokployState as u, readCredentials as ut, setBackupState as v, storageBackendFor as w, cacheBackendFor as x, setGeneratedSecret as y, encrypt as z };
1851
1819
 
1852
- //# sourceMappingURL=dns-B2vsk2Rc.mjs.map
1820
+ //# sourceMappingURL=dns-BAM8VH1v.mjs.map