@geekmidas/cli 10.0.0-alpha.172 → 10.0.0-alpha.174

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 (198) hide show
  1. package/dist/{GoDaddyProvider-CIhg_ymt.mjs → GoDaddyProvider-BxQYQT7E.mjs} +2 -2
  2. package/dist/{GoDaddyProvider-CIhg_ymt.mjs.map → GoDaddyProvider-BxQYQT7E.mjs.map} +1 -1
  3. package/dist/{GoDaddyProvider-BLCCgWNA.cjs → GoDaddyProvider-gn-UeZl_.cjs} +7 -7
  4. package/dist/{GoDaddyProvider-BLCCgWNA.cjs.map → GoDaddyProvider-gn-UeZl_.cjs.map} +1 -1
  5. package/dist/{HostingerProvider-BOFzH5JM.mjs → HostingerProvider-B-FP4-z6.mjs} +2 -2
  6. package/dist/{HostingerProvider-BOFzH5JM.mjs.map → HostingerProvider-B-FP4-z6.mjs.map} +1 -1
  7. package/dist/{HostingerProvider-BUBeLZFT.cjs → HostingerProvider-znlxfl_p.cjs} +4 -4
  8. package/dist/{HostingerProvider-BUBeLZFT.cjs.map → HostingerProvider-znlxfl_p.cjs.map} +1 -1
  9. package/dist/{LegacyStateStore-CrkjCaSU.mjs → LegacyStateStore-Bds2IJbE.mjs} +2 -2
  10. package/dist/{LegacyStateStore-CrkjCaSU.mjs.map → LegacyStateStore-Bds2IJbE.mjs.map} +1 -1
  11. package/dist/{LegacyStateStore-CLuyua0d.cjs → LegacyStateStore-bS6W95Cq.cjs} +2 -2
  12. package/dist/{LegacyStateStore-CLuyua0d.cjs.map → LegacyStateStore-bS6W95Cq.cjs.map} +1 -1
  13. package/dist/{LocalStateStore-Bu1mGMUv.cjs → LocalStateStore-DN0_SCii.cjs} +2 -2
  14. package/dist/{LocalStateStore-Bu1mGMUv.cjs.map → LocalStateStore-DN0_SCii.cjs.map} +1 -1
  15. package/dist/{LocalStateStore-DV4jBo8p.mjs → LocalStateStore-Zvirfsr4.mjs} +2 -2
  16. package/dist/{LocalStateStore-DV4jBo8p.mjs.map → LocalStateStore-Zvirfsr4.mjs.map} +1 -1
  17. package/dist/{S3StateStore-kbkBod12.cjs → S3StateStore-Cs_ONSe7.cjs} +5 -5
  18. package/dist/{S3StateStore-kbkBod12.cjs.map → S3StateStore-Cs_ONSe7.cjs.map} +1 -1
  19. package/dist/{S3StateStore-B4FDrGY1.mjs → S3StateStore-CxNPJKqU.mjs} +4 -4
  20. package/dist/{S3StateStore-B4FDrGY1.mjs.map → S3StateStore-CxNPJKqU.mjs.map} +1 -1
  21. package/dist/{SSMStateStore-5MSu94ua.mjs → SSMStateStore-CK52ONQn.mjs} +2 -2
  22. package/dist/{SSMStateStore-5MSu94ua.mjs.map → SSMStateStore-CK52ONQn.mjs.map} +1 -1
  23. package/dist/{SSMStateStore-DbsAcN97.cjs → SSMStateStore-CzF_ghlT.cjs} +2 -2
  24. package/dist/{SSMStateStore-DbsAcN97.cjs.map → SSMStateStore-CzF_ghlT.cjs.map} +1 -1
  25. package/dist/{add-CLEIQtcF.mjs → add-D570rDKN.mjs} +5 -5
  26. package/dist/{add-CLEIQtcF.mjs.map → add-D570rDKN.mjs.map} +1 -1
  27. package/dist/{add-CB1o52l-.cjs → add-DD5bYU31.cjs} +7 -7
  28. package/dist/{add-CB1o52l-.cjs.map → add-DD5bYU31.cjs.map} +1 -1
  29. package/dist/{apps-CTyacCpW.cjs → apps-CIKiSUxH.cjs} +15 -13
  30. package/dist/apps-CIKiSUxH.cjs.map +1 -0
  31. package/dist/{apps-B4qOLFEC.mjs → apps-iHK70h_F.mjs} +11 -9
  32. package/dist/apps-iHK70h_F.mjs.map +1 -0
  33. package/dist/{bundler-Bma2_DTI.cjs → bundler-CMieQ_0t.cjs} +18 -10
  34. package/dist/bundler-CMieQ_0t.cjs.map +1 -0
  35. package/dist/{bundler-CSSYSsl8.mjs → bundler-Cdhf7lv3.mjs} +16 -8
  36. package/dist/bundler-Cdhf7lv3.mjs.map +1 -0
  37. package/dist/{cli-BFEuBKiU.mjs → cli-CcWMO_-0.mjs} +4 -4
  38. package/dist/{cli-BFEuBKiU.mjs.map → cli-CcWMO_-0.mjs.map} +1 -1
  39. package/dist/{cli-DXGl3fsc.cjs → cli-DHnkkrXz.cjs} +6 -6
  40. package/dist/{cli-DXGl3fsc.cjs.map → cli-DHnkkrXz.cjs.map} +1 -1
  41. package/dist/{compose-SSYHdZMN.mjs → compose-CFCSlSXx.mjs} +8 -8
  42. package/dist/{compose-SSYHdZMN.mjs.map → compose-CFCSlSXx.mjs.map} +1 -1
  43. package/dist/{compose-DpDrZwZS.cjs → compose-D8cd13Eo.cjs} +16 -16
  44. package/dist/{compose-DpDrZwZS.cjs.map → compose-D8cd13Eo.cjs.map} +1 -1
  45. package/dist/{compose-CANkT9bL.mjs → compose-DsFvWwAu.mjs} +5 -5
  46. package/dist/{compose-CANkT9bL.mjs.map → compose-DsFvWwAu.mjs.map} +1 -1
  47. package/dist/{compose-BNWFrHHE.cjs → compose-SAxadQy7.cjs} +25 -25
  48. package/dist/{compose-BNWFrHHE.cjs.map → compose-SAxadQy7.cjs.map} +1 -1
  49. package/dist/config.cjs +1 -1
  50. package/dist/config.mjs +1 -1
  51. package/dist/deploy/public.cjs +20 -20
  52. package/dist/deploy/public.cjs.map +1 -1
  53. package/dist/deploy/public.mjs +11 -11
  54. package/dist/{deploy-Qa7wXYS4.mjs → deploy-CyrHJ5tR.mjs} +13 -24
  55. package/dist/deploy-CyrHJ5tR.mjs.map +1 -0
  56. package/dist/{deploy-DHrbzHxT.cjs → deploy-DnkGdwUd.cjs} +54 -65
  57. package/dist/deploy-DnkGdwUd.cjs.map +1 -0
  58. package/dist/{destroy-CKuYg9JQ.mjs → destroy-C2VQEDji.mjs} +9 -9
  59. package/dist/{destroy-CKuYg9JQ.mjs.map → destroy-C2VQEDji.mjs.map} +1 -1
  60. package/dist/{destroy-CJ6wwQRQ.cjs → destroy-Qb0MuIV4.cjs} +24 -24
  61. package/dist/{destroy-CJ6wwQRQ.cjs.map → destroy-Qb0MuIV4.cjs.map} +1 -1
  62. package/dist/{credentials-DmNpxlFO.mjs → dns-BMtL2ytM.mjs} +123 -123
  63. package/dist/dns-BMtL2ytM.mjs.map +1 -0
  64. package/dist/{credentials-BAeWfaj3.cjs → dns-DSzsbU2g.cjs} +122 -122
  65. package/dist/dns-DSzsbU2g.cjs.map +1 -0
  66. package/dist/{docker-CrNWM0jN.mjs → docker-D89imkq2.mjs} +186 -13
  67. package/dist/docker-D89imkq2.mjs.map +1 -0
  68. package/dist/{docker-C9ObsT80.cjs → docker-aJbcdGKT.cjs} +220 -11
  69. package/dist/docker-aJbcdGKT.cjs.map +1 -0
  70. package/dist/{dokploy-C6KfcyOG.cjs → dokploy-DvG19W0p.cjs} +2 -2
  71. package/dist/{dokploy-C6KfcyOG.cjs.map → dokploy-DvG19W0p.cjs.map} +1 -1
  72. package/dist/{dokploy-DITW2LHL.mjs → dokploy-QAThjPQL.mjs} +2 -2
  73. package/dist/{dokploy-DITW2LHL.mjs.map → dokploy-QAThjPQL.mjs.map} +1 -1
  74. package/dist/{eas-BBwlSGd8.cjs → eas-DvKir935.cjs} +3 -3
  75. package/dist/{eas-BBwlSGd8.cjs.map → eas-DvKir935.cjs.map} +1 -1
  76. package/dist/{eas-BE7tu9eH.mjs → eas-VxFCgjQa.mjs} +3 -3
  77. package/dist/{eas-BE7tu9eH.mjs.map → eas-VxFCgjQa.mjs.map} +1 -1
  78. package/dist/{encryption-D0jmwRdU.cjs → encryption-D88IRxkV.cjs} +6 -6
  79. package/dist/{encryption-D0jmwRdU.cjs.map → encryption-D88IRxkV.cjs.map} +1 -1
  80. package/dist/{encryption-Bn_pIrIe.mjs → encryption-_GRjwxGO.mjs} +3 -3
  81. package/dist/{encryption-Bn_pIrIe.mjs.map → encryption-_GRjwxGO.mjs.map} +1 -1
  82. package/dist/{engine-BDqBychY.cjs → engine-7oDEgerp.cjs} +58 -58
  83. package/dist/{engine-BDqBychY.cjs.map → engine-7oDEgerp.cjs.map} +1 -1
  84. package/dist/{engine-Dv4SfML2.mjs → engine-CQfdAI92.mjs} +9 -9
  85. package/dist/{engine-Dv4SfML2.mjs.map → engine-CQfdAI92.mjs.map} +1 -1
  86. package/dist/{github-7vONG88-.mjs → github-BE-0zZ0H.mjs} +7 -7
  87. package/dist/{github-7vONG88-.mjs.map → github-BE-0zZ0H.mjs.map} +1 -1
  88. package/dist/{github-orgDU5Ta.cjs → github-CaUfjXXt.cjs} +16 -16
  89. package/dist/{github-orgDU5Ta.cjs.map → github-CaUfjXXt.cjs.map} +1 -1
  90. package/dist/{googlePlay-DOPEv_Uu.mjs → googlePlay-DrBrk6dZ.mjs} +4 -4
  91. package/dist/{googlePlay-DOPEv_Uu.mjs.map → googlePlay-DrBrk6dZ.mjs.map} +1 -1
  92. package/dist/{googlePlay-DWiYD2Up.cjs → googlePlay-FCJulaVY.cjs} +5 -5
  93. package/dist/{googlePlay-DWiYD2Up.cjs.map → googlePlay-FCJulaVY.cjs.map} +1 -1
  94. package/dist/{iam-FA95ku7l.cjs → iam-CGd_oEyz.cjs} +2 -2
  95. package/dist/{iam-FA95ku7l.cjs.map → iam-CGd_oEyz.cjs.map} +1 -1
  96. package/dist/{iam-BE0qX5Lb.mjs → iam-Cs2Ph5f2.mjs} +2 -2
  97. package/dist/{iam-BE0qX5Lb.mjs.map → iam-Cs2Ph5f2.mjs.map} +1 -1
  98. package/dist/index.cjs +204 -253
  99. package/dist/index.cjs.map +1 -1
  100. package/dist/index.mjs +156 -205
  101. package/dist/index.mjs.map +1 -1
  102. package/dist/{local-Dx_1DLrj.cjs → local-BclGW_Zo.cjs} +3 -3
  103. package/dist/{local-Dx_1DLrj.cjs.map → local-BclGW_Zo.cjs.map} +1 -1
  104. package/dist/{local-s-ReaV9D.mjs → local-DbxB0Fg4.mjs} +2 -2
  105. package/dist/{local-s-ReaV9D.mjs.map → local-DbxB0Fg4.mjs.map} +1 -1
  106. package/dist/{migrate-83OqvIDr.mjs → migrate-C2Kjfwui.mjs} +3 -3
  107. package/dist/{migrate-83OqvIDr.mjs.map → migrate-C2Kjfwui.mjs.map} +1 -1
  108. package/dist/{migrate-BwKps39u.cjs → migrate-D2mp7qyM.cjs} +6 -6
  109. package/dist/{migrate-BwKps39u.cjs.map → migrate-D2mp7qyM.cjs.map} +1 -1
  110. package/dist/{migrate-rZPQE2lm.mjs → migrate-lidIEoZm.mjs} +5 -5
  111. package/dist/{migrate-rZPQE2lm.mjs.map → migrate-lidIEoZm.mjs.map} +1 -1
  112. package/dist/{migrate-BCnC1nUd.cjs → migrate-z_MuES4x.cjs} +6 -6
  113. package/dist/{migrate-BCnC1nUd.cjs.map → migrate-z_MuES4x.cjs.map} +1 -1
  114. package/dist/{notes-Chp3yhjU.cjs → notes-Cs0rVvlG.cjs} +3 -3
  115. package/dist/{notes-Chp3yhjU.cjs.map → notes-Cs0rVvlG.cjs.map} +1 -1
  116. package/dist/{notes-BvER-Te2.mjs → notes-Dw9BWRJP.mjs} +3 -3
  117. package/dist/{notes-BvER-Te2.mjs.map → notes-Dw9BWRJP.mjs.map} +1 -1
  118. package/dist/openapi.cjs +1 -1
  119. package/dist/openapi.mjs +1 -1
  120. package/dist/{projectBucket-BcbirdBj.cjs → projectBucket-BvcErpo0.cjs} +2 -2
  121. package/dist/{projectBucket-BcbirdBj.cjs.map → projectBucket-BvcErpo0.cjs.map} +1 -1
  122. package/dist/{projectBucket-BfE46Zj9.mjs → projectBucket-DHuBZDPJ.mjs} +2 -2
  123. package/dist/{projectBucket-BfE46Zj9.mjs.map → projectBucket-DHuBZDPJ.mjs.map} +1 -1
  124. package/dist/{publish-N7RjKFiU.cjs → publish-DzMQWBW8.cjs} +2 -2
  125. package/dist/{publish-N7RjKFiU.cjs.map → publish-DzMQWBW8.cjs.map} +1 -1
  126. package/dist/{publish-Cm7fGhl3.mjs → publish-yslBcYWN.mjs} +2 -2
  127. package/dist/{publish-Cm7fGhl3.mjs.map → publish-yslBcYWN.mjs.map} +1 -1
  128. package/dist/{resolve-Bjz8vr36.cjs → resolve-CQvEtM5c.cjs} +4 -4
  129. package/dist/{resolve-Bjz8vr36.cjs.map → resolve-CQvEtM5c.cjs.map} +1 -1
  130. package/dist/{resolve-BP-wvD7F.mjs → resolve-Dfind5fY.mjs} +4 -4
  131. package/dist/{resolve-BP-wvD7F.mjs.map → resolve-Dfind5fY.mjs.map} +1 -1
  132. package/dist/{rollback-C0QxGS7N.cjs → rollback-DUbm19zl.cjs} +9 -9
  133. package/dist/{rollback-C0QxGS7N.cjs.map → rollback-DUbm19zl.cjs.map} +1 -1
  134. package/dist/{rollback-OWocmLZ3.mjs → rollback-j8X0RdpU.mjs} +6 -6
  135. package/dist/{rollback-OWocmLZ3.mjs.map → rollback-j8X0RdpU.mjs.map} +1 -1
  136. package/dist/{s3-CQHYU8Iy.cjs → s3-Ba3WIaGU.cjs} +3 -3
  137. package/dist/{s3-CQHYU8Iy.cjs.map → s3-Ba3WIaGU.cjs.map} +1 -1
  138. package/dist/{s3-BrXDNOOi.mjs → s3-Bs1qUnxt.mjs} +3 -3
  139. package/dist/{s3-BrXDNOOi.mjs.map → s3-Bs1qUnxt.mjs.map} +1 -1
  140. package/dist/{serverSetup-DAXGkiFf.mjs → serverSetup-DUrSo7HL.mjs} +6 -6
  141. package/dist/{serverSetup-DAXGkiFf.mjs.map → serverSetup-DUrSo7HL.mjs.map} +1 -1
  142. package/dist/{serverSetup-DcyafYuO.cjs → serverSetup-Drh_mhxR.cjs} +8 -8
  143. package/dist/{serverSetup-DcyafYuO.cjs.map → serverSetup-Drh_mhxR.cjs.map} +1 -1
  144. package/dist/{sniffer-D6dwbd7L.mjs → sniffer-DgjWtfBW.mjs} +7 -7
  145. package/dist/{sniffer-D6dwbd7L.mjs.map → sniffer-DgjWtfBW.mjs.map} +1 -1
  146. package/dist/{sniffer-DpiPHtcR.cjs → sniffer-zsLNtFK0.cjs} +7 -7
  147. package/dist/{sniffer-DpiPHtcR.cjs.map → sniffer-zsLNtFK0.cjs.map} +1 -1
  148. package/dist/{snsSubscriptions-BVaZU0qQ.mjs → snsSubscriptions-BLfWAnzg.mjs} +5 -78
  149. package/dist/snsSubscriptions-BLfWAnzg.mjs.map +1 -0
  150. package/dist/{snsSubscriptions-CXpZqb-Y.cjs → snsSubscriptions-CGO6EO7H.cjs} +20 -111
  151. package/dist/snsSubscriptions-CGO6EO7H.cjs.map +1 -0
  152. package/dist/{sst-CglMlWMQ.mjs → sst-B2h4rE6j.mjs} +5 -5
  153. package/dist/{sst-CglMlWMQ.mjs.map → sst-B2h4rE6j.mjs.map} +1 -1
  154. package/dist/{sst-C0VMb3o0.cjs → sst-Bih36ADr.cjs} +7 -7
  155. package/dist/{sst-C0VMb3o0.cjs.map → sst-Bih36ADr.cjs.map} +1 -1
  156. package/dist/{stack-DKloCsy6.cjs → stack-D0CC6_b-.cjs} +162 -14
  157. package/dist/stack-D0CC6_b-.cjs.map +1 -0
  158. package/dist/{stack-DXHdVCsD.mjs → stack-DI4qbrtn.mjs} +141 -12
  159. package/dist/stack-DI4qbrtn.mjs.map +1 -0
  160. package/dist/{stage-CcsCwU8-.cjs → stage--Z6-pM9E.cjs} +8 -8
  161. package/dist/{stage-CcsCwU8-.cjs.map → stage--Z6-pM9E.cjs.map} +1 -1
  162. package/dist/{stage-BOOoPl_k.mjs → stage-C-qe-Lye.mjs} +6 -6
  163. package/dist/{stage-BOOoPl_k.mjs.map → stage-C-qe-Lye.mjs.map} +1 -1
  164. package/dist/{stages-D49CUpBY.cjs → stages-8izznWib.cjs} +2 -2
  165. package/dist/{stages-D49CUpBY.cjs.map → stages-8izznWib.cjs.map} +1 -1
  166. package/dist/{stages-CCAAe1tP.mjs → stages-QPWgbm9P.mjs} +2 -2
  167. package/dist/{stages-CCAAe1tP.mjs.map → stages-QPWgbm9P.mjs.map} +1 -1
  168. package/dist/target/public.cjs +1 -1
  169. package/dist/target/public.mjs +1 -1
  170. package/dist/{terminal-Bc0XhkqW.cjs → terminal-CnhNSW3v.cjs} +5 -5
  171. package/dist/{terminal-Bc0XhkqW.cjs.map → terminal-CnhNSW3v.cjs.map} +1 -1
  172. package/dist/{terminal-D92VjzyD.mjs → terminal-DtO0Eh3g.mjs} +2 -2
  173. package/dist/{terminal-D92VjzyD.mjs.map → terminal-DtO0Eh3g.mjs.map} +1 -1
  174. package/dist/types-Bl_CwZC9.cjs.map +1 -1
  175. package/dist/types-Y1NfWlyG.mjs.map +1 -1
  176. package/dist/workspace/index.cjs +1 -1
  177. package/dist/workspace/index.mjs +1 -1
  178. package/dist/{workspace-B0PI9k9p.mjs → workspace-BBa1Ck5j.mjs} +16 -2
  179. package/dist/workspace-BBa1Ck5j.mjs.map +1 -0
  180. package/dist/{workspace-LR9DFjU8.cjs → workspace-DirP2-ed.cjs} +21 -7
  181. package/dist/workspace-DirP2-ed.cjs.map +1 -0
  182. package/package.json +15 -15
  183. package/dist/apps-B4qOLFEC.mjs.map +0 -1
  184. package/dist/apps-CTyacCpW.cjs.map +0 -1
  185. package/dist/bundler-Bma2_DTI.cjs.map +0 -1
  186. package/dist/bundler-CSSYSsl8.mjs.map +0 -1
  187. package/dist/credentials-BAeWfaj3.cjs.map +0 -1
  188. package/dist/credentials-DmNpxlFO.mjs.map +0 -1
  189. package/dist/deploy-DHrbzHxT.cjs.map +0 -1
  190. package/dist/deploy-Qa7wXYS4.mjs.map +0 -1
  191. package/dist/docker-C9ObsT80.cjs.map +0 -1
  192. package/dist/docker-CrNWM0jN.mjs.map +0 -1
  193. package/dist/snsSubscriptions-BVaZU0qQ.mjs.map +0 -1
  194. package/dist/snsSubscriptions-CXpZqb-Y.cjs.map +0 -1
  195. package/dist/stack-DKloCsy6.cjs.map +0 -1
  196. package/dist/stack-DXHdVCsD.mjs.map +0 -1
  197. package/dist/workspace-B0PI9k9p.mjs.map +0 -1
  198. package/dist/workspace-LR9DFjU8.cjs.map +0 -1
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
2
  const require_errors = require("./errors-DMC4Umsb.cjs");
