@geekmidas/cli 10.0.0-alpha.13 → 10.0.0-alpha.131

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 (430) 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-B99OGzbO.mjs +1035 -0
  7. package/dist/EndpointGenerator-B99OGzbO.mjs.map +1 -0
  8. package/dist/EndpointGenerator-De0lknKD.cjs +1094 -0
  9. package/dist/EndpointGenerator-De0lknKD.cjs.map +1 -0
  10. package/dist/GoDaddyProvider-D10Le3VX.mjs +388 -0
  11. package/dist/GoDaddyProvider-D10Le3VX.mjs.map +1 -0
  12. package/dist/GoDaddyProvider-DTfa47i3.cjs +388 -0
  13. package/dist/GoDaddyProvider-DTfa47i3.cjs.map +1 -0
  14. package/dist/{HostingerProvider-BY26bWwB.mjs → HostingerProvider-Cjh_2Ml6.mjs} +11 -6
  15. package/dist/HostingerProvider-Cjh_2Ml6.mjs.map +1 -0
  16. package/dist/{HostingerProvider-BZFGYYVA.cjs → HostingerProvider-OdQmKXE3.cjs} +11 -6
  17. package/dist/HostingerProvider-OdQmKXE3.cjs.map +1 -0
  18. package/dist/LegacyStateStore-C5c_zS4h.mjs +124 -0
  19. package/dist/LegacyStateStore-C5c_zS4h.mjs.map +1 -0
  20. package/dist/LegacyStateStore-CZSBR6ar.cjs +124 -0
  21. package/dist/LegacyStateStore-CZSBR6ar.cjs.map +1 -0
  22. package/dist/LocalStateStore-Ba0Y6q5C.mjs +167 -0
  23. package/dist/LocalStateStore-Ba0Y6q5C.mjs.map +1 -0
  24. package/dist/LocalStateStore-CgQtQix2.cjs +178 -0
  25. package/dist/LocalStateStore-CgQtQix2.cjs.map +1 -0
  26. package/dist/OpenApiTsGenerator-DMLzN-LU.cjs +541 -0
  27. package/dist/OpenApiTsGenerator-DMLzN-LU.cjs.map +1 -0
  28. package/dist/OpenApiTsGenerator-DNUCgkkx.mjs +536 -0
  29. package/dist/OpenApiTsGenerator-DNUCgkkx.mjs.map +1 -0
  30. package/dist/{Route53Provider-DVILBsvV.cjs → Route53Provider-Bllus2NR.cjs} +2 -2
  31. package/dist/Route53Provider-Bllus2NR.cjs.map +1 -0
  32. package/dist/{Route53Provider-Cvj40A8I.mjs → Route53Provider-QXxjkZO1.mjs} +2 -2
  33. package/dist/Route53Provider-QXxjkZO1.mjs.map +1 -0
  34. package/dist/S3StateStore-00mB2AG4.mjs +223 -0
  35. package/dist/S3StateStore-00mB2AG4.mjs.map +1 -0
  36. package/dist/S3StateStore-C6amZI39.cjs +222 -0
  37. package/dist/S3StateStore-C6amZI39.cjs.map +1 -0
  38. package/dist/SSMStateStore-CkYqOAzW.mjs +205 -0
  39. package/dist/SSMStateStore-CkYqOAzW.mjs.map +1 -0
  40. package/dist/SSMStateStore-Cnn5fHCg.cjs +204 -0
  41. package/dist/SSMStateStore-Cnn5fHCg.cjs.map +1 -0
  42. package/dist/SubscriberGenerator-0ruEmYXj.mjs +646 -0
  43. package/dist/SubscriberGenerator-0ruEmYXj.mjs.map +1 -0
  44. package/dist/SubscriberGenerator-CPjbWEOI.cjs +687 -0
  45. package/dist/SubscriberGenerator-CPjbWEOI.cjs.map +1 -0
  46. package/dist/add-CdMInvmN.cjs +719 -0
  47. package/dist/add-CdMInvmN.cjs.map +1 -0
  48. package/dist/add-DZSU5Tcc.mjs +717 -0
  49. package/dist/add-DZSU5Tcc.mjs.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/aws-8QQ8n-t6.mjs +89 -0
  55. package/dist/aws-8QQ8n-t6.mjs.map +1 -0
  56. package/dist/aws-DY9NqQIT.cjs +100 -0
  57. package/dist/aws-DY9NqQIT.cjs.map +1 -0
  58. package/dist/awsStore-Bx5nCFnS.mjs +121 -0
  59. package/dist/awsStore-Bx5nCFnS.mjs.map +1 -0
  60. package/dist/awsStore-u3ehhMoY.cjs +138 -0
  61. package/dist/awsStore-u3ehhMoY.cjs.map +1 -0
  62. package/dist/{backup-provisioner-DIVCbfee.mjs → backup-provisioner-C8DnCmxK.mjs} +2 -2
  63. package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
  64. package/dist/{backup-provisioner-BmhIO_Yr.cjs → backup-provisioner-oDEsPj02.cjs} +2 -2
  65. package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
  66. package/dist/backups/runner.cjs +519 -0
  67. package/dist/backups/runner.cjs.map +1 -0
  68. package/dist/backups/runner.d.cts +102 -0
  69. package/dist/backups/runner.d.cts.map +1 -0
  70. package/dist/backups/runner.d.mts +102 -0
  71. package/dist/backups/runner.d.mts.map +1 -0
  72. package/dist/backups/runner.mjs +506 -0
  73. package/dist/backups/runner.mjs.map +1 -0
  74. package/dist/{bundler-BodTL4kf.mjs → bundler-BzDMJbx8.mjs} +32 -11
  75. package/dist/bundler-BzDMJbx8.mjs.map +1 -0
  76. package/dist/{bundler-BeNDZdHQ.cjs → bundler-GKF4xpYI.cjs} +32 -11
  77. package/dist/bundler-GKF4xpYI.cjs.map +1 -0
  78. package/dist/cli-Ct6PQtc7.cjs +71 -0
  79. package/dist/cli-Ct6PQtc7.cjs.map +1 -0
  80. package/dist/cli-DXeLFtpA.mjs +71 -0
  81. package/dist/cli-DXeLFtpA.mjs.map +1 -0
  82. package/dist/compose-BfLDidYU.cjs +3977 -0
  83. package/dist/compose-BfLDidYU.cjs.map +1 -0
  84. package/dist/compose-CnanpQBB.mjs +3834 -0
  85. package/dist/compose-CnanpQBB.mjs.map +1 -0
  86. package/dist/config-DPsCfNpR.d.mts +268 -0
  87. package/dist/config-DPsCfNpR.d.mts.map +1 -0
  88. package/dist/config-azErNJSd.d.cts +268 -0
  89. package/dist/config-azErNJSd.d.cts.map +1 -0
  90. package/dist/config.cjs +420 -9
  91. package/dist/config.cjs.map +1 -0
  92. package/dist/config.d.cts +4 -117
  93. package/dist/config.d.mts +4 -117
  94. package/dist/config.mjs +406 -3
  95. package/dist/config.mjs.map +1 -0
  96. package/dist/credentialSchemas-CM0rxWmS.cjs +272 -0
  97. package/dist/credentialSchemas-CM0rxWmS.cjs.map +1 -0
  98. package/dist/credentialSchemas-DPOGqOrU.mjs +237 -0
  99. package/dist/credentialSchemas-DPOGqOrU.mjs.map +1 -0
  100. package/dist/credentials-D7XJypNd.cjs +520 -0
  101. package/dist/credentials-D7XJypNd.cjs.map +1 -0
  102. package/dist/credentials-DpfnUvIR.mjs +395 -0
  103. package/dist/credentials-DpfnUvIR.mjs.map +1 -0
  104. package/dist/databases-Db48ZIXL.mjs +588 -0
  105. package/dist/databases-Db48ZIXL.mjs.map +1 -0
  106. package/dist/databases-P824RTnx.cjs +703 -0
  107. package/dist/databases-P824RTnx.cjs.map +1 -0
  108. package/dist/define-6poNqm5O.mjs +106 -0
  109. package/dist/define-6poNqm5O.mjs.map +1 -0
  110. package/dist/define-crmMcXFS.cjs +153 -0
  111. package/dist/define-crmMcXFS.cjs.map +1 -0
  112. package/dist/deploy/public.cjs +211 -0
  113. package/dist/deploy/public.cjs.map +1 -0
  114. package/dist/deploy/public.d.cts +652 -0
  115. package/dist/deploy/public.d.cts.map +1 -0
  116. package/dist/deploy/public.d.mts +652 -0
  117. package/dist/deploy/public.d.mts.map +1 -0
  118. package/dist/deploy/public.mjs +144 -0
  119. package/dist/deploy/public.mjs.map +1 -0
  120. package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
  121. package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
  122. package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
  123. package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
  124. package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
  125. package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
  126. package/dist/deploy/sniffer-hooks.cjs +1 -1
  127. package/dist/deploy/sniffer-hooks.mjs +1 -1
  128. package/dist/deploy/sniffer-loader.cjs +2 -2
  129. package/dist/deploy/sniffer-loader.mjs +1 -1
  130. package/dist/deploy/sniffer-routes-worker.cjs +2 -2
  131. package/dist/deploy/sniffer-routes-worker.mjs +2 -2
  132. package/dist/deploy-B35L6CMr.mjs +3439 -0
  133. package/dist/deploy-B35L6CMr.mjs.map +1 -0
  134. package/dist/deploy-zFe_W4WS.cjs +3494 -0
  135. package/dist/deploy-zFe_W4WS.cjs.map +1 -0
  136. package/dist/derive-BtGidITm.cjs +161 -0
  137. package/dist/derive-BtGidITm.cjs.map +1 -0
  138. package/dist/derive-Dew0QoGe.mjs +150 -0
  139. package/dist/derive-Dew0QoGe.mjs.map +1 -0
  140. package/dist/discover-DEOspD9M.cjs +796 -0
  141. package/dist/discover-DEOspD9M.cjs.map +1 -0
  142. package/dist/discover-DOhYSKY_.mjs +693 -0
  143. package/dist/discover-DOhYSKY_.mjs.map +1 -0
  144. package/dist/dokploy-BGJxcEh0.cjs +38 -0
  145. package/dist/dokploy-BGJxcEh0.cjs.map +1 -0
  146. package/dist/dokploy-sDTohVj5.mjs +38 -0
  147. package/dist/dokploy-sDTohVj5.mjs.map +1 -0
  148. package/dist/drivers-C47nm-wB.cjs +311 -0
  149. package/dist/drivers-C47nm-wB.cjs.map +1 -0
  150. package/dist/drivers-CDjpjakg.mjs +252 -0
  151. package/dist/drivers-CDjpjakg.mjs.map +1 -0
  152. package/dist/eas-Bxb9pymo.mjs +334 -0
  153. package/dist/eas-Bxb9pymo.mjs.map +1 -0
  154. package/dist/eas-DogHTOxl.cjs +337 -0
  155. package/dist/eas-DogHTOxl.cjs.map +1 -0
  156. package/dist/{emit-BdoPFjZf.cjs → emit-CYloptRS.cjs} +44 -54
  157. package/dist/emit-CYloptRS.cjs.map +1 -0
  158. package/dist/{emit-Bzq7JsMP.mjs → emit-CiJGdy_f.mjs} +45 -43
  159. package/dist/emit-CiJGdy_f.mjs.map +1 -0
  160. package/dist/encryption-BZk_sxC-.mjs +89 -0
  161. package/dist/encryption-BZk_sxC-.mjs.map +1 -0
  162. package/dist/encryption-DRXgL9Lh.cjs +90 -0
  163. package/dist/encryption-DRXgL9Lh.cjs.map +1 -0
  164. package/dist/engine-BuPhWFVm.cjs +3328 -0
  165. package/dist/engine-BuPhWFVm.cjs.map +1 -0
  166. package/dist/engine-uQmNnvNQ.mjs +3215 -0
  167. package/dist/engine-uQmNnvNQ.mjs.map +1 -0
  168. package/dist/errors-D8Gwp5kU.mjs +23 -0
  169. package/dist/errors-D8Gwp5kU.mjs.map +1 -0
  170. package/dist/errors-DMC4Umsb.cjs +34 -0
  171. package/dist/errors-DMC4Umsb.cjs.map +1 -0
  172. package/dist/github-BCRbDSQa.cjs +901 -0
  173. package/dist/github-BCRbDSQa.cjs.map +1 -0
  174. package/dist/github-YknZQnYF.mjs +900 -0
  175. package/dist/github-YknZQnYF.mjs.map +1 -0
  176. package/dist/googlePlay-B_2dIDSO.mjs +931 -0
  177. package/dist/googlePlay-B_2dIDSO.mjs.map +1 -0
  178. package/dist/googlePlay-Cm2uipeZ.cjs +931 -0
  179. package/dist/googlePlay-Cm2uipeZ.cjs.map +1 -0
  180. package/dist/identity-CBXr4wNi.mjs +129 -0
  181. package/dist/identity-CBXr4wNi.mjs.map +1 -0
  182. package/dist/identity-CbLfgQNT.cjs +182 -0
  183. package/dist/identity-CbLfgQNT.cjs.map +1 -0
  184. package/dist/{index-D-iAVHx-.d.cts → index-D-gNc445.d.cts} +39 -15
  185. package/dist/index-D-gNc445.d.cts.map +1 -0
  186. package/dist/{index-Cd-qeOam.d.mts → index-Ur-ZIDYC.d.mts} +39 -15
  187. package/dist/index-Ur-ZIDYC.d.mts.map +1 -0
  188. package/dist/index.cjs +13468 -12280
  189. package/dist/index.cjs.map +1 -1
  190. package/dist/index.mjs +13491 -12301
  191. package/dist/index.mjs.map +1 -1
  192. package/dist/local-B7Zv1NoA.mjs +224 -0
  193. package/dist/local-B7Zv1NoA.mjs.map +1 -0
  194. package/dist/local-OPC9BCZt.cjs +241 -0
  195. package/dist/local-OPC9BCZt.cjs.map +1 -0
  196. package/dist/migrate-BB9fibbQ.cjs +272 -0
  197. package/dist/migrate-BB9fibbQ.cjs.map +1 -0
  198. package/dist/migrate-BIl4kLb1.cjs +181 -0
  199. package/dist/migrate-BIl4kLb1.cjs.map +1 -0
  200. package/dist/migrate-BKAh880g.mjs +267 -0
  201. package/dist/migrate-BKAh880g.mjs.map +1 -0
  202. package/dist/migrate-zqsyod5I.mjs +181 -0
  203. package/dist/migrate-zqsyod5I.mjs.map +1 -0
  204. package/dist/openapi.cjs +214 -7
  205. package/dist/openapi.cjs.map +1 -0
  206. package/dist/openapi.d.cts +32 -8
  207. package/dist/openapi.d.cts.map +1 -1
  208. package/dist/openapi.d.mts +32 -8
  209. package/dist/openapi.d.mts.map +1 -1
  210. package/dist/openapi.mjs +209 -2
  211. package/dist/openapi.mjs.map +1 -0
  212. package/dist/projectBucket-BBbQ1lHF.cjs +263 -0
  213. package/dist/projectBucket-BBbQ1lHF.cjs.map +1 -0
  214. package/dist/projectBucket-C_DN4WzF.mjs +222 -0
  215. package/dist/projectBucket-C_DN4WzF.mjs.map +1 -0
  216. package/dist/provider-BqpjG9QM.cjs +57 -0
  217. package/dist/provider-BqpjG9QM.cjs.map +1 -0
  218. package/dist/provider-CEOKk8NS.mjs +46 -0
  219. package/dist/provider-CEOKk8NS.mjs.map +1 -0
  220. package/dist/publish-BUnnuLl_.cjs +124 -0
  221. package/dist/publish-BUnnuLl_.cjs.map +1 -0
  222. package/dist/publish-BtmLOhV9.mjs +123 -0
  223. package/dist/publish-BtmLOhV9.mjs.map +1 -0
  224. package/dist/ready-BwtLriAF.mjs +375 -0
  225. package/dist/ready-BwtLriAF.mjs.map +1 -0
  226. package/dist/ready-Cj4pI0dw.cjs +404 -0
  227. package/dist/ready-Cj4pI0dw.cjs.map +1 -0
  228. package/dist/reconcile/public.cjs +2 -4
  229. package/dist/reconcile/public.d.cts +8 -67
  230. package/dist/reconcile/public.d.cts.map +1 -1
  231. package/dist/reconcile/public.d.mts +8 -67
  232. package/dist/reconcile/public.d.mts.map +1 -1
  233. package/dist/reconcile/public.mjs +3 -3
  234. package/dist/{reconcile-DhQ00DpU.mjs → reconcile--I7V4Klj.mjs} +2 -2
  235. package/dist/{reconcile-DhQ00DpU.mjs.map → reconcile--I7V4Klj.mjs.map} +1 -1
  236. package/dist/{reconcile-Dd2iyILf.cjs → reconcile-CuCQBa5-.cjs} +3 -3
  237. package/dist/{reconcile-Dd2iyILf.cjs.map → reconcile-CuCQBa5-.cjs.map} +1 -1
  238. package/dist/resolve-B1zK9f8_.mjs +263 -0
  239. package/dist/resolve-B1zK9f8_.mjs.map +1 -0
  240. package/dist/resolve-BVVSf27Y.cjs +316 -0
  241. package/dist/resolve-BVVSf27Y.cjs.map +1 -0
  242. package/dist/rollback-CAPWtOm3.mjs +136 -0
  243. package/dist/rollback-CAPWtOm3.mjs.map +1 -0
  244. package/dist/rollback-hV8Kbbg_.cjs +165 -0
  245. package/dist/rollback-hV8Kbbg_.cjs.map +1 -0
  246. package/dist/runtime-C0okGPpK.d.cts +82 -0
  247. package/dist/runtime-C0okGPpK.d.cts.map +1 -0
  248. package/dist/runtime-DfwIeO8f.d.mts +82 -0
  249. package/dist/runtime-DfwIeO8f.d.mts.map +1 -0
  250. package/dist/s3-CkERdmxm.mjs +215 -0
  251. package/dist/s3-CkERdmxm.mjs.map +1 -0
  252. package/dist/s3-xJtWm6WN.cjs +215 -0
  253. package/dist/s3-xJtWm6WN.cjs.map +1 -0
  254. package/dist/sandbox/config-worker.cjs +43 -0
  255. package/dist/sandbox/config-worker.cjs.map +1 -0
  256. package/dist/sandbox/config-worker.d.cts +1 -0
  257. package/dist/sandbox/config-worker.d.mts +1 -0
  258. package/dist/sandbox/config-worker.mjs +44 -0
  259. package/dist/sandbox/config-worker.mjs.map +1 -0
  260. package/dist/sandbox/credentials-worker.cjs +54 -0
  261. package/dist/sandbox/credentials-worker.cjs.map +1 -0
  262. package/dist/sandbox/credentials-worker.d.cts +1 -0
  263. package/dist/sandbox/credentials-worker.d.mts +1 -0
  264. package/dist/sandbox/credentials-worker.mjs +55 -0
  265. package/dist/sandbox/credentials-worker.mjs.map +1 -0
  266. package/dist/sandbox/discover-worker.cjs +50 -0
  267. package/dist/sandbox/discover-worker.cjs.map +1 -0
  268. package/dist/sandbox/discover-worker.d.cts +1 -0
  269. package/dist/sandbox/discover-worker.d.mts +1 -0
  270. package/dist/sandbox/discover-worker.mjs +51 -0
  271. package/dist/sandbox/discover-worker.mjs.map +1 -0
  272. package/dist/sandbox/migrate-worker.cjs +76 -0
  273. package/dist/sandbox/migrate-worker.cjs.map +1 -0
  274. package/dist/sandbox/migrate-worker.d.cts +1 -0
  275. package/dist/sandbox/migrate-worker.d.mts +1 -0
  276. package/dist/sandbox/migrate-worker.mjs +77 -0
  277. package/dist/sandbox/migrate-worker.mjs.map +1 -0
  278. package/dist/sandbox-CHv3OYXg.cjs +165 -0
  279. package/dist/sandbox-CHv3OYXg.cjs.map +1 -0
  280. package/dist/sandbox-CbVB7uOD.mjs +118 -0
  281. package/dist/sandbox-CbVB7uOD.mjs.map +1 -0
  282. package/dist/{workspace-mFpI_ky_.cjs → schemas-BCwKKA42.mjs} +399 -1162
  283. package/dist/schemas-BCwKKA42.mjs.map +1 -0
  284. package/dist/{workspace-CgwmXEtc.mjs → schemas-BQ_v0lEX.cjs} +487 -971
  285. package/dist/schemas-BQ_v0lEX.cjs.map +1 -0
  286. package/dist/secretsManager-CQORubp9.mjs +97 -0
  287. package/dist/secretsManager-CQORubp9.mjs.map +1 -0
  288. package/dist/secretsManager-RAGcEDX1.cjs +108 -0
  289. package/dist/secretsManager-RAGcEDX1.cjs.map +1 -0
  290. package/dist/seeds-CNPdk_2f.mjs +9198 -0
  291. package/dist/seeds-CNPdk_2f.mjs.map +1 -0
  292. package/dist/seeds-MR13eS-F.cjs +10303 -0
  293. package/dist/seeds-MR13eS-F.cjs.map +1 -0
  294. package/dist/serverSetup-9kFFmA86.cjs +651 -0
  295. package/dist/serverSetup-9kFFmA86.cjs.map +1 -0
  296. package/dist/serverSetup-DgAERQ5s.mjs +651 -0
  297. package/dist/serverSetup-DgAERQ5s.mjs.map +1 -0
  298. package/dist/sniffer-Biw5SE1V.cjs +1998 -0
  299. package/dist/sniffer-Biw5SE1V.cjs.map +1 -0
  300. package/dist/sniffer-KS_EcbAk.mjs +1825 -0
  301. package/dist/sniffer-KS_EcbAk.mjs.map +1 -0
  302. package/dist/snsSubscriptions-Bl3CChIH.mjs +1472 -0
  303. package/dist/snsSubscriptions-Bl3CChIH.mjs.map +1 -0
  304. package/dist/snsSubscriptions-CQFfrCJf.cjs +1695 -0
  305. package/dist/snsSubscriptions-CQFfrCJf.cjs.map +1 -0
  306. package/dist/sst-DmVJRu5l.cjs +463 -0
  307. package/dist/sst-DmVJRu5l.cjs.map +1 -0
  308. package/dist/sst-fop6uZ25.mjs +440 -0
  309. package/dist/sst-fop6uZ25.mjs.map +1 -0
  310. package/dist/stage-BIKAMxNc.cjs +313 -0
  311. package/dist/stage-BIKAMxNc.cjs.map +1 -0
  312. package/dist/stage-tIMFTQtj.mjs +302 -0
  313. package/dist/stage-tIMFTQtj.mjs.map +1 -0
  314. package/dist/stages-C9uSkohw.cjs +190 -0
  315. package/dist/stages-C9uSkohw.cjs.map +1 -0
  316. package/dist/stages-DhmbURs_.mjs +190 -0
  317. package/dist/stages-DhmbURs_.mjs.map +1 -0
  318. package/dist/target/public.cjs +15 -0
  319. package/dist/target/public.d.cts +28 -0
  320. package/dist/target/public.d.cts.map +1 -0
  321. package/dist/target/public.d.mts +28 -0
  322. package/dist/target/public.d.mts.map +1 -0
  323. package/dist/target/public.mjs +4 -0
  324. package/dist/terminal-CebFDhWQ.mjs +85 -0
  325. package/dist/terminal-CebFDhWQ.mjs.map +1 -0
  326. package/dist/terminal-DBwedwSS.cjs +85 -0
  327. package/dist/terminal-DBwedwSS.cjs.map +1 -0
  328. package/dist/{types-BGo5TaNE.d.mts → types-Cjnqw1ta.d.cts} +2199 -462
  329. package/dist/types-Cjnqw1ta.d.cts.map +1 -0
  330. package/dist/{types-C5ZNpUad.d.cts → types-xBx-07__.d.mts} +2197 -462
  331. package/dist/types-xBx-07__.d.mts.map +1 -0
  332. package/dist/utils-D2Nk1Nv2.cjs +205 -0
  333. package/dist/utils-D2Nk1Nv2.cjs.map +1 -0
  334. package/dist/utils-D_fxUqvU.mjs +156 -0
  335. package/dist/utils-D_fxUqvU.mjs.map +1 -0
  336. package/dist/vitest.cjs +65 -0
  337. package/dist/vitest.cjs.map +1 -0
  338. package/dist/vitest.d.cts +29 -0
  339. package/dist/vitest.d.cts.map +1 -0
  340. package/dist/vitest.d.mts +29 -0
  341. package/dist/vitest.d.mts.map +1 -0
  342. package/dist/vitest.mjs +65 -0
  343. package/dist/vitest.mjs.map +1 -0
  344. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  345. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  346. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  347. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  348. package/dist/workspace/index.cjs +6 -2
  349. package/dist/workspace/index.d.cts +3 -3
  350. package/dist/workspace/index.d.mts +3 -3
  351. package/dist/workspace/index.mjs +2 -2
  352. package/dist/workspace-CjSfjfMK.mjs +2396 -0
  353. package/dist/workspace-CjSfjfMK.mjs.map +1 -0
  354. package/dist/workspace-DImrdet4.cjs +2808 -0
  355. package/dist/workspace-DImrdet4.cjs.map +1 -0
  356. package/package.json +55 -20
  357. package/dist/HostingerProvider-BY26bWwB.mjs.map +0 -1
  358. package/dist/HostingerProvider-BZFGYYVA.cjs.map +0 -1
  359. package/dist/LocalStateProvider-7HR6SS2t.cjs +0 -48
  360. package/dist/LocalStateProvider-7HR6SS2t.cjs.map +0 -1
  361. package/dist/LocalStateProvider-D7QyJoLM.mjs +0 -48
  362. package/dist/LocalStateProvider-D7QyJoLM.mjs.map +0 -1
  363. package/dist/Route53Provider-Cvj40A8I.mjs.map +0 -1
  364. package/dist/Route53Provider-DVILBsvV.cjs.map +0 -1
  365. package/dist/SSMStateProvider-B0Hu1MKZ.mjs +0 -75
  366. package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +0 -1
  367. package/dist/SSMStateProvider-VrQ-yeqd.cjs +0 -74
  368. package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +0 -1
  369. package/dist/backup-provisioner-BmhIO_Yr.cjs.map +0 -1
  370. package/dist/backup-provisioner-DIVCbfee.mjs.map +0 -1
  371. package/dist/bundler-BeNDZdHQ.cjs.map +0 -1
  372. package/dist/bundler-BodTL4kf.mjs.map +0 -1
  373. package/dist/config-Q1rvKHvw.cjs +0 -467
  374. package/dist/config-Q1rvKHvw.cjs.map +0 -1
  375. package/dist/config-pqGD3hF9.mjs +0 -414
  376. package/dist/config-pqGD3hF9.mjs.map +0 -1
  377. package/dist/config.d.cts.map +0 -1
  378. package/dist/config.d.mts.map +0 -1
  379. package/dist/credentials-BekkKtY_.mjs +0 -2780
  380. package/dist/credentials-BekkKtY_.mjs.map +0 -1
  381. package/dist/credentials-Q6F0uqJq.cjs +0 -2917
  382. package/dist/credentials-Q6F0uqJq.cjs.map +0 -1
  383. package/dist/discover-BERGFg8v.cjs +0 -288
  384. package/dist/discover-BERGFg8v.cjs.map +0 -1
  385. package/dist/discover-CK-n3w6b.mjs +0 -244
  386. package/dist/discover-CK-n3w6b.mjs.map +0 -1
  387. package/dist/emit-BdoPFjZf.cjs.map +0 -1
  388. package/dist/emit-Bzq7JsMP.mjs.map +0 -1
  389. package/dist/fullstack-secrets-BET8gqwK.mjs +0 -81
  390. package/dist/fullstack-secrets-BET8gqwK.mjs.map +0 -1
  391. package/dist/fullstack-secrets-DXsWO-5m.cjs +0 -92
  392. package/dist/fullstack-secrets-DXsWO-5m.cjs.map +0 -1
  393. package/dist/generator-LfZU7NlU.mjs +0 -247
  394. package/dist/generator-LfZU7NlU.mjs.map +0 -1
  395. package/dist/generator-Wdfp0jCS.cjs +0 -282
  396. package/dist/generator-Wdfp0jCS.cjs.map +0 -1
  397. package/dist/github-BfflNPVe.cjs +0 -203
  398. package/dist/github-BfflNPVe.cjs.map +0 -1
  399. package/dist/github-CRwnxKmD.mjs +0 -203
  400. package/dist/github-CRwnxKmD.mjs.map +0 -1
  401. package/dist/index-Cd-qeOam.d.mts.map +0 -1
  402. package/dist/index-D-iAVHx-.d.cts.map +0 -1
  403. package/dist/keystore-B4PRlbgE.mjs +0 -81
  404. package/dist/keystore-B4PRlbgE.mjs.map +0 -1
  405. package/dist/keystore-DgGRj2Yy.cjs +0 -98
  406. package/dist/keystore-DgGRj2Yy.cjs.map +0 -1
  407. package/dist/openapi-Dcbme-Us.cjs +0 -2038
  408. package/dist/openapi-Dcbme-Us.cjs.map +0 -1
  409. package/dist/openapi-react-query.cjs +0 -158
  410. package/dist/openapi-react-query.cjs.map +0 -1
  411. package/dist/openapi-react-query.d.cts +0 -9
  412. package/dist/openapi-react-query.d.cts.map +0 -1
  413. package/dist/openapi-react-query.d.mts +0 -9
  414. package/dist/openapi-react-query.d.mts.map +0 -1
  415. package/dist/openapi-react-query.mjs +0 -158
  416. package/dist/openapi-react-query.mjs.map +0 -1
  417. package/dist/openapi-vy4JzhUv.mjs +0 -1991
  418. package/dist/openapi-vy4JzhUv.mjs.map +0 -1
  419. package/dist/storage-C-30BD1e.cjs +0 -272
  420. package/dist/storage-C-30BD1e.cjs.map +0 -1
  421. package/dist/storage-P_b3w7uj.mjs +0 -231
  422. package/dist/storage-P_b3w7uj.mjs.map +0 -1
  423. package/dist/sync-B3xxXtJT.mjs +0 -88
  424. package/dist/sync-B3xxXtJT.mjs.map +0 -1
  425. package/dist/sync-D7uTIIEi.cjs +0 -111
  426. package/dist/sync-D7uTIIEi.cjs.map +0 -1
  427. package/dist/types-BGo5TaNE.d.mts.map +0 -1
  428. package/dist/types-C5ZNpUad.d.cts.map +0 -1
  429. package/dist/workspace-CgwmXEtc.mjs.map +0 -1
  430. package/dist/workspace-mFpI_ky_.cjs.map +0 -1
