@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
  const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
- const require_errors = require("./errors-DMC4Umsb.cjs");
3
- const require_workspace = require("./workspace-DirP2-ed.cjs");
2
+ const require_errors = require("./errors-D1x8duqI.cjs");
3
+ const require_workspace = require("./workspace-wTLnc1Ef.cjs");
4
4
  const require_drivers = require("./drivers-DP7__dJX.cjs");
5
- const require_discover = require("./discover-39VKSE2i.cjs");
6
- const require_resolve = require("./resolve-DRldmRYb.cjs");
5
+ const require_discover = require("./discover-OXczlq08.cjs");
6
+ const require_resolve = require("./resolve-DyUXmA0z.cjs");
7
7
  let node_path = require("node:path");
8
8
  let node_fs = require("node:fs");
9
9
  let node_fs_promises = require("node:fs/promises");
@@ -12,6 +12,7 @@ let node_child_process = require("node:child_process");
12
12
  let node_crypto = require("node:crypto");
13
13
  let _geekmidas_manifest = require("@geekmidas/manifest");
14
14
  let node_dns_promises = require("node:dns/promises");
15
+ let _geekmidas_edge_dns = require("@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 Promise.resolve().then(() => require("./s3-D9aPMh9u.cjs"));
1013
+ const { S3SecretsStore } = await Promise.resolve().then(() => require("./s3-CwacPd8J.cjs"));
1013
1014
  const { deployIdentity } = await Promise.resolve().then(() => identity_exports);
1014
1015
  const location = require_workspace.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 Promise.resolve().then(() => require("./aws-DKC2m3sT.cjs")).then((n) => n.aws_exports);
1026
+ const { AwsSecretsStore } = await Promise.resolve().then(() => require("./aws-BXfiWNbi.cjs")).then((n) => n.aws_exports);
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 Promise.resolve().then(() => require("./secretsManager-D8on44WI.cjs")).then((n) => n.secretsManager_exports);
1035
+ const { SecretsManagerSecretsStore } = await Promise.resolve().then(() => require("./secretsManager-CvmBGjdM.cjs")).then((n) => n.secretsManager_exports);
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 require_drivers.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 require_errors.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
  * A stage's deploy state.
@@ -1406,45 +1291,130 @@ function setPostgresBackupId(state, backupId) {
1406
1291
  if (state.backups) state.backups.postgresBackupId = backupId;
1407
1292
  }
1408
1293
  //#endregion
1409
- //#region src/target/dokploy/dns/DnsProvider.ts
1294
+ //#region src/deploy/credentials.ts
1410
1295
  /**
1411
- * An MX record's value as every provider here reads and writes it — the zone
1412
- * file's `<priority> <host>`, which is what Route53 and Hostinger take as is.
1413
- * A provider whose API keeps the priority apart (GoDaddy) splits it with
1414
- * {@link parseMxValue}.
1296
+ * How a deploy gets the credentials it acts with.
1297
+ *
1298
+ * `deploy()` never prompts and never reads a terminal: it asks a
1299
+ * `CredentialProvider` and, when the provider has nothing, stops with
1300
+ * `MissingCredential` naming what it needed and how to supply it. Whether to
1301
+ * ask a person, read a vault or fail is the caller's decision — `gkm deploy`
1302
+ * prompts at a terminal and stores what was typed; a CI job sets the
1303
+ * environment; a host passes its own provider.
1415
1304
  */
1416
- function mxValue(priority, host) {
1417
- return `${priority} ${host.trim().replace(/\.$/, "")}`;
1418
- }
1419
- /** An MX value that is not `<priority> <host>`. */
1420
- var MxValueInvalid = class extends require_errors.GkmError {
1421
- value;
1422
- constructor(value) {
1423
- 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).`);
1424
- this.value = value;
1425
- this.name = "MxValueInvalid";
1305
+ /**
1306
+ * How to supply each kind the CLI knows, for the error that says it is
1307
+ * missing. A target's own kinds are its to explain.
1308
+ */
1309
+ const HOW_TO_PROVIDE = {
1310
+ 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.",
1311
+ 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.",
1312
+ 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`.",
1313
+ hostinger: "Set HOSTINGER_API_TOKEN to a token from hpanel.hostinger.com/profile/api, or run `gkm login --provider hostinger`.",
1314
+ 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."
1315
+ };
1316
+ /** A deploy needed a credential, and its provider had none. */
1317
+ var MissingCredential = class extends require_errors.GkmError {
1318
+ kind;
1319
+ target;
1320
+ howToProvide;
1321
+ constructor(kind, target, howToProvide = HOW_TO_PROVIDE[kind] ?? "Pass it through the deploy's CredentialProvider.") {
1322
+ 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}` : ""}.`;
1323
+ super(`${what} ${howToProvide}`);
1324
+ this.kind = kind;
1325
+ this.target = target;
1326
+ this.howToProvide = howToProvide;
1327
+ this.name = "MissingCredential";
1426
1328
  }
1427
1329
  };
