gemi 0.203.0 → 0.204.1

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 (289) hide show
  1. package/dist/ai/Agent.d.ts +20 -1
  2. package/dist/ai/Agent.d.ts.map +1 -1
  3. package/dist/ai/AgentProvider.d.ts +5 -0
  4. package/dist/ai/AgentProvider.d.ts.map +1 -1
  5. package/dist/ai/index.d.ts +1 -1
  6. package/dist/ai/index.d.ts.map +1 -1
  7. package/dist/ai/index.js +52 -55
  8. package/dist/ai/index.js.map +3 -13
  9. package/dist/ai/providers/request.d.ts +1 -0
  10. package/dist/ai/providers/request.d.ts.map +1 -1
  11. package/dist/ai/testing/Fingerprints.d.ts +106 -0
  12. package/dist/ai/testing/Fingerprints.d.ts.map +1 -0
  13. package/dist/ai/testing/RecordingProvider.d.ts +258 -0
  14. package/dist/ai/testing/RecordingProvider.d.ts.map +1 -0
  15. package/dist/ai/testing/index.d.ts +4 -0
  16. package/dist/ai/testing/index.d.ts.map +1 -0
  17. package/dist/ai/testing/index.js +6 -0
  18. package/dist/ai/testing/index.js.map +12 -0
  19. package/dist/ai/testing/pinClock.d.ts +19 -0
  20. package/dist/ai/testing/pinClock.d.ts.map +1 -0
  21. package/dist/app/index.js +2 -2
  22. package/dist/app/index.js.map +1 -1
  23. package/dist/bun/plugin.js +2 -2
  24. package/dist/bun/plugin.js.map +1 -1
  25. package/dist/bun/preload.js +2 -2
  26. package/dist/bun/preload.js.map +1 -1
  27. package/dist/{chunk-dj9nspcw.js → chunk-0hfzzb3k.js} +3 -3
  28. package/dist/{chunk-dj9nspcw.js.map → chunk-0hfzzb3k.js.map} +1 -1
  29. package/dist/chunk-0pgk811s.js +4 -0
  30. package/dist/{chunk-3e19n0f2.js.map → chunk-0pgk811s.js.map} +2 -2
  31. package/dist/{chunk-2fbsd1b0.js → chunk-0shq2d31.js} +2 -2
  32. package/dist/{chunk-2fbsd1b0.js.map → chunk-0shq2d31.js.map} +1 -1
  33. package/dist/{chunk-wfwpjx25.js → chunk-0t1d9s34.js} +3 -3
  34. package/dist/{chunk-wfwpjx25.js.map → chunk-0t1d9s34.js.map} +1 -1
  35. package/dist/{chunk-gz2ekvd6.js → chunk-13vtn7h9.js} +2 -2
  36. package/dist/{chunk-gz2ekvd6.js.map → chunk-13vtn7h9.js.map} +2 -2
  37. package/dist/{chunk-hergje99.js → chunk-1e82gfk9.js} +3 -3
  38. package/dist/{chunk-hergje99.js.map → chunk-1e82gfk9.js.map} +1 -1
  39. package/dist/{chunk-95re1b2y.js → chunk-1kehwa3s.js} +1 -1
  40. package/dist/chunk-1x60thpm.js +8 -0
  41. package/dist/chunk-1x60thpm.js.map +19 -0
  42. package/dist/{chunk-px2a83jv.js → chunk-2ngdhbz7.js} +2 -2
  43. package/dist/{chunk-px2a83jv.js.map → chunk-2ngdhbz7.js.map} +1 -1
  44. package/dist/{chunk-5dhp90cx.js → chunk-2t1eyzvq.js} +2 -2
  45. package/dist/{chunk-5dhp90cx.js.map → chunk-2t1eyzvq.js.map} +1 -1
  46. package/dist/{chunk-ggmznkqs.js → chunk-39hed4yr.js} +3 -3
  47. package/dist/{chunk-ggmznkqs.js.map → chunk-39hed4yr.js.map} +1 -1
  48. package/dist/{chunk-tgbj942e.js → chunk-3gkxnfef.js} +3 -3
  49. package/dist/{chunk-tgbj942e.js.map → chunk-3gkxnfef.js.map} +1 -1
  50. package/dist/{chunk-k3m1wr1c.js → chunk-3xzhbkya.js} +3 -3
  51. package/dist/{chunk-k3m1wr1c.js.map → chunk-3xzhbkya.js.map} +1 -1
  52. package/dist/chunk-418n4s1m.js +6 -0
  53. package/dist/{chunk-z97tptd1.js.map → chunk-418n4s1m.js.map} +2 -2
  54. package/dist/{chunk-95cs3r49.js → chunk-4c0rb2ng.js} +2 -2
  55. package/dist/{chunk-95cs3r49.js.map → chunk-4c0rb2ng.js.map} +1 -1
  56. package/dist/chunk-4ex4s616.js +4 -0
  57. package/dist/{chunk-tkskgvhc.js.map → chunk-4ex4s616.js.map} +2 -2
  58. package/dist/{chunk-n5g9a48h.js → chunk-4m8t67px.js} +2 -2
  59. package/dist/{chunk-n5g9a48h.js.map → chunk-4m8t67px.js.map} +1 -1
  60. package/dist/{chunk-1hpedme7.js → chunk-4v5c4mes.js} +2 -2
  61. package/dist/{chunk-1hpedme7.js.map → chunk-4v5c4mes.js.map} +1 -1
  62. package/dist/{chunk-g5j5hx6a.js → chunk-5gvc03cv.js} +3 -3
  63. package/dist/{chunk-g5j5hx6a.js.map → chunk-5gvc03cv.js.map} +1 -1
  64. package/dist/{chunk-r842yxd9.js → chunk-5km0np8s.js} +2 -2
  65. package/dist/{chunk-r842yxd9.js.map → chunk-5km0np8s.js.map} +1 -1
  66. package/dist/{chunk-m3xvm2va.js → chunk-6bfj0mbp.js} +3 -3
  67. package/dist/{chunk-m3xvm2va.js.map → chunk-6bfj0mbp.js.map} +1 -1
  68. package/dist/chunk-6g1xac70.js +7 -0
  69. package/dist/chunk-6g1xac70.js.map +10 -0
  70. package/dist/{chunk-kmpxda7j.js → chunk-6w6q9mxe.js} +3 -3
  71. package/dist/{chunk-kmpxda7j.js.map → chunk-6w6q9mxe.js.map} +2 -2
  72. package/dist/{chunk-dyb649h3.js → chunk-77x9vxht.js} +3 -3
  73. package/dist/{chunk-dyb649h3.js.map → chunk-77x9vxht.js.map} +1 -1
  74. package/dist/{chunk-5q2tt76t.js → chunk-7gxmf9rg.js} +2 -2
  75. package/dist/{chunk-5q2tt76t.js.map → chunk-7gxmf9rg.js.map} +1 -1
  76. package/dist/{chunk-vyp7d7xz.js → chunk-8jfnn7v6.js} +2 -2
  77. package/dist/{chunk-vyp7d7xz.js.map → chunk-8jfnn7v6.js.map} +1 -1
  78. package/dist/{chunk-zvhks9s7.js → chunk-8pw4zjnx.js} +1 -1
  79. package/dist/{chunk-9q5xhb64.js → chunk-9bjggtdt.js} +2 -2
  80. package/dist/{chunk-9q5xhb64.js.map → chunk-9bjggtdt.js.map} +1 -1
  81. package/dist/{chunk-rwe4bgt3.js → chunk-9hqnecjt.js} +2 -2
  82. package/dist/{chunk-rwe4bgt3.js.map → chunk-9hqnecjt.js.map} +1 -1
  83. package/dist/{chunk-s0z61m9j.js → chunk-9m7c4mws.js} +2 -2
  84. package/dist/{chunk-s0z61m9j.js.map → chunk-9m7c4mws.js.map} +1 -1
  85. package/dist/{chunk-r02em4jv.js → chunk-b1mdan5a.js} +2 -2
  86. package/dist/{chunk-r02em4jv.js.map → chunk-b1mdan5a.js.map} +1 -1
  87. package/dist/{chunk-7txst143.js → chunk-bq4pgzcd.js} +2 -2
  88. package/dist/{chunk-7txst143.js.map → chunk-bq4pgzcd.js.map} +1 -1
  89. package/dist/chunk-c7nbzryd.js +9 -0
  90. package/dist/chunk-c7nbzryd.js.map +10 -0
  91. package/dist/{chunk-pp34d463.js → chunk-cdgnwzwf.js} +2 -2
  92. package/dist/{chunk-pp34d463.js.map → chunk-cdgnwzwf.js.map} +1 -1
  93. package/dist/chunk-cf7xc02m.js +5 -0
  94. package/dist/{chunk-9mhr0kwd.js.map → chunk-cf7xc02m.js.map} +1 -1
  95. package/dist/{chunk-2nw8rf5y.js → chunk-cq7hk8v9.js} +2 -2
  96. package/dist/{chunk-2nw8rf5y.js.map → chunk-cq7hk8v9.js.map} +1 -1
  97. package/dist/{chunk-8m9kgynj.js → chunk-crqbzfd5.js} +2 -2
  98. package/dist/{chunk-8m9kgynj.js.map → chunk-crqbzfd5.js.map} +1 -1
  99. package/dist/{chunk-vee6v6qf.js → chunk-d3k38gk1.js} +3 -3
  100. package/dist/{chunk-vee6v6qf.js.map → chunk-d3k38gk1.js.map} +1 -1
  101. package/dist/{chunk-41fqkygr.js → chunk-d5d3a8bm.js} +3 -3
  102. package/dist/{chunk-41fqkygr.js.map → chunk-d5d3a8bm.js.map} +1 -1
  103. package/dist/chunk-d7kknkmq.js +13 -0
  104. package/dist/{chunk-4fw84bh6.js.map → chunk-d7kknkmq.js.map} +3 -4
  105. package/dist/{chunk-ke7d7j2y.js → chunk-dk1xxtgk.js} +2 -2
  106. package/dist/{chunk-ke7d7j2y.js.map → chunk-dk1xxtgk.js.map} +1 -1
  107. package/dist/{chunk-nqg7hdy8.js → chunk-e3ehv27z.js} +3 -3
  108. package/dist/{chunk-nqg7hdy8.js.map → chunk-e3ehv27z.js.map} +1 -1
  109. package/dist/{chunk-se58ty45.js → chunk-e5mqjren.js} +4 -4
  110. package/dist/{chunk-se58ty45.js.map → chunk-e5mqjren.js.map} +2 -2
  111. package/dist/{chunk-t91x2k88.js → chunk-efnerp0c.js} +2 -2
  112. package/dist/{chunk-t91x2k88.js.map → chunk-efnerp0c.js.map} +1 -1
  113. package/dist/{chunk-ys4q1jg2.js → chunk-ek0dvbck.js} +3 -3
  114. package/dist/{chunk-ys4q1jg2.js.map → chunk-ek0dvbck.js.map} +1 -1
  115. package/dist/{chunk-a4twd6qh.js → chunk-ezvtkbp9.js} +2 -2
  116. package/dist/{chunk-a4twd6qh.js.map → chunk-ezvtkbp9.js.map} +1 -1
  117. package/dist/{chunk-h19qtrg9.js → chunk-f52maa9b.js} +2 -2
  118. package/dist/{chunk-h19qtrg9.js.map → chunk-f52maa9b.js.map} +1 -1
  119. package/dist/{chunk-nfbf388w.js → chunk-f9c8bnzx.js} +3 -3
  120. package/dist/{chunk-nfbf388w.js.map → chunk-f9c8bnzx.js.map} +2 -2
  121. package/dist/{chunk-bwg7genv.js → chunk-fq5b1k4n.js} +2 -2
  122. package/dist/{chunk-bwg7genv.js.map → chunk-fq5b1k4n.js.map} +1 -1
  123. package/dist/{chunk-dvw8cr6n.js → chunk-gc9g7c4p.js} +3 -3
  124. package/dist/{chunk-dvw8cr6n.js.map → chunk-gc9g7c4p.js.map} +1 -1
  125. package/dist/{chunk-sq5ytcpd.js → chunk-jeq8wvj6.js} +2 -2
  126. package/dist/{chunk-sq5ytcpd.js.map → chunk-jeq8wvj6.js.map} +1 -1
  127. package/dist/{chunk-vw57atx4.js → chunk-jma5d7zd.js} +3 -3
  128. package/dist/{chunk-vw57atx4.js.map → chunk-jma5d7zd.js.map} +1 -1
  129. package/dist/{chunk-nsxw6v2b.js → chunk-jmsfkzav.js} +2 -2
  130. package/dist/{chunk-nsxw6v2b.js.map → chunk-jmsfkzav.js.map} +1 -1
  131. package/dist/chunk-js9rm7g0.js +4 -0
  132. package/dist/{chunk-02s440vh.js.map → chunk-js9rm7g0.js.map} +2 -2
  133. package/dist/{chunk-6t9n4qdm.js → chunk-k1gt7fgy.js} +3 -3
  134. package/dist/{chunk-6t9n4qdm.js.map → chunk-k1gt7fgy.js.map} +1 -1
  135. package/dist/{chunk-cbmne0wt.js → chunk-k62338g2.js} +2 -2
  136. package/dist/{chunk-cbmne0wt.js.map → chunk-k62338g2.js.map} +1 -1
  137. package/dist/{chunk-05k9201j.js → chunk-k9882kqg.js} +2 -2
  138. package/dist/{chunk-05k9201j.js.map → chunk-k9882kqg.js.map} +1 -1
  139. package/dist/chunk-ks6dczvn.js +24 -0
  140. package/dist/{chunk-70qqpvd9.js.map → chunk-ks6dczvn.js.map} +2 -2
  141. package/dist/{chunk-bzaespn5.js → chunk-n26atakz.js} +3 -3
  142. package/dist/{chunk-bzaespn5.js.map → chunk-n26atakz.js.map} +1 -1
  143. package/dist/{chunk-vbdy4k14.js → chunk-n3kg99yw.js} +3 -3
  144. package/dist/{chunk-vbdy4k14.js.map → chunk-n3kg99yw.js.map} +1 -1
  145. package/dist/{chunk-c6v3sjvh.js → chunk-n5k42dh7.js} +3 -3
  146. package/dist/{chunk-c6v3sjvh.js.map → chunk-n5k42dh7.js.map} +1 -1
  147. package/dist/chunk-p2nqksdq.js +10 -0
  148. package/dist/{chunk-ht5mq6ev.js.map → chunk-p2nqksdq.js.map} +2 -2
  149. package/dist/{chunk-mvd4mc8p.js → chunk-p9pwskv6.js} +2 -2
  150. package/dist/{chunk-mvd4mc8p.js.map → chunk-p9pwskv6.js.map} +1 -1
  151. package/dist/{chunk-14dtbk7d.js → chunk-phvvxv1a.js} +3 -3
  152. package/dist/{chunk-14dtbk7d.js.map → chunk-phvvxv1a.js.map} +1 -1
  153. package/dist/chunk-pq15dt8j.js +46 -0
  154. package/dist/chunk-pq15dt8j.js.map +27 -0
  155. package/dist/{chunk-q05648ac.js → chunk-ptpzh61m.js} +3 -3
  156. package/dist/{chunk-q05648ac.js.map → chunk-ptpzh61m.js.map} +1 -1
  157. package/dist/{chunk-nkasdjx2.js → chunk-qcrj4t72.js} +3 -3
  158. package/dist/{chunk-nkasdjx2.js.map → chunk-qcrj4t72.js.map} +1 -1
  159. package/dist/{chunk-bfhcx1ca.js → chunk-re9ac4tc.js} +27 -27
  160. package/dist/{chunk-bfhcx1ca.js.map → chunk-re9ac4tc.js.map} +7 -6
  161. package/dist/{chunk-q093ph67.js → chunk-rr8bzm6k.js} +2 -2
  162. package/dist/{chunk-q093ph67.js.map → chunk-rr8bzm6k.js.map} +1 -1
  163. package/dist/{chunk-gm34n6da.js → chunk-s5hdrpam.js} +3 -3
  164. package/dist/{chunk-gm34n6da.js.map → chunk-s5hdrpam.js.map} +1 -1
  165. package/dist/{chunk-k0220nam.js → chunk-s6bq91cm.js} +2 -2
  166. package/dist/{chunk-k0220nam.js.map → chunk-s6bq91cm.js.map} +1 -1
  167. package/dist/{chunk-vt0vybw8.js → chunk-vsd5h2d9.js} +3 -3
  168. package/dist/{chunk-vt0vybw8.js.map → chunk-vsd5h2d9.js.map} +1 -1
  169. package/dist/{chunk-a1cwr0wh.js → chunk-w3mc696j.js} +2 -2
  170. package/dist/{chunk-a1cwr0wh.js.map → chunk-w3mc696j.js.map} +1 -1
  171. package/dist/{chunk-811qpkzd.js → chunk-wn4j741t.js} +2 -2
  172. package/dist/{chunk-811qpkzd.js.map → chunk-wn4j741t.js.map} +1 -1
  173. package/dist/{chunk-xmy09pr9.js → chunk-wxyxnbh6.js} +4 -4
  174. package/dist/{chunk-xmy09pr9.js.map → chunk-wxyxnbh6.js.map} +1 -1
  175. package/dist/{chunk-tp37k8c0.js → chunk-x244kqcc.js} +2 -2
  176. package/dist/{chunk-tp37k8c0.js.map → chunk-x244kqcc.js.map} +1 -1
  177. package/dist/chunk-x26jb60f.js +4 -0
  178. package/dist/{chunk-z7wchajg.js.map → chunk-x26jb60f.js.map} +2 -2
  179. package/dist/{chunk-4ehzm7p1.js → chunk-xvk6aqd7.js} +3 -3
  180. package/dist/{chunk-4ehzm7p1.js.map → chunk-xvk6aqd7.js.map} +1 -1
  181. package/dist/chunk-xwqdh388.js +5 -0
  182. package/dist/chunk-xwqdh388.js.map +13 -0
  183. package/dist/{chunk-56b6m0d4.js → chunk-y45whafz.js} +2 -2
  184. package/dist/{chunk-56b6m0d4.js.map → chunk-y45whafz.js.map} +1 -1
  185. package/dist/{chunk-q8a7ncvs.js → chunk-y5kfqq4f.js} +2 -2
  186. package/dist/{chunk-q8a7ncvs.js.map → chunk-y5kfqq4f.js.map} +1 -1
  187. package/dist/chunk-ybcdxrqx.js +4 -0
  188. package/dist/{chunk-wqphnrej.js.map → chunk-ybcdxrqx.js.map} +2 -2
  189. package/dist/{chunk-7nmbzdys.js → chunk-yrbvfda9.js} +1 -1
  190. package/dist/{chunk-wc3q88a2.js → chunk-yykrvrpt.js} +1 -1
  191. package/dist/{chunk-fxvqtwte.js → chunk-zk1vwwv6.js} +2 -2
  192. package/dist/{chunk-fxvqtwte.js.map → chunk-zk1vwwv6.js.map} +1 -1
  193. package/dist/chunks/{RealtimeClient-BnNSz8AK.js → RealtimeClient-CLXePUcE.js} +2 -2
  194. package/dist/chunks/{RealtimeClient-BnNSz8AK.js.map → RealtimeClient-CLXePUcE.js.map} +1 -1
  195. package/dist/chunks/{ThemeProvider-CoQ-vnvy.js → ThemeProvider-COjYIalw.js} +74 -1273
  196. package/dist/chunks/ThemeProvider-COjYIalw.js.map +1 -0
  197. package/dist/chunks/{fetchFileRequest-Bhp0oJ0T.js → fetchFileRequest-BaufNZpI.js} +2 -2
  198. package/dist/chunks/{fetchFileRequest-Bhp0oJ0T.js.map → fetchFileRequest-BaufNZpI.js.map} +1 -1
  199. package/dist/chunks/{live-Dt8sq9W4.js → live-Dz_rk7fm.js} +4 -15
  200. package/dist/chunks/{live-Dt8sq9W4.js.map → live-Dz_rk7fm.js.map} +1 -1
  201. package/dist/chunks/{mutationExtras-ChOGPZlY.js → mutationExtras-DtSw6BcX.js} +2 -2
  202. package/dist/chunks/{mutationExtras-ChOGPZlY.js.map → mutationExtras-DtSw6BcX.js.map} +1 -1
  203. package/dist/chunks/rolldown-runtime-D7D4PA-g.js +13 -0
  204. package/dist/chunks/{subscriptionStream-DDl_H-QM.js → subscriptionStream-CqhJOfPn.js} +2 -2
  205. package/dist/chunks/{subscriptionStream-DDl_H-QM.js.map → subscriptionStream-CqhJOfPn.js.map} +1 -1
  206. package/dist/chunks/urlpattern-polyfill-Cc7YrzJf.js +913 -0
  207. package/dist/chunks/urlpattern-polyfill-Cc7YrzJf.js.map +1 -0
  208. package/dist/client/ClientRouter.d.ts +1 -1
  209. package/dist/client/ClientRouter.d.ts.map +1 -1
  210. package/dist/client/ClientRouterContext.d.ts +1 -1
  211. package/dist/client/ClientRouterContext.d.ts.map +1 -1
  212. package/dist/client/browserHistory.d.ts +13 -0
  213. package/dist/client/browserHistory.d.ts.map +1 -0
  214. package/dist/client/index.js +9 -6
  215. package/dist/client/index.js.map +1 -1
  216. package/dist/client/init.d.ts.map +1 -1
  217. package/dist/client/scrollRestoration.d.ts +1 -1
  218. package/dist/client/scrollRestoration.d.ts.map +1 -1
  219. package/dist/client/urlPattern.d.ts +30 -0
  220. package/dist/client/urlPattern.d.ts.map +1 -0
  221. package/dist/config/index.js +1 -1
  222. package/dist/console/run.js +2 -2
  223. package/dist/console/run.js.map +1 -1
  224. package/dist/container/index.js +2 -2
  225. package/dist/container/index.js.map +1 -1
  226. package/dist/database/index.js +2 -2
  227. package/dist/database/index.js.map +1 -1
  228. package/dist/email/index.js +2 -2
  229. package/dist/email/index.js.map +1 -1
  230. package/dist/facades/DB.d.ts +10 -0
  231. package/dist/facades/DB.d.ts.map +1 -1
  232. package/dist/facades/index.js +2 -2
  233. package/dist/facades/index.js.map +1 -1
  234. package/dist/foundation/index.js +2 -2
  235. package/dist/foundation/index.js.map +1 -1
  236. package/dist/http/index.js +2 -2
  237. package/dist/http/index.js.map +1 -1
  238. package/dist/i18n/dictionaryRuntime.js +2 -2
  239. package/dist/i18n/dictionaryRuntime.js.map +1 -1
  240. package/dist/i18n/index.js +2 -2
  241. package/dist/i18n/index.js.map +2 -2
  242. package/dist/kernel/index.js +2 -2
  243. package/dist/kernel/index.js.map +2 -2
  244. package/dist/orm/Model.d.ts.map +1 -1
  245. package/dist/orm/context.d.ts +54 -0
  246. package/dist/orm/context.d.ts.map +1 -1
  247. package/dist/orm/index.d.ts +1 -1
  248. package/dist/orm/index.d.ts.map +1 -1
  249. package/dist/orm/index.js +4 -4
  250. package/dist/orm/index.js.map +3 -3
  251. package/dist/probe/index.js +2 -2
  252. package/dist/probe/index.js.map +1 -1
  253. package/dist/server/index.js +2 -2
  254. package/dist/server/index.js.map +1 -1
  255. package/dist/services/index.js +2 -2
  256. package/dist/services/index.js.map +2 -2
  257. package/dist/services/queue/work.js +2 -2
  258. package/dist/services/queue/work.js.map +1 -1
  259. package/dist/services/router/ViewRouteDispatcher.d.ts +1 -0
  260. package/dist/services/router/ViewRouteDispatcher.d.ts.map +1 -1
  261. package/dist/stats/route-table.js +1 -1
  262. package/dist/support/index.js +2 -2
  263. package/dist/support/index.js.map +1 -1
  264. package/dist/testing/index.d.ts +1 -0
  265. package/dist/testing/index.d.ts.map +1 -1
  266. package/dist/testing/index.js +234 -2
  267. package/dist/testing/index.js.map +1 -1
  268. package/dist/vitest/index.js +2 -2
  269. package/dist/vitest/index.js.map +1 -1
  270. package/package.json +2 -1
  271. package/dist/chunk-02s440vh.js +0 -4
  272. package/dist/chunk-3e19n0f2.js +0 -4
  273. package/dist/chunk-4fw84bh6.js +0 -15
  274. package/dist/chunk-70qqpvd9.js +0 -24
  275. package/dist/chunk-9mhr0kwd.js +0 -5
  276. package/dist/chunk-ht5mq6ev.js +0 -10
  277. package/dist/chunk-rczmh97n.js +0 -9
  278. package/dist/chunk-rczmh97n.js.map +0 -10
  279. package/dist/chunk-tkskgvhc.js +0 -4
  280. package/dist/chunk-v325k8qj.js +0 -46
  281. package/dist/chunk-v325k8qj.js.map +0 -31
  282. package/dist/chunk-wqphnrej.js +0 -4
  283. package/dist/chunk-z7wchajg.js +0 -4
  284. package/dist/chunk-z97tptd1.js +0 -6
  285. package/dist/chunks/ThemeProvider-CoQ-vnvy.js.map +0 -1
  286. /package/dist/{chunk-95re1b2y.js.map → chunk-1kehwa3s.js.map} +0 -0
  287. /package/dist/{chunk-zvhks9s7.js.map → chunk-8pw4zjnx.js.map} +0 -0
  288. /package/dist/{chunk-7nmbzdys.js.map → chunk-yrbvfda9.js.map} +0 -0
  289. /package/dist/{chunk-wc3q88a2.js.map → chunk-yykrvrpt.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{ee as J,he as A}from"../../chunk-c6v3sjvh.js";import{tk as V}from"../../chunk-t91x2k88.js";import"../../chunk-5dhp90cx.js";import"../../chunk-ke7d7j2y.js";import"../../chunk-rczmh97n.js";import"../../chunk-cbmne0wt.js";import"../../chunk-vbdy4k14.js";import"../../chunk-vyp7d7xz.js";import{Ml as Y,Pl as N,Ql as Z,Rl as _,Vl as I}from"../../chunk-rwe4bgt3.js";import{Zl as x}from"../../chunk-1hpedme7.js";import"../../chunk-05k9201j.js";import $ from"path";function X(z){if(!z.config.get("route.channels"))return null;let C=z.config.get("broadcast",{}).driver;if(!(C===void 0||C==="memory"||C instanceof V))return null;return'[gemi] Broadcasts from this worker reach no one: the broadcast driver is "memory", which delivers to the sockets of the process that emits, and a worker has none. Set `driver: "redis"` in app/config/broadcast.ts.'}class L extends Error{name="QueueWorkerRefused"}class O{kernel;stopping;keepAlive;settings;constructor(z,C={}){this.kernel=z;this.settings={..._(),...C}}async start(){if(await this.kernel.waitForBoot(),this.stopping)return;let z=this.kernel.app;if(!z.bound(J))throw new L("[gemi] `gemi queue:work` has no queue to claim from: this application does not register QueueServiceProvider.");let C=z.make(J);if(!C.durable)throw new L('[gemi] `gemi queue:work` refuses to start: the queue uses the memory driver, which keeps each job in the process that dispatched it, so a worker never sees one. Set `driver: "database"` (or another driver every process can reach) in app/config/queue.ts, or run jobs in the server and drop the worker.');C.start(),this.keepAlive=setInterval(()=>{},1073741824),console.log(`[gemi] Queue worker started: claiming up to ${C.config.concurrency} job(s) at a time.`);let E=X(z);if(E)console.warn(E)}stop(z={}){return this.stopping??=this.drain({...this.settings,...z}),this.stopping}async drain(z){let C=Date.now()+z.timeoutMs;Y();let E=this.kernel.app,F=E.resolved(J)?E.make(J):void 0;if(F)console.log(`[gemi] Shutting down: waiting for ${F.running} running job(s) (up to ${z.timeoutMs/1000}s).`),await F.drain(z.timeoutMs);let G=N()===0;if(!G){let U=C-Date.now();if(G=U>0&&await Promise.race([Z().then(()=>!0),new Promise((K)=>setTimeout(()=>K(!1),U))]),!G)console.error(`[gemi] Shutdown grace period elapsed with ${N()} held background task(s) still running; abandoning them.`)}let H=await this.kernel.shutdown({timeoutMs:z.providerTimeoutMs});clearInterval(this.keepAlive);let T=G&&(F?.running??0)===0&&H.failed.length===0&&H.timedOut.length===0;return console.log(`[gemi] Shutdown ${T?"complete":"finished with errors"}.`),T?0:1}}async function j(){let z=x();process.env.ROOT_DIR=z,process.env.APP_DIR=$.join(z,"app"),A();let C=$.join(z,"app/kernel/Kernel.ts"),{default:E}=await import(C);if(typeof E!=="function")return console.error(`[gemi] ${C} has no default export to boot the worker from.`),1;let F=new E;F.boot();let G=new O(F);I(()=>G.stop());try{await G.start()}catch(H){if(!(H instanceof L))throw H;return console.error(H.message),1}return}j().then((z)=>{if(z!==void 0)process.exit(z)},(z)=>{console.error("[gemi] The queue worker failed to start:",z),process.exit(1)});
2
+ import{Be as J,Ee as A}from"../../chunk-n5k42dh7.js";import{Qk as V}from"../../chunk-efnerp0c.js";import"../../chunk-2t1eyzvq.js";import"../../chunk-dk1xxtgk.js";import"../../chunk-c7nbzryd.js";import"../../chunk-k62338g2.js";import"../../chunk-n3kg99yw.js";import"../../chunk-8jfnn7v6.js";import{lm as Y,om as N,pm as Z,qm as _,um as I}from"../../chunk-9hqnecjt.js";import{ym as x}from"../../chunk-4v5c4mes.js";import"../../chunk-k9882kqg.js";import $ from"path";function X(z){if(!z.config.get("route.channels"))return null;let C=z.config.get("broadcast",{}).driver;if(!(C===void 0||C==="memory"||C instanceof V))return null;return'[gemi] Broadcasts from this worker reach no one: the broadcast driver is "memory", which delivers to the sockets of the process that emits, and a worker has none. Set `driver: "redis"` in app/config/broadcast.ts.'}class L extends Error{name="QueueWorkerRefused"}class O{kernel;stopping;keepAlive;settings;constructor(z,C={}){this.kernel=z;this.settings={..._(),...C}}async start(){if(await this.kernel.waitForBoot(),this.stopping)return;let z=this.kernel.app;if(!z.bound(J))throw new L("[gemi] `gemi queue:work` has no queue to claim from: this application does not register QueueServiceProvider.");let C=z.make(J);if(!C.durable)throw new L('[gemi] `gemi queue:work` refuses to start: the queue uses the memory driver, which keeps each job in the process that dispatched it, so a worker never sees one. Set `driver: "database"` (or another driver every process can reach) in app/config/queue.ts, or run jobs in the server and drop the worker.');C.start(),this.keepAlive=setInterval(()=>{},1073741824),console.log(`[gemi] Queue worker started: claiming up to ${C.config.concurrency} job(s) at a time.`);let E=X(z);if(E)console.warn(E)}stop(z={}){return this.stopping??=this.drain({...this.settings,...z}),this.stopping}async drain(z){let C=Date.now()+z.timeoutMs;Y();let E=this.kernel.app,F=E.resolved(J)?E.make(J):void 0;if(F)console.log(`[gemi] Shutting down: waiting for ${F.running} running job(s) (up to ${z.timeoutMs/1000}s).`),await F.drain(z.timeoutMs);let G=N()===0;if(!G){let U=C-Date.now();if(G=U>0&&await Promise.race([Z().then(()=>!0),new Promise((K)=>setTimeout(()=>K(!1),U))]),!G)console.error(`[gemi] Shutdown grace period elapsed with ${N()} held background task(s) still running; abandoning them.`)}let H=await this.kernel.shutdown({timeoutMs:z.providerTimeoutMs});clearInterval(this.keepAlive);let T=G&&(F?.running??0)===0&&H.failed.length===0&&H.timedOut.length===0;return console.log(`[gemi] Shutdown ${T?"complete":"finished with errors"}.`),T?0:1}}async function j(){let z=x();process.env.ROOT_DIR=z,process.env.APP_DIR=$.join(z,"app"),A();let C=$.join(z,"app/kernel/Kernel.ts"),{default:E}=await import(C);if(typeof E!=="function")return console.error(`[gemi] ${C} has no default export to boot the worker from.`),1;let F=new E;F.boot();let G=new O(F);I(()=>G.stop());try{await G.start()}catch(H){if(!(H instanceof L))throw H;return console.error(H.message),1}return}j().then((z)=>{if(z!==void 0)process.exit(z)},(z)=>{console.error("[gemi] The queue worker failed to start:",z),process.exit(1)});
3
3
 
4
- //# debugId=BCF63251B303A4FF64756E2164756E21
4
+ //# debugId=4310506117AB72C264756E2164756E21
@@ -7,6 +7,6 @@
7
7
  "import type { Application, ShutdownReport } from \"../../foundation/Application\";\nimport {\n heldWork,\n heldWorkSettled,\n markShuttingDown,\n shutdownSettings,\n type ShutdownSettings,\n} from \"../../server/shutdown\";\nimport { memoryBroadcastInWorker } from \"../broadcast/workerWarning\";\nimport { QueueManager } from \"./QueueManager\";\n\n/** The part of a `Kernel` a worker drives. */\nexport type WorkerKernel = {\n readonly app: Application;\n waitForBoot(): Promise<void>;\n shutdown(options?: { timeoutMs?: number }): Promise<ShutdownReport>;\n};\n\n/**\n * A worker that was told to start in an application it cannot claim for. The\n * message is written for the operator reading the deploy's logs.\n */\nexport class QueueWorkerRefused extends Error {\n name = \"QueueWorkerRefused\";\n}\n\n/**\n * The process `gemi queue:work` runs: the application booted as a server boots\n * it, claiming from the queue, and no `Bun.serve`. It exists so job capacity\n * can be scaled apart from request traffic, which needs a driver both kinds of\n * process can reach; see `start` for why the memory driver is refused.\n *\n * The caller marks the process as a worker (`markQueueWorker`) before the\n * kernel registers, so every claim rule that asks `claimsInThisProcess` sees a\n * process that claims, whatever `GEMI_QUEUE_CLAIM` says.\n */\nexport class QueueWorker {\n private stopping: Promise<number> | undefined;\n private keepAlive: ReturnType<typeof setInterval> | undefined;\n private readonly settings: ShutdownSettings;\n\n /**\n * `settings` default to the `GEMI_SHUTDOWN_*` variables, read here rather\n * than at the signal so a bad value is warned about while the deploy is\n * being watched, as `Server.start` does.\n */\n constructor(\n private readonly kernel: WorkerKernel,\n settings: Partial<ShutdownSettings> = {},\n ) {\n this.settings = { ...shutdownSettings(), ...settings };\n }\n\n /**\n * Boots the application and starts claiming. Rejects with\n * `QueueWorkerRefused` when the application has no queue, or its queue uses\n * the memory driver.\n *\n * Refused rather than warned about, because a memory worker can never do\n * anything: its jobs live in a `Map` in the process that dispatched them,\n * so a worker's is always empty. Left running, it looks like a healthy\n * deploy — a process up, no errors — that runs nothing, and scaling it out\n * adds no capacity. An exit the platform reports as a crash loop is a form\n * of the mistake someone will see.\n */\n async start(): Promise<void> {\n await this.kernel.waitForBoot();\n // A signal during the boot has already drained and cleared the handle\n // below. Going on would start the loop again and arm a handle nothing\n // clears, holding open a worker that has finished shutting down.\n if (this.stopping) return;\n\n const application = this.kernel.app;\n // `bound`, not `make` in a try: an application built without the queue\n // provider is a configuration to name, not an unbound-token stack trace.\n if (!application.bound(QueueManager)) {\n throw new QueueWorkerRefused(\n \"[gemi] `gemi queue:work` has no queue to claim from: this application \" +\n \"does not register QueueServiceProvider.\",\n );\n }\n const queue = application.make(QueueManager);\n if (!queue.durable) {\n throw new QueueWorkerRefused(\n \"[gemi] `gemi queue:work` refuses to start: the queue uses the memory \" +\n \"driver, which keeps each job in the process that dispatched it, so \" +\n 'a worker never sees one. Set `driver: \"database\"` (or another driver ' +\n \"every process can reach) in app/config/queue.ts, or run jobs in the \" +\n \"server and drop the worker.\",\n );\n }\n\n // Idempotent: a production boot with a durable driver has already started\n // it (`startClaimingIfServing`). Development has not, and a worker claims\n // in either.\n queue.start();\n // The queue's poll timer is unref'd, so that a script's queue does not\n // hold it open; here the queue is the process, and without a handle of its\n // own an idle worker would exit 0 as soon as it booted.\n this.keepAlive = setInterval(() => {}, 1 << 30);\n console.log(\n `[gemi] Queue worker started: claiming up to ${queue.config.concurrency} job(s) at a time.`,\n );\n const broadcastWarning = memoryBroadcastInWorker(application);\n if (broadcastWarning) console.warn(broadcastWarning);\n }\n\n /**\n * Stops claiming, waits for the running jobs, runs every provider's\n * `shutdown()`, and resolves with the exit code: 0 when no job was left\n * running and every provider finished in time, 1 otherwise. Idempotent.\n *\n * `gemi start`'s drain, with the jobs where the requests were:\n * `isShuttingDown()` turns true, which stops a durable queue claiming;\n * running jobs get `timeoutMs` (`GEMI_SHUTDOWN_TIMEOUT`), which a server\n * spends on requests; then `Application.shutdown` gets `providerTimeoutMs`,\n * and in it the queue provider waits for whatever is still running and\n * names it. The two budgets add up as they do for a server, so a worker\n * fits the same grace period. `delayMs` is not waited: it is for a load\n * balancer, and nothing routes to a worker.\n */\n stop(settings: Partial<ShutdownSettings> = {}): Promise<number> {\n this.stopping ??= this.drain({ ...this.settings, ...settings });\n return this.stopping;\n }\n\n private async drain(settings: ShutdownSettings): Promise<number> {\n const deadline = Date.now() + settings.timeoutMs;\n markShuttingDown();\n const application = this.kernel.app;\n // Resolving the manager now would build a driver only to stop it, which\n // is what a signal during the boot, before the provider resolved it, finds.\n const queue = application.resolved(QueueManager) ? application.make(QueueManager) : undefined;\n if (queue) {\n console.log(\n `[gemi] Shutting down: waiting for ${queue.running} running job(s) ` +\n `(up to ${settings.timeoutMs / 1000}s).`,\n );\n await queue.drain(settings.timeoutMs);\n }\n // Work held with `holdShutdown` (#1210) gets what is left of the same budget.\n let held = heldWork() === 0;\n if (!held) {\n const remaining = deadline - Date.now();\n held =\n remaining > 0 &&\n (await Promise.race([\n heldWorkSettled().then(() => true),\n new Promise<false>((resolve) => setTimeout(() => resolve(false), remaining)),\n ]));\n if (!held) {\n console.error(\n `[gemi] Shutdown grace period elapsed with ${heldWork()} held background task(s) still running; abandoning them.`,\n );\n }\n }\n\n const report = await this.kernel.shutdown({ timeoutMs: settings.providerTimeoutMs });\n clearInterval(this.keepAlive);\n const clean =\n held && (queue?.running ?? 0) === 0 && report.failed.length === 0 && report.timedOut.length === 0;\n console.log(`[gemi] Shutdown ${clean ? \"complete\" : \"finished with errors\"}.`);\n return clean ? 0 : 1;\n }\n}\n"
8
8
  ],
