@geekmidas/cli 10.0.0-alpha.16 → 10.0.0-alpha.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/README.md +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-B5BKAoLz.mjs +1039 -0
  7. package/dist/EndpointGenerator-B5BKAoLz.mjs.map +1 -0
  8. package/dist/EndpointGenerator-DxrRqfJ3.cjs +1098 -0
  9. package/dist/EndpointGenerator-DxrRqfJ3.cjs.map +1 -0
  10. package/dist/GoDaddyProvider-C9dDlH9I.mjs +412 -0
  11. package/dist/GoDaddyProvider-C9dDlH9I.mjs.map +1 -0
  12. package/dist/GoDaddyProvider-DkUMcMYy.cjs +412 -0
  13. package/dist/GoDaddyProvider-DkUMcMYy.cjs.map +1 -0
  14. package/dist/{HostingerProvider-BZFGYYVA.cjs → HostingerProvider-9faYOQnQ.cjs} +23 -9
  15. package/dist/HostingerProvider-9faYOQnQ.cjs.map +1 -0
  16. package/dist/{HostingerProvider-BY26bWwB.mjs → HostingerProvider-BEuKG2gz.mjs} +23 -9
  17. package/dist/HostingerProvider-BEuKG2gz.mjs.map +1 -0
  18. package/dist/LegacyStateStore-C44jUnMH.cjs +124 -0
  19. package/dist/LegacyStateStore-C44jUnMH.cjs.map +1 -0
  20. package/dist/LegacyStateStore-DPKhjUR6.mjs +124 -0
  21. package/dist/LegacyStateStore-DPKhjUR6.mjs.map +1 -0
  22. package/dist/LocalStateStore-B95WE99i.cjs +178 -0
  23. package/dist/LocalStateStore-B95WE99i.cjs.map +1 -0
  24. package/dist/LocalStateStore-BU3fWkcT.mjs +167 -0
  25. package/dist/LocalStateStore-BU3fWkcT.mjs.map +1 -0
  26. package/dist/OpenApiTsGenerator-DOTLKBFf.cjs +539 -0
  27. package/dist/OpenApiTsGenerator-DOTLKBFf.cjs.map +1 -0
  28. package/dist/OpenApiTsGenerator-Vaf0pI8u.mjs +534 -0
  29. package/dist/OpenApiTsGenerator-Vaf0pI8u.mjs.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-Cpbeijr5.mjs +223 -0
  35. package/dist/S3StateStore-Cpbeijr5.mjs.map +1 -0
  36. package/dist/S3StateStore-zU5kClhd.cjs +222 -0
  37. package/dist/S3StateStore-zU5kClhd.cjs.map +1 -0
  38. package/dist/SSMStateStore-BxkKMBi_.mjs +205 -0
  39. package/dist/SSMStateStore-BxkKMBi_.mjs.map +1 -0
  40. package/dist/SSMStateStore-D9uviQ3T.cjs +204 -0
  41. package/dist/SSMStateStore-D9uviQ3T.cjs.map +1 -0
  42. package/dist/SubscriberGenerator-BybB6uez.mjs +783 -0
  43. package/dist/SubscriberGenerator-BybB6uez.mjs.map +1 -0
  44. package/dist/SubscriberGenerator-mZpSuSU7.cjs +848 -0
  45. package/dist/SubscriberGenerator-mZpSuSU7.cjs.map +1 -0
  46. package/dist/add-Bb2IL3Yq.cjs +713 -0
  47. package/dist/add-Bb2IL3Yq.cjs.map +1 -0
  48. package/dist/add-Dj-gtqTO.mjs +711 -0
  49. package/dist/add-Dj-gtqTO.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/apps-0vc4Oz9_.cjs +6247 -0
  55. package/dist/apps-0vc4Oz9_.cjs.map +1 -0
  56. package/dist/apps-FRNlECwi.mjs +5621 -0
  57. package/dist/apps-FRNlECwi.mjs.map +1 -0
  58. package/dist/aws-8QQ8n-t6.mjs +89 -0
  59. package/dist/aws-8QQ8n-t6.mjs.map +1 -0
  60. package/dist/aws-DY9NqQIT.cjs +100 -0
  61. package/dist/aws-DY9NqQIT.cjs.map +1 -0
  62. package/dist/awsStore-Bx5nCFnS.mjs +121 -0
  63. package/dist/awsStore-Bx5nCFnS.mjs.map +1 -0
  64. package/dist/awsStore-u3ehhMoY.cjs +138 -0
  65. package/dist/awsStore-u3ehhMoY.cjs.map +1 -0
  66. package/dist/{backup-provisioner-DIVCbfee.mjs → backup-provisioner-C8DnCmxK.mjs} +2 -2
  67. package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
  68. package/dist/{backup-provisioner-BmhIO_Yr.cjs → backup-provisioner-oDEsPj02.cjs} +2 -2
  69. package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
  70. package/dist/backups/runner.cjs +519 -0
  71. package/dist/backups/runner.cjs.map +1 -0
  72. package/dist/backups/runner.d.cts +102 -0
  73. package/dist/backups/runner.d.cts.map +1 -0
  74. package/dist/backups/runner.d.mts +102 -0
  75. package/dist/backups/runner.d.mts.map +1 -0
  76. package/dist/backups/runner.mjs +506 -0
  77. package/dist/backups/runner.mjs.map +1 -0
  78. package/dist/{bundler-BodTL4kf.mjs → bundler-9EM4ZHcu.mjs} +59 -14
  79. package/dist/bundler-9EM4ZHcu.mjs.map +1 -0
  80. package/dist/{bundler-BeNDZdHQ.cjs → bundler-Bg2eEFEh.cjs} +59 -14
  81. package/dist/bundler-Bg2eEFEh.cjs.map +1 -0
  82. package/dist/cli-CmoSOzNq.mjs +80 -0
  83. package/dist/cli-CmoSOzNq.mjs.map +1 -0
  84. package/dist/cli-YtLjcAZT.cjs +80 -0
  85. package/dist/cli-YtLjcAZT.cjs.map +1 -0
  86. package/dist/compose-3AtZF7ul.mjs +1560 -0
  87. package/dist/compose-3AtZF7ul.mjs.map +1 -0
  88. package/dist/compose-CW1DGfYc.cjs +1919 -0
  89. package/dist/compose-CW1DGfYc.cjs.map +1 -0
  90. package/dist/compose-CnXZAYNM.mjs +3068 -0
  91. package/dist/compose-CnXZAYNM.mjs.map +1 -0
  92. package/dist/compose-D7gOSspy.cjs +3157 -0
  93. package/dist/compose-D7gOSspy.cjs.map +1 -0
  94. package/dist/config-B5Hi3mLK.cjs +821 -0
  95. package/dist/config-B5Hi3mLK.cjs.map +1 -0
  96. package/dist/config-BNmLn0dw.d.mts +291 -0
  97. package/dist/config-BNmLn0dw.d.mts.map +1 -0
  98. package/dist/config-CkuiD9Jv.d.cts +291 -0
  99. package/dist/config-CkuiD9Jv.d.cts.map +1 -0
  100. package/dist/config-DWTUVGRE.mjs +696 -0
  101. package/dist/config-DWTUVGRE.mjs.map +1 -0
  102. package/dist/config.cjs +13 -3
  103. package/dist/config.d.cts +4 -117
  104. package/dist/config.d.mts +4 -117
  105. package/dist/config.mjs +3 -3
  106. package/dist/credentialSchemas-BAklWDna.cjs +271 -0
  107. package/dist/credentialSchemas-BAklWDna.cjs.map +1 -0
  108. package/dist/credentialSchemas-mz9QZTYh.mjs +236 -0
  109. package/dist/credentialSchemas-mz9QZTYh.mjs.map +1 -0
  110. package/dist/credentials-CjFtNBVH.mjs +1834 -0
  111. package/dist/credentials-CjFtNBVH.mjs.map +1 -0
  112. package/dist/credentials-DwIRfeBL.cjs +2289 -0
  113. package/dist/credentials-DwIRfeBL.cjs.map +1 -0
  114. package/dist/databases-C1qqNxTu.mjs +588 -0
  115. package/dist/databases-C1qqNxTu.mjs.map +1 -0
  116. package/dist/databases-CrKh5jw6.cjs +703 -0
  117. package/dist/databases-CrKh5jw6.cjs.map +1 -0
  118. package/dist/define-6poNqm5O.mjs +106 -0
  119. package/dist/define-6poNqm5O.mjs.map +1 -0
  120. package/dist/define-crmMcXFS.cjs +153 -0
  121. package/dist/define-crmMcXFS.cjs.map +1 -0
  122. package/dist/deploy/public.cjs +211 -0
  123. package/dist/deploy/public.cjs.map +1 -0
  124. package/dist/deploy/public.d.cts +658 -0
  125. package/dist/deploy/public.d.cts.map +1 -0
  126. package/dist/deploy/public.d.mts +658 -0
  127. package/dist/deploy/public.d.mts.map +1 -0
  128. package/dist/deploy/public.mjs +144 -0
  129. package/dist/deploy/public.mjs.map +1 -0
  130. package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
  131. package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
  132. package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
  133. package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
  134. package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
  135. package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
  136. package/dist/deploy/sniffer-hooks.cjs +1 -1
  137. package/dist/deploy/sniffer-hooks.mjs +1 -1
  138. package/dist/deploy/sniffer-loader.cjs +2 -2
  139. package/dist/deploy/sniffer-loader.mjs +1 -1
  140. package/dist/deploy/sniffer-routes-worker.cjs +2 -2
  141. package/dist/deploy/sniffer-routes-worker.mjs +1 -1
  142. package/dist/deploy-3bsiWJxj.cjs +3925 -0
  143. package/dist/deploy-3bsiWJxj.cjs.map +1 -0
  144. package/dist/deploy-BI3fHnyb.mjs +3869 -0
  145. package/dist/deploy-BI3fHnyb.mjs.map +1 -0
  146. package/dist/discover-CRywE7yc.cjs +1085 -0
  147. package/dist/discover-CRywE7yc.cjs.map +1 -0
  148. package/dist/discover-DbDrCQ8h.mjs +940 -0
  149. package/dist/discover-DbDrCQ8h.mjs.map +1 -0
  150. package/dist/docker-CwayjAF2.cjs +1515 -0
  151. package/dist/docker-CwayjAF2.cjs.map +1 -0
  152. package/dist/docker-DPdn7tYJ.mjs +1408 -0
  153. package/dist/docker-DPdn7tYJ.mjs.map +1 -0
  154. package/dist/dokploy-BMBL-_Xu.cjs +38 -0
  155. package/dist/dokploy-BMBL-_Xu.cjs.map +1 -0
  156. package/dist/dokploy-tmnH0Du_.mjs +38 -0
  157. package/dist/dokploy-tmnH0Du_.mjs.map +1 -0
  158. package/dist/drivers-BhdC9Efj.cjs +248 -0
  159. package/dist/drivers-BhdC9Efj.cjs.map +1 -0
  160. package/dist/drivers-wcDnzf7l.mjs +213 -0
  161. package/dist/drivers-wcDnzf7l.mjs.map +1 -0
  162. package/dist/eas-BVGQAUDc.mjs +334 -0
  163. package/dist/eas-BVGQAUDc.mjs.map +1 -0
  164. package/dist/eas-meN1xady.cjs +337 -0
  165. package/dist/eas-meN1xady.cjs.map +1 -0
  166. package/dist/emit-C4KSXOeS.mjs +153 -0
  167. package/dist/emit-C4KSXOeS.mjs.map +1 -0
  168. package/dist/emit-DiW0kbue.cjs +164 -0
  169. package/dist/emit-DiW0kbue.cjs.map +1 -0
  170. package/dist/encryption-C8AMbomA.mjs +89 -0
  171. package/dist/encryption-C8AMbomA.mjs.map +1 -0
  172. package/dist/encryption-DvFVZdGz.cjs +90 -0
  173. package/dist/encryption-DvFVZdGz.cjs.map +1 -0
  174. package/dist/engine-BbWj0w3F.mjs +3217 -0
  175. package/dist/engine-BbWj0w3F.mjs.map +1 -0
  176. package/dist/engine-BmiIUVWa.cjs +3330 -0
  177. package/dist/engine-BmiIUVWa.cjs.map +1 -0
  178. package/dist/errors-D8Gwp5kU.mjs +23 -0
  179. package/dist/errors-D8Gwp5kU.mjs.map +1 -0
  180. package/dist/errors-DMC4Umsb.cjs +34 -0
  181. package/dist/errors-DMC4Umsb.cjs.map +1 -0
  182. package/dist/github-BWqQr8q6.cjs +901 -0
  183. package/dist/github-BWqQr8q6.cjs.map +1 -0
  184. package/dist/github-Dc1daUbH.mjs +900 -0
  185. package/dist/github-Dc1daUbH.mjs.map +1 -0
  186. package/dist/googlePlay-ByaFUly7.mjs +931 -0
  187. package/dist/googlePlay-ByaFUly7.mjs.map +1 -0
  188. package/dist/googlePlay-CdVCdfU8.cjs +931 -0
  189. package/dist/googlePlay-CdVCdfU8.cjs.map +1 -0
  190. package/dist/{index-C-VLwB_Y.d.mts → index-B35vTdAW.d.cts} +38 -14
  191. package/dist/index-B35vTdAW.d.cts.map +1 -0
  192. package/dist/{index-C-HkOEBt.d.cts → index-Dv1Zj86i.d.mts} +38 -14
  193. package/dist/index-Dv1Zj86i.d.mts.map +1 -0
  194. package/dist/index.cjs +13730 -12325
  195. package/dist/index.cjs.map +1 -1
  196. package/dist/index.mjs +13771 -12364
  197. package/dist/index.mjs.map +1 -1
  198. package/dist/local-CnVFHJjS.mjs +224 -0
  199. package/dist/local-CnVFHJjS.mjs.map +1 -0
  200. package/dist/local-qevrV6dZ.cjs +241 -0
  201. package/dist/local-qevrV6dZ.cjs.map +1 -0
  202. package/dist/migrate-BEuCcCwN.mjs +267 -0
  203. package/dist/migrate-BEuCcCwN.mjs.map +1 -0
  204. package/dist/migrate-CRRps1i6.cjs +272 -0
  205. package/dist/migrate-CRRps1i6.cjs.map +1 -0
  206. package/dist/migrate-CU8_ZWP1.cjs +181 -0
  207. package/dist/migrate-CU8_ZWP1.cjs.map +1 -0
  208. package/dist/migrate-DgfKZB41.mjs +181 -0
  209. package/dist/migrate-DgfKZB41.mjs.map +1 -0
  210. package/dist/notes-BrBnyZz5.cjs +500 -0
  211. package/dist/notes-BrBnyZz5.cjs.map +1 -0
  212. package/dist/notes-CIzrdBKE.mjs +399 -0
  213. package/dist/notes-CIzrdBKE.mjs.map +1 -0
  214. package/dist/openapi.cjs +213 -7
  215. package/dist/openapi.cjs.map +1 -0
  216. package/dist/openapi.d.cts +32 -8
  217. package/dist/openapi.d.cts.map +1 -1
  218. package/dist/openapi.d.mts +32 -8
  219. package/dist/openapi.d.mts.map +1 -1
  220. package/dist/openapi.mjs +208 -2
  221. package/dist/openapi.mjs.map +1 -0
  222. package/dist/projectBucket-CDJd3prK.mjs +222 -0
  223. package/dist/projectBucket-CDJd3prK.mjs.map +1 -0
  224. package/dist/projectBucket-CKr_zObJ.cjs +263 -0
  225. package/dist/projectBucket-CKr_zObJ.cjs.map +1 -0
  226. package/dist/provider-BqpjG9QM.cjs +57 -0
  227. package/dist/provider-BqpjG9QM.cjs.map +1 -0
  228. package/dist/provider-CEOKk8NS.mjs +46 -0
  229. package/dist/provider-CEOKk8NS.mjs.map +1 -0
  230. package/dist/publish-Bq96_QnK.mjs +123 -0
  231. package/dist/publish-Bq96_QnK.mjs.map +1 -0
  232. package/dist/publish-DMKXh1Tb.cjs +124 -0
  233. package/dist/publish-DMKXh1Tb.cjs.map +1 -0
  234. package/dist/ready-BjFMu_1J.mjs +375 -0
  235. package/dist/ready-BjFMu_1J.mjs.map +1 -0
  236. package/dist/ready-eVMJIcWn.cjs +404 -0
  237. package/dist/ready-eVMJIcWn.cjs.map +1 -0
  238. package/dist/reconcile/public.cjs +3 -5
  239. package/dist/reconcile/public.d.cts +33 -89
  240. package/dist/reconcile/public.d.cts.map +1 -1
  241. package/dist/reconcile/public.d.mts +33 -89
  242. package/dist/reconcile/public.d.mts.map +1 -1
  243. package/dist/reconcile/public.mjs +3 -3
  244. package/dist/{reconcile-DhQ00DpU.mjs → reconcile--I7V4Klj.mjs} +2 -2
  245. package/dist/{reconcile-DhQ00DpU.mjs.map → reconcile--I7V4Klj.mjs.map} +1 -1
  246. package/dist/{reconcile-Dd2iyILf.cjs → reconcile-CuCQBa5-.cjs} +3 -3
  247. package/dist/{reconcile-Dd2iyILf.cjs.map → reconcile-CuCQBa5-.cjs.map} +1 -1
  248. package/dist/resolve-CSsE7frp.mjs +263 -0
  249. package/dist/resolve-CSsE7frp.mjs.map +1 -0
  250. package/dist/resolve-DF9GrosZ.cjs +316 -0
  251. package/dist/resolve-DF9GrosZ.cjs.map +1 -0
  252. package/dist/rollback-BBFGGmMa.cjs +165 -0
  253. package/dist/rollback-BBFGGmMa.cjs.map +1 -0
  254. package/dist/rollback-CZthwqus.mjs +136 -0
  255. package/dist/rollback-CZthwqus.mjs.map +1 -0
  256. package/dist/runtime-CFvcLEJW.d.cts +82 -0
  257. package/dist/runtime-CFvcLEJW.d.cts.map +1 -0
  258. package/dist/runtime-dwsH6ddo.d.mts +82 -0
  259. package/dist/runtime-dwsH6ddo.d.mts.map +1 -0
  260. package/dist/s3-BBRkezf7.mjs +215 -0
  261. package/dist/s3-BBRkezf7.mjs.map +1 -0
  262. package/dist/s3-CI2QYgXH.cjs +215 -0
  263. package/dist/s3-CI2QYgXH.cjs.map +1 -0
  264. package/dist/sandbox/config-worker.cjs +43 -0
  265. package/dist/sandbox/config-worker.cjs.map +1 -0
  266. package/dist/sandbox/config-worker.d.cts +1 -0
  267. package/dist/sandbox/config-worker.d.mts +1 -0
  268. package/dist/sandbox/config-worker.mjs +44 -0
  269. package/dist/sandbox/config-worker.mjs.map +1 -0
  270. package/dist/sandbox/credentials-worker.cjs +53 -0
  271. package/dist/sandbox/credentials-worker.cjs.map +1 -0
  272. package/dist/sandbox/credentials-worker.d.cts +1 -0
  273. package/dist/sandbox/credentials-worker.d.mts +1 -0
  274. package/dist/sandbox/credentials-worker.mjs +54 -0
  275. package/dist/sandbox/credentials-worker.mjs.map +1 -0
  276. package/dist/sandbox/discover-worker.cjs +47 -0
  277. package/dist/sandbox/discover-worker.cjs.map +1 -0
  278. package/dist/sandbox/discover-worker.d.cts +1 -0
  279. package/dist/sandbox/discover-worker.d.mts +1 -0
  280. package/dist/sandbox/discover-worker.mjs +48 -0
  281. package/dist/sandbox/discover-worker.mjs.map +1 -0
  282. package/dist/sandbox/migrate-worker.cjs +75 -0
  283. package/dist/sandbox/migrate-worker.cjs.map +1 -0
  284. package/dist/sandbox/migrate-worker.d.cts +1 -0
  285. package/dist/sandbox/migrate-worker.d.mts +1 -0
  286. package/dist/sandbox/migrate-worker.mjs +76 -0
  287. package/dist/sandbox/migrate-worker.mjs.map +1 -0
  288. package/dist/{workspace-mFpI_ky_.cjs → schemas-BCwKKA42.mjs} +399 -1162
  289. package/dist/schemas-BCwKKA42.mjs.map +1 -0
  290. package/dist/{workspace-CgwmXEtc.mjs → schemas-BQ_v0lEX.cjs} +487 -971
  291. package/dist/schemas-BQ_v0lEX.cjs.map +1 -0
  292. package/dist/secretsManager-CQORubp9.mjs +97 -0
  293. package/dist/secretsManager-CQORubp9.mjs.map +1 -0
  294. package/dist/secretsManager-RAGcEDX1.cjs +108 -0
  295. package/dist/secretsManager-RAGcEDX1.cjs.map +1 -0
  296. package/dist/seeds-B3xvUAQf.cjs +363 -0
  297. package/dist/seeds-B3xvUAQf.cjs.map +1 -0
  298. package/dist/seeds-BCC8vAXR.mjs +298 -0
  299. package/dist/seeds-BCC8vAXR.mjs.map +1 -0
  300. package/dist/serverSetup-C4iAABtI.mjs +685 -0
  301. package/dist/serverSetup-C4iAABtI.mjs.map +1 -0
  302. package/dist/serverSetup-Dt2DTlwa.cjs +685 -0
  303. package/dist/serverSetup-Dt2DTlwa.cjs.map +1 -0
  304. package/dist/sniffer-C2Ot1IbK.mjs +1824 -0
  305. package/dist/sniffer-C2Ot1IbK.mjs.map +1 -0
  306. package/dist/sniffer-bTrGuu9z.cjs +1997 -0
  307. package/dist/sniffer-bTrGuu9z.cjs.map +1 -0
  308. package/dist/snsSubscriptions-CFKb7fv0.cjs +1173 -0
  309. package/dist/snsSubscriptions-CFKb7fv0.cjs.map +1 -0
  310. package/dist/snsSubscriptions-QDDDn9Qi.mjs +1048 -0
  311. package/dist/snsSubscriptions-QDDDn9Qi.mjs.map +1 -0
  312. package/dist/sst-DDRWlXdv.mjs +478 -0
  313. package/dist/sst-DDRWlXdv.mjs.map +1 -0
  314. package/dist/sst-iRdMlGKd.cjs +501 -0
  315. package/dist/sst-iRdMlGKd.cjs.map +1 -0
  316. package/dist/stack-B9iDYMrq.cjs +2431 -0
  317. package/dist/stack-B9iDYMrq.cjs.map +1 -0
  318. package/dist/stack-CIOY44aC.mjs +2256 -0
  319. package/dist/stack-CIOY44aC.mjs.map +1 -0
  320. package/dist/stage-DA74aD_V.mjs +302 -0
  321. package/dist/stage-DA74aD_V.mjs.map +1 -0
  322. package/dist/stage-ycFS9mVn.cjs +313 -0
  323. package/dist/stage-ycFS9mVn.cjs.map +1 -0
  324. package/dist/stages-B0yOikgt.cjs +190 -0
  325. package/dist/stages-B0yOikgt.cjs.map +1 -0
  326. package/dist/stages-yA9bhStl.mjs +190 -0
  327. package/dist/stages-yA9bhStl.mjs.map +1 -0
  328. package/dist/target/public.cjs +15 -0
  329. package/dist/target/public.d.cts +28 -0
  330. package/dist/target/public.d.cts.map +1 -0
  331. package/dist/target/public.d.mts +28 -0
  332. package/dist/target/public.d.mts.map +1 -0
  333. package/dist/target/public.mjs +4 -0
  334. package/dist/terminal-DX22WLvT.mjs +85 -0
  335. package/dist/terminal-DX22WLvT.mjs.map +1 -0
  336. package/dist/terminal-RxfbNUwl.cjs +85 -0
  337. package/dist/terminal-RxfbNUwl.cjs.map +1 -0
  338. package/dist/types-Bl_CwZC9.cjs +90 -0
  339. package/dist/types-Bl_CwZC9.cjs.map +1 -0
  340. package/dist/{types-kvBQjpPo.d.mts → types-Dk--xVOT.d.cts} +2159 -364
  341. package/dist/types-Dk--xVOT.d.cts.map +1 -0
  342. package/dist/{types-RhXmHR-e.d.cts → types-DwQYpd_0.d.mts} +2157 -364
  343. package/dist/types-DwQYpd_0.d.mts.map +1 -0
  344. package/dist/types-Y1NfWlyG.mjs +61 -0
  345. package/dist/types-Y1NfWlyG.mjs.map +1 -0
  346. package/dist/utils-D2Nk1Nv2.cjs +205 -0
  347. package/dist/utils-D2Nk1Nv2.cjs.map +1 -0
  348. package/dist/utils-D_fxUqvU.mjs +156 -0
  349. package/dist/utils-D_fxUqvU.mjs.map +1 -0
  350. package/dist/vitest.cjs +65 -0
  351. package/dist/vitest.cjs.map +1 -0
  352. package/dist/vitest.d.cts +29 -0
  353. package/dist/vitest.d.cts.map +1 -0
  354. package/dist/vitest.d.mts +29 -0
  355. package/dist/vitest.d.mts.map +1 -0
  356. package/dist/vitest.mjs +65 -0
  357. package/dist/vitest.mjs.map +1 -0
  358. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  359. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  360. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  361. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  362. package/dist/workspace/index.cjs +6 -2
  363. package/dist/workspace/index.d.cts +3 -3
  364. package/dist/workspace/index.d.mts +3 -3
  365. package/dist/workspace/index.mjs +2 -2
  366. package/dist/workspace-1szcahj9.cjs +2916 -0
  367. package/dist/workspace-1szcahj9.cjs.map +1 -0
  368. package/dist/workspace-DFGsrjGD.mjs +2480 -0
  369. package/dist/workspace-DFGsrjGD.mjs.map +1 -0
  370. package/package.json +65 -13
  371. package/dist/HostingerProvider-BY26bWwB.mjs.map +0 -1
  372. package/dist/HostingerProvider-BZFGYYVA.cjs.map +0 -1
  373. package/dist/LocalStateProvider-7HR6SS2t.cjs +0 -48
  374. package/dist/LocalStateProvider-7HR6SS2t.cjs.map +0 -1
  375. package/dist/LocalStateProvider-D7QyJoLM.mjs +0 -48
  376. package/dist/LocalStateProvider-D7QyJoLM.mjs.map +0 -1
  377. package/dist/Route53Provider-Cvj40A8I.mjs.map +0 -1
  378. package/dist/Route53Provider-DVILBsvV.cjs.map +0 -1
  379. package/dist/SSMStateProvider-B0Hu1MKZ.mjs +0 -75
  380. package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +0 -1
  381. package/dist/SSMStateProvider-VrQ-yeqd.cjs +0 -74
  382. package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +0 -1
  383. package/dist/backup-provisioner-BmhIO_Yr.cjs.map +0 -1
  384. package/dist/backup-provisioner-DIVCbfee.mjs.map +0 -1
  385. package/dist/bundler-BeNDZdHQ.cjs.map +0 -1
  386. package/dist/bundler-BodTL4kf.mjs.map +0 -1
  387. package/dist/config-Q1rvKHvw.cjs +0 -467
  388. package/dist/config-Q1rvKHvw.cjs.map +0 -1
  389. package/dist/config-pqGD3hF9.mjs +0 -414
  390. package/dist/config-pqGD3hF9.mjs.map +0 -1
  391. package/dist/config.d.cts.map +0 -1
  392. package/dist/config.d.mts.map +0 -1
  393. package/dist/credentials-BekkKtY_.mjs +0 -2780
  394. package/dist/credentials-BekkKtY_.mjs.map +0 -1
  395. package/dist/credentials-Q6F0uqJq.cjs +0 -2917
  396. package/dist/credentials-Q6F0uqJq.cjs.map +0 -1
  397. package/dist/discover-BERGFg8v.cjs +0 -288
  398. package/dist/discover-BERGFg8v.cjs.map +0 -1
  399. package/dist/discover-CK-n3w6b.mjs +0 -244
  400. package/dist/discover-CK-n3w6b.mjs.map +0 -1
  401. package/dist/emit-BdoPFjZf.cjs +0 -253
  402. package/dist/emit-BdoPFjZf.cjs.map +0 -1
  403. package/dist/emit-Bzq7JsMP.mjs +0 -224
  404. package/dist/emit-Bzq7JsMP.mjs.map +0 -1
  405. package/dist/fullstack-secrets-BET8gqwK.mjs +0 -81
  406. package/dist/fullstack-secrets-BET8gqwK.mjs.map +0 -1
  407. package/dist/fullstack-secrets-DXsWO-5m.cjs +0 -92
  408. package/dist/fullstack-secrets-DXsWO-5m.cjs.map +0 -1
  409. package/dist/generator-LfZU7NlU.mjs +0 -247
  410. package/dist/generator-LfZU7NlU.mjs.map +0 -1
  411. package/dist/generator-Wdfp0jCS.cjs +0 -282
  412. package/dist/generator-Wdfp0jCS.cjs.map +0 -1
  413. package/dist/github-BfflNPVe.cjs +0 -203
  414. package/dist/github-BfflNPVe.cjs.map +0 -1
  415. package/dist/github-CRwnxKmD.mjs +0 -203
  416. package/dist/github-CRwnxKmD.mjs.map +0 -1
  417. package/dist/index-C-HkOEBt.d.cts.map +0 -1
  418. package/dist/index-C-VLwB_Y.d.mts.map +0 -1
  419. package/dist/keystore-B4PRlbgE.mjs +0 -81
  420. package/dist/keystore-B4PRlbgE.mjs.map +0 -1
  421. package/dist/keystore-DgGRj2Yy.cjs +0 -98
  422. package/dist/keystore-DgGRj2Yy.cjs.map +0 -1
  423. package/dist/openapi-Dcbme-Us.cjs +0 -2038
  424. package/dist/openapi-Dcbme-Us.cjs.map +0 -1
  425. package/dist/openapi-vy4JzhUv.mjs +0 -1991
  426. package/dist/openapi-vy4JzhUv.mjs.map +0 -1
  427. package/dist/storage-C-30BD1e.cjs +0 -272
  428. package/dist/storage-C-30BD1e.cjs.map +0 -1
  429. package/dist/storage-P_b3w7uj.mjs +0 -231
  430. package/dist/storage-P_b3w7uj.mjs.map +0 -1
  431. package/dist/sync-B3xxXtJT.mjs +0 -88
  432. package/dist/sync-B3xxXtJT.mjs.map +0 -1
  433. package/dist/sync-D7uTIIEi.cjs +0 -111
  434. package/dist/sync-D7uTIIEi.cjs.map +0 -1
  435. package/dist/types-RhXmHR-e.d.cts.map +0 -1
  436. package/dist/types-kvBQjpPo.d.mts.map +0 -1
  437. package/dist/workspace-CgwmXEtc.mjs.map +0 -1
  438. package/dist/workspace-mFpI_ky_.cjs.map +0 -1
