gemi 0.41.0 → 0.41.2

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 (125) hide show
  1. package/dist/app/index.js +2 -2
  2. package/dist/app/index.js.map +1 -1
  3. package/dist/broadcasting/index.js +1 -1
  4. package/dist/bun/plugin.js +1 -1
  5. package/dist/bun/preload.js +2 -2
  6. package/dist/bun/preload.js.map +1 -1
  7. package/dist/{chunk-55jrzaj0.js → chunk-1g3qpb60.js} +2 -2
  8. package/dist/{chunk-55jrzaj0.js.map → chunk-1g3qpb60.js.map} +1 -1
  9. package/dist/{chunk-m1vjp86n.js → chunk-1nm4bfjq.js} +2 -2
  10. package/dist/{chunk-m1vjp86n.js.map → chunk-1nm4bfjq.js.map} +1 -1
  11. package/dist/chunk-21r4g9h0.js +4 -0
  12. package/dist/{chunk-cy0yet3t.js.map → chunk-21r4g9h0.js.map} +1 -1
  13. package/dist/{chunk-46g7xzc3.js → chunk-3hgk4fxz.js} +3 -3
  14. package/dist/{chunk-46g7xzc3.js.map → chunk-3hgk4fxz.js.map} +1 -1
  15. package/dist/{chunk-1skcvfwy.js → chunk-3hjfype8.js} +2 -2
  16. package/dist/{chunk-1skcvfwy.js.map → chunk-3hjfype8.js.map} +1 -1
  17. package/dist/{chunk-5a4hvpbv.js → chunk-4cqg9kg4.js} +2 -2
  18. package/dist/{chunk-5a4hvpbv.js.map → chunk-4cqg9kg4.js.map} +1 -1
  19. package/dist/{chunk-gky8x4rv.js → chunk-4e4ax9bs.js} +2 -2
  20. package/dist/{chunk-gky8x4rv.js.map → chunk-4e4ax9bs.js.map} +1 -1
  21. package/dist/{chunk-6nm2pt02.js → chunk-4f45pw0v.js} +2 -2
  22. package/dist/{chunk-6nm2pt02.js.map → chunk-4f45pw0v.js.map} +1 -1
  23. package/dist/{chunk-jhp3h3kc.js → chunk-6b1abejc.js} +4 -4
  24. package/dist/{chunk-jhp3h3kc.js.map → chunk-6b1abejc.js.map} +2 -2
  25. package/dist/{chunk-8egdqsbr.js → chunk-85hzphk5.js} +2 -2
  26. package/dist/{chunk-8egdqsbr.js.map → chunk-85hzphk5.js.map} +1 -1
  27. package/dist/{chunk-e43m0sz9.js → chunk-88fb6hzq.js} +18 -18
  28. package/dist/{chunk-e43m0sz9.js.map → chunk-88fb6hzq.js.map} +2 -2
  29. package/dist/{chunk-w262fkzb.js → chunk-8rm601h3.js} +2 -2
  30. package/dist/{chunk-w262fkzb.js.map → chunk-8rm601h3.js.map} +1 -1
  31. package/dist/{chunk-w102mcq7.js → chunk-9nfdjzen.js} +4 -4
  32. package/dist/{chunk-w102mcq7.js.map → chunk-9nfdjzen.js.map} +1 -1
  33. package/dist/{chunk-qksh8x1f.js → chunk-a8wmfnw6.js} +2 -2
  34. package/dist/{chunk-qksh8x1f.js.map → chunk-a8wmfnw6.js.map} +2 -2
  35. package/dist/{chunk-cy0yet3t.js → chunk-agvzqxv7.js} +2 -2
  36. package/dist/{chunk-j6eh0etj.js.map → chunk-agvzqxv7.js.map} +1 -1
  37. package/dist/{chunk-m5nxws92.js → chunk-awscq13h.js} +3 -3
  38. package/dist/{chunk-m5nxws92.js.map → chunk-awscq13h.js.map} +1 -1
  39. package/dist/chunk-b4xfh9pg.js +7 -0
  40. package/dist/{chunk-jnbtsgrp.js.map → chunk-b4xfh9pg.js.map} +2 -2
  41. package/dist/{chunk-59dfj0a9.js → chunk-c1bjq2ss.js} +2 -2
  42. package/dist/{chunk-59dfj0a9.js.map → chunk-c1bjq2ss.js.map} +1 -1
  43. package/dist/{chunk-xfeqd7as.js → chunk-c1hsc4aa.js} +2 -2
  44. package/dist/{chunk-xfeqd7as.js.map → chunk-c1hsc4aa.js.map} +1 -1
  45. package/dist/{chunk-xdsym1c8.js → chunk-c74f9zbq.js} +2 -2
  46. package/dist/{chunk-xdsym1c8.js.map → chunk-c74f9zbq.js.map} +1 -1
  47. package/dist/{chunk-9x52jhc8.js → chunk-c9wa4rtm.js} +2 -2
  48. package/dist/{chunk-9x52jhc8.js.map → chunk-c9wa4rtm.js.map} +1 -1
  49. package/dist/chunk-emt6gz1d.js +5 -0
  50. package/dist/{chunk-k4kdssr3.js.map → chunk-emt6gz1d.js.map} +1 -1
  51. package/dist/{chunk-e40j5tgj.js → chunk-h465ja8n.js} +3 -3
  52. package/dist/{chunk-e40j5tgj.js.map → chunk-h465ja8n.js.map} +1 -1
  53. package/dist/chunk-j7290k00.js +5 -0
  54. package/dist/chunk-j7290k00.js.map +11 -0
  55. package/dist/{chunk-wss9zewk.js → chunk-jt0z45dn.js} +4 -4
  56. package/dist/{chunk-wss9zewk.js.map → chunk-jt0z45dn.js.map} +1 -1
  57. package/dist/{chunk-kk353x3p.js → chunk-kd4whs4z.js} +1 -1
  58. package/dist/{chunk-e7wdb957.js → chunk-kw1g4bjh.js} +3 -3
  59. package/dist/{chunk-e7wdb957.js.map → chunk-kw1g4bjh.js.map} +1 -1
  60. package/dist/{chunk-wypjxj9v.js → chunk-p6ezs2w7.js} +3 -3
  61. package/dist/{chunk-wypjxj9v.js.map → chunk-p6ezs2w7.js.map} +1 -1
  62. package/dist/{chunk-j6eh0etj.js → chunk-p9qt93zk.js} +2 -2
  63. package/dist/{chunk-1wv2m67p.js.map → chunk-p9qt93zk.js.map} +1 -1
  64. package/dist/chunk-ppt296ye.js +6 -0
  65. package/dist/{chunk-zjxbe8tx.js.map → chunk-ppt296ye.js.map} +2 -2
  66. package/dist/{chunk-th24m9jj.js → chunk-q3wpyr9y.js} +2 -2
  67. package/dist/{chunk-th24m9jj.js.map → chunk-q3wpyr9y.js.map} +1 -1
  68. package/dist/{chunk-ffj2g6wn.js → chunk-q91708he.js} +3 -3
  69. package/dist/{chunk-ffj2g6wn.js.map → chunk-q91708he.js.map} +1 -1
  70. package/dist/chunk-qfewe82j.js +5 -0
  71. package/dist/chunk-qfewe82j.js.map +12 -0
  72. package/dist/{chunk-k5ddt5jb.js → chunk-r9p9g2x9.js} +2 -2
  73. package/dist/{chunk-k5ddt5jb.js.map → chunk-r9p9g2x9.js.map} +1 -1
  74. package/dist/{chunk-8spbzsaa.js → chunk-rkf1stc0.js} +2 -2
  75. package/dist/{chunk-8spbzsaa.js.map → chunk-rkf1stc0.js.map} +1 -1
  76. package/dist/{chunk-ar3kj71m.js → chunk-rm5y1v00.js} +2 -2
  77. package/dist/{chunk-ar3kj71m.js.map → chunk-rm5y1v00.js.map} +1 -1
  78. package/dist/{chunk-37qn44wf.js → chunk-s3zn2vas.js} +3 -3
  79. package/dist/{chunk-37qn44wf.js.map → chunk-s3zn2vas.js.map} +1 -1
  80. package/dist/{chunk-9gj1htjp.js → chunk-sgv88qqn.js} +5 -5
  81. package/dist/{chunk-9gj1htjp.js.map → chunk-sgv88qqn.js.map} +1 -1
  82. package/dist/{chunk-yhphtr31.js → chunk-vfvetfjg.js} +3 -3
  83. package/dist/{chunk-yhphtr31.js.map → chunk-vfvetfjg.js.map} +1 -1
  84. package/dist/{chunk-8z5r7z7w.js → chunk-vv72kw74.js} +2 -2
  85. package/dist/{chunk-8z5r7z7w.js.map → chunk-vv72kw74.js.map} +1 -1
  86. package/dist/chunk-w96mexnd.js +6 -0
  87. package/dist/chunk-w96mexnd.js.map +11 -0
  88. package/dist/{chunk-xxdb06dz.js → chunk-wfbgtbae.js} +3 -3
  89. package/dist/{chunk-xxdb06dz.js.map → chunk-wfbgtbae.js.map} +1 -1
  90. package/dist/{chunk-7219pj06.js → chunk-xdk56snm.js} +3 -3
  91. package/dist/{chunk-7219pj06.js.map → chunk-xdk56snm.js.map} +1 -1
  92. package/dist/{chunk-z3tgcb5r.js → chunk-xnhktttd.js} +2 -2
  93. package/dist/{chunk-z3tgcb5r.js.map → chunk-xnhktttd.js.map} +1 -1
  94. package/dist/{chunk-5jar30t5.js → chunk-y7qsts67.js} +2 -2
  95. package/dist/{chunk-5jar30t5.js.map → chunk-y7qsts67.js.map} +1 -1
  96. package/dist/{chunk-ww5pp0rp.js → chunk-yk9aw128.js} +3 -3
  97. package/dist/{chunk-ww5pp0rp.js.map → chunk-yk9aw128.js.map} +1 -1
  98. package/dist/chunk-zpqmtc3q.js +55 -0
  99. package/dist/chunk-zpqmtc3q.js.map +11 -0
  100. package/dist/client/index.js +4 -23957
  101. package/dist/client/index.js.map +1 -1
  102. package/dist/config/index.js +1 -1
  103. package/dist/email/index.js +2 -2
  104. package/dist/email/index.js.map +1 -1
  105. package/dist/facades/index.js +2 -2
  106. package/dist/facades/index.js.map +1 -1
  107. package/dist/http/index.js +2 -2
  108. package/dist/http/index.js.map +1 -1
  109. package/dist/i18n/index.js +2 -2
  110. package/dist/i18n/index.js.map +1 -1
  111. package/dist/kernel/index.js +2 -2
  112. package/dist/kernel/index.js.map +2 -2
  113. package/dist/server/httpProd.d.ts.map +1 -1
  114. package/dist/server/index.js +2 -2
  115. package/dist/server/index.js.map +2 -2
  116. package/dist/services/index.js +2 -2
  117. package/dist/services/index.js.map +1 -1
  118. package/package.json +1 -1
  119. package/dist/chunk-1wv2m67p.js +0 -4
  120. package/dist/chunk-j7harkz1.js +0 -6
  121. package/dist/chunk-j7harkz1.js.map +0 -14
  122. package/dist/chunk-jnbtsgrp.js +0 -7
  123. package/dist/chunk-k4kdssr3.js +0 -5
  124. package/dist/chunk-zjxbe8tx.js +0 -5
  125. /package/dist/{chunk-kk353x3p.js.map → chunk-kd4whs4z.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ub as F}from"./chunk-e7wdb957.js";import{xb as w}from"./chunk-e40j5tgj.js";import{Lb as h}from"./chunk-cy0yet3t.js";var P=h((p)=>{var t=w(),l=F();function d(e){try{let o=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return o.delete("CONFIG"),o.delete("CONFIG_PREFIX_SEPARATOR"),o.delete("ENV"),[...o].join(", ")}catch(o){return e}}var u=(e,o)=>async()=>{try{let r=e(process.env,o);if(r===void 0)throw Error();return r}catch(r){throw new t.CredentialsProviderError(r.message||`Not found in ENV: ${d(e.toString())}`,{logger:o?.logger})}},C=(e,{preferredFile:o="config",...r}={})=>async()=>{let n=l.getProfileName(r),{configFile:i,credentialsFile:c}=await l.loadSharedConfigFiles(r),s=c[n]||{},g=i[n]||{},m=o==="config"?{...s,...g}:{...g,...s};try{let f=e(m,o==="config"?i:c);if(f===void 0)throw Error();return f}catch(a){throw new t.CredentialsProviderError(a.message||`Not found in config files w/ profile [${n}]: ${d(e.toString())}`,{logger:r.logger})}},y=(e)=>typeof e==="function",E=(e)=>y(e)?async()=>await e():t.fromStatic(e),N=({environmentVariableSelector:e,configFileSelector:o,default:r},n={})=>{let{signingName:i,logger:c}=n,s={signingName:i,logger:c};return t.memoize(t.chain(u(e,s),C(o,n),E(r)))};p.loadConfig=N});
