gemi 0.119.1 → 0.120.0

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 (237) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/ai/index.js.map +1 -1
  3. package/dist/app/index.js +2 -2
  4. package/dist/app/index.js.map +1 -1
  5. package/dist/auth/routes.d.ts.map +1 -1
  6. package/dist/bin/gemi.js +32 -5
  7. package/dist/bin/gemi.js.map +6 -5
  8. package/dist/bun/plugin.js +1 -1
  9. package/dist/bun/preload.js +1 -1
  10. package/dist/{chunk-xfw8zyvn.js → chunk-0ejjgzwc.js} +2 -2
  11. package/dist/{chunk-xfw8zyvn.js.map → chunk-0ejjgzwc.js.map} +1 -1
  12. package/dist/{chunk-33s2xqv1.js → chunk-0k02tza1.js} +1 -1
  13. package/dist/{chunk-a1qt8aky.js → chunk-0yj0s1pn.js} +2 -2
  14. package/dist/{chunk-a1qt8aky.js.map → chunk-0yj0s1pn.js.map} +1 -1
  15. package/dist/{chunk-y09r0wsw.js → chunk-19dpzp4y.js} +3 -3
  16. package/dist/{chunk-y09r0wsw.js.map → chunk-19dpzp4y.js.map} +1 -1
  17. package/dist/{chunk-cvfg88cx.js → chunk-1wnnkde0.js} +3 -3
  18. package/dist/{chunk-cvfg88cx.js.map → chunk-1wnnkde0.js.map} +1 -1
  19. package/dist/{chunk-xx7necqt.js → chunk-1xdrs2hx.js} +3 -3
  20. package/dist/{chunk-xx7necqt.js.map → chunk-1xdrs2hx.js.map} +1 -1
  21. package/dist/{chunk-mdp2dsbb.js → chunk-231a9920.js} +3 -3
  22. package/dist/{chunk-mdp2dsbb.js.map → chunk-231a9920.js.map} +3 -3
  23. package/dist/{chunk-scc0j5k9.js → chunk-2c0s0561.js} +2 -2
  24. package/dist/{chunk-scc0j5k9.js.map → chunk-2c0s0561.js.map} +1 -1
  25. package/dist/{chunk-8wcpxm41.js → chunk-2n3pgfnb.js} +2 -2
  26. package/dist/{chunk-8wcpxm41.js.map → chunk-2n3pgfnb.js.map} +1 -1
  27. package/dist/{chunk-q290tgza.js → chunk-32n8t8x6.js} +2 -2
  28. package/dist/{chunk-q290tgza.js.map → chunk-32n8t8x6.js.map} +1 -1
  29. package/dist/{chunk-pvz90a49.js → chunk-3gsv1vv1.js} +2 -2
  30. package/dist/{chunk-hm9cjxy2.js.map → chunk-3gsv1vv1.js.map} +1 -1
  31. package/dist/{chunk-sce5jes2.js → chunk-3wnghdsx.js} +2 -2
  32. package/dist/{chunk-sce5jes2.js.map → chunk-3wnghdsx.js.map} +1 -1
  33. package/dist/{chunk-01ehxca0.js → chunk-471htqmz.js} +2 -2
  34. package/dist/{chunk-01ehxca0.js.map → chunk-471htqmz.js.map} +1 -1
  35. package/dist/{chunk-dwpn6fze.js → chunk-48gmyaxc.js} +2 -2
  36. package/dist/{chunk-dwpn6fze.js.map → chunk-48gmyaxc.js.map} +1 -1
  37. package/dist/{chunk-3zxfd7pn.js → chunk-4acpw92g.js} +3 -3
  38. package/dist/{chunk-3zxfd7pn.js.map → chunk-4acpw92g.js.map} +1 -1
  39. package/dist/{chunk-d806cy7p.js → chunk-4fx8p02c.js} +2 -2
  40. package/dist/{chunk-d806cy7p.js.map → chunk-4fx8p02c.js.map} +1 -1
  41. package/dist/{chunk-xtzn0qfh.js → chunk-51w5ktv2.js} +3 -3
  42. package/dist/{chunk-xtzn0qfh.js.map → chunk-51w5ktv2.js.map} +1 -1
  43. package/dist/{chunk-cte6ysqd.js → chunk-5nj94s66.js} +4 -4
  44. package/dist/{chunk-cte6ysqd.js.map → chunk-5nj94s66.js.map} +1 -1
  45. package/dist/{chunk-bgwtdbfw.js → chunk-5tdxbwzg.js} +3 -3
  46. package/dist/{chunk-bgwtdbfw.js.map → chunk-5tdxbwzg.js.map} +1 -1
  47. package/dist/{chunk-hkf2k2eq.js → chunk-65beps2q.js} +3 -3
  48. package/dist/{chunk-hkf2k2eq.js.map → chunk-65beps2q.js.map} +1 -1
  49. package/dist/{chunk-1z1rj2zq.js → chunk-6yhpprzs.js} +3 -3
  50. package/dist/{chunk-1z1rj2zq.js.map → chunk-6yhpprzs.js.map} +1 -1
  51. package/dist/{chunk-j5858bz7.js → chunk-7ftj43vp.js} +2 -2
  52. package/dist/{chunk-j5858bz7.js.map → chunk-7ftj43vp.js.map} +1 -1
  53. package/dist/{chunk-qf4bmee9.js → chunk-7g649j8h.js} +2 -2
  54. package/dist/{chunk-qf4bmee9.js.map → chunk-7g649j8h.js.map} +1 -1
  55. package/dist/{chunk-675kzd7z.js → chunk-7mmw0jr2.js} +2 -2
  56. package/dist/{chunk-675kzd7z.js.map → chunk-7mmw0jr2.js.map} +1 -1
  57. package/dist/{chunk-pkr5dsbk.js → chunk-9d2d08qm.js} +2 -2
  58. package/dist/{chunk-pkr5dsbk.js.map → chunk-9d2d08qm.js.map} +1 -1
  59. package/dist/{chunk-r1favzz4.js → chunk-9rr5h818.js} +3 -3
  60. package/dist/{chunk-r1favzz4.js.map → chunk-9rr5h818.js.map} +1 -1
  61. package/dist/{chunk-30xxc6r7.js → chunk-9xyxbxgk.js} +2 -2
  62. package/dist/{chunk-30xxc6r7.js.map → chunk-9xyxbxgk.js.map} +1 -1
  63. package/dist/{chunk-6ggmk2eg.js → chunk-c0v61fp5.js} +2 -2
  64. package/dist/{chunk-6ggmk2eg.js.map → chunk-c0v61fp5.js.map} +1 -1
  65. package/dist/{chunk-hzepfrzy.js → chunk-c7qs1xp3.js} +2 -2
  66. package/dist/{chunk-hzepfrzy.js.map → chunk-c7qs1xp3.js.map} +1 -1
  67. package/dist/{chunk-1m3hvy3q.js → chunk-cca0grq3.js} +2 -2
  68. package/dist/{chunk-1m3hvy3q.js.map → chunk-cca0grq3.js.map} +1 -1
  69. package/dist/{chunk-g9hhdcax.js → chunk-cskqet01.js} +2 -2
  70. package/dist/{chunk-g9hhdcax.js.map → chunk-cskqet01.js.map} +1 -1
  71. package/dist/{chunk-8t6dwwz6.js → chunk-cvr5624r.js} +1 -1
  72. package/dist/{chunk-xzn2nmny.js → chunk-d2c3947c.js} +2 -2
  73. package/dist/{chunk-xzn2nmny.js.map → chunk-d2c3947c.js.map} +1 -1
  74. package/dist/{chunk-jg79n382.js → chunk-d5f1m3d2.js} +2 -2
  75. package/dist/{chunk-jg79n382.js.map → chunk-d5f1m3d2.js.map} +1 -1
  76. package/dist/{chunk-rpwb1t5z.js → chunk-dbx3g5ck.js} +2 -2
  77. package/dist/{chunk-rpwb1t5z.js.map → chunk-dbx3g5ck.js.map} +1 -1
  78. package/dist/chunk-dc8gyybt.js +24 -0
  79. package/dist/{chunk-rbm57mck.js.map → chunk-dc8gyybt.js.map} +3 -3
  80. package/dist/{chunk-tfdmvxza.js → chunk-dedqr5wb.js} +2 -2
  81. package/dist/{chunk-tfdmvxza.js.map → chunk-dedqr5wb.js.map} +1 -1
  82. package/dist/{chunk-aedkrck1.js → chunk-dhbgrv58.js} +1 -1
  83. package/dist/{chunk-nang3847.js → chunk-dwedx1jb.js} +3 -3
  84. package/dist/{chunk-nang3847.js.map → chunk-dwedx1jb.js.map} +1 -1
  85. package/dist/{chunk-m4kmetpb.js → chunk-ep0baa9g.js} +2 -2
  86. package/dist/{chunk-m4kmetpb.js.map → chunk-ep0baa9g.js.map} +1 -1
  87. package/dist/{chunk-kk77x2v4.js → chunk-er8acmch.js} +7 -7
  88. package/dist/{chunk-kk77x2v4.js.map → chunk-er8acmch.js.map} +3 -3
  89. package/dist/{chunk-thz75w6e.js → chunk-fcqx2t0p.js} +2 -2
  90. package/dist/{chunk-thz75w6e.js.map → chunk-fcqx2t0p.js.map} +1 -1
  91. package/dist/{chunk-z759yah5.js → chunk-fenc5tpv.js} +2 -2
  92. package/dist/{chunk-z759yah5.js.map → chunk-fenc5tpv.js.map} +1 -1
  93. package/dist/{chunk-hr1r3g0d.js → chunk-gc2dz11k.js} +2 -2
  94. package/dist/{chunk-hr1r3g0d.js.map → chunk-gc2dz11k.js.map} +1 -1
  95. package/dist/{chunk-pqc16rrx.js → chunk-gemzbw7f.js} +2 -2
  96. package/dist/{chunk-pqc16rrx.js.map → chunk-gemzbw7f.js.map} +1 -1
  97. package/dist/{chunk-sn04cyw0.js → chunk-gy81nd9a.js} +2 -2
  98. package/dist/{chunk-sn04cyw0.js.map → chunk-gy81nd9a.js.map} +1 -1
  99. package/dist/{chunk-gqfqnv3f.js → chunk-h43jp8ws.js} +2 -2
  100. package/dist/{chunk-gqfqnv3f.js.map → chunk-h43jp8ws.js.map} +1 -1
  101. package/dist/chunk-hhymaj0m.js +57 -0
  102. package/dist/{chunk-dxag6enj.js.map → chunk-hhymaj0m.js.map} +9 -7
  103. package/dist/chunk-htgmy3x7.js +5 -0
  104. package/dist/{chunk-3nf95j9e.js.map → chunk-htgmy3x7.js.map} +1 -1
  105. package/dist/{chunk-fsj5k511.js → chunk-jaa6xkeh.js} +2 -2
  106. package/dist/{chunk-fsj5k511.js.map → chunk-jaa6xkeh.js.map} +1 -1
  107. package/dist/{chunk-2bja99cq.js → chunk-kk18xqgc.js} +2 -2
  108. package/dist/{chunk-2bja99cq.js.map → chunk-kk18xqgc.js.map} +1 -1
  109. package/dist/{chunk-ebret82e.js → chunk-krk7mcgm.js} +3 -3
  110. package/dist/{chunk-ebret82e.js.map → chunk-krk7mcgm.js.map} +1 -1
  111. package/dist/{chunk-bz8xssrc.js → chunk-krtybgz1.js} +2 -2
  112. package/dist/{chunk-bz8xssrc.js.map → chunk-krtybgz1.js.map} +1 -1
  113. package/dist/{chunk-eke2frrm.js → chunk-m53fgf20.js} +3 -3
  114. package/dist/{chunk-eke2frrm.js.map → chunk-m53fgf20.js.map} +1 -1
  115. package/dist/{chunk-490sbcma.js → chunk-m83zm86m.js} +2 -2
  116. package/dist/{chunk-490sbcma.js.map → chunk-m83zm86m.js.map} +1 -1
  117. package/dist/{chunk-xx3zvc3g.js → chunk-meg8rtr6.js} +2 -2
  118. package/dist/{chunk-xx3zvc3g.js.map → chunk-meg8rtr6.js.map} +1 -1
  119. package/dist/{chunk-39kyz4k6.js → chunk-mr94nfp1.js} +3 -3
  120. package/dist/{chunk-39kyz4k6.js.map → chunk-mr94nfp1.js.map} +1 -1
  121. package/dist/{chunk-g5ppst76.js → chunk-nz8z8jr1.js} +3 -3
  122. package/dist/{chunk-g5ppst76.js.map → chunk-nz8z8jr1.js.map} +1 -1
  123. package/dist/{chunk-n4sdm0jn.js → chunk-pemhmjzp.js} +3 -3
  124. package/dist/{chunk-n4sdm0jn.js.map → chunk-pemhmjzp.js.map} +1 -1
  125. package/dist/{chunk-76p0rf4d.js → chunk-pn2x59ge.js} +3 -3
  126. package/dist/{chunk-76p0rf4d.js.map → chunk-pn2x59ge.js.map} +1 -1
  127. package/dist/{chunk-aqpaw4jq.js → chunk-qsz9241c.js} +2 -2
  128. package/dist/{chunk-aqpaw4jq.js.map → chunk-qsz9241c.js.map} +1 -1
  129. package/dist/{chunk-5dbpgyrx.js → chunk-qy8c0gzr.js} +2 -2
  130. package/dist/{chunk-5dbpgyrx.js.map → chunk-qy8c0gzr.js.map} +1 -1
  131. package/dist/{chunk-qkxnvpaj.js → chunk-r01aqf0q.js} +2 -2
  132. package/dist/{chunk-qkxnvpaj.js.map → chunk-r01aqf0q.js.map} +1 -1
  133. package/dist/{chunk-jf6qqzat.js → chunk-rhvc1axc.js} +2 -2
  134. package/dist/{chunk-jf6qqzat.js.map → chunk-rhvc1axc.js.map} +1 -1
  135. package/dist/{chunk-kkte8nze.js → chunk-s07v65x6.js} +3 -3
  136. package/dist/{chunk-kkte8nze.js.map → chunk-s07v65x6.js.map} +1 -1
  137. package/dist/{chunk-5cgq9c43.js → chunk-s5k3yq6t.js} +2 -2
  138. package/dist/{chunk-5cgq9c43.js.map → chunk-s5k3yq6t.js.map} +1 -1
  139. package/dist/{chunk-453rmkpm.js → chunk-sx340k85.js} +2 -2
  140. package/dist/{chunk-453rmkpm.js.map → chunk-sx340k85.js.map} +1 -1
  141. package/dist/{chunk-hm9cjxy2.js → chunk-tewhms9w.js} +2 -2
  142. package/dist/{chunk-pvz90a49.js.map → chunk-tewhms9w.js.map} +1 -1
  143. package/dist/{chunk-tzdenj0n.js → chunk-tk135gmj.js} +3 -3
  144. package/dist/{chunk-tzdenj0n.js.map → chunk-tk135gmj.js.map} +1 -1
  145. package/dist/{chunk-4c1kdd8p.js → chunk-vx7hvyvq.js} +2 -2
  146. package/dist/{chunk-4c1kdd8p.js.map → chunk-vx7hvyvq.js.map} +1 -1
  147. package/dist/{chunk-razjfecn.js → chunk-wjkh2gem.js} +1 -1
  148. package/dist/{chunk-vkkt7j2y.js → chunk-wnj7q0th.js} +3 -3
  149. package/dist/{chunk-vkkt7j2y.js.map → chunk-wnj7q0th.js.map} +1 -1
  150. package/dist/{chunk-p83erprx.js → chunk-wqe47c0j.js} +2 -2
  151. package/dist/{chunk-p83erprx.js.map → chunk-wqe47c0j.js.map} +1 -1
  152. package/dist/{chunk-nrezmscd.js → chunk-y6wt5b6t.js} +1 -1
  153. package/dist/{chunk-9pkj7sk6.js → chunk-yds7zwc3.js} +2 -2
  154. package/dist/{chunk-9pkj7sk6.js.map → chunk-yds7zwc3.js.map} +1 -1
  155. package/dist/{chunk-x6v2zex2.js → chunk-zefs2b6h.js} +2 -2
  156. package/dist/{chunk-x6v2zex2.js.map → chunk-zefs2b6h.js.map} +1 -1
  157. package/dist/{chunk-de4t48j9.js → chunk-zg6hmc48.js} +1 -1
  158. package/dist/{chunk-5ses4tcz.js → chunk-zrcd9hxr.js} +2 -2
  159. package/dist/{chunk-5ses4tcz.js.map → chunk-zrcd9hxr.js.map} +1 -1
  160. package/dist/client/index.d.ts +1 -0
  161. package/dist/client/index.d.ts.map +1 -1
  162. package/dist/client/index.js +26 -1
  163. package/dist/client/index.js.map +1 -1
  164. package/dist/client/staticNavigation.d.ts +26 -0
  165. package/dist/client/staticNavigation.d.ts.map +1 -0
  166. package/dist/config/index.js +1 -1
  167. package/dist/console/run.js +2 -2
  168. package/dist/console/run.js.map +1 -1
  169. package/dist/container/index.js +2 -2
  170. package/dist/container/index.js.map +1 -1
  171. package/dist/database/index.js +2 -2
  172. package/dist/database/index.js.map +1 -1
  173. package/dist/email/index.js +2 -2
  174. package/dist/email/index.js.map +1 -1
  175. package/dist/facades/index.js +2 -2
  176. package/dist/facades/index.js.map +1 -1
  177. package/dist/foundation/index.js +2 -2
  178. package/dist/foundation/index.js.map +1 -1
  179. package/dist/http/SameSiteBounceMiddleware.d.ts +42 -0
  180. package/dist/http/SameSiteBounceMiddleware.d.ts.map +1 -0
  181. package/dist/http/ViewRouter.d.ts +36 -2
  182. package/dist/http/ViewRouter.d.ts.map +1 -1
  183. package/dist/http/index.d.ts +2 -1
  184. package/dist/http/index.d.ts.map +1 -1
  185. package/dist/http/index.js +2 -2
  186. package/dist/http/index.js.map +1 -1
  187. package/dist/i18n/dictionaryRuntime.js +2 -2
  188. package/dist/i18n/dictionaryRuntime.js.map +1 -1
  189. package/dist/i18n/index.js +2 -2
  190. package/dist/i18n/index.js.map +2 -2
  191. package/dist/internal/islandRuntime.d.ts +16 -0
  192. package/dist/internal/islandRuntime.d.ts.map +1 -1
  193. package/dist/internal/staticNavigationRuntime.d.ts +8 -0
  194. package/dist/internal/staticNavigationRuntime.d.ts.map +1 -0
  195. package/dist/kernel/index.js +2 -2
  196. package/dist/kernel/index.js.map +2 -2
  197. package/dist/orm/index.js +2 -2
  198. package/dist/orm/index.js.map +1 -1
  199. package/dist/server/devFetch.d.ts.map +1 -1
  200. package/dist/server/httpProd.d.ts.map +1 -1
  201. package/dist/server/index.js +2 -2
  202. package/dist/server/index.js.map +1 -1
  203. package/dist/services/index.d.ts +1 -1
  204. package/dist/services/index.d.ts.map +1 -1
  205. package/dist/services/index.js +3 -3
  206. package/dist/services/index.js.map +2 -2
  207. package/dist/services/queue/work.js +2 -2
  208. package/dist/services/queue/work.js.map +1 -1
  209. package/dist/services/router/ViewRouteDispatcher.d.ts +5 -0
  210. package/dist/services/router/ViewRouteDispatcher.d.ts.map +1 -1
  211. package/dist/services/router/staticDocument.d.ts +30 -21
  212. package/dist/services/router/staticDocument.d.ts.map +1 -1
  213. package/dist/stats/bundleStats.d.ts +6 -2
  214. package/dist/stats/bundleStats.d.ts.map +1 -1
  215. package/dist/stats/route-table.js +2 -2
  216. package/dist/stats/route-table.js.map +3 -3
  217. package/dist/stats/routeTable.d.ts +5 -1
  218. package/dist/stats/routeTable.d.ts.map +1 -1
  219. package/dist/support/index.js +2 -2
  220. package/dist/support/index.js.map +1 -1
  221. package/dist/testing/index.d.ts +2 -0
  222. package/dist/testing/index.d.ts.map +1 -1
  223. package/dist/testing/index.js +185 -2
  224. package/dist/testing/index.js.map +1 -1
  225. package/dist/testing/staticDocument.d.ts +80 -0
  226. package/dist/testing/staticDocument.d.ts.map +1 -0
  227. package/dist/vitest/index.js +1 -1
  228. package/package.json +1 -1
  229. package/dist/chunk-3nf95j9e.js +0 -5
  230. package/dist/chunk-dxag6enj.js +0 -57
  231. package/dist/chunk-rbm57mck.js +0 -24
  232. /package/dist/{chunk-33s2xqv1.js.map → chunk-0k02tza1.js.map} +0 -0
  233. /package/dist/{chunk-8t6dwwz6.js.map → chunk-cvr5624r.js.map} +0 -0
  234. /package/dist/{chunk-aedkrck1.js.map → chunk-dhbgrv58.js.map} +0 -0
  235. /package/dist/{chunk-razjfecn.js.map → chunk-wjkh2gem.js.map} +0 -0
  236. /package/dist/{chunk-nrezmscd.js.map → chunk-y6wt5b6t.js.map} +0 -0
  237. /package/dist/{chunk-de4t48j9.js.map → chunk-zg6hmc48.js.map} +0 -0
