@geekmidas/cli 10.0.0-alpha.9 → 10.0.0-alpha.91

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 (457) hide show
  1. package/README.md +315 -414
  2. package/bin/adjacent-tsconfig.mjs +46 -8
  3. package/bin/gkm.mjs +11 -3
  4. package/bin/owning-tsconfig-jsx-register.mjs +18 -0
  5. package/bin/owning-tsconfig-jsx.mjs +108 -0
  6. package/dist/EndpointGenerator-CVc6Oi1Y.mjs +1021 -0
  7. package/dist/EndpointGenerator-CVc6Oi1Y.mjs.map +1 -0
  8. package/dist/EndpointGenerator-CwLjBCFE.cjs +1080 -0
  9. package/dist/EndpointGenerator-CwLjBCFE.cjs.map +1 -0
  10. package/dist/GoDaddyProvider-DSStJVAv.mjs +387 -0
  11. package/dist/GoDaddyProvider-DSStJVAv.mjs.map +1 -0
  12. package/dist/GoDaddyProvider-DqZ1qD_F.cjs +387 -0
  13. package/dist/GoDaddyProvider-DqZ1qD_F.cjs.map +1 -0
  14. package/dist/{HostingerProvider-Cft7lEYr.mjs → HostingerProvider-BI6J7oJr.mjs} +22 -23
  15. package/dist/HostingerProvider-BI6J7oJr.mjs.map +1 -0
  16. package/dist/{HostingerProvider-h3EbEp-Z.cjs → HostingerProvider-CyTpG_jy.cjs} +22 -23
  17. package/dist/HostingerProvider-CyTpG_jy.cjs.map +1 -0
  18. package/dist/LegacyStateStore-DXmNA7hy.cjs +89 -0
  19. package/dist/LegacyStateStore-DXmNA7hy.cjs.map +1 -0
  20. package/dist/LegacyStateStore-ZkdmiUFZ.mjs +89 -0
  21. package/dist/LegacyStateStore-ZkdmiUFZ.mjs.map +1 -0
  22. package/dist/LocalStateStore-BBeTlRTH.cjs +178 -0
  23. package/dist/LocalStateStore-BBeTlRTH.cjs.map +1 -0
  24. package/dist/LocalStateStore-CU-O0SBp.mjs +167 -0
  25. package/dist/LocalStateStore-CU-O0SBp.mjs.map +1 -0
  26. package/dist/OpenApiTsGenerator-B--HV-sW.cjs +541 -0
  27. package/dist/OpenApiTsGenerator-B--HV-sW.cjs.map +1 -0
  28. package/dist/OpenApiTsGenerator-CkvsPdgg.mjs +536 -0
  29. package/dist/OpenApiTsGenerator-CkvsPdgg.mjs.map +1 -0
  30. package/dist/{Route53Provider-di2fMM5N.cjs → Route53Provider-Bllus2NR.cjs} +21 -22
  31. package/dist/Route53Provider-Bllus2NR.cjs.map +1 -0
  32. package/dist/{Route53Provider-RdpUDJQk.mjs → Route53Provider-QXxjkZO1.mjs} +13 -13
  33. package/dist/Route53Provider-QXxjkZO1.mjs.map +1 -0
  34. package/dist/S3StateStore-Br8VMY22.cjs +160 -0
  35. package/dist/S3StateStore-Br8VMY22.cjs.map +1 -0
  36. package/dist/S3StateStore-bwxcI_wQ.mjs +161 -0
  37. package/dist/S3StateStore-bwxcI_wQ.mjs.map +1 -0
  38. package/dist/SSMStateStore-CsOS0W1y.mjs +154 -0
  39. package/dist/SSMStateStore-CsOS0W1y.mjs.map +1 -0
  40. package/dist/SSMStateStore-DoZE1Wi1.cjs +153 -0
  41. package/dist/SSMStateStore-DoZE1Wi1.cjs.map +1 -0
  42. package/dist/SubscriberGenerator-BPqQf8fB.mjs +448 -0
  43. package/dist/SubscriberGenerator-BPqQf8fB.mjs.map +1 -0
  44. package/dist/SubscriberGenerator-BVn7cQ-2.cjs +489 -0
  45. package/dist/SubscriberGenerator-BVn7cQ-2.cjs.map +1 -0
  46. package/dist/add-BSHk5Ngn.mjs +747 -0
  47. package/dist/add-BSHk5Ngn.mjs.map +1 -0
  48. package/dist/add-DmmBDV2e.cjs +749 -0
  49. package/dist/add-DmmBDV2e.cjs.map +1 -0
  50. package/dist/appPorts-C9z9Pzn9.mjs +223 -0
  51. package/dist/appPorts-C9z9Pzn9.mjs.map +1 -0
  52. package/dist/appPorts-Cu79hJF6.cjs +264 -0
  53. package/dist/appPorts-Cu79hJF6.cjs.map +1 -0
  54. package/dist/aws-B-6uEhgP.mjs +71 -0
  55. package/dist/aws-B-6uEhgP.mjs.map +1 -0
  56. package/dist/aws-BTawF0F-.cjs +82 -0
  57. package/dist/aws-BTawF0F-.cjs.map +1 -0
  58. package/dist/awsStore-7VmS_cZR.cjs +54 -0
  59. package/dist/awsStore-7VmS_cZR.cjs.map +1 -0
  60. package/dist/awsStore-B529csle.mjs +43 -0
  61. package/dist/awsStore-B529csle.mjs.map +1 -0
  62. package/dist/{backup-provisioner-Bgj5Vi_L.mjs → backup-provisioner-C8DnCmxK.mjs} +11 -8
  63. package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
  64. package/dist/{backup-provisioner-BrsHwYG0.cjs → backup-provisioner-oDEsPj02.cjs} +22 -20
  65. package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
  66. package/dist/{bundler-BY1OmV1e.cjs → bundler-BQJiB7Ub.cjs} +38 -35
  67. package/dist/bundler-BQJiB7Ub.cjs.map +1 -0
  68. package/dist/{bundler-Be8Zg4Wd.mjs → bundler-D6eBfVkl.mjs} +36 -32
  69. package/dist/bundler-D6eBfVkl.mjs.map +1 -0
  70. package/dist/cli-BE9mqeX8.cjs +69 -0
  71. package/dist/cli-BE9mqeX8.cjs.map +1 -0
  72. package/dist/cli-DD-Yk-I5.mjs +69 -0
  73. package/dist/cli-DD-Yk-I5.mjs.map +1 -0
  74. package/dist/compose-Bhmf0n4o.mjs +3140 -0
  75. package/dist/compose-Bhmf0n4o.mjs.map +1 -0
  76. package/dist/compose-CvpU6ooi.cjs +3265 -0
  77. package/dist/compose-CvpU6ooi.cjs.map +1 -0
  78. package/dist/config-CdEcTrjG.d.mts +269 -0
  79. package/dist/config-CdEcTrjG.d.mts.map +1 -0
  80. package/dist/config-pST7E0CS.d.cts +269 -0
  81. package/dist/config-pST7E0CS.d.cts.map +1 -0
  82. package/dist/config.cjs +420 -11
  83. package/dist/config.cjs.map +1 -0
  84. package/dist/config.d.cts +4 -120
  85. package/dist/config.d.mts +4 -120
  86. package/dist/config.mjs +404 -4
  87. package/dist/config.mjs.map +1 -0
  88. package/dist/credentialSchemas-BJqRJNK4.mjs +236 -0
  89. package/dist/credentialSchemas-BJqRJNK4.mjs.map +1 -0
  90. package/dist/credentialSchemas-DCR4Wd1W.cjs +271 -0
  91. package/dist/credentialSchemas-DCR4Wd1W.cjs.map +1 -0
  92. package/dist/credentials-BKfIugu2.cjs +513 -0
  93. package/dist/credentials-BKfIugu2.cjs.map +1 -0
  94. package/dist/credentials-CnVqoXMb.mjs +388 -0
  95. package/dist/credentials-CnVqoXMb.mjs.map +1 -0
  96. package/dist/databases-BY-pEImp.cjs +597 -0
  97. package/dist/databases-BY-pEImp.cjs.map +1 -0
  98. package/dist/databases-CzszQV0N.mjs +494 -0
  99. package/dist/databases-CzszQV0N.mjs.map +1 -0
  100. package/dist/define-DR8xGYfL.mjs +97 -0
  101. package/dist/define-DR8xGYfL.mjs.map +1 -0
  102. package/dist/define-DzRz8FgH.cjs +144 -0
  103. package/dist/define-DzRz8FgH.cjs.map +1 -0
  104. package/dist/deploy/public.cjs +208 -0
  105. package/dist/deploy/public.cjs.map +1 -0
  106. package/dist/deploy/public.d.cts +649 -0
  107. package/dist/deploy/public.d.cts.map +1 -0
  108. package/dist/deploy/public.d.mts +649 -0
  109. package/dist/deploy/public.d.mts.map +1 -0
  110. package/dist/deploy/public.mjs +142 -0
  111. package/dist/deploy/public.mjs.map +1 -0
  112. package/dist/deploy/sniffer-envkit-patch.cjs +18 -10
  113. package/dist/deploy/sniffer-envkit-patch.cjs.map +1 -1
  114. package/dist/deploy/sniffer-envkit-patch.d.cts +0 -2
  115. package/dist/deploy/sniffer-envkit-patch.d.cts.map +1 -1
  116. package/dist/deploy/sniffer-envkit-patch.d.mts +0 -2
  117. package/dist/deploy/sniffer-envkit-patch.d.mts.map +1 -1
  118. package/dist/deploy/sniffer-envkit-patch.mjs +10 -2
  119. package/dist/deploy/sniffer-envkit-patch.mjs.map +1 -1
  120. package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
  121. package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
  122. package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
  123. package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
  124. package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
  125. package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
  126. package/dist/deploy/sniffer-hooks.cjs +13 -7
  127. package/dist/deploy/sniffer-hooks.cjs.map +1 -1
  128. package/dist/deploy/sniffer-hooks.d.cts +1 -2
  129. package/dist/deploy/sniffer-hooks.d.cts.map +1 -1
  130. package/dist/deploy/sniffer-hooks.d.mts +1 -2
  131. package/dist/deploy/sniffer-hooks.d.mts.map +1 -1
  132. package/dist/deploy/sniffer-hooks.mjs +10 -3
  133. package/dist/deploy/sniffer-hooks.mjs.map +1 -1
  134. package/dist/deploy/sniffer-loader.cjs +16 -7
  135. package/dist/deploy/sniffer-loader.cjs.map +1 -1
  136. package/dist/deploy/sniffer-loader.d.cts +1 -1
  137. package/dist/deploy/sniffer-loader.d.mts +1 -1
  138. package/dist/deploy/sniffer-loader.mjs +14 -3
  139. package/dist/deploy/sniffer-loader.mjs.map +1 -1
  140. package/dist/deploy/sniffer-routes-worker.cjs +11 -11
  141. package/dist/deploy/sniffer-routes-worker.cjs.map +1 -1
  142. package/dist/deploy/sniffer-routes-worker.d.cts +1 -1
  143. package/dist/deploy/sniffer-routes-worker.d.mts +1 -1
  144. package/dist/deploy/sniffer-routes-worker.mjs +4 -4
  145. package/dist/deploy/sniffer-routes-worker.mjs.map +1 -1
  146. package/dist/deploy/sniffer-worker.cjs +15 -6
  147. package/dist/deploy/sniffer-worker.cjs.map +1 -1
  148. package/dist/deploy/sniffer-worker.d.cts +1 -3
  149. package/dist/deploy/sniffer-worker.d.cts.map +1 -1
  150. package/dist/deploy/sniffer-worker.d.mts +1 -3
  151. package/dist/deploy/sniffer-worker.d.mts.map +1 -1
  152. package/dist/deploy/sniffer-worker.mjs +15 -4
  153. package/dist/deploy/sniffer-worker.mjs.map +1 -1
  154. package/dist/deploy-CuHasEA4.cjs +554 -0
  155. package/dist/deploy-CuHasEA4.cjs.map +1 -0
  156. package/dist/deploy-QNtx_eWR.mjs +525 -0
  157. package/dist/deploy-QNtx_eWR.mjs.map +1 -0
  158. package/dist/derive-B4vDpzgP.mjs +150 -0
  159. package/dist/derive-B4vDpzgP.mjs.map +1 -0
  160. package/dist/derive-DAbo49sm.cjs +161 -0
  161. package/dist/derive-DAbo49sm.cjs.map +1 -0
  162. package/dist/discover-BPelzeGW.mjs +526 -0
  163. package/dist/discover-BPelzeGW.mjs.map +1 -0
  164. package/dist/discover-CU0paUyH.d.cts +108 -0
  165. package/dist/discover-CU0paUyH.d.cts.map +1 -0
  166. package/dist/discover-D1It5r_h.cjs +599 -0
  167. package/dist/discover-D1It5r_h.cjs.map +1 -0
  168. package/dist/discover-DFiJxwfv.d.mts +108 -0
  169. package/dist/discover-DFiJxwfv.d.mts.map +1 -0
  170. package/dist/dokploy-CYcMLh9-.mjs +38 -0
  171. package/dist/dokploy-CYcMLh9-.mjs.map +1 -0
  172. package/dist/dokploy-DIowwyIB.cjs +38 -0
  173. package/dist/dokploy-DIowwyIB.cjs.map +1 -0
  174. package/dist/drivers-DTZzxeIl.mjs +177 -0
  175. package/dist/drivers-DTZzxeIl.mjs.map +1 -0
  176. package/dist/drivers-LYSdQDmd.cjs +200 -0
  177. package/dist/drivers-LYSdQDmd.cjs.map +1 -0
  178. package/dist/{emit-CiZS_5Ub.mjs → emit-C1e8qD08.mjs} +13 -26
  179. package/dist/emit-C1e8qD08.mjs.map +1 -0
  180. package/dist/{emit-CbcRolsa.cjs → emit-Dmc1nvdS.cjs} +31 -57
  181. package/dist/emit-Dmc1nvdS.cjs.map +1 -0
  182. package/dist/encryption-BrEef7Jk.mjs +88 -0
  183. package/dist/encryption-BrEef7Jk.mjs.map +1 -0
  184. package/dist/encryption-CjYdUb2s.cjs +89 -0
  185. package/dist/encryption-CjYdUb2s.cjs.map +1 -0
  186. package/dist/engine-2h4k5ICq.mjs +3085 -0
  187. package/dist/engine-2h4k5ICq.mjs.map +1 -0
  188. package/dist/engine-BhJ7ZP9K.cjs +3198 -0
  189. package/dist/engine-BhJ7ZP9K.cjs.map +1 -0
  190. package/dist/github-B5Bw4HIu.cjs +669 -0
  191. package/dist/github-B5Bw4HIu.cjs.map +1 -0
  192. package/dist/github-BCDF6xVH.mjs +669 -0
  193. package/dist/github-BCDF6xVH.mjs.map +1 -0
  194. package/dist/{index-C6e-ULLx.d.mts → index-D-F_hTDz.d.cts} +39 -24
  195. package/dist/index-D-F_hTDz.d.cts.map +1 -0
  196. package/dist/{index-CR5urhWX.d.cts → index-YFNxR5Ns.d.mts} +39 -24
  197. package/dist/index-YFNxR5Ns.d.mts.map +1 -0
  198. package/dist/index.cjs +9487 -12080
  199. package/dist/index.cjs.map +1 -1
  200. package/dist/index.d.cts +1 -1
  201. package/dist/index.d.mts +1 -1
  202. package/dist/index.mjs +9420 -12026
  203. package/dist/index.mjs.map +1 -1
  204. package/dist/local-BjxDfPvy.cjs +241 -0
  205. package/dist/local-BjxDfPvy.cjs.map +1 -0
  206. package/dist/local-IuoIF3CT.mjs +224 -0
  207. package/dist/local-IuoIF3CT.mjs.map +1 -0
  208. package/dist/migrate-CGaancHY.cjs +93 -0
  209. package/dist/migrate-CGaancHY.cjs.map +1 -0
  210. package/dist/migrate-DWZz9kah.mjs +93 -0
  211. package/dist/migrate-DWZz9kah.mjs.map +1 -0
  212. package/dist/migrate-DbtcuOr_.mjs +265 -0
  213. package/dist/migrate-DbtcuOr_.mjs.map +1 -0
  214. package/dist/migrate-q2YYLJLE.cjs +270 -0
  215. package/dist/migrate-q2YYLJLE.cjs.map +1 -0
  216. package/dist/openapi.cjs +214 -10
  217. package/dist/openapi.cjs.map +1 -0
  218. package/dist/openapi.d.cts +47 -17
  219. package/dist/openapi.d.cts.map +1 -1
  220. package/dist/openapi.d.mts +47 -17
  221. package/dist/openapi.d.mts.map +1 -1
  222. package/dist/openapi.mjs +208 -5
  223. package/dist/openapi.mjs.map +1 -0
  224. package/dist/provider-C9_-45d5.cjs +56 -0
  225. package/dist/provider-C9_-45d5.cjs.map +1 -0
  226. package/dist/provider-q4lsYzYG.mjs +45 -0
  227. package/dist/provider-q4lsYzYG.mjs.map +1 -0
  228. package/dist/ready-BpNbORRB.cjs +402 -0
  229. package/dist/ready-BpNbORRB.cjs.map +1 -0
  230. package/dist/ready-b6vm0-W-.mjs +373 -0
  231. package/dist/ready-b6vm0-W-.mjs.map +1 -0
  232. package/dist/reconcile/public.cjs +3 -5
  233. package/dist/reconcile/public.d.cts +11 -87
  234. package/dist/reconcile/public.d.cts.map +1 -1
  235. package/dist/reconcile/public.d.mts +11 -87
  236. package/dist/reconcile/public.d.mts.map +1 -1
  237. package/dist/reconcile/public.mjs +3 -4
  238. package/dist/{reconcile-D0pimNiy.cjs → reconcile-CuCQBa5-.cjs} +5 -8
  239. package/dist/reconcile-CuCQBa5-.cjs.map +1 -0
  240. package/dist/{reconcile-CFs8C_1a.mjs → reconcile-Dh1Jk7WE.mjs} +4 -7
  241. package/dist/reconcile-Dh1Jk7WE.mjs.map +1 -0
  242. package/dist/resolve-Cns0v6dN.cjs +315 -0
  243. package/dist/resolve-Cns0v6dN.cjs.map +1 -0
  244. package/dist/resolve-DNg0icnh.mjs +262 -0
  245. package/dist/resolve-DNg0icnh.mjs.map +1 -0
  246. package/dist/rollback-CFrNLmxs.mjs +132 -0
  247. package/dist/rollback-CFrNLmxs.mjs.map +1 -0
  248. package/dist/rollback-UIjS25F1.cjs +161 -0
  249. package/dist/rollback-UIjS25F1.cjs.map +1 -0
  250. package/dist/rolldown-runtime-BhDjJH2R.mjs +15 -0
  251. package/dist/{chunk-CUT6urMc.cjs → rolldown-runtime-C0BPl7ul.cjs} +23 -10
  252. package/dist/runtime-CN_kmqxo.d.cts +90 -0
  253. package/dist/runtime-CN_kmqxo.d.cts.map +1 -0
  254. package/dist/runtime-Cjvon3oj.d.mts +90 -0
  255. package/dist/runtime-Cjvon3oj.d.mts.map +1 -0
  256. package/dist/sandbox/config-worker.cjs +43 -0
  257. package/dist/sandbox/config-worker.cjs.map +1 -0
  258. package/dist/sandbox/config-worker.d.cts +1 -0
  259. package/dist/sandbox/config-worker.d.mts +1 -0
  260. package/dist/sandbox/config-worker.mjs +44 -0
  261. package/dist/sandbox/config-worker.mjs.map +1 -0
  262. package/dist/sandbox/credentials-worker.cjs +54 -0
  263. package/dist/sandbox/credentials-worker.cjs.map +1 -0
  264. package/dist/sandbox/credentials-worker.d.cts +1 -0
  265. package/dist/sandbox/credentials-worker.d.mts +1 -0
  266. package/dist/sandbox/credentials-worker.mjs +55 -0
  267. package/dist/sandbox/credentials-worker.mjs.map +1 -0
  268. package/dist/sandbox/discover-worker.cjs +47 -0
  269. package/dist/sandbox/discover-worker.cjs.map +1 -0
  270. package/dist/sandbox/discover-worker.d.cts +1 -0
  271. package/dist/sandbox/discover-worker.d.mts +1 -0
  272. package/dist/sandbox/discover-worker.mjs +48 -0
  273. package/dist/sandbox/discover-worker.mjs.map +1 -0
  274. package/dist/sandbox/migrate-worker.cjs +75 -0
  275. package/dist/sandbox/migrate-worker.cjs.map +1 -0
  276. package/dist/sandbox/migrate-worker.d.cts +1 -0
  277. package/dist/sandbox/migrate-worker.d.mts +1 -0
  278. package/dist/sandbox/migrate-worker.mjs +76 -0
  279. package/dist/sandbox/migrate-worker.mjs.map +1 -0
  280. package/dist/sandbox-CL--ZDui.cjs +164 -0
  281. package/dist/sandbox-CL--ZDui.cjs.map +1 -0
  282. package/dist/sandbox-Dm247NGx.mjs +117 -0
  283. package/dist/sandbox-Dm247NGx.mjs.map +1 -0
  284. package/dist/sandbox-M8UnLhXE.d.cts +126 -0
  285. package/dist/sandbox-M8UnLhXE.d.cts.map +1 -0
  286. package/dist/sandbox-M8UnLhXE.d.mts +126 -0
  287. package/dist/sandbox-M8UnLhXE.d.mts.map +1 -0
  288. package/dist/{workspace-zoqRbihZ.mjs → schemas-BObwxB_t.cjs} +998 -1659
  289. package/dist/schemas-BObwxB_t.cjs.map +1 -0
  290. package/dist/{workspace-C6VJQVtG.cjs → schemas-D-xeKJDD.mjs} +913 -1842
  291. package/dist/schemas-D-xeKJDD.mjs.map +1 -0
  292. package/dist/secretsManager-Chs9VV2r.mjs +76 -0
  293. package/dist/secretsManager-Chs9VV2r.mjs.map +1 -0
  294. package/dist/secretsManager-DcMlHnRC.cjs +87 -0
  295. package/dist/secretsManager-DcMlHnRC.cjs.map +1 -0
  296. package/dist/seeds-CkIPFGNO.cjs +10560 -0
  297. package/dist/seeds-CkIPFGNO.cjs.map +1 -0
  298. package/dist/seeds-odfgSCmu.mjs +9538 -0
  299. package/dist/seeds-odfgSCmu.mjs.map +1 -0
  300. package/dist/sniffer-BTtX3NUM.mjs +1262 -0
  301. package/dist/sniffer-BTtX3NUM.mjs.map +1 -0
  302. package/dist/sniffer-IAQEpsQb.cjs +1333 -0
  303. package/dist/sniffer-IAQEpsQb.cjs.map +1 -0
  304. package/dist/sst-BgcOsaBi.cjs +453 -0
  305. package/dist/sst-BgcOsaBi.cjs.map +1 -0
  306. package/dist/sst-CJzvyrEz.mjs +430 -0
  307. package/dist/sst-CJzvyrEz.mjs.map +1 -0
  308. package/dist/stages-CUn6gvXL.cjs +174 -0
  309. package/dist/stages-CUn6gvXL.cjs.map +1 -0
  310. package/dist/stages-CnZRYmkI.mjs +174 -0
  311. package/dist/stages-CnZRYmkI.mjs.map +1 -0
  312. package/dist/target/public.cjs +15 -0
  313. package/dist/target/public.d.cts +28 -0
  314. package/dist/target/public.d.cts.map +1 -0
  315. package/dist/target/public.d.mts +28 -0
  316. package/dist/target/public.d.mts.map +1 -0
  317. package/dist/target/public.mjs +4 -0
  318. package/dist/terminal-D8TPK7o9.mjs +84 -0
  319. package/dist/terminal-D8TPK7o9.mjs.map +1 -0
  320. package/dist/terminal-DuapRxh6.cjs +84 -0
  321. package/dist/terminal-DuapRxh6.cjs.map +1 -0
  322. package/dist/types-NqX1Hz4P.d.cts +7454 -0
  323. package/dist/types-NqX1Hz4P.d.cts.map +1 -0
  324. package/dist/types-ZHuZ89hv.d.mts +7453 -0
  325. package/dist/types-ZHuZ89hv.d.mts.map +1 -0
  326. package/dist/utils-D2Nk1Nv2.cjs +205 -0
  327. package/dist/utils-D2Nk1Nv2.cjs.map +1 -0
  328. package/dist/utils-D_fxUqvU.mjs +156 -0
  329. package/dist/utils-D_fxUqvU.mjs.map +1 -0
  330. package/dist/vitest.cjs +65 -0
  331. package/dist/vitest.cjs.map +1 -0
  332. package/dist/vitest.d.cts +29 -0
  333. package/dist/vitest.d.cts.map +1 -0
  334. package/dist/vitest.d.mts +29 -0
  335. package/dist/vitest.d.mts.map +1 -0
  336. package/dist/vitest.mjs +65 -0
  337. package/dist/vitest.mjs.map +1 -0
  338. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  339. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  340. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  341. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  342. package/dist/workspace/index.cjs +8 -4
  343. package/dist/workspace/index.d.cts +3 -3
  344. package/dist/workspace/index.d.mts +3 -3
  345. package/dist/workspace/index.mjs +2 -3
  346. package/dist/workspace-CJ0lKFq-.mjs +1979 -0
  347. package/dist/workspace-CJ0lKFq-.mjs.map +1 -0
  348. package/dist/workspace-CwW3Gkru.cjs +2355 -0
  349. package/dist/workspace-CwW3Gkru.cjs.map +1 -0
  350. package/package.json +53 -22
  351. package/dist/CachedStateProvider-BLo7zv7S.cjs +0 -3
  352. package/dist/CachedStateProvider-BxoAm-B2.mjs +0 -3
  353. package/dist/CachedStateProvider-CqPdW7CB.cjs +0 -60
  354. package/dist/CachedStateProvider-CqPdW7CB.cjs.map +0 -1
  355. package/dist/CachedStateProvider-DTniehMP.mjs +0 -54
  356. package/dist/CachedStateProvider-DTniehMP.mjs.map +0 -1
  357. package/dist/HostingerProvider-Cft7lEYr.mjs.map +0 -1
  358. package/dist/HostingerProvider-h3EbEp-Z.cjs.map +0 -1
  359. package/dist/LocalStateProvider-Bn6tS-oL.mjs +0 -42
  360. package/dist/LocalStateProvider-Bn6tS-oL.mjs.map +0 -1
  361. package/dist/LocalStateProvider-Db9SEjyH.cjs +0 -43
  362. package/dist/LocalStateProvider-Db9SEjyH.cjs.map +0 -1
  363. package/dist/Route53Provider-RdpUDJQk.mjs.map +0 -1
  364. package/dist/Route53Provider-di2fMM5N.cjs.map +0 -1
  365. package/dist/SSMStateProvider-BRt2py-A.mjs +0 -66
  366. package/dist/SSMStateProvider-BRt2py-A.mjs.map +0 -1
  367. package/dist/SSMStateProvider-DyX8s9HI.cjs +0 -66
  368. package/dist/SSMStateProvider-DyX8s9HI.cjs.map +0 -1
  369. package/dist/backup-provisioner-Bgj5Vi_L.mjs.map +0 -1
  370. package/dist/backup-provisioner-BrsHwYG0.cjs.map +0 -1
  371. package/dist/bundler-BY1OmV1e.cjs.map +0 -1
  372. package/dist/bundler-Be8Zg4Wd.mjs.map +0 -1
  373. package/dist/chunk-Duj1WY3L.mjs +0 -7
  374. package/dist/config-BZ1F0WuA.cjs +0 -462
  375. package/dist/config-BZ1F0WuA.cjs.map +0 -1
  376. package/dist/config-DVVph9yz.mjs +0 -402
  377. package/dist/config-DVVph9yz.mjs.map +0 -1
  378. package/dist/config.d.cts.map +0 -1
  379. package/dist/config.d.mts.map +0 -1
  380. package/dist/credentials-B5zRHdAl.mjs +0 -141
  381. package/dist/credentials-B5zRHdAl.mjs.map +0 -1
  382. package/dist/credentials-BapzjyV5.cjs +0 -195
  383. package/dist/credentials-BapzjyV5.cjs.map +0 -1
  384. package/dist/credentials-Xamqe_NJ.cjs +0 -2681
  385. package/dist/credentials-Xamqe_NJ.cjs.map +0 -1
  386. package/dist/credentials-dP8vRVRv.mjs +0 -2549
  387. package/dist/credentials-dP8vRVRv.mjs.map +0 -1
  388. package/dist/discover-CAlFgYec.mjs +0 -229
  389. package/dist/discover-CAlFgYec.mjs.map +0 -1
  390. package/dist/discover-DTmFeloL.cjs +0 -271
  391. package/dist/discover-DTmFeloL.cjs.map +0 -1
  392. package/dist/dokploy-api-BS2xnJLZ.mjs +0 -3
  393. package/dist/dokploy-api-BsVH0y_s.cjs +0 -718
  394. package/dist/dokploy-api-BsVH0y_s.cjs.map +0 -1
  395. package/dist/dokploy-api-BuxDRo3l.cjs +0 -3
  396. package/dist/dokploy-api-aTFPz7_4.mjs +0 -706
  397. package/dist/dokploy-api-aTFPz7_4.mjs.map +0 -1
  398. package/dist/emit-CbcRolsa.cjs.map +0 -1
  399. package/dist/emit-CiZS_5Ub.mjs.map +0 -1
  400. package/dist/encryption-C6jaU0hE.cjs +0 -54
  401. package/dist/encryption-C6jaU0hE.cjs.map +0 -1
  402. package/dist/encryption-CHzzeR8a.cjs +0 -4
  403. package/dist/encryption-CQUncu7v.mjs +0 -3
  404. package/dist/encryption-D-abyhZx.mjs +0 -42
  405. package/dist/encryption-D-abyhZx.mjs.map +0 -1
  406. package/dist/fullstack-secrets-C-GGohke.cjs +0 -111
  407. package/dist/fullstack-secrets-C-GGohke.cjs.map +0 -1
  408. package/dist/fullstack-secrets-D1o9-G5l.mjs +0 -87
  409. package/dist/fullstack-secrets-D1o9-G5l.mjs.map +0 -1
  410. package/dist/generator-CNzBw7g5.cjs +0 -289
  411. package/dist/generator-CNzBw7g5.cjs.map +0 -1
  412. package/dist/generator-VE2JrFlY.mjs +0 -253
  413. package/dist/generator-VE2JrFlY.mjs.map +0 -1
  414. package/dist/index-C6e-ULLx.d.mts.map +0 -1
  415. package/dist/index-CR5urhWX.d.cts.map +0 -1
  416. package/dist/openapi-SjsgARie.cjs +0 -2075
  417. package/dist/openapi-SjsgARie.cjs.map +0 -1
  418. package/dist/openapi-Xx0A7Wg0.mjs +0 -2021
  419. package/dist/openapi-Xx0A7Wg0.mjs.map +0 -1
  420. package/dist/openapi-react-query-Byltvm_7.mjs +0 -167
  421. package/dist/openapi-react-query-Byltvm_7.mjs.map +0 -1
  422. package/dist/openapi-react-query-CmJ1xDbn.cjs +0 -173
  423. package/dist/openapi-react-query-CmJ1xDbn.cjs.map +0 -1
  424. package/dist/openapi-react-query.cjs +0 -4
  425. package/dist/openapi-react-query.d.cts +0 -11
  426. package/dist/openapi-react-query.d.cts.map +0 -1
  427. package/dist/openapi-react-query.d.mts +0 -11
  428. package/dist/openapi-react-query.d.mts.map +0 -1
  429. package/dist/openapi-react-query.mjs +0 -4
  430. package/dist/reconcile-CFs8C_1a.mjs.map +0 -1
  431. package/dist/reconcile-D0pimNiy.cjs.map +0 -1
  432. package/dist/setup-BA8ciTPU.mjs +0 -11
  433. package/dist/setup-BsZvZP6f.cjs +0 -11
  434. package/dist/setup-C8KOx8_8.mjs +0 -443
  435. package/dist/setup-C8KOx8_8.mjs.map +0 -1
  436. package/dist/setup-hC6hI86f.cjs +0 -473
  437. package/dist/setup-hC6hI86f.cjs.map +0 -1
  438. package/dist/storage-BJmzYxt8.cjs +0 -363
  439. package/dist/storage-BJmzYxt8.cjs.map +0 -1
  440. package/dist/storage-BM9hGpgv.cjs +0 -7
  441. package/dist/storage-Bi24WfoW.mjs +0 -297
  442. package/dist/storage-Bi24WfoW.mjs.map +0 -1
  443. package/dist/storage-CYlGwWTj.mjs +0 -3
  444. package/dist/sync-CmEuNZsB.mjs +0 -76
  445. package/dist/sync-CmEuNZsB.mjs.map +0 -1
  446. package/dist/sync-D306yOWu.cjs +0 -4
  447. package/dist/sync-SizaChmC.cjs +0 -93
  448. package/dist/sync-SizaChmC.cjs.map +0 -1
  449. package/dist/sync-hOqAWHR6.mjs +0 -3
  450. package/dist/types-6pkp2RRj.d.mts +0 -2220
  451. package/dist/types-6pkp2RRj.d.mts.map +0 -1
  452. package/dist/types-Y3fKQSAK.d.cts +0 -2220
  453. package/dist/types-Y3fKQSAK.d.cts.map +0 -1
  454. package/dist/workspace-BzrG_2SI.mjs +0 -8
  455. package/dist/workspace-C6VJQVtG.cjs.map +0 -1
  456. package/dist/workspace-XXtNhqJl.cjs +0 -9
  457. package/dist/workspace-zoqRbihZ.mjs.map +0 -1
