@geekmidas/cli 10.0.0-alpha.183 → 10.0.0-alpha.185

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 (245) hide show
  1. package/dist/{LegacyStateStore-BFCqFyEq.cjs → LegacyStateStore-BtN83gfS.cjs} +2 -2
  2. package/dist/{LegacyStateStore-BFCqFyEq.cjs.map → LegacyStateStore-BtN83gfS.cjs.map} +1 -1
  3. package/dist/{LegacyStateStore-FOUMZXuF.mjs → LegacyStateStore-DKyEAWGI.mjs} +2 -2
  4. package/dist/{LegacyStateStore-FOUMZXuF.mjs.map → LegacyStateStore-DKyEAWGI.mjs.map} +1 -1
  5. package/dist/{LocalStateStore-B5DZh9J2.cjs → LocalStateStore-BFh6rPhX.cjs} +2 -2
  6. package/dist/{LocalStateStore-B5DZh9J2.cjs.map → LocalStateStore-BFh6rPhX.cjs.map} +1 -1
  7. package/dist/{LocalStateStore-B7qZNPNd.mjs → LocalStateStore-Dc3aGvQi.mjs} +2 -2
  8. package/dist/{LocalStateStore-B7qZNPNd.mjs.map → LocalStateStore-Dc3aGvQi.mjs.map} +1 -1
  9. package/dist/{S3StateStore-BSh1asHJ.cjs → S3StateStore-DZMpqbvD.cjs} +5 -5
  10. package/dist/{S3StateStore-BSh1asHJ.cjs.map → S3StateStore-DZMpqbvD.cjs.map} +1 -1
  11. package/dist/{S3StateStore-Dy9-O_Ix.mjs → S3StateStore-p6DyuAFZ.mjs} +4 -4
  12. package/dist/{S3StateStore-Dy9-O_Ix.mjs.map → S3StateStore-p6DyuAFZ.mjs.map} +1 -1
  13. package/dist/{SSMStateStore-DQw29x9F.mjs → SSMStateStore-BvH8XX4O.mjs} +2 -2
  14. package/dist/{SSMStateStore-DQw29x9F.mjs.map → SSMStateStore-BvH8XX4O.mjs.map} +1 -1
  15. package/dist/{SSMStateStore-Clw-dnjN.cjs → SSMStateStore-sbaLlCmj.cjs} +2 -2
  16. package/dist/{SSMStateStore-Clw-dnjN.cjs.map → SSMStateStore-sbaLlCmj.cjs.map} +1 -1
  17. package/dist/{add-BbAyKWsD.cjs → add-CdVGxiKW.cjs} +13 -14
  18. package/dist/{add-BbAyKWsD.cjs.map → add-CdVGxiKW.cjs.map} +1 -1
  19. package/dist/{add-BewI_NWg.mjs → add-dOvgsAU6.mjs} +4 -5
  20. package/dist/{add-BewI_NWg.mjs.map → add-dOvgsAU6.mjs.map} +1 -1
  21. package/dist/backups/runner.cjs +501 -13
  22. package/dist/backups/runner.cjs.map +1 -1
  23. package/dist/backups/runner.d.cts +87 -2
  24. package/dist/backups/runner.d.cts.map +1 -1
  25. package/dist/backups/runner.d.mts +87 -2
  26. package/dist/backups/runner.d.mts.map +1 -1
  27. package/dist/backups/runner.mjs +493 -15
  28. package/dist/backups/runner.mjs.map +1 -1
  29. package/dist/{bundler-CKKMaAnQ.cjs → bundler-B5ioF-1Q.cjs} +9 -9
  30. package/dist/{bundler-CKKMaAnQ.cjs.map → bundler-B5ioF-1Q.cjs.map} +1 -1
  31. package/dist/{bundler-FUhPSv3Y.mjs → bundler-Cvx6Bt3e.mjs} +6 -6
  32. package/dist/{bundler-FUhPSv3Y.mjs.map → bundler-Cvx6Bt3e.mjs.map} +1 -1
  33. package/dist/{cli-F4EvxZgK.mjs → cli-BjapgcXG.mjs} +4 -4
  34. package/dist/{cli-F4EvxZgK.mjs.map → cli-BjapgcXG.mjs.map} +1 -1
  35. package/dist/{cli-DBdR2Hqf.cjs → cli-PLhqvPOC.cjs} +6 -6
  36. package/dist/{cli-DBdR2Hqf.cjs.map → cli-PLhqvPOC.cjs.map} +1 -1
  37. package/dist/{clientTelemetry-BAwj6MOf.d.cts → clientTelemetry-Bzc4KXz5.d.mts} +2 -2
  38. package/dist/clientTelemetry-Bzc4KXz5.d.mts.map +1 -0
  39. package/dist/{clientTelemetry-CvamPJj_.d.mts → clientTelemetry-N8NAguGI.d.cts} +2 -2
  40. package/dist/clientTelemetry-N8NAguGI.d.cts.map +1 -0
  41. package/dist/{compose-BWqyiF3p.cjs → compose-BEVBxf4w.cjs} +87 -948
  42. package/dist/compose-BEVBxf4w.cjs.map +1 -0
  43. package/dist/{compose-FHcdMtju.mjs → compose-Dx_nSZYU.mjs} +23 -842
  44. package/dist/compose-Dx_nSZYU.mjs.map +1 -0
  45. package/dist/{config-C3U5HulX.d.cts → config-CTrfNKYd.d.mts} +3 -3
  46. package/dist/{config-BODxZemw.d.mts.map → config-CTrfNKYd.d.mts.map} +1 -1
  47. package/dist/{config-BODxZemw.d.mts → config-D9g_nYIu.d.cts} +3 -3
  48. package/dist/{config-C3U5HulX.d.cts.map → config-D9g_nYIu.d.cts.map} +1 -1
  49. package/dist/config.cjs +1 -1
  50. package/dist/config.d.cts +3 -3
  51. package/dist/config.d.mts +3 -3
  52. package/dist/config.mjs +1 -1
  53. package/dist/{compose-Dx1qWkqA.mjs → credentials-DW5MvS4A.mjs} +1148 -1261
  54. package/dist/credentials-DW5MvS4A.mjs.map +1 -0
  55. package/dist/{compose-uWAls-tD.cjs → credentials-Eyx2tM7B.cjs} +1175 -1288
  56. package/dist/credentials-Eyx2tM7B.cjs.map +1 -0
  57. package/dist/{dns-zWyF3BB0.cjs → credentials-n2abUWwJ.cjs} +6 -847
  58. package/dist/credentials-n2abUWwJ.cjs.map +1 -0
  59. package/dist/{dns-w28G3uDJ.mjs → credentials-ztezRtR4.mjs} +5 -708
  60. package/dist/credentials-ztezRtR4.mjs.map +1 -0
  61. package/dist/{dbTunnel-dzS96iTb.cjs → dbTunnel-DVohSZJQ.cjs} +8 -9
  62. package/dist/{dbTunnel-dzS96iTb.cjs.map → dbTunnel-DVohSZJQ.cjs.map} +1 -1
  63. package/dist/{dbTunnel-DVgW5GGr.mjs → dbTunnel-bV1CPWUv.mjs} +5 -6
  64. package/dist/{dbTunnel-DVgW5GGr.mjs.map → dbTunnel-bV1CPWUv.mjs.map} +1 -1
  65. package/dist/deploy/public.cjs +25 -26
  66. package/dist/deploy/public.cjs.map +1 -1
  67. package/dist/deploy/public.d.cts +5 -5
  68. package/dist/deploy/public.d.mts +5 -5
  69. package/dist/deploy/public.mjs +10 -11
  70. package/dist/deploy/public.mjs.map +1 -1
  71. package/dist/{deploy-B1n2hPbI.cjs → deploy-CDUWcl58.cjs} +72 -62
  72. package/dist/deploy-CDUWcl58.cjs.map +1 -0
  73. package/dist/{deploy-SsifvmBB.mjs → deploy-Cpz5sKbh.mjs} +25 -15
  74. package/dist/deploy-Cpz5sKbh.mjs.map +1 -0
  75. package/dist/{destroy-CHigTrDO.mjs → destroy-DRlcWJwm.mjs} +9 -9
  76. package/dist/{destroy-CHigTrDO.mjs.map → destroy-DRlcWJwm.mjs.map} +1 -1
  77. package/dist/{destroy-Bn6d47rP.cjs → destroy-DzeV0EdY.cjs} +21 -21
  78. package/dist/{destroy-Bn6d47rP.cjs.map → destroy-DzeV0EdY.cjs.map} +1 -1
  79. package/dist/{dokploy-CnnrFOBH.cjs → dokploy-BTNfj3Zt.cjs} +2 -2
  80. package/dist/{dokploy-CnnrFOBH.cjs.map → dokploy-BTNfj3Zt.cjs.map} +1 -1
  81. package/dist/{dokploy-BzfI7ZE0.mjs → dokploy-BveqiW2h.mjs} +2 -2
  82. package/dist/{dokploy-BzfI7ZE0.mjs.map → dokploy-BveqiW2h.mjs.map} +1 -1
  83. package/dist/{eas-CZ3ZuWTs.mjs → eas-BmYTfjY6.mjs} +3 -3
  84. package/dist/{eas-CZ3ZuWTs.mjs.map → eas-BmYTfjY6.mjs.map} +1 -1
  85. package/dist/{eas-BTOGceIO.cjs → eas-Dt_vRzb4.cjs} +3 -3
  86. package/dist/{eas-BTOGceIO.cjs.map → eas-Dt_vRzb4.cjs.map} +1 -1
  87. package/dist/{encryption-BHGCfu6X.cjs → encryption-BE2wxfyH.cjs} +6 -6
  88. package/dist/{encryption-BHGCfu6X.cjs.map → encryption-BE2wxfyH.cjs.map} +1 -1
  89. package/dist/{encryption-CocJ18w4.mjs → encryption-DqoQltP8.mjs} +3 -3
  90. package/dist/{encryption-CocJ18w4.mjs.map → encryption-DqoQltP8.mjs.map} +1 -1
  91. package/dist/{engine-B0AwceAI.mjs → engine-B72vyrO8.mjs} +7 -9
  92. package/dist/{engine-B0AwceAI.mjs.map → engine-B72vyrO8.mjs.map} +1 -1
  93. package/dist/{engine-3460tLKl.cjs → engine-BevpkNZe.cjs} +100 -102
  94. package/dist/{engine-3460tLKl.cjs.map → engine-BevpkNZe.cjs.map} +1 -1
  95. package/dist/{github-DMQSq0Jm.cjs → github-DoHdtsDX.cjs} +18 -18
  96. package/dist/{github-DMQSq0Jm.cjs.map → github-DoHdtsDX.cjs.map} +1 -1
  97. package/dist/{github-BqYhgU8Y.mjs → github-hxvid6J3.mjs} +7 -7
  98. package/dist/{github-BqYhgU8Y.mjs.map → github-hxvid6J3.mjs.map} +1 -1
  99. package/dist/{googlePlay-DTQ_epbl.cjs → googlePlay-CYney-Of.cjs} +5 -5
  100. package/dist/{googlePlay-DTQ_epbl.cjs.map → googlePlay-CYney-Of.cjs.map} +1 -1
  101. package/dist/{googlePlay-y4fWdG2Z.mjs → googlePlay-DsvZTWgP.mjs} +4 -4
  102. package/dist/{googlePlay-y4fWdG2Z.mjs.map → googlePlay-DsvZTWgP.mjs.map} +1 -1
  103. package/dist/{iam-BzFyFf7T.mjs → iam-DloEBLXZ.mjs} +2 -2
  104. package/dist/{iam-BzFyFf7T.mjs.map → iam-DloEBLXZ.mjs.map} +1 -1
  105. package/dist/{iam-WIoKnLBp.cjs → iam-SxPKYCI_.cjs} +2 -2
  106. package/dist/{iam-WIoKnLBp.cjs.map → iam-SxPKYCI_.cjs.map} +1 -1
  107. package/dist/{index-zPzigXh-.d.cts → index-BThTZV8T.d.mts} +2 -2
  108. package/dist/{index-BKgOlfK2.d.mts.map → index-BThTZV8T.d.mts.map} +1 -1
  109. package/dist/{index-BKgOlfK2.d.mts → index-Cgd-ouyI.d.cts} +2 -2
  110. package/dist/{index-zPzigXh-.d.cts.map → index-Cgd-ouyI.d.cts.map} +1 -1
  111. package/dist/index.cjs +590 -246
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.mjs +443 -99
  114. package/dist/index.mjs.map +1 -1
  115. package/dist/{local-CZbNAWuZ.cjs → local-BuR4fIW6.cjs} +3 -3
  116. package/dist/{local-CZbNAWuZ.cjs.map → local-BuR4fIW6.cjs.map} +1 -1
  117. package/dist/{local-DJuonm2r.mjs → local-Cmq75U_o.mjs} +2 -2
  118. package/dist/{local-DJuonm2r.mjs.map → local-Cmq75U_o.mjs.map} +1 -1
  119. package/dist/{migrate-DU4G7xbh.mjs → migrate-Bf-EG8Fj.mjs} +5 -5
  120. package/dist/{migrate-DU4G7xbh.mjs.map → migrate-Bf-EG8Fj.mjs.map} +1 -1
  121. package/dist/{migrate-CJNgQxYs.cjs → migrate-CDMdrniJ.cjs} +13 -13
  122. package/dist/{migrate-CJNgQxYs.cjs.map → migrate-CDMdrniJ.cjs.map} +1 -1
  123. package/dist/{migrate-DXLhzkls.cjs → migrate-CuTQha4s.cjs} +6 -6
  124. package/dist/{migrate-DXLhzkls.cjs.map → migrate-CuTQha4s.cjs.map} +1 -1
  125. package/dist/{migrate-D79KnjFu.mjs → migrate-DYJffHOm.mjs} +3 -3
  126. package/dist/{migrate-D79KnjFu.mjs.map → migrate-DYJffHOm.mjs.map} +1 -1
  127. package/dist/openapi.cjs +1 -1
  128. package/dist/openapi.d.cts +2 -2
  129. package/dist/openapi.d.mts +2 -2
  130. package/dist/openapi.mjs +1 -1
  131. package/dist/{projectBucket-rVF15Mu-.mjs → projectBucket-B5YkuSVr.mjs} +2 -2
  132. package/dist/{projectBucket-rVF15Mu-.mjs.map → projectBucket-B5YkuSVr.mjs.map} +1 -1
  133. package/dist/{projectBucket-BoH-BJPI.cjs → projectBucket-NcgqleyH.cjs} +2 -2
  134. package/dist/{projectBucket-BoH-BJPI.cjs.map → projectBucket-NcgqleyH.cjs.map} +1 -1
  135. package/dist/{publish-DBDdm5Dz.cjs → publish--EQ4Tw3F.cjs} +2 -2
  136. package/dist/{publish-DBDdm5Dz.cjs.map → publish--EQ4Tw3F.cjs.map} +1 -1
  137. package/dist/{publish-EaWW1vhe.mjs → publish-YL8WZHSo.mjs} +2 -2
  138. package/dist/{publish-EaWW1vhe.mjs.map → publish-YL8WZHSo.mjs.map} +1 -1
  139. package/dist/{ready--_hMxbUX.cjs → ready-DCvnFZnJ.cjs} +2 -2
  140. package/dist/{ready--_hMxbUX.cjs.map → ready-DCvnFZnJ.cjs.map} +1 -1
  141. package/dist/{ready-CjIqXFXe.mjs → ready-sSPuiZ7N.mjs} +2 -2
  142. package/dist/{ready-CjIqXFXe.mjs.map → ready-sSPuiZ7N.mjs.map} +1 -1
  143. package/dist/reconcile/public.d.cts +1 -1
  144. package/dist/reconcile/public.d.mts +1 -1
  145. package/dist/{resolve-De0Dw9wI.cjs → resolve-Ced8-gj4.cjs} +4 -4
  146. package/dist/{resolve-De0Dw9wI.cjs.map → resolve-Ced8-gj4.cjs.map} +1 -1
  147. package/dist/{resolve-DLUOV7Tt.mjs → resolve-DcG10_JV.mjs} +4 -4
  148. package/dist/{resolve-DLUOV7Tt.mjs.map → resolve-DcG10_JV.mjs.map} +1 -1
  149. package/dist/{rollback-bDh-dBGa.mjs → rollback-BxI2p53H.mjs} +7 -6
  150. package/dist/{rollback-bDh-dBGa.mjs.map → rollback-BxI2p53H.mjs.map} +1 -1
  151. package/dist/{rollback-61Be6ASD.cjs → rollback-C6bCANv7.cjs} +10 -9
  152. package/dist/{rollback-61Be6ASD.cjs.map → rollback-C6bCANv7.cjs.map} +1 -1
  153. package/dist/{runtime-CaejlcZt.d.mts → runtime-BtoiRP5G.d.cts} +2 -2
  154. package/dist/{runtime-CaejlcZt.d.mts.map → runtime-BtoiRP5G.d.cts.map} +1 -1
  155. package/dist/{runtime-D3jD4Dvn.d.cts → runtime-Ct41f0tN.d.mts} +2 -2
  156. package/dist/{runtime-D3jD4Dvn.d.cts.map → runtime-Ct41f0tN.d.mts.map} +1 -1
  157. package/dist/{s3-CRLJjozN.mjs → s3-BAI0ELtE.mjs} +3 -3
  158. package/dist/{s3-CRLJjozN.mjs.map → s3-BAI0ELtE.mjs.map} +1 -1
  159. package/dist/{s3-Bw-Cpb0k.cjs → s3-DucPHZAn.cjs} +3 -3
  160. package/dist/{s3-Bw-Cpb0k.cjs.map → s3-DucPHZAn.cjs.map} +1 -1
  161. package/dist/{serverSetup-DkKFG--v.cjs → serverSetup-D3-FE7Dj.cjs} +9 -8
  162. package/dist/{serverSetup-DkKFG--v.cjs.map → serverSetup-D3-FE7Dj.cjs.map} +1 -1
  163. package/dist/{serverSetup-9BMKflju.mjs → serverSetup-DS9tW50_.mjs} +7 -6
  164. package/dist/{serverSetup-9BMKflju.mjs.map → serverSetup-DS9tW50_.mjs.map} +1 -1
  165. package/dist/{sniffer-PDjJ-6ki.mjs → sniffer-CX8sI8Cu.mjs} +7 -7
  166. package/dist/{sniffer-PDjJ-6ki.mjs.map → sniffer-CX8sI8Cu.mjs.map} +1 -1
  167. package/dist/{sniffer-Dss2_3q7.cjs → sniffer-XlvJLrhZ.cjs} +7 -7
  168. package/dist/{sniffer-Dss2_3q7.cjs.map → sniffer-XlvJLrhZ.cjs.map} +1 -1
  169. package/dist/{snsSubscriptions-BA4UEQDb.cjs → snsSubscriptions-CJAOhWq9.cjs} +11 -12
  170. package/dist/{snsSubscriptions-BA4UEQDb.cjs.map → snsSubscriptions-CJAOhWq9.cjs.map} +1 -1
  171. package/dist/{snsSubscriptions-BwwRq60H.mjs → snsSubscriptions-DDrra9rN.mjs} +3 -4
  172. package/dist/{snsSubscriptions-BwwRq60H.mjs.map → snsSubscriptions-DDrra9rN.mjs.map} +1 -1
  173. package/dist/{sst-xWQPl_tB.mjs → sst-CdHflajE.mjs} +6 -6
  174. package/dist/{sst-xWQPl_tB.mjs.map → sst-CdHflajE.mjs.map} +1 -1
  175. package/dist/{sst-Dy-LThkf.cjs → sst-CsEjVFtz.cjs} +8 -8
  176. package/dist/{sst-Dy-LThkf.cjs.map → sst-CsEjVFtz.cjs.map} +1 -1
  177. package/dist/stack-BYhtz-bE.cjs +11449 -0
  178. package/dist/stack-BYhtz-bE.cjs.map +1 -0
  179. package/dist/stack-CLHY-_2m.mjs +10474 -0
  180. package/dist/stack-CLHY-_2m.mjs.map +1 -0
  181. package/dist/{stage-BsdW3fQh.cjs → stage-Bc_BtQeG.cjs} +11 -12
  182. package/dist/stage-Bc_BtQeG.cjs.map +1 -0
  183. package/dist/{stage-ZBO62mNs.mjs → stage-C7aYyDMr.mjs} +5 -6
  184. package/dist/stage-C7aYyDMr.mjs.map +1 -0
  185. package/dist/{stages-DjFKQv08.mjs → stages-DFvE7iEO.mjs} +2 -2
  186. package/dist/{stages-DjFKQv08.mjs.map → stages-DFvE7iEO.mjs.map} +1 -1
  187. package/dist/{stages-BeSQQQ4z.cjs → stages-Dk6Lv7DY.cjs} +2 -2
  188. package/dist/{stages-BeSQQQ4z.cjs.map → stages-Dk6Lv7DY.cjs.map} +1 -1
  189. package/dist/target/public.cjs +1 -1
  190. package/dist/target/public.d.cts +2 -2
  191. package/dist/target/public.d.mts +2 -2
  192. package/dist/target/public.mjs +1 -1
  193. package/dist/{terminal-DUQ0yaZQ.mjs → terminal-BZzK69T9.mjs} +2 -2
  194. package/dist/{terminal-DUQ0yaZQ.mjs.map → terminal-BZzK69T9.mjs.map} +1 -1
  195. package/dist/{terminal-DhPb_CKf.cjs → terminal-DXUXlqrO.cjs} +5 -5
  196. package/dist/{terminal-DhPb_CKf.cjs.map → terminal-DXUXlqrO.cjs.map} +1 -1
  197. package/dist/{types-CLxsw-QY.d.cts → types-BVDaaLas.d.cts} +26 -7
  198. package/dist/{types-CLxsw-QY.d.cts.map → types-BVDaaLas.d.cts.map} +1 -1
  199. package/dist/{types-wLlwkSib.d.mts → types-CJTKWLkK.d.mts} +26 -7
  200. package/dist/{types-wLlwkSib.d.mts.map → types-CJTKWLkK.d.mts.map} +1 -1
  201. package/dist/{utils-D_fxUqvU.mjs → utils-CdKxD8Lt.mjs} +2 -2
  202. package/dist/{utils-D_fxUqvU.mjs.map → utils-CdKxD8Lt.mjs.map} +1 -1
  203. package/dist/{utils-D2Nk1Nv2.cjs → utils-DBqXbB8P.cjs} +2 -2
  204. package/dist/{utils-D2Nk1Nv2.cjs.map → utils-DBqXbB8P.cjs.map} +1 -1
  205. package/dist/vitest.cjs +1 -1
  206. package/dist/vitest.mjs +1 -1
  207. package/dist/workspace/index.cjs +1 -1
  208. package/dist/workspace/index.d.cts +2 -2
  209. package/dist/workspace/index.d.mts +2 -2
  210. package/dist/workspace/index.mjs +1 -1
  211. package/dist/{workspace-wTLnc1Ef.cjs → workspace-CTspddnJ.cjs} +62 -22
  212. package/dist/workspace-CTspddnJ.cjs.map +1 -0
  213. package/dist/{workspace-DJjhfAGf.mjs → workspace-CdiCMRap.mjs} +62 -22
  214. package/dist/workspace-CdiCMRap.mjs.map +1 -0
  215. package/package.json +16 -16
  216. package/dist/apps-CQqhCjg4.mjs +0 -4650
  217. package/dist/apps-CQqhCjg4.mjs.map +0 -1
  218. package/dist/apps-DWq98qHY.cjs +0 -5174
  219. package/dist/apps-DWq98qHY.cjs.map +0 -1
  220. package/dist/clientTelemetry-BAwj6MOf.d.cts.map +0 -1
  221. package/dist/clientTelemetry-CvamPJj_.d.mts.map +0 -1
  222. package/dist/compose-BWqyiF3p.cjs.map +0 -1
  223. package/dist/compose-Dx1qWkqA.mjs.map +0 -1
  224. package/dist/compose-FHcdMtju.mjs.map +0 -1
  225. package/dist/compose-uWAls-tD.cjs.map +0 -1
  226. package/dist/deploy-B1n2hPbI.cjs.map +0 -1
  227. package/dist/deploy-SsifvmBB.mjs.map +0 -1
  228. package/dist/dns-w28G3uDJ.mjs.map +0 -1
  229. package/dist/dns-zWyF3BB0.cjs.map +0 -1
  230. package/dist/docker-DDiEfZox.mjs +0 -1649
  231. package/dist/docker-DDiEfZox.mjs.map +0 -1
  232. package/dist/docker-Dox4VZcA.cjs +0 -1798
  233. package/dist/docker-Dox4VZcA.cjs.map +0 -1
  234. package/dist/notes-CF_NOgxM.cjs +0 -510
  235. package/dist/notes-CF_NOgxM.cjs.map +0 -1
  236. package/dist/notes-Dwc9WLvg.mjs +0 -409
  237. package/dist/notes-Dwc9WLvg.mjs.map +0 -1
  238. package/dist/stack-BQKXw0dX.cjs +0 -1887
  239. package/dist/stack-BQKXw0dX.cjs.map +0 -1
  240. package/dist/stack-pftB9Sqp.mjs +0 -1777
  241. package/dist/stack-pftB9Sqp.mjs.map +0 -1
  242. package/dist/stage-BsdW3fQh.cjs.map +0 -1
  243. package/dist/stage-ZBO62mNs.mjs.map +0 -1
  244. package/dist/workspace-DJjhfAGf.mjs.map +0 -1
  245. package/dist/workspace-wTLnc1Ef.cjs.map +0 -1
