@geekmidas/cli 10.0.0-alpha.19 → 10.0.0-alpha.190

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 (436) hide show
  1. package/README.md +323 -380
  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-CBKH87_b.mjs +1043 -0
  7. package/dist/EndpointGenerator-CBKH87_b.mjs.map +1 -0
  8. package/dist/EndpointGenerator-iyA3HkOH.cjs +1102 -0
  9. package/dist/EndpointGenerator-iyA3HkOH.cjs.map +1 -0
  10. package/dist/LegacyStateStore-CWiswz6T.mjs +124 -0
  11. package/dist/LegacyStateStore-CWiswz6T.mjs.map +1 -0
  12. package/dist/LegacyStateStore-CuSe37fl.cjs +124 -0
  13. package/dist/LegacyStateStore-CuSe37fl.cjs.map +1 -0
  14. package/dist/LocalStateStore-BciJ_DF0.cjs +178 -0
  15. package/dist/LocalStateStore-BciJ_DF0.cjs.map +1 -0
  16. package/dist/LocalStateStore-CLHasLJI.mjs +167 -0
  17. package/dist/LocalStateStore-CLHasLJI.mjs.map +1 -0
  18. package/dist/OpenApiTsGenerator-CoVA3Ykv.mjs +534 -0
  19. package/dist/OpenApiTsGenerator-CoVA3Ykv.mjs.map +1 -0
  20. package/dist/OpenApiTsGenerator-vy-fOJgs.cjs +539 -0
  21. package/dist/OpenApiTsGenerator-vy-fOJgs.cjs.map +1 -0
  22. package/dist/S3StateStore-BHLRjoj3.cjs +222 -0
  23. package/dist/S3StateStore-BHLRjoj3.cjs.map +1 -0
  24. package/dist/S3StateStore-CTiv2_ON.mjs +223 -0
  25. package/dist/S3StateStore-CTiv2_ON.mjs.map +1 -0
  26. package/dist/SSMStateStore-BqT3MXXb.cjs +204 -0
  27. package/dist/SSMStateStore-BqT3MXXb.cjs.map +1 -0
  28. package/dist/SSMStateStore-D6qqaem2.mjs +205 -0
  29. package/dist/SSMStateStore-D6qqaem2.mjs.map +1 -0
  30. package/dist/SubscriberGenerator-Cfoz8uTY.mjs +787 -0
  31. package/dist/SubscriberGenerator-Cfoz8uTY.mjs.map +1 -0
  32. package/dist/SubscriberGenerator-CxzECrfj.cjs +852 -0
  33. package/dist/SubscriberGenerator-CxzECrfj.cjs.map +1 -0
  34. package/dist/add-B2OmIQzs.cjs +712 -0
  35. package/dist/add-B2OmIQzs.cjs.map +1 -0
  36. package/dist/add-CXwL549o.mjs +710 -0
  37. package/dist/add-CXwL549o.mjs.map +1 -0
  38. package/dist/appPorts-BoXMwolc.mjs +249 -0
  39. package/dist/appPorts-BoXMwolc.mjs.map +1 -0
  40. package/dist/appPorts-IW-OZmRi.cjs +296 -0
  41. package/dist/appPorts-IW-OZmRi.cjs.map +1 -0
  42. package/dist/aws-BXfiWNbi.cjs +108 -0
  43. package/dist/aws-BXfiWNbi.cjs.map +1 -0
  44. package/dist/aws-BjvSTTcE.mjs +97 -0
  45. package/dist/aws-BjvSTTcE.mjs.map +1 -0
  46. package/dist/awsStore-BYYCmXiq.mjs +121 -0
  47. package/dist/awsStore-BYYCmXiq.mjs.map +1 -0
  48. package/dist/awsStore-DKQUElJL.cjs +138 -0
  49. package/dist/awsStore-DKQUElJL.cjs.map +1 -0
  50. package/dist/{backup-provisioner-DIVCbfee.mjs → backup-provisioner-C8DnCmxK.mjs} +2 -2
  51. package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
  52. package/dist/{backup-provisioner-BmhIO_Yr.cjs → backup-provisioner-oDEsPj02.cjs} +2 -2
  53. package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
  54. package/dist/backups/runner.cjs +1007 -0
  55. package/dist/backups/runner.cjs.map +1 -0
  56. package/dist/backups/runner.d.cts +187 -0
  57. package/dist/backups/runner.d.cts.map +1 -0
  58. package/dist/backups/runner.d.mts +187 -0
  59. package/dist/backups/runner.d.mts.map +1 -0
  60. package/dist/backups/runner.mjs +984 -0
  61. package/dist/backups/runner.mjs.map +1 -0
  62. package/dist/{bundler-mwH7WOb1.mjs → bundler-CHXyJFsS.mjs} +68 -15
  63. package/dist/bundler-CHXyJFsS.mjs.map +1 -0
  64. package/dist/{bundler-mjqGAvu1.cjs → bundler-CLoVtcBi.cjs} +67 -14
  65. package/dist/bundler-CLoVtcBi.cjs.map +1 -0
  66. package/dist/cli-Bjua3PaZ.mjs +80 -0
  67. package/dist/cli-Bjua3PaZ.mjs.map +1 -0
  68. package/dist/cli-DiuUr1Am.cjs +80 -0
  69. package/dist/cli-DiuUr1Am.cjs.map +1 -0
  70. package/dist/clientTelemetry-DXuYNH-J.d.cts +10 -0
  71. package/dist/clientTelemetry-DXuYNH-J.d.cts.map +1 -0
  72. package/dist/clientTelemetry-eC8VQ6nB.d.mts +10 -0
  73. package/dist/clientTelemetry-eC8VQ6nB.d.mts.map +1 -0
  74. package/dist/compose-DUOETDhc.mjs +2855 -0
  75. package/dist/compose-DUOETDhc.mjs.map +1 -0
  76. package/dist/compose-gnNrY3NQ.cjs +2939 -0
  77. package/dist/compose-gnNrY3NQ.cjs.map +1 -0
  78. package/dist/config-1zirYXeO.d.mts +300 -0
  79. package/dist/config-1zirYXeO.d.mts.map +1 -0
  80. package/dist/config-rSlB-bXj.d.cts +300 -0
  81. package/dist/config-rSlB-bXj.d.cts.map +1 -0
  82. package/dist/config.cjs +462 -9
  83. package/dist/config.cjs.map +1 -0
  84. package/dist/config.d.cts +4 -117
  85. package/dist/config.d.mts +4 -117
  86. package/dist/config.mjs +446 -3
  87. package/dist/config.mjs.map +1 -0
  88. package/dist/credentialSchemas-D_85KW2k.mjs +236 -0
  89. package/dist/credentialSchemas-D_85KW2k.mjs.map +1 -0
  90. package/dist/credentialSchemas-DjK6xKMk.cjs +271 -0
  91. package/dist/credentialSchemas-DjK6xKMk.cjs.map +1 -0
  92. package/dist/credentials-BI52H1ad.cjs +2911 -0
  93. package/dist/credentials-BI52H1ad.cjs.map +1 -0
  94. package/dist/credentials-Cp09PIsc.cjs +1451 -0
  95. package/dist/credentials-Cp09PIsc.cjs.map +1 -0
  96. package/dist/credentials-DbjLhvix.mjs +1140 -0
  97. package/dist/credentials-DbjLhvix.mjs.map +1 -0
  98. package/dist/credentials-VLP_959f.mjs +2390 -0
  99. package/dist/credentials-VLP_959f.mjs.map +1 -0
  100. package/dist/databases-CV22HzrI.mjs +588 -0
  101. package/dist/databases-CV22HzrI.mjs.map +1 -0
  102. package/dist/databases-DwYYH2mX.cjs +703 -0
  103. package/dist/databases-DwYYH2mX.cjs.map +1 -0
  104. package/dist/dbTunnel-CLsqWr7o.mjs +153 -0
  105. package/dist/dbTunnel-CLsqWr7o.mjs.map +1 -0
  106. package/dist/dbTunnel-DQcdaaLi.cjs +153 -0
  107. package/dist/dbTunnel-DQcdaaLi.cjs.map +1 -0
  108. package/dist/define-BfrNaY82.mjs +106 -0
  109. package/dist/define-BfrNaY82.mjs.map +1 -0
  110. package/dist/define-zKgLY65H.cjs +153 -0
  111. package/dist/define-zKgLY65H.cjs.map +1 -0
  112. package/dist/deploy/public.cjs +210 -0
  113. package/dist/deploy/public.cjs.map +1 -0
  114. package/dist/deploy/public.d.cts +659 -0
  115. package/dist/deploy/public.d.cts.map +1 -0
  116. package/dist/deploy/public.d.mts +659 -0
  117. package/dist/deploy/public.d.mts.map +1 -0
  118. package/dist/deploy/public.mjs +143 -0
  119. package/dist/deploy/public.mjs.map +1 -0
  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 +1 -1
  127. package/dist/deploy/sniffer-hooks.mjs +1 -1
  128. package/dist/deploy/sniffer-loader.cjs +2 -2
  129. package/dist/deploy/sniffer-loader.mjs +1 -1
  130. package/dist/deploy/sniffer-routes-worker.cjs +2 -2
  131. package/dist/deploy/sniffer-routes-worker.mjs +1 -1
  132. package/dist/deploy-DhIy2Ftj.mjs +3854 -0
  133. package/dist/deploy-DhIy2Ftj.mjs.map +1 -0
  134. package/dist/deploy-DpQ_4Pu1.cjs +3910 -0
  135. package/dist/deploy-DpQ_4Pu1.cjs.map +1 -0
  136. package/dist/destroy-DmTDT6V7.cjs +791 -0
  137. package/dist/destroy-DmTDT6V7.cjs.map +1 -0
  138. package/dist/destroy-wV9yNLQV.mjs +790 -0
  139. package/dist/destroy-wV9yNLQV.mjs.map +1 -0
  140. package/dist/discover-Dfmn6HQ7.mjs +940 -0
  141. package/dist/discover-Dfmn6HQ7.mjs.map +1 -0
  142. package/dist/discover-OXczlq08.cjs +1085 -0
  143. package/dist/discover-OXczlq08.cjs.map +1 -0
  144. package/dist/dokploy-B61ww4Yb.cjs +38 -0
  145. package/dist/dokploy-B61ww4Yb.cjs.map +1 -0
  146. package/dist/dokploy-Jhl3sPd4.mjs +38 -0
  147. package/dist/dokploy-Jhl3sPd4.mjs.map +1 -0
  148. package/dist/drivers-BQRb3KsL.mjs +294 -0
  149. package/dist/drivers-BQRb3KsL.mjs.map +1 -0
  150. package/dist/drivers-DP7__dJX.cjs +377 -0
  151. package/dist/drivers-DP7__dJX.cjs.map +1 -0
  152. package/dist/eas-BmvO40xS.mjs +334 -0
  153. package/dist/eas-BmvO40xS.mjs.map +1 -0
  154. package/dist/eas-X09Gz8_E.cjs +337 -0
  155. package/dist/eas-X09Gz8_E.cjs.map +1 -0
  156. package/dist/emit-C4KSXOeS.mjs +153 -0
  157. package/dist/emit-C4KSXOeS.mjs.map +1 -0
  158. package/dist/emit-DiW0kbue.cjs +164 -0
  159. package/dist/emit-DiW0kbue.cjs.map +1 -0
  160. package/dist/encryption-BBIUewnL.cjs +90 -0
  161. package/dist/encryption-BBIUewnL.cjs.map +1 -0
  162. package/dist/encryption-BOmswIgE.mjs +89 -0
  163. package/dist/encryption-BOmswIgE.mjs.map +1 -0
  164. package/dist/engine-BhjhShKf.cjs +3333 -0
  165. package/dist/engine-BhjhShKf.cjs.map +1 -0
  166. package/dist/engine-DW2H3KNa.mjs +3220 -0
  167. package/dist/engine-DW2H3KNa.mjs.map +1 -0
  168. package/dist/errors-C9uIyIDt.mjs +27 -0
  169. package/dist/errors-C9uIyIDt.mjs.map +1 -0
  170. package/dist/errors-D1x8duqI.cjs +38 -0
  171. package/dist/errors-D1x8duqI.cjs.map +1 -0
  172. package/dist/github-Ptbigbrq.mjs +986 -0
  173. package/dist/github-Ptbigbrq.mjs.map +1 -0
  174. package/dist/github-xUtu4Ur7.cjs +987 -0
  175. package/dist/github-xUtu4Ur7.cjs.map +1 -0
  176. package/dist/googlePlay-B4xhz5xT.cjs +931 -0
  177. package/dist/googlePlay-B4xhz5xT.cjs.map +1 -0
  178. package/dist/googlePlay-C9rrwN5b.mjs +931 -0
  179. package/dist/googlePlay-C9rrwN5b.mjs.map +1 -0
  180. package/dist/iam-D7mXd6by.cjs +521 -0
  181. package/dist/iam-D7mXd6by.cjs.map +1 -0
  182. package/dist/iam-DNlbVN_l.mjs +442 -0
  183. package/dist/iam-DNlbVN_l.mjs.map +1 -0
  184. package/dist/{index-RCUizGxL.d.cts → index-B1gfXH5K.d.mts} +38 -14
  185. package/dist/index-B1gfXH5K.d.mts.map +1 -0
  186. package/dist/{index-B4H4XF7A.d.mts → index-CunkOPOu.d.cts} +38 -14
  187. package/dist/index-CunkOPOu.d.cts.map +1 -0
  188. package/dist/index.cjs +15566 -13457
  189. package/dist/index.cjs.map +1 -1
  190. package/dist/index.mjs +15249 -13138
  191. package/dist/index.mjs.map +1 -1
  192. package/dist/local-CvC-z86k.mjs +224 -0
  193. package/dist/local-CvC-z86k.mjs.map +1 -0
  194. package/dist/local-DAJrhvSC.cjs +241 -0
  195. package/dist/local-DAJrhvSC.cjs.map +1 -0
  196. package/dist/migrate-0-A4BOcd.cjs +272 -0
  197. package/dist/migrate-0-A4BOcd.cjs.map +1 -0
  198. package/dist/migrate-C_36JSwV.mjs +181 -0
  199. package/dist/migrate-C_36JSwV.mjs.map +1 -0
  200. package/dist/migrate-DHbXzZIJ.mjs +267 -0
  201. package/dist/migrate-DHbXzZIJ.mjs.map +1 -0
  202. package/dist/migrate-fGWfv2DV.cjs +181 -0
  203. package/dist/migrate-fGWfv2DV.cjs.map +1 -0
  204. package/dist/next.cjs +59 -0
  205. package/dist/next.cjs.map +1 -0
  206. package/dist/next.d.cts +44 -0
  207. package/dist/next.d.cts.map +1 -0
  208. package/dist/next.d.mts +44 -0
  209. package/dist/next.d.mts.map +1 -0
  210. package/dist/next.mjs +58 -0
  211. package/dist/next.mjs.map +1 -0
  212. package/dist/openapi.cjs +213 -7
  213. package/dist/openapi.cjs.map +1 -0
  214. package/dist/openapi.d.cts +27 -8
  215. package/dist/openapi.d.cts.map +1 -1
  216. package/dist/openapi.d.mts +27 -8
  217. package/dist/openapi.d.mts.map +1 -1
  218. package/dist/openapi.mjs +208 -2
  219. package/dist/openapi.mjs.map +1 -0
  220. package/dist/projectBucket-BAoFOQtA.cjs +263 -0
  221. package/dist/projectBucket-BAoFOQtA.cjs.map +1 -0
  222. package/dist/projectBucket-Dxub09V1.mjs +222 -0
  223. package/dist/projectBucket-Dxub09V1.mjs.map +1 -0
  224. package/dist/provider-BvjDbsTR.mjs +46 -0
  225. package/dist/provider-BvjDbsTR.mjs.map +1 -0
  226. package/dist/provider-DLhgo-mB.cjs +57 -0
  227. package/dist/provider-DLhgo-mB.cjs.map +1 -0
  228. package/dist/publish-BX8_zXaf.cjs +124 -0
  229. package/dist/publish-BX8_zXaf.cjs.map +1 -0
  230. package/dist/publish-DE_yBzlz.mjs +123 -0
  231. package/dist/publish-DE_yBzlz.mjs.map +1 -0
  232. package/dist/ready-DCvnFZnJ.cjs +404 -0
  233. package/dist/ready-DCvnFZnJ.cjs.map +1 -0
  234. package/dist/ready-sSPuiZ7N.mjs +375 -0
  235. package/dist/ready-sSPuiZ7N.mjs.map +1 -0
  236. package/dist/reconcile/public.cjs +3 -5
  237. package/dist/reconcile/public.d.cts +33 -89
  238. package/dist/reconcile/public.d.cts.map +1 -1
  239. package/dist/reconcile/public.d.mts +33 -89
  240. package/dist/reconcile/public.d.mts.map +1 -1
  241. package/dist/reconcile/public.mjs +3 -3
  242. package/dist/reconcile--I7V4Klj.mjs +34 -0
  243. package/dist/reconcile--I7V4Klj.mjs.map +1 -0
  244. package/dist/reconcile-CuCQBa5-.cjs +34 -0
  245. package/dist/reconcile-CuCQBa5-.cjs.map +1 -0
  246. package/dist/resolve-CPB2jkB4.cjs +316 -0
  247. package/dist/resolve-CPB2jkB4.cjs.map +1 -0
  248. package/dist/resolve-DCPtP7-X.mjs +263 -0
  249. package/dist/resolve-DCPtP7-X.mjs.map +1 -0
  250. package/dist/rollback-sefKrjlE.mjs +137 -0
  251. package/dist/rollback-sefKrjlE.mjs.map +1 -0
  252. package/dist/rollback-ygh2qRWo.cjs +166 -0
  253. package/dist/rollback-ygh2qRWo.cjs.map +1 -0
  254. package/dist/runtime-BwiWhqkI.d.cts +82 -0
  255. package/dist/runtime-BwiWhqkI.d.cts.map +1 -0
  256. package/dist/runtime-Dx5F8-IL.d.mts +82 -0
  257. package/dist/runtime-Dx5F8-IL.d.mts.map +1 -0
  258. package/dist/s3-Bcvbg8io.cjs +240 -0
  259. package/dist/s3-Bcvbg8io.cjs.map +1 -0
  260. package/dist/s3-DK1ofU4f.mjs +240 -0
  261. package/dist/s3-DK1ofU4f.mjs.map +1 -0
  262. package/dist/sandbox/config-worker.cjs +43 -0
  263. package/dist/sandbox/config-worker.cjs.map +1 -0
  264. package/dist/sandbox/config-worker.d.cts +1 -0
  265. package/dist/sandbox/config-worker.d.mts +1 -0
  266. package/dist/sandbox/config-worker.mjs +44 -0
  267. package/dist/sandbox/config-worker.mjs.map +1 -0
  268. package/dist/sandbox/credentials-worker.cjs +53 -0
  269. package/dist/sandbox/credentials-worker.cjs.map +1 -0
  270. package/dist/sandbox/credentials-worker.d.cts +1 -0
  271. package/dist/sandbox/credentials-worker.d.mts +1 -0
  272. package/dist/sandbox/credentials-worker.mjs +54 -0
  273. package/dist/sandbox/credentials-worker.mjs.map +1 -0
  274. package/dist/sandbox/discover-worker.cjs +47 -0
  275. package/dist/sandbox/discover-worker.cjs.map +1 -0
  276. package/dist/sandbox/discover-worker.d.cts +1 -0
  277. package/dist/sandbox/discover-worker.d.mts +1 -0
  278. package/dist/sandbox/discover-worker.mjs +48 -0
  279. package/dist/sandbox/discover-worker.mjs.map +1 -0
  280. package/dist/sandbox/migrate-worker.cjs +75 -0
  281. package/dist/sandbox/migrate-worker.cjs.map +1 -0
  282. package/dist/sandbox/migrate-worker.d.cts +1 -0
  283. package/dist/sandbox/migrate-worker.d.mts +1 -0
  284. package/dist/sandbox/migrate-worker.mjs +76 -0
  285. package/dist/sandbox/migrate-worker.mjs.map +1 -0
  286. package/dist/{workspace-CRD9YinV.cjs → schemas-BCwKKA42.mjs} +399 -1179
  287. package/dist/schemas-BCwKKA42.mjs.map +1 -0
  288. package/dist/{workspace-Bu3xNCej.mjs → schemas-BQ_v0lEX.cjs} +487 -982
  289. package/dist/schemas-BQ_v0lEX.cjs.map +1 -0
  290. package/dist/secretsManager-CjTo6CRq.mjs +113 -0
  291. package/dist/secretsManager-CjTo6CRq.mjs.map +1 -0
  292. package/dist/secretsManager-CvmBGjdM.cjs +124 -0
  293. package/dist/secretsManager-CvmBGjdM.cjs.map +1 -0
  294. package/dist/seeds-Bc3niNVb.cjs +382 -0
  295. package/dist/seeds-Bc3niNVb.cjs.map +1 -0
  296. package/dist/seeds-Ccn0Ru2T.mjs +299 -0
  297. package/dist/seeds-Ccn0Ru2T.mjs.map +1 -0
  298. package/dist/serverSetup-ClU2iSeU.cjs +686 -0
  299. package/dist/serverSetup-ClU2iSeU.cjs.map +1 -0
  300. package/dist/serverSetup-D68Otrp0.mjs +686 -0
  301. package/dist/serverSetup-D68Otrp0.mjs.map +1 -0
  302. package/dist/sniffer-CFOmQQit.cjs +1997 -0
  303. package/dist/sniffer-CFOmQQit.cjs.map +1 -0
  304. package/dist/sniffer-CRF3eD_B.mjs +1824 -0
  305. package/dist/sniffer-CRF3eD_B.mjs.map +1 -0
  306. package/dist/snsSubscriptions-CwA6Ceg2.mjs +1024 -0
  307. package/dist/snsSubscriptions-CwA6Ceg2.mjs.map +1 -0
  308. package/dist/snsSubscriptions-S_CMCXqI.cjs +1149 -0
  309. package/dist/snsSubscriptions-S_CMCXqI.cjs.map +1 -0
  310. package/dist/sst-BgG7dJJu.cjs +514 -0
  311. package/dist/sst-BgG7dJJu.cjs.map +1 -0
  312. package/dist/sst-CDnHFO3U.mjs +491 -0
  313. package/dist/sst-CDnHFO3U.mjs.map +1 -0
  314. package/dist/stack-BXmLQf3K.mjs +10920 -0
  315. package/dist/stack-BXmLQf3K.mjs.map +1 -0
  316. package/dist/stack-BtnflNSa.cjs +11901 -0
  317. package/dist/stack-BtnflNSa.cjs.map +1 -0
  318. package/dist/stage-BbQidxxa.mjs +302 -0
  319. package/dist/stage-BbQidxxa.mjs.map +1 -0
  320. package/dist/stage-ssuPXLhP.cjs +331 -0
  321. package/dist/stage-ssuPXLhP.cjs.map +1 -0
  322. package/dist/stages-CQwD2QxS.cjs +190 -0
  323. package/dist/stages-CQwD2QxS.cjs.map +1 -0
  324. package/dist/stages-MA2sXnX4.mjs +190 -0
  325. package/dist/stages-MA2sXnX4.mjs.map +1 -0
  326. package/dist/target/public.cjs +15 -0
  327. package/dist/target/public.d.cts +28 -0
  328. package/dist/target/public.d.cts.map +1 -0
  329. package/dist/target/public.d.mts +28 -0
  330. package/dist/target/public.d.mts.map +1 -0
  331. package/dist/target/public.mjs +4 -0
  332. package/dist/terminal-BEGE1AEV.mjs +85 -0
  333. package/dist/terminal-BEGE1AEV.mjs.map +1 -0
  334. package/dist/terminal-BecJpgA3.cjs +85 -0
  335. package/dist/terminal-BecJpgA3.cjs.map +1 -0
  336. package/dist/{types-7R81hu0i.d.mts → types-BvokH0ya.d.cts} +2235 -459
  337. package/dist/types-BvokH0ya.d.cts.map +1 -0
  338. package/dist/{types-N7c2O2m7.d.cts → types-DmLnGeii.d.mts} +2233 -459
  339. package/dist/types-DmLnGeii.d.mts.map +1 -0
  340. package/dist/utils-CdKxD8Lt.mjs +156 -0
  341. package/dist/utils-CdKxD8Lt.mjs.map +1 -0
  342. package/dist/utils-DBqXbB8P.cjs +205 -0
  343. package/dist/utils-DBqXbB8P.cjs.map +1 -0
  344. package/dist/vitest.cjs +65 -0
  345. package/dist/vitest.cjs.map +1 -0
  346. package/dist/vitest.d.cts +29 -0
  347. package/dist/vitest.d.cts.map +1 -0
  348. package/dist/vitest.d.mts +29 -0
  349. package/dist/vitest.d.mts.map +1 -0
  350. package/dist/vitest.mjs +65 -0
  351. package/dist/vitest.mjs.map +1 -0
  352. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  353. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  354. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  355. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  356. package/dist/workspace/index.cjs +6 -2
  357. package/dist/workspace/index.d.cts +3 -3
  358. package/dist/workspace/index.d.mts +3 -3
  359. package/dist/workspace/index.mjs +2 -2
  360. package/dist/workspace-DEmfa9RO.cjs +3689 -0
  361. package/dist/workspace-DEmfa9RO.cjs.map +1 -0
  362. package/dist/workspace-RgU7TBgg.mjs +3133 -0
  363. package/dist/workspace-RgU7TBgg.mjs.map +1 -0
  364. package/package.json +76 -13
  365. package/dist/HostingerProvider-BY26bWwB.mjs +0 -243
  366. package/dist/HostingerProvider-BY26bWwB.mjs.map +0 -1
  367. package/dist/HostingerProvider-BZFGYYVA.cjs +0 -243
  368. package/dist/HostingerProvider-BZFGYYVA.cjs.map +0 -1
  369. package/dist/LocalStateProvider-7HR6SS2t.cjs +0 -48
  370. package/dist/LocalStateProvider-7HR6SS2t.cjs.map +0 -1
  371. package/dist/LocalStateProvider-D7QyJoLM.mjs +0 -48
  372. package/dist/LocalStateProvider-D7QyJoLM.mjs.map +0 -1
  373. package/dist/Route53Provider-Cvj40A8I.mjs +0 -209
  374. package/dist/Route53Provider-Cvj40A8I.mjs.map +0 -1
  375. package/dist/Route53Provider-DVILBsvV.cjs +0 -209
  376. package/dist/Route53Provider-DVILBsvV.cjs.map +0 -1
  377. package/dist/SSMStateProvider-B0Hu1MKZ.mjs +0 -75
  378. package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +0 -1
  379. package/dist/SSMStateProvider-VrQ-yeqd.cjs +0 -74
  380. package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +0 -1
  381. package/dist/backup-provisioner-BmhIO_Yr.cjs.map +0 -1
  382. package/dist/backup-provisioner-DIVCbfee.mjs.map +0 -1
  383. package/dist/bundler-mjqGAvu1.cjs.map +0 -1
  384. package/dist/bundler-mwH7WOb1.mjs.map +0 -1
  385. package/dist/config-DSXI480r.cjs +0 -467
  386. package/dist/config-DSXI480r.cjs.map +0 -1
  387. package/dist/config-DdKkoUE1.mjs +0 -414
  388. package/dist/config-DdKkoUE1.mjs.map +0 -1
  389. package/dist/config.d.cts.map +0 -1
  390. package/dist/config.d.mts.map +0 -1
  391. package/dist/credentials-C6Pfn6GY.cjs +0 -2939
  392. package/dist/credentials-C6Pfn6GY.cjs.map +0 -1
  393. package/dist/credentials-lbv-j0Be.mjs +0 -2802
  394. package/dist/credentials-lbv-j0Be.mjs.map +0 -1
  395. package/dist/discover-BERGFg8v.cjs +0 -288
  396. package/dist/discover-BERGFg8v.cjs.map +0 -1
  397. package/dist/discover-CK-n3w6b.mjs +0 -244
  398. package/dist/discover-CK-n3w6b.mjs.map +0 -1
  399. package/dist/emit-BdoPFjZf.cjs +0 -253
  400. package/dist/emit-BdoPFjZf.cjs.map +0 -1
  401. package/dist/emit-Bzq7JsMP.mjs +0 -224
  402. package/dist/emit-Bzq7JsMP.mjs.map +0 -1
  403. package/dist/generator-LfZU7NlU.mjs +0 -247
  404. package/dist/generator-LfZU7NlU.mjs.map +0 -1
  405. package/dist/generator-Wdfp0jCS.cjs +0 -282
  406. package/dist/generator-Wdfp0jCS.cjs.map +0 -1
  407. package/dist/github-BvfpvBcW.cjs +0 -216
  408. package/dist/github-BvfpvBcW.cjs.map +0 -1
  409. package/dist/github-DW3CP-4D.mjs +0 -216
  410. package/dist/github-DW3CP-4D.mjs.map +0 -1
  411. package/dist/index-B4H4XF7A.d.mts.map +0 -1
  412. package/dist/index-RCUizGxL.d.cts.map +0 -1
  413. package/dist/openapi-B8bu_OXN.cjs +0 -2038
  414. package/dist/openapi-B8bu_OXN.cjs.map +0 -1
  415. package/dist/openapi-DfjbhrsM.mjs +0 -1991
  416. package/dist/openapi-DfjbhrsM.mjs.map +0 -1
  417. package/dist/reconcile-gb1lz1Dk.mjs +0 -113
  418. package/dist/reconcile-gb1lz1Dk.mjs.map +0 -1
  419. package/dist/reconcile-hx_vBvux.cjs +0 -136
  420. package/dist/reconcile-hx_vBvux.cjs.map +0 -1
  421. package/dist/ssm-BKN1Cg4z.mjs +0 -60
  422. package/dist/ssm-BKN1Cg4z.mjs.map +0 -1
  423. package/dist/ssm-FxeSAt35.cjs +0 -60
  424. package/dist/ssm-FxeSAt35.cjs.map +0 -1
  425. package/dist/storage-DgypfSD6.cjs +0 -351
  426. package/dist/storage-DgypfSD6.cjs.map +0 -1
  427. package/dist/storage-TP0x118M.mjs +0 -304
  428. package/dist/storage-TP0x118M.mjs.map +0 -1
  429. package/dist/transfer-DjFZRgub.mjs +0 -122
  430. package/dist/transfer-DjFZRgub.mjs.map +0 -1
  431. package/dist/transfer-SeiSeKEF.cjs +0 -151
  432. package/dist/transfer-SeiSeKEF.cjs.map +0 -1
  433. package/dist/types-7R81hu0i.d.mts.map +0 -1
  434. package/dist/types-N7c2O2m7.d.cts.map +0 -1
  435. package/dist/workspace-Bu3xNCej.mjs.map +0 -1
  436. package/dist/workspace-CRD9YinV.cjs.map +0 -1
