@geekmidas/cli 10.0.0-alpha.18 → 10.0.0-alpha.180

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 (448) hide show
  1. package/README.md +323 -380
  2. package/bin/adjacent-tsconfig.mjs +46 -8
  3. package/bin/gkm.mjs +11 -3
  4. package/bin/owning-tsconfig-jsx-register.mjs +18 -0
  5. package/bin/owning-tsconfig-jsx.mjs +108 -0
  6. package/dist/EndpointGenerator-CBKH87_b.mjs +1043 -0
  7. package/dist/EndpointGenerator-CBKH87_b.mjs.map +1 -0
  8. package/dist/EndpointGenerator-iyA3HkOH.cjs +1102 -0
  9. package/dist/EndpointGenerator-iyA3HkOH.cjs.map +1 -0
  10. package/dist/LegacyStateStore-B7pQA25B.mjs +124 -0
  11. package/dist/LegacyStateStore-B7pQA25B.mjs.map +1 -0
  12. package/dist/LegacyStateStore-l0hBdv-E.cjs +124 -0
  13. package/dist/LegacyStateStore-l0hBdv-E.cjs.map +1 -0
  14. package/dist/LocalStateStore-CP0UHL85.mjs +167 -0
  15. package/dist/LocalStateStore-CP0UHL85.mjs.map +1 -0
  16. package/dist/LocalStateStore-DEE0Kc_s.cjs +178 -0
  17. package/dist/LocalStateStore-DEE0Kc_s.cjs.map +1 -0
  18. package/dist/OpenApiTsGenerator-CoVA3Ykv.mjs +534 -0
  19. package/dist/OpenApiTsGenerator-CoVA3Ykv.mjs.map +1 -0
  20. package/dist/OpenApiTsGenerator-vy-fOJgs.cjs +539 -0
  21. package/dist/OpenApiTsGenerator-vy-fOJgs.cjs.map +1 -0
  22. package/dist/S3StateStore-DE0BNuXc.cjs +222 -0
  23. package/dist/S3StateStore-DE0BNuXc.cjs.map +1 -0
  24. package/dist/S3StateStore-vmxZWMKh.mjs +223 -0
  25. package/dist/S3StateStore-vmxZWMKh.mjs.map +1 -0
  26. package/dist/SSMStateStore-DQyXnX2M.mjs +205 -0
  27. package/dist/SSMStateStore-DQyXnX2M.mjs.map +1 -0
  28. package/dist/SSMStateStore-p4hBdTg3.cjs +204 -0
  29. package/dist/SSMStateStore-p4hBdTg3.cjs.map +1 -0
  30. package/dist/SubscriberGenerator-B3jHf26s.mjs +787 -0
  31. package/dist/SubscriberGenerator-B3jHf26s.mjs.map +1 -0
  32. package/dist/SubscriberGenerator-JhwVlWBS.cjs +852 -0
  33. package/dist/SubscriberGenerator-JhwVlWBS.cjs.map +1 -0
  34. package/dist/add-DEdpKya-.cjs +713 -0
  35. package/dist/add-DEdpKya-.cjs.map +1 -0
  36. package/dist/add-QBvDmVA-.mjs +711 -0
  37. package/dist/add-QBvDmVA-.mjs.map +1 -0
  38. package/dist/appPorts-BoXMwolc.mjs +249 -0
  39. package/dist/appPorts-BoXMwolc.mjs.map +1 -0
  40. package/dist/appPorts-IW-OZmRi.cjs +296 -0
  41. package/dist/appPorts-IW-OZmRi.cjs.map +1 -0
  42. package/dist/apps-D0LULFmU.mjs +4650 -0
  43. package/dist/apps-D0LULFmU.mjs.map +1 -0
  44. package/dist/apps-qJ5FPJGQ.cjs +5174 -0
  45. package/dist/apps-qJ5FPJGQ.cjs.map +1 -0
  46. package/dist/aws-BXfiWNbi.cjs +108 -0
  47. package/dist/aws-BXfiWNbi.cjs.map +1 -0
  48. package/dist/aws-BjvSTTcE.mjs +97 -0
  49. package/dist/aws-BjvSTTcE.mjs.map +1 -0
  50. package/dist/awsStore-BYYCmXiq.mjs +121 -0
  51. package/dist/awsStore-BYYCmXiq.mjs.map +1 -0
  52. package/dist/awsStore-DKQUElJL.cjs +138 -0
  53. package/dist/awsStore-DKQUElJL.cjs.map +1 -0
  54. package/dist/{backup-provisioner-DIVCbfee.mjs → backup-provisioner-C8DnCmxK.mjs} +2 -2
  55. package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
  56. package/dist/{backup-provisioner-BmhIO_Yr.cjs → backup-provisioner-oDEsPj02.cjs} +2 -2
  57. package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
  58. package/dist/backups/runner.cjs +519 -0
  59. package/dist/backups/runner.cjs.map +1 -0
  60. package/dist/backups/runner.d.cts +102 -0
  61. package/dist/backups/runner.d.cts.map +1 -0
  62. package/dist/backups/runner.d.mts +102 -0
  63. package/dist/backups/runner.d.mts.map +1 -0
  64. package/dist/backups/runner.mjs +506 -0
  65. package/dist/backups/runner.mjs.map +1 -0
  66. package/dist/{bundler-mjqGAvu1.cjs → bundler-BuBCXA0t.cjs} +67 -14
  67. package/dist/bundler-BuBCXA0t.cjs.map +1 -0
  68. package/dist/{bundler-mwH7WOb1.mjs → bundler-DZKdVVKZ.mjs} +68 -15
  69. package/dist/bundler-DZKdVVKZ.mjs.map +1 -0
  70. package/dist/cli-BCGkzaR1.cjs +80 -0
  71. package/dist/cli-BCGkzaR1.cjs.map +1 -0
  72. package/dist/cli-CgEbT00Q.mjs +80 -0
  73. package/dist/cli-CgEbT00Q.mjs.map +1 -0
  74. package/dist/clientTelemetry-BAwj6MOf.d.cts +10 -0
  75. package/dist/clientTelemetry-BAwj6MOf.d.cts.map +1 -0
  76. package/dist/clientTelemetry-CvamPJj_.d.mts +10 -0
  77. package/dist/clientTelemetry-CvamPJj_.d.mts.map +1 -0
  78. package/dist/compose-AO8u4mBI.cjs +3502 -0
  79. package/dist/compose-AO8u4mBI.cjs.map +1 -0
  80. package/dist/compose-C-yjexqX.cjs +2925 -0
  81. package/dist/compose-C-yjexqX.cjs.map +1 -0
  82. package/dist/compose-C23RpAaF.mjs +3389 -0
  83. package/dist/compose-C23RpAaF.mjs.map +1 -0
  84. package/dist/compose-DtfoUChm.mjs +2434 -0
  85. package/dist/compose-DtfoUChm.mjs.map +1 -0
  86. package/dist/config-BODxZemw.d.mts +291 -0
  87. package/dist/config-BODxZemw.d.mts.map +1 -0
  88. package/dist/config-C3U5HulX.d.cts +291 -0
  89. package/dist/config-C3U5HulX.d.cts.map +1 -0
  90. package/dist/config.cjs +457 -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 +441 -3
  95. package/dist/config.mjs.map +1 -0
  96. package/dist/credentialSchemas-D_85KW2k.mjs +236 -0
  97. package/dist/credentialSchemas-D_85KW2k.mjs.map +1 -0
  98. package/dist/credentialSchemas-DjK6xKMk.cjs +271 -0
  99. package/dist/credentialSchemas-DjK6xKMk.cjs.map +1 -0
  100. package/dist/databases-CV22HzrI.mjs +588 -0
  101. package/dist/databases-CV22HzrI.mjs.map +1 -0
  102. package/dist/databases-DwYYH2mX.cjs +703 -0
  103. package/dist/databases-DwYYH2mX.cjs.map +1 -0
  104. package/dist/dbTunnel-Bve0zBqT.cjs +154 -0
  105. package/dist/dbTunnel-Bve0zBqT.cjs.map +1 -0
  106. package/dist/dbTunnel-CnubkLBa.mjs +154 -0
  107. package/dist/dbTunnel-CnubkLBa.mjs.map +1 -0
  108. package/dist/define-BfrNaY82.mjs +106 -0
  109. package/dist/define-BfrNaY82.mjs.map +1 -0
  110. package/dist/define-zKgLY65H.cjs +153 -0
  111. package/dist/define-zKgLY65H.cjs.map +1 -0
  112. package/dist/deploy/public.cjs +211 -0
  113. package/dist/deploy/public.cjs.map +1 -0
  114. package/dist/deploy/public.d.cts +659 -0
  115. package/dist/deploy/public.d.cts.map +1 -0
  116. package/dist/deploy/public.d.mts +659 -0
  117. package/dist/deploy/public.d.mts.map +1 -0
  118. package/dist/deploy/public.mjs +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 +1 -1
  132. package/dist/deploy-C2MKxzm9.cjs +3894 -0
  133. package/dist/deploy-C2MKxzm9.cjs.map +1 -0
  134. package/dist/deploy-Qq41vtpm.mjs +3838 -0
  135. package/dist/deploy-Qq41vtpm.mjs.map +1 -0
  136. package/dist/destroy-Bg4IUf_Z.mjs +789 -0
  137. package/dist/destroy-Bg4IUf_Z.mjs.map +1 -0
  138. package/dist/destroy-CCpnHI2v.cjs +790 -0
  139. package/dist/destroy-CCpnHI2v.cjs.map +1 -0
  140. package/dist/discover-Dfmn6HQ7.mjs +940 -0
  141. package/dist/discover-Dfmn6HQ7.mjs.map +1 -0
  142. package/dist/discover-OXczlq08.cjs +1085 -0
  143. package/dist/discover-OXczlq08.cjs.map +1 -0
  144. package/dist/dns-BAM8VH1v.mjs +1820 -0
  145. package/dist/dns-BAM8VH1v.mjs.map +1 -0
  146. package/dist/dns-D_0z9Tm1.cjs +2257 -0
  147. package/dist/dns-D_0z9Tm1.cjs.map +1 -0
  148. package/dist/docker-6EUbKrEl.cjs +1798 -0
  149. package/dist/docker-6EUbKrEl.cjs.map +1 -0
  150. package/dist/docker-DQoE3Fr7.mjs +1649 -0
  151. package/dist/docker-DQoE3Fr7.mjs.map +1 -0
  152. package/dist/dokploy-BD8NXy8y.cjs +38 -0
  153. package/dist/dokploy-BD8NXy8y.cjs.map +1 -0
  154. package/dist/dokploy-CU9iuc35.mjs +38 -0
  155. package/dist/dokploy-CU9iuc35.mjs.map +1 -0
  156. package/dist/drivers-BQRb3KsL.mjs +294 -0
  157. package/dist/drivers-BQRb3KsL.mjs.map +1 -0
  158. package/dist/drivers-DP7__dJX.cjs +377 -0
  159. package/dist/drivers-DP7__dJX.cjs.map +1 -0
  160. package/dist/eas-BhTOdQrE.cjs +337 -0
  161. package/dist/eas-BhTOdQrE.cjs.map +1 -0
  162. package/dist/eas-iYyg7Xjy.mjs +334 -0
  163. package/dist/eas-iYyg7Xjy.mjs.map +1 -0
  164. package/dist/emit-C4KSXOeS.mjs +153 -0
  165. package/dist/emit-C4KSXOeS.mjs.map +1 -0
  166. package/dist/emit-DiW0kbue.cjs +164 -0
  167. package/dist/emit-DiW0kbue.cjs.map +1 -0
  168. package/dist/encryption-hgmnMZw0.mjs +89 -0
  169. package/dist/encryption-hgmnMZw0.mjs.map +1 -0
  170. package/dist/encryption-yROMpM67.cjs +90 -0
  171. package/dist/encryption-yROMpM67.cjs.map +1 -0
  172. package/dist/engine-B4whsrrE.mjs +3217 -0
  173. package/dist/engine-B4whsrrE.mjs.map +1 -0
  174. package/dist/engine-D0XYdIiE.cjs +3330 -0
  175. package/dist/engine-D0XYdIiE.cjs.map +1 -0
  176. package/dist/errors-C9uIyIDt.mjs +27 -0
  177. package/dist/errors-C9uIyIDt.mjs.map +1 -0
  178. package/dist/errors-D1x8duqI.cjs +38 -0
  179. package/dist/errors-D1x8duqI.cjs.map +1 -0
  180. package/dist/github-CBkZF4PS.mjs +986 -0
  181. package/dist/github-CBkZF4PS.mjs.map +1 -0
  182. package/dist/github-D1-_OnGL.cjs +987 -0
  183. package/dist/github-D1-_OnGL.cjs.map +1 -0
  184. package/dist/googlePlay-Bwv8TVi8.mjs +931 -0
  185. package/dist/googlePlay-Bwv8TVi8.mjs.map +1 -0
  186. package/dist/googlePlay-s9dGfrrb.cjs +931 -0
  187. package/dist/googlePlay-s9dGfrrb.cjs.map +1 -0
  188. package/dist/iam-BzFyFf7T.mjs +442 -0
  189. package/dist/iam-BzFyFf7T.mjs.map +1 -0
  190. package/dist/iam-WIoKnLBp.cjs +521 -0
  191. package/dist/iam-WIoKnLBp.cjs.map +1 -0
  192. package/dist/{index-RCUizGxL.d.cts → index-BKgOlfK2.d.mts} +38 -14
  193. package/dist/index-BKgOlfK2.d.mts.map +1 -0
  194. package/dist/{index-B4H4XF7A.d.mts → index-zPzigXh-.d.cts} +38 -14
  195. package/dist/index-zPzigXh-.d.cts.map +1 -0
  196. package/dist/index.cjs +14502 -12767
  197. package/dist/index.cjs.map +1 -1
  198. package/dist/index.mjs +15137 -13400
  199. package/dist/index.mjs.map +1 -1
  200. package/dist/local-CFnHQgWC.cjs +241 -0
  201. package/dist/local-CFnHQgWC.cjs.map +1 -0
  202. package/dist/local-JOnTFJA5.mjs +224 -0
  203. package/dist/local-JOnTFJA5.mjs.map +1 -0
  204. package/dist/migrate-BtnpQocG.mjs +181 -0
  205. package/dist/migrate-BtnpQocG.mjs.map +1 -0
  206. package/dist/migrate-CGXrmZyV.cjs +272 -0
  207. package/dist/migrate-CGXrmZyV.cjs.map +1 -0
  208. package/dist/migrate-CxWXW-Lw.cjs +181 -0
  209. package/dist/migrate-CxWXW-Lw.cjs.map +1 -0
  210. package/dist/migrate-fLIgSpPB.mjs +267 -0
  211. package/dist/migrate-fLIgSpPB.mjs.map +1 -0
  212. package/dist/next.cjs +59 -0
  213. package/dist/next.cjs.map +1 -0
  214. package/dist/next.d.cts +44 -0
  215. package/dist/next.d.cts.map +1 -0
  216. package/dist/next.d.mts +44 -0
  217. package/dist/next.d.mts.map +1 -0
  218. package/dist/next.mjs +58 -0
  219. package/dist/next.mjs.map +1 -0
  220. package/dist/notes-ChYPaRLu.cjs +510 -0
  221. package/dist/notes-ChYPaRLu.cjs.map +1 -0
  222. package/dist/notes-LATU2vLI.mjs +409 -0
  223. package/dist/notes-LATU2vLI.mjs.map +1 -0
  224. package/dist/openapi.cjs +213 -7
  225. package/dist/openapi.cjs.map +1 -0
  226. package/dist/openapi.d.cts +27 -8
  227. package/dist/openapi.d.cts.map +1 -1
  228. package/dist/openapi.d.mts +27 -8
  229. package/dist/openapi.d.mts.map +1 -1
  230. package/dist/openapi.mjs +208 -2
  231. package/dist/openapi.mjs.map +1 -0
  232. package/dist/projectBucket-BIeh2HTj.cjs +263 -0
  233. package/dist/projectBucket-BIeh2HTj.cjs.map +1 -0
  234. package/dist/projectBucket-D_4zb_oh.mjs +222 -0
  235. package/dist/projectBucket-D_4zb_oh.mjs.map +1 -0
  236. package/dist/provider-BvjDbsTR.mjs +46 -0
  237. package/dist/provider-BvjDbsTR.mjs.map +1 -0
  238. package/dist/provider-DLhgo-mB.cjs +57 -0
  239. package/dist/provider-DLhgo-mB.cjs.map +1 -0
  240. package/dist/publish-Dc-1GQp8.cjs +124 -0
  241. package/dist/publish-Dc-1GQp8.cjs.map +1 -0
  242. package/dist/publish-DhzRYhVZ.mjs +123 -0
  243. package/dist/publish-DhzRYhVZ.mjs.map +1 -0
  244. package/dist/ready-BcV28QoW.mjs +375 -0
  245. package/dist/ready-BcV28QoW.mjs.map +1 -0
  246. package/dist/ready-ByQvw4-W.cjs +404 -0
  247. package/dist/ready-ByQvw4-W.cjs.map +1 -0
  248. package/dist/reconcile/public.cjs +3 -5
  249. package/dist/reconcile/public.d.cts +33 -89
  250. package/dist/reconcile/public.d.cts.map +1 -1
  251. package/dist/reconcile/public.d.mts +33 -89
  252. package/dist/reconcile/public.d.mts.map +1 -1
  253. package/dist/reconcile/public.mjs +3 -3
  254. package/dist/reconcile--I7V4Klj.mjs +34 -0
  255. package/dist/reconcile--I7V4Klj.mjs.map +1 -0
  256. package/dist/reconcile-CuCQBa5-.cjs +34 -0
  257. package/dist/reconcile-CuCQBa5-.cjs.map +1 -0
  258. package/dist/resolve-CJvM2bUx.mjs +263 -0
  259. package/dist/resolve-CJvM2bUx.mjs.map +1 -0
  260. package/dist/resolve-DyUXmA0z.cjs +316 -0
  261. package/dist/resolve-DyUXmA0z.cjs.map +1 -0
  262. package/dist/rollback-BO1asWkd.mjs +136 -0
  263. package/dist/rollback-BO1asWkd.mjs.map +1 -0
  264. package/dist/rollback-Op8Tc5N-.cjs +165 -0
  265. package/dist/rollback-Op8Tc5N-.cjs.map +1 -0
  266. package/dist/runtime-CaejlcZt.d.mts +82 -0
  267. package/dist/runtime-CaejlcZt.d.mts.map +1 -0
  268. package/dist/runtime-D3jD4Dvn.d.cts +82 -0
  269. package/dist/runtime-D3jD4Dvn.d.cts.map +1 -0
  270. package/dist/s3-BbtwHSod.mjs +240 -0
  271. package/dist/s3-BbtwHSod.mjs.map +1 -0
  272. package/dist/s3-CwacPd8J.cjs +240 -0
  273. package/dist/s3-CwacPd8J.cjs.map +1 -0
  274. package/dist/sandbox/config-worker.cjs +43 -0
  275. package/dist/sandbox/config-worker.cjs.map +1 -0
  276. package/dist/sandbox/config-worker.d.cts +1 -0
  277. package/dist/sandbox/config-worker.d.mts +1 -0
  278. package/dist/sandbox/config-worker.mjs +44 -0
  279. package/dist/sandbox/config-worker.mjs.map +1 -0
  280. package/dist/sandbox/credentials-worker.cjs +53 -0
  281. package/dist/sandbox/credentials-worker.cjs.map +1 -0
  282. package/dist/sandbox/credentials-worker.d.cts +1 -0
  283. package/dist/sandbox/credentials-worker.d.mts +1 -0
  284. package/dist/sandbox/credentials-worker.mjs +54 -0
  285. package/dist/sandbox/credentials-worker.mjs.map +1 -0
  286. package/dist/sandbox/discover-worker.cjs +47 -0
  287. package/dist/sandbox/discover-worker.cjs.map +1 -0
  288. package/dist/sandbox/discover-worker.d.cts +1 -0
  289. package/dist/sandbox/discover-worker.d.mts +1 -0
  290. package/dist/sandbox/discover-worker.mjs +48 -0
  291. package/dist/sandbox/discover-worker.mjs.map +1 -0
  292. package/dist/sandbox/migrate-worker.cjs +75 -0
  293. package/dist/sandbox/migrate-worker.cjs.map +1 -0
  294. package/dist/sandbox/migrate-worker.d.cts +1 -0
  295. package/dist/sandbox/migrate-worker.d.mts +1 -0
  296. package/dist/sandbox/migrate-worker.mjs +76 -0
  297. package/dist/sandbox/migrate-worker.mjs.map +1 -0
  298. package/dist/{workspace-CRD9YinV.cjs → schemas-BCwKKA42.mjs} +399 -1179
  299. package/dist/schemas-BCwKKA42.mjs.map +1 -0
  300. package/dist/{workspace-Bu3xNCej.mjs → schemas-BQ_v0lEX.cjs} +487 -982
  301. package/dist/schemas-BQ_v0lEX.cjs.map +1 -0
  302. package/dist/secretsManager-CjTo6CRq.mjs +113 -0
  303. package/dist/secretsManager-CjTo6CRq.mjs.map +1 -0
  304. package/dist/secretsManager-CvmBGjdM.cjs +124 -0
  305. package/dist/secretsManager-CvmBGjdM.cjs.map +1 -0
  306. package/dist/seeds-Bc3niNVb.cjs +382 -0
  307. package/dist/seeds-Bc3niNVb.cjs.map +1 -0
  308. package/dist/seeds-Ccn0Ru2T.mjs +299 -0
  309. package/dist/seeds-Ccn0Ru2T.mjs.map +1 -0
  310. package/dist/serverSetup-BFdzPTIT.cjs +685 -0
  311. package/dist/serverSetup-BFdzPTIT.cjs.map +1 -0
  312. package/dist/serverSetup-CSxaZ7ha.mjs +685 -0
  313. package/dist/serverSetup-CSxaZ7ha.mjs.map +1 -0
  314. package/dist/sniffer-CwxpsSez.mjs +1824 -0
  315. package/dist/sniffer-CwxpsSez.mjs.map +1 -0
  316. package/dist/sniffer-D3gH7aJT.cjs +1997 -0
  317. package/dist/sniffer-D3gH7aJT.cjs.map +1 -0
  318. package/dist/snsSubscriptions-B8tGxND5.cjs +1135 -0
  319. package/dist/snsSubscriptions-B8tGxND5.cjs.map +1 -0
  320. package/dist/snsSubscriptions-n3sjbrRM.mjs +1010 -0
  321. package/dist/snsSubscriptions-n3sjbrRM.mjs.map +1 -0
  322. package/dist/sst-Cjocp7gi.cjs +501 -0
  323. package/dist/sst-Cjocp7gi.cjs.map +1 -0
  324. package/dist/sst-DeF0BfDA.mjs +478 -0
  325. package/dist/sst-DeF0BfDA.mjs.map +1 -0
  326. package/dist/stack-CyoRqyPt.mjs +1777 -0
  327. package/dist/stack-CyoRqyPt.mjs.map +1 -0
  328. package/dist/stack-Dr2FSxGm.cjs +1887 -0
  329. package/dist/stack-Dr2FSxGm.cjs.map +1 -0
  330. package/dist/stage-TAx0Gcq8.mjs +303 -0
  331. package/dist/stage-TAx0Gcq8.mjs.map +1 -0
  332. package/dist/stage-aTBLKonw.cjs +332 -0
  333. package/dist/stage-aTBLKonw.cjs.map +1 -0
  334. package/dist/stages-BeSQQQ4z.cjs +190 -0
  335. package/dist/stages-BeSQQQ4z.cjs.map +1 -0
  336. package/dist/stages-DjFKQv08.mjs +190 -0
  337. package/dist/stages-DjFKQv08.mjs.map +1 -0
  338. package/dist/target/public.cjs +15 -0
  339. package/dist/target/public.d.cts +28 -0
  340. package/dist/target/public.d.cts.map +1 -0
  341. package/dist/target/public.d.mts +28 -0
  342. package/dist/target/public.d.mts.map +1 -0
  343. package/dist/target/public.mjs +4 -0
  344. package/dist/terminal-Bk4PjXWY.mjs +85 -0
  345. package/dist/terminal-Bk4PjXWY.mjs.map +1 -0
  346. package/dist/terminal-DPf137EJ.cjs +85 -0
  347. package/dist/terminal-DPf137EJ.cjs.map +1 -0
  348. package/dist/{types-7R81hu0i.d.mts → types-CLxsw-QY.d.cts} +2135 -428
  349. package/dist/types-CLxsw-QY.d.cts.map +1 -0
  350. package/dist/{types-N7c2O2m7.d.cts → types-wLlwkSib.d.mts} +2133 -428
  351. package/dist/types-wLlwkSib.d.mts.map +1 -0
  352. package/dist/utils-D2Nk1Nv2.cjs +205 -0
  353. package/dist/utils-D2Nk1Nv2.cjs.map +1 -0
  354. package/dist/utils-D_fxUqvU.mjs +156 -0
  355. package/dist/utils-D_fxUqvU.mjs.map +1 -0
  356. package/dist/vitest.cjs +65 -0
  357. package/dist/vitest.cjs.map +1 -0
  358. package/dist/vitest.d.cts +29 -0
  359. package/dist/vitest.d.cts.map +1 -0
  360. package/dist/vitest.d.mts +29 -0
  361. package/dist/vitest.d.mts.map +1 -0
  362. package/dist/vitest.mjs +65 -0
  363. package/dist/vitest.mjs.map +1 -0
  364. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  365. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  366. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  367. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  368. package/dist/workspace/index.cjs +6 -2
  369. package/dist/workspace/index.d.cts +3 -3
  370. package/dist/workspace/index.d.mts +3 -3
  371. package/dist/workspace/index.mjs +2 -2
  372. package/dist/workspace-DJjhfAGf.mjs +3027 -0
  373. package/dist/workspace-DJjhfAGf.mjs.map +1 -0
  374. package/dist/workspace-wTLnc1Ef.cjs +3577 -0
  375. package/dist/workspace-wTLnc1Ef.cjs.map +1 -0
  376. package/package.json +76 -13
  377. package/dist/HostingerProvider-BY26bWwB.mjs +0 -243
  378. package/dist/HostingerProvider-BY26bWwB.mjs.map +0 -1
  379. package/dist/HostingerProvider-BZFGYYVA.cjs +0 -243
  380. package/dist/HostingerProvider-BZFGYYVA.cjs.map +0 -1
  381. package/dist/LocalStateProvider-7HR6SS2t.cjs +0 -48
  382. package/dist/LocalStateProvider-7HR6SS2t.cjs.map +0 -1
  383. package/dist/LocalStateProvider-D7QyJoLM.mjs +0 -48
  384. package/dist/LocalStateProvider-D7QyJoLM.mjs.map +0 -1
  385. package/dist/Route53Provider-Cvj40A8I.mjs +0 -209
  386. package/dist/Route53Provider-Cvj40A8I.mjs.map +0 -1
  387. package/dist/Route53Provider-DVILBsvV.cjs +0 -209
  388. package/dist/Route53Provider-DVILBsvV.cjs.map +0 -1
  389. package/dist/SSMStateProvider-B0Hu1MKZ.mjs +0 -75
  390. package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +0 -1
  391. package/dist/SSMStateProvider-VrQ-yeqd.cjs +0 -74
  392. package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +0 -1
  393. package/dist/backup-provisioner-BmhIO_Yr.cjs.map +0 -1
  394. package/dist/backup-provisioner-DIVCbfee.mjs.map +0 -1
  395. package/dist/bundler-mjqGAvu1.cjs.map +0 -1
  396. package/dist/bundler-mwH7WOb1.mjs.map +0 -1
  397. package/dist/config-DSXI480r.cjs +0 -467
  398. package/dist/config-DSXI480r.cjs.map +0 -1
  399. package/dist/config-DdKkoUE1.mjs +0 -414
  400. package/dist/config-DdKkoUE1.mjs.map +0 -1
  401. package/dist/config.d.cts.map +0 -1
  402. package/dist/config.d.mts.map +0 -1
  403. package/dist/credentials-C6Pfn6GY.cjs +0 -2939
  404. package/dist/credentials-C6Pfn6GY.cjs.map +0 -1
  405. package/dist/credentials-lbv-j0Be.mjs +0 -2802
  406. package/dist/credentials-lbv-j0Be.mjs.map +0 -1
  407. package/dist/discover-BERGFg8v.cjs +0 -288
  408. package/dist/discover-BERGFg8v.cjs.map +0 -1
  409. package/dist/discover-CK-n3w6b.mjs +0 -244
  410. package/dist/discover-CK-n3w6b.mjs.map +0 -1
  411. package/dist/emit-BdoPFjZf.cjs +0 -253
  412. package/dist/emit-BdoPFjZf.cjs.map +0 -1
  413. package/dist/emit-Bzq7JsMP.mjs +0 -224
  414. package/dist/emit-Bzq7JsMP.mjs.map +0 -1
  415. package/dist/generator-LfZU7NlU.mjs +0 -247
  416. package/dist/generator-LfZU7NlU.mjs.map +0 -1
  417. package/dist/generator-Wdfp0jCS.cjs +0 -282
  418. package/dist/generator-Wdfp0jCS.cjs.map +0 -1
  419. package/dist/github-DlIrXPee.mjs +0 -216
  420. package/dist/github-DlIrXPee.mjs.map +0 -1
  421. package/dist/github-n7N9yOff.cjs +0 -216
  422. package/dist/github-n7N9yOff.cjs.map +0 -1
  423. package/dist/index-B4H4XF7A.d.mts.map +0 -1
  424. package/dist/index-RCUizGxL.d.cts.map +0 -1
  425. package/dist/openapi-B8bu_OXN.cjs +0 -2038
  426. package/dist/openapi-B8bu_OXN.cjs.map +0 -1
  427. package/dist/openapi-DfjbhrsM.mjs +0 -1991
  428. package/dist/openapi-DfjbhrsM.mjs.map +0 -1
  429. package/dist/reconcile-Cq4cO83R.cjs +0 -136
  430. package/dist/reconcile-Cq4cO83R.cjs.map +0 -1
  431. package/dist/reconcile-fmoluZmZ.mjs +0 -113
  432. package/dist/reconcile-fmoluZmZ.mjs.map +0 -1
  433. package/dist/ssm-BKN1Cg4z.mjs +0 -60
  434. package/dist/ssm-BKN1Cg4z.mjs.map +0 -1
  435. package/dist/ssm-FxeSAt35.cjs +0 -60
  436. package/dist/ssm-FxeSAt35.cjs.map +0 -1
  437. package/dist/storage-DgypfSD6.cjs +0 -351
  438. package/dist/storage-DgypfSD6.cjs.map +0 -1
  439. package/dist/storage-TP0x118M.mjs +0 -304
  440. package/dist/storage-TP0x118M.mjs.map +0 -1
  441. package/dist/transfer-2aRVVJ6I.mjs +0 -122
  442. package/dist/transfer-2aRVVJ6I.mjs.map +0 -1
  443. package/dist/transfer-C3WZVmj_.cjs +0 -151
  444. package/dist/transfer-C3WZVmj_.cjs.map +0 -1
  445. package/dist/types-7R81hu0i.d.mts.map +0 -1
  446. package/dist/types-N7c2O2m7.d.cts.map +0 -1
  447. package/dist/workspace-Bu3xNCej.mjs.map +0 -1
  448. package/dist/workspace-CRD9YinV.cjs.map +0 -1