@@ -1,50 +1,3 @@
1
- let node_path = require("node:path");
2
- //#region src/workspace/publicEnv.ts
3
- /**
4
- * All public env-var prefixes the toolbox understands.
5
- *
6
- * Used when resolving incoming var names back to a dependency
7
- * (e.g. `VITE_AUTH_URL` → `auth`). A var matching any of these
8
- * is considered safe to inline into a client bundle.
9
- */
10
- const PUBLIC_ENV_PREFIXES = [
11
- "NEXT_PUBLIC_",
12
- "VITE_",
13
- "EXPO_PUBLIC_"
14
- ];
15
- /**
16
- * Resolve the public env-var prefix that a frontend framework's bundler
17
- * inlines into client code at build time:
18
- *
19
- * - `nextjs` → `NEXT_PUBLIC_`
20
- * - `vite` → `VITE_`
21
- * - `tanstack-start` → `VITE_` (uses Vite under the hood)
22
- * - `expo` → `EXPO_PUBLIC_`
23
- * - `remix` → `''` (Remix exposes via loaders, no prefix convention)
24
- *
25
- * For backend frameworks or unspecified, falls back to `NEXT_PUBLIC_` to
26
- * preserve the historical default. Backend apps never read these vars
27
- * from a bundle, so the prefix only affects scaffolding/symmetry.
28
- */
29
- function getPublicEnvPrefix(framework) {
30
- switch (framework) {
31
- case "vite":
32
- case "tanstack-start": return "VITE_";
33
- case "expo": return "EXPO_PUBLIC_";
34
- case "remix": return "";
35
- case "nextjs": return "NEXT_PUBLIC_";
36
- default: return "NEXT_PUBLIC_";
37
- }
38
- }
39
- /**
40
- * Strip a known public prefix from a var name.
41
- * Returns the un-prefixed name, or `null` if no prefix matched.
42
- */
43
- function stripPublicPrefix(name) {
44
- for (const prefix of PUBLIC_ENV_PREFIXES) if (prefix && name.startsWith(prefix)) return name.slice(prefix.length);
45
- return null;
46
- }
47
- //#endregion
48
1
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
49
2
  function getEnumValues(entries) {
50
3
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
@@ -89,6 +42,24 @@ function floatSafeRemainder(val, step) {
89
42
  if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
90
43
  return ratio - roundedRatio;
91
44
  }
45
+ const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
46
+ function defineLazy(object, key, getter) {
47
+ let value = void 0;
48
+ Object.defineProperty(object, key, {
49
+ get() {
50
+ if (value === EVALUATING) return;
51
+ if (value === void 0) {
52
+ value = EVALUATING;
53
+ value = getter();
54
+ }
55
+ return value;
56
+ },
57
+ set(v) {
58
+ Object.defineProperty(object, key, { value: v });
59
+ },
60
+ configurable: true
61
+ });
62
+ }
92
63
  function assignProp(target, prop, value) {
93
64
  Object.defineProperty(target, prop, {
94
65
  value,
@@ -1020,7 +991,7 @@ const uuid = (version) => {
1020
991
  return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
1021
992
  };
1022
993
  /** Practical email validation */
1023
- const email = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
994
+ const email$1 = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
1024
995
  const _emoji$1 = `^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;
1025
996
  function emoji() {
1026
997
  return new RegExp(_emoji$1, "u");
@@ -1559,7 +1530,7 @@ const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
1559
1530
  $ZodStringFormat.init(inst, def);
1560
1531
  });
1561
1532
  const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
1562
- def.pattern ?? (def.pattern = email);
1533
+ def.pattern ?? (def.pattern = email$1);
1563
1534
  $ZodStringFormat.init(inst, def);
1564
1535
  });
1565
1536
  function canParseURL(input) {
@@ -2441,6 +2412,114 @@ function handleIntersectionResults(result, left, right) {
2441
2412
  result.value = merged.data;
2442
2413
  return result;
2443
2414
  }
2415
+ const $ZodTuple = /*@__PURE__*/ $constructor("$ZodTuple", (inst, def) => {
2416
+ $ZodType.init(inst, def);
2417
+ const items = def.items;
2418
+ const memo = globalConfig.memoizer;
2419
+ memo?.attach(inst);
2420
+ inst._zod.parse = (payload, ctx) => {
2421
+ const input = payload.value;
2422
+ if (!Array.isArray(input)) {
2423
+ payload.issues.push({
2424
+ input,
2425
+ inst,
2426
+ expected: "tuple",
2427
+ code: "invalid_type"
2428
+ });
2429
+ return payload;
2430
+ }
2431
+ payload.value = memo ? memo.alloc(inst, payload, [], ctx) : [];
2432
+ const proms = [];
2433
+ const optinStart = getTupleOptStart(items, "optin");
2434
+ const optoutStart = getTupleOptStart(items, "optout");
2435
+ if (!def.rest) {
2436
+ if (input.length < optinStart) {
2437
+ payload.issues.push({
2438
+ code: "too_small",
2439
+ minimum: optinStart,
2440
+ inclusive: true,
2441
+ input,
2442
+ inst,
2443
+ origin: "array"
2444
+ });
2445
+ return payload;
2446
+ }
2447
+ if (input.length > items.length) payload.issues.push({
2448
+ code: "too_big",
2449
+ maximum: items.length,
2450
+ inclusive: true,
2451
+ input,
2452
+ inst,
2453
+ origin: "array"
2454
+ });
2455
+ }
2456
+ const itemResults = new Array(items.length);
2457
+ const abortEarly = def.rest ? ctx?.abortEarly : void 0;
2458
+ let itemAborted = false;
2459
+ for (let i = 0; i < items.length; i++) {
2460
+ const r = items[i]._zod.run({
2461
+ value: input[i],
2462
+ issues: []
2463
+ }, ctx);
2464
+ if (r instanceof Promise) proms.push(r.then((rr) => {
2465
+ itemResults[i] = rr;
2466
+ }));
2467
+ else {
2468
+ itemResults[i] = r;
2469
+ if (abortEarly && !itemAborted && r.issues.length) itemAborted = aborted(r);
2470
+ }
2471
+ }
2472
+ if (def.rest && !itemAborted) {
2473
+ let i = items.length - 1;
2474
+ const rest = input.slice(items.length);
2475
+ let seen = payload.issues.length;
2476
+ for (const el of rest) {
2477
+ if (abortEarly && payload.issues.length !== seen) {
2478
+ if (aborted(payload, seen)) break;
2479
+ seen = payload.issues.length;
2480
+ }
2481
+ i++;
2482
+ const result = def.rest._zod.run({
2483
+ value: el,
2484
+ issues: []
2485
+ }, ctx);
2486
+ if (result instanceof Promise) proms.push(result.then((r) => handleTupleResult(r, payload, i)));
2487
+ else handleTupleResult(result, payload, i);
2488
+ }
2489
+ }
2490
+ if (proms.length) return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
2491
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
2492
+ };
2493
+ });
2494
+ function getTupleOptStart(items, key) {
2495
+ for (let i = items.length - 1; i >= 0; i--) if (!(key === "optin" ? items[i]._zod.optin !== void 0 : items[i]._zod.optout === "optional")) return i + 1;
2496
+ return 0;
2497
+ }
2498
+ function handleTupleResult(result, final, index) {
2499
+ if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
2500
+ final.value[index] = result.value;
2501
+ }
2502
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
2503
+ for (let i = 0; i < items.length; i++) {
2504
+ const r = itemResults[i];
2505
+ const isPresent = i < input.length;
2506
+ if (!isPresent && i >= optoutStart && items[i]._zod.optin === "optional") {
2507
+ final.value.length = i;
2508
+ break;
2509
+ }
2510
+ if (r.issues.length) {
2511
+ if (!isPresent && i >= optoutStart) {
2512
+ final.value.length = i;
2513
+ break;
2514
+ }
2515
+ final.issues.push(...prefixIssues(i, r.issues));
2516
+ }
2517
+ final.value[i] = r.value;
2518
+ }
2519
+ for (let i = final.value.length - 1; i >= input.length; i--) if (items[i]._zod.optout === "optional" && final.value[i] === void 0) final.value.length = i;
2520
+ else break;
2521
+ return final;
2522
+ }
2444
2523
  const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
2445
2524
  $ZodType.init(inst, def);
2446
2525
  const memo = globalConfig.memoizer;
@@ -2809,6 +2888,21 @@ function handleReadonlyResult(payload) {
2809
2888
  if (!payload.memo) payload.value = Object.freeze(payload.value);
2810
2889
  return payload;
2811
2890
  }
2891
+ const $ZodLazy = /*@__PURE__*/ $constructor("$ZodLazy", (inst, def) => {
2892
+ $ZodType.init(inst, def);
2893
+ defineLazy(inst._zod, "innerType", () => {
2894
+ const d = def;
2895
+ if (!d._cachedInner) d._cachedInner = def.getter();
2896
+ return d._cachedInner;
2897
+ });
2898
+ defineLazyInternal(inst, "pattern", (zod) => zod.innerType?._zod?.pattern);
2899
+ defineLazyInternal(inst, "propValues", (zod) => zod.innerType?._zod?.propValues);
2900
+ defineLazyInternal(inst, "optin", (zod) => zod.innerType?._zod?.optin ?? void 0);
2901
+ defineLazyInternal(inst, "optout", (zod) => zod.innerType?._zod?.optout ?? void 0);
2902
+ inst._zod.parse = (payload, ctx) => {
2903
+ return inst._zod.innerType._zod.run(payload, ctx);
2904
+ };
2905
+ });
2812
2906
  const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
2813
2907
  $ZodCheck.init(inst, def);
2814
2908
  $ZodType.init(inst, def);
@@ -4342,9 +4436,33 @@ const numberProcessor = (schema, ctx, _json, params) => {
4342
4436
  const booleanProcessor = (_schema, _ctx, json, _params) => {
4343
4437
  json.type = "boolean";
4344
4438
  };
4439
+ const bigintProcessor = (schema, ctx, json, params) => {
4440
+ handleUnrepresentable(schema, ctx, json, params, "BigInt cannot be represented in JSON Schema");
4441
+ };
4442
+ const symbolProcessor = (schema, ctx, json, params) => {
4443
+ handleUnrepresentable(schema, ctx, json, params, "Symbols cannot be represented in JSON Schema");
4444
+ };
4445
+ const nullProcessor = (_schema, ctx, json, _params) => {
4446
+ if (ctx.target === "openapi-3.0") {
4447
+ json.type = "string";
4448
+ json.nullable = true;
4449
+ json.enum = [null];
4450
+ } else json.type = "null";
4451
+ };
4452
+ const undefinedProcessor = (schema, ctx, json, params) => {
4453
+ handleUnrepresentable(schema, ctx, json, params, "Undefined cannot be represented in JSON Schema");
4454
+ };
4455
+ const voidProcessor = (schema, ctx, json, params) => {
4456
+ handleUnrepresentable(schema, ctx, json, params, "Void cannot be represented in JSON Schema");
4457
+ };
4345
4458
  const neverProcessor = (_schema, _ctx, json, _params) => {
4346
4459
  json.not = {};
4347
4460
  };
4461
+ const anyProcessor = (_schema, _ctx, _json, _params) => {};
4462
+ const unknownProcessor = (_schema, _ctx, _json, _params) => {};
4463
+ const dateProcessor = (schema, ctx, json, params) => {
4464
+ handleUnrepresentable(schema, ctx, json, params, "Date cannot be represented in JSON Schema");
4465
+ };
4348
4466
  const enumProcessor = (schema, _ctx, json, _params) => {
4349
4467
  const def = schema._zod.def;
4350
4468
  const values = getEnumValues(def.entries);
@@ -4382,12 +4500,47 @@ const literalProcessor = (schema, ctx, json, params) => {
4382
4500
  json.enum = vals;
4383
4501
  }
4384
4502
  };
4503
+ const nanProcessor = (schema, ctx, json, params) => {
4504
+ handleUnrepresentable(schema, ctx, json, params, "NaN cannot be represented in JSON Schema");
4505
+ };
4506
+ const templateLiteralProcessor = (schema, _ctx, json, _params) => {
4507
+ const _json = json;
4508
+ const pattern = schema._zod.pattern;
4509
+ if (!pattern) throw new Error("Pattern not found in template literal");
4510
+ _json.type = "string";
4511
+ _json.pattern = pattern.source;
4512
+ };
4513
+ const fileProcessor = (schema, _ctx, json, _params) => {
4514
+ const _json = json;
4515
+ _json.type = "string";
4516
+ _json.format = "binary";
4517
+ _json.contentEncoding = "binary";
4518
+ const { minimum, maximum, mime } = aggregateChecks(schema);
4519
+ if (minimum !== void 0) _json.minLength = minimum;
4520
+ if (maximum !== void 0) _json.maxLength = maximum;
4521
+ if (!mime) return;
4522
+ if (mime.length === 0) _json.not = {};
4523
+ else if (mime.length === 1) _json.contentMediaType = mime[0];
4524
+ else _json.anyOf = mime.map((m) => ({ contentMediaType: m }));
4525
+ };
4526
+ const successProcessor = (_schema, _ctx, json, _params) => {
4527
+ json.type = "boolean";
4528
+ };
4385
4529
  const customProcessor = (schema, ctx, json, params) => {
4386
4530
  handleUnrepresentable(schema, ctx, json, params, "Custom types cannot be represented in JSON Schema");
4387
4531
  };
4532
+ const functionProcessor = (schema, ctx, json, params) => {
4533
+ handleUnrepresentable(schema, ctx, json, params, "Function types cannot be represented in JSON Schema");
4534
+ };
4388
4535
  const transformProcessor = (schema, ctx, json, params) => {
4389
4536
  handleUnrepresentable(schema, ctx, json, params, "Transforms cannot be represented in JSON Schema");
4390
4537
  };
4538
+ const mapProcessor = (schema, ctx, json, params) => {
4539
+ handleUnrepresentable(schema, ctx, json, params, "Map cannot be represented in JSON Schema");
4540
+ };
4541
+ const setProcessor = (schema, ctx, json, params) => {
4542
+ handleUnrepresentable(schema, ctx, json, params, "Set cannot be represented in JSON Schema");
4543
+ };
4391
4544
  const arrayProcessor = (schema, ctx, _json, params) => {
4392
4545
  const json = _json;
4393
4546
  const def = schema._zod.def;
@@ -4472,6 +4625,58 @@ const intersectionProcessor = (schema, ctx, json, params) => {
4472
4625
  json.allOf = allOf;
4473
4626
  ctx.intersections.push(allOf);
4474
4627
  };
4628
+ const tupleProcessor = (schema, ctx, _json, params) => {
4629
+ const json = _json;
4630
+ const def = schema._zod.def;
4631
+ json.type = "array";
4632
+ const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
4633
+ const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
4634
+ const prefixItems = def.items.map((x, i) => processSchema(x, ctx, {
4635
+ ...params,
4636
+ path: [
4637
+ ...params.path,
4638
+ prefixPath,
4639
+ i
4640
+ ]
4641
+ }));
4642
+ const rest = def.rest ? processSchema(def.rest, ctx, {
4643
+ ...params,
4644
+ path: [
4645
+ ...params.path,
4646
+ restPath,
4647
+ ...ctx.target === "openapi-3.0" ? [def.items.length] : []
4648
+ ]
4649
+ }) : null;
4650
+ let minItems = def.items.length;
4651
+ while (minItems > 0) {
4652
+ const item = def.items[minItems - 1];
4653
+ if (!(ctx.io === "input" ? inputOptin(item) !== void 0 : item._zod.optout === "optional")) break;
4654
+ minItems--;
4655
+ }
4656
+ const maxItems = def.items.length;
4657
+ const isClosed = !def.rest;
4658
+ if (ctx.target === "draft-2020-12") {
4659
+ json.prefixItems = prefixItems;
4660
+ if (isClosed) json.items = false;
4661
+ else if (rest) json.items = rest;
4662
+ if (minItems > 0) json.minItems = minItems;
4663
+ if (isClosed) json.maxItems = maxItems;
4664
+ } else if (ctx.target === "openapi-3.0") {
4665
+ json.items = { anyOf: prefixItems };
4666
+ if (rest) json.items.anyOf.push(rest);
4667
+ if (minItems > 0) json.minItems = minItems;
4668
+ if (isClosed) json.maxItems = maxItems;
4669
+ } else {
4670
+ json.items = prefixItems;
4671
+ if (isClosed) json.additionalItems = false;
4672
+ else if (rest) json.additionalItems = rest;
4673
+ if (minItems > 0) json.minItems = minItems;
4674
+ if (isClosed) json.maxItems = maxItems;
4675
+ }
4676
+ const { minimum, maximum } = aggregateChecks(schema);
4677
+ if (typeof minimum === "number") json.minItems = minimum;
4678
+ if (typeof maximum === "number") json.maxItems = maximum;
4679
+ };
4475
4680
  /** JSON object keys are always strings, so a numeric record key schema is re-expressed over the
4476
4681
  * numeric-string form the record parser matches. Deferred to `finalize`, after the flatten: a key
4477
4682
  * behind a wrapper only carries its own `type` before then, and a union key only has its branches.
@@ -4649,12 +4854,99 @@ const readonlyProcessor = (schema, ctx, json, params) => {
4649
4854
  seen.ref = def.innerType;
4650
4855
  json.readOnly = true;
4651
4856
  };
4857
+ const promiseProcessor = (schema, ctx, _json, params) => {
4858
+ const def = schema._zod.def;
4859
+ processSchema(def.innerType, ctx, params);
4860
+ const seen = ctx.seen.get(schema);
4861
+ seen.ref = def.innerType;
4862
+ };
4652
4863
  const optionalProcessor = (schema, ctx, _json, params) => {
4653
4864
  const def = schema._zod.def;
4654
4865
  processSchema(def.innerType, ctx, params);
4655
4866
  const seen = ctx.seen.get(schema);
4656
4867
  seen.ref = def.innerType;
4657
4868
  };
4869
+ const lazyProcessor = (schema, ctx, _json, params) => {
4870
+ const innerType = schema._zod.innerType;
4871
+ processSchema(innerType, ctx, params);
4872
+ const seen = ctx.seen.get(schema);
4873
+ seen.ref = innerType;
4874
+ };
4875
+ const allProcessors = {
4876
+ string: stringProcessor,
4877
+ number: numberProcessor,
4878
+ boolean: booleanProcessor,
4879
+ bigint: bigintProcessor,
4880
+ symbol: symbolProcessor,
4881
+ null: nullProcessor,
4882
+ undefined: undefinedProcessor,
4883
+ void: voidProcessor,
4884
+ never: neverProcessor,
4885
+ any: anyProcessor,
4886
+ unknown: unknownProcessor,
4887
+ date: dateProcessor,
4888
+ enum: enumProcessor,
4889
+ literal: literalProcessor,
4890
+ nan: nanProcessor,
4891
+ template_literal: templateLiteralProcessor,
4892
+ file: fileProcessor,
4893
+ success: successProcessor,
4894
+ custom: customProcessor,
4895
+ function: functionProcessor,
4896
+ transform: transformProcessor,
4897
+ map: mapProcessor,
4898
+ set: setProcessor,
4899
+ array: arrayProcessor,
4900
+ object: objectProcessor,
4901
+ union: unionProcessor,
4902
+ intersection: intersectionProcessor,
4903
+ tuple: tupleProcessor,
4904
+ record: recordProcessor,
4905
+ nullable: nullableProcessor,
4906
+ nonoptional: nonoptionalProcessor,
4907
+ default: defaultProcessor,
4908
+ prefault: prefaultProcessor,
4909
+ catch: catchProcessor,
4910
+ pipe: pipeProcessor,
4911
+ readonly: readonlyProcessor,
4912
+ promise: promiseProcessor,
4913
+ optional: optionalProcessor,
4914
+ lazy: lazyProcessor
4915
+ };
4916
+ function toJSONSchema(input, params) {
4917
+ if ("_idmap" in input) {
4918
+ const registry = input;
4919
+ const ctx = initializeContext({
4920
+ ...params,
4921
+ processors: allProcessors
4922
+ });
4923
+ const defs = {};
4924
+ for (const entry of registry._idmap.entries()) {
4925
+ const [_, schema] = entry;
4926
+ processSchema(schema, ctx);
4927
+ }
4928
+ const schemas = {};
4929
+ ctx.external = {
4930
+ registry,
4931
+ uri: params?.uri,
4932
+ defs
4933
+ };
4934
+ for (const entry of registry._idmap.entries()) {
4935
+ const [key, schema] = entry;
4936
+ extractDefs(ctx, schema);
4937
+ assignProp(schemas, key, finalize(ctx, schema));
4938
+ }
4939
+ if (Object.keys(defs).length > 0) schemas.__shared = { [ctx.target === "draft-2020-12" ? "$defs" : "definitions"]: defs };
4940
+ return { schemas };
4941
+ }
4942
+ const ctx = initializeContext({
4943
+ ...params,
4944
+ processors: allProcessors
4945
+ });
4946
+ processSchema(input, ctx);
4947
+ extractDefs(ctx, input);
4948
+ return finalize(ctx, input);
4949
+ }
4658
4950
  //#endregion
4659
4951
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
4660
4952
  const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
@@ -5062,6 +5354,9 @@ const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
5062
5354
  $ZodEmail.init(inst, def);
5063
5355
  ZodStringFormat.init(inst, def);
5064
5356
  });
5357
+ function email(params) {
5358
+ return /* @__PURE__ */ _email(ZodEmail, params);
5359
+ }
5065
5360
  const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
5066
5361
  $ZodGUID.init(inst, def);
5067
5362
  ZodStringFormat.init(inst, def);
@@ -5326,6 +5621,14 @@ function object(shape, params) {
5326
5621
  };
5327
5622
  return new ZodObject(def);
5328
5623
  }
5624
+ function looseObject(shape, params) {
5625
+ return new ZodObject({
5626
+ type: "object",
5627
+ shape,
5628
+ catchall: unknown(),
5629
+ ...normalizeParams(params)
5630
+ });
5631
+ }
5329
5632
  const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
5330
5633
  $ZodUnion.init(inst, def);
5331
5634
  ZodType.init(inst, def);
@@ -5363,6 +5666,39 @@ function intersection(left, right) {
5363
5666
  right
5364
5667
  });
5365
5668
  }
5669
+ const ZodTuple = /*@__PURE__*/ $constructor("ZodTuple", (inst, def) => {
5670
+ _ensureDefaultMemoizer();
5671
+ $ZodTuple.init(inst, def);
5672
+ ZodType.init(inst, def);
5673
+ inst._zod.processJSONSchema = (ctx, json, params) => tupleProcessor(inst, ctx, json, params);
5674
+ }, {
5675
+ rest(rest) {
5676
+ return this.clone({
5677
+ ...this._zod.def,
5678
+ rest
5679
+ });
5680
+ },
5681
+ partial() {
5682
+ const def = this._zod.def;
5683
+ if (def.checks?.length) throw new Error(".partial() cannot be used on tuple schemas containing refinements");
5684
+ return this.clone({
5685
+ ...def,
5686
+ items: def.items.map((item) => new ZodOptional({
5687
+ type: "optional",
5688
+ innerType: item
5689
+ }))
5690
+ });
5691
+ }
5692
+ });
5693
+ function tuple(items, _paramsOrRest, _params) {
5694
+ const hasRest = _paramsOrRest instanceof $ZodType;
5695
+ return new ZodTuple({
5696
+ type: "tuple",
5697
+ items,
5698
+ rest: hasRest ? _paramsOrRest : null,
5699
+ ...normalizeParams(hasRest ? _params : _paramsOrRest)
5700
+ });
5701
+ }
5366
5702
  const ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
5367
5703
  _ensureDefaultMemoizer();
5368
5704
  $ZodRecord.init(inst, def);
@@ -5593,6 +5929,18 @@ function readonly(innerType) {
5593
5929
  innerType
5594
5930
  });
5595
5931
  }
5932
+ const ZodLazy = /*@__PURE__*/ $constructor("ZodLazy", (inst, def) => {
5933
+ $ZodLazy.init(inst, def);
5934
+ ZodType.init(inst, def);
5935
+ inst._zod.processJSONSchema = (ctx, json, params) => lazyProcessor(inst, ctx, json, params);
5936
+ inst.unwrap = () => inst._zod.def.getter();
5937
+ });
5938
+ function lazy(getter) {
5939
+ return new ZodLazy({
5940
+ type: "lazy",
5941
+ getter
5942
+ });
5943
+ }
5596
5944
  const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
5597
5945
  $ZodCustom.init(inst, def);
5598
5946
  ZodType.init(inst, def);
@@ -5608,1117 +5956,6 @@ function superRefine(fn, params) {
5608
5956
  return /* @__PURE__ */ _superRefine(fn, params);
5609
5957
  }
5610
5958
  //#endregion
5611
- //#region src/workspace/stages.ts
5612
- /**
5613
- * What `gkm test` runs as. The CLI's own, so no project stage may take it:
5614
- * its containers are torn down and rebuilt between runs.
5615
- */
5616
- const TEST_STAGE = "test";
5617
- /** A stage becomes part of every physical name, so it has to fit in one. */
5618
- const STAGE_NAME = /^[a-z][a-z0-9-]*$/;
5619
- /** Everything wrong with one stage name, or nothing. */
5620
- function nameProblems(name) {
5621
- const problems = [];
5622
- if (!STAGE_NAME.test(name)) problems.push(`stage "${name}" must be lowercase letters, digits and hyphens, starting with a letter`);
5623
- if (name === "test") problems.push(`stage "${TEST_STAGE}" is reserved for gkm test`);
5624
- return problems;
5625
- }
5626
- /** Everything wrong with a list of deployed stages on its own. */
5627
- function deployedProblems(deployed) {
5628
- const problems = deployed.flatMap(nameProblems);
5629
- const seen = /* @__PURE__ */ new Set();
5630
- for (const name of deployed) {
5631
- if (seen.has(name)) problems.push(`stage "${name}" is listed twice`);
5632
- seen.add(name);
5633
- }
5634
- return problems;
5635
- }
5636
- /** Everything wrong with a stages block, or nothing. */
5637
- function stageProblems(stages) {
5638
- if (!stages) return ["`stages` is required, e.g. stages: { local: 'dev', deployed: ['prod'] }"];
5639
- const { local, deployed, protected: kept = [] } = stages;
5640
- const problems = [...nameProblems(local), ...deployedProblems(deployed)];
5641
- if (deployed.includes(local)) problems.push(`"${local}" is both the local stage and a deployed one; they would share secrets`);
5642
- for (const name of kept) if (!deployed.includes(name)) problems.push(`protected stage "${name}" is not a deployed stage`);
5643
- return problems;
5644
- }
5645
- /** The stages block, or an error naming everything wrong with it. */
5646
- function validateStages(stages) {
5647
- const problems = stageProblems(stages);
5648
- if (problems.length) throw new InvalidStages(problems);
5649
- return stages;
5650
- }
5651
- /** Refuses a stage the project does not deploy to. */
5652
- function assertDeployedStage(stages, stage) {
5653
- if (!stages.deployed.includes(stage)) throw new UndeclaredStage(stage, stages.deployed);
5654
- }
5655
- /** A stages block — in gkm.config.ts or from `gkm init`'s flags — that breaks a rule. */
5656
- var InvalidStages = class extends Error {
5657
- problems;
5658
- constructor(problems) {
5659
- super(`Invalid stages:\n ${problems.join("\n ")}`);
5660
- this.problems = problems;
5661
- this.name = "InvalidStages";
5662
- }
5663
- };
5664
- /**
5665
- * A stage the project does not deploy to. Refused before anything is
5666
- * provisioned, so a typo does not become a second environment.
5667
- */
5668
- var UndeclaredStage = class extends Error {
5669
- stage;
5670
- deployed;
5671
- constructor(stage, deployed) {
5672
- super(`"${stage}" is not a deployed stage. gkm.config.ts deploys to: ${deployed.join(", ") || "nothing yet"}.`);
5673
- this.stage = stage;
5674
- this.deployed = deployed;
5675
- this.name = "UndeclaredStage";
5676
- }
5677
- };
5678
- //#endregion
5679
- //#region src/workspace/schema.ts
5680
- /**
5681
- * Routes can be a string glob, array of globs, or a partitioned config
5682
- * with glob paths and a partition function.
5683
- */
5684
- const RoutesSchema = union([
5685
- string(),
5686
- array(string()),
5687
- object({
5688
- paths: union([string(), array(string())]),
5689
- partition: custom((val) => typeof val === "function")
5690
- })
5691
- ]);
5692
- /**
5693
- * Telescope configuration schema.
5694
- */
5695
- const TelescopeConfigSchema = object({
5696
- enabled: boolean().optional(),
5697
- port: number().optional(),
5698
- path: string().optional(),
5699
- ignore: array(string()).optional(),
5700
- recordBody: boolean().optional(),
5701
- maxEntries: number().optional(),
5702
- websocket: boolean().optional()
5703
- });
5704
- /**
5705
- * Studio configuration schema.
5706
- */
5707
- const StudioConfigSchema = object({
5708
- enabled: boolean().optional(),
5709
- path: string().optional(),
5710
- schema: string().optional()
5711
- });
5712
- /**
5713
- * OpenAPI configuration schema.
5714
- */
5715
- const OpenApiConfigSchema = object({
5716
- enabled: boolean().optional(),
5717
- title: string().optional(),
5718
- version: string().optional(),
5719
- description: string().optional()
5720
- });
5721
- /**
5722
- * Hooks configuration schema.
5723
- */
5724
- const HooksConfigSchema = object({ server: string().optional() });
5725
- /**
5726
- * Combined framework schema (backend, frontend, or mobile).
5727
- */
5728
- const FrameworkSchema = union([
5729
- _enum([
5730
- "hono",
5731
- "better-auth",
5732
- "express",
5733
- "fastify"
5734
- ]),
5735
- _enum([
5736
- "nextjs",
5737
- "remix",
5738
- "vite",
5739
- "tanstack-start"
5740
- ]),
5741
- _enum(["expo"])
5742
- ]);
5743
- /** Frontend framework values, kept in sync with FrontendFrameworkSchema. */
5744
- const FRONTEND_FRAMEWORKS = [
5745
- "nextjs",
5746
- "remix",
5747
- "vite",
5748
- "tanstack-start"
5749
- ];
5750
- /** Mobile framework values, kept in sync with MobileFrameworkSchema. */
5751
- const MOBILE_FRAMEWORKS = ["expo"];
5752
- /**
5753
- * Deploy target schema.
5754
- * Currently only 'dokploy' is supported.
5755
- * 'vercel' and 'cloudflare' are planned for Phase 2.
5756
- */
5757
- const DeployTargetSchema = _enum([
5758
- "dokploy",
5759
- "vercel",
5760
- "cloudflare"
5761
- ]);
5762
- /**
5763
- * Supported deploy targets (Phase 1).
5764
- */
5765
- const SUPPORTED_DEPLOY_TARGETS = ["dokploy"];
5766
- /**
5767
- * Phase 2 deploy targets (not yet implemented).
5768
- */
5769
- const PHASE_2_DEPLOY_TARGETS = ["vercel", "cloudflare"];
5770
- /**
5771
- * Check if a deploy target is supported.
5772
- */
5773
- function isDeployTargetSupported(target) {
5774
- return SUPPORTED_DEPLOY_TARGETS.includes(target);
5775
- }
5776
- /**
5777
- * Check if a deploy target is planned for Phase 2.
5778
- */
5779
- function isPhase2DeployTarget(target) {
5780
- return PHASE_2_DEPLOY_TARGETS.includes(target);
5781
- }
5782
- /**
5783
- * Get error message for unsupported deploy targets.
5784
- */
5785
- function getDeployTargetError(target, appName) {
5786
- if (isPhase2DeployTarget(target)) return `Deploy target "${target}"${appName ? ` for app "${appName}"` : ""} is coming in Phase 2. Currently only "dokploy" is supported.`;
5787
- return `Unknown deploy target: ${target}. Supported: dokploy. Coming in Phase 2: vercel, cloudflare.`;
5788
- }
5789
- /**
5790
- * Dokploy workspace configuration schema.
5791
- * Supports either a single endpoint or per-stage endpoints.
5792
- */
5793
- const DokployWorkspaceConfigSchema = object({
5794
- /** Single endpoint for all stages */
5795
- endpoint: url("Dokploy endpoint must be a valid URL").optional(),
5796
- /** Per-stage endpoints (stage name -> endpoint URL) */
5797
- endpoints: record(string(), url("Endpoint must be a valid URL")).optional(),
5798
- registry: string().optional(),
5799
- registryId: string().optional(),
5800
- /** Per-stage domain configuration (stage name -> base domain) */
5801
- domains: record(string(), string()).optional()
5802
- }).refine((data) => data.endpoint || data.endpoints, { message: "Either endpoint or endpoints must be provided" });
5803
- /**
5804
- * Valid AWS regions.
5805
- */
5806
- const AwsRegionSchema = _enum([
5807
- "us-east-1",
5808
- "us-east-2",
5809
- "us-west-1",
5810
- "us-west-2",
5811
- "af-south-1",
5812
- "ap-east-1",
5813
- "ap-south-1",
5814
- "ap-south-2",
5815
- "ap-southeast-1",
5816
- "ap-southeast-2",
5817
- "ap-southeast-3",
5818
- "ap-southeast-4",
5819
- "ap-northeast-1",
5820
- "ap-northeast-2",
5821
- "ap-northeast-3",
5822
- "ca-central-1",
5823
- "eu-central-1",
5824
- "eu-central-2",
5825
- "eu-west-1",
5826
- "eu-west-2",
5827
- "eu-west-3",
5828
- "eu-south-1",
5829
- "eu-south-2",
5830
- "eu-north-1",
5831
- "me-south-1",
5832
- "me-central-1",
5833
- "sa-east-1"
5834
- ]);
5835
- /**
5836
- * DNS record types supported across providers.
5837
- */
5838
- const DnsRecordTypeSchema = _enum([
5839
- "A",
5840
- "AAAA",
5841
- "CNAME",
5842
- "MX",
5843
- "TXT",
5844
- "NS",
5845
- "SRV",
5846
- "CAA"
5847
- ]);
5848
- object({
5849
- /** Subdomain name (e.g., 'api' for api.example.com, '@' for root) */
5850
- name: string(),
5851
- /** Record type */
5852
- type: DnsRecordTypeSchema,
5853
- /** TTL in seconds */
5854
- ttl: number().int().positive(),
5855
- /** Record values */
5856
- values: array(string())
5857
- });
5858
- object({
5859
- /** The record that was upserted */
5860
- record: object({
5861
- /** Subdomain name (e.g., 'api' for api.example.com, '@' for root) */
5862
- name: string(),
5863
- /** Record type */
5864
- type: DnsRecordTypeSchema,
5865
- /** TTL in seconds */
5866
- ttl: number().int().positive(),
5867
- /** Record value (IP address, hostname, etc.) */
5868
- value: string()
5869
- }),
5870
- /** Whether the record was created (true) or updated (false) */
5871
- created: boolean(),
5872
- /** Whether the record already existed with the same value */
5873
- unchanged: boolean()
5874
- });
5875
- /**
5876
- * Hostinger DNS provider config (without domain - domain is the record key).
5877
- */
5878
- const HostingerDnsProviderSchema = object({
5879
- provider: literal("hostinger"),
5880
- /** TTL in seconds (default: 300) */
5881
- ttl: number().int().positive().optional()
5882
- });
5883
- /**
5884
- * Route53 DNS provider config (without domain - domain is the record key).
5885
- */
5886
- const Route53DnsProviderSchema = object({
5887
- provider: literal("route53"),
5888
- /** AWS region (optional - uses AWS_REGION env var if not provided) */
5889
- region: AwsRegionSchema.optional(),
5890
- /** AWS profile name (optional - uses default credential chain if not provided) */
5891
- profile: string().optional(),
5892
- /** Hosted zone ID (optional - auto-detected from domain if not provided) */
5893
- hostedZoneId: string().optional(),
5894
- /** TTL in seconds (default: 300) */
5895
- ttl: number().int().positive().optional()
5896
- });
5897
- /**
5898
- * Cloudflare DNS provider config (placeholder for future).
5899
- */
5900
- const CloudflareDnsProviderSchema = object({
5901
- provider: literal("cloudflare"),
5902
- /** TTL in seconds (default: 300) */
5903
- ttl: number().int().positive().optional()
5904
- });
5905
- /**
5906
- * Manual DNS configuration (user handles DNS themselves).
5907
- */
5908
- const ManualDnsProviderSchema = object({ provider: literal("manual") });
5909
- /**
5910
- * Custom DNS provider config (user-provided implementation).
5911
- */
5912
- const CustomDnsProviderSchema = object({
5913
- /** Custom DnsProvider implementation */
5914
- provider: custom((val) => typeof val === "object" && val !== null && typeof val.name === "string" && typeof val.getRecords === "function" && typeof val.upsertRecords === "function", { message: "Custom DNS provider must implement name, getRecords(), and upsertRecords() methods" }),
5915
- /** TTL in seconds (default: 300) */
5916
- ttl: number().int().positive().optional()
5917
- });
5918
- /**
5919
- * Single DNS provider config (for one domain).
5920
- */
5921
- const DnsProviderSchema = union([discriminatedUnion("provider", [
5922
- HostingerDnsProviderSchema,
5923
- Route53DnsProviderSchema,
5924
- CloudflareDnsProviderSchema,
5925
- ManualDnsProviderSchema
5926
- ]), CustomDnsProviderSchema]);
5927
- /**
5928
- * DNS configuration schema.
5929
- *
5930
- * Maps root domains to their DNS provider configuration.
5931
- * Example:
5932
- * ```
5933
- * dns: {
5934
- * 'geekmidas.dev': { provider: 'hostinger' },
5935
- * 'geekmidas.com': { provider: 'route53' },
5936
- * }
5937
- * ```
5938
- *
5939
- * Supported providers:
5940
- * - 'hostinger': Use Hostinger DNS API
5941
- * - 'route53': Use AWS Route53
5942
- * - 'cloudflare': Use Cloudflare DNS API (future)
5943
- * - 'manual': Don't create records, just print required records
5944
- * - Custom: Provide a DnsProvider implementation
5945
- */
5946
- const DnsConfigSchema = record(string(), DnsProviderSchema);
5947
- const HostingerDnsConfigSchema = HostingerDnsProviderSchema.extend({ domain: string().min(1, "Domain is required") });
5948
- const Route53DnsConfigSchema = Route53DnsProviderSchema.extend({ domain: string().min(1, "Domain is required") });
5949
- const CloudflareDnsConfigSchema = CloudflareDnsProviderSchema.extend({ domain: string().min(1, "Domain is required") });
5950
- const ManualDnsConfigSchema = ManualDnsProviderSchema.extend({ domain: string().min(1, "Domain is required") });
5951
- const CustomDnsConfigSchema = CustomDnsProviderSchema.extend({ domain: string().min(1, "Domain is required") });
5952
- /**
5953
- * Combined DNS config that supports both new multi-domain and legacy single-domain formats.
5954
- */
5955
- const DnsConfigWithLegacySchema = union([DnsConfigSchema, union([discriminatedUnion("provider", [
5956
- HostingerDnsConfigSchema,
5957
- Route53DnsConfigSchema,
5958
- CloudflareDnsConfigSchema,
5959
- ManualDnsConfigSchema
5960
- ]), CustomDnsConfigSchema])]);
5961
- /**
5962
- * Backups configuration schema.
5963
- *
5964
- * Configures automatic backup destinations for database services.
5965
- * On first deploy, creates S3 bucket with unique name and IAM credentials.
5966
- */
5967
- const BackupsConfigSchema = object({
5968
- /** Backup storage type (currently only 's3' supported) */
5969
- type: literal("s3"),
5970
- /** AWS profile name for creating bucket/IAM resources */
5971
- profile: string().optional(),
5972
- /** AWS region for the backup bucket */
5973
- region: AwsRegionSchema,
5974
- /** Cron schedule for backups (default: '0 2 * * *' = 2 AM daily) */
5975
- schedule: string().optional(),
5976
- /** Number of backups to retain (default: 30) */
5977
- retention: number().optional()
5978
- });
5979
- /**
5980
- * Deploy configuration schema.
5981
- */
5982
- const DeployConfigSchema = object({
5983
- default: DeployTargetSchema.optional(),
5984
- dokploy: DokployWorkspaceConfigSchema.optional(),
5985
- dns: DnsConfigWithLegacySchema.optional(),
5986
- backups: BackupsConfigSchema.optional()
5987
- });
5988
- /**
5989
- * Models configuration schema.
5990
- */
5991
- const ModelsConfigSchema = object({
5992
- path: string().optional(),
5993
- schema: _enum(["zod"]).optional()
5994
- });
5995
- /**
5996
- * Shared configuration schema.
5997
- */
5998
- const SharedConfigSchema = object({
5999
- packages: array(string()).optional(),
6000
- models: ModelsConfigSchema.optional()
6001
- });
6002
- /**
6003
- * Secrets configuration schema.
6004
- */
6005
- const StagesConfigSchema = object({
6006
- local: string(),
6007
- deployed: array(string()),
6008
- protected: array(string()).optional()
6009
- }).superRefine((stages, ctx) => {
6010
- for (const message of stageProblems(stages)) ctx.addIssue({
6011
- code: "custom",
6012
- message
6013
- });
6014
- });
6015
- const SecretsConfigSchema = object({
6016
- enabled: boolean().optional(),
6017
- algorithm: string().optional(),
6018
- kdf: _enum(["scrypt", "pbkdf2"]).optional()
6019
- });
6020
- /**
6021
- * Local state provider config.
6022
- */
6023
- const LocalStateConfigSchema = object({ provider: literal("local") });
6024
- /**
6025
- * SSM state provider config (requires region).
6026
- */
6027
- const SSMStateConfigSchema = object({
6028
- provider: literal("ssm"),
6029
- /** AWS region (required for SSM provider) */
6030
- region: AwsRegionSchema,
6031
- /** AWS profile name (optional - uses default credential chain if not provided) */
6032
- profile: string().optional()
6033
- });
6034
- /**
6035
- * Custom state provider config (user-provided implementation).
6036
- */
6037
- const CustomStateConfigSchema = object({
6038
- /** Custom StateProvider implementation */
6039
- provider: custom((val) => typeof val === "object" && val !== null && typeof val.read === "function" && typeof val.write === "function", { message: "Custom provider must implement read() and write() methods" }) });
6040
- /**
6041
- * State configuration schema.
6042
- *
6043
- * Configures how deployment state is stored.
6044
- * - 'local': Store in .gkm/deploy-{stage}.json (default)
6045
- * - 'ssm': Store in AWS SSM Parameter Store (requires region)
6046
- * - Custom: Provide a StateProvider implementation with read/write methods
6047
- */
6048
- const StateConfigSchema = union([discriminatedUnion("provider", [LocalStateConfigSchema, SSMStateConfigSchema]), CustomStateConfigSchema]);
6049
- /**
6050
- * App configuration schema.
6051
- */
6052
- const AppConfigSchema = object({
6053
- type: _enum([
6054
- "backend",
6055
- "web",
6056
- "mobile"
6057
- ]).optional().default("backend"),
6058
- path: string().min(1, "App path is required"),
6059
- port: number().int().positive("Port must be a positive integer"),
6060
- dependencies: array(string()).optional(),
6061
- deploy: DeployTargetSchema.optional(),
6062
- constructs: RoutesSchema.optional(),
6063
- routes: RoutesSchema.optional(),
6064
- functions: RoutesSchema.optional(),
6065
- crons: RoutesSchema.optional(),
6066
- queues: RoutesSchema.optional(),
6067
- topics: RoutesSchema.optional(),
6068
- subscribers: RoutesSchema.optional(),
6069
- envParser: string().optional(),
6070
- logger: string().optional(),
6071
- hooks: HooksConfigSchema.optional(),
6072
- telescope: union([
6073
- string(),
6074
- boolean(),
6075
- TelescopeConfigSchema
6076
- ]).optional(),
6077
- studio: union([
6078
- string(),
6079
- boolean(),
6080
- StudioConfigSchema
6081
- ]).optional(),
6082
- openapi: union([boolean(), OpenApiConfigSchema]).optional(),
6083
- runtime: _enum(["node", "bun"]).optional(),
6084
- env: union([string(), array(string())]).optional(),
6085
- entry: string().optional(),
6086
- framework: FrameworkSchema.optional(),
6087
- config: object({
6088
- client: string().optional(),
6089
- server: string().optional()
6090
- }).optional()
6091
- }).refine((data) => {
6092
- if (data.type === "web") {
6093
- if (!data.framework || !FRONTEND_FRAMEWORKS.includes(data.framework)) return false;
6094
- }
6095
- return true;
6096
- }, {
6097
- message: `Web apps must have a valid web framework (${FRONTEND_FRAMEWORKS.join(", ")})`,
6098
- path: ["framework"]
6099
- }).refine((data) => {
6100
- if (data.type === "mobile") {
6101
- if (!data.framework || !MOBILE_FRAMEWORKS.includes(data.framework)) return false;
6102
- }
6103
- return true;
6104
- }, {
6105
- message: `Mobile apps must have a valid mobile framework (${MOBILE_FRAMEWORKS.join(", ")})`,
6106
- path: ["framework"]
6107
- });
6108
- /**
6109
- * Workspace configuration schema.
6110
- */
6111
- const WorkspaceConfigSchema = object({
6112
- name: string().optional(),
6113
- /**
6114
- * Where the workspace's own constructs live, relative to its root.
6115
- *
6116
- * Infrastructure is a fact about the product, not about the process that
6117
- * happens to import it — so a database two apps share is declared once,
6118
- * at the top, and both find it. An app-level glob still works and is
6119
- * additive, for something only one app uses.
6120
- */
6121
- constructs: RoutesSchema.optional(),
6122
- /**
6123
- * Apps that nothing declares.
6124
- *
6125
- * Optional, and normally absent: a `site` is an app and so is a
6126
- * `rest-api` that named one, so the list is read off the graph. This is
6127
- * the escape hatch for what no construct describes — a mobile app, a
6128
- * process someone runs by hand — and for overriding one field of a
6129
- * derived app without restating it.
6130
- */
6131
- apps: record(string(), AppConfigSchema).optional(),
6132
- shared: SharedConfigSchema.optional(),
6133
- deploy: DeployConfigSchema.optional(),
6134
- stages: StagesConfigSchema,
6135
- secrets: SecretsConfigSchema.optional(),
6136
- state: StateConfigSchema.optional()
6137
- }).strict().refine((data) => {
6138
- const appNames = Object.keys(data.apps ?? {});
6139
- for (const [appName, app] of Object.entries(data.apps ?? {})) for (const dep of app.dependencies ?? []) {
6140
- if (!appNames.includes(dep)) return false;
6141
- if (dep === appName) return false;
6142
- }
6143
- return true;
6144
- }, { message: "App dependencies must reference existing apps and cannot be self-referential" }).refine((data) => {
6145
- const appNames = Object.keys(data.apps ?? {});
6146
- const visited = /* @__PURE__ */ new Set();
6147
- const recStack = /* @__PURE__ */ new Set();
6148
- function hasCycle(app) {
6149
- if (recStack.has(app)) return true;
6150
- if (visited.has(app)) return false;
6151
- visited.add(app);
6152
- recStack.add(app);
6153
- const deps = data.apps?.[app]?.dependencies ?? [];
6154
- for (const dep of deps) if (hasCycle(dep)) return true;
6155
- recStack.delete(app);
6156
- return false;
6157
- }
6158
- for (const app of appNames) {
6159
- visited.clear();
6160
- recStack.clear();
6161
- if (hasCycle(app)) return false;
6162
- }
6163
- return true;
6164
- }, { message: "Circular dependencies detected between apps" }).superRefine((data, ctx) => {
6165
- const defaultTarget = data.deploy?.default;
6166
- if (defaultTarget && !isDeployTargetSupported(defaultTarget)) {
6167
- ctx.addIssue({
6168
- code: "custom",
6169
- message: getDeployTargetError(defaultTarget),
6170
- path: ["deploy", "default"]
6171
- });
6172
- return;
6173
- }
6174
- for (const [appName, app] of Object.entries(data.apps ?? {})) if (app.deploy && !isDeployTargetSupported(app.deploy)) {
6175
- ctx.addIssue({
6176
- code: "custom",
6177
- message: getDeployTargetError(app.deploy, appName),
6178
- path: [
6179
- "apps",
6180
- appName,
6181
- "deploy"
6182
- ]
6183
- });
6184
- return;
6185
- }
6186
- if (data.state?.provider === "ssm" && !data.name) ctx.addIssue({
6187
- code: "custom",
6188
- message: "Workspace name is required when using SSM state provider. Add \"name\" to your gkm.config.ts.",
6189
- path: ["name"]
6190
- });
6191
- });
6192
- /**
6193
- * Validate workspace configuration.
6194
- * Throws ZodError with detailed messages on validation failure.
6195
- */
6196
- function validateWorkspaceConfig(config) {
6197
- return WorkspaceConfigSchema.parse(config);
6198
- }
6199
- /**
6200
- * Safe validation that returns result instead of throwing.
6201
- */
6202
- function safeValidateWorkspaceConfig(config) {
6203
- const result = WorkspaceConfigSchema.safeParse(config);
6204
- if (result.success) return {
6205
- success: true,
6206
- data: result.data
6207
- };
6208
- return {
6209
- success: false,
6210
- error: result.error
6211
- };
6212
- }
6213
- /**
6214
- * Format Zod errors into user-friendly messages.
6215
- */
6216
- function formatValidationErrors(error) {
6217
- return `Workspace configuration validation failed:\n${error.issues.map((issue) => {
6218
- const path = issue.path.join(".");
6219
- return path ? ` - ${path}: ${issue.message}` : ` - ${issue.message}`;
6220
- }).join("\n")}`;
6221
- }
6222
- //#endregion
6223
- //#region src/workspace/types.ts
6224
- /**
6225
- * Type guard to check if a config is a WorkspaceConfig.
6226
- *
6227
- * @example
6228
- * ```ts
6229
- * const config = await loadConfig();
6230
- * if (isWorkspaceConfig(config)) {
6231
- * // config.apps is available
6232
- * console.log(Object.keys(config.apps));
6233
- * }
6234
- * ```
6235
- */
6236
- function isWorkspaceConfig(config) {
6237
- if (typeof config !== "object" || config === null) return false;
6238
- if ("apps" in config && typeof config.apps === "object") return true;
6239
- return "constructs" in config && Object.keys(config).every((key) => WORKSPACE_KEYS.has(key));
6240
- }
6241
- /** Every top-level key a workspace config has — see `WorkspaceConfigSchema`. */
6242
- const WORKSPACE_KEYS = /* @__PURE__ */ new Set([
6243
- "name",
6244
- "constructs",
6245
- "apps",
6246
- "shared",
6247
- "deploy",
6248
- "stages",
6249
- "secrets",
6250
- "state"
6251
- ]);
6252
- //#endregion
6253
- //#region src/workspace/index.ts
6254
- /**
6255
- * Validate that all dependencies reference existing apps.
6256
- * Returns the config if valid, throws otherwise.
6257
- */
6258
- function validateDependencies(apps) {
6259
- const appNames = new Set(Object.keys(apps));
6260
- for (const [appName, app] of Object.entries(apps)) for (const dep of app.dependencies ?? []) {
6261
- if (!appNames.has(dep)) throw new Error(`Invalid dependency: App "${appName}" depends on "${dep}" which does not exist. Valid apps are: ${[...appNames].join(", ")}`);
6262
- if (dep === appName) throw new Error(`Invalid dependency: App "${appName}" cannot depend on itself.`);
6263
- }
6264
- }
6265
- /**
6266
- * Define workspace configuration with full TypeScript support and type inference.
6267
- *
6268
- * Uses `const` type parameter to infer literal app names, providing:
6269
- * - Autocomplete for app names in dependencies
6270
- * - Type errors for invalid dependency references
6271
- * - Full type inference for the returned config
6272
- *
6273
- * @example
6274
- * ```ts
6275
- * // gkm.config.ts
6276
- * import { defineWorkspace } from '@geekmidas/cli';
6277
- *
6278
- * export default defineWorkspace({
6279
- * name: 'my-saas',
6280
- * apps: {
6281
- * api: {
6282
- * type: 'backend',
6283
- * path: 'apps/api',
6284
- * port: 3000,
6285
- * routes: './src/endpoints/**\/*.ts',
6286
- * envParser: './src/config/env',
6287
- * logger: './src/logger',
6288
- * },
6289
- * web: {
6290
- * type: 'web',
6291
- * framework: 'nextjs',
6292
- * path: 'apps/web',
6293
- * port: 3001,
6294
- * dependencies: ['api'], // <- autocomplete shows 'api' | 'web'
6295
- * },
6296
- * },
6297
- * });
6298
- *
6299
- * // config.apps.api <- full type inference
6300
- * // config.apps.foo <- TypeScript error
6301
- * ```
6302
- */
6303
- function defineWorkspace(config) {
6304
- if (config.apps) validateDependencies(config.apps);
6305
- const result = safeValidateWorkspaceConfig(config);
6306
- if (!result.success && result.error) throw new Error(formatValidationErrors(result.error));
6307
- return config;
6308
- }
6309
- /**
6310
- * Get the package name from package.json in the given directory.
6311
- */
6312
- function getPackageName(cwd) {
6313
- try {
6314
- return require(`${cwd}/package.json`).name?.replace(/^@[^/]+\//, "");
6315
- } catch {
6316
- return;
6317
- }
6318
- }
6319
- /**
6320
- * Normalize a workspace configuration with resolved defaults.
6321
- */
6322
- function normalizeWorkspace(config, cwd) {
6323
- const name = config.name ?? getPackageName(cwd) ?? (0, node_path.basename)(cwd);
6324
- const defaultTarget = config.deploy?.default ?? "dokploy";
6325
- const normalizedApps = {};
6326
- for (const [appName, app] of Object.entries(config.apps ?? {})) normalizedApps[appName] = normalizeAppConfig(app, defaultTarget);
6327
- return {
6328
- name,
6329
- root: cwd,
6330
- ...config.constructs ? { constructs: config.constructs } : {},
6331
- apps: normalizedApps,
6332
- deploy: config.deploy ?? { default: "dokploy" },
6333
- shared: config.shared ?? { packages: ["packages/*"] },
6334
- stages: validateStages(config.stages),
6335
- secrets: config.secrets ?? {},
6336
- state: config.state
6337
- };
6338
- }
6339
- /**
6340
- * Normalize an app configuration with resolved defaults.
6341
- * @param app - App configuration
6342
- * @param defaultTarget - Default deploy target from workspace config
6343
- */
6344
- function normalizeAppConfig(app, defaultTarget) {
6345
- return {
6346
- ...app,
6347
- type: app.type ?? "backend",
6348
- port: app.port,
6349
- path: app.path,
6350
- dependencies: app.dependencies ?? [],
6351
- resolvedDeployTarget: app.deploy ?? defaultTarget
6352
- };
6353
- }
6354
- /**
6355
- * Wrap a single-app GkmConfig as a workspace.
6356
- * This allows existing single-app configs to work seamlessly.
6357
- */
6358
- function wrapSingleAppAsWorkspace(config, cwd) {
6359
- return {
6360
- name: config.name ?? getPackageName(cwd) ?? (0, node_path.basename)(cwd),
6361
- root: cwd,
6362
- apps: { api: {
6363
- type: "backend",
6364
- path: ".",
6365
- port: (typeof config.providers?.server === "object" ? config.providers.server.port : void 0) ?? 3e3,
6366
- dependencies: [],
6367
- resolvedDeployTarget: config.deploy?.default ?? "dokploy",
6368
- constructs: config.constructs,
6369
- providers: config.providers,
6370
- hooks: config.hooks,
6371
- telescope: config.telescope,
6372
- studio: config.studio,
6373
- openapi: config.openapi,
6374
- runtime: config.runtime,
6375
- env: config.env
6376
- } },
6377
- deploy: {
6378
- default: "dokploy",
6379
- ...config.deploy
6380
- },
6381
- shared: { packages: [] },
6382
- stages: validateStages(config.stages),
6383
- secrets: {}
6384
- };
6385
- }
6386
- /**
6387
- * Process a loaded configuration (either single-app or workspace).
6388
- * Returns a normalized workspace in both cases.
6389
- */
6390
- function processConfig(config, cwd) {
6391
- if (isWorkspaceConfig(config)) {
6392
- const result = safeValidateWorkspaceConfig(config);
6393
- if (!result.success && result.error) throw new Error(formatValidationErrors(result.error));
6394
- return {
6395
- type: "workspace",
6396
- raw: config,
6397
- workspace: normalizeWorkspace(config, cwd)
6398
- };
6399
- }
6400
- return {
6401
- type: "single",
6402
- raw: config,
6403
- workspace: wrapSingleAppAsWorkspace(config, cwd)
6404
- };
6405
- }
6406
- /**
6407
- * The workspace's own constructs globs, absolute.
6408
- *
6409
- * Infrastructure two apps share is a fact about the product, and declaring it
6410
- * inside one of them makes moving that app a change to the other's database.
6411
- */
6412
- function workspaceConstructGlobs(workspace) {
6413
- return constructPatterns(workspace.constructs).map((pattern) => (0, node_path.isAbsolute)(pattern) ? pattern : (0, node_path.join)(workspace.root, pattern));
6414
- }
6415
- /**
6416
- * Every constructs glob an app can see, absolute.
6417
- *
6418
- * The workspace's own first, then the app's. Absolute because the app builds
6419
- * from its own directory while the workspace's constructs live above it —
6420
- * a relative glob resolved from the app would look for the product's
6421
- * infrastructure inside one of its consumers and find nothing.
6422
- *
6423
- * Additive, not overriding: an app that declares its own constructs still sees
6424
- * the ones the workspace declared for everybody.
6425
- */
6426
- function appConstructGlobs(workspace, appName) {
6427
- const globs = workspaceConstructGlobs(workspace);
6428
- const app = workspace.apps[appName];
6429
- if (app) {
6430
- const root = (0, node_path.isAbsolute)(app.path) ? app.path : (0, node_path.join)(workspace.root, app.path);
6431
- for (const pattern of constructPatterns(app.constructs)) globs.push((0, node_path.isAbsolute)(pattern) ? pattern : (0, node_path.join)(root, pattern));
6432
- }
6433
- return globs;
6434
- }
6435
- /**
6436
- * Every constructs glob in the workspace: its own, plus each app's.
6437
- *
6438
- * One list, so what a deploy provisions and what an app's entry point
6439
- * registers drivers for are read off the same globs.
6440
- */
6441
- function allConstructGlobs(workspace) {
6442
- const globs = [...workspaceConstructGlobs(workspace), ...Object.keys(workspace.apps).flatMap((appName) => appConstructGlobs(workspace, appName))];
6443
- return [...new Set(globs)];
6444
- }
6445
- /** A `Routes` in any of its accepted shapes, as a flat list of patterns. */
6446
- function constructPatterns(routes) {
6447
- if (!routes) return [];
6448
- if (typeof routes === "string") return [routes];
6449
- if (Array.isArray(routes)) return routes;
6450
- const paths = routes.paths;
6451
- if (!paths) return [];
6452
- return Array.isArray(paths) ? paths : [paths];
6453
- }
6454
- /**
6455
- * Get the GkmConfig for a specific app in a workspace.
6456
- * Useful for running existing single-app commands on a specific app.
6457
- */
6458
- function getAppGkmConfig(workspace, appName) {
6459
- const app = workspace.apps[appName];
6460
- if (!app || app.type !== "backend") return;
6461
- return {
6462
- ...workspace.deploy ? { deploy: workspace.deploy } : {},
6463
- stages: workspace.stages,
6464
- constructs: appConstructGlobs(workspace, appName),
6465
- providers: app.providers,
6466
- hooks: app.hooks,
6467
- telescope: app.telescope,
6468
- studio: app.studio,
6469
- openapi: app.openapi,
6470
- runtime: app.runtime,
6471
- env: app.env
6472
- };
6473
- }
6474
- /**
6475
- * Get topologically sorted app names based on dependencies.
6476
- * Apps with no dependencies come first, then apps that depend on them.
6477
- */
6478
- function getAppBuildOrder(workspace) {
6479
- const appNames = Object.keys(workspace.apps);
6480
- const visited = /* @__PURE__ */ new Set();
6481
- const result = [];
6482
- function visit(name) {
6483
- if (visited.has(name)) return;
6484
- visited.add(name);
6485
- const app = workspace.apps[name];
6486
- if (app) for (const dep of app.dependencies) visit(dep);
6487
- result.push(name);
6488
- }
6489
- for (const name of appNames) visit(name);
6490
- return result;
6491
- }
6492
- /**
6493
- * Generate environment variables for app dependencies.
6494
- *
6495
- * Each dependency gets the un-prefixed `{DEP}_URL` (for server-side use) and,
6496
- * when the consuming app's framework supports a public-var prefix, also the
6497
- * prefixed form (e.g. `NEXT_PUBLIC_{DEP}_URL` for Next.js, `VITE_{DEP}_URL`
6498
- * for Vite/TanStack Start). The prefixed form is what gets bundled into the
6499
- * client at build time.
6500
- */
6501
- function getDependencyEnvVars(workspace, appName, urlPrefix = "http://localhost") {
6502
- const app = workspace.apps[appName];
6503
- if (!app) return {};
6504
- const env = {};
6505
- const publicPrefix = getPublicEnvPrefix(app.framework);
6506
- for (const depName of app.dependencies) {
6507
- const dep = workspace.apps[depName];
6508
- if (dep) {
6509
- const url = `${urlPrefix}:${dep.port}`;
6510
- const envKey = `${depName.toUpperCase()}_URL`;
6511
- env[envKey] = url;
6512
- if (publicPrefix) env[`${publicPrefix}${envKey}`] = url;
6513
- }
6514
- }
6515
- return env;
6516
- }
6517
- /**
6518
- * Resolve the Dokploy endpoint for a specific stage.
6519
- *
6520
- * Uses per-stage endpoint from `endpoints` if available,
6521
- * otherwise falls back to the global `endpoint`.
6522
- *
6523
- * @param dokployConfig - Dokploy workspace configuration
6524
- * @param stage - Deployment stage (e.g., 'development', 'production')
6525
- * @returns The endpoint URL for the stage, or undefined if not configured
6526
- *
6527
- * @example
6528
- * ```ts
6529
- * // With per-stage endpoints
6530
- * const config = {
6531
- * endpoints: {
6532
- * development: 'https://dev.dokploy.example.com:3000',
6533
- * production: 'https://prod.dokploy.example.com:3000',
6534
- * },
6535
- * };
6536
- * getEndpointForStage(config, 'production'); // => 'https://prod.dokploy.example.com:3000'
6537
- *
6538
- * // With single endpoint
6539
- * const config = { endpoint: 'https://dokploy.example.com:3000' };
6540
- * getEndpointForStage(config, 'production'); // => 'https://dokploy.example.com:3000'
6541
- * ```
6542
- */
6543
- function getEndpointForStage(dokployConfig, stage) {
6544
- if (!dokployConfig) return void 0;
6545
- if (dokployConfig.endpoints?.[stage]) return dokployConfig.endpoints[stage];
6546
- return dokployConfig.endpoint;
6547
- }
6548
- //#endregion
6549
- Object.defineProperty(exports, "InvalidStages", {
6550
- enumerable: true,
6551
- get: function() {
6552
- return InvalidStages;
6553
- }
6554
- });
6555
- Object.defineProperty(exports, "PHASE_2_DEPLOY_TARGETS", {
6556
- enumerable: true,
6557
- get: function() {
6558
- return PHASE_2_DEPLOY_TARGETS;
6559
- }
6560
- });
6561
- Object.defineProperty(exports, "PUBLIC_ENV_PREFIXES", {
6562
- enumerable: true,
6563
- get: function() {
6564
- return PUBLIC_ENV_PREFIXES;
6565
- }
6566
- });
6567
- Object.defineProperty(exports, "SUPPORTED_DEPLOY_TARGETS", {
6568
- enumerable: true,
6569
- get: function() {
6570
- return SUPPORTED_DEPLOY_TARGETS;
6571
- }
6572
- });
6573
- Object.defineProperty(exports, "WorkspaceConfigSchema", {
6574
- enumerable: true,
6575
- get: function() {
6576
- return WorkspaceConfigSchema;
6577
- }
6578
- });
6579
- Object.defineProperty(exports, "allConstructGlobs", {
6580
- enumerable: true,
6581
- get: function() {
6582
- return allConstructGlobs;
6583
- }
6584
- });
6585
- Object.defineProperty(exports, "appConstructGlobs", {
6586
- enumerable: true,
6587
- get: function() {
6588
- return appConstructGlobs;
6589
- }
6590
- });
6591
- Object.defineProperty(exports, "assertDeployedStage", {
6592
- enumerable: true,
6593
- get: function() {
6594
- return assertDeployedStage;
6595
- }
6596
- });
6597
- Object.defineProperty(exports, "constructPatterns", {
6598
- enumerable: true,
6599
- get: function() {
6600
- return constructPatterns;
6601
- }
6602
- });
6603
- Object.defineProperty(exports, "defineWorkspace", {
6604
- enumerable: true,
6605
- get: function() {
6606
- return defineWorkspace;
6607
- }
6608
- });
6609
- Object.defineProperty(exports, "deployedProblems", {
6610
- enumerable: true,
6611
- get: function() {
6612
- return deployedProblems;
6613
- }
6614
- });
6615
- Object.defineProperty(exports, "formatValidationErrors", {
6616
- enumerable: true,
6617
- get: function() {
6618
- return formatValidationErrors;
6619
- }
6620
- });
6621
- Object.defineProperty(exports, "getAppBuildOrder", {
6622
- enumerable: true,
6623
- get: function() {
6624
- return getAppBuildOrder;
6625
- }
6626
- });
6627
- Object.defineProperty(exports, "getAppGkmConfig", {
6628
- enumerable: true,
6629
- get: function() {
6630
- return getAppGkmConfig;
6631
- }
6632
- });
6633
- Object.defineProperty(exports, "getDependencyEnvVars", {
6634
- enumerable: true,
6635
- get: function() {
6636
- return getDependencyEnvVars;
6637
- }
6638
- });
6639
- Object.defineProperty(exports, "getDeployTargetError", {
6640
- enumerable: true,
6641
- get: function() {
6642
- return getDeployTargetError;
6643
- }
6644
- });
6645
- Object.defineProperty(exports, "getEndpointForStage", {
6646
- enumerable: true,
6647
- get: function() {
6648
- return getEndpointForStage;
6649
- }
6650
- });
6651
- Object.defineProperty(exports, "getPublicEnvPrefix", {
6652
- enumerable: true,
6653
- get: function() {
6654
- return getPublicEnvPrefix;
6655
- }
6656
- });
6657
- Object.defineProperty(exports, "isDeployTargetSupported", {
6658
- enumerable: true,
6659
- get: function() {
6660
- return isDeployTargetSupported;
6661
- }
6662
- });
6663
- Object.defineProperty(exports, "isPhase2DeployTarget", {
6664
- enumerable: true,
6665
- get: function() {
6666
- return isPhase2DeployTarget;
6667
- }
6668
- });
6669
- Object.defineProperty(exports, "isWorkspaceConfig", {
6670
- enumerable: true,
6671
- get: function() {
6672
- return isWorkspaceConfig;
6673
- }
6674
- });
6675
- Object.defineProperty(exports, "normalizeWorkspace", {
6676
- enumerable: true,
6677
- get: function() {
6678
- return normalizeWorkspace;
6679
- }
6680
- });
6681
- Object.defineProperty(exports, "processConfig", {
6682
- enumerable: true,
6683
- get: function() {
6684
- return processConfig;
6685
- }
6686
- });
6687
- Object.defineProperty(exports, "safeValidateWorkspaceConfig", {
6688
- enumerable: true,
6689
- get: function() {
6690
- return safeValidateWorkspaceConfig;
6691
- }
6692
- });
6693
- Object.defineProperty(exports, "stageProblems", {
6694
- enumerable: true,
6695
- get: function() {
6696
- return stageProblems;
6697
- }
6698
- });
6699
- Object.defineProperty(exports, "stripPublicPrefix", {
6700
- enumerable: true,
6701
- get: function() {
6702
- return stripPublicPrefix;
6703
- }
6704
- });
6705
- Object.defineProperty(exports, "validateWorkspaceConfig", {
6706
- enumerable: true,
6707
- get: function() {
6708
- return validateWorkspaceConfig;
6709
- }
6710
- });
6711
- Object.defineProperty(exports, "workspaceConstructGlobs", {
6712
- enumerable: true,
6713
- get: function() {
6714
- return workspaceConstructGlobs;
6715
- }
6716
- });
6717
- Object.defineProperty(exports, "wrapSingleAppAsWorkspace", {
6718
- enumerable: true,
6719
- get: function() {
6720
- return wrapSingleAppAsWorkspace;
6721
- }
6722
- });
5959
+ export { url as _, discriminatedUnion as a, literal as c, object as d, record as f, unknown as g, union as h, custom as i, looseObject as l, tuple as m, array as n, email as o, string as p, boolean as r, lazy as s, _enum as t, number as u, toJSONSchema as v };
6723
5960
 
6724
- //# sourceMappingURL=workspace-mFpI_ky_.cjs.map
5961
+ //# sourceMappingURL=schemas-BCwKKA42.mjs.map