9
9
  "mappings": ";gdAYA,kBCDO,OAAS,DAAuB,DAAC,AAAyC,DAC/E,CAAI,DAAC,AAAY,KAAO,IAAI,gBAAgB,EAAG,OAAO,KACtD,IAAM,EAAS,EAAY,OAAO,IAAqB,YAAa,CAAC,CAAC,EAAE,OAGxE,GAAI,EADF,IAAW,QAAa,IAAW,UAAY,aAAkB,GACtD,OAAO,KACpB,MACE,uNCIG,MAAM,UAA2B,KAAM,CAC5C,KAAO,oBACT,CAYO,MAAM,CAAY,CAWJ,OAVX,SACA,UACS,SAOjB,WAAW,CACQ,EACjB,EAAsC,CAAC,EACvC,CAFiB,cAGjB,KAAK,SAAW,IAAK,EAAiB,KAAM,CAAS,OAejD,MAAK,EAAkB,CAK3B,GAJA,MAAM,KAAK,OAAO,YAAY,EAI1B,KAAK,SAAU,OAEnB,IAAM,EAAc,KAAK,OAAO,IAGhC,GAAI,CAAC,EAAY,MAAM,CAAY,EACjC,MAAM,IAAI,EACR,+GAEF,EAEF,IAAM,EAAQ,EAAY,KAAK,CAAY,EAC3C,GAAI,CAAC,EAAM,QACT,MAAM,IAAI,EACR,8SAKF,EAMF,EAAM,MAAM,EAIZ,KAAK,UAAY,YAAY,IAAM,GAAI,UAAO,EAC9C,QAAQ,IACN,+CAA+C,EAAM,OAAO,+BAC9D,EACA,IAAM,EAAmB,EAAwB,CAAW,EAC5D,GAAI,EAAkB,QAAQ,KAAK,CAAgB,EAiBrD,IAAI,CAAC,EAAsC,CAAC,EAAoB,CAE9D,OADA,KAAK,WAAa,KAAK,MAAM,IAAK,KAAK,YAAa,CAAS,CAAC,EACvD,KAAK,cAGA,MAAK,CAAC,EA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AK,CAAC,EAE1C,GAAI,CACF,MAAM,EAAO,MAAM,EACnB,MAAO,EAAO,CACd,GAAI,EAAE,aAAiB,GAAqB,MAAM,EAElD,OADA,QAAQ,MAAM,EAAM,OAAO,EACpB,EAGT,OAGF,EAAK,EAAE,KACL,CAAC,IAAS,CACR,GAAI,IAAS,OAAW,QAAQ,KAAK,CAAI,GAE3C,CAAC,IAAU,CACT,QAAQ,MAAM,2CAA4C,CAAK,EAC/D,QAAQ,KAAK,CAAC,EAElB",