3
- export{P as fb};
2
+ import{Db as F}from"./chunk-kw1g4bjh.js";import{Gb as w}from"./chunk-h465ja8n.js";import{Rb as h}from"./chunk-agvzqxv7.js";var P=h((p)=>{var t=w(),l=F();function d(e){try{let o=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return o.delete("CONFIG"),o.delete("CONFIG_PREFIX_SEPARATOR"),o.delete("ENV"),[...o].join(", ")}catch(o){return e}}var u=(e,o)=>async()=>{try{let r=e(process.env,o);if(r===void 0)throw Error();return r}catch(r){throw new t.CredentialsProviderError(r.message||`Not found in ENV: ${d(e.toString())}`,{logger:o?.logger})}},C=(e,{preferredFile:o="config",...r}={})=>async()=>{let n=l.getProfileName(r),{configFile:i,credentialsFile:c}=await l.loadSharedConfigFiles(r),s=c[n]||{},g=i[n]||{},m=o==="config"?{...s,...g}:{...g,...s};try{let f=e(m,o==="config"?i:c);if(f===void 0)throw Error();return f}catch(a){throw new t.CredentialsProviderError(a.message||`Not found in config files w/ profile [${n}]: ${d(e.toString())}`,{logger:r.logger})}},y=(e)=>typeof e==="function",E=(e)=>y(e)?async()=>await e():t.fromStatic(e),N=({environmentVariableSelector:e,configFileSelector:o,default:r},n={})=>{let{signingName:i,logger:c}=n,s={signingName:i,logger:c};return t.memoize(t.chain(u(e,s),C(o,n),E(r)))};p.loadConfig=N});
3
+ export{P as lb};
4
4
 
5
- //# debugId=D481A4CA7E7ED1B864756E2164756E21
5
+ //# debugId=9BD3E9A2A843078F64756E2164756E21
@@ -5,6 +5,6 @@
5
5
  "'use strict';\n\nvar propertyProvider = require('@smithy/property-provider');\nvar sharedIniFileLoader = require('@smithy/shared-ini-file-loader');\n\nfunction getSelectorName(functionString) {\n try {\n const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));\n constants.delete(\"CONFIG\");\n constants.delete(\"CONFIG_PREFIX_SEPARATOR\");\n constants.delete(\"ENV\");\n return [...constants].join(\", \");\n }\n catch (e) {\n return functionString;\n }\n}\n\nconst fromEnv = (envVarSelector, options) => async () => {\n try {\n const config = envVarSelector(process.env, options);\n if (config === undefined) {\n throw new Error();\n }\n return config;\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });\n }\n};\n\nconst fromSharedConfigFiles = (configSelector, { preferredFile = \"config\", ...init } = {}) => async () => {\n const profile = sharedIniFileLoader.getProfileName(init);\n const { configFile, credentialsFile } = await sharedIniFileLoader.loadSharedConfigFiles(init);\n const profileFromCredentials = credentialsFile[profile] || {};\n const profileFromConfig = configFile[profile] || {};\n const mergedProfile = preferredFile === \"config\"\n ? { ...profileFromCredentials, ...profileFromConfig }\n : { ...profileFromConfig, ...profileFromCredentials };\n try {\n const cfgFile = preferredFile === \"config\" ? configFile : credentialsFile;\n const configValue = configSelector(mergedProfile, cfgFile);\n if (configValue === undefined) {\n throw new Error();\n }\n return configValue;\n }\n catch (e) {\n throw new propertyProvider.CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });\n }\n};\n\nconst isFunction = (func) => typeof func === \"function\";\nconst fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : propertyProvider.fromStatic(defaultValue);\n\nconst loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {\n const { signingName, logger } = configuration;\n const envOptions = { signingName, logger };\n return propertyProvider.memoize(propertyProvider.chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));\n};\n\nexports.loadConfig = loadConfig;\n"
6
6
  ],
7
7
  "mappings": ";qJAEA,FAAI,AACA,MAEJ,SAAS,CAAe,CAAC,EAAgB,CACrC,GAAI,CACA,IAAM,EAAY,IAAI,IAAI,MAAM,KAAK,EAAe,MAAM,eAAe,GAAK,CAAC,CAAC,CAAC,EAIjF,OAHA,EAAU,OAAO,QAAQ,EACzB,EAAU,OAAO,yBAAyB,EAC1C,EAAU,OAAO,KAAK,EACf,CAAC,GAAG,CAAS,EAAE,KAAK,IAAI,EAEnC,MAAO,EAAG,CACN,OAAO,GAIf,IAAM,EAAU,CAAC,EAAgB,IAAY,SAAY,CACrD,GAAI,CACA,IAAM,EAAS,EAAe,QAAQ,IAAK,CAAO,EAClD,GAAI,IAAW,OACX,MAAU,MAAM,EAEpB,OAAO,EAEX,MAAO,EAAG,CACN,MAAM,IAAI,EAAiB,yBAAyB,EAAE,SAAW,qBAAqB,EAAgB,EAAe,SAAS,CAAC,IAAK,CAAE,OAAQ,GAAS,MAAO,CAAC,IAIjK,EAAwB,CAAC,GAAkB,gBAAgB,YAAa,GAAS,CAAC,IAAM,SAAY,CACtG,IAAM,EAAU,EAAoB,eAAe,CAAI,GAC/C,aAAY,mBAAoB,MAAM,EAAoB,sBAAsB,CAAI,EACtF,EAAyB,EAAgB,IAAY,CAAC,EACtD,EAAoB,EAAW,IAAY,CAAC,EAC5C,EAAgB,IAAkB,SAClC,IAAK,KAA2B,CAAkB,EAClD,IAAK,KAAsB,CAAuB,EACxD,GAAI,CAEA,IAAM,EAAc,EAAe,EADnB,IAAkB,SAAW,EAAa,CACD,EACzD,GAAI,IAAgB,OAChB,MAAU,MAAM,EAEpB,OAAO,EAEX,MAAO,EAAG,CACN,MAAM,IAAI,EAAiB,yBAAyB,EAAE,SAAW,yCAAyC,OAAa,EAAgB,EAAe,SAAS,CAAC,IAAK,CAAE,OAAQ,EAAK,MAAO,CAAC,IAI9L,EAAa,CAAC,IAAS,OAAO,IAAS,WACvC,EAAa,CAAC,IAAiB,EAAW,CAAY,EAAI,SAAY,MAAM,EAAa,EAAI,EAAiB,WAAW,CAAY,EAErI,EAAa,EAAG,8BAA6B,qBAAoB,QAAS,GAAgB,EAAgB,CAAC,IAAM,CACnH,IAAQ,cAAa,UAAW,EAC1B,EAAa,CAAE,cAAa,QAAO,EACzC,OAAO,EAAiB,QAAQ,EAAiB,MAAM,EAAQ,EAA6B,CAAU,EAAG,EAAsB,EAAoB,CAAa,EAAG,EAAW,CAAY,CAAC,CAAC,GAGxL,aAAa",
8
- "debugId": "D481A4CA7E7ED1B864756E2164756E21",
8
+ "debugId": "9BD3E9A2A843078F64756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -1,5 +1,5 @@
1
1
  // @bun
2
2
  import{existsSync as v}from"fs";import{join as z}from"path";var A=["gemi.config.ts","gemi.config.js","gemi.config.mjs"];async function J(q=process.cwd()){for(let u of A){let b=z(q,u);if(v(b)){let k=await import(b);return k.default??k}}return{}}