@@ -42,4 +42,20 @@ export declare function islandEntrySource(file: string): string;
42
42
  export declare const ISLAND_HYDRATE_SOURCE = "function h(marker, Component) {\n if (typeof Component !== \"function\" && (typeof Component !== \"object\" || Component === null)) {\n throw new Error(\"gemi: island module has no component export for \" + marker.outerHTML.slice(0, 80));\n }\n const json = marker.getAttribute(\"data-props\");\n const props = json ? JSON.parse(json) : {};\n let slot = null;\n for (const candidate of marker.querySelectorAll(\"gemi-slot\")) {\n if (candidate.closest(\"gemi-island\") === marker) {\n slot = candidate;\n break;\n }\n }\n const children = slot\n ? [createElement(\"gemi-slot\", {\n style: { display: \"contents\" },\n suppressHydrationWarning: true,\n dangerouslySetInnerHTML: { __html: slot.innerHTML },\n })]\n : [];\n return hydrateRoot(marker, createElement(Component, props, ...children), {\n identifierPrefix: marker.getAttribute(\"data-uid\") || undefined,\n });\n}";
43
43
  /** The runtime module's source, as the plugin serves and builds it. */
44
44
  export declare const ISLAND_RUNTIME_SOURCE = "import { createElement } from \"react\";\nimport { hydrateRoot } from \"react-dom/client\";\nexport function h(marker, Component) {\n if (typeof Component !== \"function\" && (typeof Component !== \"object\" || Component === null)) {\n throw new Error(\"gemi: island module has no component export for \" + marker.outerHTML.slice(0, 80));\n }\n const json = marker.getAttribute(\"data-props\");\n const props = json ? JSON.parse(json) : {};\n let slot = null;\n for (const candidate of marker.querySelectorAll(\"gemi-slot\")) {\n if (candidate.closest(\"gemi-island\") === marker) {\n slot = candidate;\n break;\n }\n }\n const children = slot\n ? [createElement(\"gemi-slot\", {\n style: { display: \"contents\" },\n suppressHydrationWarning: true,\n dangerouslySetInnerHTML: { __html: slot.innerHTML },\n })]\n : [];\n return hydrateRoot(marker, createElement(Component, props, ...children), {\n identifierPrefix: marker.getAttribute(\"data-uid\") || undefined,\n });\n}\n";
