@geekmidas/cli 10.0.0-alpha.17 → 10.0.0-alpha.171

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 (452) 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-C1h_wExz.cjs +1098 -0
  7. package/dist/EndpointGenerator-C1h_wExz.cjs.map +1 -0
  8. package/dist/EndpointGenerator-CSKhAD6W.mjs +1039 -0
  9. package/dist/EndpointGenerator-CSKhAD6W.mjs.map +1 -0
  10. package/dist/GoDaddyProvider-Cs32wo6I.cjs +412 -0
  11. package/dist/GoDaddyProvider-Cs32wo6I.cjs.map +1 -0
  12. package/dist/GoDaddyProvider-D7CTqN0f.mjs +412 -0
  13. package/dist/GoDaddyProvider-D7CTqN0f.mjs.map +1 -0
  14. package/dist/{HostingerProvider-BY26bWwB.mjs → HostingerProvider-B_3Qs9mT.mjs} +23 -9
  15. package/dist/HostingerProvider-B_3Qs9mT.mjs.map +1 -0
  16. package/dist/{HostingerProvider-BZFGYYVA.cjs → HostingerProvider-D0515Stf.cjs} +23 -9
  17. package/dist/HostingerProvider-D0515Stf.cjs.map +1 -0
  18. package/dist/LegacyStateStore-Bv_2L86H.cjs +124 -0
  19. package/dist/LegacyStateStore-Bv_2L86H.cjs.map +1 -0
  20. package/dist/LegacyStateStore-CUjKKENQ.mjs +124 -0
  21. package/dist/LegacyStateStore-CUjKKENQ.mjs.map +1 -0
  22. package/dist/LocalStateStore-DXuj1BDq.mjs +167 -0
  23. package/dist/LocalStateStore-DXuj1BDq.mjs.map +1 -0
  24. package/dist/LocalStateStore-PQ2qJ5VF.cjs +178 -0
  25. package/dist/LocalStateStore-PQ2qJ5VF.cjs.map +1 -0
  26. package/dist/OpenApiTsGenerator-5xPn-p65.mjs +534 -0
  27. package/dist/OpenApiTsGenerator-5xPn-p65.mjs.map +1 -0
  28. package/dist/OpenApiTsGenerator-CzrLGzC0.cjs +539 -0
  29. package/dist/OpenApiTsGenerator-CzrLGzC0.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-BGnOwqUp.mjs +223 -0
  35. package/dist/S3StateStore-BGnOwqUp.mjs.map +1 -0
  36. package/dist/S3StateStore-cmS6iUZn.cjs +222 -0
  37. package/dist/S3StateStore-cmS6iUZn.cjs.map +1 -0
  38. package/dist/SSMStateStore-BqXzPBbu.mjs +205 -0
  39. package/dist/SSMStateStore-BqXzPBbu.mjs.map +1 -0
  40. package/dist/SSMStateStore-BtNGbg8Z.cjs +204 -0
  41. package/dist/SSMStateStore-BtNGbg8Z.cjs.map +1 -0
  42. package/dist/SubscriberGenerator-CfZWX0lT.mjs +783 -0
  43. package/dist/SubscriberGenerator-CfZWX0lT.mjs.map +1 -0
  44. package/dist/SubscriberGenerator-DMi4siph.cjs +848 -0
  45. package/dist/SubscriberGenerator-DMi4siph.cjs.map +1 -0
  46. package/dist/add-DW2KLCY0.mjs +711 -0
  47. package/dist/add-DW2KLCY0.mjs.map +1 -0
  48. package/dist/add-Dp5xRn-u.cjs +713 -0
  49. package/dist/add-Dp5xRn-u.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-DYGKg5SP.cjs +5535 -0
  55. package/dist/apps-DYGKg5SP.cjs.map +1 -0
  56. package/dist/apps-DrXwv-0A.mjs +4986 -0
  57. package/dist/apps-DrXwv-0A.mjs.map +1 -0
  58. package/dist/aws-C5LAU_Ii.mjs +97 -0
  59. package/dist/aws-C5LAU_Ii.mjs.map +1 -0
  60. package/dist/aws-DKC2m3sT.cjs +108 -0
  61. package/dist/aws-DKC2m3sT.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-mjqGAvu1.cjs → bundler-BIfEe05e.cjs} +59 -14
  79. package/dist/bundler-BIfEe05e.cjs.map +1 -0
  80. package/dist/{bundler-mwH7WOb1.mjs → bundler-Swt8wHG9.mjs} +59 -14
  81. package/dist/bundler-Swt8wHG9.mjs.map +1 -0
  82. package/dist/cli-C9wdKQy_.mjs +80 -0
  83. package/dist/cli-C9wdKQy_.mjs.map +1 -0
  84. package/dist/cli-ohJToj0E.cjs +80 -0
  85. package/dist/cli-ohJToj0E.cjs.map +1 -0
  86. package/dist/compose-BLOnkeaJ.mjs +2432 -0
  87. package/dist/compose-BLOnkeaJ.mjs.map +1 -0
  88. package/dist/compose-Br3SQ2bW.cjs +3293 -0
  89. package/dist/compose-Br3SQ2bW.cjs.map +1 -0
  90. package/dist/compose-SNYBstbO.cjs +2929 -0
  91. package/dist/compose-SNYBstbO.cjs.map +1 -0
  92. package/dist/compose-iUOeazjW.mjs +3192 -0
  93. package/dist/compose-iUOeazjW.mjs.map +1 -0
  94. package/dist/config-CsCYzlVO.d.mts +291 -0
  95. package/dist/config-CsCYzlVO.d.mts.map +1 -0
  96. package/dist/config-D-gHQXhi.d.cts +291 -0
  97. package/dist/config-D-gHQXhi.d.cts.map +1 -0
  98. package/dist/config.cjs +457 -9
  99. package/dist/config.cjs.map +1 -0
  100. package/dist/config.d.cts +4 -117
  101. package/dist/config.d.mts +4 -117
  102. package/dist/config.mjs +441 -3
  103. package/dist/config.mjs.map +1 -0
  104. package/dist/credentialSchemas-BzJiK1nQ.mjs +236 -0
  105. package/dist/credentialSchemas-BzJiK1nQ.mjs.map +1 -0
  106. package/dist/credentialSchemas-OVXofU-r.cjs +271 -0
  107. package/dist/credentialSchemas-OVXofU-r.cjs.map +1 -0
  108. package/dist/credentials-BdZhygvW.cjs +2293 -0
  109. package/dist/credentials-BdZhygvW.cjs.map +1 -0
  110. package/dist/credentials-C2VfI-uf.mjs +1838 -0
  111. package/dist/credentials-C2VfI-uf.mjs.map +1 -0
  112. package/dist/databases-CuTL1e7s.cjs +703 -0
  113. package/dist/databases-CuTL1e7s.cjs.map +1 -0
  114. package/dist/databases-zN-gEox0.mjs +588 -0
  115. package/dist/databases-zN-gEox0.mjs.map +1 -0
  116. package/dist/define-6poNqm5O.mjs +106 -0
  117. package/dist/define-6poNqm5O.mjs.map +1 -0
  118. package/dist/define-crmMcXFS.cjs +153 -0
  119. package/dist/define-crmMcXFS.cjs.map +1 -0
  120. package/dist/deploy/public.cjs +211 -0
  121. package/dist/deploy/public.cjs.map +1 -0
  122. package/dist/deploy/public.d.cts +658 -0
  123. package/dist/deploy/public.d.cts.map +1 -0
  124. package/dist/deploy/public.d.mts +658 -0
  125. package/dist/deploy/public.d.mts.map +1 -0
  126. package/dist/deploy/public.mjs +144 -0
  127. package/dist/deploy/public.mjs.map +1 -0
  128. package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
  129. package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
  130. package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
  131. package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
  132. package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
  133. package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
  134. package/dist/deploy/sniffer-hooks.cjs +1 -1
  135. package/dist/deploy/sniffer-hooks.mjs +1 -1
  136. package/dist/deploy/sniffer-loader.cjs +2 -2
  137. package/dist/deploy/sniffer-loader.mjs +1 -1
  138. package/dist/deploy/sniffer-routes-worker.cjs +2 -2
  139. package/dist/deploy/sniffer-routes-worker.mjs +1 -1
  140. package/dist/deploy-CYyf-Q8N.cjs +3902 -0
  141. package/dist/deploy-CYyf-Q8N.cjs.map +1 -0
  142. package/dist/deploy-DqH8QReb.mjs +3846 -0
  143. package/dist/deploy-DqH8QReb.mjs.map +1 -0
  144. package/dist/destroy-B9myEYFT.mjs +788 -0
  145. package/dist/destroy-B9myEYFT.mjs.map +1 -0
  146. package/dist/destroy-Bp5iHtLf.cjs +789 -0
  147. package/dist/destroy-Bp5iHtLf.cjs.map +1 -0
  148. package/dist/discover-39VKSE2i.cjs +1085 -0
  149. package/dist/discover-39VKSE2i.cjs.map +1 -0
  150. package/dist/discover-B_PDDaVj.mjs +940 -0
  151. package/dist/discover-B_PDDaVj.mjs.map +1 -0
  152. package/dist/docker-BezTRGxN.cjs +1520 -0
  153. package/dist/docker-BezTRGxN.cjs.map +1 -0
  154. package/dist/docker-De_-Ll-A.mjs +1413 -0
  155. package/dist/docker-De_-Ll-A.mjs.map +1 -0
  156. package/dist/dokploy-CWCIqro_.cjs +38 -0
  157. package/dist/dokploy-CWCIqro_.cjs.map +1 -0
  158. package/dist/dokploy-EsBgWO8W.mjs +38 -0
  159. package/dist/dokploy-EsBgWO8W.mjs.map +1 -0
  160. package/dist/drivers-BhdC9Efj.cjs +248 -0
  161. package/dist/drivers-BhdC9Efj.cjs.map +1 -0
  162. package/dist/drivers-wcDnzf7l.mjs +213 -0
  163. package/dist/drivers-wcDnzf7l.mjs.map +1 -0
  164. package/dist/eas-8t6PJRni.cjs +337 -0
  165. package/dist/eas-8t6PJRni.cjs.map +1 -0
  166. package/dist/eas-BalvsiH5.mjs +334 -0
  167. package/dist/eas-BalvsiH5.mjs.map +1 -0
  168. package/dist/emit-C4KSXOeS.mjs +153 -0
  169. package/dist/emit-C4KSXOeS.mjs.map +1 -0
  170. package/dist/emit-DiW0kbue.cjs +164 -0
  171. package/dist/emit-DiW0kbue.cjs.map +1 -0
  172. package/dist/encryption-B4mWxt4G.mjs +89 -0
  173. package/dist/encryption-B4mWxt4G.mjs.map +1 -0
  174. package/dist/encryption-CKBmU66R.cjs +90 -0
  175. package/dist/encryption-CKBmU66R.cjs.map +1 -0
  176. package/dist/engine-BTG46RG-.cjs +3329 -0
  177. package/dist/engine-BTG46RG-.cjs.map +1 -0
  178. package/dist/engine-y8iWIXuv.mjs +3216 -0
  179. package/dist/engine-y8iWIXuv.mjs.map +1 -0
  180. package/dist/errors-D8Gwp5kU.mjs +23 -0
  181. package/dist/errors-D8Gwp5kU.mjs.map +1 -0
  182. package/dist/errors-DMC4Umsb.cjs +34 -0
  183. package/dist/errors-DMC4Umsb.cjs.map +1 -0
  184. package/dist/github-CeXlzWWA.cjs +978 -0
  185. package/dist/github-CeXlzWWA.cjs.map +1 -0
  186. package/dist/github-DvGoKoQO.mjs +977 -0
  187. package/dist/github-DvGoKoQO.mjs.map +1 -0
  188. package/dist/googlePlay-CfzG7jOJ.cjs +931 -0
  189. package/dist/googlePlay-CfzG7jOJ.cjs.map +1 -0
  190. package/dist/googlePlay-DWv6CUgM.mjs +931 -0
  191. package/dist/googlePlay-DWv6CUgM.mjs.map +1 -0
  192. package/dist/iam-BE0qX5Lb.mjs +442 -0
  193. package/dist/iam-BE0qX5Lb.mjs.map +1 -0
  194. package/dist/iam-FA95ku7l.cjs +521 -0
  195. package/dist/iam-FA95ku7l.cjs.map +1 -0
  196. package/dist/{index-RCUizGxL.d.cts → index-QxGYzGEN.d.mts} +38 -14
  197. package/dist/index-QxGYzGEN.d.mts.map +1 -0
  198. package/dist/{index-B4H4XF7A.d.mts → index-tFzoro1V.d.cts} +38 -14
  199. package/dist/index-tFzoro1V.d.cts.map +1 -0
  200. package/dist/index.cjs +15142 -13470
  201. package/dist/index.cjs.map +1 -1
  202. package/dist/index.mjs +14959 -13285
  203. package/dist/index.mjs.map +1 -1
  204. package/dist/local-CvRvfktv.mjs +224 -0
  205. package/dist/local-CvRvfktv.mjs.map +1 -0
  206. package/dist/local-DH9at_0c.cjs +241 -0
  207. package/dist/local-DH9at_0c.cjs.map +1 -0
  208. package/dist/migrate-B1lHo2K2.cjs +272 -0
  209. package/dist/migrate-B1lHo2K2.cjs.map +1 -0
  210. package/dist/migrate-D1iCmQgc.mjs +267 -0
  211. package/dist/migrate-D1iCmQgc.mjs.map +1 -0
  212. package/dist/migrate-DzOWCnRR.cjs +181 -0
  213. package/dist/migrate-DzOWCnRR.cjs.map +1 -0
  214. package/dist/migrate-NmW2Su8s.mjs +181 -0
  215. package/dist/migrate-NmW2Su8s.mjs.map +1 -0
  216. package/dist/next.cjs +59 -0
  217. package/dist/next.cjs.map +1 -0
  218. package/dist/next.d.cts +44 -0
  219. package/dist/next.d.cts.map +1 -0
  220. package/dist/next.d.mts +44 -0
  221. package/dist/next.d.mts.map +1 -0
  222. package/dist/next.mjs +58 -0
  223. package/dist/next.mjs.map +1 -0
  224. package/dist/notes-BdIY7IoB.mjs +409 -0
  225. package/dist/notes-BdIY7IoB.mjs.map +1 -0
  226. package/dist/notes-ikElBCC8.cjs +510 -0
  227. package/dist/notes-ikElBCC8.cjs.map +1 -0
  228. package/dist/openapi.cjs +213 -7
  229. package/dist/openapi.cjs.map +1 -0
  230. package/dist/openapi.d.cts +32 -8
  231. package/dist/openapi.d.cts.map +1 -1
  232. package/dist/openapi.d.mts +32 -8
  233. package/dist/openapi.d.mts.map +1 -1
  234. package/dist/openapi.mjs +208 -2
  235. package/dist/openapi.mjs.map +1 -0
  236. package/dist/projectBucket-C-FOIic4.mjs +222 -0
  237. package/dist/projectBucket-C-FOIic4.mjs.map +1 -0
  238. package/dist/projectBucket-uidxz03Q.cjs +263 -0
  239. package/dist/projectBucket-uidxz03Q.cjs.map +1 -0
  240. package/dist/provider-BqpjG9QM.cjs +57 -0
  241. package/dist/provider-BqpjG9QM.cjs.map +1 -0
  242. package/dist/provider-CEOKk8NS.mjs +46 -0
  243. package/dist/provider-CEOKk8NS.mjs.map +1 -0
  244. package/dist/publish-Ujng6o63.mjs +123 -0
  245. package/dist/publish-Ujng6o63.mjs.map +1 -0
  246. package/dist/publish-oO_8elIf.cjs +124 -0
  247. package/dist/publish-oO_8elIf.cjs.map +1 -0
  248. package/dist/ready-COJHr1Yi.mjs +375 -0
  249. package/dist/ready-COJHr1Yi.mjs.map +1 -0
  250. package/dist/ready-DcD0SCnV.cjs +404 -0
  251. package/dist/ready-DcD0SCnV.cjs.map +1 -0
  252. package/dist/reconcile/public.cjs +3 -5
  253. package/dist/reconcile/public.d.cts +33 -89
  254. package/dist/reconcile/public.d.cts.map +1 -1
  255. package/dist/reconcile/public.d.mts +33 -89
  256. package/dist/reconcile/public.d.mts.map +1 -1
  257. package/dist/reconcile/public.mjs +3 -3
  258. package/dist/reconcile--I7V4Klj.mjs +34 -0
  259. package/dist/reconcile--I7V4Klj.mjs.map +1 -0
  260. package/dist/reconcile-CuCQBa5-.cjs +34 -0
  261. package/dist/reconcile-CuCQBa5-.cjs.map +1 -0
  262. package/dist/resolve-CTb1gsTO.cjs +316 -0
  263. package/dist/resolve-CTb1gsTO.cjs.map +1 -0
  264. package/dist/resolve-Lk7fd8Kb.mjs +263 -0
  265. package/dist/resolve-Lk7fd8Kb.mjs.map +1 -0
  266. package/dist/rollback-B2DhSX-I.mjs +136 -0
  267. package/dist/rollback-B2DhSX-I.mjs.map +1 -0
  268. package/dist/rollback-PK4pSOLd.cjs +165 -0
  269. package/dist/rollback-PK4pSOLd.cjs.map +1 -0
  270. package/dist/runtime-BpGIXfYr.d.mts +82 -0
  271. package/dist/runtime-BpGIXfYr.d.mts.map +1 -0
  272. package/dist/runtime-DLV0CNZ4.d.cts +82 -0
  273. package/dist/runtime-DLV0CNZ4.d.cts.map +1 -0
  274. package/dist/s3-BY5ry__M.mjs +240 -0
  275. package/dist/s3-BY5ry__M.mjs.map +1 -0
  276. package/dist/s3-FG9qIgEB.cjs +240 -0
  277. package/dist/s3-FG9qIgEB.cjs.map +1 -0
  278. package/dist/sandbox/config-worker.cjs +43 -0
  279. package/dist/sandbox/config-worker.cjs.map +1 -0
  280. package/dist/sandbox/config-worker.d.cts +1 -0
  281. package/dist/sandbox/config-worker.d.mts +1 -0
  282. package/dist/sandbox/config-worker.mjs +44 -0
  283. package/dist/sandbox/config-worker.mjs.map +1 -0
  284. package/dist/sandbox/credentials-worker.cjs +53 -0
  285. package/dist/sandbox/credentials-worker.cjs.map +1 -0
  286. package/dist/sandbox/credentials-worker.d.cts +1 -0
  287. package/dist/sandbox/credentials-worker.d.mts +1 -0
  288. package/dist/sandbox/credentials-worker.mjs +54 -0
  289. package/dist/sandbox/credentials-worker.mjs.map +1 -0
  290. package/dist/sandbox/discover-worker.cjs +47 -0
  291. package/dist/sandbox/discover-worker.cjs.map +1 -0
  292. package/dist/sandbox/discover-worker.d.cts +1 -0
  293. package/dist/sandbox/discover-worker.d.mts +1 -0
  294. package/dist/sandbox/discover-worker.mjs +48 -0
  295. package/dist/sandbox/discover-worker.mjs.map +1 -0
  296. package/dist/sandbox/migrate-worker.cjs +75 -0
  297. package/dist/sandbox/migrate-worker.cjs.map +1 -0
  298. package/dist/sandbox/migrate-worker.d.cts +1 -0
  299. package/dist/sandbox/migrate-worker.d.mts +1 -0
  300. package/dist/sandbox/migrate-worker.mjs +76 -0
  301. package/dist/sandbox/migrate-worker.mjs.map +1 -0
  302. package/dist/{workspace-B8NLb54N.cjs → schemas-BCwKKA42.mjs} +399 -1173
  303. package/dist/schemas-BCwKKA42.mjs.map +1 -0
  304. package/dist/{workspace-DI-M3BnN.mjs → schemas-BQ_v0lEX.cjs} +487 -982
  305. package/dist/schemas-BQ_v0lEX.cjs.map +1 -0
  306. package/dist/secretsManager-CJyxFcBH.mjs +113 -0
  307. package/dist/secretsManager-CJyxFcBH.mjs.map +1 -0
  308. package/dist/secretsManager-D8on44WI.cjs +124 -0
  309. package/dist/secretsManager-D8on44WI.cjs.map +1 -0
  310. package/dist/seeds-Bc3niNVb.cjs +382 -0
  311. package/dist/seeds-Bc3niNVb.cjs.map +1 -0
  312. package/dist/seeds-Ccn0Ru2T.mjs +299 -0
  313. package/dist/seeds-Ccn0Ru2T.mjs.map +1 -0
  314. package/dist/serverSetup-BL1sHzRr.mjs +685 -0
  315. package/dist/serverSetup-BL1sHzRr.mjs.map +1 -0
  316. package/dist/serverSetup-C7fDKGiN.cjs +685 -0
  317. package/dist/serverSetup-C7fDKGiN.cjs.map +1 -0
  318. package/dist/sniffer-BvhDRsgI.mjs +1824 -0
  319. package/dist/sniffer-BvhDRsgI.mjs.map +1 -0
  320. package/dist/sniffer-DJp9a2Pg.cjs +1997 -0
  321. package/dist/sniffer-DJp9a2Pg.cjs.map +1 -0
  322. package/dist/snsSubscriptions-7y2XBXde.mjs +1053 -0
  323. package/dist/snsSubscriptions-7y2XBXde.mjs.map +1 -0
  324. package/dist/snsSubscriptions-8t1XFvoc.cjs +1184 -0
  325. package/dist/snsSubscriptions-8t1XFvoc.cjs.map +1 -0
  326. package/dist/sst-8HZe83-M.cjs +501 -0
  327. package/dist/sst-8HZe83-M.cjs.map +1 -0
  328. package/dist/sst-CzFd-1om.mjs +478 -0
  329. package/dist/sst-CzFd-1om.mjs.map +1 -0
  330. package/dist/stack-3tvhk7SU.cjs +2568 -0
  331. package/dist/stack-3tvhk7SU.cjs.map +1 -0
  332. package/dist/stack-j2e8ddGl.mjs +2381 -0
  333. package/dist/stack-j2e8ddGl.mjs.map +1 -0
  334. package/dist/stage-DCSJii_y.cjs +313 -0
  335. package/dist/stage-DCSJii_y.cjs.map +1 -0
  336. package/dist/stage-DMv-IfSD.mjs +302 -0
  337. package/dist/stage-DMv-IfSD.mjs.map +1 -0
  338. package/dist/stages-CCAAe1tP.mjs +190 -0
  339. package/dist/stages-CCAAe1tP.mjs.map +1 -0
  340. package/dist/stages-D49CUpBY.cjs +190 -0
  341. package/dist/stages-D49CUpBY.cjs.map +1 -0
  342. package/dist/target/public.cjs +15 -0
  343. package/dist/target/public.d.cts +28 -0
  344. package/dist/target/public.d.cts.map +1 -0
  345. package/dist/target/public.d.mts +28 -0
  346. package/dist/target/public.d.mts.map +1 -0
  347. package/dist/target/public.mjs +4 -0
  348. package/dist/terminal-DIEj2Nap.cjs +85 -0
  349. package/dist/terminal-DIEj2Nap.cjs.map +1 -0
  350. package/dist/terminal-VLmWgL_N.mjs +85 -0
  351. package/dist/terminal-VLmWgL_N.mjs.map +1 -0
  352. package/dist/{types-N7c2O2m7.d.cts → types-Bj1A1wkS.d.mts} +2146 -428
  353. package/dist/types-Bj1A1wkS.d.mts.map +1 -0
  354. package/dist/types-Bl_CwZC9.cjs +90 -0
  355. package/dist/types-Bl_CwZC9.cjs.map +1 -0
  356. package/dist/{types-7R81hu0i.d.mts → types-CV4AzwC_.d.cts} +2148 -428
  357. package/dist/types-CV4AzwC_.d.cts.map +1 -0
  358. package/dist/types-Y1NfWlyG.mjs +61 -0
  359. package/dist/types-Y1NfWlyG.mjs.map +1 -0
  360. package/dist/utils-D2Nk1Nv2.cjs +205 -0
  361. package/dist/utils-D2Nk1Nv2.cjs.map +1 -0
  362. package/dist/utils-D_fxUqvU.mjs +156 -0
  363. package/dist/utils-D_fxUqvU.mjs.map +1 -0
  364. package/dist/vitest.cjs +65 -0
  365. package/dist/vitest.cjs.map +1 -0
  366. package/dist/vitest.d.cts +29 -0
  367. package/dist/vitest.d.cts.map +1 -0
  368. package/dist/vitest.d.mts +29 -0
  369. package/dist/vitest.d.mts.map +1 -0
  370. package/dist/vitest.mjs +65 -0
  371. package/dist/vitest.mjs.map +1 -0
  372. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  373. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  374. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  375. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  376. package/dist/workspace/index.cjs +6 -2
  377. package/dist/workspace/index.d.cts +3 -3
  378. package/dist/workspace/index.d.mts +3 -3
  379. package/dist/workspace/index.mjs +2 -2
  380. package/dist/workspace-B0PI9k9p.mjs +3013 -0
  381. package/dist/workspace-B0PI9k9p.mjs.map +1 -0
  382. package/dist/workspace-LR9DFjU8.cjs +3563 -0
  383. package/dist/workspace-LR9DFjU8.cjs.map +1 -0
  384. package/package.json +75 -13
  385. package/dist/HostingerProvider-BY26bWwB.mjs.map +0 -1
  386. package/dist/HostingerProvider-BZFGYYVA.cjs.map +0 -1
  387. package/dist/LocalStateProvider-7HR6SS2t.cjs +0 -48
  388. package/dist/LocalStateProvider-7HR6SS2t.cjs.map +0 -1
  389. package/dist/LocalStateProvider-D7QyJoLM.mjs +0 -48
  390. package/dist/LocalStateProvider-D7QyJoLM.mjs.map +0 -1
  391. package/dist/Route53Provider-Cvj40A8I.mjs.map +0 -1
  392. package/dist/Route53Provider-DVILBsvV.cjs.map +0 -1
  393. package/dist/SSMStateProvider-B0Hu1MKZ.mjs +0 -75
  394. package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +0 -1
  395. package/dist/SSMStateProvider-VrQ-yeqd.cjs +0 -74
  396. package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +0 -1
  397. package/dist/backup-provisioner-BmhIO_Yr.cjs.map +0 -1
  398. package/dist/backup-provisioner-DIVCbfee.mjs.map +0 -1
  399. package/dist/bundler-mjqGAvu1.cjs.map +0 -1
  400. package/dist/bundler-mwH7WOb1.mjs.map +0 -1
  401. package/dist/config-CdTMeMU_.cjs +0 -467
  402. package/dist/config-CdTMeMU_.cjs.map +0 -1
  403. package/dist/config-DPnPkWyH.mjs +0 -414
  404. package/dist/config-DPnPkWyH.mjs.map +0 -1
  405. package/dist/config.d.cts.map +0 -1
  406. package/dist/config.d.mts.map +0 -1
  407. package/dist/credentials-fJP5-fa1.mjs +0 -2780
  408. package/dist/credentials-fJP5-fa1.mjs.map +0 -1
  409. package/dist/credentials-tvyReUAd.cjs +0 -2917
  410. package/dist/credentials-tvyReUAd.cjs.map +0 -1
  411. package/dist/discover-BERGFg8v.cjs +0 -288
  412. package/dist/discover-BERGFg8v.cjs.map +0 -1
  413. package/dist/discover-CK-n3w6b.mjs +0 -244
  414. package/dist/discover-CK-n3w6b.mjs.map +0 -1
  415. package/dist/emit-BdoPFjZf.cjs +0 -253
  416. package/dist/emit-BdoPFjZf.cjs.map +0 -1
  417. package/dist/emit-Bzq7JsMP.mjs +0 -224
  418. package/dist/emit-Bzq7JsMP.mjs.map +0 -1
  419. package/dist/generator-LfZU7NlU.mjs +0 -247
  420. package/dist/generator-LfZU7NlU.mjs.map +0 -1
  421. package/dist/generator-Wdfp0jCS.cjs +0 -282
  422. package/dist/generator-Wdfp0jCS.cjs.map +0 -1
  423. package/dist/github-CAfKyYPN.mjs +0 -216
  424. package/dist/github-CAfKyYPN.mjs.map +0 -1
  425. package/dist/github-DVE8Gg_F.cjs +0 -216
  426. package/dist/github-DVE8Gg_F.cjs.map +0 -1
  427. package/dist/index-B4H4XF7A.d.mts.map +0 -1
  428. package/dist/index-RCUizGxL.d.cts.map +0 -1
  429. package/dist/openapi-BeckoaP9.cjs +0 -2038
  430. package/dist/openapi-BeckoaP9.cjs.map +0 -1
  431. package/dist/openapi-DolhBm6r.mjs +0 -1991
  432. package/dist/openapi-DolhBm6r.mjs.map +0 -1
  433. package/dist/reconcile-Cq4cO83R.cjs +0 -136
  434. package/dist/reconcile-Cq4cO83R.cjs.map +0 -1
  435. package/dist/reconcile-fmoluZmZ.mjs +0 -113
  436. package/dist/reconcile-fmoluZmZ.mjs.map +0 -1
  437. package/dist/ssm-BKN1Cg4z.mjs +0 -60
  438. package/dist/ssm-BKN1Cg4z.mjs.map +0 -1
  439. package/dist/ssm-FxeSAt35.cjs +0 -60
  440. package/dist/ssm-FxeSAt35.cjs.map +0 -1
  441. package/dist/storage-DgypfSD6.cjs +0 -351
  442. package/dist/storage-DgypfSD6.cjs.map +0 -1
  443. package/dist/storage-TP0x118M.mjs +0 -304
  444. package/dist/storage-TP0x118M.mjs.map +0 -1
  445. package/dist/transfer-4A4S2hcw.mjs +0 -122
  446. package/dist/transfer-4A4S2hcw.mjs.map +0 -1
  447. package/dist/transfer-DdmtKLzi.cjs +0 -151
  448. package/dist/transfer-DdmtKLzi.cjs.map +0 -1
  449. package/dist/types-7R81hu0i.d.mts.map +0 -1
  450. package/dist/types-N7c2O2m7.d.cts.map +0 -1
  451. package/dist/workspace-B8NLb54N.cjs.map +0 -1
  452. package/dist/workspace-DI-M3BnN.mjs.map +0 -1
