@geekmidas/cli 10.0.0-alpha.15 → 10.0.0-alpha.151

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 (438) hide show
  1. package/README.md +313 -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-CusLH-9S.mjs +1037 -0
  7. package/dist/EndpointGenerator-CusLH-9S.mjs.map +1 -0
  8. package/dist/EndpointGenerator-DyLMYClE.cjs +1096 -0
  9. package/dist/EndpointGenerator-DyLMYClE.cjs.map +1 -0
  10. package/dist/GoDaddyProvider-BZYq0-nV.cjs +412 -0
  11. package/dist/GoDaddyProvider-BZYq0-nV.cjs.map +1 -0
  12. package/dist/GoDaddyProvider-D-8GW8cP.mjs +412 -0
  13. package/dist/GoDaddyProvider-D-8GW8cP.mjs.map +1 -0
  14. package/dist/{HostingerProvider-BZFGYYVA.cjs → HostingerProvider-BxRR2ibx.cjs} +23 -9
  15. package/dist/HostingerProvider-BxRR2ibx.cjs.map +1 -0
  16. package/dist/{HostingerProvider-BY26bWwB.mjs → HostingerProvider-C-C4aiKF.mjs} +23 -9
  17. package/dist/HostingerProvider-C-C4aiKF.mjs.map +1 -0
  18. package/dist/LegacyStateStore-BFkNiBxC.mjs +124 -0
  19. package/dist/LegacyStateStore-BFkNiBxC.mjs.map +1 -0
  20. package/dist/LegacyStateStore-DYaamZqR.cjs +124 -0
  21. package/dist/LegacyStateStore-DYaamZqR.cjs.map +1 -0
  22. package/dist/LocalStateStore-7pP4naiB.mjs +167 -0
  23. package/dist/LocalStateStore-7pP4naiB.mjs.map +1 -0
  24. package/dist/LocalStateStore-C0JSjyCg.cjs +178 -0
  25. package/dist/LocalStateStore-C0JSjyCg.cjs.map +1 -0
  26. package/dist/OpenApiTsGenerator-BTMuu1WS.mjs +534 -0
  27. package/dist/OpenApiTsGenerator-BTMuu1WS.mjs.map +1 -0
  28. package/dist/OpenApiTsGenerator-CI-tceXV.cjs +539 -0
  29. package/dist/OpenApiTsGenerator-CI-tceXV.cjs.map +1 -0
  30. package/dist/{Route53Provider-Cvj40A8I.mjs → Route53Provider-Di_SD9CF.mjs} +3 -3
  31. package/dist/Route53Provider-Di_SD9CF.mjs.map +1 -0
  32. package/dist/{Route53Provider-DVILBsvV.cjs → Route53Provider-emLuQHVw.cjs} +3 -3
  33. package/dist/Route53Provider-emLuQHVw.cjs.map +1 -0
  34. package/dist/S3StateStore-BnmbFco-.cjs +222 -0
  35. package/dist/S3StateStore-BnmbFco-.cjs.map +1 -0
  36. package/dist/S3StateStore-Dzyuiy3V.mjs +223 -0
  37. package/dist/S3StateStore-Dzyuiy3V.mjs.map +1 -0
  38. package/dist/SSMStateStore-BLbjoEFc.cjs +204 -0
  39. package/dist/SSMStateStore-BLbjoEFc.cjs.map +1 -0
  40. package/dist/SSMStateStore-BcNH7efc.mjs +205 -0
  41. package/dist/SSMStateStore-BcNH7efc.mjs.map +1 -0
  42. package/dist/SubscriberGenerator-BNJyPmXJ.cjs +848 -0
  43. package/dist/SubscriberGenerator-BNJyPmXJ.cjs.map +1 -0
  44. package/dist/SubscriberGenerator-CzPrixYu.mjs +783 -0
  45. package/dist/SubscriberGenerator-CzPrixYu.mjs.map +1 -0
  46. package/dist/add-SHsas9Yu.mjs +711 -0
  47. package/dist/add-SHsas9Yu.mjs.map +1 -0
  48. package/dist/add-moAE6nV4.cjs +713 -0
  49. package/dist/add-moAE6nV4.cjs.map +1 -0
  50. package/dist/appPorts-BoXMwolc.mjs +249 -0
  51. package/dist/appPorts-BoXMwolc.mjs.map +1 -0
  52. package/dist/appPorts-IW-OZmRi.cjs +296 -0
  53. package/dist/appPorts-IW-OZmRi.cjs.map +1 -0
  54. package/dist/apps-BOgA6AcI.mjs +5534 -0
  55. package/dist/apps-BOgA6AcI.mjs.map +1 -0
  56. package/dist/apps-DkxHjd59.cjs +6148 -0
  57. package/dist/apps-DkxHjd59.cjs.map +1 -0
  58. package/dist/aws-8QQ8n-t6.mjs +89 -0
  59. package/dist/aws-8QQ8n-t6.mjs.map +1 -0
  60. package/dist/aws-DY9NqQIT.cjs +100 -0
  61. package/dist/aws-DY9NqQIT.cjs.map +1 -0
  62. package/dist/awsStore-Bx5nCFnS.mjs +121 -0
  63. package/dist/awsStore-Bx5nCFnS.mjs.map +1 -0
  64. package/dist/awsStore-u3ehhMoY.cjs +138 -0
  65. package/dist/awsStore-u3ehhMoY.cjs.map +1 -0
  66. package/dist/{backup-provisioner-DIVCbfee.mjs → backup-provisioner-C8DnCmxK.mjs} +2 -2
  67. package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
  68. package/dist/{backup-provisioner-BmhIO_Yr.cjs → backup-provisioner-oDEsPj02.cjs} +2 -2
  69. package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
  70. package/dist/backups/runner.cjs +519 -0
  71. package/dist/backups/runner.cjs.map +1 -0
  72. package/dist/backups/runner.d.cts +102 -0
  73. package/dist/backups/runner.d.cts.map +1 -0
  74. package/dist/backups/runner.d.mts +102 -0
  75. package/dist/backups/runner.d.mts.map +1 -0
  76. package/dist/backups/runner.mjs +506 -0
  77. package/dist/backups/runner.mjs.map +1 -0
  78. package/dist/{bundler-BeNDZdHQ.cjs → bundler-D0spRLb-.cjs} +59 -14
  79. package/dist/bundler-D0spRLb-.cjs.map +1 -0
  80. package/dist/{bundler-BodTL4kf.mjs → bundler-Dy-Dfchf.mjs} +59 -14
  81. package/dist/bundler-Dy-Dfchf.mjs.map +1 -0
  82. package/dist/cli-BmCyUTZf.cjs +71 -0
  83. package/dist/cli-BmCyUTZf.cjs.map +1 -0
  84. package/dist/cli-BpT_gg4n.mjs +71 -0
  85. package/dist/cli-BpT_gg4n.mjs.map +1 -0
  86. package/dist/compose-0HkjQywT.cjs +3046 -0
  87. package/dist/compose-0HkjQywT.cjs.map +1 -0
  88. package/dist/compose-B3OOowfE.mjs +1560 -0
  89. package/dist/compose-B3OOowfE.mjs.map +1 -0
  90. package/dist/compose-BIXEPrGA.mjs +2957 -0
  91. package/dist/compose-BIXEPrGA.mjs.map +1 -0
  92. package/dist/compose-BP8OeV7P.cjs +1919 -0
  93. package/dist/compose-BP8OeV7P.cjs.map +1 -0
  94. package/dist/config-BLrAd7Of.mjs +659 -0
  95. package/dist/config-BLrAd7Of.mjs.map +1 -0
  96. package/dist/config-CRk2vdSp.d.mts +268 -0
  97. package/dist/config-CRk2vdSp.d.mts.map +1 -0
  98. package/dist/config-juUyBlb1.cjs +772 -0
  99. package/dist/config-juUyBlb1.cjs.map +1 -0
  100. package/dist/config-oBgsbLip.d.cts +268 -0
  101. package/dist/config-oBgsbLip.d.cts.map +1 -0
  102. package/dist/config.cjs +11 -3
  103. package/dist/config.d.cts +4 -117
  104. package/dist/config.d.mts +4 -117
  105. package/dist/config.mjs +3 -3
  106. package/dist/credentialSchemas-BAklWDna.cjs +271 -0
  107. package/dist/credentialSchemas-BAklWDna.cjs.map +1 -0
  108. package/dist/credentialSchemas-mz9QZTYh.mjs +236 -0
  109. package/dist/credentialSchemas-mz9QZTYh.mjs.map +1 -0
  110. package/dist/credentials-B6ZwGsy-.cjs +2272 -0
  111. package/dist/credentials-B6ZwGsy-.cjs.map +1 -0
  112. package/dist/credentials-DRfP9aG7.mjs +1817 -0
  113. package/dist/credentials-DRfP9aG7.mjs.map +1 -0
  114. package/dist/databases-DawSdqBI.cjs +703 -0
  115. package/dist/databases-DawSdqBI.cjs.map +1 -0
  116. package/dist/databases-mzSUFBTw.mjs +588 -0
  117. package/dist/databases-mzSUFBTw.mjs.map +1 -0
  118. package/dist/define-6poNqm5O.mjs +106 -0
  119. package/dist/define-6poNqm5O.mjs.map +1 -0
  120. package/dist/define-crmMcXFS.cjs +153 -0
  121. package/dist/define-crmMcXFS.cjs.map +1 -0
  122. package/dist/deploy/public.cjs +211 -0
  123. package/dist/deploy/public.cjs.map +1 -0
  124. package/dist/deploy/public.d.cts +647 -0
  125. package/dist/deploy/public.d.cts.map +1 -0
  126. package/dist/deploy/public.d.mts +647 -0
  127. package/dist/deploy/public.d.mts.map +1 -0
  128. package/dist/deploy/public.mjs +144 -0
  129. package/dist/deploy/public.mjs.map +1 -0
  130. package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
  131. package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
  132. package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
  133. package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
  134. package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
  135. package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
  136. package/dist/deploy/sniffer-hooks.cjs +1 -1
  137. package/dist/deploy/sniffer-hooks.mjs +1 -1
  138. package/dist/deploy/sniffer-loader.cjs +2 -2
  139. package/dist/deploy/sniffer-loader.mjs +1 -1
  140. package/dist/deploy/sniffer-routes-worker.cjs +2 -2
  141. package/dist/deploy/sniffer-routes-worker.mjs +1 -1
  142. package/dist/deploy-BgOujGGL.mjs +3836 -0
  143. package/dist/deploy-BgOujGGL.mjs.map +1 -0
  144. package/dist/deploy-ciuNiVqo.cjs +3892 -0
  145. package/dist/deploy-ciuNiVqo.cjs.map +1 -0
  146. package/dist/discover-CRywE7yc.cjs +1085 -0
  147. package/dist/discover-CRywE7yc.cjs.map +1 -0
  148. package/dist/discover-DbDrCQ8h.mjs +940 -0
  149. package/dist/discover-DbDrCQ8h.mjs.map +1 -0
  150. package/dist/docker-74kvq2jQ.cjs +1514 -0
  151. package/dist/docker-74kvq2jQ.cjs.map +1 -0
  152. package/dist/docker-CXYz3W2U.mjs +1407 -0
  153. package/dist/docker-CXYz3W2U.mjs.map +1 -0
  154. package/dist/dokploy-CrxDMut1.cjs +38 -0
  155. package/dist/dokploy-CrxDMut1.cjs.map +1 -0
  156. package/dist/dokploy-tNy6ZU64.mjs +38 -0
  157. package/dist/dokploy-tNy6ZU64.mjs.map +1 -0
  158. package/dist/drivers-aM87NQJi.cjs +224 -0
  159. package/dist/drivers-aM87NQJi.cjs.map +1 -0
  160. package/dist/drivers-uxLBq3e3.mjs +195 -0
  161. package/dist/drivers-uxLBq3e3.mjs.map +1 -0
  162. package/dist/eas-B3yv_XVz.mjs +334 -0
  163. package/dist/eas-B3yv_XVz.mjs.map +1 -0
  164. package/dist/eas-CiORdzk0.cjs +337 -0
  165. package/dist/eas-CiORdzk0.cjs.map +1 -0
  166. package/dist/emit-Bj6XSivk.mjs +136 -0
  167. package/dist/emit-Bj6XSivk.mjs.map +1 -0
  168. package/dist/emit-CDC__ubE.cjs +147 -0
  169. package/dist/emit-CDC__ubE.cjs.map +1 -0
  170. package/dist/encryption-Birkm2_E.mjs +89 -0
  171. package/dist/encryption-Birkm2_E.mjs.map +1 -0
  172. package/dist/encryption-drgYmkGP.cjs +90 -0
  173. package/dist/encryption-drgYmkGP.cjs.map +1 -0
  174. package/dist/engine-CW78Wt8x.mjs +3217 -0
  175. package/dist/engine-CW78Wt8x.mjs.map +1 -0
  176. package/dist/engine-CfLaQ0bJ.cjs +3330 -0
  177. package/dist/engine-CfLaQ0bJ.cjs.map +1 -0
  178. package/dist/errors-D8Gwp5kU.mjs +23 -0
  179. package/dist/errors-D8Gwp5kU.mjs.map +1 -0
  180. package/dist/errors-DMC4Umsb.cjs +34 -0
  181. package/dist/errors-DMC4Umsb.cjs.map +1 -0
  182. package/dist/github-BfLlBWB5.cjs +901 -0
  183. package/dist/github-BfLlBWB5.cjs.map +1 -0
  184. package/dist/github-DphkHybE.mjs +900 -0
  185. package/dist/github-DphkHybE.mjs.map +1 -0
  186. package/dist/googlePlay-BWDhYvH_.cjs +931 -0
  187. package/dist/googlePlay-BWDhYvH_.cjs.map +1 -0
  188. package/dist/googlePlay-CjzqTF8t.mjs +931 -0
  189. package/dist/googlePlay-CjzqTF8t.mjs.map +1 -0
  190. package/dist/{index-D-iAVHx-.d.cts → index-B35vTdAW.d.cts} +39 -15
  191. package/dist/index-B35vTdAW.d.cts.map +1 -0
  192. package/dist/{index-Cd-qeOam.d.mts → index-Dv1Zj86i.d.mts} +39 -15
  193. package/dist/index-Dv1Zj86i.d.mts.map +1 -0
  194. package/dist/index.cjs +13594 -12347
  195. package/dist/index.cjs.map +1 -1
  196. package/dist/index.mjs +13541 -12292
  197. package/dist/index.mjs.map +1 -1
  198. package/dist/local-Bt9jPziD.cjs +241 -0
  199. package/dist/local-Bt9jPziD.cjs.map +1 -0
  200. package/dist/local-DBtepRK5.mjs +224 -0
  201. package/dist/local-DBtepRK5.mjs.map +1 -0
  202. package/dist/migrate-2YESt4v9.mjs +267 -0
  203. package/dist/migrate-2YESt4v9.mjs.map +1 -0
  204. package/dist/migrate-B-_cASJt.cjs +272 -0
  205. package/dist/migrate-B-_cASJt.cjs.map +1 -0
  206. package/dist/migrate-BUhe0BuA.cjs +181 -0
  207. package/dist/migrate-BUhe0BuA.cjs.map +1 -0
  208. package/dist/migrate-Dp_Y2XGi.mjs +181 -0
  209. package/dist/migrate-Dp_Y2XGi.mjs.map +1 -0
  210. package/dist/notes-DHN4qThL.mjs +399 -0
  211. package/dist/notes-DHN4qThL.mjs.map +1 -0
  212. package/dist/notes-DUq6Bx1I.cjs +500 -0
  213. package/dist/notes-DUq6Bx1I.cjs.map +1 -0
  214. package/dist/openapi.cjs +213 -7
  215. package/dist/openapi.cjs.map +1 -0
  216. package/dist/openapi.d.cts +32 -8
  217. package/dist/openapi.d.cts.map +1 -1
  218. package/dist/openapi.d.mts +32 -8
  219. package/dist/openapi.d.mts.map +1 -1
  220. package/dist/openapi.mjs +208 -2
  221. package/dist/openapi.mjs.map +1 -0
  222. package/dist/projectBucket-CxsutB3D.cjs +263 -0
  223. package/dist/projectBucket-CxsutB3D.cjs.map +1 -0
  224. package/dist/projectBucket-DzLZlleB.mjs +222 -0
  225. package/dist/projectBucket-DzLZlleB.mjs.map +1 -0
  226. package/dist/provider-BqpjG9QM.cjs +57 -0
  227. package/dist/provider-BqpjG9QM.cjs.map +1 -0
  228. package/dist/provider-CEOKk8NS.mjs +46 -0
  229. package/dist/provider-CEOKk8NS.mjs.map +1 -0
  230. package/dist/publish-BVal0GFd.mjs +123 -0
  231. package/dist/publish-BVal0GFd.mjs.map +1 -0
  232. package/dist/publish-DmTJhVe8.cjs +124 -0
  233. package/dist/publish-DmTJhVe8.cjs.map +1 -0
  234. package/dist/ready-BNh3zsSn.cjs +404 -0
  235. package/dist/ready-BNh3zsSn.cjs.map +1 -0
  236. package/dist/ready-g25dcGzK.mjs +375 -0
  237. package/dist/ready-g25dcGzK.mjs.map +1 -0
  238. package/dist/reconcile/public.cjs +3 -5
  239. package/dist/reconcile/public.d.cts +31 -89
  240. package/dist/reconcile/public.d.cts.map +1 -1
  241. package/dist/reconcile/public.d.mts +31 -89
  242. package/dist/reconcile/public.d.mts.map +1 -1
  243. package/dist/reconcile/public.mjs +3 -3
  244. package/dist/{reconcile-DhQ00DpU.mjs → reconcile--I7V4Klj.mjs} +2 -2
  245. package/dist/{reconcile-DhQ00DpU.mjs.map → reconcile--I7V4Klj.mjs.map} +1 -1
  246. package/dist/{reconcile-Dd2iyILf.cjs → reconcile-CuCQBa5-.cjs} +3 -3
  247. package/dist/{reconcile-Dd2iyILf.cjs.map → reconcile-CuCQBa5-.cjs.map} +1 -1
  248. package/dist/resolve-BwTJI8K7.cjs +316 -0
  249. package/dist/resolve-BwTJI8K7.cjs.map +1 -0
  250. package/dist/resolve-UBq26cZc.mjs +263 -0
  251. package/dist/resolve-UBq26cZc.mjs.map +1 -0
  252. package/dist/rollback-BFKex9TO.cjs +165 -0
  253. package/dist/rollback-BFKex9TO.cjs.map +1 -0
  254. package/dist/rollback-DiOcLTRc.mjs +136 -0
  255. package/dist/rollback-DiOcLTRc.mjs.map +1 -0
  256. package/dist/runtime-CFvcLEJW.d.cts +82 -0
  257. package/dist/runtime-CFvcLEJW.d.cts.map +1 -0
  258. package/dist/runtime-dwsH6ddo.d.mts +82 -0
  259. package/dist/runtime-dwsH6ddo.d.mts.map +1 -0
  260. package/dist/s3-BgG_xW-D.cjs +215 -0
  261. package/dist/s3-BgG_xW-D.cjs.map +1 -0
  262. package/dist/s3-CkrerKdA.mjs +215 -0
  263. package/dist/s3-CkrerKdA.mjs.map +1 -0
  264. package/dist/sandbox/config-worker.cjs +43 -0
  265. package/dist/sandbox/config-worker.cjs.map +1 -0
  266. package/dist/sandbox/config-worker.d.cts +1 -0
  267. package/dist/sandbox/config-worker.d.mts +1 -0
  268. package/dist/sandbox/config-worker.mjs +44 -0
  269. package/dist/sandbox/config-worker.mjs.map +1 -0
  270. package/dist/sandbox/credentials-worker.cjs +53 -0
  271. package/dist/sandbox/credentials-worker.cjs.map +1 -0
  272. package/dist/sandbox/credentials-worker.d.cts +1 -0
  273. package/dist/sandbox/credentials-worker.d.mts +1 -0
  274. package/dist/sandbox/credentials-worker.mjs +54 -0
  275. package/dist/sandbox/credentials-worker.mjs.map +1 -0
  276. package/dist/sandbox/discover-worker.cjs +47 -0
  277. package/dist/sandbox/discover-worker.cjs.map +1 -0
  278. package/dist/sandbox/discover-worker.d.cts +1 -0
  279. package/dist/sandbox/discover-worker.d.mts +1 -0
  280. package/dist/sandbox/discover-worker.mjs +48 -0
  281. package/dist/sandbox/discover-worker.mjs.map +1 -0
  282. package/dist/sandbox/migrate-worker.cjs +75 -0
  283. package/dist/sandbox/migrate-worker.cjs.map +1 -0
  284. package/dist/sandbox/migrate-worker.d.cts +1 -0
  285. package/dist/sandbox/migrate-worker.d.mts +1 -0
  286. package/dist/sandbox/migrate-worker.mjs +76 -0
  287. package/dist/sandbox/migrate-worker.mjs.map +1 -0
  288. package/dist/{workspace-mFpI_ky_.cjs → schemas-BCwKKA42.mjs} +399 -1162
  289. package/dist/schemas-BCwKKA42.mjs.map +1 -0
  290. package/dist/{workspace-CgwmXEtc.mjs → schemas-BQ_v0lEX.cjs} +487 -971
  291. package/dist/schemas-BQ_v0lEX.cjs.map +1 -0
  292. package/dist/secretsManager-CQORubp9.mjs +97 -0
  293. package/dist/secretsManager-CQORubp9.mjs.map +1 -0
  294. package/dist/secretsManager-RAGcEDX1.cjs +108 -0
  295. package/dist/secretsManager-RAGcEDX1.cjs.map +1 -0
  296. package/dist/seeds-B3xvUAQf.cjs +363 -0
  297. package/dist/seeds-B3xvUAQf.cjs.map +1 -0
  298. package/dist/seeds-BCC8vAXR.mjs +298 -0
  299. package/dist/seeds-BCC8vAXR.mjs.map +1 -0
  300. package/dist/serverSetup-CUBu8_Mk.cjs +652 -0
  301. package/dist/serverSetup-CUBu8_Mk.cjs.map +1 -0
  302. package/dist/serverSetup-eh9MUdSN.mjs +652 -0
  303. package/dist/serverSetup-eh9MUdSN.mjs.map +1 -0
  304. package/dist/sniffer-CNTnUmhc.mjs +1824 -0
  305. package/dist/sniffer-CNTnUmhc.mjs.map +1 -0
  306. package/dist/sniffer-CaoQH_kk.cjs +1997 -0
  307. package/dist/sniffer-CaoQH_kk.cjs.map +1 -0
  308. package/dist/snsSubscriptions-DiqwM9Ms.cjs +1173 -0
  309. package/dist/snsSubscriptions-DiqwM9Ms.cjs.map +1 -0
  310. package/dist/snsSubscriptions-zOIIswN0.mjs +1048 -0
  311. package/dist/snsSubscriptions-zOIIswN0.mjs.map +1 -0
  312. package/dist/sst-D6Dvhr6H.mjs +462 -0
  313. package/dist/sst-D6Dvhr6H.mjs.map +1 -0
  314. package/dist/sst-DECRMgjv.cjs +485 -0
  315. package/dist/sst-DECRMgjv.cjs.map +1 -0
  316. package/dist/stack-BZG5HoVN.mjs +2206 -0
  317. package/dist/stack-BZG5HoVN.mjs.map +1 -0
  318. package/dist/stack-CLk9WojF.cjs +2381 -0
  319. package/dist/stack-CLk9WojF.cjs.map +1 -0
  320. package/dist/stage-Cl0DPJ7w.cjs +313 -0
  321. package/dist/stage-Cl0DPJ7w.cjs.map +1 -0
  322. package/dist/stage-DiLPb89O.mjs +302 -0
  323. package/dist/stage-DiLPb89O.mjs.map +1 -0
  324. package/dist/stages-Bs1THSy7.cjs +190 -0
  325. package/dist/stages-Bs1THSy7.cjs.map +1 -0
  326. package/dist/stages-_xCG4Ymu.mjs +190 -0
  327. package/dist/stages-_xCG4Ymu.mjs.map +1 -0
  328. package/dist/target/public.cjs +15 -0
  329. package/dist/target/public.d.cts +28 -0
  330. package/dist/target/public.d.cts.map +1 -0
  331. package/dist/target/public.d.mts +28 -0
  332. package/dist/target/public.d.mts.map +1 -0
  333. package/dist/target/public.mjs +4 -0
  334. package/dist/terminal-XQE106CG.cjs +85 -0
  335. package/dist/terminal-XQE106CG.cjs.map +1 -0
  336. package/dist/terminal-jGj9TtMQ.mjs +85 -0
  337. package/dist/terminal-jGj9TtMQ.mjs.map +1 -0
  338. package/dist/types-Bl_CwZC9.cjs +90 -0
  339. package/dist/types-Bl_CwZC9.cjs.map +1 -0
  340. package/dist/{types-BGo5TaNE.d.mts → types-Dk--xVOT.d.cts} +2234 -439
  341. package/dist/types-Dk--xVOT.d.cts.map +1 -0
  342. package/dist/{types-C5ZNpUad.d.cts → types-DwQYpd_0.d.mts} +2232 -439
  343. package/dist/types-DwQYpd_0.d.mts.map +1 -0
  344. package/dist/types-Y1NfWlyG.mjs +61 -0
  345. package/dist/types-Y1NfWlyG.mjs.map +1 -0
  346. package/dist/utils-D2Nk1Nv2.cjs +205 -0
  347. package/dist/utils-D2Nk1Nv2.cjs.map +1 -0
  348. package/dist/utils-D_fxUqvU.mjs +156 -0
  349. package/dist/utils-D_fxUqvU.mjs.map +1 -0
  350. package/dist/vitest.cjs +65 -0
  351. package/dist/vitest.cjs.map +1 -0
  352. package/dist/vitest.d.cts +29 -0
  353. package/dist/vitest.d.cts.map +1 -0
  354. package/dist/vitest.d.mts +29 -0
  355. package/dist/vitest.d.mts.map +1 -0
  356. package/dist/vitest.mjs +65 -0
  357. package/dist/vitest.mjs.map +1 -0
  358. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  359. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  360. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  361. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  362. package/dist/workspace/index.cjs +6 -2
  363. package/dist/workspace/index.d.cts +3 -3
  364. package/dist/workspace/index.d.mts +3 -3
  365. package/dist/workspace/index.mjs +2 -2
  366. package/dist/workspace-1szcahj9.cjs +2916 -0
  367. package/dist/workspace-1szcahj9.cjs.map +1 -0
  368. package/dist/workspace-DFGsrjGD.mjs +2480 -0
  369. package/dist/workspace-DFGsrjGD.mjs.map +1 -0
  370. package/package.json +66 -14
  371. package/dist/HostingerProvider-BY26bWwB.mjs.map +0 -1
  372. package/dist/HostingerProvider-BZFGYYVA.cjs.map +0 -1
  373. package/dist/LocalStateProvider-7HR6SS2t.cjs +0 -48
  374. package/dist/LocalStateProvider-7HR6SS2t.cjs.map +0 -1
  375. package/dist/LocalStateProvider-D7QyJoLM.mjs +0 -48
  376. package/dist/LocalStateProvider-D7QyJoLM.mjs.map +0 -1
  377. package/dist/Route53Provider-Cvj40A8I.mjs.map +0 -1
  378. package/dist/Route53Provider-DVILBsvV.cjs.map +0 -1
  379. package/dist/SSMStateProvider-B0Hu1MKZ.mjs +0 -75
  380. package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +0 -1
  381. package/dist/SSMStateProvider-VrQ-yeqd.cjs +0 -74
  382. package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +0 -1
  383. package/dist/backup-provisioner-BmhIO_Yr.cjs.map +0 -1
  384. package/dist/backup-provisioner-DIVCbfee.mjs.map +0 -1
  385. package/dist/bundler-BeNDZdHQ.cjs.map +0 -1
  386. package/dist/bundler-BodTL4kf.mjs.map +0 -1
  387. package/dist/config-Q1rvKHvw.cjs +0 -467
  388. package/dist/config-Q1rvKHvw.cjs.map +0 -1
  389. package/dist/config-pqGD3hF9.mjs +0 -414
  390. package/dist/config-pqGD3hF9.mjs.map +0 -1
  391. package/dist/config.d.cts.map +0 -1
  392. package/dist/config.d.mts.map +0 -1
  393. package/dist/credentials-BekkKtY_.mjs +0 -2780
  394. package/dist/credentials-BekkKtY_.mjs.map +0 -1
  395. package/dist/credentials-Q6F0uqJq.cjs +0 -2917
  396. package/dist/credentials-Q6F0uqJq.cjs.map +0 -1
  397. package/dist/discover-BERGFg8v.cjs +0 -288
  398. package/dist/discover-BERGFg8v.cjs.map +0 -1
  399. package/dist/discover-CK-n3w6b.mjs +0 -244
  400. package/dist/discover-CK-n3w6b.mjs.map +0 -1
  401. package/dist/emit-BdoPFjZf.cjs +0 -253
  402. package/dist/emit-BdoPFjZf.cjs.map +0 -1
  403. package/dist/emit-Bzq7JsMP.mjs +0 -224
  404. package/dist/emit-Bzq7JsMP.mjs.map +0 -1
  405. package/dist/fullstack-secrets-BET8gqwK.mjs +0 -81
  406. package/dist/fullstack-secrets-BET8gqwK.mjs.map +0 -1
  407. package/dist/fullstack-secrets-DXsWO-5m.cjs +0 -92
  408. package/dist/fullstack-secrets-DXsWO-5m.cjs.map +0 -1
  409. package/dist/generator-LfZU7NlU.mjs +0 -247
  410. package/dist/generator-LfZU7NlU.mjs.map +0 -1
  411. package/dist/generator-Wdfp0jCS.cjs +0 -282
  412. package/dist/generator-Wdfp0jCS.cjs.map +0 -1
  413. package/dist/github-BfflNPVe.cjs +0 -203
  414. package/dist/github-BfflNPVe.cjs.map +0 -1
  415. package/dist/github-CRwnxKmD.mjs +0 -203
  416. package/dist/github-CRwnxKmD.mjs.map +0 -1
  417. package/dist/index-Cd-qeOam.d.mts.map +0 -1
  418. package/dist/index-D-iAVHx-.d.cts.map +0 -1
  419. package/dist/keystore-B4PRlbgE.mjs +0 -81
  420. package/dist/keystore-B4PRlbgE.mjs.map +0 -1
  421. package/dist/keystore-DgGRj2Yy.cjs +0 -98
  422. package/dist/keystore-DgGRj2Yy.cjs.map +0 -1
  423. package/dist/openapi-Dcbme-Us.cjs +0 -2038
  424. package/dist/openapi-Dcbme-Us.cjs.map +0 -1
  425. package/dist/openapi-vy4JzhUv.mjs +0 -1991
  426. package/dist/openapi-vy4JzhUv.mjs.map +0 -1
  427. package/dist/storage-C-30BD1e.cjs +0 -272
  428. package/dist/storage-C-30BD1e.cjs.map +0 -1
  429. package/dist/storage-P_b3w7uj.mjs +0 -231
  430. package/dist/storage-P_b3w7uj.mjs.map +0 -1
  431. package/dist/sync-B3xxXtJT.mjs +0 -88
  432. package/dist/sync-B3xxXtJT.mjs.map +0 -1
  433. package/dist/sync-D7uTIIEi.cjs +0 -111
  434. package/dist/sync-D7uTIIEi.cjs.map +0 -1
  435. package/dist/types-BGo5TaNE.d.mts.map +0 -1
  436. package/dist/types-C5ZNpUad.d.cts.map +0 -1
  437. package/dist/workspace-CgwmXEtc.mjs.map +0 -1
  438. package/dist/workspace-mFpI_ky_.cjs.map +0 -1