45
+ /**
46
+ * The island loader, inlined into a static document that uses islands.
47
+ *
48
+ * Kept byte-for-byte constant (the per-page island table travels in a
49
+ * separate `<script type="application/json">`, which a Content Security Policy
50
+ * does not treat as script), so a strict policy can allow it by hash:
51
+ * `script-src 'sha256-…'` with `ISLAND_LOADER_CSP_HASH`. Everything it loads
52
+ * is a plain `import()` of a same-origin (or asset-base) file.
53
+ *
54
+ * The table is `{ i: [{ s: entry URL, e: export, l: load }] }` and each
55
+ * marker's `data-island` indexes `i`. Per marker, on its schedule: import the
56
+ * island's entry (the module as `m`, the runtime's `h`), then
57
+ * `h(marker, m[export])`, which calls `hydrateRoot`. A failure is logged and
58
+ * leaves the server-rendered markup in place.
59
+ */
60
+ export declare const ISLAND_LOADER_SOURCE: string;
45
61
  //# sourceMappingURL=islandRuntime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"islandRuntime.d.ts","sourceRoot":"","sources":["../../internal/islandRuntime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,gCAAgC,CAAC;AAE/D,0FAA0F;AAC1F,eAAO,MAAM,0BAA0B,kCAA2B,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAEjD,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,UAK7C;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,66BAuBhC,CAAC;AAEH,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,mhCAGjC,CAAC"}