1330
+ /** Whatever was asked for, from the first provider that has it. */
1331
+ function chainCredentials(...providers) {
1332
+ return { async get(request, options) {
1333
+ for (const provider of providers) {
1334
+ const found = await provider.get(request, options);
1335
+ if (found) return found;
1336
+ }
1337
+ } };
1338
+ }
1428
1339
  /**
1429
- * The priority and host of an MX value.
1340
+ * Credentials from the environment, then from what `gkm login` stored. What
1341
+ * `deploy()` uses when it is handed no provider.
1430
1342
  *
1431
- * @throws {MxValueInvalid} for a value that is not `<priority> <host>`
1343
+ * - Dokploy: `DOKPLOY_API_TOKEN` / `DOKPLOY_ENDPOINT`, each falling back to
1344
+ * the stored login, and the endpoint finally to `deploy.dokploy.endpoint`.
1345
+ * Each half is read on its own: a token is a secret and belongs in the
1346
+ * environment, an endpoint is configuration and belongs in the config.
1347
+ * - Registry: `DOCKER_REGISTRY_USERNAME` / `DOCKER_REGISTRY_PASSWORD`.
1348
+ * - AWS: `AWS_PROFILE` when it is set, and then nothing else; otherwise
1349
+ * `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN`. The
1350
+ * profile winning is `secretsStoreFor`'s rule: a profile is a choice of
1351
+ * account someone made, exported keys may be left over from another.
1352
+ * Read here, by name, and handed only to the command that deploys — the
1353
+ * sandbox every other step runs in passes no `AWS_*` on.
1432
1354
  */
1433
- function parseMxValue(value) {
1434
- const match = value.trim().match(/^(\d{1,5})\s+(\S+)$/);
1435
- const priority = match ? Number(match[1]) : NaN;
1436
- if (!match || priority > 65535) throw new MxValueInvalid(value);
1437
- return {
1438
- priority,
1439
- host: match[2].replace(/\.$/, "")
1440
- };
1355
+ function storedCredentials(options = {}) {
1356
+ const env = options.env ?? process.env;
1357
+ return { async get(asked) {
1358
+ const request = asked;
1359
+ switch (request.kind) {
1360
+ case "dokploy": {
1361
+ const stored = (await readCredentials(options.home ? { home: options.home } : void 0)).dokploy;
1362
+ const token = env.DOKPLOY_API_TOKEN ?? stored?.token;
1363
+ const endpoint = env.DOKPLOY_ENDPOINT ?? stored?.endpoint ?? request.endpoint;
1364
+ if (!token || !endpoint) return void 0;
1365
+ return {
1366
+ endpoint: endpoint.replace(/\/$/, ""),
1367
+ token
1368
+ };
1369
+ }
1370
+ case "registry": {
1371
+ const username = env.DOCKER_REGISTRY_USERNAME;
1372
+ const password = env.DOCKER_REGISTRY_PASSWORD;
1373
+ if (!username || !password) return void 0;
1374
+ return {
1375
+ username,
1376
+ password
1377
+ };
1378
+ }
1379
+ case "godaddy": {
1380
+ const token = env.GODADDY_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).godaddy?.token;
1381
+ if (!token) return void 0;
1382
+ return { token };
1383
+ }
1384
+ case "hostinger": {
1385
+ const token = env.HOSTINGER_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).hostinger?.token;
1386
+ if (!token) return void 0;
1387
+ return { token };
1388
+ }
1389
+ case "aws": {
1390
+ const region = env.AWS_REGION ?? env.AWS_DEFAULT_REGION;
1391
+ const where = region ? { region } : {};
1392
+ if (env.AWS_PROFILE) return {
1393
+ profile: env.AWS_PROFILE,
1394
+ ...where
1395
+ };
1396
+ const accessKeyId = env.AWS_ACCESS_KEY_ID;
1397
+ const secretAccessKey = env.AWS_SECRET_ACCESS_KEY;
1398
+ if (!accessKeyId || !secretAccessKey) return void 0;
1399
+ return {
1400
+ accessKeyId,
1401
+ secretAccessKey,
1402
+ ...env.AWS_SESSION_TOKEN ? { sessionToken: env.AWS_SESSION_TOKEN } : {},
1403
+ ...where
1404
+ };
1405
+ }
1406
+ }
1407
+ } };
1441
1408
  }