@@ -0,0 +1,649 @@
1
+ import { Ct as ReleasedImage, Et as deployIdentity, St as StateVersionConflict, Tt as DeployIdentity, U as AnyDeployTarget, _t as StoredCredentialsOptions, at as DeployPhase, bt as StateLocked, ct as AppDeployResult, dt as Credential, ft as CredentialKind, gt as MissingCredential, ht as CredentialRequest, it as DeployEventType, lt as DeployResult, mt as CredentialProvider, nt as DeployEvent, ot as ResourceChange, pt as CredentialKinds, rt as DeployEventError, st as ResourceVia, ut as AwsCredential, vt as chainCredentials, yt as storedCredentials } from "../types-NqX1Hz4P.cjs";
2
+ import { a as SandboxOutput, c as confineCwd, i as SandboxExecOptions, n as Sandbox, o as SandboxResult, r as SandboxCwdEscape, s as SecretNameInvalid, t as SECRETS_DIR_ENV } from "../sandbox-M8UnLhXE.cjs";
3
+ import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-pST7E0CS.cjs";
4
+ import { n as ConstructsNotSerializable, t as ConstructDiscoveryFailed } from "../discover-CU0paUyH.cjs";
5
+ import { a as TargetRuntimeMismatch, c as DeployTargetNotYetSupported, i as TargetPackageInvalid, l as UnknownDeployTarget, n as InvalidTargetOptions, o as ProviderRemoved, r as TargetEntryInvalid, s as TargetPackageNotFound, t as TargetRuntimeUndeclared } from "../runtime-CN_kmqxo.cjs";
6
+ import { ConstructManifest, Declaration } from "@geekmidas/manifest";
7
+ import "@geekmidas/envkit/sniffer";
8
+ import "@geekmidas/db/pg/roles";
9
+ //#region src/home.d.ts
10
+ /**
11
+ * Where the CLI keeps what belongs to a person rather than a project: stage
12
+ * keys and stored provider credentials.
13
+ *
14
+ * `GKM_HOME` names it, so a CI job, a shared build runner or a test can give
15
+ * every run its own instead of reaching into whoever's home directory the
16
+ * process happens to have. Unset, it is `~/.gkm`, where it has always been.
17
+ */
18
+ /** The environment variable that moves the CLI's home. */
19
+ export declare const GKM_HOME_ENV = "GKM_HOME";
20
+ /** The CLI's home: `GKM_HOME` if set, else `~/.gkm`. */
21
+ export declare function gkmHome(env?: NodeJS.ProcessEnv): string;
22
+ //#endregion
23
+ //#region src/providers/types.d.ts
24
+ /** The manifest kinds a stage can name a provider for. */
25
+ declare const PROVIDER_KINDS: readonly ['objects'];
26
+ type ProviderKind = (typeof PROVIDER_KINDS)[number];
27
+ //#endregion
28
+ //#region src/providers/config.d.ts
29
+ /** An entry that names no provider gkm has, or is not an entry at all. */
30
+ export declare class UnknownStageProvider extends Error {
31
+ readonly kind: ProviderKind;
32
+ readonly stage: string;
33
+ readonly value: unknown;
34
+ constructor(kind: ProviderKind, stage: string, value: unknown);
35
+ }
36
+ //#endregion
37
+ //#region src/deploy/devServices.d.ts
38
+ /**
39
+ * The dev services a deployed stage can run — one per kind that has one on
40
+ * every server target: a bucket's MinIO and mail's Mailpit. A cache or a
41
+ * database is not here because a server stage runs its own anyway.
42
+ */
43
+ export declare const DEV_SERVICES: readonly ['minio', 'mailpit'];
44
+ type DevService = (typeof DEV_SERVICES)[number];
45
+ /** Dev services asked of a target that runs no containers. */
46
+ export declare class DevServicesNeedServerTarget extends Error {
47
+ readonly target: string;
48
+ constructor(target: string);
49
+ }
50
+ /**
51
+ * `--allow-dev-services` given a value — the list it used to take. It is a
52
+ * switch now: every construct the stage does not account for gets its dev
53
+ * service.
54
+ */
55
+ export declare class AllowDevServicesTakesNoValue extends Error {
56
+ readonly value: string;
57
+ constructor(value: string);
58
+ }
59
+ /** One key a deployed stage needs and its secrets do not hold. */
60
+ interface MissingServiceKey {
61
+ key: string;
62
+ /** The construct that reads it. */
63
+ id: string;
64
+ /** What it is, for the line that names it. */
65
+ what: string;
66
+ /** A line after `what`, for what else there is to know about it. */
67
+ note?: string;
68
+ /** A placeholder value to show in the `gkm secrets:set` line. */
69
+ example: string;
70
+ /** The dev service that would stand in for it, unless the stage accounts for it. */
71
+ service?: DevService;
72
+ /** The apps that read it, where known. */
73
+ apps?: readonly string[];
74
+ /** What creates it, where a provider backs it on the stage. */
75
+ hint?: string;
76
+ }
77
+ /**
78
+ * A deployed stage with mail or object storage that its secrets do not
79
+ * configure — every missing key, across every app, at once.
80
+ */
81
+ export declare class ExternalServicesNotConfigured extends Error {
82
+ readonly stage: string;
83
+ readonly missing: readonly MissingServiceKey[];
84
+ constructor(stage: string, missing: readonly MissingServiceKey[]);
85
+ }
86
+ //#endregion
87
+ //#region src/providers/notes.d.ts
88
+ /** A stage that names `false` for a kind, and declares constructs of it. */
89
+ export declare class StageProviderDisabled extends Error {
90
+ readonly kind: ProviderKind;
91
+ readonly stage: string;
92
+ readonly ids: readonly string[];
93
+ constructor(kind: ProviderKind, stage: string, ids: readonly string[]);
94
+ }
95
+ //#endregion
96
+ //#region src/providers/s3/errors.d.ts
97
+ /** `verify()`: a provisioned bucket the stage's key cannot reach. */
98
+ export declare class ProvisionedBucketUnreachable extends Error {
99
+ readonly id: string;
100
+ readonly bucket: string;
101
+ readonly stage: string;
102
+ readonly reason: string;
103
+ constructor(id: string, bucket: string, stage: string, reason: string);
104
+ }
105
+ //#endregion
106
+ //#region src/run.d.ts
107
+ /** The program ran and exited unsuccessfully; its own output said why. */
108
+ export declare class CommandFailed extends Error {
109
+ readonly command: string;
110
+ readonly args: readonly string[];
111
+ readonly exitCode: number | null;
112
+ readonly signal: NodeJS.Signals | null;
113
+ constructor(command: string, args: readonly string[], exitCode: number | null, signal: NodeJS.Signals | null);
114
+ }
115
+ /** The program ran past its timeout and was killed. */
116
+ export declare class CommandTimedOut extends Error {
117
+ readonly command: string;
118
+ readonly args: readonly string[];
119
+ readonly timeoutMs: number;
120
+ constructor(command: string, args: readonly string[], timeoutMs: number);
121
+ }
122
+ //#endregion
123
+ //#region src/sandbox/env.d.ts
124
+ /**
125
+ * What of the host's environment a local sandbox passes on.
126
+ *
127
+ * An allowlist, not a denylist: a credential's variable has any name its
128
+ * owner chose (`DOKPLOY_TOKEN`, `AWS_SECRET_ACCESS_KEY`, `MY_VAULT_TOKEN`), so
129
+ * the only safe default is to name what a program needs to *run* and pass
130
+ * nothing else.
131
+ */
132
+ /**
133
+ * Variables a command needs to find programs, write temp files, print in the
134
+ * user's locale and reach the network through the host's proxy — and nothing
135
+ * that authenticates as anyone.
136
+ *
137
+ * Deliberately left out:
138
+ * - `NODE_OPTIONS`: it can `--require` or `--import` code into every node
139
+ * process, and CI often holds `--import tsx` there. A step that needs a
140
+ * loader passes its own.
141
+ * - `NODE_AUTH_TOKEN`, `NPM_TOKEN`, `npm_config_*`: registry tokens
142
+ * (`actions/setup-node` writes `NODE_AUTH_TOKEN`), which is why there is no
143
+ * `NODE_*` wildcard.
144
+ * - `AWS_*`, `DOCKER_*`, `DOKPLOY_*`, `GITHUB_TOKEN`, `TURBO_TOKEN`, `GKM_*`:
145
+ * credentials, or where the deploy keeps them.
146
+ * - `SHELL`, `EDITOR` and the rest of a login session: nothing here starts a
147
+ * shell.
148
+ *
149
+ * Proxies are passed: behind one, nothing installs or builds without it. A
150
+ * proxy URL with a password in it reaches the command too — a host that keeps
151
+ * one there and builds code it does not trust should pass a sandbox of its
152
+ * own.
153
+ */
154
+ export declare const SANDBOX_ENV_ALLOWLIST: readonly (string | RegExp)[];
155
+ /**
156
+ * The allowlisted part of `source`, plus each of `extra` the host chose to
157
+ * pass on by name.
158
+ */
159
+ export declare function allowlistedEnv(source?: NodeJS.ProcessEnv, extra?: readonly string[]): Record<string, string>;
160
+ //#endregion
161
+ //#region src/docker/templates.d.ts
162
+ type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun';
163
+ //#endregion
164
+ //#region src/sandbox/install.d.ts
165
+ /** Long enough for a cold install of a large monorepo. */
166
+ export declare const INSTALL_TIMEOUT_MS: number;
167
+ interface InstallOptions {
168
+ /** The directory to install in. Defaults to the sandbox's root. */
169
+ cwd?: string;
170
+ /** Defaults to the one the lockfile above `cwd` names. */
171
+ packageManager?: PackageManager;
172
+ /**
173
+ * Skip every lifecycle script — dependencies' and the project's own —
174
+ * except those of {@link allowScripts}. Defaults to false: scripts run as
175
+ * a plain install runs them, under the package manager's own policy —
176
+ * npm 12 and pnpm 10 skip dependencies' scripts nobody approved.
177
+ */
178
+ ignoreScripts?: boolean;
179
+ /**
180
+ * With `ignoreScripts`, the packages whose scripts still run: rebuilt by
181
+ * name once the install is done.
182
+ */
183
+ allowScripts?: readonly string[];
184
+ /** Variables the install needs beyond the sandbox's own. */
185
+ env?: Readonly<Record<string, string>>;
186
+ /** Defaults to {@link INSTALL_TIMEOUT_MS}, for each command. */
187
+ timeoutMs?: number;
188
+ /** Where the package manager's output goes. Defaults to `inherit`. */
189
+ output?: SandboxOutput;
190
+ signal?: AbortSignal;
191
+ }
192
+ /** A name in `allowScripts` that is not a package name. */
193
+ export declare class InstallAllowlistNameInvalid extends Error {
194
+ readonly packageName: string;
195
+ constructor(packageName: string);
196
+ }
197
+ /** The package manager has no way to run only some packages' scripts. */
198
+ export declare class InstallScriptsAllowlistUnsupported extends Error {
199
+ readonly packageManager: string;
200
+ readonly allowScripts: readonly string[];
201
+ constructor(packageManager: string, allowScripts: readonly string[]);
202
+ }
203
+ /**
204
+ * Install the project's dependencies in `sandbox`.
205
+ *
206
+ * ```ts
207
+ * // A checkout nobody has reviewed: no scripts but esbuild's.
208
+ * await installDependencies(sandbox, {
209
+ * ignoreScripts: true,
210
+ * allowScripts: ['esbuild'],
211
+ * });
212
+ * ```
213
+ *
214
+ * Resolves with each command's result, in order — with its output when
215
+ * `output` is `capture`.
216
+ *
217
+ * @throws {CommandFailed} when the package manager exits unsuccessfully.
218
+ * @throws {InstallScriptsAllowlistUnsupported} for an allowlist the package
219
+ * manager cannot honour, before anything is installed.
220
+ */
221
+ export declare function installDependencies(sandbox: Sandbox, options?: InstallOptions): Promise<SandboxResult[]>;
222
+ //#endregion
223
+ //#region src/sandbox/local.d.ts
224
+ interface LocalSandboxOptions {
225
+ /** The project. Every command runs at or below it. */
226
+ root: string;
227
+ /**
228
+ * `HOME` for every command. Defaults to the host's, because a build
229
+ * reuses the caches kept there — the pnpm store, corepack's package
230
+ * managers, turbo's cache — and a cold one re-downloads all of them.
231
+ * Point it at an empty directory to keep `~/.aws`, `~/.npmrc` and
232
+ * `~/.docker` out of reach of an SDK's default lookup — though, sharing
233
+ * the host's filesystem, a command that goes looking still finds them.
234
+ */
235
+ home?: string;
236
+ /**
237
+ * Host variables to pass on beyond the allowlist, by name — a remote
238
+ * cache's `TURBO_TOKEN`, for a build the host trusts with it.
239
+ */
240
+ passEnv?: readonly string[];
241
+ /** Where the allowlisted variables are read from. Defaults to `process.env`. */
242
+ hostEnv?: NodeJS.ProcessEnv;
243
+ }
244
+ /**
245
+ * A child process on this machine, as this user, with an allowlisted
246
+ * environment.
247
+ *
248
+ * What it withholds from the command: the host's environment beyond
249
+ * {@link SANDBOX_ENV_ALLOWLIST}, a shell, a working directory outside the
250
+ * project, and any time past the timeout. What it does not: the host's
251
+ * filesystem, which the command can read and write as the user running the
252
+ * deploy. So it is not `isolating`, and it is the default for projects the
253
+ * host already trusts — the developer's own, a team's own CI. Code nobody
254
+ * vetted belongs in a sandbox that is.
255
+ *
256
+ * A timed-out command is sent SIGTERM, then SIGKILL; processes it started
257
+ * itself are its to stop.
258
+ */
259
+ export declare class LocalSandbox implements Sandbox {
260
+ readonly root: string;
261
+ readonly isolating = false;
262
+ readonly env: Readonly<Record<string, string>>;
263
+ constructor(options: LocalSandboxOptions);
264
+ exec(command: string, args: readonly string[], options: SandboxExecOptions): Promise<SandboxResult>;
265
+ }
266
+ //#endregion
267
+ //#region src/sandbox/worker.d.ts
268
+ /** A worker ended without the answer it exists to give. */
269
+ export declare class SandboxWorkerFailed extends Error {
270
+ readonly step: string;
271
+ readonly exitCode: number | null;
272
+ readonly stderr: string;
273
+ constructor(step: string, exitCode: number | null, stderr: string);
274
+ }
275
+ //#endregion
276
+ //#region src/target/dokploy/dokploy-api.d.ts
277
+ /** A deployment Dokploy ran and reported as failed. */
278
+ export declare class DeploymentFailed extends Error {
279
+ readonly applicationId: string;
280
+ readonly deployment: DokployDeployment;
281
+ constructor(applicationId: string, deployment: DokployDeployment);
282
+ }
283
+ /** A deployment that had not finished when the deploy stopped waiting. */
284
+ export declare class DeploymentTimedOut extends Error {
285
+ readonly applicationId: string;
286
+ readonly timeoutMs: number;
287
+ /** The last status seen, if a deployment had appeared at all. */
288
+ readonly lastStatus: DokployDeploymentStatus | undefined;
289
+ constructor(applicationId: string, timeoutMs: number,
290
+ /** The last status seen, if a deployment had appeared at all. */
291
+ lastStatus: DokployDeploymentStatus | undefined);
292
+ }
293
+ type DokployDeploymentStatus = 'running' | 'done' | 'error' | 'cancelled';
294
+ /** One run of `application.deploy`, as `deployment.all` lists it. */
295
+ interface DokployDeployment {
296
+ deploymentId: string;
297
+ status: DokployDeploymentStatus;
298
+ /** ISO timestamp, by Dokploy's clock. */
299
+ createdAt: string;
300
+ title?: string;
301
+ errorMessage?: string | null;
302
+ }
303
+ //#endregion
304
+ //#region src/target/dokploy/engine.d.ts
305
+ /** A backend failed, so the run stopped before deploying anything after it. */
306
+ export declare class BackendDeployFailed extends Error {
307
+ readonly app: string;
308
+ constructor(app: string, cause: unknown);
309
+ }
310
+ /**
311
+ * Sites failed to release or to answer. Every site is attempted before this
312
+ * is thrown, so one broken site does not keep the others back — but the run
313
+ * fails, and what failed is rolled back.
314
+ */
315
+ export declare class FrontendDeployFailed extends Error {
316
+ readonly apps: readonly string[];
317
+ constructor(apps: readonly string[], cause: unknown);
318
+ }
319
+ /** An app's environment needs values the stage does not have. */
320
+ export declare class MissingEnvVars extends Error {
321
+ readonly app: string;
322
+ readonly missing: readonly string[];
323
+ readonly stage: string;
324
+ constructor(app: string, missing: readonly string[], stage: string);
325
+ }
326
+ //#endregion
327
+ //#region src/target/dokploy/health.d.ts
328
+ /** An app never answered healthy enough times in a row. */
329
+ export declare class HealthCheckTimedOut extends Error {
330
+ readonly app: string;
331
+ readonly url: string;
332
+ readonly timeoutMs: number;
333
+ /** The last answer's status, or undefined when the last request failed. */
334
+ readonly lastStatus: number | undefined;
335
+ constructor(app: string, url: string, timeoutMs: number,
336
+ /** The last answer's status, or undefined when the last request failed. */
337
+ lastStatus: number | undefined);
338
+ }
339
+ //#endregion
340
+ //#region src/target/dokploy/migrations.d.ts
341
+ /** The migrations of a deployed stage failed; the release stopped before any app. */
342
+ export declare class DeployMigrationsFailed extends Error {
343
+ readonly stage: string;
344
+ /** The failure's class name in the sandbox — `MigrationFailed`, … */
345
+ readonly reason: string;
346
+ constructor(stage: string,
347
+ /** The failure's class name in the sandbox — `MigrationFailed`, … */
348
+ reason: string, message: string);
349
+ }
350
+ //#endregion
351
+ //#region src/target/dokploy/rollback.d.ts
352
+ interface RollbackInput {
353
+ /** The project: the directory holding `gkm.config.ts`, or one inside it. */
354
+ cwd: string;
355
+ stage: string;
356
+ /** The app to roll back. */
357
+ app?: string;
358
+ /** Every app with an earlier release, instead of one. */
359
+ atomic?: boolean;
360
+ /** Defaults to the environment, then the logins `gkm login` stored. */
361
+ credentials?: CredentialProvider;
362
+ signal?: AbortSignal;
363
+ /** Each progress line. Defaults to none. */
364
+ log?: (line: string) => void;
365
+ /** Where the config is loaded. Defaults to a `LocalSandbox` on the project. */
366
+ sandbox?: Sandbox;
367
+ }
368
+ /** One app rolled back. */
369
+ interface RolledBack {
370
+ app: string;
371
+ from: ReleasedImage;
372
+ to: ReleasedImage;
373
+ }
374
+ /** Neither an app nor every app was asked for. */
375
+ export declare class RollbackNeedsApp extends Error {
376
+ readonly stage: string;
377
+ /** The apps that have a release to go back to. */
378
+ readonly apps: readonly string[];
379
+ constructor(stage: string,
380
+ /** The apps that have a release to go back to. */
381
+ apps: readonly string[]);
382
+ }
383
+ /** An app has no release before the one it runs. */
384
+ export declare class NothingToRollBack extends Error {
385
+ readonly stage: string;
386
+ readonly app: string;
387
+ constructor(stage: string, app: string);
388
+ }
389
+ /** The stage was never deployed through Dokploy from this state. */
390
+ export declare class StageNeverDeployed extends Error {
391
+ readonly stage: string;
392
+ constructor(stage: string);
393
+ }
394
+ /**
395
+ * Roll a stage's app — or, `atomic`, all of them — back to its previous
396
+ * release, holding the stage's lock as a deploy does.
397
+ */
398
+ export declare function rollbackStage(input: RollbackInput): Promise<RolledBack[]>;
399
+ //#endregion
400
+ //#region src/target/seeds.d.ts
401
+ /** A seed of a deployed stage failed; the release stopped before any app. */
402
+ export declare class DeploySeedsFailed extends Error {
403
+ readonly stage: string;
404
+ /** The construct whose seed failed: `Database`. */
405
+ readonly construct: string;
406
+ /** The seed file, by name: `001_roles`. */
407
+ readonly seed: string;
408
+ readonly cause: unknown;
409
+ constructor(stage: string,
410
+ /** The construct whose seed failed: `Database`. */
411
+ construct: string,
412
+ /** The seed file, by name: `001_roles`. */
413
+ seed: string, cause: unknown);
414
+ }
415
+ //#endregion
416
+ //#region src/target/sst/health.d.ts
417
+ /** Surfaces that never answered healthy. */
418
+ export declare class SurfacesUnhealthy extends Error {
419
+ readonly stage: string;
420
+ /** Each surface that failed, with the last thing it answered. */
421
+ readonly surfaces: readonly {
422
+ app: string;
423
+ url: string;
424
+ status?: number;
425
+ error?: string;
426
+ }[];
427
+ constructor(stage: string,
428
+ /** Each surface that failed, with the last thing it answered. */
429
+ surfaces: readonly {
430
+ app: string;
431
+ url: string;
432
+ status?: number;
433
+ error?: string;
434
+ }[]);
435
+ }
436
+ //#endregion
437
+ //#region src/target/sst/outputs.d.ts
438
+ /** `.sst/outputs.json` is there, and is not JSON. */
439
+ export declare class SstOutputsUnreadable extends Error {
440
+ readonly path: string;
441
+ readonly reason: string;
442
+ constructor(path: string, reason: string);
443
+ }
444
+ //#endregion
445
+ //#region src/target/sst/index.d.ts
446
+ /** The workspace has no `sst.config.ts` for `sst deploy` to run. */
447
+ export declare class SstConfigNotFound extends Error {
448
+ readonly cwd: string;
449
+ constructor(cwd: string);
450
+ }
451
+ //#endregion
452
+ //#region src/deploy/deploy.d.ts
453
+ /**
454
+ * Where a run's progress lines go, besides its events. `@geekmidas/logger`'s
455
+ * `Logger` is one.
456
+ */
457
+ interface DeployLogger {
458
+ info(message: string): void;
459
+ warn(message: string): void;
460
+ error?(message: string): void;
461
+ }
462
+ interface DeployInput {
463
+ /**
464
+ * The project to deploy: the directory holding `gkm.config.ts`, or any
465
+ * directory inside it. Never assumed to be `process.cwd()`.
466
+ */
467
+ cwd: string;
468
+ /**
469
+ * The stage to deploy — one of the config's deployed stages, or its local
470
+ * stage through a target that runs one (`compose`).
471
+ */
472
+ stage: string;
473
+ /**
474
+ * The target to deploy through, by name. Defaults to `deploy.default`,
475
+ * else `dokploy`.
476
+ */
477
+ target?: string;
478
+ /**
479
+ * The host's own targets, by name. Consulted before the built-ins and the
480
+ * config's `deploy.targets`, so a host can deploy through an
481
+ * implementation of its own — `{ dokploy: myDokploy }` included.
482
+ */
483
+ targets?: Record<string, AnyDeployTarget>;
484
+ /** The image tag. Defaults to `<stage>-<timestamp>`. */
485
+ tag?: string;
486
+ /** Deploy only these apps (in dependency order). Defaults to all. */
487
+ apps?: string[];
488
+ /**
489
+ * Look everything up and report what would happen — as `resource.planned`
490
+ * events — without taking the lock, writing state, generating secrets,
491
+ * changing Dokploy or building and pushing images.
492
+ */
493
+ dryRun?: boolean;
494
+ /**
495
+ * Validate and build only: the target's images built — and pushed, where
496
+ * it pushes them — with no lock taken and nothing provisioned, released,
497
+ * verified or recorded. `gkm compose --build --push` runs this way.
498
+ */
499
+ buildOnly?: boolean;
500
+ /**
501
+ * When a release or its verification fails, roll back every app the run
502
+ * released rather than only the ones that failed — on a target that can
503
+ * roll back. For apps that must move together.
504
+ */
505
+ atomic?: boolean;
506
+ /**
507
+ * Where credentials come from. Defaults to the environment, then the
508
+ * logins `gkm login` stored. A credential no provider has stops the run
509
+ * with `MissingCredential`; nothing prompts.
510
+ */
511
+ credentials?: CredentialProvider;
512
+ /**
513
+ * On a server target, run a dev service for every construct a deployed
514
+ * stage does not account for — no key in its secrets, and no provider
515
+ * (`deploy.objects`) backing its kind: MinIO for a bucket, Mailpit for
516
+ * mail. Neither is production-grade — Mailpit delivers no mail — and every
517
+ * run that uses one emits `dev-service.used`. Without it, a deployed stage
518
+ * missing a mail or storage key fails with `ExternalServicesNotConfigured`;
519
+ * on an AWS target it fails with `DevServicesNeedServerTarget`.
520
+ */
521
+ allowDevServices?: boolean;
522
+ /**
523
+ * Do not check, on a server target, that each public host resolves to
524
+ * the stage's server (`GKM_SERVER_IPV4`) before the stack starts — for a CDN
525
+ * or proxy in front of the server.
526
+ */
527
+ skipDnsCheck?: boolean;
528
+ /** Receives each progress line as it is written. Defaults to none. */
529
+ logger?: DeployLogger;
530
+ /**
531
+ * Stops the run: in-flight Dokploy requests and docker children are
532
+ * cancelled, the stage's lock is released, and `result` rejects with the
533
+ * signal's reason.
534
+ */
535
+ signal?: AbortSignal;
536
+ /**
537
+ * The CLI's home: stage keys and stored logins. Defaults to `GKM_HOME`,
538
+ * else `~/.gkm`.
539
+ */
540
+ home?: string;
541
+ /**
542
+ * Where docker's own output goes: the host's terminal (`inherit`, the
543
+ * default), its stderr, or nowhere.
544
+ */
545
+ childOutput?: 'inherit' | 'stderr' | 'ignore';
546
+ /**
547
+ * Where the project's own code runs: loading `gkm.config.ts`, discovering
548
+ * its constructs, sniffing each app's environment. Defaults to a
549
+ * `LocalSandbox` on the project — a child process here with an
550
+ * allowlisted environment, for a project the host trusts.
551
+ *
552
+ * A host deploying repositories it does not trust passes one that
553
+ * isolates — a container per build — and the config then reaches the
554
+ * deploy only as data. Credentials never enter a sandbox: they go from
555
+ * `credentials` to the steps that provision, push and release.
556
+ */
557
+ sandbox?: Sandbox;
558
+ }
559
+ /** A deploy in progress. */
560
+ interface DeployRun extends AsyncIterable<DeployEvent> {
561
+ /**
562
+ * What the deploy did, once it is done. Rejects with the error that
563
+ * stopped it — `MissingCredential`, `StateLocked`, `ProjectNotOwned`, … —
564
+ * after a `deploy.failed` event carrying the same.
565
+ */
566
+ readonly result: Promise<DeployResult>;
567
+ }
568
+ /**
569
+ * Deploy a project's stage.
570
+ *
571
+ * ```ts
572
+ * import { deploy } from '@geekmidas/cli/deploy';
573
+ *
574
+ * const run = deploy({ cwd: '/srv/checkouts/shop', stage: 'production' });
575
+ * for await (const event of run) {
576
+ * if (event.type === 'app.deployed') console.log(event.app, event.url);
577
+ * }
578
+ * const result = await run.result;
579
+ * ```
580
+ *
581
+ * The run starts at once; iterating it is optional, and an iteration started
582
+ * late still sees every event from the first.
583
+ */
584
+ export declare function deploy(input: DeployInput): DeployRun;
585
+ //#endregion
586
+ //#region src/deploy/orchestrate.d.ts
587
+ /** Apps were asked for by name that the workspace does not have. */
588
+ export declare class UnknownDeployApps extends Error {
589
+ readonly apps: readonly string[];
590
+ readonly available: readonly string[];
591
+ constructor(apps: readonly string[], available: readonly string[]);
592
+ }
593
+ /** Every app asked for deploys through some other target. */
594
+ export declare class NoDeployableApps extends Error {
595
+ readonly stage: string;
596
+ readonly target: string;
597
+ constructor(stage: string, target: string);
598
+ }
599
+ /** A build-only run through a target with no build phase. */
600
+ export declare class TargetBuildsNothing extends Error {
601
+ readonly target: string;
602
+ constructor(target: string);
603
+ }
604
+ /** A failed rollback, after the failure that called for it. */
605
+ export declare class RollbackFailed extends Error {
606
+ readonly target: string;
607
+ /** What failed first, and was being rolled back. */
608
+ readonly failure: unknown;
609
+ constructor(target: string,
610
+ /** What failed first, and was being rolled back. */
611
+ failure: unknown, cause: unknown);
612
+ }
613
+ //#endregion
614
+ //#region src/deploy/ownership.d.ts
615
+ /**
616
+ * A Dokploy project with the name this deploy would use exists, and nothing
617
+ * says this workspace created it.
618
+ */
619
+ export declare class ProjectNotOwned extends Error {
620
+ readonly projectName: string;
621
+ readonly projectId: string;
622
+ readonly identity: string;
623
+ /** The marker the project carries instead, if it carries one. */
624
+ readonly ownedBy: string | undefined;
625
+ constructor(projectName: string, projectId: string, identity: string,
626
+ /** The marker the project carries instead, if it carries one. */
627
+ ownedBy: string | undefined);
628
+ }
629
+ //#endregion
630
+ //#region src/deploy/registry.d.ts
631
+ /** There is nowhere to push images to, so Dokploy has nothing to pull. */
632
+ export declare class RegistryNotConfigured extends Error {
633
+ readonly stage: string;
634
+ constructor(stage: string);
635
+ }
636
+ /** `deploy.dokploy.registryId` names a registry Dokploy does not have. */
637
+ export declare class RegistryNotFound extends Error {
638
+ readonly registryId: string;
639
+ constructor(registryId: string);
640
+ }
641
+ /** More than one Dokploy registry serves the configured registry. */
642
+ export declare class RegistryAmbiguous extends Error {
643
+ readonly registry: string;
644
+ readonly registryIds: readonly string[];
645
+ constructor(registry: string, registryIds: readonly string[]);
646
+ }
647
+ //#endregion
648
+ export { type AppDeployResult, type AwsCredential, ConfigLoadFailed, ConfigObjectNotSerializable, ConstructDiscoveryFailed, ConstructsNotSerializable, type Credential, type CredentialKind, type CredentialKinds, type CredentialProvider, type CredentialRequest, type DeployEvent, type DeployEventError, type DeployEventType, type DeployIdentity, type DeployInput, type DeployLogger, type DeployPhase, type DeployResult, type DeployRun, DeployTargetNotYetSupported, type DevService, type InstallOptions, InvalidTargetOptions, type LocalSandboxOptions, MissingCredential, type MissingServiceKey, ProviderRemoved, type ResourceChange, type ResourceVia, type RollbackInput, type RolledBack, SECRETS_DIR_ENV, type Sandbox, SandboxCwdEscape, type SandboxExecOptions, type SandboxOutput, type SandboxResult, SecretNameInvalid, StateLocked, StateVersionConflict, type StoredCredentialsOptions, TargetEntryInvalid, TargetPackageInvalid, TargetPackageNotFound, TargetRuntimeMismatch, TargetRuntimeUndeclared, UnknownDeployTarget, chainCredentials, confineCwd, deployIdentity, storedCredentials };
649
+ //# sourceMappingURL=public.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.cts","names":[],"sources":["../../src/home.ts","../../src/providers/types.ts","../../src/providers/config.ts","../../src/deploy/devServices.ts","../../src/providers/notes.ts","../../src/providers/s3/errors.ts","../../src/run.ts","../../src/sandbox/env.ts","../../src/docker/templates.ts","../../src/sandbox/install.ts","../../src/sandbox/local.ts","../../src/sandbox/worker.ts","../../src/target/dokploy/dokploy-api.ts","../../src/target/dokploy/engine.ts","../../src/target/dokploy/health.ts","../../src/target/dokploy/migrations.ts","../../src/target/dokploy/rollback.ts","../../src/target/seeds.ts","../../src/target/sst/health.ts","../../src/target/sst/outputs.ts","../../src/target/sst/index.ts","../../src/deploy/deploy.ts","../../src/deploy/orchestrate.ts","../../src/deploy/ownership.ts","../../src/deploy/registry.ts"],"mappings":"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"}