@@ -0,0 +1,852 @@
1
+ const require_errors = require("./errors-D1x8duqI.cjs");
2
+ const require_drivers = require("./drivers-DP7__dJX.cjs");
3
+ const require_EndpointGenerator = require("./EndpointGenerator-iyA3HkOH.cjs");
4
+ const require_discover = require("./discover-OXczlq08.cjs");
5
+ let node_path = require("node:path");
6
+ let node_fs_promises = require("node:fs/promises");
7
+ let node_crypto = require("node:crypto");
8
+ let _geekmidas_manifest = require("@geekmidas/manifest");
9
+ let node_url = require("node:url");
10
+ let _geekmidas_constructs_subscribers = require("@geekmidas/constructs/subscribers");
11
+ //#region src/reconcile/inboxRelay.ts
12
+ /**
13
+ * Receiving mail locally: Mailpit's webhook, and the worker it posts to.
14
+ *
15
+ * Deployed, SES stores each message and publishes its receipt notification on
16
+ * the inbox's topic. Locally Mailpit receives it, and its webhook posts each
17
+ * message to one route — `POST /__gkm/inbox` on the worker that runs the
18
+ * inbox subscribers — which hands it to the same receiver `mailbox.receive`
19
+ * calls in a feature test (`receiveMail` in `@geekmidas/constructs/inbox`).
20
+ *
21
+ * Shared by every local stage and the local compose stack: each asks this
22
+ * module which worker relays and with what token, and supplies only how that
23
+ * worker is reached from its Mailpit — the host's gateway, or the stack's
24
+ * network.
25
+ */
26
+ /** The route Mailpit posts each message it receives to. */
27
+ const INBOX_ROUTE = "/__gkm/inbox";
28
+ /** The env key the relaying worker reads its token from. */
29
+ const INBOX_RELAY_TOKEN_KEY = "GKM_INBOX_RELAY_TOKEN";
30
+ /**
31
+ * Inbox subscribers in more than one worker. Mailpit posts to one webhook, so
32
+ * locally one worker receives for every inbox — #343 lifts this.
33
+ */
34
+ var InboxSubscribersSpanWorkers = class extends require_errors.GkmError {
35
+ workers;
36
+ constructor(workers) {
37
+ super(`Inbox subscribers run in ${workers.map((w) => `'${w}'`).join(" and ")}, and locally mail is received by one worker: Mailpit posts each message to a single webhook. Bind every worker.inbox(…) to one worker for now (#343).`);
38
+ this.workers = workers;
39
+ this.name = "InboxSubscribersSpanWorkers";
40
+ }
41
+ };
42
+ /**
43
+ * The worker whose route Mailpit posts to: the one that runs every inbox
44
+ * subscriber. `undefined` when no inbox has a subscriber.
45
+ */
46
+ function inboxRelayWorker(manifest, subscribers) {
47
+ const topicKeys = /* @__PURE__ */ new Set();
48
+ for (const declaration of Object.values(manifest)) {
49
+ if (declaration.kind !== "inbox") continue;
50
+ topicKeys.add((0, _geekmidas_manifest.providedKeyFor)(declaration.topic, "topic", "publisherConnectionString"));
51
+ }
52
+ if (topicKeys.size === 0) return void 0;
53
+ const workers = Object.keys(subscribers).sort().filter((worker) => (subscribers[worker] ?? []).some(({ connectionKey }) => topicKeys.has(connectionKey)));
54
+ if (workers.length > 1) throw new InboxSubscribersSpanWorkers(workers);
55
+ return workers[0];
56
+ }
57
+ /**
58
+ * The token Mailpit presents in the webhook's query — it cannot send a
59
+ * header. Derived as a bucket's webhook token is: from the stage's seed where
60
+ * one is given, and the project; not salted by the stage, since `gkm dev` and
61
+ * `gkm test` share one Mailpit.
62
+ */
63
+ function inboxRelayToken(project, seed) {
64
+ return (0, node_crypto.createHash)("sha256").update(`${seed ? `${seed}:` : ""}${project}:inbox-webhook`).digest("base64url").slice(0, 32);
65
+ }
66
+ /** Mailpit's `MP_WEBHOOK_URL`: the relay route at `base`, with the token. */
67
+ function inboxWebhookUrl(base, token) {
68
+ return `${base.replace(/\/+$/, "")}${INBOX_ROUTE}?token=${encodeURIComponent(token)}`;
69
+ }
70
+ //#endregion
71
+ //#region src/generators/subscriberRoute.ts
72
+ /**
73
+ * Where SNS pushes a topic subscriber's messages, on the server that runs it:
74
+ * named after the subscriber's export.
75
+ *
76
+ * One definition for both sides — the generated server mounts the route, and
77
+ * the stack exposes exactly these paths on a worker's host — so the path the
78
+ * edge lets through and the path the worker answers cannot drift.
79
+ */
80
+ const SUBSCRIBER_ROUTE_PREFIX = "/__gkm/subscribers/";
81
+ /** The route a subscriber's pushes arrive on. */
82
+ function subscriberRoute(exportName) {
83
+ return `${SUBSCRIBER_ROUTE_PREFIX}${exportName}`;
84
+ }
85
+ /**
86
+ * Where the deploy hands a server the SNS subscriptions it made for its
87
+ * routes: a JSON object of subscriber export → subscription ARN. Against SNS
88
+ * itself a server mounts a route only for a subscription recorded here, and
89
+ * refuses a notification that names another.
90
+ */
91
+ const SNS_SUBSCRIPTIONS_KEY = "GKM_SNS_SUBSCRIPTIONS";
92
+ /**
93
+ * Where a local object store posts a bucket's events, on the process that runs
94
+ * the bucket's subscribers: named after the bucket. Never on a public host —
95
+ * MinIO reaches it over the stack's network, or the host's.
96
+ */
97
+ const OBJECTS_ROUTE_PREFIX = "/__gkm/objects/";
98
+ /** The route a bucket's events are posted to. */
99
+ function objectsRoute(bucketId) {
100
+ return `${OBJECTS_ROUTE_PREFIX}${bucketId}`;
101
+ }
102
+ //#endregion
103
+ //#region src/reconcile/fakes.ts
104
+ /**
105
+ * Fakes, read from where the convention puts them.
106
+ *
107
+ * `test/fakes/<id>.ts` default-exports `fake.app(…)` or `fake.image(…)` for an
108
+ * external API, and `fake.credential(…)` for a credential. The construct never
109
+ * names it — that is what keeps a fake out of a deployed bundle — so this is
110
+ * the one place it is found, by the same rule that finds a database's factory
111
+ * in `test/factories/<id>.ts`.
112
+ */
113
+ /** Where a project keeps its external APIs' fakes, relative to its root. */
114
+ const DEFAULT_FAKES_DIR = "test/fakes";
115
+ /** The marker `fake.app` and `fake.image` set — the same registered symbol. */
116
+ const FAKE = Symbol.for("@geekmidas/constructs/fake");
117
+ /**
118
+ * The fake for every external API the manifest declares, keyed by id.
119
+ *
120
+ * @throws {NoFake} when an external API has no file, since a local stage would
121
+ * otherwise have nothing to call.
122
+ * @throws {NotAFake} when the file's default export is not one.
123
+ */
124
+ async function readFakes(root, manifest) {
125
+ const fakes = {};
126
+ for (const [id, declaration] of Object.entries(manifest)) {
127
+ if (declaration?.kind !== "external-api") continue;
128
+ const file = await fakeFile((0, node_path.join)(root, DEFAULT_FAKES_DIR), id);
129
+ if (!file) throw new NoFake(id, `${fakeBase(root, id)}.ts`);
130
+ const value = await importFake(file);
131
+ if (value.kind === "credential") throw new NotAFake(file);
132
+ fakes[id] = {
133
+ file,
134
+ ...value.kind === "image" ? {
135
+ image: value.image,
136
+ port: value.port
137
+ } : {},
138
+ credentials: JSON.stringify(value.credentials)
139
+ };
140
+ }
141
+ return fakes;
142
+ }
143
+ /**
144
+ * Each credential's fake value, as the JSON `<ID>_CREDENTIALS` holds, keyed by
145
+ * id — for the credentials that have a fake. Unlike an external API's, a
146
+ * credential's fake is optional here: a stage that stores the real value
147
+ * needs none. The test stage's own check (`assertTestCredentials`) is what
148
+ * refuses one with neither.
149
+ *
150
+ * @throws {NotAFake} when the file's default export is not a credential's fake.
151
+ */
152
+ async function readCredentialFakes(root, manifest) {
153
+ const values = {};
154
+ for (const [id, declaration] of Object.entries(manifest)) {
155
+ if (declaration?.kind !== "credential") continue;
156
+ const file = await fakeFile((0, node_path.join)(root, DEFAULT_FAKES_DIR), id);
157
+ if (!file) continue;
158
+ const value = await importFake(file);
159
+ if (value.kind !== "credential") throw new NotAFake(file);
160
+ values[id] = JSON.stringify(value.credentials);
161
+ }
162
+ return values;
163
+ }
164
+ /**
165
+ * A credential the test stage has no value for: no fake, and nothing stored.
166
+ * Raised when the stage is set up, before a test reaches it — not as a schema
167
+ * error inside the handler that first asked.
168
+ */
169
+ var CredentialHasNoTestValue = class extends require_errors.GkmError {
170
+ id;
171
+ key;
172
+ file;
173
+ constructor(id, key, file) {
174
+ super(`'${id}' is a credential, and the test stage has no value for ${key}: no fake, and none stored — a stage set up fresh, as CI's auto-setup does, holds no third party's credentials. Give it a fake: create ${file}, default-exporting fake.credential(…) from @geekmidas/constructs/credential. It is read only by gkm test and gkm dev --fake; a deployed stage still needs the real value (gkm secrets:add --stage <stage>).`);
175
+ this.id = id;
176
+ this.key = key;
177
+ this.file = file;
178
+ this.name = "CredentialHasNoTestValue";
179
+ }
180
+ };
181
+ /**
182
+ * Every credential the test stage must hand its suite, with the value it
183
+ * resolved — a fake's, or one the stage stores.
184
+ *
185
+ * @throws {CredentialHasNoTestValue} for the first one with neither.
186
+ */
187
+ function assertTestCredentials(root, plan, env) {
188
+ const values = {};
189
+ for (const { id, kind, envKey } of plan.resources) {
190
+ if (kind !== "credential") continue;
191
+ const value = env[envKey];
192
+ if (value === void 0) throw new CredentialHasNoTestValue(id, envKey, `${fakeBase(root, id)}.ts`);
193
+ values[envKey] = value;
194
+ }
195
+ return values;
196
+ }
197
+ /** `<root>/test/fakes/<id>`, without an extension. */
198
+ function fakeBase(root, id) {
199
+ return (0, node_path.join)(root, DEFAULT_FAKES_DIR, (0, _geekmidas_manifest.kebabCase)(id));
200
+ }
201
+ /** The first of `<id>.ts`, `.mts`, `.js`, `.mjs` that exists. */
202
+ async function fakeFile(folder, id) {
203
+ const base = (0, node_path.join)(folder, (0, _geekmidas_manifest.kebabCase)(id));
204
+ for (const extension of [
205
+ ".ts",
206
+ ".mts",
207
+ ".js",
208
+ ".mjs"
209
+ ]) {
210
+ const file = `${base}${extension}`;
211
+ if (await (0, node_fs_promises.access)(file).then(() => true, () => false)) return file;
212
+ }
213
+ }
214
+ /**
215
+ * A fake file's default export.
216
+ *
217
+ * @throws {NotAFake} when it is not a fake.
218
+ */
219
+ async function importFake(file) {
220
+ const value = (await import((0, node_url.pathToFileURL)(file).href)).default;
221
+ if (!isFakeExport(value)) throw new NotAFake(file);
222
+ return value;
223
+ }
224
+ function isFakeExport(value) {
225
+ return typeof value === "object" && value !== null && value[FAKE] === true;
226
+ }
227
+ /** An external API with no fake for a local stage to call. */
228
+ var NoFake = class extends require_errors.GkmError {
229
+ id;
230
+ file;
231
+ constructor(id, file) {
232
+ super(`'${id}' is an external API, and a local stage calls its fake rather than the provider — but there is none. Create ${file}, default-exporting fake.app(…) or fake.image(…) from @geekmidas/constructs/external-api.`);
233
+ this.id = id;
234
+ this.file = file;
235
+ this.name = "NoFake";
236
+ }
237
+ };
238
+ /** A file in the fakes folder whose default export is not a fake. */
239
+ var NotAFake = class extends require_errors.GkmError {
240
+ file;
241
+ constructor(file) {
242
+ super(`${file} is where a fake lives, and its default export is not one for its construct. For an external API, export default fake.app(handler, { credentials }) or fake.image(image, { port, credentials }); for a credential, fake.credential(value).`);
243
+ this.file = file;
244
+ this.name = "NotAFake";
245
+ }
246
+ };
247
+ //#endregion
248
+ //#region src/generators/SubscriberGenerator.ts
249
+ var SubscriberGenerator = class extends require_discover.ConstructGenerator {
250
+ isConstruct(value) {
251
+ return _geekmidas_constructs_subscribers.Subscriber.isSubscriber(value);
252
+ }
253
+ async build(context, constructs, outputDir, options) {
254
+ const target = options?.target ?? "aws";
255
+ const logger = console;
256
+ const subscriberInfos = [];
257
+ for (const { key, construct } of constructs) assertDoesNotFeedItself(key, construct);
258
+ if (target === "server") {
259
+ await this.generateServerSubscribersFile(outputDir, constructs, (context.eventsBackends?.includes("sns") ?? false) || constructs.some(({ construct }) => construct.bucketName));
260
+ logger.log(`Generated server subscribers file with ${constructs.length} subscribers (polling mode)`);
261
+ return subscriberInfos;
262
+ }
263
+ if (constructs.length === 0) return subscriberInfos;
264
+ const subscribersDir = (0, node_path.join)(outputDir, "subscribers");
265
+ await (0, node_fs_promises.mkdir)(subscribersDir, { recursive: true });
266
+ for (const { key, construct, path } of constructs) {
267
+ const handlerFile = await this.generateSubscriberHandler(subscribersDir, path.relative, key, construct, {
268
+ ...context,
269
+ storageDrivers: require_drivers.driversOf(context, construct)
270
+ }, construct.owner);
271
+ subscriberInfos.push({
272
+ name: key,
273
+ handler: (0, node_path.relative)(options?.root ?? process.cwd(), handlerFile).replace(/\.ts$/, ".handler"),
274
+ subscribedEvents: construct.subscribedEvents || [],
275
+ ...construct.topicName ? {
276
+ transport: "topic",
277
+ topic: construct.topicName
278
+ } : {},
279
+ ...construct.bucketName ? {
280
+ transport: "topic",
281
+ bucket: construct.bucketName,
282
+ ...construct.objectFilter
283
+ } : {},
284
+ ...construct.inboxName ? { inbox: construct.inboxName } : {},
285
+ timeout: construct.timeout,
286
+ memorySize: construct.memorySize,
287
+ environment: await construct.getEnvironment({ markOptional: context.markOptional }),
288
+ dependencies: construct.constructs
289
+ });
290
+ logger.log(`Generated subscriber handler: ${key}`);
291
+ }
292
+ return subscriberInfos;
293
+ }
294
+ async generateSubscriberHandler(outputDir, sourceFile, exportName, _subscriber, context, owner) {
295
+ const handlerFileName = `${exportName}.ts`;
296
+ const handlerPath = (0, node_path.join)(outputDir, handlerFileName);
297
+ const importPath = (0, node_path.relative)((0, node_path.dirname)(handlerPath), sourceFile).replace(/\.ts$/, ".js");
298
+ const runtime = require_EndpointGenerator.runtimeFor(context, (0, node_path.dirname)(handlerPath), owner);
299
+ const content = `import { AWSLambdaSubscriber } from '@geekmidas/constructs/aws';
300
+ import { ${exportName} } from '${importPath}';
301
+ ${runtime.imports}
302
+ ${context.storageDrivers?.imports ?? ""}
303
+ ${runtime.bindings}
304
+ ${context.storageDrivers?.setup ? `\n// The handler registers the drivers its target needs.\n${context.storageDrivers.setup}\n` : ""}
305
+ const adapter = new AWSLambdaSubscriber(envParser, ${exportName});
306
+
307
+ export const handler = adapter.handler;
308
+ `;
309
+ await (0, node_fs_promises.writeFile)(handlerPath, content);
310
+ return handlerPath;
311
+ }
312
+ async generateServerSubscribersFile(outputDir, subscribers, push) {
313
+ await (0, node_fs_promises.mkdir)(outputDir, { recursive: true });
314
+ const subscribersPath = (0, node_path.join)(outputDir, "subscribers.ts");
315
+ if (subscribers.length === 0) {
316
+ await (0, node_fs_promises.writeFile)(subscribersPath, `/**
317
+ * Generated subscribers setup — this app declares none.
318
+ */
319
+ import type { EnvironmentParser } from '@geekmidas/envkit';
320
+ import type { Logger } from '@geekmidas/logger';
321
+
322
+ export async function setupSubscribers(
323
+ _app: unknown,
324
+ _envParser: EnvironmentParser<any>,
325
+ _logger: Logger,
326
+ ): Promise<(port: number) => Promise<void>> {
327
+ return async () => {};
328
+ }
329
+
330
+ export function subscribersStatus(): { failed: string[]; connections: unknown[] } {
331
+ return { failed: [], connections: [] };
332
+ }
333
+
334
+ export async function stopSubscribers(): Promise<void> {}
335
+ `);
336
+ return subscribersPath;
337
+ }
338
+ const importsByFile = /* @__PURE__ */ new Map();
339
+ for (const { path, key } of subscribers) {
340
+ const importPath = (0, node_path.relative)((0, node_path.dirname)(subscribersPath), path.relative).replace(/\.ts$/, ".js");
341
+ importsByFile.set(importPath, [...importsByFile.get(importPath) ?? [], key]);
342
+ }
343
+ const imports = Array.from(importsByFile.entries()).map(([importPath, exports]) => `import { ${exports.join(", ")} } from '${importPath}';`).join("\n");
344
+ const entries = subscribers.map(({ key, construct }) => {
345
+ const connectionKey = require_discover.subscriberConnectionKey(construct);
346
+ const tokenKey = require_discover.subscriberTokenKey(construct);
347
+ const topic = construct.topicName ?? construct.bucketName;
348
+ const bucket = construct.bucketName ? (0, _geekmidas_manifest.canonicalId)(construct.bucketName) : void 0;
349
+ return ` { id: '${key}', subscriber: ${key}, topic: ${topic ? `'${topic}'` : "undefined"}, connectionKey: ${connectionKey ? `'${connectionKey}'` : "undefined"}, filtered: ${construct.bucketName || construct.inboxName ? "false" : "true"}, bucket: ${bucket ? `'${bucket}'` : "undefined"}, tokenKey: ${tokenKey ? `'${tokenKey}'` : "undefined"}, inbox: ${construct.inboxName ? JSON.stringify({
350
+ id: construct.inboxName,
351
+ domainKey: (0, _geekmidas_manifest.providedKeyFor)(construct.inboxName, "inbox", "domain"),
352
+ addressing: construct.inboxAddressing ?? { addresses: [] }
353
+ }) : "undefined"} },`;
354
+ }).join("\n");
355
+ const receives = subscribers.some(({ construct }) => construct.inboxName);
356
+ const content = `/**
357
+ * Generated subscribers setup.
358
+ *
359
+ * Each subscriber is run against the topic it is bound to, through that
360
+ * topic's own connection string:
361
+ *
362
+ * - **sns://** — pushed, not polled. The subscriber gets an HTTP route on this
363
+ * server, subscribed to the topic with a filter policy of the events it
364
+ * named, so SNS fans out to each subscriber. The route runs the subscriber
365
+ * through the same adaptor a Lambda subscription does. Against SNS itself
366
+ * the deploy made the subscription and recorded its ARN in
367
+ * ${SNS_SUBSCRIPTIONS_KEY}: a route is mounted only for a recorded one, its
368
+ * confirmation goes through the API, and nothing is subscribed from here.
369
+ * Against an emulator, where nothing deploys, the route subscribes itself.
370
+ * - **anything else** (pgboss://, rabbitmq://, sqs://) — polled. On pg-boss
371
+ * each subscriber drains a queue of its own, \`<topic>/<subscriber>\`, so
372
+ * every subscriber sees every event; replicas of one subscriber share it.
373
+ *
374
+ * A bucket's subscriber is polled the same way, under the bucket's name, when
375
+ * the bucket is in a local object store: the store posts each event to
376
+ * \`${OBJECTS_ROUTE_PREFIX}<Bucket>\` on this server, with the bucket's token, and
377
+ * the event is relayed onto the broker as \`object.created\` or
378
+ * \`object.deleted\` — so every subscriber of the bucket sees it.
379
+ *
380
+ * GKM_SUBSCRIBERS=off (\`gkm dev --no-subscribers\`) runs none of them.
381
+ * GKM_SUBSCRIBER_PUSH_URL is the address an emulator pushes to, defaulting to
382
+ * this server through host.docker.internal.
383
+ */
384
+ import { timingSafeEqual } from 'node:crypto';
385
+ import { connect } from 'node:net';
386
+ import type { EnvironmentParser } from '@geekmidas/envkit';
387
+ import type { Logger } from '@geekmidas/logger';
388
+ import { EventConnectionFactory, Publisher, Subscriber } from '@geekmidas/events';
389
+ import type { EventConnection } from '@geekmidas/events';
390
+ import { ServiceDiscovery } from '@geekmidas/services';
391
+ ${receives ? "import { type ReceivingInbox, receiveMail } from '@geekmidas/constructs/inbox';\n" : ""}${imports}
392
+
393
+ const subscribers = [
394
+ ${entries}
395
+ ];
396
+
397
+ // What was opened, and what could not be: a worker's health check reads both,
398
+ // and its shutdown closes what was opened.
399
+ const connections = new Map<string, EventConnection>();
400
+ const failed: string[] = [];
401
+
402
+ /**
403
+ * The subscriptions the deploy made against SNS itself, by subscriber: which
404
+ * routes to mount, and the ARN each one's notifications must name.
405
+ */
406
+ function recordedSubscriptions(logger: Logger): Record<string, string> {
407
+ const raw = process.env.${SNS_SUBSCRIPTIONS_KEY};
408
+ if (!raw) return {};
409
+ try {
410
+ const parsed = JSON.parse(raw);
411
+ if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) return parsed;
412
+ } catch {}
413
+ logger.error('${SNS_SUBSCRIPTIONS_KEY} is not a JSON object of subscriber → subscription ARN');
414
+ return {};
415
+ }
416
+
417
+ /** The route a subscriber's pushes arrive on. */
418
+ export const SUBSCRIBER_ROUTE = (id: string) => \`${SUBSCRIBER_ROUTE_PREFIX}\${id}\`;
419
+
420
+ /** The route a local object store posts a bucket's events to. */
421
+ export const OBJECTS_ROUTE = (bucket: string) => \`${OBJECTS_ROUTE_PREFIX}\${bucket}\`;
422
+
423
+ // The buckets whose events this server relays: one route each, however many
424
+ // subscribers watch the bucket.
425
+ const relays = new Set<string>();
426
+
427
+ /**
428
+ * Mount the route a local object store posts one bucket's events to, and
429
+ * relay each event onto the broker under the bucket's name.
430
+ *
431
+ * Answered 2xx only once every event is published: the store keeps what it
432
+ * was not told it delivered, and sends it again.
433
+ */
434
+ async function mountObjectRelay(
435
+ app: { post: (path: string, handler: (c: any) => unknown) => unknown },
436
+ relay: { bucket: string; topic: string; connection: EventConnection; tokenKey: string },
437
+ logger: Logger,
438
+ ): Promise<void> {
439
+ const token = process.env[relay.tokenKey];
440
+ if (!token) {
441
+ logger.error(
442
+ { bucket: relay.bucket, tokenKey: relay.tokenKey },
443
+ 'No token for this bucket: the events its object store posts cannot be received',
444
+ );
445
+ failed.push(\`\${relay.bucket}#events\`);
446
+ return;
447
+ }
448
+ const { toObjectEvents } = await import('@geekmidas/storage/events');
449
+ const publisher = await Publisher.fromConnection(relay.connection, { topic: relay.topic });
450
+ const expected = Buffer.from(\`Bearer \${token}\`);
451
+
452
+ app.post(OBJECTS_ROUTE(relay.bucket), async (c: any) => {
453
+ // Compared in constant time: the route is not public, but it is the one
454
+ // way to put an event in front of every subscriber of the bucket.
455
+ const given = Buffer.from(c.req.header('authorization') ?? '');
456
+ if (given.length !== expected.length || !timingSafeEqual(given, expected)) {
457
+ return c.json({ status: 'refused' }, 401);
458
+ }
459
+
460
+ let messages: Awaited<ReturnType<typeof toObjectEvents>>;
461
+ try {
462
+ messages = toObjectEvents(JSON.parse(await c.req.text()));
463
+ } catch (error) {
464
+ logger.warn({ err: error, bucket: relay.bucket }, 'Refused an object notification that did not parse');
465
+ return c.json({ status: 'malformed' }, 400);
466
+ }
467
+
468
+ try {
469
+ if (messages.length > 0) await publisher.publish(messages as any);
470
+ } catch (error) {
471
+ // The store sends it again.
472
+ logger.error({ err: error, bucket: relay.bucket }, 'Failed to relay object events');
473
+ return c.json({ status: 'failed' }, 500);
474
+ }
475
+ return c.json({ status: 'ok', relayed: messages.length }, 200);
476
+ });
477
+ logger.info({ bucket: relay.bucket }, 'Relaying object events');
478
+ }
479
+
480
+ ${receives ? `// The inboxes this server receives for locally, by id.
481
+ const inboxRelays = new Map<string, ReceivingInbox>();
482
+
483
+ /**
484
+ * Mount the route Mailpit posts each message it receives to, and hand the
485
+ * message to the receiver a receipt rule stands for: each inbox one of its
486
+ * envelope recipients is addressed to gets the receipt notification on its
487
+ * topic. Mailpit names envelope recipients missing from the headers as Bcc.
488
+ */
489
+ function mountInboxRelay(
490
+ app: { post: (path: string, handler: (c: any) => unknown) => unknown },
491
+ logger: Logger,
492
+ ): void {
493
+ const token = process.env.${INBOX_RELAY_TOKEN_KEY};
494
+ if (!token) {
495
+ logger.error('No ${INBOX_RELAY_TOKEN_KEY}: the mail Mailpit posts cannot be received');
496
+ failed.push('inbox');
497
+ return;
498
+ }
499
+ const expected = Buffer.from(token);
500
+
501
+ app.post('${INBOX_ROUTE}', async (c: any) => {
502
+ const given = Buffer.from(c.req.query('token') ?? '');
503
+ if (given.length !== expected.length || !timingSafeEqual(given, expected)) {
504
+ return c.json({ status: 'refused' }, 401);
505
+ }
506
+
507
+ let message: { key: string; from: string; recipients: string[] };
508
+ try {
509
+ const summary = JSON.parse(await c.req.text());
510
+ const addresses = (list: unknown) =>
511
+ Array.isArray(list) ? list.map((a: any) => a?.Address).filter(Boolean) : [];
512
+ message = {
513
+ key: String(summary.ID),
514
+ from: summary.From?.Address ?? '',
515
+ recipients: [...addresses(summary.To), ...addresses(summary.Cc), ...addresses(summary.Bcc)],
516
+ };
517
+ } catch (error) {
518
+ logger.warn({ err: error }, 'Refused a Mailpit webhook that did not parse');
519
+ return c.json({ status: 'malformed' }, 400);
520
+ }
521
+
522
+ try {
523
+ const received = await receiveMail(
524
+ { ...message, store: 'mailpit' },
525
+ [...inboxRelays.values()],
526
+ );
527
+ return c.json({ status: 'ok', received }, 200);
528
+ } catch (error) {
529
+ logger.error({ err: error, message: message.key }, 'Failed to receive mail');
530
+ return c.json({ status: 'failed' }, 500);
531
+ }
532
+ });
533
+ logger.info({ inboxes: [...inboxRelays.keys()] }, 'Receiving mail from Mailpit');
534
+ }
535
+
536
+ ` : ""}/** Resolves once something is accepting connections on the port. */
537
+ async function listening(port: number): Promise<void> {
538
+ for (let attempt = 0; attempt < 100; attempt++) {
539
+ const open = await new Promise<boolean>((resolve) => {
540
+ const socket = connect(port, '127.0.0.1');
541
+ socket.once('connect', () => { socket.end(); resolve(true); });
542
+ socket.once('error', () => resolve(false));
543
+ });
544
+ if (open) return;
545
+ await new Promise((resolve) => setTimeout(resolve, 50));
546
+ }
547
+ }
548
+
549
+ /**
550
+ * Mount each pushed subscriber's route and start each polled one. Returns what
551
+ * to run once the server is listening: subscribing a route makes SNS send its
552
+ * confirmation at once, so the route has to be reachable first.
553
+ */
554
+ export async function setupSubscribers(
555
+ app: { post: (path: string, handler: (c: any) => unknown) => unknown },
556
+ envParser: EnvironmentParser<any>,
557
+ logger: Logger,
558
+ ): Promise<(port: number) => Promise<void>> {
559
+ if (process.env.GKM_SUBSCRIBERS === 'off') {
560
+ logger.info('Subscribers are off (--no-subscribers)');
561
+ return async () => {};
562
+ }
563
+
564
+ const serviceDiscovery = ServiceDiscovery.getInstance(envParser);
565
+ const recorded = recordedSubscriptions(logger);
566
+ const afterListening: ((port: number) => Promise<void>)[] = [];
567
+
568
+ for (const { id, subscriber, topic, connectionKey, filtered, bucket, tokenKey, inbox } of subscribers) {
569
+ const events = subscriber.subscribedEvents || [];
570
+ if (events.length === 0) {
571
+ logger.warn({ subscriber: id }, 'Subscriber has no subscribed events, skipping');
572
+ continue;
573
+ }
574
+ const connectionString = connectionKey ? process.env[connectionKey] : undefined;
575
+ if (!connectionString) {
576
+ logger.error(
577
+ { subscriber: id, connectionKey },
578
+ 'No connection string for the topic or bucket this subscriber is bound to',
579
+ );
580
+ failed.push(id);
581
+ continue;
582
+ }
583
+
584
+ try {
585
+ ${push ? ` if (connectionString.startsWith('sns:')) {
586
+ const { SNSConnection, snsUrl, subscribeHttpEndpoint, confirmSubscription } = await import('@geekmidas/events/sns');
587
+ const { SnsPushSubscriberAdaptor } = await import('@geekmidas/constructs/subscribers');
588
+ const address = snsUrl.parse(connectionString);
589
+ const route = SUBSCRIBER_ROUTE(id);
590
+ const mount = (adaptor: InstanceType<typeof SnsPushSubscriberAdaptor>) =>
591
+ app.post(route, async (c: any) => {
592
+ const body = JSON.parse(await c.req.text());
593
+ const response = await adaptor.handle(body, {
594
+ subscriptionArn: c.req.header('x-amz-sns-subscription-arn'),
595
+ });
596
+ return c.json(response.body, response.status);
597
+ });
598
+
599
+ if (!address.endpoint) {
600
+ // SNS itself: the deploy subscribed this route and recorded the ARN.
601
+ // Nothing is subscribed from here, so this server's credentials need
602
+ // only sns:ConfirmSubscription on the topic.
603
+ const subscriptionArn = recorded[id];
604
+ if (!subscriptionArn) {
605
+ logger.error(
606
+ { subscriber: id },
607
+ 'No subscription recorded for this subscriber in ${SNS_SUBSCRIPTIONS_KEY}: deploy it so SNS has a route to push to',
608
+ );
609
+ failed.push(id);
610
+ continue;
611
+ }
612
+ const connection = await SNSConnection.fromConnectionString(connectionString);
613
+ mount(
614
+ new SnsPushSubscriberAdaptor(envParser, subscriber, {
615
+ topicArn: address.topicArn,
616
+ verify: true,
617
+ subscriptionArn,
618
+ // As the topic's owner, so only the owner can unsubscribe the
619
+ // route — not whoever holds a notification's UnsubscribeURL.
620
+ confirm: (message) => confirmSubscription(connection, message),
621
+ }),
622
+ );
623
+ logger.info({ subscriber: id, events }, 'Subscriber mounted for push');
624
+ continue;
625
+ }
626
+
627
+ // An emulator signs nothing, and nothing deploys its subscriptions:
628
+ // decided by the address this server was configured with, never by
629
+ // anything a request says about itself.
630
+ mount(
631
+ new SnsPushSubscriberAdaptor(envParser, subscriber, {
632
+ topicArn: address.topicArn,
633
+ verify: false,
634
+ emulatorEndpoint: address.endpoint,
635
+ }),
636
+ );
637
+
638
+ afterListening.push(async (port) => {
639
+ const base =
640
+ process.env.GKM_SUBSCRIBER_PUSH_URL ?? \`http://host.docker.internal:\${port}\`;
641
+ const connection = await SNSConnection.fromConnectionString(connectionString);
642
+ await subscribeHttpEndpoint(connection, {
643
+ endpoint: new URL(route, base).toString(),
644
+ ...(filtered ? { events } : {}),
645
+ });
646
+ logger.info({ subscriber: id, events }, 'Subscriber subscribed for push');
647
+ });
648
+ continue;
649
+ }
650
+ ` : ` if (connectionString.startsWith('sns:')) {
651
+ // Built for a broker other than SNS, so this entry registered no SNS
652
+ // driver and has no push route to offer.
653
+ logger.error(
654
+ { subscriber: id, connectionKey },
655
+ 'This build has no SNS driver: it was built for a target whose broker is not SNS',
656
+ );
657
+ failed.push(id);
658
+ continue;
659
+ }
660
+ `}
661
+
662
+ let connection = connections.get(connectionString);
663
+ if (!connection) {
664
+ connection = await EventConnectionFactory.fromConnectionString(connectionString);
665
+ connections.set(connectionString, connection);
666
+ }
667
+ // Named, so a broker with one address for everything (pg-boss) gives
668
+ // this subscriber a queue of its own: fan-out, not competition.
669
+ const eventSubscriber = await Subscriber.fromConnection(connection, {
670
+ topic,
671
+ subscription: id,
672
+ });
673
+ const services = subscriber.services.length > 0
674
+ ? await serviceDiscovery.register(subscriber.services)
675
+ : {};
676
+ // The subscriber's database — the worker's, or its own — as \`db\`. A
677
+ // pushed subscriber gets it from the adaptor above instead.
678
+ const db = subscriber.databaseService
679
+ ? (await serviceDiscovery.register([subscriber.databaseService]))[
680
+ subscriber.databaseService.serviceName
681
+ ]
682
+ : undefined;
683
+
684
+ await eventSubscriber.subscribe(events, async (event) => {
685
+ try {
686
+ await subscriber.handler({
687
+ events: [event],
688
+ services: services as any,
689
+ logger: subscriber.logger,
690
+ db,
691
+ } as any);
692
+ } catch (error) {
693
+ logger.error({ err: error, event, subscriber: id }, 'Failed to process event');
694
+ // Rethrown so the transport keeps the event for a retry — as a queue
695
+ // consumer's failure does, and as a pushed subscriber's 500 does.
696
+ throw error;
697
+ }
698
+ });
699
+ logger.info({ subscriber: id, events }, 'Subscriber started polling');
700
+
701
+ // A bucket in a local object store publishes nothing for this to poll:
702
+ // the store posts its events here, and they are relayed onto the broker.
703
+ if (bucket && tokenKey && topic && !relays.has(bucket)) {
704
+ relays.add(bucket);
705
+ await mountObjectRelay(app, { bucket, topic, connection, tokenKey }, logger);
706
+ }${receives ? `
707
+ // An inbox polled here is a local one: Mailpit posts what it receives
708
+ // to this server, which announces it on the inbox's topic.
709
+ const domain = inbox ? process.env[inbox.domainKey] : undefined;
710
+ if (inbox && topic && domain && !inboxRelays.has(inbox.id)) {
711
+ const publisher = await Publisher.fromConnection(connection, { topic });
712
+ inboxRelays.set(inbox.id, {
713
+ id: inbox.id,
714
+ addressing: inbox.addressing,
715
+ domain,
716
+ publish: async (payload) => {
717
+ await publisher.publish([{ type: '${_geekmidas_manifest.INBOX_EVENT}', payload }] as any);
718
+ },
719
+ });
720
+ }` : ""}
721
+ } catch (error) {
722
+ // The message too: a missing module's code alone does not say which.
723
+ logger.error(
724
+ { err: error, subscriber: id },
725
+ 'Failed to set up subscriber',
726
+ );
727
+ failed.push(id);
728
+ }
729
+ }
730
+
731
+ ${receives ? " if (inboxRelays.size > 0) mountInboxRelay(app, logger);\n\n" : ""} return async (port) => {
732
+ if (afterListening.length === 0) return;
733
+ await listening(port);
734
+ for (const subscribe of afterListening) {
735
+ await subscribe(port).catch((error) => {
736
+ logger.error({ err: error }, 'Failed to subscribe for push');
737
+ });
738
+ }
739
+ };
740
+ }
741
+
742
+ /** The subscribers that could not start, and the connections that did. */
743
+ export function subscribersStatus(): { failed: string[]; connections: EventConnection[] } {
744
+ return { failed: [...failed], connections: [...connections.values()] };
745
+ }
746
+
747
+ /**
748
+ * Stop polling, let the events in flight finish, and close each broker
749
+ * connection — pg-boss's graceful stop does all three. The caller bounds it.
750
+ */
751
+ export async function stopSubscribers(): Promise<void> {
752
+ const open = [...connections.values()];
753
+ connections.clear();
754
+ await Promise.all(open.map((connection) => connection.close()));
755
+ }
756
+ `;
757
+ await (0, node_fs_promises.writeFile)(subscribersPath, content);
758
+ return subscribersPath;
759
+ }
760
+ };
761
+ /**
762
+ * A bucket's subscriber that writes back into the keys it watches.
763
+ *
764
+ * Every write it makes is a new object event, which runs it again — forever,
765
+ * and billed per run. The rule is the one the build can check: a subscriber
766
+ * that depends on the bucket it watches must watch a prefix, so what it writes
767
+ * can go elsewhere. A thumbnailer watching `uploads/` writes `thumbnails/`.
768
+ */
769
+ var ObjectSubscriberFeedsItself = class extends Error {
770
+ subscriber;
771
+ bucket;
772
+ constructor(subscriber, bucket) {
773
+ super(`'${subscriber}' watches every key in '${bucket}' and depends on it, so each object it writes runs it again. Watch a prefix — .on([...], { prefix: 'uploads/' }) — and write outside it.`);
774
+ this.subscriber = subscriber;
775
+ this.bucket = bucket;
776
+ this.name = "ObjectSubscriberFeedsItself";
777
+ }
778
+ };
779
+ function assertDoesNotFeedItself(key, construct) {
780
+ const bucket = construct.bucketName;
781
+ if (!bucket || construct.objectFilter?.prefix) return;
782
+ if ((construct.constructs ?? []).some((id) => (0, _geekmidas_manifest.canonicalId)(id) === (0, _geekmidas_manifest.canonicalId)(bucket))) throw new ObjectSubscriberFeedsItself(key, bucket);
783
+ }
784
+ //#endregion
785
+ Object.defineProperty(exports, "INBOX_RELAY_TOKEN_KEY", {
786
+ enumerable: true,
787
+ get: function() {
788
+ return INBOX_RELAY_TOKEN_KEY;
789
+ }
790
+ });
791
+ Object.defineProperty(exports, "SNS_SUBSCRIPTIONS_KEY", {
792
+ enumerable: true,
793
+ get: function() {
794
+ return SNS_SUBSCRIPTIONS_KEY;
795
+ }
796
+ });
797
+ Object.defineProperty(exports, "SubscriberGenerator", {
798
+ enumerable: true,
799
+ get: function() {
800
+ return SubscriberGenerator;
801
+ }
802
+ });
803
+ Object.defineProperty(exports, "assertTestCredentials", {
804
+ enumerable: true,
805
+ get: function() {
806
+ return assertTestCredentials;
807
+ }
808
+ });
809
+ Object.defineProperty(exports, "inboxRelayToken", {
810
+ enumerable: true,
811
+ get: function() {
812
+ return inboxRelayToken;
813
+ }
814
+ });
815
+ Object.defineProperty(exports, "inboxRelayWorker", {
816
+ enumerable: true,
817
+ get: function() {
818
+ return inboxRelayWorker;
819
+ }
820
+ });
821
+ Object.defineProperty(exports, "inboxWebhookUrl", {
822
+ enumerable: true,
823
+ get: function() {
824
+ return inboxWebhookUrl;
825
+ }
826
+ });
827
+ Object.defineProperty(exports, "objectsRoute", {
828
+ enumerable: true,
829
+ get: function() {
830
+ return objectsRoute;
831
+ }
832
+ });
833
+ Object.defineProperty(exports, "readCredentialFakes", {
834
+ enumerable: true,
835
+ get: function() {
836
+ return readCredentialFakes;
837
+ }
838
+ });
839
+ Object.defineProperty(exports, "readFakes", {
840
+ enumerable: true,
841
+ get: function() {
842
+ return readFakes;
843
+ }
844
+ });
845
+ Object.defineProperty(exports, "subscriberRoute", {
846
+ enumerable: true,
847
+ get: function() {
848
+ return subscriberRoute;
849
+ }
850
+ });
851
+
852
+ //# sourceMappingURL=SubscriberGenerator-JhwVlWBS.cjs.map