1409
+ //#endregion
1410
+ //#region src/dns/providers.ts
1442
1411
  /**
1443
- * Check if value is a DnsProvider implementation.
1412
+ * The DNS provider a `dns` domain names, built from the workspace's config.
1413
+ *
1414
+ * The providers themselves are `@geekmidas/edge`'s and take their credentials
1415
+ * as given. Where a credential comes from (a stored login, the environment)
1416
+ * and what to say when there is none are the CLI's, and are decided here.
1444
1417
  */
1445
- function isDnsProvider(value) {
1446
- return typeof value === "object" && value !== null && typeof value.name === "string" && typeof value.getRecords === "function" && typeof value.upsertRecords === "function" && typeof value.deleteRecords === "function";
1447
- }
1448
1418
  /**
1449
1419
  * Create a DNS provider based on configuration.
1450
1420
  *
@@ -1457,14 +1427,18 @@ function isDnsProvider(value) {
1457
1427
  async function createDnsProvider(options) {
1458
1428
  const { config } = options;
1459
1429
  if (config.provider === "manual") return null;
1460
- if (isDnsProvider(config.provider)) return config.provider;
1430
+ if ((0, _geekmidas_edge_dns.isDnsProvider)(config.provider)) return config.provider;
1461
1431
  const provider = config.provider;
1462
1432
  if (provider === "hostinger") {
1463
- const { HostingerProvider } = await Promise.resolve().then(() => require("./HostingerProvider-DBPWhL_s.cjs"));
1464
- return new HostingerProvider(options.hostinger);
1433
+ const { HostingerProvider } = await import("@geekmidas/edge/dns/hostinger");
1434
+ return new HostingerProvider(async () => {
1435
+ const token = options.hostinger?.token ?? await getHostingerToken();
1436
+ if (!token) throw new MissingCredential("hostinger", void 0);
1437
+ return { token };
1438
+ });
1465
1439
  }
1466
1440
  if (provider === "route53") {
1467
- const { Route53Provider } = await Promise.resolve().then(() => require("./Route53Provider-emLuQHVw.cjs"));
1441
+ const { Route53Provider } = await import("@geekmidas/edge/dns/route53");
1468
1442
  const route53Config = config;
1469
1443
  return new Route53Provider({
1470
1444
  region: route53Config.region,
@@ -1473,29 +1447,23 @@ async function createDnsProvider(options) {
1473
1447
  });
1474
1448
  }
1475
1449
  if (provider === "godaddy") {
1476
- const { GoDaddyProvider } = await Promise.resolve().then(() => require("./GoDaddyProvider-B9AMLUHF.cjs"));
1477
- return new GoDaddyProvider(options.godaddy ?? {});
1450
+ const { GoDaddyProvider } = await import("@geekmidas/edge/dns/godaddy");
1451
+ const { credential, env, home, ...rest } = options.godaddy ?? {};
1452
+ return new GoDaddyProvider({
1453
+ ...rest,
1454
+ credential: async () => {
1455
+ const found = credential ?? await storedCredentials({
1456
+ env: env ?? process.env,
1457
+ ...home ? { home } : {}
1458
+ }).get({ kind: "godaddy" });
1459
+ if (!found) throw new MissingCredential("godaddy", void 0);
1460
+ return found;
1461
+ }
1462
+ });
1478
1463
  }
1479
1464
  if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
1480
1465
  throw new DnsProviderUnknown(config);
1481
1466
  }
1482
- /**
1483
- * The provider's credentials can write records and not read them — a key
1484
- * scoped to updates only. What reads them falls back to writing every record,
1485
- * which is idempotent, without a diff.
1486
- */
1487
- var DnsRecordsUnreadable = class extends require_errors.GkmError {
1488
- provider;
1489
- domain;
1490
- reason;
1491
- constructor(provider, domain, reason) {
1492
- 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.`);
1493
- this.provider = provider;
1494
- this.domain = domain;
1495
- this.reason = reason;
1496
- this.name = "DnsRecordsUnreadable";
1497
- }
1498
- };
1499
1467
  /** A DNS provider gkm names and does not have yet. */
1500
1468
  var DnsProviderNotImplemented = class extends Error {
1501
1469
  provider;
@@ -1515,7 +1483,7 @@ var DnsProviderUnknown = class extends require_errors.GkmError {
1515
1483
  }
1516
1484
  };
1517
1485
  //#endregion
1518
- //#region src/target/dokploy/dns/index.ts
1486
+ //#region src/dns/index.ts
1519
1487
  /**
1520
1488
  * DNS orchestration for deployments
1521
1489
  *
@@ -1877,12 +1845,6 @@ Object.defineProperty(exports, "DEFAULT_TIMEOUT_MS", {
1877
1845
  return DEFAULT_TIMEOUT_MS;
1878
1846
  }
1879
1847
  });
1880
- Object.defineProperty(exports, "DnsRecordsUnreadable", {
1881
- enumerable: true,
1882
- get: function() {
1883
- return DnsRecordsUnreadable;
1884
- }
1885
- });
1886
1848
  Object.defineProperty(exports, "FileSecretsStore", {
1887
1849
  enumerable: true,
1888
1850
  get: function() {
@@ -2027,12 +1989,6 @@ Object.defineProperty(exports, "getGeneratedSecret", {
2027
1989
  return getGeneratedSecret;
2028
1990
  }
2029
1991
  });
2030
- Object.defineProperty(exports, "getHostingerToken", {
2031
- enumerable: true,
2032
- get: function() {
2033
- return getHostingerToken;
2034
- }
2035
- });
2036
1992
  Object.defineProperty(exports, "getKeyPath", {
2037
1993
  enumerable: true,
2038
1994
  get: function() {
@@ -2111,12 +2067,6 @@ Object.defineProperty(exports, "maskPassword", {
2111
2067
  return maskPassword;
2112
2068
  }
2113
2069
  });
2114
- Object.defineProperty(exports, "mxValue", {
2115
- enumerable: true,
2116
- get: function() {
2117
- return mxValue;
2118
- }
2119
- });
2120
2070
  Object.defineProperty(exports, "normalizeDnsConfig", {
2121
2071
  enumerable: true,
2122
2072
  get: function() {
@@ -2135,12 +2085,6 @@ Object.defineProperty(exports, "ownershipMarker", {
2135
2085
  return ownershipMarker;
2136
2086
  }
2137
2087
  });
2138
- Object.defineProperty(exports, "parseMxValue", {
2139
- enumerable: true,
2140
- get: function() {
2141
- return parseMxValue;
2142
- }
2143
- });
2144
2088
  Object.defineProperty(exports, "projectKey", {
2145
2089
  enumerable: true,
2146
2090
  get: function() {
@@ -2310,4 +2254,4 @@ Object.defineProperty(exports, "withCustomSecret", {
2310
2254
  }
2311
2255
  });
2312
2256
 
2313
- //# sourceMappingURL=dns-WneRa4VJ.cjs.map
2257
+ //# sourceMappingURL=dns-D_0z9Tm1.cjs.map