1
+ {"version":3,"file":"islandRuntime.d.ts","sourceRoot":"","sources":["../../internal/islandRuntime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,gCAAgC,CAAC;AAE/D,0FAA0F;AAC1F,eAAO,MAAM,0BAA0B,kCAA2B,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAEjD,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,UAK7C;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,66BAuBhC,CAAC;AAEH,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,mhCAGjC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,QAM8G,CAAC"}
@@ -0,0 +1,8 @@
1
+ /** The sha-256 of the source this was built from, so a test can tell it is stale. */
2
+ export declare const STATIC_NAVIGATION_SOURCE_HASH = "0a7425eb046f290e83ec8441ef6df27cd3eea9dd68c2a71bd6908a4a9cf6e4f3";
3
+ /**
4
+ * The navigation runtime (with the island loader) a static view with
5
+ * `.static({ navigation })` inlines. Byte-for-byte constant.
6
+ */
7
+ export declare const STATIC_NAVIGATION_SOURCE = "var r=document,i=window,a=history;i.__gemi_nav?.d();var C=new AbortController,h=(t,e,n,s)=>t.addEventListener(e,n,{signal:C.signal,...s}),q=i.__gemi_nav={d:()=>C.abort()},y=(t,e)=>{if(!t.g)t.g=1,import(e.s).then((n)=>{if(t.isConnected)t.r=n.h(t,n.m[e.e])}).catch((n)=>console.error(n))},L=(t)=>{let e=t.getElementById(\"gemi-islands\");return e?JSON.parse(e.textContent):{i:[]}},D=(t,e)=>{for(let n of t.querySelectorAll(\"gemi-island\")){let s=e.i[n.dataset.island];if(!s||n.o)continue;if(s.l==\"eager\")y(n,s);else if(s.l==\"idle\"||!i.IntersectionObserver||!n.children.length)(i.requestIdleCallback||setTimeout)(()=>y(n,s));else{let l=new IntersectionObserver((m)=>{if(m.some((d)=>d.isIntersecting))l.disconnect(),y(n,s)});for(let m of n.children)l.observe(m)}}},R='meta[name=\"gemi-static\"]',A=\"style:not([data-gemi-fonts]),link[rel=stylesheet]\",I='meta[name]:not([name=viewport]),meta[property],link[rel~=canonical],link[rel~=alternate],link[rel~=icon],link[rel=preload][as=font],style[data-gemi-fonts],script[type=\"application/ld+json\"]',w=(t)=>t.querySelector(R)?.content,T=(t)=>[...t.querySelectorAll(A)].map((e)=>e.outerHTML).join(),c=(t)=>t.href.split(\"#\")[0],p=r.createElement(\"div\");p.setAttribute(\"aria-live\",\"polite\");p.style.cssText=\"position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap\";r.body.append(p);var _=(t)=>{q.p={url:location.href,title:r.title,initial:t},r.dispatchEvent(new CustomEvent(\"gemi:page-load\",{detail:q.p}))},f=new Map,O=(t)=>{let e=f.get(t);if(!e||Date.now()-e[0]>30000){let n=fetch(t,{headers:{accept:\"text/html\",\"x-gemi-navigate\":\"1\"},signal:AbortSignal.timeout(1e4)}).then((s)=>{if(!s.ok||!/^text\\/html/.test(s.headers.get(\"content-type\"))||new URL(s.url||t).origin!=location.origin)throw s;return s.text().then((l)=>[s.url||t,l])});e=[Date.now(),n],n.catch(()=>f.get(t)==e&&f.delete(t))}if(f.delete(t),f.set(t,e),f.size>10)f.delete(f.keys().next().value);return e[1]},U=(t)=>{let e=t.target.closest?.(\"a[href]\"),n=e?.getAttribute(\"target\");if(!e||n&&n!=\"_self\"||e.hasAttribute(\"download\")||/(^|\\s)external(\\s|$)/i.test(e.getAttribute(\"rel\"))||e.closest(\"[data-gemi-reload]\"))return;let s=new URL(e.getAttribute(\"href\"),r.baseURI);if(s.origin==location.origin&&!(s.href.includes(\"#\")&&c(s)==c(location)))return s},v={},k=()=>Math.random().toString(36).slice(2),x=()=>a.state?.g||a.replaceState({...a.state,g:k()},\"\"),M=c(location),b=0,K=(t)=>{if(!t.hasAttribute(\"tabindex\"))t.setAttribute(\"tabindex\",\"-1\"),t.addEventListener(\"blur\",()=>t.removeAttribute(\"tabindex\"),{once:!0});t.focus({preventScroll:!0})},N=(t)=>{let e=r.body,n=t.body,s=L(t),l=r.documentElement;r.title=t.title;for(let o of[\"lang\",\"dir\"]){let u=t.documentElement.getAttribute(o);if(u==null)l.removeAttribute(o);else l.setAttribute(o,u)}for(let o of r.head.querySelectorAll(I))o.remove();let m=new Set([...r.querySelectorAll(\"link[rel=modulepreload]\")].map((o)=>o.getAttribute(\"href\")));r.head.append(...t.head.querySelectorAll(I),...[...t.head.querySelectorAll(\"link[rel=modulepreload]\")].filter((o)=>!m.has(o.getAttribute(\"href\"))));let d=new Map([...e.querySelectorAll(\"[data-gemi-persist]\")].map((o)=>[o.dataset.gemiPersist,o])),g=[...n.querySelectorAll(\"[data-gemi-persist]\")].map((o)=>[o,d.get(o.dataset.gemiPersist)]).filter((o)=>o[1]);for(let o of[...e.querySelectorAll(\"gemi-island\")].reverse())if(o.o=1,!g.some((u)=>u[1].contains(o)))try{o.r?.unmount()}catch(u){console.error(u)}for(let[o,u]of g)o.replaceWith(u);for(let o of[...e.childNodes])if(!o.matches?.(A))o.remove();for(let o of[...n.children])if(o.matches(A))o.remove();for(let o of[...e.attributes])e.removeAttribute(o.name);for(let o of n.attributes)e.setAttribute(o.name,o.value);e.append(...n.childNodes,p),D(e,s)},H=async(t,e)=>{let n=++b,s=!e&&v[a.state?.g];a.scrollRestoration=\"manual\";try{let[l,m]=await O(c(t));if(n!=b)return;let d=new DOMParser().parseFromString(m,\"text/html\");if(w(d)==null||w(d)!=w(r)||T(d)!=T(r))throw 0;if(e){let o=new URL(l);o.hash=t.hash,a.pushState({g:k()},\"\",o.href)}M=c(location),N(d);let g=e&&t.hash&&r.getElementById(decodeURIComponent(t.hash.slice(1)));if(g)g.scrollIntoView({behavior:\"instant\"});else i.scrollTo({left:s?.[0]||0,top:s?.[1]||0,behavior:\"instant\"});if(e)K(g||r.querySelector(\"h1\")||r.querySelector(\"main\")||r.body);p.textContent=r.title,_(!1)}catch{if(n!=b)return;if(e)location.assign(t.href);else location.reload()}};h(r,\"click\",(t)=>{if(t.defaultPrevented||t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;let e=U(t);if(e&&r.dispatchEvent(new CustomEvent(\"gemi:before-navigate\",{cancelable:!0,detail:{url:e.href}})))t.preventDefault(),x(),v[a.state.g]=[i.scrollX,i.scrollY],H(e,1)});h(i,\"popstate\",()=>{if(b++,c(location)==M){let t=v[a.state?.g];if(t)i.scrollTo({left:t[0],top:t[1],behavior:\"instant\"})}else if(a.state?.g)H(new URL(location.href),0);else location.reload()});h(i,\"hashchange\",x);h(i,\"scroll\",()=>a.state?.g&&(v[a.state.g]=[i.scrollX,i.scrollY]),{passive:!0});var S,E=(t)=>{if(r.querySelector(R)?.dataset.prefetch==\"none\"||navigator.connection?.saveData)return;let e=U(t);if(e&&c(e)!=c(location))O(c(e))};h(r,\"pointerover\",(t)=>{clearTimeout(S),S=setTimeout(()=>E(t),65)});h(r,\"pointerout\",()=>clearTimeout(S));h(r,\"focusin\",E);h(r,\"touchstart\",E,{passive:!0});x();D(r,L(r));_(!0);";
8
+ //# sourceMappingURL=staticNavigationRuntime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staticNavigationRuntime.d.ts","sourceRoot":"","sources":["../../internal/staticNavigationRuntime.ts"],"names":[],"mappings":"AAIA,qFAAqF;AACrF,eAAO,MAAM,6BAA6B,qEAAqE,CAAC;AAEhH;;;GAGG;AACH,eAAO,MAAM,wBAAwB,mxKAC6uK,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ja as g}from"../chunk-xtzn0qfh.js";import{eb as jj}from"../chunk-1z1rj2zq.js";import{fb as w}from"../chunk-3nf95j9e.js";import{Bb as S,Cb as h,Db as R,Fb as u,Gb as l,Hb as v,Ib as d,Lb as c,Mb as p,Pb as n,Sb as a,Tb as s,rb as e,sb as T,tb as D,ub as Jj,vb as A,wb as y,xb as P}from"../chunk-vkkt7j2y.js";import"../chunk-39kyz4k6.js";import"../chunk-r1favzz4.js";import"../chunk-675kzd7z.js";import{Rc as zj}from"../chunk-nang3847.js";import"../chunk-tzdenj0n.js";import"../chunk-30xxc6r7.js";import{Ad as Oj,Ce as I,Dd as Hj,De as q,Ed as Lj,He as K,Ie as E,Je as o,Ke as m,Le as C,Me as Q,Ne as i,Oe as r,xe as x,zd as Nj}from"../chunk-dxag6enj.js";import"../chunk-hkf2k2eq.js";import"../chunk-eke2frrm.js";import{Vf as b}from"../chunk-3zxfd7pn.js";import{Ig as B}from"../chunk-1m3hvy3q.js";import{Og as L}from"../chunk-490sbcma.js";import"../chunk-xx7necqt.js";import{Zg as t}from"../chunk-y09r0wsw.js";import{rh as V,wh as f}from"../chunk-9pkj7sk6.js";import"../chunk-xx3zvc3g.js";import"../chunk-gqfqnv3f.js";import"../chunk-kkte8nze.js";import"../chunk-hr1r3g0d.js";import"../chunk-g9hhdcax.js";import"../chunk-cvfg88cx.js";import"../chunk-z759yah5.js";import{Oi as _,Qi as O,Ri as F}from"../chunk-g5ppst76.js";import"../chunk-d806cy7p.js";import"../chunk-8wcpxm41.js";import"../chunk-jg79n382.js";import{cj as M}from"../chunk-jf6qqzat.js";import"../chunk-hm9cjxy2.js";function Yj(j){let X=j.headers.get("Cache-Control")?.toLowerCase()??"";return/(^|[\s,])(public|s-maxage)\b/.test(X)}var Zj=new Set,$j={refusal:null,apply:(j)=>j,carried:null};async function k(j){let X=F(x);if(X.config.global.length===0)return $j;let{pathname:Z}=new URL(j.url),W=M(Z),z=new b(j,{},W?"api":"view","");return await L.run(z,async()=>{let $=L.getStore(),{headers:N,cookies:Xj}=$,Y=(J)=>{if(!Yj(J))return Q(J,N,Xj);let G=new Headers(N);return G.delete("Set-Cookie"),Q(J,G,Zj)};try{return await X.runGlobalMiddleware(),{refusal:null,apply:Y,carried:{user:$.user}}}catch(J){let G=!W&&Z.endsWith(".json");if(J?.kind===B){let H=W?C(J.payload.api):G?E(J.payload.viewData??J.payload.api):K(J.payload.view);return{refusal:Y(H),apply:Y,carried:null}}if(V(J)&&(W||G))return{refusal:Y(m()),apply:Y,carried:null};if(f(J)){console.error(J);let H=W||G?I():K(q());return{refusal:Y(H),apply:Y,carried:null}}throw J}finally{$.destroy()}})}var U=[d,p,g,R,S,s,y,h,c,l,D,u,a,v,w,n,P,A];class Wj{config={};providers=[];services=[];serviceInstances=[];serviceTokens=new Set;servicesBooted=!1;models=[];app=new O;boot(){if(this.models.length>0)jj(...this.models);else Gj();this.app.config.merge(this.config),O.setInstance(this.app),this.app.registerMany([...U,...this.providers]),this.registerServices()}registerServices(){let j=this.serviceTokens;this.serviceInstances=[],this.serviceTokens=new Set,this.servicesBooted=!1;let X=new Map;for(let Z of this.services){let W=typeof Z==="function"?new Z:Z,z=W.constructor;if(!z.token)throw Error(`Service [${z.name}] is listed in \`services\` but does not declare a \`static token\`.`);let $=X.get(z.token);if($)throw Error(`Services [${$}] and [${z.name}] both declare the token "${z.token}". Tokens are the container's keys, so they must be unique.`);X.set(z.token,z.name);let N=z;if(!j.has(z.token)&&this.app.bound(N))throw Error(`Service [${z.name}] declares the token "${z.token}", which is already bound in the container by the framework or a provider. Binding it would replace that service everywhere, so pick a token nothing else owns.`);this.app.instance(N,W),this.serviceInstances.push(W),this.serviceTokens.add(z.token)}}async waitForBoot(){await this.app.boot(),await this.bootServices(),Jj(this.app)}async bootServices(){if(this.servicesBooted)return;for(let j of this.serviceInstances)await j.boot();this.servicesBooted=!0}shutdown(j){return this.run(()=>this.app.shutdown(j))}run(j){return _.run(this.app,j)}resolve(j){return this.app.make(j)}apiRoutes(){return this.app.make(i)}viewRoutes(){return this.app.make(o)}domains(){return this.app.make(r)}queue(){return this.app.make(zj)}mcpHttp(){return this.app.config.get("route.mcp.remote.enabled")===!0?this.app.make(e):null}globalMiddleware(j){return k(j)}destroy(){if(this.app.resolved(T))this.app.make(T).stop();if(this.app.flush(),O.getInstance()===this.app)O.setInstance(void 0);_.disable()}}function Gj(){if(Bun.env.NODE_ENV==="production")return;let j=t();if(j.length===0)return;console.warn(`[gemi] ${j.length} model${j.length===1?" is":"s are"} registered, but Kernel.models is empty.
2
+ import{Ea as g}from"../chunk-51w5ktv2.js";import{$a as jj}from"../chunk-6yhpprzs.js";import{ab as w}from"../chunk-htgmy3x7.js";import{Ab as u,Bb as l,Cb as v,Db as d,Gb as c,Hb as p,Kb as n,Nb as a,Ob as s,mb as e,nb as T,ob as D,pb as Jj,qb as A,rb as y,sb as P,wb as S,xb as h,yb as R}from"../chunk-wnj7q0th.js";import"../chunk-mr94nfp1.js";import"../chunk-9rr5h818.js";import"../chunk-7mmw0jr2.js";import{Mc as zj}from"../chunk-dwedx1jb.js";import"../chunk-tk135gmj.js";import"../chunk-9xyxbxgk.js";import{Ae as q,Fe as K,Ge as E,He as o,Ie as m,Je as C,Ke as Q,Le as i,Me as r,ud as Nj,ue as x,vd as Oj,yd as Hj,zd as Lj,ze as I}from"../chunk-hhymaj0m.js";import"../chunk-65beps2q.js";import"../chunk-m53fgf20.js";import{Tf as b}from"../chunk-4acpw92g.js";import{Gg as B}from"../chunk-cca0grq3.js";import{Mg as L}from"../chunk-m83zm86m.js";import"../chunk-1xdrs2hx.js";import{Xg as t}from"../chunk-19dpzp4y.js";import{ph as V,uh as f}from"../chunk-yds7zwc3.js";import"../chunk-meg8rtr6.js";import"../chunk-h43jp8ws.js";import"../chunk-s07v65x6.js";import"../chunk-gc2dz11k.js";import"../chunk-cskqet01.js";import"../chunk-1wnnkde0.js";import"../chunk-fenc5tpv.js";import{Mi as _,Oi as O,Pi as F}from"../chunk-nz8z8jr1.js";import"../chunk-4fx8p02c.js";import"../chunk-er8acmch.js";import"../chunk-2n3pgfnb.js";import"../chunk-d5f1m3d2.js";import{gj as M}from"../chunk-rhvc1axc.js";import"../chunk-tewhms9w.js";function Yj(j){let X=j.headers.get("Cache-Control")?.toLowerCase()??"";return/(^|[\s,])(public|s-maxage)\b/.test(X)}var Zj=new Set,$j={refusal:null,apply:(j)=>j,carried:null};async function k(j){let X=F(x);if(X.config.global.length===0)return $j;let{pathname:Z}=new URL(j.url),W=M(Z),z=new b(j,{},W?"api":"view","");return await L.run(z,async()=>{let $=L.getStore(),{headers:N,cookies:Xj}=$,Y=(J)=>{if(!Yj(J))return Q(J,N,Xj);let G=new Headers(N);return G.delete("Set-Cookie"),Q(J,G,Zj)};try{return await X.runGlobalMiddleware(),{refusal:null,apply:Y,carried:{user:$.user}}}catch(J){let G=!W&&Z.endsWith(".json");if(J?.kind===B){let H=W?C(J.payload.api):G?E(J.payload.viewData??J.payload.api):K(J.payload.view);return{refusal:Y(H),apply:Y,carried:null}}if(V(J)&&(W||G))return{refusal:Y(m()),apply:Y,carried:null};if(f(J)){console.error(J);let H=W||G?I():K(q());return{refusal:Y(H),apply:Y,carried:null}}throw J}finally{$.destroy()}})}var U=[d,p,g,R,S,s,y,h,c,l,D,u,a,v,w,n,P,A];class Wj{config={};providers=[];services=[];serviceInstances=[];serviceTokens=new Set;servicesBooted=!1;models=[];app=new O;boot(){if(this.models.length>0)jj(...this.models);else Gj();this.app.config.merge(this.config),O.setInstance(this.app),this.app.registerMany([...U,...this.providers]),this.registerServices()}registerServices(){let j=this.serviceTokens;this.serviceInstances=[],this.serviceTokens=new Set,this.servicesBooted=!1;let X=new Map;for(let Z of this.services){let W=typeof Z==="function"?new Z:Z,z=W.constructor;if(!z.token)throw Error(`Service [${z.name}] is listed in \`services\` but does not declare a \`static token\`.`);let $=X.get(z.token);if($)throw Error(`Services [${$}] and [${z.name}] both declare the token "${z.token}". Tokens are the container's keys, so they must be unique.`);X.set(z.token,z.name);let N=z;if(!j.has(z.token)&&this.app.bound(N))throw Error(`Service [${z.name}] declares the token "${z.token}", which is already bound in the container by the framework or a provider. Binding it would replace that service everywhere, so pick a token nothing else owns.`);this.app.instance(N,W),this.serviceInstances.push(W),this.serviceTokens.add(z.token)}}async waitForBoot(){await this.app.boot(),await this.bootServices(),Jj(this.app)}async bootServices(){if(this.servicesBooted)return;for(let j of this.serviceInstances)await j.boot();this.servicesBooted=!0}shutdown(j){return this.run(()=>this.app.shutdown(j))}run(j){return _.run(this.app,j)}resolve(j){return this.app.make(j)}apiRoutes(){return this.app.make(i)}viewRoutes(){return this.app.make(o)}domains(){return this.app.make(r)}queue(){return this.app.make(zj)}mcpHttp(){return this.app.config.get("route.mcp.remote.enabled")===!0?this.app.make(e):null}globalMiddleware(j){return k(j)}destroy(){if(this.app.resolved(T))this.app.make(T).stop();if(this.app.flush(),O.getInstance()===this.app)O.setInstance(void 0);_.disable()}}function Gj(){if(Bun.env.NODE_ENV==="production")return;let j=t();if(j.length===0)return;console.warn(`[gemi] ${j.length} model${j.length===1?" is":"s are"} registered, but Kernel.models is empty.
3
3
  Nested relation reads resolve a model by name, so a policy on a subclass that does not own its
4
4
  `+" name is skipped inside every include \u2014 scoped at the root, "+`unscoped in an include, with nothing
5
5
  to notice it. Declaring the modules registers each class under its own name and audits the set:
@@ -13,4 +13,4 @@ import{Ja as g}from"../chunk-xtzn0qfh.js";import{eb as jj}from"../chunk-1z1rj2zq
13
13
 
14
14
  See docs/orm.md#your-model-class. Development only; this never prints in production.`)}export{Oj as oneTimeSecretMatches,Nj as hashOneTimeSecret,U as frameworkProviders,Lj as UserProvider,Hj as SESSION_SELECT,Wj as Kernel};
15
15
 
16
- //# debugId=5992B4282A4422BC64756E2164756E21
16
+ //# debugId=B832CB25EB78380064756E2164756E21
@@ -6,7 +6,7 @@
6
6
  "import type { ServiceProviderConstructor } from \"../foundation/Application\";\nimport { ChangeFeedServiceProvider } from \"../services/change-feed/ChangeFeedServiceProvider\";\nimport { AuthServiceProvider } from \"../auth/AuthServiceProvider\";\nimport { DatabaseServiceProvider } from \"../database/DatabaseServiceProvider\";\nimport { TranslationServiceProvider } from \"../i18n/TranslationServiceProvider\";\nimport { ScheduleServiceProvider } from \"../services/cron/ScheduleServiceProvider\";\nimport { FeaturesServiceProvider } from \"../services/features/FeaturesServiceProvider\";\nimport { MailServiceProvider } from \"../services/email/MailServiceProvider\";\nimport { EncryptionServiceProvider } from \"../services/encryption/EncryptionServiceProvider\";\nimport { EventServiceProvider } from \"../services/events/EventServiceProvider\";\nimport { FilesystemServiceProvider } from \"../services/file-storage/FilesystemServiceProvider\";\nimport { ImageServiceProvider } from \"../services/image-optimization/ImageServiceProvider\";\nimport { KernelIdServiceProvider } from \"../services/kernel-id/KernelIdServiceProvider\";\nimport { LogServiceProvider } from \"../services/logging/LogServiceProvider\";\nimport { MiddlewareServiceProvider } from \"../services/middleware/MiddlewareServiceProvider\";\nimport { QueueServiceProvider } from \"../services/queue/QueueServiceProvider\";\nimport { RateLimiterServiceProvider } from \"../services/rate-limiter/RateLimiterServiceProvider\";\nimport { RedisServiceProvider } from \"../services/redis/RedisServiceProvider\";\nimport { RouteServiceProvider } from \"../services/router/RouteServiceProvider\";\n\n/**\n * The providers every gemi app boots with, in registration order. Eighteen\n * providers for nineteen services — `RouteServiceProvider` owns both the api\n * and the view dispatcher, the way Laravel's does.\n *\n * Order only matters for `boot()`; `register()` binds factories and resolves\n * nothing, so no provider here depends on an earlier one having run — with one\n * exception, which is the reason to read this before reordering anything.\n *\n * **`EventServiceProvider` must stay after `QueueServiceProvider`.** A queued\n * listener is registered with the queue as a synthetic job, and\n * `EventServiceProvider.boot()` is what hands those over. `QueueManager.useJobs`\n * — which `QueueServiceProvider.boot()` calls with whatever it discovered under\n * `app/jobs` — *replaces* the registry (`this.jobs = {}`). Move the events\n * provider up and the two boots run in the order that discards: every\n * `listener:*` entry is registered and then thrown away. Nothing errors, boot\n * succeeds, and each queued dispatch afterwards lands on `next()`'s \"Dropped a\n * queued job: nothing is registered under the name listener:SendWelcomeEmail\",\n * long after `dispatch` returned to a caller that cannot hear it.\n */\nexport const frameworkProviders: ServiceProviderConstructor[] = [\n KernelIdServiceProvider,\n MiddlewareServiceProvider,\n DatabaseServiceProvider,\n // Before anything that reads a model at boot (the features cache warm-up),\n // so a missing key for an encrypted column fails the boot with its own\n // message rather than inside someone else's query.\n EncryptionServiceProvider,\n // After the database, whose `boot()` its cache warm-up depends on, and before\n // the route dispatchers, which evaluate flags on every view request.\n FeaturesServiceProvider,\n RouteServiceProvider,\n AuthServiceProvider,\n MailServiceProvider,\n LogServiceProvider,\n FilesystemServiceProvider,\n QueueServiceProvider,\n EventServiceProvider,\n RedisServiceProvider,\n ImageServiceProvider,\n TranslationServiceProvider,\n RateLimiterServiceProvider,\n ScheduleServiceProvider,\n ChangeFeedServiceProvider,\n];\n",
7
7
  "import { McpHttpServer } from \"../services/mcp/http/McpHttpServer\";\nimport { Application } from \"../foundation/Application\";\nimport type { ServiceProviderConstructor, ShutdownReport } from \"../foundation/Application\";\nimport type { ServiceToken } from \"../container/Container\";\nimport type { ConfigItems } from \"../support/Repository\";\nimport type { Service, ServiceConstructor } from \"../support/Service\";\nimport { registerModels } from \"../orm/registration\";\nimport { registeredNames } from \"../orm/registry\";\nimport { Scheduler } from \"../services/cron/Scheduler\";\nimport { QueueManager } from \"../services/queue/QueueManager\";\nimport { startClaimingIfServing } from \"../services/queue/QueueServiceProvider\";\nimport { ApiRouteDispatcher } from \"../services/router/ApiRouteDispatcher\";\nimport { ViewRouteDispatcher } from \"../services/router/ViewRouteDispatcher\";\nimport { DomainRouter } from \"../services/router/DomainRouter\";\nimport { runGlobalMiddleware } from \"../services/router/globalMiddleware\";\nimport { kernelContext } from \"./context\";\nimport { frameworkProviders } from \"./providers\";\n\n/**\n * The app's entry point into the framework. A Kernel subclass declares what the\n * app adds — its `config` slices and any extra `providers` — and everything\n * else lives in the Application container it owns.\n */\nexport class Kernel {\n /**\n * App-level config, merged over the framework defaults. Each key is a config\n * slice: `{ mail: { ... }, route: { ... } }`, normally the modules under\n * `app/config`.\n */\n protected config: ConfigItems = {};\n\n /**\n * App-level providers, registered after the framework's own so they can\n * rebind anything the framework bound.\n */\n protected providers: ServiceProviderConstructor[] = [];\n\n /**\n * The app's own singleton services. Each is constructed during the\n * synchronous boot phase and its `boot()` awaited during the asynchronous\n * one, in the order listed — so a service whose `boot()` depends on another\n * goes after it.\n *\n * An entry is either the class itself or a configured instance from\n * `Service.with({ ... })`. Listing is explicit rather than discovered because\n * the order is load-bearing here, and because a service is always imported by\n * whatever injects it — there is no file the import graph would miss.\n */\n protected services: Array<ServiceConstructor | Service> = [];\n\n private serviceInstances: Service[] = [];\n private serviceTokens = new Set<string>();\n private servicesBooted = false;\n\n /**\n * The modules holding the app's model classes — normally\n * `[generated, models]`, the generated namespace and the barrel of subclasses\n * written over it. Every model class they export is registered under the name\n * its schema carries, later modules winning, and the whole set is audited\n * before anything else boots.\n *\n * ### Why this is a Kernel field and not a line in a file somewhere\n *\n * Registration used to be `register(\"User\", User)` next to each subclass, and\n * the failure mode of forgetting it is an authorization hole that nothing\n * reports: a relation read resolves its target by name, so an unregistered\n * policied subclass leaves the generated base owning the name and every\n * nested `include` of that model comes back unscoped. No error at the root\n * either, because `$exec`'s divergence guard begins `registered !== this` and\n * the base it is running on *is* the registered one. A model only ever read\n * through an include — a membership, a pivot, the kind that carries a tenant\n * scope — never trips anything.\n *\n * Listing the modules here says it once, in the same place the app already\n * declares its config slices and providers, and turns the mistake into a\n * failure to boot rather than a quiet cross-tenant read.\n *\n * It sees the modules it is given, so a model class in a file that no barrel\n * re-exports is still invisible. That is the residual, and it is a smaller\n * one: a barrel is a place to notice an omission, and thirteen `register`\n * lines scattered across thirteen files is not.\n */\n protected models: Array<Record<string, unknown>> = [];\n\n readonly app = new Application();\n\n /**\n * Phase one, synchronous: every provider is constructed and its `register()`\n * runs. Only bindings are recorded here — no service is instantiated, so this\n * is safe to call from a synchronous constructor (`new App({ kernel })`).\n * Phase two is `waitForBoot()`.\n */\n boot() {\n // Before the container, deliberately. This throws on a model whose policies\n // would be skipped, and the useful moment for that is the one where nothing\n // has been constructed and no request can be in flight.\n if (this.models.length > 0) registerModels(...this.models);\n else warnIfModelsAreRegisteredButUndeclared();\n\n this.app.config.merge(this.config);\n Application.setInstance(this.app);\n this.app.registerMany([...frameworkProviders, ...this.providers]);\n this.registerServices();\n }\n\n /**\n * Constructs every listed service and binds it into the container. Runs after\n * the providers have registered, so a provider's `boot()` can `inject()` one;\n * a `Service` constructor does no I/O, so doing this synchronously costs\n * nothing beyond the field initializers.\n */\n private registerServices() {\n // What a previous pass bound, so re-running this on the same kernel is not\n // mistaken for a collision with something else.\n const ours = this.serviceTokens;\n\n this.serviceInstances = [];\n this.serviceTokens = new Set();\n this.servicesBooted = false;\n\n const owners = new Map<string, string>();\n\n for (const declaration of this.services) {\n const instance =\n typeof declaration === \"function\" ? new declaration() : declaration;\n const ctor = instance.constructor as ServiceConstructor;\n\n if (!ctor.token) {\n throw new Error(\n `Service [${ctor.name}] is listed in \\`services\\` but does not declare a \\`static token\\`.`,\n );\n }\n\n // Two services under one token is the failure this refuses to have\n // silently: the second would replace the first in the container, and\n // every `inject()` written against either would hand back whichever was\n // listed last.\n const owner = owners.get(ctor.token);\n if (owner) {\n throw new Error(\n `Services [${owner}] and [${ctor.name}] both declare the token \"${ctor.token}\". Tokens are the container's keys, so they must be unique.`,\n );\n }\n owners.set(ctor.token, ctor.name);\n\n // The same failure one level out. `Container.instance()` writes into\n // `instances`, which `make()` consults before `bindings`, so a token that\n // is already spoken for is not shared with its owner — it replaces it, for\n // every `app()` and `inject()` in the process. An app service that named\n // itself \"mail\" would leave `Mail.send()` resolving to an object with no\n // `send`, and the boot that caused it would report nothing. Providers have\n // all registered by now, so anything bound here belongs to somebody else.\n const token = ctor as unknown as ServiceToken<Service>;\n if (!ours.has(ctor.token) && this.app.bound(token)) {\n throw new Error(\n `Service [${ctor.name}] declares the token \"${ctor.token}\", which is already bound in the container by the framework or a provider. Binding it would replace that service everywhere, so pick a token nothing else owns.`,\n );\n }\n\n this.app.instance(token, instance);\n this.serviceInstances.push(instance);\n this.serviceTokens.add(ctor.token);\n }\n }\n\n /**\n * Phase two, asynchronous: every provider's `boot()` runs, in registration\n * order, after all of them have registered. Idempotent.\n */\n async waitForBoot() {\n await this.app.boot();\n await this.bootServices();\n // Last, once every job — queued listeners included — is registered.\n startClaimingIfServing(this.app);\n }\n\n /**\n * Phase two for services, after every provider's `boot()` — so a service may\n * use the facades and anything else a provider owns. Idempotent, like the\n * provider phase it follows.\n */\n private async bootServices() {\n if (this.servicesBooted) {\n return;\n }\n for (const service of this.serviceInstances) {\n await service.boot();\n }\n this.servicesBooted = true;\n }\n\n /**\n * Every provider's `shutdown()`, in reverse registration order, inside the\n * application context — so a hook may use the facades, as a cron tick or a\n * request would. See `Application.shutdown` for the deadline and the\n * report. Idempotent.\n */\n shutdown(options?: { timeoutMs?: number }): Promise<ShutdownReport> {\n return this.run(() => this.app.shutdown(options));\n }\n\n run<T>(cb: () => T) {\n return kernelContext.run(this.app, cb);\n }\n\n /**\n * Resolve a service by token. Callers outside this module should prefer the\n * named accessors below or `app()`; this exists for tooling that holds a\n * Kernel but no ambient context.\n */\n resolve<T>(token: ServiceToken<T>): T {\n return this.app.make(token);\n }\n\n // Named accessors. `app/App.ts` goes through these rather than importing the\n // service classes itself — see the note in that file about the two copies of\n // gemi that coexist at build time.\n apiRoutes(): ApiRouteDispatcher {\n return this.app.make(ApiRouteDispatcher);\n }\n\n viewRoutes(): ViewRouteDispatcher {\n return this.app.make(ViewRouteDispatcher);\n }\n\n domains(): DomainRouter {\n return this.app.make(DomainRouter);\n }\n\n queue(): QueueManager {\n return this.app.make(QueueManager);\n }\n\n /** The MCP endpoint, or `null` when `route.mcp.remote` is not enabled. */\n mcpHttp(): McpHttpServer | null {\n return this.app.config.get(\"route.mcp.remote.enabled\") === true\n ? this.app.make(McpHttpServer)\n : null;\n }\n\n /** The `global` middleware list for one request. Call it inside `run`. */\n globalMiddleware(req: Request) {\n return runGlobalMiddleware(req);\n }\n\n destroy() {\n // Only touch services that were actually resolved — resolving one here\n // would construct it purely to tear it down.\n if (this.app.resolved(Scheduler)) {\n this.app.make(Scheduler).stop();\n }\n\n this.app.flush();\n\n if (Application.getInstance() === this.app) {\n Application.setInstance(undefined);\n }\n\n kernelContext.disable();\n }\n}\n\n/**\n * Says something to an application that has models and has not declared them.\n *\n * Without this the fix for #316 defaults to off. `models` is `[]`, `boot()`\n * no-ops, and an app upgrading from 0.48 is in exactly the state the issue\n * describes until somebody edits their Kernel by hand — while the only place\n * that says to is the **Setup** section of `docs/orm.md`, which an existing app\n * read once and will not read again. #316 was filed by an app mid-migration\n * with a 79-model schema, which is precisely the reader who never sees it.\n *\n * The condition is what makes this worth printing. A populated registry with an\n * empty `models` means the generated `index.ts` was imported and its bases are\n * what every nested read resolves to — so if any policy lives on a subclass, it\n * is being skipped inside includes right now. A Kernel with no ORM at all has\n * an empty registry and hears nothing.\n *\n * Development only, and a warning rather than a throw: an app in this state is\n * running today, and turning a working deploy into a failure to start over an\n * arrangement that *might* be fine is not a patch-level thing to do. The\n * failure it points at is silent, so the fix for it has to be noisy somewhere,\n * and the terminal an author is already looking at is the cheapest somewhere\n * there is.\n */\nfunction warnIfModelsAreRegisteredButUndeclared(): void {\n if (process.env.NODE_ENV === \"production\") return;\n\n const registered = registeredNames();\n if (registered.length === 0) return;\n\n console.warn(\n `[gemi] ${registered.length} model${registered.length === 1 ? \" is\" : \"s are\"} ` +\n `registered, but Kernel.models is empty.\\n` +\n ` Nested relation reads resolve a model by name, so a policy on a ` +\n `subclass that does not own its\\n` +\n ` name is skipped inside every include — scoped at the root, ` +\n `unscoped in an include, with nothing\\n` +\n ` to notice it. Declaring the modules registers each class under ` +\n `its own name and audits the set:\\n\\n` +\n ` import * as generated from \"../models/generated\"\\n` +\n ` import * as models from \"../models\"\\n\\n` +\n ` export default class extends Kernel {\\n` +\n ` models = [generated, models]\\n` +\n ` }\\n\\n` +\n ` See docs/orm.md#your-model-class. Development only; this never ` +\n `prints in production.`,\n );\n}\n"
8
8
  ],