3
- const require_workspace = require("./workspace-LR9DFjU8.cjs");
3
+ const require_workspace = require("./workspace-DirP2-ed.cjs");
4
4
  const require_types = require("./types-Bl_CwZC9.cjs");
5
5
  const require_discover = require("./discover-39VKSE2i.cjs");
6
- const require_resolve = require("./resolve-Bjz8vr36.cjs");
6
+ const require_resolve = require("./resolve-CQvEtM5c.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");
@@ -995,7 +995,7 @@ async function storeFromConfig(workspace, config, options = {}) {
995
995
  const profile = options.profile ? { profile: options.profile } : {};
996
996
  switch (config.provider) {
997
997
  case "s3": {
998
- const { S3SecretsStore } = await Promise.resolve().then(() => require("./s3-CQHYU8Iy.cjs"));
998
+ const { S3SecretsStore } = await Promise.resolve().then(() => require("./s3-Ba3WIaGU.cjs"));
999
999
  const { deployIdentity } = await Promise.resolve().then(() => identity_exports);
1000
1000
  const location = require_workspace.s3SecretsLocation(config, workspace.state);
1001
1001
  return new S3SecretsStore({
@@ -1095,6 +1095,122 @@ function eventsBackendFor(on) {
1095
1095
  return require_types.DEFAULT_EVENTS[on];
1096
1096
  }
1097
1097
  //#endregion
1098
+ //#region src/deploy/credentials.ts
1099
+ /**
1100
+ * How a deploy gets the credentials it acts with.
1101
+ *
1102
+ * `deploy()` never prompts and never reads a terminal: it asks a
1103
+ * `CredentialProvider` and, when the provider has nothing, stops with
1104
+ * `MissingCredential` naming what it needed and how to supply it. Whether to
1105
+ * ask a person, read a vault or fail is the caller's decision — `gkm deploy`
1106
+ * prompts at a terminal and stores what was typed; a CI job sets the
1107
+ * environment; a host passes its own provider.
1108
+ */
1109
+ /**
1110
+ * How to supply each kind the CLI knows, for the error that says it is
1111
+ * missing. A target's own kinds are its to explain.
1112
+ */
1113
+ const HOW_TO_PROVIDE = {
1114
+ 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.",
1115
+ 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.",
1116
+ 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`.",
1117
+ hostinger: "Set HOSTINGER_API_TOKEN to a token from hpanel.hostinger.com/profile/api, or run `gkm login --provider hostinger`.",
1118
+ 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."
1119
+ };
1120
+ /** A deploy needed a credential, and its provider had none. */
1121
+ var MissingCredential = class extends require_errors.GkmError {
1122
+ kind;
1123
+ target;
1124
+ howToProvide;
1125
+ constructor(kind, target, howToProvide = HOW_TO_PROVIDE[kind] ?? "Pass it through the deploy's CredentialProvider.") {
1126
+ 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}` : ""}.`;
1127
+ super(`${what} ${howToProvide}`);
1128
+ this.kind = kind;
1129
+ this.target = target;
1130
+ this.howToProvide = howToProvide;
1131
+ this.name = "MissingCredential";
1132
+ }
1133
+ };
1134
+ /** Whatever was asked for, from the first provider that has it. */
1135
+ function chainCredentials(...providers) {
1136
+ return { async get(request, options) {
1137
+ for (const provider of providers) {
1138
+ const found = await provider.get(request, options);
1139
+ if (found) return found;
1140
+ }
1141
+ } };
1142
+ }
1143
+ /**
1144
+ * Credentials from the environment, then from what `gkm login` stored. What
1145
+ * `deploy()` uses when it is handed no provider.
1146
+ *
1147
+ * - Dokploy: `DOKPLOY_API_TOKEN` / `DOKPLOY_ENDPOINT`, each falling back to
1148
+ * the stored login, and the endpoint finally to `deploy.dokploy.endpoint`.
1149
+ * Each half is read on its own: a token is a secret and belongs in the
1150
+ * environment, an endpoint is configuration and belongs in the config.
1151
+ * - Registry: `DOCKER_REGISTRY_USERNAME` / `DOCKER_REGISTRY_PASSWORD`.
1152
+ * - AWS: `AWS_PROFILE` when it is set, and then nothing else; otherwise
1153
+ * `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN`. The
1154
+ * profile winning is `secretsStoreFor`'s rule: a profile is a choice of
1155
+ * account someone made, exported keys may be left over from another.
1156
+ * Read here, by name, and handed only to the command that deploys — the
1157
+ * sandbox every other step runs in passes no `AWS_*` on.
1158
+ */
1159
+ function storedCredentials(options = {}) {
1160
+ const env = options.env ?? process.env;
1161
+ return { async get(asked) {
1162
+ const request = asked;
1163
+ switch (request.kind) {
1164
+ case "dokploy": {
1165
+ const stored = (await readCredentials(options.home ? { home: options.home } : void 0)).dokploy;
1166
+ const token = env.DOKPLOY_API_TOKEN ?? stored?.token;
1167
+ const endpoint = env.DOKPLOY_ENDPOINT ?? stored?.endpoint ?? request.endpoint;
1168
+ if (!token || !endpoint) return void 0;
1169
+ return {
1170
+ endpoint: endpoint.replace(/\/$/, ""),
1171
+ token
1172
+ };
1173
+ }
1174
+ case "registry": {
1175
+ const username = env.DOCKER_REGISTRY_USERNAME;
1176
+ const password = env.DOCKER_REGISTRY_PASSWORD;
1177
+ if (!username || !password) return void 0;
1178
+ return {
1179
+ username,
1180
+ password
1181
+ };
1182
+ }
1183
+ case "godaddy": {
1184
+ const token = env.GODADDY_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).godaddy?.token;
1185
+ if (!token) return void 0;
1186
+ return { token };
1187
+ }
1188
+ case "hostinger": {
1189
+ const token = env.HOSTINGER_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).hostinger?.token;
1190
+ if (!token) return void 0;
1191
+ return { token };
1192
+ }
1193
+ case "aws": {
1194
+ const region = env.AWS_REGION ?? env.AWS_DEFAULT_REGION;
1195
+ const where = region ? { region } : {};
1196
+ if (env.AWS_PROFILE) return {
1197
+ profile: env.AWS_PROFILE,
1198
+ ...where
1199
+ };
1200
+ const accessKeyId = env.AWS_ACCESS_KEY_ID;
1201
+ const secretAccessKey = env.AWS_SECRET_ACCESS_KEY;
1202
+ if (!accessKeyId || !secretAccessKey) return void 0;
1203
+ return {
1204
+ accessKeyId,
1205
+ secretAccessKey,
1206
+ ...env.AWS_SESSION_TOKEN ? { sessionToken: env.AWS_SESSION_TOKEN } : {},
1207
+ ...where
1208
+ };
1209
+ }
1210
+ }
1211
+ } };
1212
+ }
1213
+ //#endregion
1098
1214
  //#region src/deploy/state.ts
1099
1215
  /**
1100
1216
  * A stage's deploy state.
@@ -1330,7 +1446,7 @@ async function createDnsProvider(options) {
1330
1446
  if (isDnsProvider(config.provider)) return config.provider;
1331
1447
  const provider = config.provider;
1332
1448
  if (provider === "hostinger") {
1333
- const { HostingerProvider } = await Promise.resolve().then(() => require("./HostingerProvider-BUBeLZFT.cjs"));
1449
+ const { HostingerProvider } = await Promise.resolve().then(() => require("./HostingerProvider-znlxfl_p.cjs"));
1334
1450
  return new HostingerProvider(options.hostinger);
1335
1451
  }
1336
1452
  if (provider === "route53") {
@@ -1343,7 +1459,7 @@ async function createDnsProvider(options) {
1343
1459
  });
1344
1460
  }
1345
1461
  if (provider === "godaddy") {
1346
- const { GoDaddyProvider } = await Promise.resolve().then(() => require("./GoDaddyProvider-BLCCgWNA.cjs"));
1462
+ const { GoDaddyProvider } = await Promise.resolve().then(() => require("./GoDaddyProvider-gn-UeZl_.cjs"));
1347
1463
  return new GoDaddyProvider(options.godaddy ?? {});
1348
1464
  }
1349
1465
  if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
@@ -1729,122 +1845,6 @@ async function verifyDnsRecords(appHostnames, serverIp, state) {
1729
1845
  return results;
1730
1846
  }
1731
1847
  //#endregion
1732
- //#region src/deploy/credentials.ts
1733
- /**
1734
- * How a deploy gets the credentials it acts with.
1735
- *
1736
- * `deploy()` never prompts and never reads a terminal: it asks a
1737
- * `CredentialProvider` and, when the provider has nothing, stops with
1738
- * `MissingCredential` naming what it needed and how to supply it. Whether to
1739
- * ask a person, read a vault or fail is the caller's decision — `gkm deploy`
1740
- * prompts at a terminal and stores what was typed; a CI job sets the
1741
- * environment; a host passes its own provider.
1742
- */
1743
- /**
1744
- * How to supply each kind the CLI knows, for the error that says it is
1745
- * missing. A target's own kinds are its to explain.
1746
- */
1747
- const HOW_TO_PROVIDE = {
1748
- 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.",
1749
- 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.",
1750
- 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`.",
1751
- hostinger: "Set HOSTINGER_API_TOKEN to a token from hpanel.hostinger.com/profile/api, or run `gkm login --provider hostinger`.",
1752
- 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."
1753
- };
1754
- /** A deploy needed a credential, and its provider had none. */
1755
- var MissingCredential = class extends require_errors.GkmError {
1756
- kind;
1757
- target;
1758
- howToProvide;
1759
- constructor(kind, target, howToProvide = HOW_TO_PROVIDE[kind] ?? "Pass it through the deploy's CredentialProvider.") {
1760
- 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}` : ""}.`;
1761
- super(`${what} ${howToProvide}`);
1762
- this.kind = kind;
1763
- this.target = target;
1764
- this.howToProvide = howToProvide;
1765
- this.name = "MissingCredential";
1766
- }
1767
- };
1768
- /** Whatever was asked for, from the first provider that has it. */
1769
- function chainCredentials(...providers) {
1770
- return { async get(request, options) {
1771
- for (const provider of providers) {
1772
- const found = await provider.get(request, options);
1773
- if (found) return found;
1774
- }
1775
- } };
1776
- }
1777
- /**
1778
- * Credentials from the environment, then from what `gkm login` stored. What
1779
- * `deploy()` uses when it is handed no provider.
1780
- *
1781
- * - Dokploy: `DOKPLOY_API_TOKEN` / `DOKPLOY_ENDPOINT`, each falling back to
1782
- * the stored login, and the endpoint finally to `deploy.dokploy.endpoint`.
1783
- * Each half is read on its own: a token is a secret and belongs in the
1784
- * environment, an endpoint is configuration and belongs in the config.
1785
- * - Registry: `DOCKER_REGISTRY_USERNAME` / `DOCKER_REGISTRY_PASSWORD`.
1786
- * - AWS: `AWS_PROFILE` when it is set, and then nothing else; otherwise
1787
- * `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN`. The
1788
- * profile winning is `secretsStoreFor`'s rule: a profile is a choice of
1789
- * account someone made, exported keys may be left over from another.
1790
- * Read here, by name, and handed only to the command that deploys — the
1791
- * sandbox every other step runs in passes no `AWS_*` on.
1792
- */
1793
- function storedCredentials(options = {}) {
1794
- const env = options.env ?? process.env;
1795
- return { async get(asked) {
1796
- const request = asked;
1797
- switch (request.kind) {
1798
- case "dokploy": {
1799
- const stored = (await readCredentials(options.home ? { home: options.home } : void 0)).dokploy;
1800
- const token = env.DOKPLOY_API_TOKEN ?? stored?.token;
1801
- const endpoint = env.DOKPLOY_ENDPOINT ?? stored?.endpoint ?? request.endpoint;
1802
- if (!token || !endpoint) return void 0;
1803
- return {
1804
- endpoint: endpoint.replace(/\/$/, ""),
1805
- token
1806
- };
1807
- }
1808
- case "registry": {
1809
- const username = env.DOCKER_REGISTRY_USERNAME;
1810
- const password = env.DOCKER_REGISTRY_PASSWORD;
1811
- if (!username || !password) return void 0;
1812
- return {
1813
- username,
1814
- password
1815
- };
1816
- }
1817
- case "godaddy": {
1818
- const token = env.GODADDY_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).godaddy?.token;
1819
- if (!token) return void 0;
1820
- return { token };
1821
- }
1822
- case "hostinger": {
1823
- const token = env.HOSTINGER_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).hostinger?.token;
1824
- if (!token) return void 0;
1825
- return { token };
1826
- }
1827
- case "aws": {
1828
- const region = env.AWS_REGION ?? env.AWS_DEFAULT_REGION;
1829
- const where = region ? { region } : {};
1830
- if (env.AWS_PROFILE) return {
1831
- profile: env.AWS_PROFILE,
1832
- ...where
1833
- };
1834
- const accessKeyId = env.AWS_ACCESS_KEY_ID;
1835
- const secretAccessKey = env.AWS_SECRET_ACCESS_KEY;
1836
- if (!accessKeyId || !secretAccessKey) return void 0;
1837
- return {
1838
- accessKeyId,
1839
- secretAccessKey,
1840
- ...env.AWS_SESSION_TOKEN ? { sessionToken: env.AWS_SESSION_TOKEN } : {},
1841
- ...where
1842
- };
1843
- }
1844
- }
1845
- } };
1846
- }
1847
- //#endregion
1848
1848
  Object.defineProperty(exports, "CommandFailed", {
1849
1849
  enumerable: true,
1850
1850
  get: function() {
@@ -2290,4 +2290,4 @@ Object.defineProperty(exports, "withCustomSecret", {
2290
2290
  }
2291
2291
  });
2292
2292
 
2293
- //# sourceMappingURL=credentials-BAeWfaj3.cjs.map
2293
+ //# sourceMappingURL=dns-DSzsbU2g.cjs.map