10
- "debugId": "BCF63251B303A4FF64756E2164756E21",
10
+ "debugId": "4310506117AB72C264756E2164756E21",
11
11
  "names": []
12
12
  }
@@ -1,3 +1,4 @@
1
+ import "urlpattern-polyfill";
1
2
  import { HttpRequest } from "../../http";
2
3
  import { type CarriedContext } from "../../http/requestContext";
3
4
  import { type FlatViewRoutes } from "./createFlatViewRoutes";
@@ -1 +1 @@
1
- {"version":3,"file":"ViewRouteDispatcher.d.ts","sourceRoot":"","sources":["../../../services/router/ViewRouteDispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAE,KAAK,cAAc,EAAmC,MAAM,2BAA2B,CAAC;AAEjG,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,UAAU,CAAC;AAYlB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAUxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAiBpD,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,kBAAkB,CAAC;AAqH1B;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAE/C;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,wBAAgB,0B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WAWG;QACH,WAAW,CAAC,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,EAAE,CAAA;SAAE,CAAC;QACpD;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QACjD;;;;WAIG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,wEAAwE;QACxE,aAAa,CAAC,EAAE,cAAc,CAAC;QAC/B;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CA+oCJ"}
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import"../chunk-05k9201j.js";import M from"path";import{writeFileSync as Q}from"fs";var L=new Set(["FILE","REDIRECT"]);function H(j){return j.run(()=>{let x=[];for(let{group:z,view:D}of j.domains().viewGroups())for(let[G,B]of Object.entries(D.flatViewRoutes)){let C=D.routeManifest[G]??B.segments.map((K)=>K.viewPath);if(C.length===0||L.has(C.at(-1)))continue;x.push({path:G,group:z,views:C,...B.static?{static:{...B.static.layout?{layout:B.static.layout}:{},...B.static.navigation?{navigation:!0}:{}}}:{}})}return x})}var J=process.argv[2];async function U(){if(!J)throw Error("usage: route-table <out.json>");let j=M.resolve(process.cwd(),"app/kernel/Kernel.ts"),x=await import(j);if(typeof x.default!=="function")throw Error(`${j} has no default export (the Kernel subclass).`);let z=new x.default;z.boot();try{Q(J,JSON.stringify(H(z)))}finally{z.destroy()}}U().then(()=>process.exit(0),(j)=>{console.error(j?.stack??String(j)),process.exit(1)});
2
+ import"../chunk-k9882kqg.js";import M from"path";import{writeFileSync as Q}from"fs";var L=new Set(["FILE","REDIRECT"]);function H(j){return j.run(()=>{let x=[];for(let{group:z,view:D}of j.domains().viewGroups())for(let[G,B]of Object.entries(D.flatViewRoutes)){let C=D.routeManifest[G]??B.segments.map((K)=>K.viewPath);if(C.length===0||L.has(C.at(-1)))continue;x.push({path:G,group:z,views:C,...B.static?{static:{...B.static.layout?{layout:B.static.layout}:{},...B.static.navigation?{navigation:!0}:{}}}:{}})}return x})}var J=process.argv[2];async function U(){if(!J)throw Error("usage: route-table <out.json>");let j=M.resolve(process.cwd(),"app/kernel/Kernel.ts"),x=await import(j);if(typeof x.default!=="function")throw Error(`${j} has no default export (the Kernel subclass).`);let z=new x.default;z.boot();try{Q(J,JSON.stringify(H(z)))}finally{z.destroy()}}U().then(()=>process.exit(0),(j)=>{console.error(j?.stack??String(j)),process.exit(1)});
3
3
 
4
4
  //# debugId=05EB0087C5A2060D64756E2164756E21
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{me as Y}from"../chunk-h19qtrg9.js";import{yk as M}from"../chunk-ke7d7j2y.js";import{Al as P,Cl as R}from"../chunk-vbdy4k14.js";import"../chunk-vyp7d7xz.js";import{Wl as Q,Xl as U,Yl as V,Zl as W}from"../chunk-1hpedme7.js";import"../chunk-05k9201j.js";class S{static token;async boot(){}onShutdown(x){}static inject(){if(!this.token)throw Error(`Service [${this.name}] does not declare a \`static token\`, so the container has no key to resolve it by.`);try{return R(this)}catch(x){throw Error(`Could not inject [${this.name}]. Services are constructed when the kernel boots, so `+"inject() only works from code that runs after that \u2014 a constructor default or a method "+`body, never module top level. Check that [${this.name}] is listed in \`services\` on your Kernel.`,{cause:x})}}static with(x){let f=new this;for(let[C,g]of Object.entries(x))if(g!==void 0)f[C]=g;return f}}import{readdir as z}from"fs/promises";import{join as B,parse as j}from"path";var H=[".ts",".tsx",".js",".mjs",".jsx"];function J(x={}){let f={};for(let[C,g]of Object.entries(x))f[C]=q(g);return new P(f)}async function L(x,f=new P){let C=[];try{C=await z(x)}catch(D){return f}let g=C.filter((D)=>{let{ext:v,name:F}=j(D);return H.includes(v)&&!F.startsWith(".")}).sort();for(let D of g){let{name:v}=j(D),F=await import(B(x,D));f.set(v,q(F))}return f}function q(x){if(x&&typeof x==="object"&&"default"in x)return x.default;return x}export{M as withDefaults,Q as sourceFiles,W as projectRoot,L as loadConfigFrom,V as discoverClasses,J as createConfigRepository,Y as ServiceProvider,S as Service,P as Repository,U as DiscoveryError};
2
+ import{Je as Y}from"../chunk-f52maa9b.js";import{Vk as M}from"../chunk-dk1xxtgk.js";import{$l as P,bm as R}from"../chunk-n3kg99yw.js";import"../chunk-8jfnn7v6.js";import{vm as Q,wm as U,xm as V,ym as W}from"../chunk-4v5c4mes.js";import"../chunk-k9882kqg.js";class S{static token;async boot(){}onShutdown(x){}static inject(){if(!this.token)throw Error(`Service [${this.name}] does not declare a \`static token\`, so the container has no key to resolve it by.`);try{return R(this)}catch(x){throw Error(`Could not inject [${this.name}]. Services are constructed when the kernel boots, so `+"inject() only works from code that runs after that \u2014 a constructor default or a method "+`body, never module top level. Check that [${this.name}] is listed in \`services\` on your Kernel.`,{cause:x})}}static with(x){let f=new this;for(let[C,g]of Object.entries(x))if(g!==void 0)f[C]=g;return f}}import{readdir as z}from"fs/promises";import{join as B,parse as j}from"path";var H=[".ts",".tsx",".js",".mjs",".jsx"];function J(x={}){let f={};for(let[C,g]of Object.entries(x))f[C]=q(g);return new P(f)}async function L(x,f=new P){let C=[];try{C=await z(x)}catch(D){return f}let g=C.filter((D)=>{let{ext:v,name:F}=j(D);return H.includes(v)&&!F.startsWith(".")}).sort();for(let D of g){let{name:v}=j(D),F=await import(B(x,D));f.set(v,q(F))}return f}function q(x){if(x&&typeof x==="object"&&"default"in x)return x.default;return x}export{M as withDefaults,Q as sourceFiles,W as projectRoot,L as loadConfigFrom,V as discoverClasses,J as createConfigRepository,Y as ServiceProvider,S as Service,P as Repository,U as DiscoveryError};
3
3
 
4
- //# debugId=8959269EE9023E9D64756E2164756E21
4
+ //# debugId=DCAEB1124CC0BE1664756E2164756E21
@@ -6,6 +6,6 @@
6
6
  "import { readdir } from \"node:fs/promises\";\nimport { join, parse } from \"node:path\";\n\nimport { Repository } from \"./Repository\";\n\nconst CONFIG_EXTENSIONS = [\".ts\", \".tsx\", \".js\", \".mjs\", \".jsx\"];\n\n// Builds a Repository from an already-imported map of config modules. The map\n// key becomes the top-level config key, so `{ mail: mailModule }` is readable\n// as `config.get(\"mail.driver\")`. Each entry may be either the module namespace\n// (its `default` export is unwrapped) or the config object itself.\nexport function createConfigRepository(\n modules: Record<string, any> = {},\n): Repository {\n const items: Record<string, any> = {};\n\n for (const [key, mod] of Object.entries(modules)) {\n items[key] = unwrap(mod);\n }\n\n return new Repository(items);\n}\n\n// Reads every config module in an app's `app/config` directory into a\n// Repository. The file's basename is the top-level key: `app/config/mail.ts`\n// populates `mail.*`. A missing directory yields an empty Repository so apps\n// that declare no config still boot.\nexport async function loadConfigFrom(\n directory: string,\n repository = new Repository(),\n): Promise<Repository> {\n let entries: string[] = [];\n\n try {\n entries = await readdir(directory);\n } catch (err) {\n return repository;\n }\n\n const files = entries\n .filter((entry) => {\n const { ext, name } = parse(entry);\n return CONFIG_EXTENSIONS.includes(ext) && !name.startsWith(\".\");\n })\n .sort();\n\n for (const file of files) {\n const { name } = parse(file);\n const mod = await import(join(directory, file));\n repository.set(name, unwrap(mod));\n }\n\n return repository;\n}\n\nfunction unwrap(mod: any) {\n if (mod && typeof mod === \"object\" && \"default\" in mod) {\n return mod.default;\n }\n return mod;\n}\n"
7
7
  ],