3
- export{J as g};
3
+ export{J as l};
4
4
 
5
- //# debugId=8063B8A80120FFBF64756E2164756E21
5
+ //# debugId=7C9DFBE4717C586E64756E2164756E21
@@ -5,6 +5,6 @@
5
5
  "import { existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport type { GemiConfig } from \"./index\";\n\nconst CONFIG_FILES = [\"gemi.config.ts\", \"gemi.config.js\", \"gemi.config.mjs\"];\n\n// Load the app's `gemi.config.*` from `rootDir`. Runs under Bun in every\n// context that needs it — the CLI, the `--preload` runtime, and the gemi Vite\n// plugin (the build runs Vite via `bun --bun`, dev via `bun --hot`) — so a\n// TypeScript config imports directly with no extra transpilation step. Returns\n// an empty config when no file is present, so config is entirely optional.\nexport async function loadGemiConfig(\n rootDir: string = process.cwd(),\n): Promise<GemiConfig> {\n for (const name of CONFIG_FILES) {\n const path = join(rootDir, name);\n if (existsSync(path)) {\n const mod = await import(path);\n return (mod.default ?? mod) as GemiConfig;\n }\n }\n return {};\n}\n"
6
6
  ],
7
7
  "mappings": ";AAAA,qBAAS,WACT,eAAS,aAGT,IAAM,EAAe,CAAC,iBAAkB,iBAAkB,iBAAiB,EAO3E,eAAsB,CAAc,CAClC,EAAkB,QAAQ,IAAI,EACT,CACrB,QAAW,KAAQ,EAAc,CAC/B,IAAM,EAAO,EAAK,EAAS,CAAI,EAC/B,GAAI,EAAW,CAAI,EAAG,CACpB,IAAM,EAAM,MAAa,UACzB,OAAQ,EAAI,SAAW,GAG3B,MAAO,CAAC",
8
- "debugId": "8063B8A80120FFBF64756E2164756E21",
8
+ "debugId": "7C9DFBE4717C586E64756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ import{m as O}from"./chunk-ppt296ye.js";import{createElement as j}from"react";function T(i,n){let t=Object.keys(n).sort((p,s)=>s.length-p.length).map((p)=>p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),e=new RegExp(t.join("|"),"g");return i.replace(e,(p)=>n[p])}async function Y(i,n,t=[]){let e=[...t.map((b)=>`${i}/views/${b}.tsx`),`${i}/views/RootLayout.tsx`],p=new Set;for(let b of e){let u=n.moduleGraph.getModulesByFile(b);if(u)for(let d of u)p.add(d)}let s=[],r=[],c={};for(let b of p)if(b)for(let u of b.importedModules){if(u.file.includes("module.css"))c[u.file]=u.ssrTransformResult.map.sourcesContent.join("");if(u.file.includes(".css"))r.push(u.file)}for(let b of r){let u=await n.transformRequest(b+"?direct"),d=b.includes("module.css"),h="";if(d)h=T(c[b],u.default);s.push({isDev:!0,id:b,content:d?h:u.code})}return s.map((b,u)=>{return j("style",{key:u,type:"text/css","data-vite-dev-id":b.id,dangerouslySetInnerHTML:{__html:b.content}})})}async function Z(i=[]){return i.map((n,t)=>{return j("style",{key:t,id:n?.id,type:"text/css",dangerouslySetInnerHTML:{__html:n.content}})})}import{existsSync as y}from"fs";import{basename as _}from"path";import{networkInterfaces as z}from"os";var v={name:"gemi",version:"0.41.2",private:!1,license:"MIT",author:"Enes Tufekci <enes@gemijs.dev>",repository:{type:"git",url:"git+https://github.com/nstfkc/gemi.git",directory:"packages/gemi"},bin:{gemi:"./dist/bin/gemi.js"},files:["dist/**/*"],module:!0,exports:{"./http":"./http/index.ts","./client":"./client/index.ts","./app":"./app/index.ts","./facades":"./facades/index.ts","./email":"./email/index.ts","./vite":"./dist/vite/index.mjs","./runtime":"./client/runtime.ts","./kernel":"./kernel/index.ts","./services":"./services/index.ts","./broadcasting":"./broadcasting/index.ts","./i18n":"./i18n/index.ts","./server":"./server/index.ts","./config":"./config/index.ts","./bun/preload":"./bun/preload.ts","./bun/plugin":"./bun/plugin.ts"},scripts:{lint:"oxlint",build:"NODE_ENV=production bun run build:core && bun run build:bin && bun run build:types && bun run build:client && bun run build:plugin && bun run build:client-types","build:core":"bun ./scripts/build.ts","build:bin":"bun build --outdir=./dist/bin --target=bun --external=vite --external=react-dom --external=react/jsx-runtime --external=bun --external=sharp --sourcemap ./bin/gemi.ts && bun ./scripts/prepare-bin.ts","build:client":"vite build -c vite.client.config.mts","build:plugin":"vite build -c vite.plugin.config.mts","build:types":"tsc","build:client-types":"tsc -p tsconfig.browser.json",test:"vitest","build:publish":"bun scripts/build-publish.ts",prepublishOnly:"echo 'Do not publish from this directory \u2014 its exports point at TS source. Run: bun run build:publish, then publish from .publish/' && exit 1"},dependencies:{"@aws-sdk/client-s3":"^3.629.0","@aws-sdk/s3-request-presigner":"^3.629.0","@prisma/client":"^6.4.1","ast-types":"^0.14.2",commander:"^12.1.0",history:"^5.3.0","jsx-email":"2.0.0-rc2.1",open:"^10.1.0","react-error-boundary":"^6.0.0",recast:"^0.23.9",resend:"^6.12.3",satori:"^0.12.2","temporal-polyfill":"^0.2.5","twitter-api-v2":"^1.20.2","urlpattern-polyfill":"^10.0.0",uuid:"^9.0.1"},devDependencies:{"@babel/parser":"^7.25.4","@repo/typescript-config":"*","@types/bun":"^1.3.14","@types/eslint":"^8.56.5","@types/node":"^20.11.24","@types/react":"^19.0.2","@types/react-dom":"^19.0.2",eslint:"^8.57.0",oxlint:"^1.39.0",react:"19.2.3","react-dom":"19.2.3",typescript:"^5.7.3",vitest:"^4.0.0"},peerDependencies:{react:">=19","react-dom":">=19",sharp:"^0.34.2",vite:"^8.0.0"}};var G=[" \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557\u2588\u2588\u2557","\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551","\u2588\u2588\u2551 \u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2551","\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2551","\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551\u2588\u2588\u2551"," \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D"],H=Boolean(process.stdout.isTTY)&&!process.env.NO_COLOR,l=(i,n)=>H?`\x1B[${i}m${n}\x1B[0m`:n,J=(i)=>l("1",i),g=(i)=>l("2",i),x=(i)=>l("36",i),L=(i)=>l("32",i),N=(i)=>l("35",i);function Q(){return v.version??"?"}function R(i){for(let n of Object.values(z()))for(let t of n??[])if((t.family==="IPv4"||t.family===4)&&!t.internal)return`http://${t.address}:${i}`;return null}function W(i){return O(i).filter((n)=>y(n)).map((n)=>_(n))}function K(i){let{port:n,rootDir:t}=i,e=`http://localhost:${n}`,p=R(n),s=W(t),r=(b,u)=>` ${L("\u279C")} ${J(b.padEnd(9))}${u}`,c=["",...G.map((b)=>N(b)),"",` ${g("gemi")} ${x(`v${Q()}`)}`,"",r("Local:",x(e)),r("Network:",p?x(p):g("unavailable")),r("Env:",s.length?s.join(", "):g("none")),""];console.log(c.join(`
3
+ `))}
4
+ export{Y as g,Z as h,K as i};
5
+
6
+ //# debugId=56D246655CC94C1964756E2164756E21
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../server/styles.ts", "../server/banner.ts"],
4
+ "sourcesContent": [
5
+ "import { createElement } from \"react\";\nimport { type ModuleNode, type ViteDevServer } from \"vite\";\n\nfunction replaceStrings(text: string, record: Record<string, string>): string {\n const escapedKeys = Object.keys(record)\n .sort((a, b) => b.length - a.length)\n .map((key) => key.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\"));\n\n // Create a single regex with all keys\n const regex = new RegExp(escapedKeys.join(\"|\"), \"g\");\n\n return text.replace(regex, (match) => record[match]);\n}\n\nexport async function createDevStyles(\n appDir: string,\n vite: ViteDevServer,\n currentViews: string[] = [],\n) {\n const views = [\n ...currentViews.map((view) => `${appDir}/views/${view}.tsx`),\n `${appDir}/views/RootLayout.tsx`,\n ];\n\n const modules = new Set<ModuleNode>();\n for (const view of views) {\n const mod = vite.moduleGraph.getModulesByFile(view);\n if (mod) {\n for (const m of mod) modules.add(m);\n }\n }\n\n const styles = [];\n const cssModules = [];\n const cssModuleContent: Record<string, string> = {};\n for (const mod of modules as any) {\n if (mod) {\n for (const imported of mod.importedModules) {\n if (imported.file.includes(\"module.css\")) {\n cssModuleContent[imported.file] = imported.ssrTransformResult.map.sourcesContent.join(\"\");\n }\n if (imported.file.includes(\".css\")) {\n cssModules.push(imported.file);\n }\n }\n }\n }\n\n for (const cssModulePath of cssModules) {\n const transform = await vite.transformRequest(cssModulePath + \"?direct\");\n\n const isCssModule = cssModulePath.includes(\"module.css\");\n\n let transformedCssModule = \"\";\n\n if (isCssModule) {\n transformedCssModule = replaceStrings(\n cssModuleContent[cssModulePath],\n // Vite's `TransformResult` type has no `default`, but the CSS-module\n // transform attaches the class-name mapping there at runtime.\n (transform as unknown as { default: Record<string, string> }).default,\n );\n }\n\n styles.push({\n isDev: true,\n id: cssModulePath,\n content: isCssModule ? transformedCssModule : transform.code,\n });\n }\n\n return styles.map((style, i) => {\n return createElement(\"style\", {\n key: i,\n type: \"text/css\",\n \"data-vite-dev-id\": style.id,\n dangerouslySetInnerHTML: { __html: style.content },\n });\n });\n}\n\nexport async function createStyles(styles = []) {\n return styles.map((style, i) => {\n return createElement(\"style\", {\n key: i,\n id: style?.id,\n type: \"text/css\",\n dangerouslySetInnerHTML: { __html: style.content },\n });\n });\n}\n",
6
+ "import { existsSync } from \"node:fs\";\nimport { basename } from \"node:path\";\nimport { networkInterfaces } from \"node:os\";\nimport { envFiles } from \"./watchEnv\";\nimport pkg from \"../package.json\";\n\n// \"GEMI\" — ANSI Shadow figlet font.\nconst ART = [\n \" ██████╗ ███████╗███╗ ███╗██╗\",\n \"██╔════╝ ██╔════╝████╗ ████║██║\",\n \"██║ ███╗█████╗ ██╔████╔██║██║\",\n \"██║ ██║██╔══╝ ██║╚██╔╝██║██║\",\n \"╚██████╔╝███████╗██║ ╚═╝ ██║██║\",\n \" ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝\",\n];\n\nconst useColor = Boolean(process.stdout.isTTY) && !process.env.NO_COLOR;\nconst paint = (code: string, text: string) =>\n useColor ? `\\x1b[${code}m${text}\\x1b[0m` : text;\nconst bold = (t: string) => paint(\"1\", t);\nconst dim = (t: string) => paint(\"2\", t);\nconst cyan = (t: string) => paint(\"36\", t);\nconst green = (t: string) => paint(\"32\", t);\nconst magenta = (t: string) => paint(\"35\", t);\n\nfunction gemiVersion(): string {\n return (pkg as { version?: string }).version ?? \"?\";\n}\n\nfunction networkUrl(port: number | string): string | null {\n for (const ifaces of Object.values(networkInterfaces())) {\n for (const iface of ifaces ?? []) {\n // Node <18 reported `family` as the number 4; newer Bun/Node use \"IPv4\".\n const isV4 = iface.family === \"IPv4\" || (iface.family as unknown) === 4;\n if (isV4 && !iface.internal) return `http://${iface.address}:${port}`;\n }\n }\n return null;\n}\n\nfunction loadedEnvFiles(rootDir: string): string[] {\n return envFiles(rootDir)\n .filter((file) => existsSync(file))\n .map((file) => basename(file));\n}\n\nexport function printStartupBanner(params: {\n port: number | string;\n rootDir: string;\n}) {\n const { port, rootDir } = params;\n const local = `http://localhost:${port}`;\n const network = networkUrl(port);\n const env = loadedEnvFiles(rootDir);\n\n const row = (label: string, value: string) =>\n ` ${green(\"➜\")} ${bold(label.padEnd(9))}${value}`;\n\n const out = [\n \"\",\n ...ART.map((line) => magenta(line)),\n \"\",\n ` ${dim(\"gemi\")} ${cyan(`v${gemiVersion()}`)}`,\n \"\",\n row(\"Local:\", cyan(local)),\n row(\"Network:\", network ? cyan(network) : dim(\"unavailable\")),\n row(\"Env:\", env.length ? env.join(\", \") : dim(\"none\")),\n \"\",\n ];\n\n console.log(out.join(\"\\n\"));\n}\n"
7
+ ],
8
+ "mappings": ";wCAAA,wBAAS,cAGT,SAAS,CAAc,CAAC,EAAc,EAAwC,CAC5E,IAAM,EAAc,OAAO,KAAK,CAAM,EACnC,KAAK,CAAC,EAAG,IAAM,EAAE,OAAS,EAAE,MAAM,EAClC,IAAI,CAAC,IAAQ,EAAI,QAAQ,sBAAuB,MAAM,CAAC,EAGpD,EAAQ,IAAI,OAAO,EAAY,KAAK,GAAG,EAAG,GAAG,EAEnD,OAAO,EAAK,QAAQ,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AI,SAAU,EAAK,CAAK,CAAC,EACzB,EAAI,WAAY,EAAU,EAAK,CAAO,EAAI,EAAI,aAAa,CAAC,EAC5D,EAAI,OAAQ,EAAI,OAAS,EAAI,KAAK,IAAI,EAAI,EAAI,MAAM,CAAC,EACrD,EACF,EAEA,QAAQ,IAAI,EAAI,KAAK;AAAA,CAAI,CAAC",
9
+ "debugId": "56D246655CC94C1964756E2164756E21",
10
+ "names": []
11
+ }
@@ -1,11 +1,11 @@
1
1
  // @bun