@@ -0,0 +1,268 @@
1
+ import { Lt as Sandbox, Wt as GkmError, b as NormalizedAppConfig, r as GkmConfig, v as LoadedConfig, x as NormalizedWorkspace } from "./types-xBx-07__.mjs";
2
+ import "./index-Ur-ZIDYC.mjs";
3
+ import { ConstructManifest } from "@geekmidas/manifest";
4
+ //#region src/dev/discovery.d.ts
5
+ /** Where an app is in its life. `stopped` is a server that exited on its own. */
6
+ type AppStatus = 'starting' | 'ready' | 'reloading' | 'stopped';
7
+ /** A JSON API an app serves about itself. */
8
+ type DataApiKind = 'telescope' | 'database' | 'openapi';
9
+ /**
10
+ * The local OpenObserve `gkm dev` runs for a workspace that uses a
11
+ * `Telemetry` construct: where its UI is, and who signs in. Never the
12
+ * password — the endpoint is read by anything holding its token.
13
+ */
14
+ interface DevTelemetryUi {
15
+ /** `http://localhost:<port>`. */
16
+ url: string;
17
+ /** The local root user's email. */
18
+ email: string;
19
+ }
20
+ interface DiscoveredDataApi {
21
+ kind: DataApiKind;
22
+ /** Where the app serves it. */
23
+ path: string;
24
+ /** The app's own address for it — `http://localhost:<port><path>`. */
25
+ url: string;
26
+ /** The same API through this endpoint, relative to its origin. */
27
+ proxy: string;
28
+ }
29
+ interface DiscoveredApp {
30
+ name: string;
31
+ type: 'backend' | 'web' | 'mobile';
32
+ port: number;
33
+ /** `http://localhost:<port>`. */
34
+ url: string;
35
+ publicUrl: string | null;
36
+ status: AppStatus;
37
+ reloads: number;
38
+ /** The `gkm dev` running it, when it runs in one of its own. */
39
+ pid: number | null;
40
+ dataApis: DiscoveredDataApi[];
41
+ }
42
+ interface DiscoveredWorkspace {
43
+ /** Stable for a workspace's root: its name, and a hash of where it is. */
44
+ id: string;
45
+ name: string;
46
+ root: string;
47
+ stage: string;
48
+ manifest: ConstructManifest | null;
49
+ /** The local telemetry UI — OpenObserve — when the workspace runs one. */
50
+ telemetry: DevTelemetryUi | null;
51
+ apps: DiscoveredApp[];
52
+ }
53
+ /** The body of `GET /__gkm`. */
54
+ interface DiscoveryResponse {
55
+ version: 1;
56
+ /** The `gkm dev` serving this endpoint, which may change while you watch. */
57
+ host: {
58
+ pid: number;
59
+ port: number;
60
+ };
61
+ /** Where the changes stream, as server-sent events. */
62
+ events: string;
63
+ workspaces: DiscoveredWorkspace[];
64
+ }
65
+ /** One message on `GET /__gkm/events`; its SSE `event:` is its `type`. */
66
+ type DiscoveryEvent = {
67
+ type: 'snapshot';
68
+ snapshot: DiscoveryResponse;
69
+ } | {
70
+ type: 'workspace.started' | 'workspace.stopped';
71
+ workspace: string;
72
+ } | {
73
+ type: 'app.started' | 'app.stopped' | 'app.reloaded' | 'app.status';
74
+ workspace: string;
75
+ app: DiscoveredApp;
76
+ };
77
+ //#endregion
78
+ //#region src/config.d.ts
79
+ /**
80
+ * Define GKM configuration with full TypeScript support.
81
+ * This is an identity function that provides type safety and autocomplete.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * // gkm.config.ts
86
+ * import { defineConfig } from '@geekmidas/cli/config';
87
+ *
88
+ * export default defineConfig({
89
+ * routes: './src/endpoints/**\/*.ts',
90
+ * envParser: './src/config/env',
91
+ * logger: './src/config/logger',
92
+ * telescope: true,
93
+ * });
94
+ * ```
95
+ */
96
+ declare function defineConfig(config: GkmConfig): GkmConfig;
97
+ interface ParsedModuleConfig {
98
+ path: string;
99
+ importPattern: string;
100
+ }
101
+ /**
102
+ * Parse a module config string into path and import pattern.
103
+ *
104
+ * @param configString - Config string in format "./path/to/module" or "./path/to/module#exportName"
105
+ * @param defaultAlias - The default alias name to use if no export name specified
106
+ * @returns Object with path and import pattern
107
+ *
108
+ * @example
109
+ * parseModuleConfig('./src/config/env', 'envParser')
110
+ * // { path: './src/config/env', importPattern: 'envParser' }
111
+ *
112
+ * parseModuleConfig('./src/config/env#envParser', 'envParser')
113
+ * // { path: './src/config/env', importPattern: '{ envParser }' }
114
+ *
115
+ * parseModuleConfig('./src/config/env#myEnv', 'envParser')
116
+ * // { path: './src/config/env', importPattern: '{ myEnv as envParser }' }
117
+ */
118
+ declare function parseModuleConfig(configString: string, defaultAlias: string): ParsedModuleConfig;
119
+ interface ConfigDiscoveryResult {
120
+ configPath: string;
121
+ workspaceRoot: string;
122
+ }
123
+ /**
124
+ * The directory holding the gkm config that `cwd` belongs to — the project a
125
+ * sandbox for it is confined to.
126
+ *
127
+ * @throws {ConfigNotFound} when neither `cwd` nor any parent has one.
128
+ */
129
+ declare function findWorkspaceRoot(cwd: string): string;
130
+ /** No gkm config in a directory or any of its parents. */
131
+ declare class ConfigNotFound extends GkmError {
132
+ readonly cwd: string;
133
+ constructor(cwd: string);
134
+ }
135
+ interface LoadConfigOptions {
136
+ /**
137
+ * Load the config — and discover the constructs it names — in this
138
+ * sandbox rather than in this process. The config then arrives as data;
139
+ * see {@link Sandbox.isolating} for what happens to one holding live
140
+ * objects. Defaults to the run's own (`withSandbox`); with neither, the
141
+ * config is imported here, as `gkm` always has.
142
+ */
143
+ sandbox?: Sandbox;
144
+ /**
145
+ * How long the sandboxed config load may run. Defaults to
146
+ * {@link CONFIG_LOAD_TIMEOUT_MS}.
147
+ */
148
+ timeoutMs?: number;
149
+ }
150
+ /**
151
+ * How long loading a config, or discovering its constructs, may take in a
152
+ * sandbox: room for tsx to compile a large project cold, and not a deploy
153
+ * held open by a config that never finishes importing.
154
+ */
155
+ declare const CONFIG_LOAD_TIMEOUT_MS = 60000;
156
+ /** The config failed to import, or threw while it ran. */
157
+ declare class ConfigLoadFailed extends Error {
158
+ readonly configPath: string;
159
+ readonly detail: string;
160
+ constructor(configPath: string, detail: string);
161
+ }
162
+ /**
163
+ * The config holds something that is not data — a custom state store, an
164
+ * inline deploy target, a function — and the sandbox it was loaded in hands
165
+ * the deploy nothing but data.
166
+ */
167
+ declare class ConfigObjectNotSerializable extends Error {
168
+ readonly configPath: string;
169
+ readonly paths: readonly string[];
170
+ constructor(configPath: string, paths: readonly string[]);
171
+ }
172
+ /**
173
+ * Load configuration file (single-app format).
174
+ * For backwards compatibility with existing code.
175
+ *
176
+ * @deprecated Use loadWorkspaceConfig for new code
177
+ */
178
+ declare function loadConfig(cwd?: string): Promise<GkmConfig>;
179
+ /**
180
+ * Load configuration file and process it as a workspace.
181
+ * Works with both single-app and workspace configurations.
182
+ *
183
+ * Single-app configs are automatically wrapped as a workspace with one app.
184
+ *
185
+ * @example
186
+ * ```ts
187
+ * const { type, workspace } = await loadWorkspaceConfig();
188
+ *
189
+ * if (type === 'workspace') {
190
+ * console.log('Multi-app workspace:', workspace.apps);
191
+ * } else {
192
+ * console.log('Single app wrapped as workspace');
193
+ * }
194
+ * ```
195
+ */
196
+ /**
197
+ * The workspace a directory belongs to, as its config states it — without
198
+ * discovering its constructs.
199
+ *
200
+ * For callers that need a fact the config holds (where a stage's secrets are
201
+ * stored) and nothing the graph adds. `loadWorkspaceConfig` imports every
202
+ * construct module to derive the apps, which is a cost a secrets read should
203
+ * not pay.
204
+ */
205
+ declare function loadWorkspaceSettings(cwd?: string, options?: LoadConfigOptions): Promise<LoadedConfig['workspace']>;
206
+ declare function loadWorkspaceConfig(cwd?: string, options?: LoadConfigOptions): Promise<LoadedConfig>;
207
+ /**
208
+ * A workspace with no `constructs` glob.
209
+ *
210
+ * In v10 every address, container and app comes from what the workspace
211
+ * declares — there is no second path that reads a hand-written compose file or
212
+ * an `apps` block's ports. A config that declares nothing has nothing to run.
213
+ */
214
+ declare class WorkspaceDeclaresNoConstructs extends GkmError {
215
+ readonly root: string;
216
+ constructor(root: string);
217
+ }
218
+ interface AppConfigResult {
219
+ appName: string;
220
+ app: NormalizedAppConfig;
221
+ gkmConfig: GkmConfig;
222
+ workspace: NormalizedWorkspace;
223
+ workspaceRoot: string;
224
+ appRoot: string;
225
+ }
226
+ /** A directory that no app in the workspace lives in. */
227
+ declare class NotInAnApp extends GkmError {
228
+ readonly cwd: string;
229
+ readonly apps: Readonly<Record<string, string>>;
230
+ constructor(cwd: string, apps: Readonly<Record<string, string>>);
231
+ }
232
+ /**
233
+ * The backend app a directory is part of, with its gkm config — found by the
234
+ * `path` its construct declares.
235
+ *
236
+ * @example
237
+ * ```ts
238
+ * // From apps/api, where a construct declares `path: 'apps/api'`
239
+ * const { app, workspace, workspaceRoot } = await loadAppConfig();
240
+ * ```
241
+ *
242
+ * @throws {NotInAnApp} when no app's path contains the directory.
243
+ * @throws {NotABackendApp} when the app it is in has no gkm config to run.
244
+ */
245
+ declare function loadAppConfig(cwd?: string): Promise<AppConfigResult>;
246
+ /** The app a directory is in has no gkm config — a site, or an entry app. */
247
+ declare class NotABackendApp extends GkmError {
248
+ readonly appName: string;
249
+ constructor(appName: string);
250
+ }
251
+ interface WorkspaceAppInfo {
252
+ /** The app's key in the workspace. */
253
+ appName: string;
254
+ app: NormalizedAppConfig;
255
+ workspace: NormalizedWorkspace;
256
+ workspaceRoot: string;
257
+ }
258
+ /**
259
+ * The app a directory is part of, frontend or backend — found by the `path`
260
+ * its construct declares. Unlike `loadAppConfig`, the app need not have a
261
+ * gkm config, which is what `gkm exec` and `gkm test` from a site need.
262
+ *
263
+ * @throws {NotInAnApp} when no app's path contains the directory.
264
+ */
265
+ declare function loadWorkspaceAppInfo(cwd?: string): Promise<WorkspaceAppInfo>;
266
+ //#endregion
267
+ export { DiscoveredApp as C, DiscoveryResponse as D, DiscoveryEvent as E, DataApiKind as S, DiscoveredWorkspace as T, loadWorkspaceAppInfo as _, ConfigNotFound as a, parseModuleConfig as b, NotABackendApp as c, WorkspaceAppInfo as d, WorkspaceDeclaresNoConstructs as f, loadConfig as g, loadAppConfig as h, ConfigLoadFailed as i, NotInAnApp as l, findWorkspaceRoot as m, CONFIG_LOAD_TIMEOUT_MS as n, ConfigObjectNotSerializable as o, defineConfig as p, ConfigDiscoveryResult as r, LoadConfigOptions as s, AppConfigResult as t, ParsedModuleConfig as u, loadWorkspaceConfig as v, DiscoveredDataApi as w, AppStatus as x, loadWorkspaceSettings as y };
268
+ //# sourceMappingURL=config-DPsCfNpR.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-DPsCfNpR.d.mts","names":[],"sources":["../src/dev/discovery.ts","../src/config.ts"],"mappings":";;;;;KAqFY;;KAGA;;;;;;UAyBK;;EAEhB;;EAEA;;UA8BgB;EAChB,MAAM;;EAEN;;EAEA;;EAEA;;UAGgB;EAChB;EACA;EACA;;EAEA;EACA;EACA,QAAQ;EACR;;EAEA;EACA,UAAU;;UAGM;;EAEhB;EACA;EACA;EACA;EACA,UAAU;;EAEV,WAAW;EACX,MAAM;;;UAIU;EAChB;;EAEA;IAAQ;IAAa;;;EAErB;EACA,YAAY;;;KAID;EACP;EAAkB,UAAU;;EAC5B;EAAiD;;EAEnD;EACA;EACA,KAAK;;;;;;;;;;;;;;;;;;;;;iBCpJQ,aAAa,QAAQ,YAAY;UAIhC;EAChB;EACA;;;;;;;;;;;;;;;;;;;iBAoBe,kBACf,sBACA,uBACE;UAac;EAChB;EACA;;;;;;;;iBAgDe,kBAAkB;;cAKrB,uBAAuB;WACd;EAArB,YAAqB;;UAaL;;;;;;;;EAQhB,UAAU;;;;;EAKV;;;;;;;cAQY;;cAGA,yBAAyB;WAE3B;WACA;EAFV,YACU,oBACA;;;;;;;cAYE,oCAAoC;WAEtC;WACA;EAFV,YACU,oBACA;;;;;;;;iBA0GW,WACrB,eACE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCW,sBACrB,cACA,UAAS,oBACP,QAAQ;iBAKW,oBACrB,cACA,UAAS,oBACP,QAAQ;;;;;;;;cAmEE,sCAAsC;WAC7B;EAArB,YAAqB;;UAWL;EAChB;EACA,KAAK;EACL,WAAW;EACX,WAAW;EACX;EACA;;;cAqCY,mBAAmB;WAErB;WACA,MAAM,SAAS;EAFzB,YACU,aACA,MAAM,SAAS;;;;;;;;;;;;;;;iBAoCJ,cACrB,eACE,QAAQ;;cAkBE,uBAAuB;WACd;EAArB,YAAqB;;UAQL;;EAEhB;EACA,KAAK;EACL,WAAW;EACX;;;;;;;;;iBAUqB,qBACrB,eACE,QAAQ"}
@@ -0,0 +1,268 @@
1
+ import { Lt as Sandbox, Wt as GkmError, b as NormalizedAppConfig, r as GkmConfig, v as LoadedConfig, x as NormalizedWorkspace } from "./types-Cjnqw1ta.cjs";
2
+ import "./index-D-gNc445.cjs";
3
+ import { ConstructManifest } from "@geekmidas/manifest";
4
+ //#region src/dev/discovery.d.ts
5
+ /** Where an app is in its life. `stopped` is a server that exited on its own. */
6
+ type AppStatus = 'starting' | 'ready' | 'reloading' | 'stopped';
7
+ /** A JSON API an app serves about itself. */
8
+ type DataApiKind = 'telescope' | 'database' | 'openapi';
9
+ /**
10
+ * The local OpenObserve `gkm dev` runs for a workspace that uses a
11
+ * `Telemetry` construct: where its UI is, and who signs in. Never the
12
+ * password — the endpoint is read by anything holding its token.
13
+ */
14
+ interface DevTelemetryUi {
15
+ /** `http://localhost:<port>`. */
16
+ url: string;
17
+ /** The local root user's email. */
18
+ email: string;
19
+ }
20
+ interface DiscoveredDataApi {
21
+ kind: DataApiKind;
22
+ /** Where the app serves it. */
23
+ path: string;
24
+ /** The app's own address for it — `http://localhost:<port><path>`. */
25
+ url: string;
26
+ /** The same API through this endpoint, relative to its origin. */
27
+ proxy: string;
28
+ }
29
+ interface DiscoveredApp {
30
+ name: string;
31
+ type: 'backend' | 'web' | 'mobile';
32
+ port: number;
33
+ /** `http://localhost:<port>`. */
34
+ url: string;
35
+ publicUrl: string | null;
36
+ status: AppStatus;
37
+ reloads: number;
38
+ /** The `gkm dev` running it, when it runs in one of its own. */
39
+ pid: number | null;
40
+ dataApis: DiscoveredDataApi[];
41
+ }
42
+ interface DiscoveredWorkspace {
43
+ /** Stable for a workspace's root: its name, and a hash of where it is. */
44
+ id: string;
45
+ name: string;
46
+ root: string;
47
+ stage: string;
48
+ manifest: ConstructManifest | null;
49
+ /** The local telemetry UI — OpenObserve — when the workspace runs one. */
50
+ telemetry: DevTelemetryUi | null;
51
+ apps: DiscoveredApp[];
52
+ }
53
+ /** The body of `GET /__gkm`. */
54
+ interface DiscoveryResponse {
55
+ version: 1;
56
+ /** The `gkm dev` serving this endpoint, which may change while you watch. */
57
+ host: {
58
+ pid: number;
59
+ port: number;
60
+ };
61
+ /** Where the changes stream, as server-sent events. */
62
+ events: string;
63
+ workspaces: DiscoveredWorkspace[];
64
+ }
65
+ /** One message on `GET /__gkm/events`; its SSE `event:` is its `type`. */
66
+ type DiscoveryEvent = {
67
+ type: 'snapshot';
68
+ snapshot: DiscoveryResponse;
69
+ } | {
70
+ type: 'workspace.started' | 'workspace.stopped';
71
+ workspace: string;
72
+ } | {
73
+ type: 'app.started' | 'app.stopped' | 'app.reloaded' | 'app.status';
74
+ workspace: string;
75
+ app: DiscoveredApp;
76
+ };
77
+ //#endregion
78
+ //#region src/config.d.ts
79
+ /**
80
+ * Define GKM configuration with full TypeScript support.
81
+ * This is an identity function that provides type safety and autocomplete.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * // gkm.config.ts
86
+ * import { defineConfig } from '@geekmidas/cli/config';
87
+ *
88
+ * export default defineConfig({
89
+ * routes: './src/endpoints/**\/*.ts',
90
+ * envParser: './src/config/env',
91
+ * logger: './src/config/logger',
92
+ * telescope: true,
93
+ * });
94
+ * ```
95
+ */
96
+ declare function defineConfig(config: GkmConfig): GkmConfig;
97
+ interface ParsedModuleConfig {
98
+ path: string;
99
+ importPattern: string;
100
+ }
101
+ /**
102
+ * Parse a module config string into path and import pattern.
103
+ *
104
+ * @param configString - Config string in format "./path/to/module" or "./path/to/module#exportName"
105
+ * @param defaultAlias - The default alias name to use if no export name specified
106
+ * @returns Object with path and import pattern
107
+ *
108
+ * @example
109
+ * parseModuleConfig('./src/config/env', 'envParser')
110
+ * // { path: './src/config/env', importPattern: 'envParser' }
111
+ *
112
+ * parseModuleConfig('./src/config/env#envParser', 'envParser')
113
+ * // { path: './src/config/env', importPattern: '{ envParser }' }
114
+ *
115
+ * parseModuleConfig('./src/config/env#myEnv', 'envParser')
116
+ * // { path: './src/config/env', importPattern: '{ myEnv as envParser }' }
117
+ */
118
+ declare function parseModuleConfig(configString: string, defaultAlias: string): ParsedModuleConfig;
119
+ interface ConfigDiscoveryResult {
120
+ configPath: string;
121
+ workspaceRoot: string;
122
+ }
123
+ /**
124
+ * The directory holding the gkm config that `cwd` belongs to — the project a
125
+ * sandbox for it is confined to.
126
+ *
127
+ * @throws {ConfigNotFound} when neither `cwd` nor any parent has one.
128
+ */
129
+ declare function findWorkspaceRoot(cwd: string): string;
130
+ /** No gkm config in a directory or any of its parents. */
131
+ declare class ConfigNotFound extends GkmError {
132
+ readonly cwd: string;
133
+ constructor(cwd: string);
134
+ }
135
+ interface LoadConfigOptions {
136
+ /**
137
+ * Load the config — and discover the constructs it names — in this
138
+ * sandbox rather than in this process. The config then arrives as data;
139
+ * see {@link Sandbox.isolating} for what happens to one holding live
140
+ * objects. Defaults to the run's own (`withSandbox`); with neither, the
141
+ * config is imported here, as `gkm` always has.
142
+ */
143
+ sandbox?: Sandbox;
144
+ /**
145
+ * How long the sandboxed config load may run. Defaults to
146
+ * {@link CONFIG_LOAD_TIMEOUT_MS}.
147
+ */
148
+ timeoutMs?: number;
149
+ }
150
+ /**
151
+ * How long loading a config, or discovering its constructs, may take in a
152
+ * sandbox: room for tsx to compile a large project cold, and not a deploy
153
+ * held open by a config that never finishes importing.
154
+ */
155
+ declare const CONFIG_LOAD_TIMEOUT_MS = 60000;
156
+ /** The config failed to import, or threw while it ran. */
157
+ declare class ConfigLoadFailed extends Error {
158
+ readonly configPath: string;
159
+ readonly detail: string;
160
+ constructor(configPath: string, detail: string);
161
+ }
162
+ /**
163
+ * The config holds something that is not data — a custom state store, an
164
+ * inline deploy target, a function — and the sandbox it was loaded in hands
165
+ * the deploy nothing but data.
166
+ */
167
+ declare class ConfigObjectNotSerializable extends Error {
168
+ readonly configPath: string;
169
+ readonly paths: readonly string[];
170
+ constructor(configPath: string, paths: readonly string[]);
171
+ }
172
+ /**
173
+ * Load configuration file (single-app format).
174
+ * For backwards compatibility with existing code.
175
+ *
176
+ * @deprecated Use loadWorkspaceConfig for new code
177
+ */
178
+ declare function loadConfig(cwd?: string): Promise<GkmConfig>;
179
+ /**
180
+ * Load configuration file and process it as a workspace.
181
+ * Works with both single-app and workspace configurations.
182
+ *
183
+ * Single-app configs are automatically wrapped as a workspace with one app.
184
+ *
185
+ * @example
186
+ * ```ts
187
+ * const { type, workspace } = await loadWorkspaceConfig();
188
+ *
189
+ * if (type === 'workspace') {
190
+ * console.log('Multi-app workspace:', workspace.apps);
191
+ * } else {
192
+ * console.log('Single app wrapped as workspace');
193
+ * }
194
+ * ```
195
+ */
196
+ /**
197
+ * The workspace a directory belongs to, as its config states it — without
198
+ * discovering its constructs.
199
+ *
200
+ * For callers that need a fact the config holds (where a stage's secrets are
201
+ * stored) and nothing the graph adds. `loadWorkspaceConfig` imports every
202
+ * construct module to derive the apps, which is a cost a secrets read should
203
+ * not pay.
204
+ */
205
+ declare function loadWorkspaceSettings(cwd?: string, options?: LoadConfigOptions): Promise<LoadedConfig['workspace']>;
206
+ declare function loadWorkspaceConfig(cwd?: string, options?: LoadConfigOptions): Promise<LoadedConfig>;
207
+ /**
208
+ * A workspace with no `constructs` glob.
209
+ *
210
+ * In v10 every address, container and app comes from what the workspace
211
+ * declares — there is no second path that reads a hand-written compose file or
212
+ * an `apps` block's ports. A config that declares nothing has nothing to run.
213
+ */
214
+ declare class WorkspaceDeclaresNoConstructs extends GkmError {
215
+ readonly root: string;
216
+ constructor(root: string);
217
+ }
218
+ interface AppConfigResult {
219
+ appName: string;
220
+ app: NormalizedAppConfig;
221
+ gkmConfig: GkmConfig;
222
+ workspace: NormalizedWorkspace;
223
+ workspaceRoot: string;
224
+ appRoot: string;
225
+ }
226
+ /** A directory that no app in the workspace lives in. */
227
+ declare class NotInAnApp extends GkmError {
228
+ readonly cwd: string;
229
+ readonly apps: Readonly<Record<string, string>>;
230
+ constructor(cwd: string, apps: Readonly<Record<string, string>>);
231
+ }
232
+ /**
233
+ * The backend app a directory is part of, with its gkm config — found by the
234
+ * `path` its construct declares.
235
+ *
236
+ * @example
237
+ * ```ts
238
+ * // From apps/api, where a construct declares `path: 'apps/api'`
239
+ * const { app, workspace, workspaceRoot } = await loadAppConfig();
240
+ * ```
241
+ *
242
+ * @throws {NotInAnApp} when no app's path contains the directory.
243
+ * @throws {NotABackendApp} when the app it is in has no gkm config to run.
244
+ */
245
+ declare function loadAppConfig(cwd?: string): Promise<AppConfigResult>;
246
+ /** The app a directory is in has no gkm config — a site, or an entry app. */
247
+ declare class NotABackendApp extends GkmError {
248
+ readonly appName: string;
249
+ constructor(appName: string);
250
+ }
251
+ interface WorkspaceAppInfo {
252
+ /** The app's key in the workspace. */
253
+ appName: string;
254
+ app: NormalizedAppConfig;
255
+ workspace: NormalizedWorkspace;
256
+ workspaceRoot: string;
257
+ }
258
+ /**
259
+ * The app a directory is part of, frontend or backend — found by the `path`
260
+ * its construct declares. Unlike `loadAppConfig`, the app need not have a
261
+ * gkm config, which is what `gkm exec` and `gkm test` from a site need.
262
+ *
263
+ * @throws {NotInAnApp} when no app's path contains the directory.
264
+ */
265
+ declare function loadWorkspaceAppInfo(cwd?: string): Promise<WorkspaceAppInfo>;
266
+ //#endregion
267
+ export { DiscoveredApp as C, DiscoveryResponse as D, DiscoveryEvent as E, DataApiKind as S, DiscoveredWorkspace as T, loadWorkspaceAppInfo as _, ConfigNotFound as a, parseModuleConfig as b, NotABackendApp as c, WorkspaceAppInfo as d, WorkspaceDeclaresNoConstructs as f, loadConfig as g, loadAppConfig as h, ConfigLoadFailed as i, NotInAnApp as l, findWorkspaceRoot as m, CONFIG_LOAD_TIMEOUT_MS as n, ConfigObjectNotSerializable as o, defineConfig as p, ConfigDiscoveryResult as r, LoadConfigOptions as s, AppConfigResult as t, ParsedModuleConfig as u, loadWorkspaceConfig as v, DiscoveredDataApi as w, AppStatus as x, loadWorkspaceSettings as y };
268
+ //# sourceMappingURL=config-azErNJSd.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-azErNJSd.d.cts","names":[],"sources":["../src/dev/discovery.ts","../src/config.ts"],"mappings":";;;;;KAqFY;;KAGA;;;;;;UAyBK;;EAEhB;;EAEA;;UA8BgB;EAChB,MAAM;;EAEN;;EAEA;;EAEA;;UAGgB;EAChB;EACA;EACA;;EAEA;EACA;EACA,QAAQ;EACR;;EAEA;EACA,UAAU;;UAGM;;EAEhB;EACA;EACA;EACA;EACA,UAAU;;EAEV,WAAW;EACX,MAAM;;;UAIU;EAChB;;EAEA;IAAQ;IAAa;;;EAErB;EACA,YAAY;;;KAID;EACP;EAAkB,UAAU;;EAC5B;EAAiD;;EAEnD;EACA;EACA,KAAK;;;;;;;;;;;;;;;;;;;;;iBCpJQ,aAAa,QAAQ,YAAY;UAIhC;EAChB;EACA;;;;;;;;;;;;;;;;;;;iBAoBe,kBACf,sBACA,uBACE;UAac;EAChB;EACA;;;;;;;;iBAgDe,kBAAkB;;cAKrB,uBAAuB;WACd;EAArB,YAAqB;;UAaL;;;;;;;;EAQhB,UAAU;;;;;EAKV;;;;;;;cAQY;;cAGA,yBAAyB;WAE3B;WACA;EAFV,YACU,oBACA;;;;;;;cAYE,oCAAoC;WAEtC;WACA;EAFV,YACU,oBACA;;;;;;;;iBA0GW,WACrB,eACE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCW,sBACrB,cACA,UAAS,oBACP,QAAQ;iBAKW,oBACrB,cACA,UAAS,oBACP,QAAQ;;;;;;;;cAmEE,sCAAsC;WAC7B;EAArB,YAAqB;;UAWL;EAChB;EACA,KAAK;EACL,WAAW;EACX,WAAW;EACX;EACA;;;cAqCY,mBAAmB;WAErB;WACA,MAAM,SAAS;EAFzB,YACU,aACA,MAAM,SAAS;;;;;;;;;;;;;;;iBAoCJ,cACrB,eACE,QAAQ;;cAkBE,uBAAuB;WACd;EAArB,YAAqB;;UAQL;;EAEhB;EACA,KAAK;EACL,WAAW;EACX;;;;;;;;;iBAUqB,qBACrB,eACE,QAAQ"}