@@ -0,0 +1,659 @@
1
+ import { At as ReleasedImage, Bt as SandboxExecOptions, D as WorkspaceConfig, Dt as StateLocked, Et as LocalStateInCi, Ft as DeployIdentity, Gt as GkmError, Ht as SandboxResult, It as deployIdentity, Lt as SECRETS_DIR_ENV, Mt as GithubActor, Nt as LocalActor, Rt as Sandbox, St as ConstructsNotSerializable, U as AnyDeployTarget, Ut as SecretNameInvalid, Vt as SandboxOutput, Wt as confineCwd, _t as StoredCredentialsOptions, at as DeployPhase, bt as ProviderKind, ct as AppDeployResult, dt as Credential, ft as CredentialKind, gt as MissingCredential, ht as CredentialRequest, it as DeployEventType, jt as Actor, kt as StateVersionConflict, lt as DeployResult, mt as CredentialProvider, nt as DeployEvent, ot as ResourceChange, pt as CredentialKinds, r as GkmConfig, rt as DeployEventError, st as ResourceVia, ut as AwsCredential, vt as chainCredentials, xt as ConstructDiscoveryFailed, yt as storedCredentials, zt as SandboxCwdEscape } from "../types-BvokH0ya.cjs";
2
+ import "../index-CunkOPOu.cjs";
3
+ import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-rSlB-bXj.cjs";
4
+ import "../clientTelemetry-DXuYNH-J.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-BwiWhqkI.cjs";
6
+ import { ConstructManifest, Declaration } from "@geekmidas/manifest";
7
+ import "@geekmidas/envkit/sniffer";
8
+ import "@geekmidas/db/pg/roles";
9
+ import "@aws-sdk/client-s3";
10
+ //#region src/home.d.ts
11
+ /**
12
+ * Where the CLI keeps what belongs to a person rather than a project: stage
13
+ * keys and stored provider credentials.
14
+ *
15
+ * `GKM_HOME` names it, so a CI job, a shared build runner or a test can give
16
+ * every run its own instead of reaching into whoever's home directory the
17
+ * process happens to have. Unset, it is `~/.gkm`, where it has always been.
18
+ */
19
+ /** The environment variable that moves the CLI's home. */
20
+ export declare const GKM_HOME_ENV = "GKM_HOME";
21
+ /** The CLI's home: `GKM_HOME` if set, else `~/.gkm`. */
22
+ export declare function gkmHome(env?: NodeJS.ProcessEnv): string;
23
+ //#endregion
24
+ //#region src/providers/config.d.ts
25
+ /** An entry that names no provider gkm has, or is not an entry at all. */
26
+ export declare class UnknownStageProvider extends GkmError {
27
+ readonly kind: ProviderKind;
28
+ readonly stage: string;
29
+ readonly value: unknown;
30
+ constructor(kind: ProviderKind, stage: string, value: unknown);
31
+ }
32
+ //#endregion
33
+ //#region src/deploy/devServices.d.ts
34
+ /**
35
+ * The dev services a deployed stage can run — one per kind that has one on
36
+ * every server target: a bucket's MinIO and mail's Mailpit. A cache or a
37
+ * database is not here because a server stage runs its own anyway.
38
+ */
39
+ export declare const DEV_SERVICES: readonly ['minio', 'mailpit'];
40
+ type DevService = (typeof DEV_SERVICES)[number];
41
+ /** Dev services asked of a target that runs no containers. */
42
+ export declare class DevServicesNeedServerTarget extends GkmError {
43
+ readonly target: string;
44
+ constructor(target: string);
45
+ }
46
+ /**
47
+ * `--allow-dev-services` given a value — the list it used to take. It is a
48
+ * switch now: every construct the stage does not account for gets its dev
49
+ * service.
50
+ */
51
+ export declare class AllowDevServicesTakesNoValue extends GkmError {
52
+ readonly value: string;
53
+ constructor(value: string);
54
+ }
55
+ /** One key a deployed stage needs and its secrets do not hold. */
56
+ interface MissingServiceKey {
57
+ key: string;
58
+ /** The construct that reads it. */
59
+ id: string;
60
+ /** What it is, for the line that names it. */
61
+ what: string;
62
+ /** A line after `what`, for what else there is to know about it. */
63
+ note?: string;
64
+ /** A placeholder value to show in the `gkm secrets:set` line. */
65
+ example: string;
66
+ /** The dev service that would stand in for it, unless the stage accounts for it. */
67
+ service?: DevService;
68
+ /** The apps that read it, where known. */
69
+ apps?: readonly string[];
70
+ /** What creates it, where a provider backs it on the stage. */
71
+ hint?: string;
72
+ }
73
+ /**
74
+ * A deployed stage with mail or object storage that its secrets do not
75
+ * configure — every missing key, across every app, at once.
76
+ */
77
+ export declare class ExternalServicesNotConfigured extends GkmError {
78
+ readonly stage: string;
79
+ readonly missing: readonly MissingServiceKey[];
80
+ constructor(stage: string, missing: readonly MissingServiceKey[]);
81
+ }
82
+ //#endregion
83
+ //#region src/providers/notes.d.ts
84
+ /** A stage that names `false` for a kind, and declares constructs of it. */
85
+ export declare class StageProviderDisabled extends GkmError {
86
+ readonly kind: ProviderKind;
87
+ readonly stage: string;
88
+ readonly ids: readonly string[];
89
+ constructor(kind: ProviderKind, stage: string, ids: readonly string[]);
90
+ }
91
+ //#endregion
92
+ //#region src/providers/s3/errors.d.ts
93
+ /** `verify()`: a provisioned bucket the stage's key cannot reach. */
94
+ export declare class ProvisionedBucketUnreachable extends GkmError {
95
+ readonly id: string;
96
+ readonly bucket: string;
97
+ readonly stage: string;
98
+ readonly reason: string;
99
+ constructor(id: string, bucket: string, stage: string, reason: string);
100
+ }
101
+ //#endregion
102
+ //#region src/run.d.ts
103
+ /** The program ran and exited unsuccessfully; its own output said why. */
104
+ export declare class CommandFailed extends Error {
105
+ readonly command: string;
106
+ readonly args: readonly string[];
107
+ readonly exitCode: number | null;
108
+ readonly signal: NodeJS.Signals | null;
109
+ constructor(command: string, args: readonly string[], exitCode: number | null, signal: NodeJS.Signals | null);
110
+ }
111
+ /** The program ran past its timeout and was killed. */
112
+ export declare class CommandTimedOut extends Error {
113
+ readonly command: string;
114
+ readonly args: readonly string[];
115
+ readonly timeoutMs: number;
116
+ constructor(command: string, args: readonly string[], timeoutMs: number);
117
+ }
118
+ //#endregion
119
+ //#region src/sandbox/env.d.ts
120
+ /**
121
+ * What of the host's environment a local sandbox passes on.
122
+ *
123
+ * An allowlist, not a denylist: a credential's variable has any name its
124
+ * owner chose (`DOKPLOY_TOKEN`, `AWS_SECRET_ACCESS_KEY`, `MY_VAULT_TOKEN`), so
125
+ * the only safe default is to name what a program needs to *run* and pass
126
+ * nothing else.
127
+ */
128
+ /**
129
+ * Variables a command needs to find programs, write temp files, print in the
130
+ * user's locale and reach the network through the host's proxy — and nothing
131
+ * that authenticates as anyone.
132
+ *
133
+ * Deliberately left out:
134
+ * - `NODE_OPTIONS`: it can `--require` or `--import` code into every node
135
+ * process, and CI often holds `--import tsx` there. A step that needs a
136
+ * loader passes its own.
137
+ * - `NODE_AUTH_TOKEN`, `NPM_TOKEN`, `npm_config_*`: registry tokens
138
+ * (`actions/setup-node` writes `NODE_AUTH_TOKEN`), which is why there is no
139
+ * `NODE_*` wildcard.
140
+ * - `AWS_*`, `DOCKER_*`, `DOKPLOY_*`, `GITHUB_TOKEN`, `TURBO_TOKEN`, `GKM_*`:
141
+ * credentials, or where the deploy keeps them.
142
+ * - `SHELL`, `EDITOR` and the rest of a login session: nothing here starts a
143
+ * shell.
144
+ *
145
+ * Proxies are passed: behind one, nothing installs or builds without it. A
146
+ * proxy URL with a password in it reaches the command too — a host that keeps
147
+ * one there and builds code it does not trust should pass a sandbox of its
148
+ * own.
149
+ */
150
+ export declare const SANDBOX_ENV_ALLOWLIST: readonly (string | RegExp)[];
151
+ /**
152
+ * The allowlisted part of `source`, plus each of `extra` the host chose to
153
+ * pass on by name.
154
+ */
155
+ export declare function allowlistedEnv(source?: NodeJS.ProcessEnv, extra?: readonly string[]): Record<string, string>;
156
+ //#endregion
157
+ //#region src/docker/templates.d.ts
158
+ type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun';
159
+ //#endregion
160
+ //#region src/sandbox/install.d.ts
161
+ /** Long enough for a cold install of a large monorepo. */
162
+ export declare const INSTALL_TIMEOUT_MS: number;
163
+ interface InstallOptions {
164
+ /** The directory to install in. Defaults to the sandbox's root. */
165
+ cwd?: string;
166
+ /** Defaults to the one the lockfile above `cwd` names. */
167
+ packageManager?: PackageManager;
168
+ /**
169
+ * Skip every lifecycle script — dependencies' and the project's own —
170
+ * except those of {@link allowScripts}. Defaults to false: scripts run as
171
+ * a plain install runs them, under the package manager's own policy —
172
+ * npm 12 and pnpm 10 skip dependencies' scripts nobody approved.
173
+ */
174
+ ignoreScripts?: boolean;
175
+ /**
176
+ * With `ignoreScripts`, the packages whose scripts still run: rebuilt by
177
+ * name once the install is done.
178
+ */
179
+ allowScripts?: readonly string[];
180
+ /** Variables the install needs beyond the sandbox's own. */
181
+ env?: Readonly<Record<string, string>>;
182
+ /** Defaults to {@link INSTALL_TIMEOUT_MS}, for each command. */
183
+ timeoutMs?: number;
184
+ /** Where the package manager's output goes. Defaults to `inherit`. */
185
+ output?: SandboxOutput;
186
+ signal?: AbortSignal;
187
+ }
188
+ /** A name in `allowScripts` that is not a package name. */
189
+ export declare class InstallAllowlistNameInvalid extends GkmError {
190
+ readonly packageName: string;
191
+ constructor(packageName: string);
192
+ }
193
+ /** The package manager has no way to run only some packages' scripts. */
194
+ export declare class InstallScriptsAllowlistUnsupported extends GkmError {
195
+ readonly packageManager: string;
196
+ readonly allowScripts: readonly string[];
197
+ constructor(packageManager: string, allowScripts: readonly string[]);
198
+ }
199
+ /**
200
+ * Install the project's dependencies in `sandbox`.
201
+ *
202
+ * ```ts
203
+ * // A checkout nobody has reviewed: no scripts but esbuild's.
204
+ * await installDependencies(sandbox, {
205
+ * ignoreScripts: true,
206
+ * allowScripts: ['esbuild'],
207
+ * });
208
+ * ```
209
+ *
210
+ * Resolves with each command's result, in order — with its output when
211
+ * `output` is `capture`.
212
+ *
213
+ * @throws {CommandFailed} when the package manager exits unsuccessfully.
214
+ * @throws {InstallScriptsAllowlistUnsupported} for an allowlist the package
215
+ * manager cannot honour, before anything is installed.
216
+ */
217
+ export declare function installDependencies(sandbox: Sandbox, options?: InstallOptions): Promise<SandboxResult[]>;
218
+ //#endregion
219
+ //#region src/sandbox/local.d.ts
220
+ interface LocalSandboxOptions {
221
+ /** The project. Every command runs at or below it. */
222
+ root: string;
223
+ /**
224
+ * `HOME` for every command. Defaults to the host's, because a build
225
+ * reuses the caches kept there — the pnpm store, corepack's package
226
+ * managers, turbo's cache — and a cold one re-downloads all of them.
227
+ * Point it at an empty directory to keep `~/.aws`, `~/.npmrc` and
228
+ * `~/.docker` out of reach of an SDK's default lookup — though, sharing
229
+ * the host's filesystem, a command that goes looking still finds them.
230
+ */
231
+ home?: string;
232
+ /**
233
+ * Host variables to pass on beyond the allowlist, by name — a remote
234
+ * cache's `TURBO_TOKEN`, for a build the host trusts with it.
235
+ */
236
+ passEnv?: readonly string[];
237
+ /** Where the allowlisted variables are read from. Defaults to `process.env`. */
238
+ hostEnv?: NodeJS.ProcessEnv;
239
+ }
240
+ /**
241
+ * A child process on this machine, as this user, with an allowlisted
242
+ * environment.
243
+ *
244
+ * What it withholds from the command: the host's environment beyond
245
+ * {@link SANDBOX_ENV_ALLOWLIST}, a shell, a working directory outside the
246
+ * project, and any time past the timeout. What it does not: the host's
247
+ * filesystem, which the command can read and write as the user running the
248
+ * deploy. So it is not `isolating`, and it is the default for projects the
249
+ * host already trusts — the developer's own, a team's own CI. Code nobody
250
+ * vetted belongs in a sandbox that is.
251
+ *
252
+ * A timed-out command is sent SIGTERM, then SIGKILL; processes it started
253
+ * itself are its to stop.
254
+ */
255
+ export declare class LocalSandbox implements Sandbox {
256
+ readonly root: string;
257
+ readonly isolating = false;
258
+ readonly env: Readonly<Record<string, string>>;
259
+ constructor(options: LocalSandboxOptions);
260
+ exec(command: string, args: readonly string[], options: SandboxExecOptions): Promise<SandboxResult>;
261
+ }
262
+ //#endregion
263
+ //#region src/sandbox/worker.d.ts
264
+ /** A worker ended without the answer it exists to give. */
265
+ export declare class SandboxWorkerFailed extends Error {
266
+ readonly step: string;
267
+ readonly exitCode: number | null;
268
+ readonly stderr: string;
269
+ constructor(step: string, exitCode: number | null, stderr: string);
270
+ }
271
+ //#endregion
272
+ //#region src/target/dokploy/dokploy-api.d.ts
273
+ /** A deployment Dokploy ran and reported as failed. */
274
+ export declare class DeploymentFailed extends GkmError {
275
+ readonly applicationId: string;
276
+ readonly deployment: DokployDeployment;
277
+ constructor(applicationId: string, deployment: DokployDeployment);
278
+ }
279
+ /** A deployment that had not finished when the deploy stopped waiting. */
280
+ export declare class DeploymentTimedOut extends GkmError {
281
+ readonly applicationId: string;
282
+ readonly timeoutMs: number;
283
+ /** The last status seen, if a deployment had appeared at all. */
284
+ readonly lastStatus: DokployDeploymentStatus | undefined;
285
+ constructor(applicationId: string, timeoutMs: number,
286
+ /** The last status seen, if a deployment had appeared at all. */
287
+ lastStatus: DokployDeploymentStatus | undefined);
288
+ }
289
+ type DokployDeploymentStatus = 'running' | 'done' | 'error' | 'cancelled';
290
+ /** One run of `application.deploy`, as `deployment.all` lists it. */
291
+ interface DokployDeployment {
292
+ deploymentId: string;
293
+ status: DokployDeploymentStatus;
294
+ /** ISO timestamp, by Dokploy's clock. */
295
+ createdAt: string;
296
+ title?: string;
297
+ errorMessage?: string | null;
298
+ }
299
+ //#endregion
300
+ //#region src/target/dokploy/engine.d.ts
301
+ /** A backend failed, so the run stopped before deploying anything after it. */
302
+ export declare class BackendDeployFailed extends Error {
303
+ readonly app: string;
304
+ constructor(app: string, cause: unknown);
305
+ }
306
+ /**
307
+ * Sites failed to release or to answer. Every site is attempted before this
308
+ * is thrown, so one broken site does not keep the others back — but the run
309
+ * fails, and what failed is rolled back.
310
+ */
311
+ export declare class FrontendDeployFailed extends Error {
312
+ readonly apps: readonly string[];
313
+ constructor(apps: readonly string[], cause: unknown);
314
+ }
315
+ /** An app's environment needs values the stage does not have. */
316
+ export declare class MissingEnvVars extends GkmError {
317
+ readonly app: string;
318
+ readonly missing: readonly string[];
319
+ readonly stage: string;
320
+ constructor(app: string, missing: readonly string[], stage: string);
321
+ }
322
+ //#endregion
323
+ //#region src/target/dokploy/health.d.ts
324
+ /** An app never answered healthy enough times in a row. */
325
+ export declare class HealthCheckTimedOut extends GkmError {
326
+ readonly app: string;
327
+ readonly url: string;
328
+ readonly timeoutMs: number;
329
+ /** The last answer's status, or undefined when the last request failed. */
330
+ readonly lastStatus: number | undefined;
331
+ constructor(app: string, url: string, timeoutMs: number,
332
+ /** The last answer's status, or undefined when the last request failed. */
333
+ lastStatus: number | undefined);
334
+ }
335
+ //#endregion
336
+ //#region src/target/dokploy/migrations.d.ts
337
+ /** The migrations of a deployed stage failed; the release stopped before any app. */
338
+ export declare class DeployMigrationsFailed extends Error {
339
+ readonly stage: string;
340
+ /** The failure's class name in the sandbox — `MigrationFailed`, … */
341
+ readonly reason: string;
342
+ constructor(stage: string,
343
+ /** The failure's class name in the sandbox — `MigrationFailed`, … */
344
+ reason: string, message: string);
345
+ }
346
+ //#endregion
347
+ //#region src/target/dokploy/rollback.d.ts
348
+ interface RollbackInput {
349
+ /** The project: the directory holding `gkm.config.ts`, or one inside it. */
350
+ cwd: string;
351
+ stage: string;
352
+ /** The app to roll back. */
353
+ app?: string;
354
+ /** Every app with an earlier release, instead of one. */
355
+ atomic?: boolean;
356
+ /** Defaults to the environment, then the logins `gkm login` stored. */
357
+ credentials?: CredentialProvider;
358
+ signal?: AbortSignal;
359
+ /** Each progress line. Defaults to none. */
360
+ log?: (line: string) => void;
361
+ /** Where the config is loaded. Defaults to a `LocalSandbox` on the project. */
362
+ sandbox?: Sandbox;
363
+ }
364
+ /** One app rolled back. */
365
+ interface RolledBack {
366
+ app: string;
367
+ from: ReleasedImage;
368
+ to: ReleasedImage;
369
+ }
370
+ /** Neither an app nor every app was asked for. */
371
+ export declare class RollbackNeedsApp extends GkmError {
372
+ readonly stage: string;
373
+ /** The apps that have a release to go back to. */
374
+ readonly apps: readonly string[];
375
+ constructor(stage: string,
376
+ /** The apps that have a release to go back to. */
377
+ apps: readonly string[]);
378
+ }
379
+ /** An app has no release before the one it runs. */
380
+ export declare class NothingToRollBack extends GkmError {
381
+ readonly stage: string;
382
+ readonly app: string;
383
+ constructor(stage: string, app: string);
384
+ }
385
+ /** The stage was never deployed through Dokploy from this state. */
386
+ export declare class StageNeverDeployed extends GkmError {
387
+ readonly stage: string;
388
+ constructor(stage: string);
389
+ }
390
+ /**
391
+ * Roll a stage's app — or, `atomic`, all of them — back to its previous
392
+ * release, holding the stage's lock as a deploy does.
393
+ */
394
+ export declare function rollbackStage(input: RollbackInput): Promise<RolledBack[]>;
395
+ //#endregion
396
+ //#region src/target/seeds.d.ts
397
+ /** A seed of a deployed stage failed; the release stopped before any app. */
398
+ export declare class DeploySeedsFailed extends Error {
399
+ readonly stage: string;
400
+ /** The construct whose seed failed: `Database`. */
401
+ readonly construct: string;
402
+ /** The seed file, by name: `001_roles`. */
403
+ readonly seed: string;
404
+ readonly cause: unknown;
405
+ constructor(stage: string,
406
+ /** The construct whose seed failed: `Database`. */
407
+ construct: string,
408
+ /** The seed file, by name: `001_roles`. */
409
+ seed: string, cause: unknown);
410
+ }
411
+ //#endregion
412
+ //#region src/target/sst/health.d.ts
413
+ /** Surfaces that never answered healthy. */
414
+ export declare class SurfacesUnhealthy extends GkmError {
415
+ readonly stage: string;
416
+ /** Each surface that failed, with the last thing it answered. */
417
+ readonly surfaces: readonly {
418
+ app: string;
419
+ url: string;
420
+ status?: number;
421
+ error?: string;
422
+ }[];
423
+ constructor(stage: string,
424
+ /** Each surface that failed, with the last thing it answered. */
425
+ surfaces: readonly {
426
+ app: string;
427
+ url: string;
428
+ status?: number;
429
+ error?: string;
430
+ }[]);
431
+ }
432
+ //#endregion
433
+ //#region src/target/sst/outputs.d.ts
434
+ /** `.sst/outputs.json` is there, and is not JSON. */
435
+ export declare class SstOutputsUnreadable extends GkmError {
436
+ readonly path: string;
437
+ readonly reason: string;
438
+ constructor(path: string, reason: string);
439
+ }
440
+ //#endregion
441
+ //#region src/target/sst/index.d.ts
442
+ /** The workspace has no `sst.config.ts` for `sst deploy` to run. */
443
+ export declare class SstConfigNotFound extends GkmError {
444
+ readonly cwd: string;
445
+ constructor(cwd: string);
446
+ }
447
+ //#endregion
448
+ //#region src/deploy/deploy.d.ts
449
+ /**
450
+ * Where a run's progress lines go, besides its events. `@geekmidas/logger`'s
451
+ * `Logger` is one.
452
+ */
453
+ interface DeployLogger {
454
+ info(message: string): void;
455
+ warn(message: string): void;
456
+ error?(message: string): void;
457
+ }
458
+ interface DeployInput {
459
+ /**
460
+ * The project to deploy: the directory holding `gkm.config.ts`, or any
461
+ * directory inside it. Never assumed to be `process.cwd()`.
462
+ */
463
+ cwd: string;
464
+ /**
465
+ * The workspace's config, already loaded by the caller — `gkm deploy` and
466
+ * `gkm compose` load it in their own process, with the environment they
467
+ * were run in. Every step of the run then reads these settings rather than
468
+ * loading the file again in the sandbox, whose environment is an
469
+ * allowlist: a config reading `process.env.DOMAIN` gave the deploy no
470
+ * domain. Absent, the run loads it in its sandbox, as for a checkout the
471
+ * host does not trust; a host that passes one vouches for it.
472
+ */
473
+ config?: GkmConfig | WorkspaceConfig;
474
+ /**
475
+ * The stage to deploy — one of the config's deployed stages, or its local
476
+ * stage through a target that runs one (`compose`).
477
+ */
478
+ stage: string;
479
+ /**
480
+ * The target to deploy through, by name. Defaults to `deploy.default`,
481
+ * else `dokploy`.
482
+ */
483
+ target?: string;
484
+ /**
485
+ * The host's own targets, by name. Consulted before the built-ins and the
486
+ * config's `deploy.targets`, so a host can deploy through an
487
+ * implementation of its own — `{ dokploy: myDokploy }` included.
488
+ */
489
+ targets?: Record<string, AnyDeployTarget>;
490
+ /** The image tag. Defaults to `<stage>-<timestamp>`. */
491
+ tag?: string;
492
+ /** Deploy only these apps (in dependency order). Defaults to all. */
493
+ apps?: string[];
494
+ /**
495
+ * Look everything up and report what would happen — as `resource.planned`
496
+ * events — without taking the lock, writing state, generating secrets,
497
+ * changing Dokploy or building and pushing images.
498
+ */
499
+ dryRun?: boolean;
500
+ /**
501
+ * Validate and build only: the target's images built — and pushed, where
502
+ * it pushes them — with no lock taken and nothing provisioned, released,
503
+ * verified or recorded. `gkm compose --build --push` runs this way.
504
+ */
505
+ buildOnly?: boolean;
506
+ /**
507
+ * When a release or its verification fails, roll back every app the run
508
+ * released rather than only the ones that failed — on a target that can
509
+ * roll back. For apps that must move together.
510
+ */
511
+ atomic?: boolean;
512
+ /**
513
+ * Where credentials come from. Defaults to the environment, then the
514
+ * logins `gkm login` stored. A credential no provider has stops the run
515
+ * with `MissingCredential`; nothing prompts.
516
+ */
517
+ credentials?: CredentialProvider;
518
+ /**
519
+ * On a server target, run a dev service for every construct a deployed
520
+ * stage does not account for — no key in its secrets, and no provider
521
+ * (`deploy.objects`) backing its kind: MinIO for a bucket, Mailpit for
522
+ * mail. Neither is production-grade — Mailpit delivers no mail — and every
523
+ * run that uses one emits `dev-service.used`. Without it, a deployed stage
524
+ * missing a mail or storage key fails with `ExternalServicesNotConfigured`;
525
+ * on an AWS target it fails with `DevServicesNeedServerTarget`.
526
+ */
527
+ allowDevServices?: boolean;
528
+ /**
529
+ * On a server target, neither write the public hosts' DNS records nor
530
+ * check that they point at the stage's server (`GKM_SERVER_IPV4`) — for a
531
+ * CDN or proxy in front of the server, or records written by another step.
532
+ */
533
+ skipDns?: boolean;
534
+ /** Each provider issues its runtime keys a successor. */
535
+ rotateKeys?: boolean;
536
+ /** Delete a rotated-out key now, not after the next deploy. */
537
+ retireOldKeys?: boolean;
538
+ /** Receives each progress line as it is written. Defaults to none. */
539
+ logger?: DeployLogger;
540
+ /**
541
+ * Stops the run: in-flight Dokploy requests and docker children are
542
+ * cancelled, the stage's lock is released, and `result` rejects with the
543
+ * signal's reason.
544
+ */
545
+ signal?: AbortSignal;
546
+ /**
547
+ * The CLI's home: stage keys and stored logins. Defaults to `GKM_HOME`,
548
+ * else `~/.gkm`.
549
+ */
550
+ home?: string;
551
+ /**
552
+ * Where docker's own output goes: the host's terminal (`inherit`, the
553
+ * default), its stderr, or nowhere.
554
+ */
555
+ childOutput?: 'inherit' | 'stderr' | 'ignore';
556
+ /**
557
+ * Where the project's own code runs: loading `gkm.config.ts`, discovering
558
+ * its constructs, sniffing each app's environment. Defaults to a
559
+ * `LocalSandbox` on the project — a child process here with an
560
+ * allowlisted environment, for a project the host trusts.
561
+ *
562
+ * A host deploying repositories it does not trust passes one that
563
+ * isolates — a container per build — and the config then reaches the
564
+ * deploy only as data. Credentials never enter a sandbox: they go from
565
+ * `credentials` to the steps that provision, push and release.
566
+ */
567
+ sandbox?: Sandbox;
568
+ }
569
+ /** A deploy in progress. */
570
+ interface DeployRun extends AsyncIterable<DeployEvent> {
571
+ /**
572
+ * What the deploy did, once it is done. Rejects with the error that
573
+ * stopped it — `MissingCredential`, `StateLocked`, `ProjectNotOwned`, … —
574
+ * after a `deploy.failed` event carrying the same.
575
+ */
576
+ readonly result: Promise<DeployResult>;
577
+ }
578
+ /**
579
+ * Deploy a project's stage.
580
+ *
581
+ * ```ts
582
+ * import { deploy } from '@geekmidas/cli/deploy';
583
+ *
584
+ * const run = deploy({ cwd: '/srv/checkouts/shop', stage: 'production' });
585
+ * for await (const event of run) {
586
+ * if (event.type === 'app.deployed') console.log(event.app, event.url);
587
+ * }
588
+ * const result = await run.result;
589
+ * ```
590
+ *
591
+ * The run starts at once; iterating it is optional, and an iteration started
592
+ * late still sees every event from the first.
593
+ */
594
+ export declare function deploy(input: DeployInput): DeployRun;
595
+ //#endregion
596
+ //#region src/deploy/orchestrate.d.ts
597
+ /** Apps were asked for by name that the workspace does not have. */
598
+ export declare class UnknownDeployApps extends GkmError {
599
+ readonly apps: readonly string[];
600
+ readonly available: readonly string[];
601
+ constructor(apps: readonly string[], available: readonly string[]);
602
+ }
603
+ /** Every app asked for deploys through some other target. */
604
+ export declare class NoDeployableApps extends GkmError {
605
+ readonly stage: string;
606
+ readonly target: string;
607
+ constructor(stage: string, target: string);
608
+ }
609
+ /** A build-only run through a target with no build phase. */
610
+ export declare class TargetBuildsNothing extends GkmError {
611
+ readonly target: string;
612
+ constructor(target: string);
613
+ }
614
+ /** A failed rollback, after the failure that called for it. */
615
+ export declare class RollbackFailed extends Error {
616
+ readonly target: string;
617
+ /** What failed first, and was being rolled back. */
618
+ readonly failure: unknown;
619
+ constructor(target: string,
620
+ /** What failed first, and was being rolled back. */
621
+ failure: unknown, cause: unknown);
622
+ }
623
+ //#endregion
624
+ //#region src/deploy/ownership.d.ts
625
+ /**
626
+ * A Dokploy project with the name this deploy would use exists, and nothing
627
+ * says this workspace created it.
628
+ */
629
+ export declare class ProjectNotOwned extends GkmError {
630
+ readonly projectName: string;
631
+ readonly projectId: string;
632
+ readonly identity: string;
633
+ /** The marker the project carries instead, if it carries one. */
634
+ readonly ownedBy: string | undefined;
635
+ constructor(projectName: string, projectId: string, identity: string,
636
+ /** The marker the project carries instead, if it carries one. */
637
+ ownedBy: string | undefined);
638
+ }
639
+ //#endregion
640
+ //#region src/deploy/registry.d.ts
641
+ /** There is nowhere to push images to, so Dokploy has nothing to pull. */
642
+ export declare class RegistryNotConfigured extends GkmError {
643
+ readonly stage: string;
644
+ constructor(stage: string);
645
+ }
646
+ /** `deploy.dokploy.registryId` names a registry Dokploy does not have. */
647
+ export declare class RegistryNotFound extends GkmError {
648
+ readonly registryId: string;
649
+ constructor(registryId: string);
650
+ }
651
+ /** More than one Dokploy registry serves the configured registry. */
652
+ export declare class RegistryAmbiguous extends GkmError {
653
+ readonly registry: string;
654
+ readonly registryIds: readonly string[];
655
+ constructor(registry: string, registryIds: readonly string[]);
656
+ }
657
+ //#endregion
658
+ export { type Actor, 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 GithubActor, type InstallOptions, InvalidTargetOptions, type LocalActor, type LocalSandboxOptions, LocalStateInCi, 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 };
659
+ //# sourceMappingURL=public.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.cts","names":[],"sources":["../../src/home.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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"}