2
- import{Lb as n}from"./chunk-cy0yet3t.js";var w=n((p)=>{var r={warningEmitted:!1},a=(e)=>{if(e&&!r.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20)r.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
2
+ import{Rb as n}from"./chunk-agvzqxv7.js";var w=n((p)=>{var r={warningEmitted:!1},a=(e)=>{if(e&&!r.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20)r.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
3
3
  no longer support Node.js ${e} in January 2026.
4
4
 
5
5
  To continue receiving updates to AWS services, bug fixes, and security
6
6
  updates please upgrade to a supported Node.js LTS version.
7
7
 
8
8
  More information can be found at: https://a.co/c895JFp`)};function o(e,t,s){if(!e.$source)e.$source={};return e.$source[t]=s,e}function u(e,t,s){if(!e.__aws_sdk_context)e.__aws_sdk_context={features:{}};else if(!e.__aws_sdk_context.features)e.__aws_sdk_context.features={};e.__aws_sdk_context.features[t]=s}function i(e,t,s){if(!e.$source)e.$source={};return e.$source[t]=s,e}p.emitWarningIfUnsupportedVersion=a;p.setCredentialFeature=o;p.setFeature=u;p.setTokenFeature=i;p.state=r});
9
- export{w as wb};
9
+ export{w as Fb};
10
10
 
11
- //# debugId=BA97198D588F949464756E2164756E21
11
+ //# debugId=778F4EA0566864D764756E2164756E21
@@ -5,6 +5,6 @@
5
5
  "'use strict';\n\nconst state = {\n warningEmitted: false,\n};\nconst emitWarningIfUnsupportedVersion = (version) => {\n if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf(\".\"))) < 20) {\n state.warningEmitted = true;\n process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${version} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`);\n }\n};\n\nfunction setCredentialFeature(credentials, feature, value) {\n if (!credentials.$source) {\n credentials.$source = {};\n }\n credentials.$source[feature] = value;\n return credentials;\n}\n\nfunction setFeature(context, feature, value) {\n if (!context.__aws_sdk_context) {\n context.__aws_sdk_context = {\n features: {},\n };\n }\n else if (!context.__aws_sdk_context.features) {\n context.__aws_sdk_context.features = {};\n }\n context.__aws_sdk_context.features[feature] = value;\n}\n\nfunction setTokenFeature(token, feature, value) {\n if (!token.$source) {\n token.$source = {};\n }\n token.$source[feature] = value;\n return token;\n}\n\nexports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion;\nexports.setCredentialFeature = setCredentialFeature;\nexports.setFeature = setFeature;\nexports.setTokenFeature = setTokenFeature;\nexports.state = state;\n"
6
6
  ],
7
7
  "mappings": ";uDAEA,IAAM,EAAQ,CACV,eAAgB,EACpB,EACM,EAAkC,CAAC,IAAY,CACjD,GAAI,GAAW,CAAC,EAAM,gBAAkB,SAAS,EAAQ,UAAU,EAAG,EAAQ,QAAQ,GAAG,CAAC,CAAC,EAAI,GAC3F,EAAM,eAAiB,GACvB,QAAQ,YAAY;AAAA,4BACA;AAAA;AAAA;AAAA;AAAA;AAAA,uDAK2B,GAIvD,SAAS,CAAoB,CAAC,EAAa,EAAS,EAAO,CACvD,GAAI,CAAC,EAAY,QACb,EAAY,QAAU,CAAC,EAG3B,OADA,EAAY,QAAQ,GAAW,EACxB,EAGX,SAAS,CAAU,CAAC,EAAS,EAAS,EAAO,CACzC,GAAI,CAAC,EAAQ,kBACT,EAAQ,kBAAoB,CACxB,SAAU,CAAC,CACf,EAEC,QAAI,CAAC,EAAQ,kBAAkB,SAChC,EAAQ,kBAAkB,SAAW,CAAC,EAE1C,EAAQ,kBAAkB,SAAS,GAAW,EAGlD,SAAS,CAAe,CAAC,EAAO,EAAS,EAAO,CAC5C,GAAI,CAAC,EAAM,QACP,EAAM,QAAU,CAAC,EAGrB,OADA,EAAM,QAAQ,GAAW,EAClB,EAGH,kCAAkC,EAClC,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,QAAQ",
8
- "debugId": "BA97198D588F949464756E2164756E21",
8
+ "debugId": "778F4EA0566864D764756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Lb as h}from"./chunk-cy0yet3t.js";var A=h((f)=>{f.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(f.HttpAuthLocation||(f.HttpAuthLocation={}));f.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(f.HttpApiKeyAuthLocation||(f.HttpApiKeyAuthLocation={}));f.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(f.EndpointURLScheme||(f.EndpointURLScheme={}));f.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(f.AlgorithmId||(f.AlgorithmId={}));var x=(t)=>{let o=[];if(t.sha256!==void 0)o.push({algorithmId:()=>f.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)o.push({algorithmId:()=>f.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(s){o.push(s)},checksumAlgorithms(){return o}}},d=(t)=>{let o={};return t.checksumAlgorithms().forEach((s)=>{o[s.algorithmId()]=s.checksumConstructor()}),o},a=(t)=>{return x(t)},E=(t)=>{return d(t)};f.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(f.FieldPosition||(f.FieldPosition={}));var m="__smithy_context";f.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(f.IniSectionType||(f.IniSectionType={}));f.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(f.RequestHandlerProtocol||(f.RequestHandlerProtocol={}));f.SMITHY_CONTEXT_KEY=m;f.getDefaultClientConfiguration=a;f.resolveDefaultRuntimeConfig=E});
3
- export{A as vb};
2
+ import{Rb as h}from"./chunk-agvzqxv7.js";var A=h((f)=>{f.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(f.HttpAuthLocation||(f.HttpAuthLocation={}));f.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(f.HttpApiKeyAuthLocation||(f.HttpApiKeyAuthLocation={}));f.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(f.EndpointURLScheme||(f.EndpointURLScheme={}));f.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(f.AlgorithmId||(f.AlgorithmId={}));var x=(t)=>{let o=[];if(t.sha256!==void 0)o.push({algorithmId:()=>f.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)o.push({algorithmId:()=>f.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(s){o.push(s)},checksumAlgorithms(){return o}}},d=(t)=>{let o={};return t.checksumAlgorithms().forEach((s)=>{o[s.algorithmId()]=s.checksumConstructor()}),o},a=(t)=>{return x(t)},E=(t)=>{return d(t)};f.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(f.FieldPosition||(f.FieldPosition={}));var m="__smithy_context";f.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(f.IniSectionType||(f.IniSectionType={}));f.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(f.RequestHandlerProtocol||(f.RequestHandlerProtocol={}));f.SMITHY_CONTEXT_KEY=m;f.getDefaultClientConfiguration=a;f.resolveDefaultRuntimeConfig=E});
3
+ export{A as Eb};
4
4
 
5
- //# debugId=D51522F586E93FE564756E2164756E21
5
+ //# debugId=D07EB2EFA4022EFD64756E2164756E21
@@ -5,6 +5,6 @@
5
5
  "'use strict';\n\nexports.HttpAuthLocation = void 0;\n(function (HttpAuthLocation) {\n HttpAuthLocation[\"HEADER\"] = \"header\";\n HttpAuthLocation[\"QUERY\"] = \"query\";\n})(exports.HttpAuthLocation || (exports.HttpAuthLocation = {}));\n\nexports.HttpApiKeyAuthLocation = void 0;\n(function (HttpApiKeyAuthLocation) {\n HttpApiKeyAuthLocation[\"HEADER\"] = \"header\";\n HttpApiKeyAuthLocation[\"QUERY\"] = \"query\";\n})(exports.HttpApiKeyAuthLocation || (exports.HttpApiKeyAuthLocation = {}));\n\nexports.EndpointURLScheme = void 0;\n(function (EndpointURLScheme) {\n EndpointURLScheme[\"HTTP\"] = \"http\";\n EndpointURLScheme[\"HTTPS\"] = \"https\";\n})(exports.EndpointURLScheme || (exports.EndpointURLScheme = {}));\n\nexports.AlgorithmId = void 0;\n(function (AlgorithmId) {\n AlgorithmId[\"MD5\"] = \"md5\";\n AlgorithmId[\"CRC32\"] = \"crc32\";\n AlgorithmId[\"CRC32C\"] = \"crc32c\";\n AlgorithmId[\"SHA1\"] = \"sha1\";\n AlgorithmId[\"SHA256\"] = \"sha256\";\n})(exports.AlgorithmId || (exports.AlgorithmId = {}));\nconst getChecksumConfiguration = (runtimeConfig) => {\n const checksumAlgorithms = [];\n if (runtimeConfig.sha256 !== undefined) {\n checksumAlgorithms.push({\n algorithmId: () => exports.AlgorithmId.SHA256,\n checksumConstructor: () => runtimeConfig.sha256,\n });\n }\n if (runtimeConfig.md5 != undefined) {\n checksumAlgorithms.push({\n algorithmId: () => exports.AlgorithmId.MD5,\n checksumConstructor: () => runtimeConfig.md5,\n });\n }\n return {\n addChecksumAlgorithm(algo) {\n checksumAlgorithms.push(algo);\n },\n checksumAlgorithms() {\n return checksumAlgorithms;\n },\n };\n};\nconst resolveChecksumRuntimeConfig = (clientConfig) => {\n const runtimeConfig = {};\n clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {\n runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();\n });\n return runtimeConfig;\n};\n\nconst getDefaultClientConfiguration = (runtimeConfig) => {\n return getChecksumConfiguration(runtimeConfig);\n};\nconst resolveDefaultRuntimeConfig = (config) => {\n return resolveChecksumRuntimeConfig(config);\n};\n\nexports.FieldPosition = void 0;\n(function (FieldPosition) {\n FieldPosition[FieldPosition[\"HEADER\"] = 0] = \"HEADER\";\n FieldPosition[FieldPosition[\"TRAILER\"] = 1] = \"TRAILER\";\n})(exports.FieldPosition || (exports.FieldPosition = {}));\n\nconst SMITHY_CONTEXT_KEY = \"__smithy_context\";\n\nexports.IniSectionType = void 0;\n(function (IniSectionType) {\n IniSectionType[\"PROFILE\"] = \"profile\";\n IniSectionType[\"SSO_SESSION\"] = \"sso-session\";\n IniSectionType[\"SERVICES\"] = \"services\";\n})(exports.IniSectionType || (exports.IniSectionType = {}));\n\nexports.RequestHandlerProtocol = void 0;\n(function (RequestHandlerProtocol) {\n RequestHandlerProtocol[\"HTTP_0_9\"] = \"http/0.9\";\n RequestHandlerProtocol[\"HTTP_1_0\"] = \"http/1.0\";\n RequestHandlerProtocol[\"TDS_8_0\"] = \"tds/8.0\";\n})(exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {}));\n\nexports.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY;\nexports.getDefaultClientConfiguration = getDefault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B,CAAM,GAGtC,gBAAqB,QAC5B,QAAS,CAAC,EAAe,CACtB,EAAc,EAAc,OAAY,GAAK,SAC7C,EAAc,EAAc,QAAa,GAAK,YACvC,kBAA0B,gBAAgB,CAAC,EAAE,EAExD,IAAM,EAAqB,mBAEnB,iBAAsB,QAC7B,QAAS,CAAC,EAAgB,CACvB,EAAe,QAAa,UAC5B,EAAe,YAAiB,cAChC,EAAe,SAAc,aACtB,mBAA2B,iBAAiB,CAAC,EAAE,EAElD,yBAA8B,QACrC,QAAS,CAAC,EAAwB,CAC/B,EAAuB,SAAc,WACrC,EAAuB,SAAc,WACrC,EAAuB,QAAa,YAC7B,2BAAmC,yBAAyB,CAAC,EAAE,EAElE,qBAAqB,EACrB,gCAAgC,EAChC,8BAA8B",
8
- "debugId": "D51522F586E93FE564756E2164756E21",
8
+ "debugId": "D07EB2EFA4022EFD64756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -1,5 +1,5 @@
1
1
  // @bun
2
2
  var l="GEMI_REQUEST_BREAKER_ERROR";class a extends Error{kind="GEMI_REQUEST_BREAKER_ERROR";payload={api:{},view:{}}}function R(r,t){return r.replace(/:([^/]+[*?]?)/g,(c,e)=>{let s=e.endsWith("?")||e.endsWith("*"),n=s?e.slice(0,-1):e,o=t[n];if(o===void 0){if(s)return"";if(import.meta.env.DEV)throw Error(`Missing parameter: ${n}`);console.error(`Missing parameter: ${n} in URL: ${r}`)}return String(o)}).replace(/\/\//g,"/").replace(/\/$/,"")}class i extends a{constructor(r,t=307){super("Redirect error");this.name="RedirectError",this.payload={api:{status:200,data:{},directive:{kind:"Redirect",path:r}},view:{status:t,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:r}}}}}class d{static to(r,...t){let[c={}]=t,{search:e={},params:s={},permanent:n,status:o}={params:{},status:307,permanent:!1,...c},p=new URLSearchParams(e).toString();throw new i([R(r,s),p.toString()].filter(Boolean).join("?"),o??(n?301:307))}static external(r,t=307){throw new i(r,t)}}class E{}
3
- export{l as Db,a as Eb,R as Fb,d as Gb,E as Hb};
3
+ export{l as Jb,a as Kb,R as Lb,d as Mb,E as Nb};
4
4
 
5
- //# debugId=C3C690E70339642A64756E2164756E21
5
+ //# debugId=E751B9DFD053E46264756E2164756E21
@@ -8,6 +8,6 @@
8
8
  "export abstract class ServiceProvider {\n abstract boot(...p: any[]): Promise<any> | any;\n}\n"
9
9
  ],
10
10
  "mappings": ";AAAO,IAAM,EAA6B,6BAEnC,MAAM,UAA4B,KAAM,CACtC,KAHiC,6BAIjC,QAGH,CAAE,IAAK,CAAC,EAAG,KAAM,CAAC,CAAE,CAC1B,CCRO,SAAS,CAA6B,CAC3C,EACA,EACQ,CACR,OACE,EACG,QAAQ,iBAAkB,CAAC,EAAG,IAAQ,CACrC,IAAM,EAAY,EAAI,SAAS,GAAG,GAAK,EAAI,SAAS,GAAG,EACjD,EAAY,EAAY,EAAI,MAAM,EAAG,EAAE,EAAI,EAC3C,EAAQ,EAAO,GAErB,GAAI,IAAU,OAAW,CACvB,GAAI,EACF,MAAO,GAGT,GAAI,YAAY,IAAI,IAClB,MAAU,MAAM,sBAAsB,GAAW,EAEnD,QAAQ,MAAM,sBAAsB,aAAqB,GAAK,EAGhE,OAAO,OAAO,CAAK,EACpB,EAEA,QAAQ,QAAS,GAAG,EAEpB,QAAQ,MAAO,EAAE,ECvBxB,MAAM,UAAsB,CAAoB,CAC9C,WAAW,CAAC,EAAc,EAAS,IAAK,CACtC,MAAM,gBAAgB,EACtB,KAAK,KAAO,gBACZ,KAAK,QAAU,CACb,IAAK,CACH,OAAQ,IACR,KAAM,CAAC,EACP,UAAW,CAAE,KAAM,WAAY,MAAK,CACtC,EACA,KAAM,CACJ,SACA,QAAS,CACP,gBACE,0DACF,SAAU,CACZ,CACF,CACF,EAEJ,CAeO,MAAM,CAAS,OACb,GAAuB,CAC5B,KACG,EAGH,CACA,IAAO,EAAU,CAAC,GAAK,GAErB,SAAS,CAAC,EACV,SAAS,CAAC,EACV,YACA,UACE,CACF,OAAQ,CAAC,EACT,OAAQ,IACR,UAAW,MACR,CACL,EACM,EAAe,IAAI,gBAAgB,CAAM,EAAE,SAAS,EAC1D,MAAM,IAAI,EACR,CAAC,EAAY,EAAM,CAAM,EAAG,EAAa,SAAS,CAAC,EAChD,OAAO,OAAO,EACd,KAAK,GAAG,EACX,IAAW,EAAY,IAAM,IAC/B,QAGK,SAAQ,CAAC,EAAa,EAAS,IAAK,CACzC,MAAM,IAAI,EAAc,EAAK,CAAM,EAEvC,CCtEO,MAAe,CAAgB,CAEtC",
11
- "debugId": "C3C690E70339642A64756E2164756E21",
11
+ "debugId": "E751B9DFD053E46264756E2164756E21",
12
12
  "names": []
13
13
  }
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{wb as C}from"./chunk-xxdb06dz.js";import{xb as A}from"./chunk-e40j5tgj.js";import{Kb as _}from"./chunk-cy0yet3t.js";var S=_(C(),1),p=_(A(),1),N="AWS_ACCESS_KEY_ID",a="AWS_SECRET_ACCESS_KEY",i="AWS_SESSION_TOKEN",I="AWS_CREDENTIAL_EXPIRATION",d="AWS_CREDENTIAL_SCOPE",v="AWS_ACCOUNT_ID",T=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[N],r=process.env[a],n=process.env[i],s=process.env[I],t=process.env[d],E=process.env[v];if(o&&r){let c={accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...E&&{accountId:E}};return S.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new p.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{N as Fa,a as Ga,i as Ha,I as Ia,d as Ja,v as Ka,T as La};
2
+ import{Fb as C}from"./chunk-wfbgtbae.js";import{Gb as A}from"./chunk-h465ja8n.js";import{Qb as _}from"./chunk-agvzqxv7.js";var S=_(C(),1),p=_(A(),1),N="AWS_ACCESS_KEY_ID",a="AWS_SECRET_ACCESS_KEY",i="AWS_SESSION_TOKEN",I="AWS_CREDENTIAL_EXPIRATION",d="AWS_CREDENTIAL_SCOPE",v="AWS_ACCOUNT_ID",T=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[N],r=process.env[a],n=process.env[i],s=process.env[I],t=process.env[d],E=process.env[v];if(o&&r){let c={accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...E&&{accountId:E}};return S.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new p.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{N as La,a as Ma,i as Na,I as Oa,d as Pa,v as Qa,T as Ra};
3
3
 
4
- //# debugId=015164F375C6A05B64756E2164756E21
4
+ //# debugId=973A6D2462BC634A64756E2164756E21
@@ -5,6 +5,6 @@
5
5
  "import { setCredentialFeature } from \"@aws-sdk/core/client\";\nimport { CredentialsProviderError } from \"@smithy/property-provider\";\nexport const ENV_KEY = \"AWS_ACCESS_KEY_ID\";\nexport const ENV_SECRET = \"AWS_SECRET_ACCESS_KEY\";\nexport const ENV_SESSION = \"AWS_SESSION_TOKEN\";\nexport const ENV_EXPIRATION = \"AWS_CREDENTIAL_EXPIRATION\";\nexport const ENV_CREDENTIAL_SCOPE = \"AWS_CREDENTIAL_SCOPE\";\nexport const ENV_ACCOUNT_ID = \"AWS_ACCOUNT_ID\";\nexport const fromEnv = (init) => async () => {\n init?.logger?.debug(\"@aws-sdk/credential-provider-env - fromEnv\");\n const accessKeyId = process.env[ENV_KEY];\n const secretAccessKey = process.env[ENV_SECRET];\n const sessionToken = process.env[ENV_SESSION];\n const expiry = process.env[ENV_EXPIRATION];\n const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];\n const accountId = process.env[ENV_ACCOUNT_ID];\n if (accessKeyId && secretAccessKey) {\n const credentials = {\n accessKeyId,\n secretAccessKey,\n ...(sessionToken && { sessionToken }),\n ...(expiry && { expiration: new Date(expiry) }),\n ...(credentialScope && { credentialScope }),\n ...(accountId && { accountId }),\n };\n setCredentialFeature(credentials, \"CREDENTIALS_ENV_VARS\", \"g\");\n return credentials;\n }\n throw new CredentialsProviderError(\"Unable to find environment variable credentials.\", { logger: init?.logger });\n};\n"
6
6
  ],
7
7
  "mappings": ";uIAAA,SACA,KACa,EAAU,oBACV,EAAa,wBACb,EAAc,oBACd,EAAiB,4BACjB,EAAuB,uBACvB,EAAiB,iBACjB,EAAU,CAAC,IAAS,SAAY,CACzC,GAAM,QAAQ,MAAM,4CAA4C,EAChE,IAAM,EAAc,QAAQ,IAAI,GAC1B,EAAkB,QAAQ,IAAI,GAC9B,EAAe,QAAQ,IAAI,GAC3B,EAAS,QAAQ,IAAI,GACrB,EAAkB,QAAQ,IAAI,GAC9B,EAAY,QAAQ,IAAI,GAC9B,GAAI,GAAe,EAAiB,CAChC,IAAM,EAAc,CAChB,cACA,qBACI,GAAgB,CAAE,cAAa,KAC/B,GAAU,CAAE,WAAY,IAAI,KAAK,CAAM,CAAE,KACzC,GAAmB,CAAE,iBAAgB,KACrC,GAAa,CAAE,WAAU,CACjC,EAEA,OADA,uBAAqB,EAAa,uBAAwB,GAAG,EACtD,EAEX,MAAM,IAAI,2BAAyB,mDAAoD,CAAE,OAAQ,GAAM,MAAO,CAAC",
8
- "debugId": "015164F375C6A05B64756E2164756E21",
8
+ "debugId": "973A6D2462BC634A64756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Hb as t}from"./chunk-z3tgcb5r.js";class o extends t{boot(){}supportedLocales=[];defaultLocale="en-US";prefetch={};components={};detectLocale(e){return null}onLocaleChange(e){console.log(`Locale changed to ${e}`)}}
3
- export{o as k};
2
+ import{Nb as t}from"./chunk-xnhktttd.js";class o extends t{boot(){}supportedLocales=[];defaultLocale="en-US";prefetch={};components={};detectLocale(e){return null}onLocaleChange(e){console.log(`Locale changed to ${e}`)}}
3
+ export{o as q};
4
4
 
5
- //# debugId=2CB359AAB0EA936F64756E2164756E21
5
+ //# debugId=A627C78ADA89BAD764756E2164756E21
@@ -5,6 +5,6 @@
5
5
  "import type { Dictionary } from \"./Dictionary\";\nimport { ServiceProvider } from \"../services/ServiceProvider\";\nimport type { HttpRequest } from \"../http/HttpRequest\";\n\nexport class I18nServiceProvider extends ServiceProvider {\n boot() {}\n supportedLocales: string[] = [];\n defaultLocale = \"en-US\";\n prefetch: Record<string, Array<Dictionary<any>>> = {};\n components: Record<string, Dictionary<any>> = {};\n detectLocale(_req: HttpRequest): string | null {\n return null;\n }\n onLocaleChange(locale: string): Promise<void> | void {\n console.log(`Locale changed to ${locale}`);\n }\n}\n"
6
6
  ],
7
7
  "mappings": ";yCAIO,MAAM,UAA4B,CAAgB,CACvD,IAAI,EAAG,EACP,iBAA6B,CAAC,EAC9B,cAAgB,QAChB,SAAmD,CAAC,EACpD,WAA8C,CAAC,EAC/C,YAAY,CAAC,EAAkC,CAC7C,OAAO,KAET,cAAc,CAAC,EAAsC,CACnD,QAAQ,IAAI,qBAAqB,GAAQ,EAE7C",
8
- "debugId": "2CB359AAB0EA936F64756E2164756E21",
8
+ "debugId": "A627C78ADA89BAD764756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -0,0 +1,55 @@
1
+ // @bun
2
+ import{g as I,i as f}from"./chunk-w96mexnd.js";import{j as b,k as y}from"./chunk-j7290k00.js";import"./chunk-vv72kw74.js";import"./chunk-ppt296ye.js";import"./chunk-q3wpyr9y.js";import"./chunk-88fb6hzq.js";import"./chunk-c9wa4rtm.js";import"./chunk-a8wmfnw6.js";import"./chunk-p6ezs2w7.js";import"./chunk-6b1abejc.js";import"./chunk-xnhktttd.js";import"./chunk-c1hsc4aa.js";import"./chunk-agvzqxv7.js";import{IncomingMessage as w,ServerResponse as N}from"http";import{Socket as T}from"net";import{join as g}from"path";import{createServer as E}from"vite";function S(H){return H.replace(/\x1b\[[0-9;]*m/g,"").replace(/\[[0-9;]*m/g,"").replace(/\n\s*\n/g,`
3
+ `).split(`
4
+ `).map((J)=>J.trim()).filter((J)=>J.length>0).join(`
5
+ `).trim()}function P(H){return`
6
+ <!DOCTYPE html>
7
+ <html lang="en">
8
+ <head>
9
+ <meta charset="UTF-8" />
10
+ <meta
11
+ name="viewport"
12
+ content="width=device-width, initial-scale=1.0"
13
+ />
14
+
15
+ <title>Error</title>
16
+ <style>
17
+ body {
18
+ font-family: Arial, sans-serif;
19
+ padding: 20px;
20
+ }
21
+ h1 {
22
+ color: red;
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <div id="overlay"></div>
28
+ <script type="module" src="/refresh.js"></script>
29
+ <script type="module" src="/@vite/client"></script>
30
+ <script>
31
+ ${S.toString()}
32
+ const err = ${JSON.stringify(H,Object.getOwnPropertyNames(H),2)}
33
+
34
+ window.addEventListener('load', () => {
35
+ const container = document.getElementById('overlay')
36
+ const ErrorOverlay = customElements.get('vite-error-overlay')
37
+ if (ErrorOverlay) {
38
+ const overlay = new ErrorOverlay({ ...err, message: cleanupTerminalText(err.message) });
39
+ container.appendChild(overlay)
40
+ }
41
+ })
42
+ </script>
43
+ </body>
44
+ </html>
45
+ `}function k(H,J){let j=new URL(J.url),K=new w(new T);K.url=j.pathname+j.search,K.method=J.method,K.headers=Object.fromEntries(J.headers);let O=new N(K),Q=[];return new Promise((W)=>{O.write=(Z)=>{if(Z)Q.push(Buffer.from(Z));return!0},O.end=(Z)=>{if(Z&&typeof Z!=="function")Q.push(Buffer.from(Z));let z=new Headers;for(let[X,$]of Object.entries(O.getHeaders())){if($==null)continue;for(let U of Array.isArray($)?$:[$])z.append(X,String(U))}return W(new Response(Q.length?Buffer.concat(Q):null,{status:O.statusCode,headers:z})),O},H.middlewares(K,O,()=>W(null))})}var G=process.cwd(),R=g(G,"app");function q(H,J,j){let K=String(J),O=" ".repeat(K.length),Q=" ".repeat(Math.max(0,j-1))+"^";return`${K} | ${H}
46
+ ${O} | ${Q}
47
+ `}function x(H){if(H&&typeof H==="object"){let J=H.position;if(J&&typeof J==="object"&&typeof J.file==="string")return{message:typeof H.message==="string"?H.message:String(H),stack:"",frame:typeof J.lineText==="string"?q(J.lineText,J.line,J.column):void 0,loc:{file:J.file,line:J.line,column:J.column}};return{message:typeof H.message==="string"?H.message:String(H),stack:typeof H.stack==="string"?H.stack:""}}return{message:String(H),stack:""}}function L(H){let J=globalThis.__gemiVite;if(!J)return;J.ws.send({type:"error",err:x(H)}),globalThis.__gemiErrorActive=!0}if(!globalThis.__gemiErrorHooked)globalThis.__gemiErrorHooked=!0,process.on("unhandledRejection",(H)=>{console.error(H),L(H)}),process.on("uncaughtException",(H)=>{console.error(H),L(H)});async function s(H,J){let j=Boolean(globalThis.__gemiVite),K=globalThis.__gemiVite??=await E({configFile:!1,plugins:[y()],server:{middlewareMode:!0,watch:{ignored:(Q)=>{let W=Q.split(/[/\\]/).pop()??"";return W===".env"||W.startsWith(".env.")}}},appType:"custom",resolve:{dedupe:["react","react-dom"]},optimizeDeps:{include:["react","react-dom","react-dom/client"]},ssr:{external:[...b]}});process.env.ROOT_DIR=G,process.env.APP_DIR=R;let O=Bun.serve({port:5173,fetch:async(Q)=>{let{pathname:W,host:Z,protocol:z}=new URL(Q.url);if(W.startsWith("/render-error.js"))return new Response("window.render_error = true",{headers:{"Content-Type":"application/javascript"}});if(W.startsWith("/refresh.js"))return new Response(`
48
+ import RefreshRuntime from "${z}//${Z}/@react-refresh";
49
+ RefreshRuntime.injectIntoGlobalHook(window);
50
+ window.$RefreshReg$ = () => {};
51
+ window.$RefreshSig$ = () => (type) => type;
52
+ window.__vite_plugin_react_preamble_installed__ = true;
53
+ `,{headers:{"Content-Type":"application/javascript"}});return await J(Q,async($)=>{try{let U=H.fetch.bind(H),A=await k(K,$)??await U($);if(A instanceof Response)return A;let _={},F={},D=(Y,B)=>`"${Y}": () => import("${B}")`,V=[];for(let Y of["404",...H.getFlatComponentTree.call(H)]){if(Bun.env.NODE_ENV==="test")break;let B=`${process.env.APP_DIR}`,C=await K.ssrLoadModule(`${B}/views/${Y}.tsx`,{fixStacktrace:!0});_[Y]=C.default,F[Y]=C?.OpenGraph,V.push(D(Y,`/app/views/${Y}.tsx`))}let M=`{${V.join(",")}}`;return await A({getStyles:async(Y)=>await I(R,K,Y),bootstrapModules:["/refresh.js","/app/client.tsx","/@vite/client"],viewImportMap:_,ogMap:F,loaders:M,cssManifest:{}})}catch(U){if(console.error(U),K.ssrFixStacktrace?.(U),L(U),W.startsWith("/api"))return new Response(JSON.stringify({error:U?.message??String(U)}),{status:500,headers:{"Content-Type":"application/json"}});return globalThis.__gemiErrorPageServed=!0,new Response(P(x(U)),{status:500,headers:{"Content-Type":"text/html"}})}})}});if(j)if(globalThis.__gemiErrorActive&&globalThis.__gemiErrorPageServed)globalThis.__gemiErrorActive=!1,globalThis.__gemiErrorPageServed=!1,K.ws.send({type:"full-reload"});else globalThis.__gemiErrorActive=!1,K.ws.send({type:"custom",event:"http-reload"});else f({port:O.port,rootDir:G});return O}export{x as viteErrorPayload,s as httpDev};
54
+
55
+ //# debugId=DE660922CE9D805064756E2164756E21
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../server/httpDev.ts", "../server/renderErrorPage.ts"],
4
+ "sourcesContent": [
5
+ "import { IncomingMessage, ServerResponse } from \"node:http\";\nimport { Socket } from \"node:net\";\nimport { join } from \"node:path\";\n\nimport { createServer, type ViteDevServer } from \"vite\";\n\nimport { App } from \"../app\";\nimport gemiVite from \"../vite\";\nimport { createDevStyles } from \"./styles\";\nimport { renderErrorPage } from \"./renderErrorPage\";\nimport { Instrumentation } from \"./types\";\nimport { printStartupBanner } from \"./banner\";\nimport { GEMI_EXTERNAL_SPECIFIERS } from \"../internal/gemiExternals\";\n\n// Run a Web `Request` through Vite's Connect middleware.\n// Resolves to a `Response` when Vite handles the request (module transforms,\n// assets, the HMR client, ...), or `null` when it calls `next()` — which, with\n// `appType: \"custom\"`, it does for everything it doesn't own.\nfunction viteMiddleware(vite: ViteDevServer, request: Request): Promise<Response | null> {\n const url = new URL(request.url);\n\n const req = new IncomingMessage(new Socket());\n req.url = url.pathname + url.search;\n req.method = request.method;\n req.headers = Object.fromEntries(request.headers);\n\n const res = new ServerResponse(req);\n const chunks: Buffer[] = [];\n\n return new Promise((resolve) => {\n res.write = ((chunk: any) => {\n if (chunk) chunks.push(Buffer.from(chunk));\n return true;\n }) as typeof res.write;\n\n res.end = ((chunk?: any) => {\n if (chunk && typeof chunk !== \"function\") chunks.push(Buffer.from(chunk));\n\n const headers = new Headers();\n for (const [key, value] of Object.entries(res.getHeaders())) {\n if (value == null) continue;\n for (const v of Array.isArray(value) ? value : [value]) {\n headers.append(key, String(v));\n }\n }\n\n resolve(\n new Response(chunks.length ? Buffer.concat(chunks) : null, {\n status: res.statusCode,\n headers,\n }),\n );\n return res;\n }) as typeof res.end;\n\n vite.middlewares(req, res, () => resolve(null));\n });\n}\n\nconst rootDir = process.cwd();\nconst appDir = join(rootDir, \"app\");\n\ndeclare global {\n // Created once and reused across `bun --hot` reloads (see below).\n var __gemiVite: ViteDevServer | undefined;\n // Guards one-time registration of the process error hooks across reloads.\n var __gemiErrorHooked: boolean | undefined;\n // An error overlay is currently showing on the client (clear it on recovery).\n var __gemiErrorActive: boolean | undefined;\n // We served a standalone error *page* (not just a pushed overlay), so the\n // visible document has no live app — recovery needs a full page reload.\n var __gemiErrorPageServed: boolean | undefined;\n}\n\n// Build the `> 1 | ...\\n | ^` codeframe Vite's overlay renders — must\n// match its `codeframeRE` (a `<line> | <text>` line followed by a `| ^` line,\n// each ending in a newline).\nfunction codeFrame(lineText: string, line: number, column: number) {\n const gutter = String(line);\n const pad = \" \".repeat(gutter.length);\n const caret = \" \".repeat(Math.max(0, column - 1)) + \"^\";\n return `${gutter} | ${lineText}\\n${pad} | ${caret}\\n`;\n}\n\n// Normalize whatever Bun/JS throws into the { message, stack, frame, loc }\n// shape Vite's error overlay consumes. Two cases matter:\n// - a real `Error` (runtime top-level throw) carries a proper `.stack`;\n// - a Bun `BuildMessage` (syntax error) has NO `.stack`, only a `.position`\n// ({ file, line, column, lineText }) — so synthesize a codeframe + loc from\n// it, otherwise the overlay shows a bare message with no location.\n// (An `Error` instance also JSON-stringifies to `{}`, so fields are copied by\n// hand either way.)\nexport function viteErrorPayload(err: any) {\n if (err && typeof err === \"object\") {\n const pos = err.position;\n if (pos && typeof pos === \"object\" && typeof pos.file === \"string\") {\n return {\n message: typeof err.message === \"string\" ? err.message : String(err),\n stack: \"\",\n frame:\n typeof pos.lineText === \"string\"\n ? codeFrame(pos.lineText, pos.line, pos.column)\n : undefined,\n loc: { file: pos.file, line: pos.line, column: pos.column },\n };\n }\n return {\n message: typeof err.message === \"string\" ? err.message : String(err),\n stack: typeof err.stack === \"string\" ? err.stack : \"\",\n };\n }\n return { message: String(err), stack: \"\" };\n}\n\n// Push an error into the browser via Vite's HMR socket. `__gemiVite` persists\n// across `bun --hot` reloads, so this works even when the reload that produced\n// the error never got far enough to (re)run `httpDev`.\nfunction sendErrorToClient(err: any) {\n const vite = globalThis.__gemiVite;\n if (!vite) return;\n vite.ws.send({ type: \"error\", err: viteErrorPayload(err) as any });\n globalThis.__gemiErrorActive = true;\n}\n\n// `bun --hot` re-evaluates the module graph on every server-code change. A\n// syntax error or top-level throw in app code therefore fails during *module\n// load* — outside any request, and before `httpDev` re-runs — so Bun only\n// prints it to the console. Bun surfaces these as `unhandledRejection` (the\n// reload re-imports the entry and the failing dynamic import rejects), so hook\n// that here and forward it to the client. Registered once; process listeners\n// persist across reloads.\nif (!globalThis.__gemiErrorHooked) {\n globalThis.__gemiErrorHooked = true;\n process.on(\"unhandledRejection\", (reason) => {\n console.error(reason);\n sendErrorToClient(reason);\n });\n process.on(\"uncaughtException\", (err) => {\n console.error(err);\n sendErrorToClient(err);\n });\n}\n\nexport async function httpDev(app: App, instrumentation: Instrumentation) {\n // `bun --hot` re-runs this module on every server-code change, so keep a\n // single Vite server on `globalThis` instead of spawning a new one (and a new\n // HMR socket) on each reload.\n const isReload = Boolean(globalThis.__gemiVite);\n const vite = (globalThis.__gemiVite ??= await createServer({\n // gemi owns the Vite setup — the app has no `vite.config.mjs` to discover.\n // Register the gemi plugin explicitly instead; it loads `gemi.config.ts` and\n // appends the app's Vite plugins (e.g. `@vitejs/plugin-react`, which serves\n // `/@react-refresh` and the HMR preamble referenced below).\n configFile: false,\n plugins: [gemiVite()],\n server: {\n middlewareMode: true,\n // gemi reloads `.env` into process.env itself (see `watchEnv`). Stop Vite\n // from *also* watching env files: Vite's env-change handler restarts the\n // dev server, which closes the SSR module runner — but gemi keeps a single\n // Vite instance across `bun --hot` reloads, so an in-flight `ssrLoadModule`\n // hits the closed runner (\"Vite module runner has been closed\"). Ignoring\n // env files here only disables the restart; env *loading* at startup (and\n // `import.meta.env`) is unaffected.\n watch: {\n ignored: (file: string) => {\n const base = file.split(/[/\\\\]/).pop() ?? \"\";\n return base === \".env\" || base.startsWith(\".env.\");\n },\n },\n },\n appType: \"custom\",\n // Views are loaded through this SSR graph while the renderer\n // (react-dom/server in ViewRouterServiceContainer) is imported by Bun.\n // Dedupe so Vite can never resolve a second React copy — a mismatch makes\n // the SSR dispatcher null (\"Invalid hook call\") after an HMR reload.\n resolve: { dedupe: [\"react\", \"react-dom\"] },\n // Pre-bundle the whole React surface the client uses in one pass. The client\n // imports `react-dom/client` (`init.tsx`) and `react-dom` (`createPortal` in\n // `HttpReload.tsx`); if only the first is discovered at startup, the first\n // request to a module using the second triggers a *second* optimize pass,\n // and the already-served page ends up importing a now-stale dep — surfacing\n // as \"does not provide an export named 't'\". Listing them up front bundles\n // them together so no re-optimization (and no version skew) happens.\n optimizeDeps: { include: [\"react\", \"react-dom\", \"react-dom/client\"] },\n // `gemi` is a linked package, so Vite would otherwise compile its own copy\n // into this graph — giving views a *different* `RouteStateContext` (and\n // other module-level singletons) than the Bun-loaded renderer's `Root`\n // provider, so `useRouteData()` reads the empty default (`i18n` undefined).\n // Externalizing makes view imports of `gemi/*` resolve to the one Bun\n // instance. Vite's `ssr.external` matches exact specifiers (subpaths are NOT\n // covered by the bare name, and regexes are ignored here), so every subpath\n // a view might import must be listed — see `internal/gemiExternals`, the\n // shared source of truth this and the SSR build (`vite/index.ts`) both use.\n ssr: {\n external: [...GEMI_EXTERNAL_SPECIFIERS],\n },\n }));\n\n process.env.ROOT_DIR = rootDir;\n process.env.APP_DIR = appDir;\n\n const server = Bun.serve({\n port: 5173,\n fetch: async (req) => {\n const { pathname, host, protocol } = new URL(req.url);\n if (pathname.startsWith(\"/render-error.js\")) {\n return new Response(\"window.render_error = true\", {\n headers: {\n \"Content-Type\": \"application/javascript\",\n },\n });\n }\n if (pathname.startsWith(\"/refresh.js\")) {\n return new Response(\n `\n import RefreshRuntime from \"${protocol}//${host}/@react-refresh\";\n RefreshRuntime.injectIntoGlobalHook(window);\n window.$RefreshReg$ = () => {};\n window.$RefreshSig$ = () => (type) => type;\n window.__vite_plugin_react_preamble_installed__ = true;\n `,\n {\n headers: {\n \"Content-Type\": \"application/javascript\",\n },\n },\n );\n }\n const requestHandler = async (req: Request): Promise<Response> => {\n try {\n const handler = app.fetch.bind(app);\n const result = (await viteMiddleware(vite, req)) ?? (await handler(req));\n if (result instanceof Response) {\n return result;\n }\n\n const viewImportMap = {};\n const ogMap = {};\n const template = (viewName: string, path: string) =>\n `\"${viewName}\": () => import(\"${path}\")`;\n const templates = [];\n\n for (const fileName of [\"404\", ...app.getFlatComponentTree.call(app)]) {\n if (process.env.NODE_ENV === \"test\") {\n break;\n }\n const appDir = `${process.env.APP_DIR}`;\n const mod = await vite.ssrLoadModule(`${appDir}/views/${fileName}.tsx`, {\n fixStacktrace: true,\n });\n\n viewImportMap[fileName] = mod.default;\n ogMap[fileName] = mod?.OpenGraph;\n // Emit a root-relative URL (`/app/views/Foo.tsx`), NOT the absolute\n // filesystem path used for `ssrLoadModule` above. The browser's\n // `window.loaders` preload and `client.tsx`'s `import.meta.glob` map\n // must import the exact same URL — otherwise Vite serves the module\n // under two URLs (`/app/views/Foo.tsx` vs `/Users/.../app/views/Foo.tsx`)\n // and loads/instantiates the view twice.\n templates.push(template(fileName, `/app/views/${fileName}.tsx`));\n }\n\n const loaders = `{${templates.join(\",\")}}`;\n\n return await result({\n getStyles: async (currentViews: string[]) =>\n await createDevStyles(appDir, vite, currentViews),\n bootstrapModules: [\"/refresh.js\", \"/app/client.tsx\", \"/@vite/client\"],\n viewImportMap,\n ogMap,\n loaders,\n cssManifest: {},\n });\n } catch (err: any) {\n // Errors thrown *while handling a request* (a controller throwing, a\n // failing `ssrLoadModule`, ...) never hit the module-load hooks above,\n // so surface them here: forward to the overlay for any already-open\n // page, and render an error page for this response so a fresh load\n // (which has no live HMR socket yet) still shows the failure.\n console.error(err);\n vite.ssrFixStacktrace?.(err);\n sendErrorToClient(err);\n\n if (pathname.startsWith(\"/api\")) {\n return new Response(JSON.stringify({ error: err?.message ?? String(err) }), {\n status: 500,\n headers: { \"Content-Type\": \"application/json\" },\n });\n }\n\n // This document has no live app (so no HttpReload listener to clear the\n // overlay) — remember that, so recovery forces a full page reload.\n globalThis.__gemiErrorPageServed = true;\n return new Response(renderErrorPage(viteErrorPayload(err)), {\n status: 500,\n headers: { \"Content-Type\": \"text/html\" },\n });\n }\n };\n\n return await instrumentation(req, requestHandler);\n },\n });\n\n // On a reload `app` has already been rebuilt with the new code and Bun.serve\n // above has swapped in the new fetch handler, so the updated controllers are\n // live *now*. Tell the client to re-run its queries only at this point —\n // firing it from Vite's file watcher instead races Bun's reload and leaves\n // the UI one change behind.\n if (isReload) {\n // We got here, so the reload succeeded. Recover from any error that was\n // showing: a standalone error page must be fully reloaded to get the app\n // back, whereas an overlay pushed onto a live page is cleared by the\n // client's `http-reload` handler (no jarring full-page reload). A normal\n // reload just re-runs client queries against the now-live controllers.\n if (globalThis.__gemiErrorActive && globalThis.__gemiErrorPageServed) {\n globalThis.__gemiErrorActive = false;\n globalThis.__gemiErrorPageServed = false;\n vite.ws.send({ type: \"full-reload\" });\n } else {\n globalThis.__gemiErrorActive = false;\n vite.ws.send({ type: \"custom\", event: \"http-reload\" });\n }\n } else {\n // First start (not a `bun --hot` reload) — print the startup banner once.\n printStartupBanner({ port: server.port, rootDir });\n }\n\n return server;\n}\n",
6
+ "function cleanupTerminalText(text) {\n return (\n text\n // Remove ANSI escape sequences (colors, formatting)\n .replace(/\\x1b\\[[0-9;]*m/g, \"\")\n // Remove ANSI escape sequences with different format\n .replace(/\\[[0-9;]*m/g, \"\")\n // Remove excessive whitespace and normalize line breaks\n .replace(/\\n\\s*\\n/g, \"\\n\")\n // Trim each line\n .split(\"\\n\")\n .map((line) => line.trim())\n .filter((line) => line.length > 0)\n .join(\"\\n\")\n .trim()\n );\n}\n\nexport function renderErrorPage(err: any) {\n return `\n<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta\n name=\"viewport\"\n content=\"width=device-width, initial-scale=1.0\"\n />\n\n <title>Error</title>\n <style>\n body {\n font-family: Arial, sans-serif;\n padding: 20px;\n }\n h1 {\n color: red;\n }\n </style>\n </head>\n <body>\n <div id=\"overlay\"></div>\n <script type=\"module\" src=\"/refresh.js\"></script>\n <script type=\"module\" src=\"/@vite/client\"></script>\n <script>\n ${cleanupTerminalText.toString()}\n const err = ${JSON.stringify(err, Object.getOwnPropertyNames(err), 2)}\n\n window.addEventListener('load', () => {\n const container = document.getElementById('overlay')\n const ErrorOverlay = customElements.get('vite-error-overlay')\n if (ErrorOverlay) {\n const overlay = new ErrorOverlay({ ...err, message: cleanupTerminalText(err.message) });\n container.appendChild(overlay)\n }\n })\n </script>\n </body>\n</html>\n`;\n}\n"
7
+ ],
8
+ "mappings": ";0dAAA,oBAAS,cAAiB,OAC1B,WAAS,MACT,SAAS,OAET,iBAAS,OCJT,GAAS,LAAmB,LAAC,EAAM,CACjC,OACE,EAEG,QAAQ,kBAAmB,EAAE,EAE7B,QAAQ,cAAe,EAAE,EAEzB,QAAQ,WAAY;AAAA,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