@@ -0,0 +1,647 @@
1
+ import { At as ReleasedImage, Bt as SandboxExecOptions, 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, rt as DeployEventError, st as ResourceVia, ut as AwsCredential, vt as chainCredentials, xt as ConstructDiscoveryFailed, yt as storedCredentials, zt as SandboxCwdEscape } from "../types-DwQYpd_0.mjs";
2
+ import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-CRk2vdSp.mjs";
3
+ 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-dwsH6ddo.mjs";
4
+ import { ConstructManifest, Declaration } from "@geekmidas/manifest";
5
+ import "@geekmidas/db/pg/roles";
6
+ import "@aws-sdk/client-s3";
7
+ import "@geekmidas/envkit/sniffer";
8
+ //#region src/home.d.ts
9
+ /**
10
+ * Where the CLI keeps what belongs to a person rather than a project: stage
11
+ * keys and stored provider credentials.
12
+ *
13
+ * `GKM_HOME` names it, so a CI job, a shared build runner or a test can give
14
+ * every run its own instead of reaching into whoever's home directory the
15
+ * process happens to have. Unset, it is `~/.gkm`, where it has always been.
16
+ */
17
+ /** The environment variable that moves the CLI's home. */
18
+ export declare const GKM_HOME_ENV = "GKM_HOME";
19
+ /** The CLI's home: `GKM_HOME` if set, else `~/.gkm`. */
20
+ export declare function gkmHome(env?: NodeJS.ProcessEnv): string;
21
+ //#endregion
22
+ //#region src/providers/config.d.ts
23
+ /** An entry that names no provider gkm has, or is not an entry at all. */
24
+ export declare class UnknownStageProvider extends GkmError {
25
+ readonly kind: ProviderKind;
26
+ readonly stage: string;
27
+ readonly value: unknown;
28
+ constructor(kind: ProviderKind, stage: string, value: unknown);
29
+ }
30
+ //#endregion
31
+ //#region src/deploy/devServices.d.ts
32
+ /**
33
+ * The dev services a deployed stage can run — one per kind that has one on
34
+ * every server target: a bucket's MinIO and mail's Mailpit. A cache or a
35
+ * database is not here because a server stage runs its own anyway.
36
+ */
37
+ export declare const DEV_SERVICES: readonly ['minio', 'mailpit'];
38
+ type DevService = (typeof DEV_SERVICES)[number];
39
+ /** Dev services asked of a target that runs no containers. */
40
+ export declare class DevServicesNeedServerTarget extends GkmError {
41
+ readonly target: string;
42
+ constructor(target: string);
43
+ }
44
+ /**
45
+ * `--allow-dev-services` given a value — the list it used to take. It is a
46
+ * switch now: every construct the stage does not account for gets its dev
47
+ * service.
48
+ */
49
+ export declare class AllowDevServicesTakesNoValue extends GkmError {
50
+ readonly value: string;
51
+ constructor(value: string);
52
+ }
53
+ /** One key a deployed stage needs and its secrets do not hold. */
54
+ interface MissingServiceKey {
55
+ key: string;
56
+ /** The construct that reads it. */
57
+ id: string;
58
+ /** What it is, for the line that names it. */
59
+ what: string;
60
+ /** A line after `what`, for what else there is to know about it. */
61
+ note?: string;
62
+ /** A placeholder value to show in the `gkm secrets:set` line. */
63
+ example: string;
64
+ /** The dev service that would stand in for it, unless the stage accounts for it. */
65
+ service?: DevService;
66
+ /** The apps that read it, where known. */
67
+ apps?: readonly string[];
68
+ /** What creates it, where a provider backs it on the stage. */
69
+ hint?: string;
70
+ }
71
+ /**
72
+ * A deployed stage with mail or object storage that its secrets do not
73
+ * configure — every missing key, across every app, at once.
74
+ */
75
+ export declare class ExternalServicesNotConfigured extends GkmError {
76
+ readonly stage: string;
77
+ readonly missing: readonly MissingServiceKey[];
78
+ constructor(stage: string, missing: readonly MissingServiceKey[]);
79
+ }
80
+ //#endregion
81
+ //#region src/providers/notes.d.ts
82
+ /** A stage that names `false` for a kind, and declares constructs of it. */
83
+ export declare class StageProviderDisabled extends GkmError {
84
+ readonly kind: ProviderKind;
85
+ readonly stage: string;
86
+ readonly ids: readonly string[];
87
+ constructor(kind: ProviderKind, stage: string, ids: readonly string[]);
88
+ }
89
+ //#endregion
90
+ //#region src/providers/s3/errors.d.ts
91
+ /** `verify()`: a provisioned bucket the stage's key cannot reach. */
92
+ export declare class ProvisionedBucketUnreachable extends GkmError {
93
+ readonly id: string;
94
+ readonly bucket: string;
95
+ readonly stage: string;
96
+ readonly reason: string;
97
+ constructor(id: string, bucket: string, stage: string, reason: string);
98
+ }
99
+ //#endregion
100
+ //#region src/run.d.ts
101
+ /** The program ran and exited unsuccessfully; its own output said why. */
102
+ export declare class CommandFailed extends Error {
103
+ readonly command: string;
104
+ readonly args: readonly string[];
105
+ readonly exitCode: number | null;
106
+ readonly signal: NodeJS.Signals | null;
107
+ constructor(command: string, args: readonly string[], exitCode: number | null, signal: NodeJS.Signals | null);
108
+ }
109
+ /** The program ran past its timeout and was killed. */
110
+ export declare class CommandTimedOut extends Error {
111
+ readonly command: string;
112
+ readonly args: readonly string[];
113
+ readonly timeoutMs: number;
114
+ constructor(command: string, args: readonly string[], timeoutMs: number);
115
+ }
116
+ //#endregion
117
+ //#region src/sandbox/env.d.ts
118
+ /**
119
+ * What of the host's environment a local sandbox passes on.
120
+ *
121
+ * An allowlist, not a denylist: a credential's variable has any name its
122
+ * owner chose (`DOKPLOY_TOKEN`, `AWS_SECRET_ACCESS_KEY`, `MY_VAULT_TOKEN`), so
123
+ * the only safe default is to name what a program needs to *run* and pass
124
+ * nothing else.
125
+ */
126
+ /**
127
+ * Variables a command needs to find programs, write temp files, print in the
128
+ * user's locale and reach the network through the host's proxy — and nothing
129
+ * that authenticates as anyone.
130
+ *
131
+ * Deliberately left out:
132
+ * - `NODE_OPTIONS`: it can `--require` or `--import` code into every node
133
+ * process, and CI often holds `--import tsx` there. A step that needs a
134
+ * loader passes its own.
135
+ * - `NODE_AUTH_TOKEN`, `NPM_TOKEN`, `npm_config_*`: registry tokens
136
+ * (`actions/setup-node` writes `NODE_AUTH_TOKEN`), which is why there is no
137
+ * `NODE_*` wildcard.
138
+ * - `AWS_*`, `DOCKER_*`, `DOKPLOY_*`, `GITHUB_TOKEN`, `TURBO_TOKEN`, `GKM_*`:
139
+ * credentials, or where the deploy keeps them.
140
+ * - `SHELL`, `EDITOR` and the rest of a login session: nothing here starts a
141
+ * shell.
142
+ *
143
+ * Proxies are passed: behind one, nothing installs or builds without it. A
144
+ * proxy URL with a password in it reaches the command too — a host that keeps
145
+ * one there and builds code it does not trust should pass a sandbox of its
146
+ * own.
147
+ */
148
+ export declare const SANDBOX_ENV_ALLOWLIST: readonly (string | RegExp)[];
149
+ /**
150
+ * The allowlisted part of `source`, plus each of `extra` the host chose to
151
+ * pass on by name.
152
+ */
153
+ export declare function allowlistedEnv(source?: NodeJS.ProcessEnv, extra?: readonly string[]): Record<string, string>;
154
+ //#endregion
155
+ //#region src/docker/templates.d.ts
156
+ type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun';
157
+ //#endregion
158
+ //#region src/sandbox/install.d.ts
159
+ /** Long enough for a cold install of a large monorepo. */
160
+ export declare const INSTALL_TIMEOUT_MS: number;
161
+ interface InstallOptions {
162
+ /** The directory to install in. Defaults to the sandbox's root. */
163
+ cwd?: string;
164
+ /** Defaults to the one the lockfile above `cwd` names. */
165
+ packageManager?: PackageManager;
166
+ /**
167
+ * Skip every lifecycle script — dependencies' and the project's own —
168
+ * except those of {@link allowScripts}. Defaults to false: scripts run as
169
+ * a plain install runs them, under the package manager's own policy —
170
+ * npm 12 and pnpm 10 skip dependencies' scripts nobody approved.
171
+ */
172
+ ignoreScripts?: boolean;
173
+ /**
174
+ * With `ignoreScripts`, the packages whose scripts still run: rebuilt by
175
+ * name once the install is done.
176
+ */
177
+ allowScripts?: readonly string[];
178
+ /** Variables the install needs beyond the sandbox's own. */
179
+ env?: Readonly<Record<string, string>>;
180
+ /** Defaults to {@link INSTALL_TIMEOUT_MS}, for each command. */
181
+ timeoutMs?: number;
182
+ /** Where the package manager's output goes. Defaults to `inherit`. */
183
+ output?: SandboxOutput;
184
+ signal?: AbortSignal;
185
+ }
186
+ /** A name in `allowScripts` that is not a package name. */
187
+ export declare class InstallAllowlistNameInvalid extends GkmError {
188
+ readonly packageName: string;
189
+ constructor(packageName: string);
190
+ }
191
+ /** The package manager has no way to run only some packages' scripts. */
192
+ export declare class InstallScriptsAllowlistUnsupported extends GkmError {
193
+ readonly packageManager: string;
194
+ readonly allowScripts: readonly string[];
195
+ constructor(packageManager: string, allowScripts: readonly string[]);
196
+ }
197
+ /**
198
+ * Install the project's dependencies in `sandbox`.
199
+ *
200
+ * ```ts
201
+ * // A checkout nobody has reviewed: no scripts but esbuild's.
202
+ * await installDependencies(sandbox, {
203
+ * ignoreScripts: true,
204
+ * allowScripts: ['esbuild'],
205
+ * });
206
+ * ```
207
+ *
208
+ * Resolves with each command's result, in order — with its output when
209
+ * `output` is `capture`.
210
+ *
211
+ * @throws {CommandFailed} when the package manager exits unsuccessfully.
212
+ * @throws {InstallScriptsAllowlistUnsupported} for an allowlist the package
213
+ * manager cannot honour, before anything is installed.
214
+ */
215
+ export declare function installDependencies(sandbox: Sandbox, options?: InstallOptions): Promise<SandboxResult[]>;
216
+ //#endregion
217
+ //#region src/sandbox/local.d.ts
218
+ interface LocalSandboxOptions {
219
+ /** The project. Every command runs at or below it. */
220
+ root: string;
221
+ /**
222
+ * `HOME` for every command. Defaults to the host's, because a build
223
+ * reuses the caches kept there — the pnpm store, corepack's package
224
+ * managers, turbo's cache — and a cold one re-downloads all of them.
225
+ * Point it at an empty directory to keep `~/.aws`, `~/.npmrc` and
226
+ * `~/.docker` out of reach of an SDK's default lookup — though, sharing
227
+ * the host's filesystem, a command that goes looking still finds them.
228
+ */
229
+ home?: string;
230
+ /**
231
+ * Host variables to pass on beyond the allowlist, by name — a remote
232
+ * cache's `TURBO_TOKEN`, for a build the host trusts with it.
233
+ */
234
+ passEnv?: readonly string[];
235
+ /** Where the allowlisted variables are read from. Defaults to `process.env`. */
236
+ hostEnv?: NodeJS.ProcessEnv;
237
+ }
238
+ /**
239
+ * A child process on this machine, as this user, with an allowlisted
240
+ * environment.
241
+ *
242
+ * What it withholds from the command: the host's environment beyond
243
+ * {@link SANDBOX_ENV_ALLOWLIST}, a shell, a working directory outside the
244
+ * project, and any time past the timeout. What it does not: the host's
245
+ * filesystem, which the command can read and write as the user running the
246
+ * deploy. So it is not `isolating`, and it is the default for projects the
247
+ * host already trusts — the developer's own, a team's own CI. Code nobody
248
+ * vetted belongs in a sandbox that is.
249
+ *
250
+ * A timed-out command is sent SIGTERM, then SIGKILL; processes it started
251
+ * itself are its to stop.
252
+ */
253
+ export declare class LocalSandbox implements Sandbox {
254
+ readonly root: string;
255
+ readonly isolating = false;
256
+ readonly env: Readonly<Record<string, string>>;
257
+ constructor(options: LocalSandboxOptions);
258
+ exec(command: string, args: readonly string[], options: SandboxExecOptions): Promise<SandboxResult>;
259
+ }
260
+ //#endregion
261
+ //#region src/sandbox/worker.d.ts
262
+ /** A worker ended without the answer it exists to give. */
263
+ export declare class SandboxWorkerFailed extends Error {
264
+ readonly step: string;
265
+ readonly exitCode: number | null;
266
+ readonly stderr: string;
267
+ constructor(step: string, exitCode: number | null, stderr: string);
268
+ }
269
+ //#endregion
270
+ //#region src/target/dokploy/dokploy-api.d.ts
271
+ /** A deployment Dokploy ran and reported as failed. */
272
+ export declare class DeploymentFailed extends GkmError {
273
+ readonly applicationId: string;
274
+ readonly deployment: DokployDeployment;
275
+ constructor(applicationId: string, deployment: DokployDeployment);
276
+ }
277
+ /** A deployment that had not finished when the deploy stopped waiting. */
278
+ export declare class DeploymentTimedOut extends GkmError {
279
+ readonly applicationId: string;
280
+ readonly timeoutMs: number;
281
+ /** The last status seen, if a deployment had appeared at all. */
282
+ readonly lastStatus: DokployDeploymentStatus | undefined;
283
+ constructor(applicationId: string, timeoutMs: number,
284
+ /** The last status seen, if a deployment had appeared at all. */
285
+ lastStatus: DokployDeploymentStatus | undefined);
286
+ }
287
+ type DokployDeploymentStatus = 'running' | 'done' | 'error' | 'cancelled';
288
+ /** One run of `application.deploy`, as `deployment.all` lists it. */
289
+ interface DokployDeployment {
290
+ deploymentId: string;
291
+ status: DokployDeploymentStatus;
292
+ /** ISO timestamp, by Dokploy's clock. */
293
+ createdAt: string;
294
+ title?: string;
295
+ errorMessage?: string | null;
296
+ }
297
+ //#endregion
298
+ //#region src/target/dokploy/engine.d.ts
299
+ /** A backend failed, so the run stopped before deploying anything after it. */
300
+ export declare class BackendDeployFailed extends Error {
301
+ readonly app: string;
302
+ constructor(app: string, cause: unknown);
303
+ }
304
+ /**
305
+ * Sites failed to release or to answer. Every site is attempted before this
306
+ * is thrown, so one broken site does not keep the others back — but the run
307
+ * fails, and what failed is rolled back.
308
+ */
309
+ export declare class FrontendDeployFailed extends Error {
310
+ readonly apps: readonly string[];
311
+ constructor(apps: readonly string[], cause: unknown);
312
+ }
313
+ /** An app's environment needs values the stage does not have. */
314
+ export declare class MissingEnvVars extends GkmError {
315
+ readonly app: string;
316
+ readonly missing: readonly string[];
317
+ readonly stage: string;
318
+ constructor(app: string, missing: readonly string[], stage: string);
319
+ }
320
+ //#endregion
321
+ //#region src/target/dokploy/health.d.ts
322
+ /** An app never answered healthy enough times in a row. */
323
+ export declare class HealthCheckTimedOut extends GkmError {
324
+ readonly app: string;
325
+ readonly url: string;
326
+ readonly timeoutMs: number;
327
+ /** The last answer's status, or undefined when the last request failed. */
328
+ readonly lastStatus: number | undefined;
329
+ constructor(app: string, url: string, timeoutMs: number,
330
+ /** The last answer's status, or undefined when the last request failed. */
331
+ lastStatus: number | undefined);
332
+ }
333
+ //#endregion
334
+ //#region src/target/dokploy/migrations.d.ts
335
+ /** The migrations of a deployed stage failed; the release stopped before any app. */
336
+ export declare class DeployMigrationsFailed extends Error {
337
+ readonly stage: string;
338
+ /** The failure's class name in the sandbox — `MigrationFailed`, … */
339
+ readonly reason: string;
340
+ constructor(stage: string,
341
+ /** The failure's class name in the sandbox — `MigrationFailed`, … */
342
+ reason: string, message: string);
343
+ }
344
+ //#endregion
345
+ //#region src/target/dokploy/rollback.d.ts
346
+ interface RollbackInput {
347
+ /** The project: the directory holding `gkm.config.ts`, or one inside it. */
348
+ cwd: string;
349
+ stage: string;
350
+ /** The app to roll back. */
351
+ app?: string;
352
+ /** Every app with an earlier release, instead of one. */
353
+ atomic?: boolean;
354
+ /** Defaults to the environment, then the logins `gkm login` stored. */
355
+ credentials?: CredentialProvider;
356
+ signal?: AbortSignal;
357
+ /** Each progress line. Defaults to none. */
358
+ log?: (line: string) => void;
359
+ /** Where the config is loaded. Defaults to a `LocalSandbox` on the project. */
360
+ sandbox?: Sandbox;
361
+ }
362
+ /** One app rolled back. */
363
+ interface RolledBack {
364
+ app: string;
365
+ from: ReleasedImage;
366
+ to: ReleasedImage;
367
+ }
368
+ /** Neither an app nor every app was asked for. */
369
+ export declare class RollbackNeedsApp extends GkmError {
370
+ readonly stage: string;
371
+ /** The apps that have a release to go back to. */
372
+ readonly apps: readonly string[];
373
+ constructor(stage: string,
374
+ /** The apps that have a release to go back to. */
375
+ apps: readonly string[]);
376
+ }
377
+ /** An app has no release before the one it runs. */
378
+ export declare class NothingToRollBack extends GkmError {
379
+ readonly stage: string;
380
+ readonly app: string;
381
+ constructor(stage: string, app: string);
382
+ }
383
+ /** The stage was never deployed through Dokploy from this state. */
384
+ export declare class StageNeverDeployed extends GkmError {
385
+ readonly stage: string;
386
+ constructor(stage: string);
387
+ }
388
+ /**
389
+ * Roll a stage's app — or, `atomic`, all of them — back to its previous
390
+ * release, holding the stage's lock as a deploy does.
391
+ */
392
+ export declare function rollbackStage(input: RollbackInput): Promise<RolledBack[]>;
393
+ //#endregion
394
+ //#region src/target/seeds.d.ts
395
+ /** A seed of a deployed stage failed; the release stopped before any app. */
396
+ export declare class DeploySeedsFailed extends Error {
397
+ readonly stage: string;
398
+ /** The construct whose seed failed: `Database`. */
399
+ readonly construct: string;
400
+ /** The seed file, by name: `001_roles`. */
401
+ readonly seed: string;
402
+ readonly cause: unknown;
403
+ constructor(stage: string,
404
+ /** The construct whose seed failed: `Database`. */
405
+ construct: string,
406
+ /** The seed file, by name: `001_roles`. */
407
+ seed: string, cause: unknown);
408
+ }
409
+ //#endregion
410
+ //#region src/target/sst/health.d.ts
411
+ /** Surfaces that never answered healthy. */
412
+ export declare class SurfacesUnhealthy extends GkmError {
413
+ readonly stage: string;
414
+ /** Each surface that failed, with the last thing it answered. */
415
+ readonly surfaces: readonly {
416
+ app: string;
417
+ url: string;
418
+ status?: number;
419
+ error?: string;
420
+ }[];
421
+ constructor(stage: string,
422
+ /** Each surface that failed, with the last thing it answered. */
423
+ surfaces: readonly {
424
+ app: string;
425
+ url: string;
426
+ status?: number;
427
+ error?: string;
428
+ }[]);
429
+ }
430
+ //#endregion
431
+ //#region src/target/sst/outputs.d.ts
432
+ /** `.sst/outputs.json` is there, and is not JSON. */
433
+ export declare class SstOutputsUnreadable extends GkmError {
434
+ readonly path: string;
435
+ readonly reason: string;
436
+ constructor(path: string, reason: string);
437
+ }
438
+ //#endregion
439
+ //#region src/target/sst/index.d.ts
440
+ /** The workspace has no `sst.config.ts` for `sst deploy` to run. */
441
+ export declare class SstConfigNotFound extends GkmError {
442
+ readonly cwd: string;
443
+ constructor(cwd: string);
444
+ }
445
+ //#endregion
446
+ //#region src/deploy/deploy.d.ts
447
+ /**
448
+ * Where a run's progress lines go, besides its events. `@geekmidas/logger`'s
449
+ * `Logger` is one.
450
+ */
451
+ interface DeployLogger {
452
+ info(message: string): void;
453
+ warn(message: string): void;
454
+ error?(message: string): void;
455
+ }
456
+ interface DeployInput {
457
+ /**
458
+ * The project to deploy: the directory holding `gkm.config.ts`, or any
459
+ * directory inside it. Never assumed to be `process.cwd()`.
460
+ */
461
+ cwd: string;
462
+ /**
463
+ * The stage to deploy — one of the config's deployed stages, or its local
464
+ * stage through a target that runs one (`compose`).
465
+ */
466
+ stage: string;
467
+ /**
468
+ * The target to deploy through, by name. Defaults to `deploy.default`,
469
+ * else `dokploy`.
470
+ */
471
+ target?: string;
472
+ /**
473
+ * The host's own targets, by name. Consulted before the built-ins and the
474
+ * config's `deploy.targets`, so a host can deploy through an
475
+ * implementation of its own — `{ dokploy: myDokploy }` included.
476
+ */
477
+ targets?: Record<string, AnyDeployTarget>;
478
+ /** The image tag. Defaults to `<stage>-<timestamp>`. */
479
+ tag?: string;
480
+ /** Deploy only these apps (in dependency order). Defaults to all. */
481
+ apps?: string[];
482
+ /**
483
+ * Look everything up and report what would happen — as `resource.planned`
484
+ * events — without taking the lock, writing state, generating secrets,
485
+ * changing Dokploy or building and pushing images.
486
+ */
487
+ dryRun?: boolean;
488
+ /**
489
+ * Validate and build only: the target's images built — and pushed, where
490
+ * it pushes them — with no lock taken and nothing provisioned, released,
491
+ * verified or recorded. `gkm compose --build --push` runs this way.
492
+ */
493
+ buildOnly?: boolean;
494
+ /**
495
+ * When a release or its verification fails, roll back every app the run
496
+ * released rather than only the ones that failed — on a target that can
497
+ * roll back. For apps that must move together.
498
+ */
499
+ atomic?: boolean;
500
+ /**
501
+ * Where credentials come from. Defaults to the environment, then the
502
+ * logins `gkm login` stored. A credential no provider has stops the run
503
+ * with `MissingCredential`; nothing prompts.
504
+ */
505
+ credentials?: CredentialProvider;
506
+ /**
507
+ * On a server target, run a dev service for every construct a deployed
508
+ * stage does not account for — no key in its secrets, and no provider
509
+ * (`deploy.objects`) backing its kind: MinIO for a bucket, Mailpit for
510
+ * mail. Neither is production-grade — Mailpit delivers no mail — and every
511
+ * run that uses one emits `dev-service.used`. Without it, a deployed stage
512
+ * missing a mail or storage key fails with `ExternalServicesNotConfigured`;
513
+ * on an AWS target it fails with `DevServicesNeedServerTarget`.
514
+ */
515
+ allowDevServices?: boolean;
516
+ /**
517
+ * On a server target, neither write the public hosts' DNS records nor
518
+ * check that they point at the stage's server (`GKM_SERVER_IPV4`) — for a
519
+ * CDN or proxy in front of the server, or records written by another step.
520
+ */
521
+ skipDns?: boolean;
522
+ /** Each provider issues its runtime keys a successor. */
523
+ rotateKeys?: boolean;
524
+ /** Delete a rotated-out key now, not after the next deploy. */
525
+ retireOldKeys?: boolean;
526
+ /** Receives each progress line as it is written. Defaults to none. */
527
+ logger?: DeployLogger;
528
+ /**
529
+ * Stops the run: in-flight Dokploy requests and docker children are
530
+ * cancelled, the stage's lock is released, and `result` rejects with the
531
+ * signal's reason.
532
+ */
533
+ signal?: AbortSignal;
534
+ /**
535
+ * The CLI's home: stage keys and stored logins. Defaults to `GKM_HOME`,
536
+ * else `~/.gkm`.
537
+ */
538
+ home?: string;
539
+ /**
540
+ * Where docker's own output goes: the host's terminal (`inherit`, the
541
+ * default), its stderr, or nowhere.
542
+ */
543
+ childOutput?: 'inherit' | 'stderr' | 'ignore';
544
+ /**
545
+ * Where the project's own code runs: loading `gkm.config.ts`, discovering
546
+ * its constructs, sniffing each app's environment. Defaults to a
547
+ * `LocalSandbox` on the project — a child process here with an
548
+ * allowlisted environment, for a project the host trusts.
549
+ *
550
+ * A host deploying repositories it does not trust passes one that
551
+ * isolates — a container per build — and the config then reaches the
552
+ * deploy only as data. Credentials never enter a sandbox: they go from
553
+ * `credentials` to the steps that provision, push and release.
554
+ */
555
+ sandbox?: Sandbox;
556
+ }
557
+ /** A deploy in progress. */
558
+ interface DeployRun extends AsyncIterable<DeployEvent> {
559
+ /**
560
+ * What the deploy did, once it is done. Rejects with the error that
561
+ * stopped it — `MissingCredential`, `StateLocked`, `ProjectNotOwned`, … —
562
+ * after a `deploy.failed` event carrying the same.
563
+ */
564
+ readonly result: Promise<DeployResult>;
565
+ }
566
+ /**
567
+ * Deploy a project's stage.
568
+ *
569
+ * ```ts
570
+ * import { deploy } from '@geekmidas/cli/deploy';
571
+ *
572
+ * const run = deploy({ cwd: '/srv/checkouts/shop', stage: 'production' });
573
+ * for await (const event of run) {
574
+ * if (event.type === 'app.deployed') console.log(event.app, event.url);
575
+ * }
576
+ * const result = await run.result;
577
+ * ```
578
+ *
579
+ * The run starts at once; iterating it is optional, and an iteration started
580
+ * late still sees every event from the first.
581
+ */
582
+ export declare function deploy(input: DeployInput): DeployRun;
583
+ //#endregion
584
+ //#region src/deploy/orchestrate.d.ts
585
+ /** Apps were asked for by name that the workspace does not have. */
586
+ export declare class UnknownDeployApps extends GkmError {
587
+ readonly apps: readonly string[];
588
+ readonly available: readonly string[];
589
+ constructor(apps: readonly string[], available: readonly string[]);
590
+ }
591
+ /** Every app asked for deploys through some other target. */
592
+ export declare class NoDeployableApps extends GkmError {
593
+ readonly stage: string;
594
+ readonly target: string;
595
+ constructor(stage: string, target: string);
596
+ }
597
+ /** A build-only run through a target with no build phase. */
598
+ export declare class TargetBuildsNothing extends GkmError {
599
+ readonly target: string;
600
+ constructor(target: string);
601
+ }
602
+ /** A failed rollback, after the failure that called for it. */
603
+ export declare class RollbackFailed extends Error {
604
+ readonly target: string;
605
+ /** What failed first, and was being rolled back. */
606
+ readonly failure: unknown;
607
+ constructor(target: string,
608
+ /** What failed first, and was being rolled back. */
609
+ failure: unknown, cause: unknown);
610
+ }
611
+ //#endregion
612
+ //#region src/deploy/ownership.d.ts
613
+ /**
614
+ * A Dokploy project with the name this deploy would use exists, and nothing
615
+ * says this workspace created it.
616
+ */
617
+ export declare class ProjectNotOwned extends GkmError {
618
+ readonly projectName: string;
619
+ readonly projectId: string;
620
+ readonly identity: string;
621
+ /** The marker the project carries instead, if it carries one. */
622
+ readonly ownedBy: string | undefined;
623
+ constructor(projectName: string, projectId: string, identity: string,
624
+ /** The marker the project carries instead, if it carries one. */
625
+ ownedBy: string | undefined);
626
+ }
627
+ //#endregion
628
+ //#region src/deploy/registry.d.ts
629
+ /** There is nowhere to push images to, so Dokploy has nothing to pull. */
630
+ export declare class RegistryNotConfigured extends GkmError {
631
+ readonly stage: string;
632
+ constructor(stage: string);
633
+ }
634
+ /** `deploy.dokploy.registryId` names a registry Dokploy does not have. */
635
+ export declare class RegistryNotFound extends GkmError {
636
+ readonly registryId: string;
637
+ constructor(registryId: string);
638
+ }
639
+ /** More than one Dokploy registry serves the configured registry. */
640
+ export declare class RegistryAmbiguous extends GkmError {
641
+ readonly registry: string;
642
+ readonly registryIds: readonly string[];
643
+ constructor(registry: string, registryIds: readonly string[]);
644
+ }
645
+ //#endregion
646
+ 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 };
647
+ //# sourceMappingURL=public.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.mts","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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"}