@@ -1,18 +1,14 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
2
  import { t as GkmError } from "./errors-C9uIyIDt.mjs";
3
- import { Nt as s3SecretsLocation, Rt as isReservedStageKey, jt as UnknownSecretsStoreProvider } from "./workspace-DJjhfAGf.mjs";
3
+ import { Nt as s3SecretsLocation, Rt as isReservedStageKey, jt as UnknownSecretsStoreProvider } from "./workspace-CdiCMRap.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-Dfmn6HQ7.mjs";
6
- import { c as runtimeOf } from "./resolve-DLUOV7Tt.mjs";
5
+ import { c as runtimeOf } from "./resolve-DcG10_JV.mjs";
7
6
  import { basename, dirname, join, resolve, sep } from "node:path";
8
7
  import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync } from "node:fs";
9
8
  import { chmod, link, mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
10
9
  import { homedir } from "node:os";
11
- import { spawn } from "node:child_process";
12
10
  import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
13
11
  import { kebabCase, scopedName } from "@geekmidas/manifest";
14
- import { lookup } from "node:dns/promises";
15
- import { isDnsProvider } from "@geekmidas/edge/dns";
16
12
  //#region src/home.ts
17
13
  /**
18
14
  * Where the CLI keeps what belongs to a person rather than a project: stage
@@ -173,116 +169,6 @@ async function removeGoDaddyCredentials(options) {
173
169
  return true;
174
170
  }
175
171
  //#endregion
176
- //#region src/run.ts
177
- /**
178
- * Start a program with an argument array, never a shell string.
179
- *
180
- * `gkm build`, `gkm docker` and `gkm deploy` pass values that come from the
181
- * workspace — image refs, tags, build args, package names — to `docker` and
182
- * `turbo`. Joined into a string and handed to a shell, a package named
183
- * `x;curl …|sh` or a tag holding `$(…)` became part of the command line, which
184
- * matters most where the CLI builds a repository it didn't write: a CI job for a
185
- * fork, a shared build runner. Here every value reaches the program as one
186
- * `argv` element, whatever it contains.
187
- */
188
- /** Long enough for a cold image build; short enough that a hung one ends. */
189
- const DEFAULT_TIMEOUT_MS = 18e5;
190
- /** How long a timed-out child has to exit on SIGTERM before it is killed. */
191
- const KILL_GRACE_MS = 5e3;
192
- /** The command line as a person would read it — for messages, never to run. */
193
- function display(command, args) {
194
- return [command, ...args].join(" ");
195
- }
196
- /** The program ran and exited unsuccessfully; its own output said why. */
197
- var CommandFailed = class extends Error {
198
- command;
199
- args;
200
- exitCode;
201
- signal;
202
- constructor(command, args, exitCode, signal) {
203
- super(`\`${display(command, args)}\` ${exitCode === null ? `was stopped by ${signal ?? "a signal"}` : `exited with code ${exitCode}`}. Its output above says why; run it by hand to see it again.`);
204
- this.command = command;
205
- this.args = args;
206
- this.exitCode = exitCode;
207
- this.signal = signal;
208
- this.name = "CommandFailed";
209
- }
210
- };
211
- /** The program ran past its timeout and was killed. */
212
- var CommandTimedOut = class extends Error {
213
- command;
214
- args;
215
- timeoutMs;
216
- constructor(command, args, timeoutMs) {
217
- super(`\`${display(command, args)}\` was still running after ${Math.round(timeoutMs / 1e3)}s and was stopped. Check what it was waiting on — a registry, the Docker daemon, a prompt — and run it again.`);
218
- this.command = command;
219
- this.args = args;
220
- this.timeoutMs = timeoutMs;
221
- this.name = "CommandTimedOut";
222
- }
223
- };
224
- /**
225
- * Run `command` with `args`, resolving when it exits 0.
226
- *
227
- * Rejects with {@link CommandFailed} on any other exit, {@link CommandTimedOut}
228
- * once `timeoutMs` passes (after the child is gone), and with the spawn error
229
- * itself when the program cannot be started at all — `ENOENT` already names it.
230
- */
231
- async function run(command, args, options = {}) {
232
- await spawnChild(command, args, options, false);
233
- }
234
- /**
235
- * {@link run}, resolving with what the program wrote to stdout — for a value
236
- * the CLI reads back, such as the digest `docker inspect` reports. stderr still
237
- * reaches the terminal, so a failure explains itself the same way.
238
- */
239
- function runOutput(command, args, options = {}) {
240
- return spawnChild(command, args, options, true);
241
- }
242
- function spawnChild(command, args, options, capture) {
243
- const { timeoutMs = DEFAULT_TIMEOUT_MS, ...spawnOptions } = options;
244
- return new Promise((resolve, reject) => {
245
- const child = spawn(command, [...args], {
246
- stdio: "inherit",
247
- ...spawnOptions,
248
- ...capture ? { stdio: [
249
- "ignore",
250
- "pipe",
251
- "inherit"
252
- ] } : {},
253
- shell: false
254
- });
255
- let stdout = "";
256
- child.stdout?.on("data", (chunk) => {
257
- stdout += chunk.toString();
258
- });
259
- let timedOut = false;
260
- let killer;
261
- const timer = setTimeout(() => {
262
- timedOut = true;
263
- child.kill("SIGTERM");
264
- killer = setTimeout(() => child.kill("SIGKILL"), KILL_GRACE_MS);
265
- killer.unref?.();
266
- }, timeoutMs);
267
- timer.unref?.();
268
- const settle = () => {
269
- clearTimeout(timer);
270
- if (killer) clearTimeout(killer);
271
- };
272
- child.on("error", (error) => {
273
- settle();
274
- reject(spawnOptions.signal?.aborted ? spawnOptions.signal.reason : error);
275
- });
276
- child.on("close", (code, signal) => {
277
- settle();
278
- if (spawnOptions.signal?.aborted) reject(spawnOptions.signal.reason);
279
- else if (timedOut) reject(new CommandTimedOut(command, args, timeoutMs));
280
- else if (code === 0) resolve(stdout);
281
- else reject(new CommandFailed(command, args, code, signal));
282
- });
283
- });
284
- }
285
- //#endregion
286
172
  //#region src/deploy/identity.ts
287
173
  /**
288
174
  * Who a deploy is, on a target it shares with other workspaces.
@@ -1010,7 +896,7 @@ async function storeFromConfig(workspace, config, options = {}) {
1010
896
  const profile = options.profile ? { profile: options.profile } : {};
1011
897
  switch (config.provider) {
1012
898
  case "s3": {
1013
- const { S3SecretsStore } = await import("./s3-CRLJjozN.mjs");
899
+ const { S3SecretsStore } = await import("./s3-BAI0ELtE.mjs");
1014
900
  const { deployIdentity } = await Promise.resolve().then(() => identity_exports);
1015
901
  const location = s3SecretsLocation(config, workspace.state);
1016
902
  return new S3SecretsStore({
@@ -1110,175 +996,6 @@ function eventsBackendFor(on) {
1110
996
  return DEFAULT_EVENTS[on];
1111
997
  }
1112
998
  //#endregion
1113
- //#region src/deploy/state.ts
1114
- /**
1115
- * Create a new empty state for a stage
1116
- */
1117
- function createEmptyState(stage, projectId, environmentId) {
1118
- return {
1119
- provider: "dokploy",
1120
- stage,
1121
- projectId,
1122
- environmentId,
1123
- applications: {},
1124
- services: {},
1125
- lastDeployedAt: (/* @__PURE__ */ new Date()).toISOString()
1126
- };
1127
- }
1128
- /** A new compose stage's state. */
1129
- function createComposeState(stage) {
1130
- return {
1131
- provider: "compose",
1132
- stage,
1133
- lastDeployedAt: (/* @__PURE__ */ new Date()).toISOString()
1134
- };
1135
- }
1136
- /**
1137
- * `state` as the Dokploy target keeps it. A stage whose state another target
1138
- * wrote — one moved from compose to Dokploy — keeps its core (releases,
1139
- * identity) and starts with no Dokploy ids, as a first deploy would.
1140
- */
1141
- function asDokployState(state) {
1142
- if (state.provider === "dokploy") return state;
1143
- const { provider: _provider, ...core } = state;
1144
- return {
1145
- ...core,
1146
- provider: "dokploy",
1147
- projectId: "",
1148
- environmentId: "",
1149
- applications: {},
1150
- services: {}
1151
- };
1152
- }
1153
- /**
1154
- * Set application ID in state (mutates state)
1155
- */
1156
- function setApplicationId(state, appName, applicationId) {
1157
- state.applications[appName] = applicationId;
1158
- }
1159
- /** Two records naming the same image: by digest when both have one. */
1160
- function sameImage(a, b) {
1161
- return a.digest && b.digest ? a.digest === b.digest : a.ref === b.ref;
1162
- }
1163
- /** The newest release in `history` after `index` that a rollback may restore. */
1164
- function restorable(history, index, current) {
1165
- return history.slice(index + 1).find((entry) => !entry.rolledBack && !sameImage(entry, current));
1166
- }
1167
- /**
1168
- * Record that `image` went live for `appName` (mutates state): it becomes
1169
- * `current`, and what was current becomes `previous`. Releasing what already
1170
- * runs — a redeploy of the same digest — changes nothing.
1171
- */
1172
- function recordRelease(state, appName, image, by, releasedAt = /* @__PURE__ */ new Date()) {
1173
- const releases = state.releases?.[appName];
1174
- if (releases && sameImage(releases.current, image)) return;
1175
- const entry = {
1176
- ...image,
1177
- releasedAt: releasedAt.toISOString(),
1178
- releasedBy: by
1179
- };
1180
- const history = [entry, ...releases?.history ?? []].slice(0, 10);
1181
- const previous = releases?.current;
1182
- state.releases = {
1183
- ...state.releases,
1184
- [appName]: {
1185
- current: entry,
1186
- ...previous ? { previous } : {},
1187
- history
1188
- }
1189
- };
1190
- }
1191
- /**
1192
- * Record that `appName` was rolled back to `to` (mutates state): every
1193
- * release newer than it is marked rolled back, so neither this rollback nor
1194
- * a later one restores it, and `previous` moves to the release before `to`.
1195
- */
1196
- function recordRollback(state, appName, to) {
1197
- const releases = state.releases?.[appName];
1198
- if (!releases) return;
1199
- const index = releases.history.findIndex((entry) => !entry.rolledBack && sameImage(entry, to));
1200
- if (index === -1) return;
1201
- const history = releases.history.map((entry, i) => i < index ? {
1202
- ...entry,
1203
- rolledBack: true
1204
- } : entry);
1205
- const current = history[index];
1206
- const previous = restorable(history, index, current);
1207
- state.releases = {
1208
- ...state.releases,
1209
- [appName]: {
1210
- current,
1211
- ...previous ? { previous } : {},
1212
- history
1213
- }
1214
- };
1215
- }
1216
- /**
1217
- * Get a generated secret for an app
1218
- */
1219
- function getGeneratedSecret(state, appName, secretName) {
1220
- return state?.generatedSecrets?.[appName]?.[secretName];
1221
- }
1222
- /**
1223
- * Set a generated secret for an app (mutates state)
1224
- */
1225
- function setGeneratedSecret(state, appName, secretName, value) {
1226
- if (!state.generatedSecrets) state.generatedSecrets = {};
1227
- if (!state.generatedSecrets[appName]) state.generatedSecrets[appName] = {};
1228
- state.generatedSecrets[appName][secretName] = value;
1229
- }
1230
- /**
1231
- * Set DNS verification record for a hostname (mutates state)
1232
- */
1233
- function setDnsVerification(state, hostname, serverIp) {
1234
- if (!state.dnsVerified) state.dnsVerified = {};
1235
- state.dnsVerified[hostname] = {
1236
- serverIp,
1237
- verifiedAt: (/* @__PURE__ */ new Date()).toISOString()
1238
- };
1239
- }
1240
- /**
1241
- * Check if a hostname is already verified with the given IP
1242
- */
1243
- function isDnsVerified(state, hostname, serverIp) {
1244
- return (state?.dnsVerified?.[hostname])?.serverIp === serverIp;
1245
- }
1246
- /**
1247
- * Get the key for a DNS record in state
1248
- */
1249
- function getDnsRecordKey(name, type) {
1250
- return `${name}:${type}`;
1251
- }
1252
- /**
1253
- * Set a created DNS record in state (mutates state)
1254
- */
1255
- function setDnsRecord(state, record) {
1256
- if (!state.dnsRecords) state.dnsRecords = {};
1257
- const key = getDnsRecordKey(record.name, record.type);
1258
- state.dnsRecords[key] = {
1259
- ...record,
1260
- createdAt: (/* @__PURE__ */ new Date()).toISOString()
1261
- };
1262
- }
1263
- /**
1264
- * Get backup state from state
1265
- */
1266
- function getBackupState(state) {
1267
- return state?.backups;
1268
- }
1269
- /**
1270
- * Set backup state (mutates state)
1271
- */
1272
- function setBackupState(state, backupState) {
1273
- state.backups = backupState;
1274
- }
1275
- /**
1276
- * Set postgres backup ID in state (mutates state)
1277
- */
1278
- function setPostgresBackupId(state, backupId) {
1279
- if (state.backups) state.backups.postgresBackupId = backupId;
1280
- }
1281
- //#endregion
1282
999
  //#region src/deploy/credentials.ts
1283
1000
  /**
1284
1001
  * How a deploy gets the credentials it acts with.
@@ -1395,426 +1112,6 @@ function storedCredentials(options = {}) {
1395
1112
  } };
1396
1113
  }
1397
1114
  //#endregion
1398
- //#region src/dns/providers.ts
1399
- /**
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.
1405
- */
1406
- /**
1407
- * Create a DNS provider based on configuration.
1408
- *
1409
- * - 'hostinger': HostingerProvider
1410
- * - 'route53': Route53Provider
1411
- * - 'godaddy': GoDaddyProvider
1412
- * - 'manual': Returns null (user handles DNS)
1413
- * - Custom: Use provided DnsProvider implementation
1414
- */
1415
- async function createDnsProvider(options) {
1416
- const { config } = options;
1417
- if (config.provider === "manual") return null;
1418
- if (isDnsProvider(config.provider)) return config.provider;
1419
- const provider = config.provider;
1420
- if (provider === "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
- });
1427
- }
1428
- if (provider === "route53") {
1429
- const { Route53Provider } = await import("@geekmidas/edge/dns/route53");
1430
- const route53Config = config;
1431
- return new Route53Provider({
1432
- region: route53Config.region,
1433
- profile: route53Config.profile,
1434
- hostedZoneId: route53Config.hostedZoneId
1435
- });
1436
- }
1437
- if (provider === "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
- });
1451
- }
1452
- if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
1453
- throw new DnsProviderUnknown(config);
1454
- }
1455
- /** A DNS provider gkm names and does not have yet. */
1456
- var DnsProviderNotImplemented = class extends Error {
1457
- provider;
1458
- constructor(provider) {
1459
- super(`The ${provider} DNS provider is not implemented yet. Use 'route53', 'godaddy', 'hostinger' or 'manual' for this domain in dns, or pass your own DnsProvider object.`);
1460
- this.provider = provider;
1461
- this.name = "DnsProviderNotImplemented";
1462
- }
1463
- };
1464
- /** A `provider:` that is none of the built-ins, nor a DnsProvider object. */
1465
- var DnsProviderUnknown = class extends GkmError {
1466
- config;
1467
- constructor(config) {
1468
- super(`Unknown DNS provider: ${JSON.stringify(config)}. dns takes 'route53', 'godaddy', 'hostinger', 'manual', or an object implementing DnsProvider.`);
1469
- this.config = config;
1470
- this.name = "DnsProviderUnknown";
1471
- }
1472
- };
1473
- //#endregion
1474
- //#region src/dns/index.ts
1475
- /**
1476
- * DNS orchestration for deployments
1477
- *
1478
- * Handles automatic DNS record creation for deployed applications.
1479
- */
1480
- const logger = output;
1481
- /**
1482
- * Check if DNS config is legacy format (single domain with `domain` property)
1483
- */
1484
- function isLegacyDnsConfig(config) {
1485
- return typeof config === "object" && config !== null && "provider" in config && "domain" in config;
1486
- }
1487
- /**
1488
- * Normalize DNS config to new multi-domain format
1489
- */
1490
- function normalizeDnsConfig(config) {
1491
- if (isLegacyDnsConfig(config)) {
1492
- const { domain, ...providerConfig } = config;
1493
- return { [domain]: providerConfig };
1494
- }
1495
- return config;
1496
- }
1497
- /**
1498
- * Find the root domain for a hostname from available DNS configs
1499
- *
1500
- * @example
1501
- * findRootDomain('api.geekmidas.com', { 'geekmidas.com': {...}, 'geekmidas.dev': {...} })
1502
- * // Returns 'geekmidas.com'
1503
- */
1504
- function findRootDomain(hostname, dnsConfig) {
1505
- const domains = Object.keys(dnsConfig).sort((a, b) => b.length - a.length);
1506
- for (const domain of domains) if (hostname === domain || hostname.endsWith(`.${domain}`)) return domain;
1507
- return null;
1508
- }
1509
- /**
1510
- * Group hostnames by their root domain
1511
- */
1512
- function groupHostnamesByDomain(appHostnames, dnsConfig) {
1513
- const grouped = /* @__PURE__ */ new Map();
1514
- for (const [appName, hostname] of appHostnames) {
1515
- const rootDomain = findRootDomain(hostname, dnsConfig);
1516
- if (!rootDomain) {
1517
- logger.log(` ⚠ No DNS config found for hostname: ${hostname}`);
1518
- continue;
1519
- }
1520
- if (!grouped.has(rootDomain)) grouped.set(rootDomain, /* @__PURE__ */ new Map());
1521
- grouped.get(rootDomain).set(appName, hostname);
1522
- }
1523
- return grouped;
1524
- }
1525
- /**
1526
- * Resolve IP address from a hostname
1527
- */
1528
- async function resolveHostnameToIp(hostname) {
1529
- try {
1530
- return (await lookup(hostname, { family: 4 })).address;
1531
- } catch (error) {
1532
- throw new Error(`Failed to resolve IP for ${hostname}: ${error instanceof Error ? error.message : "Unknown error"}`);
1533
- }
1534
- }
1535
- /**
1536
- * Extract subdomain from full hostname relative to root domain
1537
- *
1538
- * @example
1539
- * extractSubdomain('api.joemoer.traflabs.io', 'traflabs.io') => 'api.joemoer'
1540
- * extractSubdomain('joemoer.traflabs.io', 'traflabs.io') => 'joemoer'
1541
- */
1542
- function extractSubdomain(hostname, rootDomain) {
1543
- if (!hostname.endsWith(rootDomain)) throw new Error(`Hostname ${hostname} is not under root domain ${rootDomain}`);
1544
- return hostname.slice(0, -(rootDomain.length + 1)) || "@";
1545
- }
1546
- /**
1547
- * Generate required DNS records for a deployment
1548
- */
1549
- function generateRequiredRecords(appHostnames, rootDomain, serverIp) {
1550
- const records = [];
1551
- for (const [appName, hostname] of appHostnames) {
1552
- const subdomain = extractSubdomain(hostname, rootDomain);
1553
- records.push({
1554
- hostname,
1555
- subdomain,
1556
- type: "A",
1557
- value: serverIp,
1558
- appName
1559
- });
1560
- }
1561
- return records;
1562
- }
1563
- /**
1564
- * Print DNS records table
1565
- */
1566
- function printDnsRecordsTable(records, rootDomain) {
1567
- logger.log(`\n 📋 DNS Records for ${rootDomain}:`);
1568
- logger.log(" ┌─────────────────────────────────────┬──────┬─────────────────┬────────┐");
1569
- logger.log(" │ Subdomain │ Type │ Value │ Status │");
1570
- logger.log(" ├─────────────────────────────────────┼──────┼─────────────────┼────────┤");
1571
- for (const record of records) {
1572
- const subdomain = record.subdomain.padEnd(35);
1573
- const type = record.type.padEnd(4);
1574
- const value = record.value.padEnd(15);
1575
- let status;
1576
- if (record.error) status = "✗";
1577
- else if (record.created) status = "✓ new";
1578
- else if (record.existed) status = "✓";
1579
- else status = "?";
1580
- logger.log(` │ ${subdomain} │ ${type} │ ${value} │ ${status.padEnd(6)} │`);
1581
- }
1582
- logger.log(" └─────────────────────────────────────┴──────┴─────────────────┴────────┘");
1583
- }
1584
- /**
1585
- * Print DNS records in a simple format for manual setup
1586
- */
1587
- function printDnsRecordsSimple(records, rootDomain) {
1588
- logger.log("\n 📋 Required DNS Records:");
1589
- logger.log(` Add these A records to your DNS provider (${rootDomain}):\n`);
1590
- for (const record of records) logger.log(` ${record.subdomain} → ${record.value} (A record)`);
1591
- logger.log("");
1592
- }
1593
- /**
1594
- * Create DNS records for a single domain using its configured provider
1595
- */
1596
- async function createDnsRecordsForDomain(records, rootDomain, providerConfig) {
1597
- const ttl = "ttl" in providerConfig && providerConfig.ttl ? providerConfig.ttl : 300;
1598
- let provider;
1599
- try {
1600
- provider = await createDnsProvider({ config: providerConfig });
1601
- } catch (error) {
1602
- const message = error instanceof Error ? error.message : "Unknown error";
1603
- logger.log(` ⚠ Failed to create DNS provider for ${rootDomain}: ${message}`);
1604
- return records.map((r) => ({
1605
- ...r,
1606
- error: message
1607
- }));
1608
- }
1609
- if (!provider) return records.map((r) => ({
1610
- ...r,
1611
- created: false,
1612
- existed: false
1613
- }));
1614
- const results = [];
1615
- const upsertRecords = records.map((r) => ({
1616
- name: r.subdomain,
1617
- type: r.type,
1618
- ttl,
1619
- value: r.value
1620
- }));
1621
- try {
1622
- const upsertResults = await provider.upsertRecords(rootDomain, upsertRecords);
1623
- for (const [i, record] of records.entries()) {
1624
- const result = upsertResults[i];
1625
- if (!result) {
1626
- results.push({
1627
- hostname: record.hostname,
1628
- subdomain: record.subdomain,
1629
- type: record.type,
1630
- value: record.value,
1631
- appName: record.appName,
1632
- error: "No result returned from provider"
1633
- });
1634
- continue;
1635
- }
1636
- if (result.unchanged) results.push({
1637
- hostname: record.hostname,
1638
- subdomain: record.subdomain,
1639
- type: record.type,
1640
- value: record.value,
1641
- appName: record.appName,
1642
- existed: true,
1643
- created: false
1644
- });
1645
- else results.push({
1646
- hostname: record.hostname,
1647
- subdomain: record.subdomain,
1648
- type: record.type,
1649
- value: record.value,
1650
- appName: record.appName,
1651
- created: result.created,
1652
- existed: !result.created
1653
- });
1654
- }
1655
- } catch (error) {
1656
- const message = error instanceof Error ? error.message : "Unknown error";
1657
- logger.log(` ⚠ Failed to create DNS records for ${rootDomain}: ${message}`);
1658
- return records.map((r) => ({
1659
- hostname: r.hostname,
1660
- subdomain: r.subdomain,
1661
- type: r.type,
1662
- value: r.value,
1663
- appName: r.appName,
1664
- error: message
1665
- }));
1666
- }
1667
- return results;
1668
- }
1669
- /**
1670
- * Main DNS orchestration function for deployments
1671
- *
1672
- * Supports both legacy single-domain format and new multi-domain format:
1673
- * - Legacy: { provider: 'hostinger', domain: 'example.com' }
1674
- * - Multi: { 'example.com': { provider: 'hostinger' }, 'example.dev': { provider: 'route53' } }
1675
- *
1676
- * @param appHostnames - Map of app names to hostnames
1677
- * @param dnsConfig - DNS configuration (legacy or multi-domain)
1678
- * @param dokployEndpoint - Dokploy server endpoint to resolve IP from
1679
- * @param state - Optional state to save created records for later deletion
1680
- */
1681
- async function orchestrateDns(appHostnames, dnsConfig, dokployEndpoint, state) {
1682
- if (!dnsConfig) return null;
1683
- const normalizedConfig = normalizeDnsConfig(dnsConfig);
1684
- logger.log("\n🌐 Setting up DNS records...");
1685
- let serverIp;
1686
- try {
1687
- const endpointUrl = new URL(dokployEndpoint);
1688
- serverIp = await resolveHostnameToIp(endpointUrl.hostname);
1689
- logger.log(` Server IP: ${serverIp} (from ${endpointUrl.hostname})`);
1690
- } catch (error) {
1691
- const message = error instanceof Error ? error.message : "Unknown error";
1692
- logger.log(` ⚠ Failed to resolve server IP: ${message}`);
1693
- return null;
1694
- }
1695
- const groupedHostnames = groupHostnamesByDomain(appHostnames, normalizedConfig);
1696
- if (groupedHostnames.size === 0) {
1697
- logger.log(" No DNS records needed (no hostnames match configured domains)");
1698
- return {
1699
- records: [],
1700
- success: true,
1701
- serverIp
1702
- };
1703
- }
1704
- const allRecords = [];
1705
- let hasFailures = false;
1706
- for (const [rootDomain, domainHostnames] of groupedHostnames) {
1707
- const providerConfig = normalizedConfig[rootDomain];
1708
- if (!providerConfig) {
1709
- logger.log(` ⚠ No provider config for ${rootDomain}`);
1710
- continue;
1711
- }
1712
- const providerName = typeof providerConfig.provider === "string" ? providerConfig.provider : "custom";
1713
- const requiredRecords = generateRequiredRecords(domainHostnames, rootDomain, serverIp);
1714
- if (requiredRecords.length === 0) continue;
1715
- logger.log(` Creating DNS records for ${rootDomain} (${providerName})...`);
1716
- const domainRecords = await createDnsRecordsForDomain(requiredRecords, rootDomain, providerConfig);
1717
- allRecords.push(...domainRecords);
1718
- const created = domainRecords.filter((r) => r.created).length;
1719
- const existed = domainRecords.filter((r) => r.existed).length;
1720
- const failed = domainRecords.filter((r) => r.error).length;
1721
- if (created > 0) logger.log(` ✓ Created ${created} DNS record(s) for ${rootDomain}`);
1722
- if (existed > 0) logger.log(` ✓ ${existed} record(s) already exist for ${rootDomain}`);
1723
- if (failed > 0) {
1724
- logger.log(` ⚠ ${failed} record(s) failed for ${rootDomain}`);
1725
- hasFailures = true;
1726
- }
1727
- if (state) {
1728
- for (const record of domainRecords) if (record.created || record.existed) setDnsRecord(state, {
1729
- domain: rootDomain,
1730
- name: record.subdomain,
1731
- type: record.type,
1732
- value: record.value,
1733
- ttl: "ttl" in providerConfig && providerConfig.ttl ? providerConfig.ttl : 300
1734
- });
1735
- }
1736
- printDnsRecordsTable(domainRecords, rootDomain);
1737
- if (providerConfig.provider === "manual" || failed > 0) printDnsRecordsSimple(domainRecords.filter((r) => !r.created && !r.existed), rootDomain);
1738
- }
1739
- return {
1740
- records: allRecords,
1741
- success: !hasFailures,
1742
- serverIp
1743
- };
1744
- }
1745
- /**
1746
- * Verify DNS records resolve correctly after deployment.
1747
- *
1748
- * This function:
1749
- * 1. Checks state for previously verified hostnames (skips if already verified with same IP)
1750
- * 2. Attempts to resolve each hostname to an IP
1751
- * 3. Compares resolved IP with expected server IP
1752
- * 4. Updates state with verification results
1753
- *
1754
- * @param appHostnames - Map of app names to hostnames
1755
- * @param serverIp - Expected IP address the hostnames should resolve to
1756
- * @param state - Deploy state for caching verification results
1757
- * @returns Array of verification results
1758
- */
1759
- async function verifyDnsRecords(appHostnames, serverIp, state) {
1760
- const results = [];
1761
- logger.log("\n🔍 Verifying DNS records...");
1762
- for (const [appName, hostname] of appHostnames) {
1763
- if (isDnsVerified(state, hostname, serverIp)) {
1764
- logger.log(` ✓ ${hostname} (previously verified)`);
1765
- results.push({
1766
- hostname,
1767
- appName,
1768
- verified: true,
1769
- expectedIp: serverIp,
1770
- skipped: true
1771
- });
1772
- continue;
1773
- }
1774
- try {
1775
- const resolvedIp = await resolveHostnameToIp(hostname);
1776
- if (resolvedIp === serverIp) {
1777
- setDnsVerification(state, hostname, serverIp);
1778
- logger.log(` ✓ ${hostname} → ${resolvedIp}`);
1779
- results.push({
1780
- hostname,
1781
- appName,
1782
- verified: true,
1783
- resolvedIp,
1784
- expectedIp: serverIp
1785
- });
1786
- } else {
1787
- logger.log(` ⚠ ${hostname} resolves to ${resolvedIp}, expected ${serverIp}`);
1788
- results.push({
1789
- hostname,
1790
- appName,
1791
- verified: false,
1792
- resolvedIp,
1793
- expectedIp: serverIp
1794
- });
1795
- }
1796
- } catch (error) {
1797
- const message = error instanceof Error ? error.message : "Unknown error";
1798
- logger.log(` ⚠ ${hostname} DNS not propagated (${message})`);
1799
- results.push({
1800
- hostname,
1801
- appName,
1802
- verified: false,
1803
- expectedIp: serverIp,
1804
- error: message
1805
- });
1806
- }
1807
- }
1808
- const verified = results.filter((r) => r.verified).length;
1809
- const skipped = results.filter((r) => r.skipped).length;
1810
- const pending = results.filter((r) => !r.verified).length;
1811
- if (pending > 0) {
1812
- logger.log(`\n ${verified} verified, ${pending} pending propagation`);
1813
- logger.log(" DNS changes may take 5-30 minutes to propagate");
1814
- } else if (skipped > 0) logger.log(` ${verified} verified (${skipped} from cache)`);
1815
- return results;
1816
- }
1817
- //#endregion
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 };
1115
+ export { deployIdentity as A, getDokployRegistryId as B, getKeyPath as C, projectKey as D, keystoreProject as E, ownershipMarker as F, removeGoDaddyCredentials as G, getHostingerToken as H, projectName as I, storeHostingerToken as J, storeDokployCredentials as K, stageTag as L, imageRef as M, isOwnedBy as N, readKey as O, markerOf as P, getCredentialsPath as R, encrypt as S, getOrCreateKey as T, readCredentials as U, getDokployToken as V, removeDokployCredentials as W, gkmHome as X, GKM_HOME_ENV as Y, bundleExternals as _, eventsBackendFor as a, FileSecretsStore as b, isRemoteStore as c, store_exports as d, initStageSecrets as f, withCustomSecret as g, toEmbeddableSecrets as h, cacheBackendFor as i, imageName as j, applicationName as k, secretsStoreFor as l, storage_exports as m, chainCredentials as n, providerOf as o, maskPassword as p, storeGoDaddyToken as q, storedCredentials as r, storageBackendFor as s, MissingCredential as t, storeFromConfig as u, externalsManifestName as v, getKeystoreDir as w, decrypt as x, importedPackages as y, getDokployCredentials as z };
1819
1116
 
1820
- //# sourceMappingURL=dns-w28G3uDJ.mjs.map
1117
+ //# sourceMappingURL=credentials-ztezRtR4.mjs.map