9
- "mappings": ";mgDAqCA,IAAS,HAAe,JAAC,HAAoB,JAC3C,DAAM,HAAe,HAAS,GAAQ,DAAI,UAAe,FAAG,OAAY,FAAK,FAC7E,CAAO,0BAA+B,AAAK,JAAY,HAGzD,DAAM,FAAY,DAAI,DAEhB,FAAuC,JAC3C,GAAS,AACT,CAAO,JAAC,DAAa,EACrB,QAAS,IACX,EA8BA,eAAsB,CAAmB,CAAC,EAAgD,CACxF,IAAM,EAAW,EAAI,CAAkB,EACvC,GAAI,EAAS,OAAO,OAAO,SAAW,EACpC,OAAO,GAGT,IAAQ,YAAa,IAAI,IAAI,EAAI,GAAG,EAC9B,EAAQ,EAAU,CAAQ,EAC1B,EAAc,IAAI,EAAY,EAAK,CAAC,EAAG,EAAQ,MAAQ,OAAQ,EAAE,EAEvE,OAAO,MAAM,EAAe,IAAI,EAAa,SAAY,CACvD,IAAM,EAAM,EAAe,SAAS,GAE5B,UAAS,YAAY,EACvB,EAAQ,CAAC,IAAuB,CACpC,GAAI,CAAC,GAAgB,CAAQ,EAC3B,OAAO,EAAyB,EAAU,EAAS,EAAO,EAE5D,IAAM,EAAiB,IAAI,QAAQ,CAA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