8
8
  "mappings": ";2RAiCO,CAAe,JAAQ,EAOrB,OAMD,AAAI,EAAkB,EAmB5B,UAAU,CAAC,EAEkD,QAmBtD,OAAS,EAKX,CACH,GAAI,CAAC,KAAK,MACR,MAAU,MACR,YAAY,KAAK,0FACnB,EAGF,GAAI,CACF,OAAO,EAAI,IAAuB,EAClC,MAAO,EAAO,CACd,MAAU,MACR,qBAAqB,KAAK,6DACxB,+FACA,6CAA6C,KAAK,kDAEpD,CAAE,OAAM,CACV,SAoBG,KAAuB,CAAoB,EAA0B,CAC1E,IAAM,EAAW,IAAI,KACrB,QAAY,EAAK,KAAU,OAAO,QAAQ,CAAS,EACjD,GAAI,IAAU,OAAW,EAAS,GAAO,EAE3C,OAAO,EAEX,CCtIA,kBAAS,oBACT,eAAS,WAAM,aAIf,IAAM,EAAoB,CAAC,MAAO,OAAQ,MAAO,OAAQ,MAAM,EAMxD,SAAS,CAAsB,CACpC,EAA+B,CAAC,EACpB,CACZ,IAAM,EAA6B,CAAC,EAEpC,QAAY,EAAK,KAAQ,OAAO,QAAQ,CAAO,EAC7C,EAAM,GAAO,EAAO,CAAG,EAGzB,OAAO,IAAI,EAAW,CAAK,EAO7B,eAAsB,CAAc,CAClC,EACA,EAAa,IAAI,EACI,CACrB,IAAI,EAAoB,CAAC,EAEzB,GAAI,CACF,EAAU,MAAM,EAAQ,CAAS,EACjC,MAAO,EAAK,CACZ,OAAO,EAGT,IAAM,EAAQ,EACX,OAAO,CAAC,IAAU,CACjB,IAAQ,MAAK,QAAS,EAAM,CAAK,EACjC,OAAO,EAAkB,SAAS,CAAG,GAAK,CAAC,EAAK,WAAW,GAAG,EAC/D,EACA,KAAK,EAER,QAAW,KAAQ,EAAO,CACxB,IAAQ,QAAS,EAAM,CAAI,EACrB,EAAM,MAAa,SAAK,EAAW,CAAI,GAC7C,EAAW,IAAI,EAAM,EAAO,CAAG,CAAC,EAGlC,OAAO,EAGT,SAAS,CAAM,CAAC,EAAU,CACxB,GAAI,GAAO,OAAO,IAAQ,UAAY,YAAa,EACjD,OAAO,EAAI,QAEb,OAAO",