@@ -0,0 +1,658 @@
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-CV4AzwC_.cjs";
2
+ import "../index-tFzoro1V.cjs";
3
+ import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-D-gHQXhi.cjs";
4
+ 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-DLV0CNZ4.cjs";
5
+ import { ConstructManifest, Declaration } from "@geekmidas/manifest";
6
+ import "@geekmidas/envkit/sniffer";
7
+ import "@geekmidas/db/pg/roles";
8
+ import "@aws-sdk/client-s3";
9
+ //#region src/home.d.ts
10
+ /**
11
+ * Where the CLI keeps what belongs to a person rather than a project: stage
12
+ * keys and stored provider credentials.
13
+ *
14
+ * `GKM_HOME` names it, so a CI job, a shared build runner or a test can give
15
+ * every run its own instead of reaching into whoever's home directory the
16
+ * process happens to have. Unset, it is `~/.gkm`, where it has always been.
17
+ */
18
+ /** The environment variable that moves the CLI's home. */
19
+ export declare const GKM_HOME_ENV = "GKM_HOME";
20
+ /** The CLI's home: `GKM_HOME` if set, else `~/.gkm`. */
21
+ export declare function gkmHome(env?: NodeJS.ProcessEnv): string;
22
+ //#endregion
23
+ //#region src/providers/config.d.ts
24
+ /** An entry that names no provider gkm has, or is not an entry at all. */
25
+ export declare class UnknownStageProvider extends GkmError {
26
+ readonly kind: ProviderKind;
27
+ readonly stage: string;
28
+ readonly value: unknown;
29
+ constructor(kind: ProviderKind, stage: string, value: unknown);
30
+ }
31
+ //#endregion
32
+ //#region src/deploy/devServices.d.ts
33
+ /**
34
+ * The dev services a deployed stage can run — one per kind that has one on
35
+ * every server target: a bucket's MinIO and mail's Mailpit. A cache or a
36
+ * database is not here because a server stage runs its own anyway.
37
+ */
38
+ export declare const DEV_SERVICES: readonly ['minio', 'mailpit'];
39
+ type DevService = (typeof DEV_SERVICES)[number];
40
+ /** Dev services asked of a target that runs no containers. */
41
+ export declare class DevServicesNeedServerTarget extends GkmError {
42
+ readonly target: string;
43
+ constructor(target: string);
44
+ }
45
+ /**
46
+ * `--allow-dev-services` given a value — the list it used to take. It is a
47
+ * switch now: every construct the stage does not account for gets its dev
48
+ * service.
49
+ */
50
+ export declare class AllowDevServicesTakesNoValue extends GkmError {
51
+ readonly value: string;
52
+ constructor(value: string);
53
+ }
54
+ /** One key a deployed stage needs and its secrets do not hold. */
55
+ interface MissingServiceKey {
56
+ key: string;
57
+ /** The construct that reads it. */
58
+ id: string;
59
+ /** What it is, for the line that names it. */
60
+ what: string;
61
+ /** A line after `what`, for what else there is to know about it. */
62
+ note?: string;
63
+ /** A placeholder value to show in the `gkm secrets:set` line. */
64
+ example: string;
65
+ /** The dev service that would stand in for it, unless the stage accounts for it. */
66
+ service?: DevService;
67
+ /** The apps that read it, where known. */
68
+ apps?: readonly string[];
69
+ /** What creates it, where a provider backs it on the stage. */
70
+ hint?: string;
71
+ }
72
+ /**
73
+ * A deployed stage with mail or object storage that its secrets do not
74
+ * configure — every missing key, across every app, at once.
75
+ */
76
+ export declare class ExternalServicesNotConfigured extends GkmError {
77
+ readonly stage: string;
78
+ readonly missing: readonly MissingServiceKey[];
79
+ constructor(stage: string, missing: readonly MissingServiceKey[]);
80
+ }
81
+ //#endregion
82
+ //#region src/providers/notes.d.ts
83
+ /** A stage that names `false` for a kind, and declares constructs of it. */
84
+ export declare class StageProviderDisabled extends GkmError {
85
+ readonly kind: ProviderKind;
86
+ readonly stage: string;
87
+ readonly ids: readonly string[];
88
+ constructor(kind: ProviderKind, stage: string, ids: readonly string[]);
89
+ }
90
+ //#endregion
91
+ //#region src/providers/s3/errors.d.ts
92
+ /** `verify()`: a provisioned bucket the stage's key cannot reach. */
93
+ export declare class ProvisionedBucketUnreachable extends GkmError {
94
+ readonly id: string;
95
+ readonly bucket: string;
96
+ readonly stage: string;
97
+ readonly reason: string;
98
+ constructor(id: string, bucket: string, stage: string, reason: string);
99
+ }
100
+ //#endregion
101
+ //#region src/run.d.ts
102
+ /** The program ran and exited unsuccessfully; its own output said why. */
103
+ export declare class CommandFailed extends Error {
104
+ readonly command: string;
105
+ readonly args: readonly string[];
106
+ readonly exitCode: number | null;
107
+ readonly signal: NodeJS.Signals | null;
108
+ constructor(command: string, args: readonly string[], exitCode: number | null, signal: NodeJS.Signals | null);
109
+ }
110
+ /** The program ran past its timeout and was killed. */
111
+ export declare class CommandTimedOut extends Error {
112
+ readonly command: string;
113
+ readonly args: readonly string[];
114
+ readonly timeoutMs: number;
115
+ constructor(command: string, args: readonly string[], timeoutMs: number);
116
+ }
117
+ //#endregion
118
+ //#region src/sandbox/env.d.ts
119
+ /**
120
+ * What of the host's environment a local sandbox passes on.
121
+ *
122
+ * An allowlist, not a denylist: a credential's variable has any name its
123
+ * owner chose (`DOKPLOY_TOKEN`, `AWS_SECRET_ACCESS_KEY`, `MY_VAULT_TOKEN`), so
124
+ * the only safe default is to name what a program needs to *run* and pass
125
+ * nothing else.
126
+ */
127
+ /**
128
+ * Variables a command needs to find programs, write temp files, print in the
129
+ * user's locale and reach the network through the host's proxy — and nothing
130
+ * that authenticates as anyone.
131
+ *
132
+ * Deliberately left out:
133
+ * - `NODE_OPTIONS`: it can `--require` or `--import` code into every node
134
+ * process, and CI often holds `--import tsx` there. A step that needs a
135
+ * loader passes its own.
136
+ * - `NODE_AUTH_TOKEN`, `NPM_TOKEN`, `npm_config_*`: registry tokens
137
+ * (`actions/setup-node` writes `NODE_AUTH_TOKEN`), which is why there is no
138
+ * `NODE_*` wildcard.
139
+ * - `AWS_*`, `DOCKER_*`, `DOKPLOY_*`, `GITHUB_TOKEN`, `TURBO_TOKEN`, `GKM_*`:
140
+ * credentials, or where the deploy keeps them.
141
+ * - `SHELL`, `EDITOR` and the rest of a login session: nothing here starts a
142
+ * shell.
143
+ *
144
+ * Proxies are passed: behind one, nothing installs or builds without it. A
145
+ * proxy URL with a password in it reaches the command too — a host that keeps
146
+ * one there and builds code it does not trust should pass a sandbox of its
147
+ * own.
148
+ */
149
+ export declare const SANDBOX_ENV_ALLOWLIST: readonly (string | RegExp)[];
150
+ /**
151
+ * The allowlisted part of `source`, plus each of `extra` the host chose to
152
+ * pass on by name.
153
+ */
154
+ export declare function allowlistedEnv(source?: NodeJS.ProcessEnv, extra?: readonly string[]): Record<string, string>;
155
+ //#endregion
156
+ //#region src/docker/templates.d.ts
157
+ type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun';
158
+ //#endregion
159
+ //#region src/sandbox/install.d.ts
160
+ /** Long enough for a cold install of a large monorepo. */
161
+ export declare const INSTALL_TIMEOUT_MS: number;
162
+ interface InstallOptions {
163
+ /** The directory to install in. Defaults to the sandbox's root. */
164
+ cwd?: string;
165
+ /** Defaults to the one the lockfile above `cwd` names. */
166
+ packageManager?: PackageManager;
167
+ /**
168
+ * Skip every lifecycle script — dependencies' and the project's own —
169
+ * except those of {@link allowScripts}. Defaults to false: scripts run as
170
+ * a plain install runs them, under the package manager's own policy —
171
+ * npm 12 and pnpm 10 skip dependencies' scripts nobody approved.
172
+ */
173
+ ignoreScripts?: boolean;
174
+ /**
175
+ * With `ignoreScripts`, the packages whose scripts still run: rebuilt by
176
+ * name once the install is done.
177
+ */
178
+ allowScripts?: readonly string[];
179
+ /** Variables the install needs beyond the sandbox's own. */
180
+ env?: Readonly<Record<string, string>>;
181
+ /** Defaults to {@link INSTALL_TIMEOUT_MS}, for each command. */
182
+ timeoutMs?: number;
183
+ /** Where the package manager's output goes. Defaults to `inherit`. */
184
+ output?: SandboxOutput;
185
+ signal?: AbortSignal;
186
+ }
187
+ /** A name in `allowScripts` that is not a package name. */
188
+ export declare class InstallAllowlistNameInvalid extends GkmError {
189
+ readonly packageName: string;
190
+ constructor(packageName: string);
191
+ }
192
+ /** The package manager has no way to run only some packages' scripts. */
193
+ export declare class InstallScriptsAllowlistUnsupported extends GkmError {
194
+ readonly packageManager: string;
195
+ readonly allowScripts: readonly string[];
196
+ constructor(packageManager: string, allowScripts: readonly string[]);
197
+ }
198
+ /**
199
+ * Install the project's dependencies in `sandbox`.
200
+ *
201
+ * ```ts
202
+ * // A checkout nobody has reviewed: no scripts but esbuild's.
203
+ * await installDependencies(sandbox, {
204
+ * ignoreScripts: true,
205
+ * allowScripts: ['esbuild'],
206
+ * });
207
+ * ```
208
+ *
209
+ * Resolves with each command's result, in order — with its output when
210
+ * `output` is `capture`.
211
+ *
212
+ * @throws {CommandFailed} when the package manager exits unsuccessfully.
213
+ * @throws {InstallScriptsAllowlistUnsupported} for an allowlist the package
214
+ * manager cannot honour, before anything is installed.
215
+ */
216
+ export declare function installDependencies(sandbox: Sandbox, options?: InstallOptions): Promise<SandboxResult[]>;
217
+ //#endregion
218
+ //#region src/sandbox/local.d.ts
219
+ interface LocalSandboxOptions {
220
+ /** The project. Every command runs at or below it. */
221
+ root: string;
222
+ /**
223
+ * `HOME` for every command. Defaults to the host's, because a build
224
+ * reuses the caches kept there — the pnpm store, corepack's package
225
+ * managers, turbo's cache — and a cold one re-downloads all of them.
226
+ * Point it at an empty directory to keep `~/.aws`, `~/.npmrc` and
227
+ * `~/.docker` out of reach of an SDK's default lookup — though, sharing
228
+ * the host's filesystem, a command that goes looking still finds them.
229
+ */
230
+ home?: string;
231
+ /**
232
+ * Host variables to pass on beyond the allowlist, by name — a remote
233
+ * cache's `TURBO_TOKEN`, for a build the host trusts with it.
234
+ */
235
+ passEnv?: readonly string[];
236
+ /** Where the allowlisted variables are read from. Defaults to `process.env`. */
237
+ hostEnv?: NodeJS.ProcessEnv;
238
+ }
239
+ /**
240
+ * A child process on this machine, as this user, with an allowlisted
241
+ * environment.
242
+ *
243
+ * What it withholds from the command: the host's environment beyond
244
+ * {@link SANDBOX_ENV_ALLOWLIST}, a shell, a working directory outside the
245
+ * project, and any time past the timeout. What it does not: the host's
246
+ * filesystem, which the command can read and write as the user running the
247
+ * deploy. So it is not `isolating`, and it is the default for projects the
248
+ * host already trusts — the developer's own, a team's own CI. Code nobody
249
+ * vetted belongs in a sandbox that is.
250
+ *
251
+ * A timed-out command is sent SIGTERM, then SIGKILL; processes it started
252
+ * itself are its to stop.
253
+ */
254
+ export declare class LocalSandbox implements Sandbox {
255
+ readonly root: string;
256
+ readonly isolating = false;
257
+ readonly env: Readonly<Record<string, string>>;
258
+ constructor(options: LocalSandboxOptions);
259
+ exec(command: string, args: readonly string[], options: SandboxExecOptions): Promise<SandboxResult>;
260
+ }
261
+ //#endregion
262
+ //#region src/sandbox/worker.d.ts
263
+ /** A worker ended without the answer it exists to give. */
264
+ export declare class SandboxWorkerFailed extends Error {
265
+ readonly step: string;
266
+ readonly exitCode: number | null;
267
+ readonly stderr: string;
268
+ constructor(step: string, exitCode: number | null, stderr: string);
269
+ }
270
+ //#endregion
271
+ //#region src/target/dokploy/dokploy-api.d.ts
272
+ /** A deployment Dokploy ran and reported as failed. */
273
+ export declare class DeploymentFailed extends GkmError {
274
+ readonly applicationId: string;
275
+ readonly deployment: DokployDeployment;
276
+ constructor(applicationId: string, deployment: DokployDeployment);
277
+ }
278
+ /** A deployment that had not finished when the deploy stopped waiting. */
279
+ export declare class DeploymentTimedOut extends GkmError {
280
+ readonly applicationId: string;
281
+ readonly timeoutMs: number;
282
+ /** The last status seen, if a deployment had appeared at all. */
283
+ readonly lastStatus: DokployDeploymentStatus | undefined;
284
+ constructor(applicationId: string, timeoutMs: number,
285
+ /** The last status seen, if a deployment had appeared at all. */
286
+ lastStatus: DokployDeploymentStatus | undefined);
287
+ }
288
+ type DokployDeploymentStatus = 'running' | 'done' | 'error' | 'cancelled';
289
+ /** One run of `application.deploy`, as `deployment.all` lists it. */
290
+ interface DokployDeployment {
291
+ deploymentId: string;
292
+ status: DokployDeploymentStatus;
293
+ /** ISO timestamp, by Dokploy's clock. */
294
+ createdAt: string;
295
+ title?: string;
296
+ errorMessage?: string | null;
297
+ }
298
+ //#endregion
299
+ //#region src/target/dokploy/engine.d.ts
300
+ /** A backend failed, so the run stopped before deploying anything after it. */
301
+ export declare class BackendDeployFailed extends Error {
302
+ readonly app: string;
303
+ constructor(app: string, cause: unknown);
304
+ }
305
+ /**
306
+ * Sites failed to release or to answer. Every site is attempted before this
307
+ * is thrown, so one broken site does not keep the others back — but the run
308
+ * fails, and what failed is rolled back.
309
+ */
310
+ export declare class FrontendDeployFailed extends Error {
311
+ readonly apps: readonly string[];
312
+ constructor(apps: readonly string[], cause: unknown);
313
+ }
314
+ /** An app's environment needs values the stage does not have. */
315
+ export declare class MissingEnvVars extends GkmError {
316
+ readonly app: string;
317
+ readonly missing: readonly string[];
318
+ readonly stage: string;
319
+ constructor(app: string, missing: readonly string[], stage: string);
320
+ }
321
+ //#endregion
322
+ //#region src/target/dokploy/health.d.ts
323
+ /** An app never answered healthy enough times in a row. */
324
+ export declare class HealthCheckTimedOut extends GkmError {
325
+ readonly app: string;
326
+ readonly url: string;
327
+ readonly timeoutMs: number;
328
+ /** The last answer's status, or undefined when the last request failed. */
329
+ readonly lastStatus: number | undefined;
330
+ constructor(app: string, url: string, timeoutMs: number,
331
+ /** The last answer's status, or undefined when the last request failed. */
332
+ lastStatus: number | undefined);
333
+ }
334
+ //#endregion
335
+ //#region src/target/dokploy/migrations.d.ts
336
+ /** The migrations of a deployed stage failed; the release stopped before any app. */
337
+ export declare class DeployMigrationsFailed extends Error {
338
+ readonly stage: string;
339
+ /** The failure's class name in the sandbox — `MigrationFailed`, … */
340
+ readonly reason: string;
341
+ constructor(stage: string,
342
+ /** The failure's class name in the sandbox — `MigrationFailed`, … */
343
+ reason: string, message: string);
344
+ }
345
+ //#endregion
346
+ //#region src/target/dokploy/rollback.d.ts
347
+ interface RollbackInput {
348
+ /** The project: the directory holding `gkm.config.ts`, or one inside it. */
349
+ cwd: string;
350
+ stage: string;
351
+ /** The app to roll back. */
352
+ app?: string;
353
+ /** Every app with an earlier release, instead of one. */
354
+ atomic?: boolean;
355
+ /** Defaults to the environment, then the logins `gkm login` stored. */
356
+ credentials?: CredentialProvider;
357
+ signal?: AbortSignal;
358
+ /** Each progress line. Defaults to none. */
359
+ log?: (line: string) => void;
360
+ /** Where the config is loaded. Defaults to a `LocalSandbox` on the project. */
361
+ sandbox?: Sandbox;
362
+ }
363
+ /** One app rolled back. */
364
+ interface RolledBack {
365
+ app: string;
366
+ from: ReleasedImage;
367
+ to: ReleasedImage;
368
+ }
369
+ /** Neither an app nor every app was asked for. */
370
+ export declare class RollbackNeedsApp extends GkmError {
371
+ readonly stage: string;
372
+ /** The apps that have a release to go back to. */
373
+ readonly apps: readonly string[];
374
+ constructor(stage: string,
375
+ /** The apps that have a release to go back to. */
376
+ apps: readonly string[]);
377
+ }
378
+ /** An app has no release before the one it runs. */
379
+ export declare class NothingToRollBack extends GkmError {
380
+ readonly stage: string;
381
+ readonly app: string;
382
+ constructor(stage: string, app: string);
383
+ }
384
+ /** The stage was never deployed through Dokploy from this state. */
385
+ export declare class StageNeverDeployed extends GkmError {
386
+ readonly stage: string;
387
+ constructor(stage: string);
388
+ }
389
+ /**
390
+ * Roll a stage's app — or, `atomic`, all of them — back to its previous
391
+ * release, holding the stage's lock as a deploy does.
392
+ */
393
+ export declare function rollbackStage(input: RollbackInput): Promise<RolledBack[]>;
394
+ //#endregion
395
+ //#region src/target/seeds.d.ts
396
+ /** A seed of a deployed stage failed; the release stopped before any app. */
397
+ export declare class DeploySeedsFailed extends Error {
398
+ readonly stage: string;
399
+ /** The construct whose seed failed: `Database`. */
400
+ readonly construct: string;
401
+ /** The seed file, by name: `001_roles`. */
402
+ readonly seed: string;
403
+ readonly cause: unknown;
404
+ constructor(stage: string,
405
+ /** The construct whose seed failed: `Database`. */
406
+ construct: string,
407
+ /** The seed file, by name: `001_roles`. */
408
+ seed: string, cause: unknown);
409
+ }
410
+ //#endregion
411
+ //#region src/target/sst/health.d.ts
412
+ /** Surfaces that never answered healthy. */
413
+ export declare class SurfacesUnhealthy extends GkmError {
414
+ readonly stage: string;
415
+ /** Each surface that failed, with the last thing it answered. */
416
+ readonly surfaces: readonly {
417
+ app: string;
418
+ url: string;
419
+ status?: number;
420
+ error?: string;
421
+ }[];
422
+ constructor(stage: string,
423
+ /** Each surface that failed, with the last thing it answered. */
424
+ surfaces: readonly {
425
+ app: string;
426
+ url: string;
427
+ status?: number;
428
+ error?: string;
429
+ }[]);
430
+ }
431
+ //#endregion
432
+ //#region src/target/sst/outputs.d.ts
433
+ /** `.sst/outputs.json` is there, and is not JSON. */
434
+ export declare class SstOutputsUnreadable extends GkmError {
435
+ readonly path: string;
436
+ readonly reason: string;
437
+ constructor(path: string, reason: string);
438
+ }
439
+ //#endregion
440
+ //#region src/target/sst/index.d.ts
441
+ /** The workspace has no `sst.config.ts` for `sst deploy` to run. */
442
+ export declare class SstConfigNotFound extends GkmError {
443
+ readonly cwd: string;
444
+ constructor(cwd: string);
445
+ }
446
+ //#endregion
447
+ //#region src/deploy/deploy.d.ts
448
+ /**
449
+ * Where a run's progress lines go, besides its events. `@geekmidas/logger`'s
450
+ * `Logger` is one.
451
+ */
452
+ interface DeployLogger {
453
+ info(message: string): void;
454
+ warn(message: string): void;
455
+ error?(message: string): void;
456
+ }
457
+ interface DeployInput {
458
+ /**
459
+ * The project to deploy: the directory holding `gkm.config.ts`, or any
460
+ * directory inside it. Never assumed to be `process.cwd()`.
461
+ */
462
+ cwd: string;
463
+ /**
464
+ * The workspace's config, already loaded by the caller — `gkm deploy` and
465
+ * `gkm compose` load it in their own process, with the environment they
466
+ * were run in. Every step of the run then reads these settings rather than
467
+ * loading the file again in the sandbox, whose environment is an
468
+ * allowlist: a config reading `process.env.DOMAIN` gave the deploy no
469
+ * domain. Absent, the run loads it in its sandbox, as for a checkout the
470
+ * host does not trust; a host that passes one vouches for it.
471
+ */
472
+ config?: GkmConfig | WorkspaceConfig;
473
+ /**
474
+ * The stage to deploy — one of the config's deployed stages, or its local
475
+ * stage through a target that runs one (`compose`).
476
+ */
477
+ stage: string;
478
+ /**
479
+ * The target to deploy through, by name. Defaults to `deploy.default`,
480
+ * else `dokploy`.
481
+ */
482
+ target?: string;
483
+ /**
484
+ * The host's own targets, by name. Consulted before the built-ins and the
485
+ * config's `deploy.targets`, so a host can deploy through an
486
+ * implementation of its own — `{ dokploy: myDokploy }` included.
487
+ */
488
+ targets?: Record<string, AnyDeployTarget>;
489
+ /** The image tag. Defaults to `<stage>-<timestamp>`. */
490
+ tag?: string;
491
+ /** Deploy only these apps (in dependency order). Defaults to all. */
492
+ apps?: string[];
493
+ /**
494
+ * Look everything up and report what would happen — as `resource.planned`
495
+ * events — without taking the lock, writing state, generating secrets,
496
+ * changing Dokploy or building and pushing images.
497
+ */
498
+ dryRun?: boolean;
499
+ /**
500
+ * Validate and build only: the target's images built — and pushed, where
501
+ * it pushes them — with no lock taken and nothing provisioned, released,
502
+ * verified or recorded. `gkm compose --build --push` runs this way.
503
+ */
504
+ buildOnly?: boolean;
505
+ /**
506
+ * When a release or its verification fails, roll back every app the run
507
+ * released rather than only the ones that failed — on a target that can
508
+ * roll back. For apps that must move together.
509
+ */
510
+ atomic?: boolean;
511
+ /**
512
+ * Where credentials come from. Defaults to the environment, then the
513
+ * logins `gkm login` stored. A credential no provider has stops the run
514
+ * with `MissingCredential`; nothing prompts.
515
+ */
516
+ credentials?: CredentialProvider;
517
+ /**
518
+ * On a server target, run a dev service for every construct a deployed
519
+ * stage does not account for — no key in its secrets, and no provider
520
+ * (`deploy.objects`) backing its kind: MinIO for a bucket, Mailpit for
521
+ * mail. Neither is production-grade — Mailpit delivers no mail — and every
522
+ * run that uses one emits `dev-service.used`. Without it, a deployed stage
523
+ * missing a mail or storage key fails with `ExternalServicesNotConfigured`;
524
+ * on an AWS target it fails with `DevServicesNeedServerTarget`.
525
+ */
526
+ allowDevServices?: boolean;
527
+ /**
528
+ * On a server target, neither write the public hosts' DNS records nor
529
+ * check that they point at the stage's server (`GKM_SERVER_IPV4`) — for a
530
+ * CDN or proxy in front of the server, or records written by another step.
531
+ */
532
+ skipDns?: boolean;
533
+ /** Each provider issues its runtime keys a successor. */
534
+ rotateKeys?: boolean;
535
+ /** Delete a rotated-out key now, not after the next deploy. */
536
+ retireOldKeys?: boolean;
537
+ /** Receives each progress line as it is written. Defaults to none. */
538
+ logger?: DeployLogger;
539
+ /**
540
+ * Stops the run: in-flight Dokploy requests and docker children are
541
+ * cancelled, the stage's lock is released, and `result` rejects with the
542
+ * signal's reason.
543
+ */
544
+ signal?: AbortSignal;
545
+ /**
546
+ * The CLI's home: stage keys and stored logins. Defaults to `GKM_HOME`,
547
+ * else `~/.gkm`.
548
+ */
549
+ home?: string;
550
+ /**
551
+ * Where docker's own output goes: the host's terminal (`inherit`, the
552
+ * default), its stderr, or nowhere.
553
+ */
554
+ childOutput?: 'inherit' | 'stderr' | 'ignore';
555
+ /**
556
+ * Where the project's own code runs: loading `gkm.config.ts`, discovering
557
+ * its constructs, sniffing each app's environment. Defaults to a
558
+ * `LocalSandbox` on the project — a child process here with an
559
+ * allowlisted environment, for a project the host trusts.
560
+ *
561
+ * A host deploying repositories it does not trust passes one that
562
+ * isolates — a container per build — and the config then reaches the
563
+ * deploy only as data. Credentials never enter a sandbox: they go from
564
+ * `credentials` to the steps that provision, push and release.
565
+ */
566
+ sandbox?: Sandbox;
567
+ }
568
+ /** A deploy in progress. */
569
+ interface DeployRun extends AsyncIterable<DeployEvent> {
570
+ /**
571
+ * What the deploy did, once it is done. Rejects with the error that
572
+ * stopped it — `MissingCredential`, `StateLocked`, `ProjectNotOwned`, … —
573
+ * after a `deploy.failed` event carrying the same.
574
+ */
575
+ readonly result: Promise<DeployResult>;
576
+ }
577
+ /**
578
+ * Deploy a project's stage.
579
+ *
580
+ * ```ts
581
+ * import { deploy } from '@geekmidas/cli/deploy';
582
+ *
583
+ * const run = deploy({ cwd: '/srv/checkouts/shop', stage: 'production' });
584
+ * for await (const event of run) {
585
+ * if (event.type === 'app.deployed') console.log(event.app, event.url);
586
+ * }
587
+ * const result = await run.result;
588
+ * ```
589
+ *
590
+ * The run starts at once; iterating it is optional, and an iteration started
591
+ * late still sees every event from the first.
592
+ */
593
+ export declare function deploy(input: DeployInput): DeployRun;
594
+ //#endregion
595
+ //#region src/deploy/orchestrate.d.ts
596
+ /** Apps were asked for by name that the workspace does not have. */
597
+ export declare class UnknownDeployApps extends GkmError {
598
+ readonly apps: readonly string[];
599
+ readonly available: readonly string[];
600
+ constructor(apps: readonly string[], available: readonly string[]);
601
+ }
602
+ /** Every app asked for deploys through some other target. */
603
+ export declare class NoDeployableApps extends GkmError {
604
+ readonly stage: string;
605
+ readonly target: string;
606
+ constructor(stage: string, target: string);
607
+ }
608
+ /** A build-only run through a target with no build phase. */
609
+ export declare class TargetBuildsNothing extends GkmError {
610
+ readonly target: string;
611
+ constructor(target: string);
612
+ }
613
+ /** A failed rollback, after the failure that called for it. */
614
+ export declare class RollbackFailed extends Error {
615
+ readonly target: string;
616
+ /** What failed first, and was being rolled back. */
617
+ readonly failure: unknown;
618
+ constructor(target: string,
619
+ /** What failed first, and was being rolled back. */
620
+ failure: unknown, cause: unknown);
621
+ }
622
+ //#endregion
623
+ //#region src/deploy/ownership.d.ts
624
+ /**
625
+ * A Dokploy project with the name this deploy would use exists, and nothing
626
+ * says this workspace created it.
627
+ */
628
+ export declare class ProjectNotOwned extends GkmError {
629
+ readonly projectName: string;
630
+ readonly projectId: string;
631
+ readonly identity: string;
632
+ /** The marker the project carries instead, if it carries one. */
633
+ readonly ownedBy: string | undefined;
634
+ constructor(projectName: string, projectId: string, identity: string,
635
+ /** The marker the project carries instead, if it carries one. */
636
+ ownedBy: string | undefined);
637
+ }
638
+ //#endregion
639
+ //#region src/deploy/registry.d.ts
640
+ /** There is nowhere to push images to, so Dokploy has nothing to pull. */
641
+ export declare class RegistryNotConfigured extends GkmError {
642
+ readonly stage: string;
643
+ constructor(stage: string);
644
+ }
645
+ /** `deploy.dokploy.registryId` names a registry Dokploy does not have. */
646
+ export declare class RegistryNotFound extends GkmError {
647
+ readonly registryId: string;
648
+ constructor(registryId: string);
649
+ }
650
+ /** More than one Dokploy registry serves the configured registry. */
651
+ export declare class RegistryAmbiguous extends GkmError {
652
+ readonly registry: string;
653
+ readonly registryIds: readonly string[];
654
+ constructor(registry: string, registryIds: readonly string[]);
655
+ }
656
+ //#endregion
657
+ 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 };
658
+ //# 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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"}