gemi 0.52.0 → 0.54.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 (244) hide show
  1. package/dist/app/index.js +2 -2
  2. package/dist/app/index.js.map +1 -1
  3. package/dist/bin/gemi.js +1456 -5
  4. package/dist/bin/gemi.js.map +9 -5
  5. package/dist/broadcasting/index.js +1 -1
  6. package/dist/bun/plugin.js +2 -2
  7. package/dist/bun/plugin.js.map +1 -1
  8. package/dist/bun/preload.js +2 -2
  9. package/dist/bun/preload.js.map +1 -1
  10. package/dist/{chunk-msz8rngs.js → chunk-004bcmsa.js} +2 -2
  11. package/dist/chunk-004bcmsa.js.map +10 -0
  12. package/dist/chunk-07t0dmdg.js +4 -0
  13. package/dist/{chunk-faa987e4.js.map → chunk-07t0dmdg.js.map} +2 -2
  14. package/dist/{chunk-4t6a82fh.js → chunk-0weeq0ke.js} +2 -2
  15. package/dist/{chunk-4t6a82fh.js.map → chunk-0weeq0ke.js.map} +1 -1
  16. package/dist/chunk-113khwbw.js +5 -0
  17. package/dist/{chunk-2qn472j4.js.map → chunk-113khwbw.js.map} +1 -1
  18. package/dist/{chunk-tmk4zfz9.js → chunk-1sh6kqjn.js} +3 -3
  19. package/dist/{chunk-tmk4zfz9.js.map → chunk-1sh6kqjn.js.map} +1 -1
  20. package/dist/{chunk-2gw6cyyj.js → chunk-1snh7yc4.js} +2 -2
  21. package/dist/{chunk-2gw6cyyj.js.map → chunk-1snh7yc4.js.map} +1 -1
  22. package/dist/chunk-26r8dcxd.js +6 -0
  23. package/dist/{chunk-hbycemy5.js.map → chunk-26r8dcxd.js.map} +2 -2
  24. package/dist/{chunk-ebcgdv00.js → chunk-2pt6kyn9.js} +3 -3
  25. package/dist/{chunk-ebcgdv00.js.map → chunk-2pt6kyn9.js.map} +1 -1
  26. package/dist/{chunk-jdfe4dmh.js → chunk-2zmz3pjk.js} +3 -3
  27. package/dist/{chunk-jdfe4dmh.js.map → chunk-2zmz3pjk.js.map} +1 -1
  28. package/dist/{chunk-zhsaz9cr.js → chunk-3bw1jk21.js} +1 -1
  29. package/dist/chunk-4qkzdyj7.js +4 -0
  30. package/dist/{chunk-4e61qbp4.js.map → chunk-4qkzdyj7.js.map} +1 -1
  31. package/dist/{chunk-d1ahbza9.js → chunk-50vm7x98.js} +3 -3
  32. package/dist/{chunk-d1ahbza9.js.map → chunk-50vm7x98.js.map} +1 -1
  33. package/dist/{chunk-qyaqg07q.js → chunk-6j1z2cqt.js} +2 -2
  34. package/dist/{chunk-qyaqg07q.js.map → chunk-6j1z2cqt.js.map} +1 -1
  35. package/dist/chunk-6rhebm18.js +5 -0
  36. package/dist/chunk-6rhebm18.js.map +10 -0
  37. package/dist/{chunk-rq770c71.js → chunk-71m47kad.js} +2 -2
  38. package/dist/{chunk-rq770c71.js.map → chunk-71m47kad.js.map} +1 -1
  39. package/dist/{chunk-0h3jr9d9.js → chunk-7f5ad759.js} +2 -2
  40. package/dist/{chunk-8p6rqegw.js.map → chunk-7f5ad759.js.map} +1 -1
  41. package/dist/{chunk-qj4mmner.js → chunk-85av4ncy.js} +2 -2
  42. package/dist/{chunk-qj4mmner.js.map → chunk-85av4ncy.js.map} +1 -1
  43. package/dist/{chunk-23g7qdpg.js → chunk-9taz1h3t.js} +3 -3
  44. package/dist/{chunk-23g7qdpg.js.map → chunk-9taz1h3t.js.map} +1 -1
  45. package/dist/{chunk-ppt296ye.js → chunk-agabw2w1.js} +2 -2
  46. package/dist/{chunk-ppt296ye.js.map → chunk-agabw2w1.js.map} +1 -1
  47. package/dist/{chunk-092pj2j2.js → chunk-bb3zvxsf.js} +3 -3
  48. package/dist/{chunk-092pj2j2.js.map → chunk-bb3zvxsf.js.map} +1 -1
  49. package/dist/{chunk-h7jv3ame.js → chunk-br8ten26.js} +2 -2
  50. package/dist/{chunk-h7jv3ame.js.map → chunk-br8ten26.js.map} +1 -1
  51. package/dist/{chunk-4e61qbp4.js → chunk-bzhtymvv.js} +2 -2
  52. package/dist/{chunk-0h3jr9d9.js.map → chunk-bzhtymvv.js.map} +1 -1
  53. package/dist/{chunk-68w225rv.js → chunk-c0wcsmpj.js} +2 -2
  54. package/dist/{chunk-68w225rv.js.map → chunk-c0wcsmpj.js.map} +1 -1
  55. package/dist/{chunk-xsmt86n3.js → chunk-c22vcxty.js} +2 -2
  56. package/dist/{chunk-xsmt86n3.js.map → chunk-c22vcxty.js.map} +1 -1
  57. package/dist/{chunk-a0sy9f9x.js → chunk-c2pv3ah8.js} +2 -2
  58. package/dist/{chunk-a0sy9f9x.js.map → chunk-c2pv3ah8.js.map} +2 -2
  59. package/dist/{chunk-q09mmr05.js → chunk-cz3szqhq.js} +2 -2
  60. package/dist/{chunk-q09mmr05.js.map → chunk-cz3szqhq.js.map} +1 -1
  61. package/dist/{chunk-69w4egkg.js → chunk-dwx2y7br.js} +4 -4
  62. package/dist/{chunk-69w4egkg.js.map → chunk-dwx2y7br.js.map} +1 -1
  63. package/dist/{chunk-2sfz64xh.js → chunk-dxw8k6f1.js} +2 -2
  64. package/dist/{chunk-2sfz64xh.js.map → chunk-dxw8k6f1.js.map} +1 -1
  65. package/dist/chunk-e3mggavt.js +5 -0
  66. package/dist/chunk-e3mggavt.js.map +11 -0
  67. package/dist/{chunk-j1knf8gv.js → chunk-efsk1wy0.js} +3 -3
  68. package/dist/{chunk-j1knf8gv.js.map → chunk-efsk1wy0.js.map} +1 -1
  69. package/dist/{chunk-t4n25km9.js → chunk-f13f68c0.js} +2 -2
  70. package/dist/{chunk-t4n25km9.js.map → chunk-f13f68c0.js.map} +1 -1
  71. package/dist/{chunk-vv72kw74.js → chunk-f418jh9k.js} +2 -2
  72. package/dist/{chunk-vv72kw74.js.map → chunk-f418jh9k.js.map} +1 -1
  73. package/dist/chunk-f4e7fh95.js +17 -0
  74. package/dist/chunk-f4e7fh95.js.map +14 -0
  75. package/dist/{chunk-ewgv1j8q.js → chunk-fcqc3e3r.js} +2 -2
  76. package/dist/{chunk-ewgv1j8q.js.map → chunk-fcqc3e3r.js.map} +1 -1
  77. package/dist/{chunk-3y9nf09k.js → chunk-g5tj10p8.js} +2 -2
  78. package/dist/{chunk-3y9nf09k.js.map → chunk-g5tj10p8.js.map} +1 -1
  79. package/dist/chunk-gn9zjgep.js +5 -0
  80. package/dist/chunk-gn9zjgep.js.map +10 -0
  81. package/dist/{chunk-5s45prj5.js → chunk-h7mcwfg5.js} +4 -4
  82. package/dist/{chunk-5s45prj5.js.map → chunk-h7mcwfg5.js.map} +1 -1
  83. package/dist/chunk-hk067634.js +4 -0
  84. package/dist/{chunk-vnjvd82s.js.map → chunk-hk067634.js.map} +2 -2
  85. package/dist/{chunk-qx6sahe0.js → chunk-hrrmxreg.js} +2 -2
  86. package/dist/{chunk-qx6sahe0.js.map → chunk-hrrmxreg.js.map} +1 -1
  87. package/dist/{chunk-p22rkf1g.js → chunk-jb022m7n.js} +2 -2
  88. package/dist/{chunk-p22rkf1g.js.map → chunk-jb022m7n.js.map} +1 -1
  89. package/dist/chunk-jb2nst6v.js +4 -0
  90. package/dist/{chunk-6scjrbw7.js.map → chunk-jb2nst6v.js.map} +2 -2
  91. package/dist/{chunk-kxzwem3g.js → chunk-jdgvdddd.js} +2 -2
  92. package/dist/{chunk-kxzwem3g.js.map → chunk-jdgvdddd.js.map} +1 -1
  93. package/dist/{chunk-2yth3kk2.js → chunk-jp4pf3yt.js} +4 -4
  94. package/dist/{chunk-2yth3kk2.js.map → chunk-jp4pf3yt.js.map} +1 -1
  95. package/dist/{chunk-0tbwn6er.js → chunk-k14dmqwh.js} +3 -3
  96. package/dist/{chunk-0tbwn6er.js.map → chunk-k14dmqwh.js.map} +1 -1
  97. package/dist/{chunk-1ce7veh9.js → chunk-k8endm5j.js} +3 -3
  98. package/dist/{chunk-1ce7veh9.js.map → chunk-k8endm5j.js.map} +1 -1
  99. package/dist/chunk-kkkqyvwv.js +81 -0
  100. package/dist/{chunk-km6x37ws.js.map → chunk-kkkqyvwv.js.map} +5 -5
  101. package/dist/{chunk-cmq5t8p9.js → chunk-kv2ep453.js} +3 -3
  102. package/dist/{chunk-cmq5t8p9.js.map → chunk-kv2ep453.js.map} +1 -1
  103. package/dist/{chunk-z4q1ty6w.js → chunk-kz39hphm.js} +3 -3
  104. package/dist/{chunk-z4q1ty6w.js.map → chunk-kz39hphm.js.map} +1 -1
  105. package/dist/{chunk-kaxvw75w.js → chunk-ms8qd7da.js} +3 -3
  106. package/dist/{chunk-kaxvw75w.js.map → chunk-ms8qd7da.js.map} +1 -1
  107. package/dist/{chunk-ttzkn1qd.js → chunk-n1tkn8gv.js} +2 -2
  108. package/dist/{chunk-ttzkn1qd.js.map → chunk-n1tkn8gv.js.map} +1 -1
  109. package/dist/chunk-nncwsdzz.js +5 -0
  110. package/dist/chunk-nncwsdzz.js.map +10 -0
  111. package/dist/{chunk-et0j6jx8.js → chunk-pgjk5ft3.js} +3 -3
  112. package/dist/{chunk-et0j6jx8.js.map → chunk-pgjk5ft3.js.map} +1 -1
  113. package/dist/{chunk-tztqkat2.js → chunk-r06rxn19.js} +2 -2
  114. package/dist/{chunk-tztqkat2.js.map → chunk-r06rxn19.js.map} +1 -1
  115. package/dist/chunk-r9z5rrk0.js +4 -0
  116. package/dist/{chunk-1ab1ptq5.js.map → chunk-r9z5rrk0.js.map} +2 -2
  117. package/dist/{chunk-h5g05qwb.js → chunk-s6e7cvek.js} +2 -2
  118. package/dist/{chunk-h5g05qwb.js.map → chunk-s6e7cvek.js.map} +1 -1
  119. package/dist/{chunk-53e48ce8.js → chunk-sqp7kn7h.js} +3 -3
  120. package/dist/{chunk-53e48ce8.js.map → chunk-sqp7kn7h.js.map} +1 -1
  121. package/dist/{chunk-mt2755rs.js → chunk-w6gb9gc5.js} +3 -3
  122. package/dist/{chunk-mt2755rs.js.map → chunk-w6gb9gc5.js.map} +1 -1
  123. package/dist/{chunk-ha7n1c94.js → chunk-xxw0gz4q.js} +2 -2
  124. package/dist/{chunk-ha7n1c94.js.map → chunk-xxw0gz4q.js.map} +1 -1
  125. package/dist/chunk-ywr2vd5r.js +5 -0
  126. package/dist/{chunk-f29vd5mc.js.map → chunk-ywr2vd5r.js.map} +2 -2
  127. package/dist/{chunk-38ma6gg3.js → chunk-zckj6bs6.js} +3 -3
  128. package/dist/{chunk-38ma6gg3.js.map → chunk-zckj6bs6.js.map} +1 -1
  129. package/dist/chunks/ThemeProvider-Bk1eZymb.js +2901 -0
  130. package/dist/chunks/ThemeProvider-Bk1eZymb.js.map +1 -0
  131. package/dist/client/ComponentContext.d.ts.map +1 -1
  132. package/dist/client/DictionarySinkContext.d.ts +10 -0
  133. package/dist/client/DictionarySinkContext.d.ts.map +1 -0
  134. package/dist/client/Mutation.d.ts +1 -1
  135. package/dist/client/Mutation.d.ts.map +1 -1
  136. package/dist/client/ThemeProvider.d.ts +7 -0
  137. package/dist/client/ThemeProvider.d.ts.map +1 -1
  138. package/dist/client/createRoot.d.ts.map +1 -1
  139. package/dist/client/index.d.ts +2 -0
  140. package/dist/client/index.d.ts.map +1 -1
  141. package/dist/client/index.js +242 -2629
  142. package/dist/client/index.js.map +1 -1
  143. package/dist/client/useDictionary.d.ts +34 -0
  144. package/dist/client/useDictionary.d.ts.map +1 -0
  145. package/dist/client/useDictionary.test-d.d.ts +2 -0
  146. package/dist/client/useDictionary.test-d.d.ts.map +1 -0
  147. package/dist/client/useIsNavigationPending.d.ts.map +1 -1
  148. package/dist/client/useMutate.d.ts.map +1 -1
  149. package/dist/client/useTranslator.d.ts +8 -0
  150. package/dist/client/useTranslator.d.ts.map +1 -1
  151. package/dist/config/index.js +1 -1
  152. package/dist/console/run.js +2 -2
  153. package/dist/console/run.js.map +1 -1
  154. package/dist/container/index.js +2 -2
  155. package/dist/container/index.js.map +1 -1
  156. package/dist/database/index.js +2 -2
  157. package/dist/database/index.js.map +1 -1
  158. package/dist/email/index.js +2 -2
  159. package/dist/email/index.js.map +1 -1
  160. package/dist/facades/Lang.d.ts.map +1 -1
  161. package/dist/facades/index.js +2 -2
  162. package/dist/facades/index.js.map +1 -1
  163. package/dist/foundation/index.js +2 -2
  164. package/dist/foundation/index.js.map +1 -1
  165. package/dist/http/index.js +2 -2
  166. package/dist/http/index.js.map +1 -1
  167. package/dist/i18n/Dictionary.d.ts +7 -0
  168. package/dist/i18n/Dictionary.d.ts.map +1 -1
  169. package/dist/i18n/Translator.d.ts +12 -0
  170. package/dist/i18n/Translator.d.ts.map +1 -1
  171. package/dist/i18n/config.d.ts +6 -0
  172. package/dist/i18n/config.d.ts.map +1 -1
  173. package/dist/i18n/defineDictionary.d.ts +65 -0
  174. package/dist/i18n/defineDictionary.d.ts.map +1 -0
  175. package/dist/i18n/dictionaryRegistry.d.ts +85 -0
  176. package/dist/i18n/dictionaryRegistry.d.ts.map +1 -0
  177. package/dist/i18n/dictionaryRuntime.d.ts +16 -0
  178. package/dist/i18n/dictionaryRuntime.d.ts.map +1 -0
  179. package/dist/i18n/dictionaryRuntime.js +4 -0
  180. package/dist/i18n/dictionaryRuntime.js.map +9 -0
  181. package/dist/i18n/dictionaryShape.d.ts +66 -0
  182. package/dist/i18n/dictionaryShape.d.ts.map +1 -0
  183. package/dist/i18n/dictionarySink.d.ts +31 -0
  184. package/dist/i18n/dictionarySink.d.ts.map +1 -0
  185. package/dist/i18n/index.d.ts +3 -0
  186. package/dist/i18n/index.d.ts.map +1 -1
  187. package/dist/i18n/index.js +2 -2
  188. package/dist/i18n/index.js.map +5 -4
  189. package/dist/i18n/translate.d.ts +21 -0
  190. package/dist/i18n/translate.d.ts.map +1 -0
  191. package/dist/internal/gemiExternals.d.ts +1 -1
  192. package/dist/internal/gemiExternals.d.ts.map +1 -1
  193. package/dist/kernel/index.js +2 -2
  194. package/dist/kernel/index.js.map +2 -2
  195. package/dist/orm/index.js +2 -2
  196. package/dist/orm/index.js.map +2 -2
  197. package/dist/server/index.js +2 -2
  198. package/dist/server/index.js.map +1 -1
  199. package/dist/services/index.js +4 -4
  200. package/dist/services/index.js.map +2 -2
  201. package/dist/services/router/ViewRouteDispatcher.d.ts.map +1 -1
  202. package/dist/services/router/streamQueryInjection.d.ts +9 -1
  203. package/dist/services/router/streamQueryInjection.d.ts.map +1 -1
  204. package/dist/support/index.js +2 -2
  205. package/dist/support/index.js.map +1 -1
  206. package/dist/testing/Page.d.ts +166 -0
  207. package/dist/testing/Page.d.ts.map +1 -0
  208. package/dist/testing/index.d.ts +3 -0
  209. package/dist/testing/index.d.ts.map +1 -0
  210. package/dist/testing/index.js +352 -0
  211. package/dist/testing/index.js.map +1 -0
  212. package/dist/utils/Subject.d.ts.map +1 -1
  213. package/dist/utils/variantKey.d.ts +19 -0
  214. package/dist/utils/variantKey.d.ts.map +1 -0
  215. package/dist/vite/__vite-browser-external-S5EYS4bz.mjs +7 -0
  216. package/dist/vite/api_vite-DSBC5Nzy.mjs +5 -0
  217. package/dist/vite/browser-DFEUWTkA.mjs +6086 -0
  218. package/dist/vite/build-C0lmnz6d.mjs +5326 -0
  219. package/dist/vite/index.mjs +1349 -1
  220. package/dist/vite/lib-TT6NqN6b.mjs +363 -0
  221. package/dist/vite/lib-U4DF62jt.mjs +48846 -0
  222. package/dist/vite/main-Drp2rSLR.mjs +2123 -0
  223. package/dist/vite/node-BgyIm-M7.mjs +17799 -0
  224. package/dist/vite/node-yGkKTK1d.mjs +789 -0
  225. package/dist/vite/postcss-hCXrlC4m.mjs +3515 -0
  226. package/dist/vite/postcss-import-rYEe0OKc.mjs +448 -0
  227. package/dist/vite/prompt--dNycKSZ-BmZ8jzP_.mjs +889 -0
  228. package/dist/vite/rolldown-runtime-B4lejLz5.mjs +37 -0
  229. package/package.json +4 -1
  230. package/dist/chunk-1ab1ptq5.js +0 -4
  231. package/dist/chunk-2qn472j4.js +0 -5
  232. package/dist/chunk-6scjrbw7.js +0 -4
  233. package/dist/chunk-88pq4gmf.js +0 -5
  234. package/dist/chunk-88pq4gmf.js.map +0 -10
  235. package/dist/chunk-8p6rqegw.js +0 -4
  236. package/dist/chunk-f29vd5mc.js +0 -5
  237. package/dist/chunk-faa987e4.js +0 -4
  238. package/dist/chunk-hbycemy5.js +0 -6
  239. package/dist/chunk-km6x37ws.js +0 -81
  240. package/dist/chunk-msz8rngs.js.map +0 -10
  241. package/dist/chunk-vnjvd82s.js +0 -4
  242. package/dist/chunk-xw44bwnh.js +0 -5
  243. package/dist/chunk-xw44bwnh.js.map +0 -11
  244. /package/dist/{chunk-zhsaz9cr.js.map → chunk-3bw1jk21.js.map} +0 -0
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../i18n/config.ts"],
4
- "sourcesContent": [
5
- "import type { Dictionary } from \"./Dictionary\";\nimport type { HttpRequest } from \"../http/HttpRequest\";\n\n// Config key: `translation`. Derived from `I18nServiceProvider`.\nexport interface TranslationConfig {\n supportedLocales?: string[];\n defaultLocale?: string;\n prefetch?: Record<string, Array<Dictionary<any>>>;\n components?: Record<string, Dictionary<any>>;\n\n // Returning `null` falls back to gemi's own locale detection.\n detectLocale?: (req: HttpRequest) => string | null;\n onLocaleChange?: (locale: string) => Promise<void> | void;\n}\n\nexport function defineTranslationConfig(\n config: TranslationConfig,\n): TranslationConfig {\n return config;\n}\n\nexport function translationConfigDefaults(): Required<TranslationConfig> {\n return {\n supportedLocales: [],\n defaultLocale: \"en-US\",\n prefetch: {},\n components: {},\n detectLocale: () => null,\n onLocaleChange: (locale) => {\n console.log(`Locale changed to ${locale}`);\n },\n };\n}\n"
6
- ],
7
- "mappings": ";AAeO,SAAS,CAAuB,CACrC,EACmB,CACnB,OAAO,EAGF,SAAS,CAAyB,EAAgC,CACvE,MAAO,CACL,iBAAkB,CAAC,EACnB,cAAe,QACf,SAAU,CAAC,EACX,WAAY,CAAC,EACb,aAAc,IAAM,KACpB,eAAgB,CAAC,IAAW,CAC1B,QAAQ,IAAI,qBAAqB,GAAQ,EAE7C",
8
- "debugId": "45983B44768F956064756E2164756E21",
9
- "names": []
10
- }
@@ -1,4 +0,0 @@
1
- // @bun
2
- import{a as Nt}from"./chunk-4e61qbp4.js";import{$ as Hr,U as er,W as L,X as At,Y as Wt,Z as Yt,aa as Lr,ba as Rt,ca as jt,da as ar,ea as Bt,fa as Jt,ga as lr,ha as Mt,ia as Ut,ja as wt,ka as xt,la as pt,ma as Xt}from"./chunk-69w4egkg.js";import{na as Nr,oa as at,qa as Dt,ua as He,ya as M}from"./chunk-2yth3kk2.js";import{za as zt}from"./chunk-j1knf8gv.js";import"./chunk-d1ahbza9.js";import{Fa as ut}from"./chunk-23g7qdpg.js";import{Ga as Ft}from"./chunk-ebcgdv00.js";import{Ha as lt}from"./chunk-q09mmr05.js";import"./chunk-t4n25km9.js";import"./chunk-tztqkat2.js";import"./chunk-kaxvw75w.js";import{La as bt}from"./chunk-092pj2j2.js";import{Qe as p}from"./chunk-0h3jr9d9.js";var V=p((se)=>{Object.defineProperty(se,"__esModule",{value:!0});se.resolveHttpAuthSchemeConfig=se.defaultSigninHttpAuthSchemeProvider=se.defaultSigninHttpAuthSchemeParametersProvider=void 0;var Mr=L(),H=Nr(),Ur=async(e,r,t)=>{return{operation:(0,H.getSmithyContext)(r).operation,region:await(0,H.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};se.defaultSigninHttpAuthSchemeParametersProvider=Ur;function wr(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:e.region},propertiesExtractor:(r,t)=>({signingProperties:{config:r,context:t}})}}function xr(e){return{schemeId:"smithy.api#noAuth"}}var gr=(e)=>{let r=[];switch(e.operation){case"CreateOAuth2Token":{r.push(xr(e));break}default:r.push(wr(e))}return r};se.defaultSigninHttpAuthSchemeProvider=gr;var fr=(e)=>{let r=(0,Mr.resolveAwsSdkSigV4Config)(e);return Object.assign(r,{authSchemePreference:(0,H.normalizeProvider)(e.authSchemePreference??[])})};se.resolveHttpAuthSchemeConfig=fr});var Se=p((Ee)=>{Object.defineProperty(Ee,"__esModule",{value:!0});Ee.ruleSet=void 0;var ve="required",o="fn",n="argv",c="ref",ne=!0,ie="isSet",S="booleanEquals",I="error",E="endpoint",l="tree",N="PartitionResult",z="stringEquals",de={[ve]:!0,default:!1,type:"boolean"},ue={[ve]:!1,type:"string"},ae={[c]:"Endpoint"},A={[o]:S,[n]:[{[c]:"UseFIPS"},!0]},W={[o]:S,[n]:[{[c]:"UseDualStack"},!0]},s={},Y={[o]:"getAttr",[n]:[{[c]:N},"name"]},R={[o]:S,[n]:[{[c]:"UseFIPS"},!1]},F={[o]:S,[n]:[{[c]:"UseDualStack"},!1]},le={[o]:"getAttr",[n]:[{[c]:N},"supportsFIPS"]},pe={[o]:S,[n]:[!0,{[o]:"getAttr",[n]:[{[c]:N},"supportsDualStack"]}]},ce=[{[c]:"Region"}],hr={version:"1.0",parameters:{UseDualStack:de,UseFIPS:de,Endpoint:ue,Region:ue},rules:[{conditions:[{[o]:ie,[n]:[ae]}],rules:[{conditions:[A],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:I},{rules:[{conditions:[W],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:I},{endpoint:{url:ae,properties:s,headers:s},type:E}],type:l}],type:l},{rules:[{conditions:[{[o]:ie,[n]:ce}],rules:[{conditions:[{[o]:"aws.partition",[n]:ce,assign:N}],rules:[{conditions:[{[o]:z,[n]:[Y,"aws"]},R,F],endpoint:{url:"https://{Region}.signin.aws.amazon.com",properties:s,headers:s},type:E},{conditions:[{[o]:z,[n]:[Y,"aws-cn"]},R,F],endpoint:{url:"https://{Region}.signin.amazonaws.cn",properties:s,headers:s},type:E},{conditions:[{[o]:z,[n]:[Y,"aws-us-gov"]},R,F],endpoint:{url:"https://{Region}.signin.amazonaws-us-gov.com",properties:s,headers:s},type:E},{conditions:[A,W],rules:[{conditions:[{[o]:S,[n]:[ne,le]},pe],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s,headers:s},type:E}],type:l},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:I}],type:l},{conditions:[A,F],rules:[{conditions:[{[o]:S,[n]:[le,ne]}],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",properties:s,headers:s},type:E}],type:l},{error:"FIPS is enabled but this partition does not support FIPS",type:I}],type:l},{conditions:[R,W],rules:[{conditions:[pe],rules:[{endpoint:{url:"https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s,headers:s},type:E}],type:l},{error:"DualStack is enabled but this partition does not support DualStack",type:I}],type:l},{endpoint:{url:"https://signin.{Region}.{PartitionResult#dnsSuffix}",properties:s,headers:s},type:E}],type:l}],type:l},{error:"Invalid Configuration: Missing Region",type:I}],type:l}]};Ee.ruleSet=hr});var Ie=p((Pe)=>{Object.defineProperty(Pe,"__esModule",{value:!0});Pe.defaultEndpointResolver=void 0;var Vr=Lr(),j=Hr(),zr=Se(),Ar=new j.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Wr=(e,r={})=>{return Ar.get(e,()=>(0,j.resolveEndpoint)(zr.ruleSet,{endpointParams:e,logger:r.logger}))};Pe.defaultEndpointResolver=Wr;j.customEndpointFunctions.aws=Vr.awsEndpointFunctions});var U=p((J)=>{Object.defineProperty(J,"__esModule",{value:!0});J.SigninServiceException=J.__ServiceException=void 0;var qe=M();Object.defineProperty(J,"__ServiceException",{enumerable:!0,get:function(){return qe.ServiceException}});class B extends qe.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,B.prototype)}}J.SigninServiceException=B});var k=p((be)=>{Object.defineProperty(be,"__esModule",{value:!0});be.ValidationException=be.TooManyRequestsError=be.InternalServerException=be.AccessDeniedException=void 0;var w=U();class X extends w.SigninServiceException{name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,X.prototype),this.error=e.error}}be.AccessDeniedException=X;class Q extends w.SigninServiceException{name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,Q.prototype),this.error=e.error}}be.InternalServerException=Q;class Z extends w.SigninServiceException{name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e});Object.setPrototypeOf(this,Z.prototype),this.error=e.error}}be.TooManyRequestsError=Z;class K extends w.SigninServiceException{name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype),this.error=e.error}}be.ValidationException=K});var C=p((We)=>{Object.defineProperty(We,"__esModule",{value:!0});We.CreateOAuth2Token$=We.CreateOAuth2TokenResponseBody$=We.CreateOAuth2TokenResponse$=We.CreateOAuth2TokenRequestBody$=We.CreateOAuth2TokenRequest$=We.AccessToken$=We.errorTypeRegistries=We.ValidationException$=We.TooManyRequestsError$=We.InternalServerException$=We.AccessDeniedException$=We.SigninServiceException$=void 0;var Jr="AccessDeniedException",Xr="AccessToken",Qr="CreateOAuth2Token",Zr="CreateOAuth2TokenRequest",Kr="CreateOAuth2TokenRequestBody",kr="CreateOAuth2TokenResponseBody",Tr="CreateOAuth2TokenResponse",mr="InternalServerException",Cr="RefreshToken",_r="TooManyRequestsError",et="ValidationException",Fe="accessKeyId",Ne="accessToken",T="client",Me="clientId",Ue="codeVerifier",rt="code",y="error",we="expiresIn",xe="grantType",tt="http",m="httpError",ge="idToken",d="jsonName",g="message",x="refreshToken",fe="redirectUri",Le="smithy.ts.sdk.synthetic.com.amazonaws.signin",Ge="secretAccessKey",$e="sessionToken",st="server",ot="tokenInput",nt="tokenOutput",he="tokenType",u="com.amazonaws.signin",Ve=He(),f=k(),it=U(),ze=Ve.TypeRegistry.for(Le);We.SigninServiceException$=[-3,Le,"SigninServiceException",0,[],[]];ze.registerError(We.SigninServiceException$,it.SigninServiceException);var q=Ve.TypeRegistry.for(u);We.AccessDeniedException$=[-3,u,Jr,{[y]:T},[y,g],[0,0],2];q.registerError(We.AccessDeniedException$,f.AccessDeniedException);We.InternalServerException$=[-3,u,mr,{[y]:st,[m]:500},[y,g],[0,0],2];q.registerError(We.InternalServerException$,f.InternalServerException);We.TooManyRequestsError$=[-3,u,_r,{[y]:T,[m]:429},[y,g],[0,0],2];q.registerError(We.TooManyRequestsError$,f.TooManyRequestsError);We.ValidationException$=[-3,u,et,{[y]:T,[m]:400},[y,g],[0,0],2];q.registerError(We.ValidationException$,f.ValidationException);We.errorTypeRegistries=[ze,q];var Ae=[0,u,Cr,8,0];We.AccessToken$=[3,u,Xr,8,[Fe,Ge,$e],[[0,{[d]:Fe}],[0,{[d]:Ge}],[0,{[d]:$e}]],3];We.CreateOAuth2TokenRequest$=[3,u,Zr,0,[ot],[[()=>We.CreateOAuth2TokenRequestBody$,16]],1];We.CreateOAuth2TokenRequestBody$=[3,u,Kr,0,[Me,xe,rt,fe,Ue,x],[[0,{[d]:Me}],[0,{[d]:xe}],0,[0,{[d]:fe}],[0,{[d]:Ue}],[()=>Ae,{[d]:x}]],2];We.CreateOAuth2TokenResponse$=[3,u,Tr,0,[nt],[[()=>We.CreateOAuth2TokenResponseBody$,16]],1];We.CreateOAuth2TokenResponseBody$=[3,u,kr,0,[Ne,he,we,x,ge],[[()=>We.AccessToken$,{[d]:Ne}],[0,{[d]:he}],[1,{[d]:we}],[()=>Ae,{[d]:x}],[0,{[d]:ge}]],4];We.CreateOAuth2Token$=[9,u,Qr,{[tt]:["POST","/v1/token",200]},()=>We.CreateOAuth2TokenRequest$,()=>We.CreateOAuth2TokenResponse$]});var sr=p((rr)=>{Object.defineProperty(rr,"__esModule",{value:!0});rr.getRuntimeConfig=void 0;var ct=L(),vt=pt(),Et=er(),yt=M(),St=lt(),Ce=at(),_e=ut(),Pt=V(),Ot=Ie(),It=C(),qt=(e)=>{return{apiVersion:"2023-01-01",base64Decoder:e?.base64Decoder??Ce.fromBase64,base64Encoder:e?.base64Encoder??Ce.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ot.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Pt.defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new ct.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Et.NoAuthSigner}],logger:e?.logger??new yt.NoOpLogger,protocol:e?.protocol??vt.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:It.errorTypeRegistries,version:"2023-01-01",serviceTarget:"Signin"},serviceId:e?.serviceId??"Signin",urlParser:e?.urlParser??St.parseUrl,utf8Decoder:e?.utf8Decoder??_e.fromUtf8,utf8Encoder:e?.utf8Encoder??_e.toUtf8}};rr.getRuntimeConfig=qt});var vr=p((pr)=>{Object.defineProperty(pr,"__esModule",{value:!0});pr.getRuntimeConfig=void 0;var gt=bt(),ft=gt.__importDefault(Nt()),or=L(),nr=Mt(),G=ar(),Gt=Ut(),ir=lr(),P=Ft(),dr=Dt(),ur=M(),$t=wt(),ht=xt(),Ht=Rt(),Lt=sr(),Vt=(e)=>{(0,ur.emitWarningIfUnsupportedVersion)(process.version);let r=(0,ht.resolveDefaultsModeConfig)(e),t=()=>r().then(ur.loadConfigsForDefaultMode),a=(0,Lt.getRuntimeConfig)(e);(0,or.emitWarningIfUnsupportedVersion)(process.version);let i={profile:e?.profile,logger:a.logger};return{...a,...e,runtime:"node",defaultsMode:r,authSchemePreference:e?.authSchemePreference??(0,P.loadConfig)(or.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,i),bodyLengthChecker:e?.bodyLengthChecker??$t.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,nr.createDefaultUserAgentProvider)({serviceId:a.serviceId,clientVersion:ft.default.version}),maxAttempts:e?.maxAttempts??(0,P.loadConfig)(ir.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,P.loadConfig)(G.NODE_REGION_CONFIG_OPTIONS,{...G.NODE_REGION_CONFIG_FILE_OPTIONS,...i}),requestHandler:dr.NodeHttpHandler.create(e?.requestHandler??t),retryMode:e?.retryMode??(0,P.loadConfig)({...ir.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Ht.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Gt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??dr.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,P.loadConfig)(G.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,i),useFipsEndpoint:e?.useFipsEndpoint??(0,P.loadConfig)(G.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,i),userAgentAppId:e?.userAgentAppId??(0,P.loadConfig)(nr.NODE_APP_ID_CONFIG_OPTIONS,i)}};pr.getRuntimeConfig=Vt});var vs=p((v)=>{var Er=At(),Qt=Wt(),Zt=Yt(),yr=jt(),Kt=ar(),_=er(),kt=He(),Tt=Bt(),qr=Jt(),Sr=lr(),O=M(),Pr=V(),mt=vr(),Or=Xt(),Ir=zt(),D=C(),$=k(),Ct=U(),_t=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"signin"})},es={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},rs=(e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:t,credentials:a}=e;return{setHttpAuthScheme(i){let b=r.findIndex((h)=>h.schemeId===i.schemeId);if(b===-1)r.push(i);else r.splice(b,1,i)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(i){t=i},httpAuthSchemeProvider(){return t},setCredentials(i){a=i},credentials(){return a}}},ts=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},ss=(e,r)=>{let t=Object.assign(Or.getAwsRegionExtensionConfiguration(e),O.getDefaultExtensionConfiguration(e),Ir.getHttpHandlerExtensionConfiguration(e),rs(e));return r.forEach((a)=>a.configure(t)),Object.assign(e,Or.resolveAwsRegionExtensionConfiguration(t),O.resolveDefaultRuntimeConfig(t),Ir.resolveHttpHandlerRuntimeConfig(t),ts(t))};class ee extends O.Client{config;constructor(...[e]){let r=mt.getRuntimeConfig(e||{});super(r);this.initConfig=r;let t=_t(r),a=yr.resolveUserAgentConfig(t),i=Sr.resolveRetryConfig(a),b=Kt.resolveRegionConfig(i),h=Er.resolveHostHeaderConfig(b),Dr=qr.resolveEndpointConfig(h),br=Pr.resolveHttpAuthSchemeConfig(Dr),Rr=ss(br,e?.extensions||[]);this.config=Rr,this.middlewareStack.use(kt.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(yr.getUserAgentPlugin(this.config)),this.middlewareStack.use(Sr.getRetryPlugin(this.config)),this.middlewareStack.use(Tt.getContentLengthPlugin(this.config)),this.middlewareStack.use(Er.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Qt.getLoggerPlugin(this.config)),this.middlewareStack.use(Zt.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(_.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Pr.defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Fr)=>new _.DefaultIdentityProviderConfig({"aws.auth#sigv4":Fr.credentials})})),this.middlewareStack.use(_.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class re extends O.Command.classBuilder().ep(es).m(function(e,r,t,a){return[qr.getEndpointPlugin(t,e.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc(D.CreateOAuth2Token$).build(){}var os={CreateOAuth2TokenCommand:re};class te extends ee{}O.createAggregatedClient(os,te);var ns={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};v.$Command=O.Command;v.__Client=O.Client;v.SigninServiceException=Ct.SigninServiceException;v.CreateOAuth2TokenCommand=re;v.OAuth2ErrorCode=ns;v.Signin=te;v.SigninClient=ee;Object.prototype.hasOwnProperty.call(D,"__proto__")&&!Object.prototype.hasOwnProperty.call(v,"__proto__")&&Object.defineProperty(v,"__proto__",{enumerable:!0,value:D.__proto__});Object.keys(D).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(v,e))v[e]=D[e]});Object.prototype.hasOwnProperty.call($,"__proto__")&&!Object.prototype.hasOwnProperty.call(v,"__proto__")&&Object.defineProperty(v,"__proto__",{enumerable:!0,value:$.__proto__});Object.keys($).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(v,e))v[e]=$[e]})});export default vs();
3
-
4
- //# debugId=B9FF853AC5CE3C2864756E2164756E21
@@ -1,5 +0,0 @@
1
- // @bun
2
- import{l as z}from"./chunk-vv72kw74.js";var J=["gemi","gemi/client","gemi/http","gemi/app","gemi/facades","gemi/email","gemi/kernel","gemi/services","gemi/broadcasting","gemi/i18n"];function q(j){return j==="gemi"||j.startsWith("gemi/")}var I=async()=>{let j=await z(process.cwd()),{plugins:B=[],...D}=j.vite??{};return[{name:"gemi-plugin-config",enforce:"pre",config:async(F,k)=>{let H=`${process.cwd()}/app`;return{assetsInclude:["/public"],build:{manifest:!0,ssrEmitAssets:!0,sourcemap:!0,rollupOptions:{input:Array.from(JSON.parse(process.env.GEMI_INPUT??"[]")),preserveEntrySignatures:"strict",...k.isSsrBuild?{external:q}:{}}},resolve:{alias:{"@/app":H}}}}},{name:"gemi-plugin-user-config",config:()=>D},{name:"gemi-plugin-hot-reload",handleHotUpdate({server:F,modules:k}){if(k?.[0]?.id?.includes("/app/http/"))return[]}},...B]},O=I;
3
- export{J as j,O as k};
4
-
5
- //# debugId=097F7EA5DD3E69FA64756E2164756E21
@@ -1,11 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../internal/gemiExternals.ts", "../vite/index.ts"],
4
- "sourcesContent": [
5
- "// Single source of truth for keeping `gemi` external to the SSR view graph.\n//\n// `gemi` is a linked package, so a bundler will otherwise compile its own copy\n// of gemi's module-level singletons (`RouteStateContext`, `I18nContext`, the\n// `useLocale`/`useRouteData` hooks, ...) into the view chunks — a *different*\n// instance than the running server's `Root` provider, so `useRouteData()` reads\n// the empty default and SSR crashes on `i18n.currentLocale`. Externalizing makes\n// view imports of `gemi/*` resolve to the one Bun-loaded instance.\n//\n// Two consumers, two forms:\n// - dev (`server/httpDev.ts`): Vite's `ssr.external` matches EXACT specifiers\n// only (subpaths are not covered by the bare name, regexes are ignored), so\n// it needs the enumerated list below. When you add a `gemi/*` export that a\n// view may import, add it here too or dev SSR will silently bundle a copy.\n// - build (`vite/index.ts`): rollup's `external` is a subpath-aware predicate,\n// so it uses `isGemiExternal` and needs no maintenance for new subpaths.\n\n// Every `gemi` entrypoint a view module may import. Keep in sync with the\n// view-facing `exports` in package.json (build/server-only subpaths like\n// `vite`, `server`, `bun/*`, and `config` are intentionally omitted — views\n// never import them).\nexport const GEMI_EXTERNAL_SPECIFIERS = [\n \"gemi\",\n \"gemi/client\",\n \"gemi/http\",\n \"gemi/app\",\n \"gemi/facades\",\n \"gemi/email\",\n \"gemi/kernel\",\n \"gemi/services\",\n \"gemi/broadcasting\",\n \"gemi/i18n\",\n] as const;\n\n// Predicate form for rollup's `external`: covers `gemi` and every `gemi/*`\n// subpath.\nexport function isGemiExternal(id: string): boolean {\n return id === \"gemi\" || id.startsWith(\"gemi/\");\n}\n",
6
- "import type { PluginOption } from \"vite\";\nimport { loadGemiConfig } from \"../config/load\";\nimport { isGemiExternal } from \"../internal/gemiExternals\";\n\n// Async so it can load `gemi.config.ts` before returning the plugin list. Both\n// consumers run under Bun (the CLI's `build()` and dev's `createServer`, spawned\n// via `bun`), so the config's TypeScript imports directly. Vite accepts a\n// `Promise<PluginOption[]>` as an entry in its `plugins` array, so gemi passes\n// `plugins: [gemi()]` itself — the app's own Vite plugins (e.g. React) come from\n// `gemi.config.ts` and are appended below, so there is no `vite.config.mjs`.\nconst gemi = async (): Promise<PluginOption[]> => {\n const userConfig = await loadGemiConfig(process.cwd());\n const { plugins: userVitePlugins = [], ...userViteConfig } =\n userConfig.vite ?? {};\n\n return [\n {\n name: \"gemi-plugin-config\",\n enforce: \"pre\",\n config: async (_config, env) => {\n const appPath = `${process.cwd()}/app`;\n return {\n assetsInclude: [\"/public\"],\n build: {\n manifest: true,\n ssrEmitAssets: true,\n // Emit source maps for both the client and SSR view builds so\n // browser devtools and server stack traces map back to app source.\n sourcemap: true,\n rollupOptions: {\n input: Array.from(JSON.parse(process.env.GEMI_INPUT ?? \"[]\")),\n // Each view is a build entry, but the app never imports them\n // statically — the client router pulls them in via `import.meta.glob`\n // (a runtime dynamic import). Rolldown's default entry-signature\n // handling therefore sees a view's `export default` as unused and\n // tree-shakes it. For a plain view the component is hoisted into the\n // shared bundle so it still renders, but a view with a module-scope\n // `lazy(() => import(...))` keeps its own chunk alive as a side\n // effect while the \"unused\" default export is dropped — leaving a\n // hollow chunk whose default is `undefined`. Hydration then renders\n // `<undefined/>` → React #306 and the whole page unmounts to blank.\n // `\"strict\"` forces every entry to preserve its exact exports (a\n // facade chunk is emitted if needed), so every view keeps its\n // default regardless of how the router loads it.\n preserveEntrySignatures: \"strict\",\n // For the SSR build, externalize `gemi` (a linked package) and all\n // its subpaths. Otherwise the bundler compiles its own copy of\n // gemi's module-level singletons (`RouteStateContext`,\n // `I18nContext`, the `useLocale`/`useRouteData` hooks, ...) into a\n // shared chunk — a *different* instance than the running server's\n // `Root` provider — so `useRouteData()` reads the empty default and\n // SSR crashes on `i18n.currentLocale`. Externalizing makes the\n // built view chunks `import ... from \"gemi/*\"` at runtime, resolving\n // to the one instance shared with the renderer. (Vite 8's\n // `ssr.external` does not externalize for the build, so this is done\n // at the rollup level.) Mirrors `server/httpDev.ts`'s dev config\n // via the shared `internal/gemiExternals` source of truth.\n ...(env.isSsrBuild ? { external: isGemiExternal } : {}),\n },\n },\n resolve: {\n alias: {\n \"@/app\": appPath,\n },\n },\n };\n },\n },\n // The app's `gemi.config.ts` `vite` config (minus `plugins`, which are\n // appended below) as its own `config` hook. Vite deep-merges every plugin's\n // `config` result, so the app config layers cleanly on top of gemi's base\n // without a manual merge (and without pulling `vite`'s `mergeConfig` into\n // this bundle).\n {\n name: \"gemi-plugin-user-config\",\n config: () => userViteConfig,\n },\n {\n name: \"gemi-plugin-hot-reload\",\n handleHotUpdate({ server, modules }) {\n if (modules?.[0]?.id?.includes(\"/app/http/\")) {\n // server.ws.send({\n // type: \"custom\",\n // event: \"http-reload\",\n // data: {\n // id: modules[0].id,\n // },\n // });\n\n return [];\n }\n },\n },\n // App-provided Vite plugins run after gemi's own.\n ...userVitePlugins,\n ];\n};\n\nexport default gemi;\n"
7
- ],
8
- "mappings": ";wCAqBO,IAAM,EAA2B,CACtC,OACA,cACA,YACA,WACA,eACA,aACA,cACA,gBACA,oBACA,WACF,EAIO,SAAS,CAAc,CAAC,EAAqB,CAClD,OAAO,IAAO,QAAU,EAAG,WAAW,OAAO,EC3B/C,IAAM,EAAO,SAAqC,CAChD,IAAM,EAAa,MAAM,EAAe,QAAQ,IAAI,CAAC,GAC7C,QAAS,EAAkB,CAAC,KAAM,GACxC,EAAW,MAAQ,CAAC,EAEtB,MAAO,CACL,CACE,KAAM,qBACN,QAAS,MACT,OAAQ,MAAO,EAAS,IAAQ,CAC9B,IAAM,EAAU,GAAG,QAAQ,IAAI,QAC/B,MAAO,CACL,cAAe,CAAC,SAAS,EACzB,MAAO,CACL,SAAU,GACV,cAAe,GAGf,UAAW,GACX,cAAe,CACb,MAAO,MAAM,KAAK,KAAK,MAAM,QAAQ,IAAI,YAAc,IAAI,CAAC,EAc5D,wBAAyB,YAarB,EAAI,WAAa,CAAE,SAAU,CAAe,EAAI,CAAC,CACvD,CACF,EACA,QAAS,CACP,MAAO,CACL,QAAS,CACX,CACF,CACF,EAEJ,EAMA,CACE,KAAM,0BACN,OAAQ,IAAM,CAChB,EACA,CACE,KAAM,yBACN,eAAe,EAAG,SAAQ,WAAW,CACnC,GAAI,IAAU,IAAI,IAAI,SAAS,YAAY,EASzC,MAAO,CAAC,EAGd,EAEA,GAAG,CACL,GAGa",
9
- "debugId": "097F7EA5DD3E69FA64756E2164756E21",
10
- "names": []
11
- }