9
- "debugId": "8959269EE9023E9D64756E2164756E21",
9
+ "debugId": "DCAEB1124CC0BE1664756E2164756E21",
10
10
  "names": []
11
11
  }
@@ -1,3 +1,4 @@
1
+ import "urlpattern-polyfill";
1
2
  export { Page } from "./Page";
2
3
  export type { PageProps, PageDictionary } from "./Page";
3
4
  export { fakeSocket, FakeSocket } from "../client/realtime/FakeSocket";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAE7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,GACf,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../testing/index.ts"],"names":[],"mappings":"AAEA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAE7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,GACf,MAAM,kBAAkB,CAAC"}
@@ -1,10 +1,242 @@
1
- import { t as followLive } from "../chunks/live-Dt8sq9W4.js";
2
- import { $ as toVariantKey, B as Action, G as RealtimeContext, J as liveModule, N as I18nProvider, P as ServerDataContext, V as createMemoryHistory, c as ClientRouterContext, et as applyParams, i as RouteTransitionProvider, nt as QueryManagerContext, r as m, rt as QueryManagerProvider, t as ThemeProvider, xt as Subject, z as ProgressManager } from "../chunks/ThemeProvider-CoQ-vnvy.js";
1
+ import { $ as applyParams, N as I18nProvider, P as ServerDataContext, Q as toVariantKey, W as RealtimeContext, bt as Subject, c as ClientRouterContext, i as RouteTransitionProvider, nt as QueryManagerProvider, q as liveModule, r as m, t as ThemeProvider, tt as QueryManagerContext, z as ProgressManager } from "../chunks/ThemeProvider-COjYIalw.js";
3
2
  import { r as RouteStateProvider } from "../chunks/useParams-BN3XXfmG.js";
3
+ import "../chunks/urlpattern-polyfill-Cc7YrzJf.js";
4
4
  import { t as channelKey } from "../chunks/channelKey-CIhHpX6x.js";
5
+ import { t as followLive } from "../chunks/live-Dz_rk7fm.js";
5
6
  import { Suspense, createElement, useContext, useMemo, useRef, useState } from "react";
6
7
  import { jsx } from "react/jsx-runtime";
7
8
  import { hydrateRoot } from "react-dom/client";
9
+ //#region ../../node_modules/.bun/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js
10
+ function _extends() {
11
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
12
+ for (var e = 1; e < arguments.length; e++) {
13
+ var t = arguments[e];
14
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
15
+ }
16
+ return n;
17
+ }, _extends.apply(null, arguments);
18
+ }
19
+ //#endregion
20
+ //#region ../../node_modules/.bun/history@5.3.0/node_modules/history/index.js
21
+ /**
22
+ * Actions represent the type of change to a location value.
23
+ *
24
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action
25
+ */
26
+ var Action;
27
+ (function(Action) {
28
+ /**
29
+ * A POP indicates a change to an arbitrary index in the history stack, such
30
+ * as a back or forward navigation. It does not describe the direction of the
31
+ * navigation, only that the current index changed.
32
+ *
33
+ * Note: This is the default action for newly created history objects.
34
+ */
35
+ Action["Pop"] = "POP";
36
+ /**
37
+ * A PUSH indicates a new entry being added to the history stack, such as when
38
+ * a link is clicked and a new page loads. When this happens, all subsequent
39
+ * entries in the stack are lost.
40
+ */
41
+ Action["Push"] = "PUSH";
42
+ /**
43
+ * A REPLACE indicates the entry at the current index in the history stack
44
+ * being replaced by a new one.
45
+ */
46
+ Action["Replace"] = "REPLACE";
47
+ })(Action || (Action = {}));
48
+ var readOnly = process.env.NODE_ENV !== "production" ? function(obj) {
49
+ return Object.freeze(obj);
50
+ } : function(obj) {
51
+ return obj;
52
+ };
53
+ function warning(cond, message) {
54
+ if (!cond) {
55
+ if (typeof console !== "undefined") console.warn(message);
56
+ try {
57
+ throw new Error(message);
58
+ } catch (e) {}
59
+ }
60
+ }
61
+ /**
62
+ * Memory history stores the current location in memory. It is designed for use
63
+ * in stateful non-browser environments like tests and React Native.
64
+ *
65
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#creatememoryhistory
66
+ */
67
+ function createMemoryHistory(options) {
68
+ if (options === void 0) options = {};
69
+ var _options3 = options, _options3$initialEntr = _options3.initialEntries, initialEntries = _options3$initialEntr === void 0 ? ["/"] : _options3$initialEntr, initialIndex = _options3.initialIndex;
70
+ var entries = initialEntries.map(function(entry) {
71
+ var location = readOnly(_extends({
72
+ pathname: "/",
73
+ search: "",
74
+ hash: "",
75
+ state: null,
76
+ key: createKey()
77
+ }, typeof entry === "string" ? parsePath(entry) : entry));
78
+ process.env.NODE_ENV !== "production" && warning(location.pathname.charAt(0) === "/", "Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: " + JSON.stringify(entry) + ")");
79
+ return location;
80
+ });
81
+ var index = clamp(initialIndex == null ? entries.length - 1 : initialIndex, 0, entries.length - 1);
82
+ var action = Action.Pop;
83
+ var location = entries[index];
84
+ var listeners = createEvents();
85
+ var blockers = createEvents();
86
+ function createHref(to) {
87
+ return typeof to === "string" ? to : createPath(to);
88
+ }
89
+ function getNextLocation(to, state) {
90
+ if (state === void 0) state = null;
91
+ return readOnly(_extends({
92
+ pathname: location.pathname,
93
+ search: "",
94
+ hash: ""
95
+ }, typeof to === "string" ? parsePath(to) : to, {
96
+ state,
97
+ key: createKey()
98
+ }));
99
+ }
100
+ function allowTx(action, location, retry) {
101
+ return !blockers.length || (blockers.call({
102
+ action,
103
+ location,
104
+ retry
105
+ }), false);
106
+ }
107
+ function applyTx(nextAction, nextLocation) {
108
+ action = nextAction;
109
+ location = nextLocation;
110
+ listeners.call({
111
+ action,
112
+ location
113
+ });
114
+ }
115
+ function push(to, state) {
116
+ var nextAction = Action.Push;
117
+ var nextLocation = getNextLocation(to, state);
118
+ function retry() {
119
+ push(to, state);
120
+ }
121
+ process.env.NODE_ENV !== "production" && warning(location.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.push(" + JSON.stringify(to) + ")");
122
+ if (allowTx(nextAction, nextLocation, retry)) {
123
+ index += 1;
124
+ entries.splice(index, entries.length, nextLocation);
125
+ applyTx(nextAction, nextLocation);
126
+ }
127
+ }
128
+ function replace(to, state) {
129
+ var nextAction = Action.Replace;
130
+ var nextLocation = getNextLocation(to, state);
131
+ function retry() {
132
+ replace(to, state);
133
+ }
134
+ process.env.NODE_ENV !== "production" && warning(location.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.replace(" + JSON.stringify(to) + ")");
135
+ if (allowTx(nextAction, nextLocation, retry)) {
136
+ entries[index] = nextLocation;
137
+ applyTx(nextAction, nextLocation);
138
+ }
139
+ }
140
+ function go(delta) {
141
+ var nextIndex = clamp(index + delta, 0, entries.length - 1);
142
+ var nextAction = Action.Pop;
143
+ var nextLocation = entries[nextIndex];
144
+ function retry() {
145
+ go(delta);
146
+ }
147
+ if (allowTx(nextAction, nextLocation, retry)) {
148
+ index = nextIndex;
149
+ applyTx(nextAction, nextLocation);
150
+ }
151
+ }
152
+ return {
153
+ get index() {
154
+ return index;
155
+ },
156
+ get action() {
157
+ return action;
158
+ },
159
+ get location() {
160
+ return location;
161
+ },
162
+ createHref,
163
+ push,
164
+ replace,
165
+ go,
166
+ back: function back() {
167
+ go(-1);
168
+ },
169
+ forward: function forward() {
170
+ go(1);
171
+ },
172
+ listen: function listen(listener) {
173
+ return listeners.push(listener);
174
+ },
175
+ block: function block(blocker) {
176
+ return blockers.push(blocker);
177
+ }
178
+ };
179
+ }
180
+ function clamp(n, lowerBound, upperBound) {
181
+ return Math.min(Math.max(n, lowerBound), upperBound);
182
+ }
183
+ function createEvents() {
184
+ var handlers = [];
185
+ return {
186
+ get length() {
187
+ return handlers.length;
188
+ },
189
+ push: function push(fn) {
190
+ handlers.push(fn);
191
+ return function() {
192
+ handlers = handlers.filter(function(handler) {
193
+ return handler !== fn;
194
+ });
195
+ };
196
+ },
197
+ call: function call(arg) {
198
+ handlers.forEach(function(fn) {
199
+ return fn && fn(arg);
200
+ });
201
+ }
202
+ };
203
+ }
204
+ function createKey() {
205
+ return Math.random().toString(36).substr(2, 8);
206
+ }
207
+ /**
208
+ * Creates a string URL path from the given pathname, search, and hash components.
209
+ *
210
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createpath
211
+ */
212
+ function createPath(_ref) {
213
+ var _ref$pathname = _ref.pathname, pathname = _ref$pathname === void 0 ? "/" : _ref$pathname, _ref$search = _ref.search, search = _ref$search === void 0 ? "" : _ref$search, _ref$hash = _ref.hash, hash = _ref$hash === void 0 ? "" : _ref$hash;
214
+ if (search && search !== "?") pathname += search.charAt(0) === "?" ? search : "?" + search;
215
+ if (hash && hash !== "#") pathname += hash.charAt(0) === "#" ? hash : "#" + hash;
216
+ return pathname;
217
+ }
218
+ /**
219
+ * Parses a string URL path into its separate pathname, search, and hash components.
220
+ *
221
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath
222
+ */
223
+ function parsePath(path) {
224
+ var parsedPath = {};
225
+ if (path) {
226
+ var hashIndex = path.indexOf("#");
227
+ if (hashIndex >= 0) {
228
+ parsedPath.hash = path.substr(hashIndex);
229
+ path = path.substr(0, hashIndex);
230
+ }
231
+ var searchIndex = path.indexOf("?");
232
+ if (searchIndex >= 0) {
233
+ parsedPath.search = path.substr(searchIndex);
234
+ path = path.substr(0, searchIndex);
235
+ }
236
+ if (path) parsedPath.pathname = path;
237
+ }
238
+ return parsedPath;
239
+ }
8
240
  var LITERAL_SEGMENT = /^[A-Za-z0-9_-]+$/;
9
241
  var PARAM_SEGMENT = /^:[A-Za-z_][A-Za-z0-9_]*$/;
10
242
  var PARAM_VALUE = /^[A-Za-z0-9_-]{1,128}$/;