libre-webui 0.19.1 → 0.19.3

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 (183) hide show
  1. package/backend/dist/db.d.ts.map +1 -1
  2. package/backend/dist/db.js +2 -0
  3. package/backend/dist/db.js.map +1 -1
  4. package/backend/dist/index.d.ts.map +1 -1
  5. package/backend/dist/index.js +61 -2
  6. package/backend/dist/index.js.map +1 -1
  7. package/backend/dist/routes/artifacts.d.ts +3 -0
  8. package/backend/dist/routes/artifacts.d.ts.map +1 -0
  9. package/backend/dist/routes/artifacts.js +167 -0
  10. package/backend/dist/routes/artifacts.js.map +1 -0
  11. package/backend/dist/routes/chat.d.ts.map +1 -1
  12. package/backend/dist/routes/chat.js +41 -3
  13. package/backend/dist/routes/chat.js.map +1 -1
  14. package/backend/dist/services/assistantCompletionService.d.ts +2 -1
  15. package/backend/dist/services/assistantCompletionService.d.ts.map +1 -1
  16. package/backend/dist/services/assistantCompletionService.js +3 -1
  17. package/backend/dist/services/assistantCompletionService.js.map +1 -1
  18. package/backend/dist/services/chatGenerationService.d.ts +2 -1
  19. package/backend/dist/services/chatGenerationService.d.ts.map +1 -1
  20. package/backend/dist/services/chatGenerationService.js +18 -4
  21. package/backend/dist/services/chatGenerationService.js.map +1 -1
  22. package/backend/dist/services/pluginService.d.ts.map +1 -1
  23. package/backend/dist/services/pluginService.js +3 -1
  24. package/backend/dist/services/pluginService.js.map +1 -1
  25. package/backend/dist/services/preferencesService.d.ts.map +1 -1
  26. package/backend/dist/services/preferencesService.js +1 -0
  27. package/backend/dist/services/preferencesService.js.map +1 -1
  28. package/backend/dist/storage.d.ts.map +1 -1
  29. package/backend/dist/storage.js +6 -3
  30. package/backend/dist/storage.js.map +1 -1
  31. package/backend/dist/storageMappers.d.ts +1 -0
  32. package/backend/dist/storageMappers.d.ts.map +1 -1
  33. package/backend/dist/storageMappers.js +3 -0
  34. package/backend/dist/storageMappers.js.map +1 -1
  35. package/backend/dist/types/index.d.ts +4 -0
  36. package/backend/dist/types/index.d.ts.map +1 -1
  37. package/backend/dist/types/index.js.map +1 -1
  38. package/backend/dist/utils/chatContext.d.ts +1 -1
  39. package/backend/dist/utils/chatContext.d.ts.map +1 -1
  40. package/backend/dist/utils/chatContext.js +4 -0
  41. package/backend/dist/utils/chatContext.js.map +1 -1
  42. package/backend/dist/utils/ollamaStreaming.d.ts +1 -0
  43. package/backend/dist/utils/ollamaStreaming.d.ts.map +1 -1
  44. package/backend/dist/utils/ollamaStreaming.js +16 -3
  45. package/backend/dist/utils/ollamaStreaming.js.map +1 -1
  46. package/backend/dist/utils/pluginChatAdapter.d.ts +2 -0
  47. package/backend/dist/utils/pluginChatAdapter.d.ts.map +1 -1
  48. package/backend/dist/utils/pluginChatAdapter.js +9 -1
  49. package/backend/dist/utils/pluginChatAdapter.js.map +1 -1
  50. package/backend/dist/utils/pluginResponse.d.ts +2 -0
  51. package/backend/dist/utils/pluginResponse.d.ts.map +1 -1
  52. package/backend/dist/utils/pluginResponse.js +29 -0
  53. package/backend/dist/utils/pluginResponse.js.map +1 -1
  54. package/backend/dist/utils/pluginStreamAdapter.d.ts.map +1 -1
  55. package/backend/dist/utils/pluginStreamAdapter.js +5 -1
  56. package/backend/dist/utils/pluginStreamAdapter.js.map +1 -1
  57. package/backend/dist/utils/pluginStreaming.d.ts +1 -0
  58. package/backend/dist/utils/pluginStreaming.d.ts.map +1 -1
  59. package/backend/dist/utils/pluginStreaming.js +17 -0
  60. package/backend/dist/utils/pluginStreaming.js.map +1 -1
  61. package/backend/dist/utils/thinkingPhaseTimer.d.ts +2 -0
  62. package/backend/dist/utils/thinkingPhaseTimer.d.ts.map +1 -1
  63. package/backend/dist/utils/thinkingPhaseTimer.js +12 -0
  64. package/backend/dist/utils/thinkingPhaseTimer.js.map +1 -1
  65. package/backend/dist/utils/websocketMessages.d.ts +2 -0
  66. package/backend/dist/utils/websocketMessages.d.ts.map +1 -1
  67. package/backend/dist/utils/websocketMessages.js.map +1 -1
  68. package/backend/dist/websocketServer.d.ts.map +1 -1
  69. package/backend/dist/websocketServer.js +24 -4
  70. package/backend/dist/websocketServer.js.map +1 -1
  71. package/backend/package.json +1 -1
  72. package/frontend/dist/apple-touch-icon.png +0 -0
  73. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -0
  74. package/frontend/dist/artifact-runtime/babel.js +613 -0
  75. package/frontend/dist/artifact-runtime/chart.js +3 -0
  76. package/frontend/dist/artifact-runtime/d3.js +5 -0
  77. package/frontend/dist/artifact-runtime/fonts.js +255 -0
  78. package/frontend/dist/artifact-runtime/framer-motion.js +10 -0
  79. package/frontend/dist/artifact-runtime/lodash.js +20 -0
  80. package/frontend/dist/artifact-runtime/lucide-react.js +1 -0
  81. package/frontend/dist/artifact-runtime/mathjs.js +54 -0
  82. package/frontend/dist/artifact-runtime/mermaid.js +3535 -0
  83. package/frontend/dist/artifact-runtime/papaparse.js +10 -0
  84. package/frontend/dist/artifact-runtime/plotly.js +3790 -0
  85. package/frontend/dist/artifact-runtime/react.js +9 -0
  86. package/frontend/dist/artifact-runtime/recharts.js +69 -0
  87. package/frontend/dist/artifact-runtime/runtime.js +1 -0
  88. package/frontend/dist/artifact-runtime/tailwind.js +952 -0
  89. package/frontend/dist/artifact-runtime/three.js +5271 -0
  90. package/frontend/dist/artifact-runtime/tone.js +210 -0
  91. package/frontend/dist/assets/index-ZxtmHZ3Y.js +83 -0
  92. package/frontend/dist/assets/index-mBbb8flG.css +1 -0
  93. package/frontend/dist/favicon-dark.png +0 -0
  94. package/frontend/dist/favicon-light.png +0 -0
  95. package/frontend/dist/favicon.svg +1 -0
  96. package/frontend/dist/fonts/inter.css +254 -0
  97. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0Q5n-wU.woff2 +0 -0
  98. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2 +0 -0
  99. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0Q5n-wU.woff2 +0 -0
  100. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2 +0 -0
  101. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2 +0 -0
  102. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0Q5n-wU.woff2 +0 -0
  103. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0Q5n-wU.woff2 +0 -0
  104. package/frontend/dist/icon-192.png +0 -0
  105. package/frontend/dist/icon-512.png +0 -0
  106. package/frontend/dist/index.html +16 -11
  107. package/frontend/dist/js/ArtifactContainer-DZV5ZT6g.js +1 -0
  108. package/frontend/dist/js/{ArtifactDemoPage-0BLd-m3N.js → ArtifactDemoPage-BX6d2sWa.js} +58 -2
  109. package/frontend/dist/js/ArtifactSandboxFrame-CSDSSxMI.js +151 -0
  110. package/frontend/dist/js/ArtifactSlideOutPanel-BYy4Yv_U.js +1 -0
  111. package/frontend/dist/js/ChatPage-Bk1fO2xt.js +16 -0
  112. package/frontend/dist/js/FirstTimeSetup-ByfcKmYo.js +1 -0
  113. package/frontend/dist/js/{GalleryPage-DH-KEeIZ.js → GalleryPage-DLLiZj6X.js} +1 -1
  114. package/frontend/dist/js/HomePage-DHuuGx-r.js +1 -0
  115. package/frontend/dist/js/{LibreClawPage-B_eC8oQo.js → LibreClawPage-BfCXrQ-e.js} +1 -1
  116. package/frontend/dist/js/{ModelSelector-DwhKmtQx.js → ModelSelector-BET34RYg.js} +1 -1
  117. package/frontend/dist/js/{ModelsPage-DQm2DgF3.js → ModelsPage-BxLpqELH.js} +1 -1
  118. package/frontend/dist/js/NotesPage-BC62unJU.js +1 -0
  119. package/frontend/dist/js/{PersonasPage-DpHCAyoD.js → PersonasPage-BsOyNy8l.js} +2 -2
  120. package/frontend/dist/js/{PluginUsagePage-Cd5MJbLi.js → PluginUsagePage-CLpKYGwg.js} +1 -1
  121. package/frontend/dist/js/{RichMessageContent-B1bidjA8.js → RichMessageContent-BTcjK7f1.js} +1 -1
  122. package/frontend/dist/js/SettingsModal-ao0lVJHy.js +1 -0
  123. package/frontend/dist/js/{SystemPage-CUfqMR-l.js → SystemPage-ZMCqqgBt.js} +1 -1
  124. package/frontend/dist/js/{UserManagementPage-5ZGnsxNF.js → UserManagementPage-6PsAs-Uy.js} +1 -1
  125. package/frontend/dist/js/WorkPage-t7NVWt81.js +5 -0
  126. package/frontend/dist/js/api-F_fsjYA7.js +19 -0
  127. package/frontend/dist/js/{appStore-wGpPGj47.js → appStore-ne0eCPTX.js} +2 -2
  128. package/frontend/dist/js/{ar-ONXFvOB1.js → ar-B_uYj5Gv.js} +1 -1
  129. package/frontend/dist/js/{authStore-D-d7UIpv.js → authStore-DqsiGpyN.js} +1 -1
  130. package/frontend/dist/js/{bn-BLhREPm6.js → bn-Pd4HHYsG.js} +1 -1
  131. package/frontend/dist/js/chatStore-DRg2vRDS.js +2 -0
  132. package/frontend/dist/js/config-DZsEwEPX.js +1 -0
  133. package/frontend/dist/js/{cs-Bg8E9fG5.js → cs-CgVXogHE.js} +1 -1
  134. package/frontend/dist/js/{da-ODCU8w4x.js → da-DTUIrClO.js} +1 -1
  135. package/frontend/dist/js/{de-nuGHRJ5N.js → de-CKITtmnY.js} +1 -1
  136. package/frontend/dist/js/{es-DcN_cwum.js → es-DKDhsL9J.js} +1 -1
  137. package/frontend/dist/js/{estree-vPoIgYRx.js → estree-CWs-Kavs.js} +1 -1
  138. package/frontend/dist/js/{fr-C-L_xGr5.js → fr-CUvNp0pc.js} +1 -1
  139. package/frontend/dist/js/{hi-DUEtwA9G.js → hi-Bwdmc__g.js} +1 -1
  140. package/frontend/dist/js/{html-_taODyXh.js → html-DrDcdqPC.js} +1 -1
  141. package/frontend/dist/js/{i18n-xir4Zz7C.js → i18n-ZJQSoIuM.js} +2 -2
  142. package/frontend/dist/js/{id-DNTYhti_.js → id-CWTPw3NJ.js} +1 -1
  143. package/frontend/dist/js/{is-Bx28ymbQ.js → is-4dV6F4Bo.js} +1 -1
  144. package/frontend/dist/js/{it-BjW-JLlS.js → it-8uw2-j2s.js} +1 -1
  145. package/frontend/dist/js/{ja-uThj4Q1w.js → ja-Bl7gd3kp.js} +1 -1
  146. package/frontend/dist/js/{ko-DqgmMYXK.js → ko-C_CYwJnL.js} +1 -1
  147. package/frontend/dist/js/{markdown-CLKggXc3.js → markdown-CbB02VPB.js} +1 -1
  148. package/frontend/dist/js/messageCodeStyles-D1gR4Bnk.js +2 -0
  149. package/frontend/dist/js/{ms-R9kt_P0T.js → ms-Dznw3AkA.js} +1 -1
  150. package/frontend/dist/js/{nl-BjmtEgpK.js → nl-fW-4lPWK.js} +1 -1
  151. package/frontend/dist/js/{pl-C8_gU9r1.js → pl-CanprK04.js} +1 -1
  152. package/frontend/dist/js/{pt-7BJForUD.js → pt-JhTaVvKa.js} +1 -1
  153. package/frontend/dist/js/{ru-D2HmhY6Y.js → ru-uPtHQATq.js} +1 -1
  154. package/frontend/dist/js/{standalone-53qXRmN5.js → standalone-BIvqjowG.js} +1 -1
  155. package/frontend/dist/js/{sv-zny3sDBM.js → sv-yr6iqxR-.js} +1 -1
  156. package/frontend/dist/js/{th-CAzEKRz8.js → th-Bx4U5yKy.js} +1 -1
  157. package/frontend/dist/js/{tr-BmYgtmUo.js → tr-C7tCwYuZ.js} +1 -1
  158. package/frontend/dist/js/{typescript-C6-ED_Fw.js → typescript-kUuRGkxH.js} +1 -1
  159. package/frontend/dist/js/{ui-BXTx1csA.js → ui-D4PVoJDa.js} +2 -2
  160. package/frontend/dist/js/{uk-eiYZ0uRq.js → uk-C4SbiAUn.js} +1 -1
  161. package/frontend/dist/js/{vi-C7SVAWpO.js → vi-C3-TmuzC.js} +1 -1
  162. package/frontend/dist/js/{zh-2Q3cQv3s.js → zh-CRfqIC_I.js} +1 -1
  163. package/frontend/dist/logo-dark.png +0 -0
  164. package/frontend/dist/logo-dark.svg +1 -0
  165. package/frontend/dist/logo-light.png +0 -0
  166. package/frontend/dist/logo-light.svg +1 -0
  167. package/frontend/dist/logo.svg +1 -6
  168. package/frontend/dist/maskable-512.png +0 -0
  169. package/package.json +2 -2
  170. package/frontend/dist/assets/index-BA116EVY.js +0 -11
  171. package/frontend/dist/assets/index-CFhy8YLA.css +0 -1
  172. package/frontend/dist/js/ArtifactContainer-CBTr5mSK.js +0 -1
  173. package/frontend/dist/js/ArtifactSlideOutPanel-DjGIUKtP.js +0 -1
  174. package/frontend/dist/js/ChatPage-BgLadsgU.js +0 -16
  175. package/frontend/dist/js/FirstTimeSetup-CZKfjAkx.js +0 -1
  176. package/frontend/dist/js/HomePage-C4TJCwU6.js +0 -1
  177. package/frontend/dist/js/NotesPage-pNuo3BZp.js +0 -1
  178. package/frontend/dist/js/SettingsModal-ZbZKdZcC.js +0 -1
  179. package/frontend/dist/js/WorkPage-ShAy19E2.js +0 -5
  180. package/frontend/dist/js/api-CI1Inz7g.js +0 -19
  181. package/frontend/dist/js/artifactHtml-C0Hu9I1u.js +0 -41
  182. package/frontend/dist/js/chatStore-BaX22w_g.js +0 -2
  183. package/frontend/dist/js/messageCodeStyles-B0BoOSOR.js +0 -2
@@ -0,0 +1 @@
1
+ (function(){var e=`react`,t=`babel`,n=`tailwind`,r=`fonts`,i={react:e,"react-dom":e,"react-dom/client":e,"react/jsx-runtime":e,"react/jsx-dev-runtime":e,recharts:`recharts`,"lucide-react":`lucide-react`,d3:`d3`,three:`three`,papaparse:`papaparse`,lodash:`lodash`,"lodash-es":`lodash`,mermaid:`mermaid`,"chart.js":`chart`,"chart.js/auto":`chart`,tone:`tone`,mathjs:`mathjs`,"plotly.js":`plotly`,"plotly.js-dist-min":`plotly`,"framer-motion":`framer-motion`,"motion/react":`framer-motion`,motion:`framer-motion`,"three/addons/controls/OrbitControls.js":`three`,"three/examples/jsm/controls/OrbitControls.js":`three`},a=[{pattern:/cdn\.tailwindcss\.com/i,bundle:n},{pattern:/(?:^|\/)tailwindcss(?:@[\d.]+)?(?:\/|$)/i,bundle:n},{pattern:/(?:^|\/)chart\.js(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:`chart`},{pattern:/(?:^|\/)chart(?:\.min)?\.js(?:$|\?)/i,bundle:`chart`},{pattern:/(?:^|\/)d3(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:`d3`},{pattern:/(?:^|\/)d3(?:\.min)?\.js(?:$|\?)/i,bundle:`d3`},{pattern:/(?:^|\/)three(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:`three`},{pattern:/(?:^|\/)three(?:\.min)?\.js(?:$|\?)/i,bundle:`three`},{pattern:/papaparse/i,bundle:`papaparse`},{pattern:/(?:^|\/)lodash(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:`lodash`},{pattern:/(?:^|\/)lodash(?:\.min)?\.js(?:$|\?)/i,bundle:`lodash`},{pattern:/fonts\.(?:googleapis|gstatic)\.com/i,bundle:r},{pattern:/mermaid/i,bundle:`mermaid`},{pattern:/(?:^|\/)tone(?:@[\d.]+)?(?:\/|$|\?)|tone(?:\.min)?\.js/i,bundle:`tone`},{pattern:/mathjs|math(?:\.min)?\.js/i,bundle:`mathjs`},{pattern:/plotly/i,bundle:`plotly`},{pattern:/framer-motion|(?:^|\/)motion(?:@[\d.]+)?(?:\/|$)/i,bundle:`framer-motion`},{pattern:/react-dom/i,bundle:e},{pattern:/(?:^|\/)react(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:e},{pattern:/babel(?:-standalone|\/standalone)/i,bundle:t}];function o(e){if(i[e])return e;let t=a.find(({pattern:t})=>t.test(e))?.bundle??Object.values(i).find(t=>e.startsWith(`${t}/`));return t?Object.entries(i).find(([,e])=>e===t)?.[0]??null:null}var s=`root`,c={modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t!==void 0)return t;let n=o(e),r=n===null?void 0:this.modules[n];if(r!==void 0)return r;throw Error(`"${e}" is not one of the libraries available to artifacts.`)},runReact(){g()},runMermaid(){_()},runInline(e){try{h(m(e))}catch(e){d(`This script could not run.`,f(e))}}},l=()=>{let e=window.__libreArtifactSource;return typeof e==`string`?e.trim():``},u=()=>document.getElementById(s),d=(e,t)=>{let n=u();if(!n)return;let r=document.createElement(`div`);r.setAttribute(`data-testid`,`artifact-runtime-error`),r.style.cssText=`margin:16px;padding:16px;border:1px solid #f0a5a5;border-radius:12px;background:#fff5f5;color:#7f1d1d;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word;`;let i=document.createElement(`strong`);i.textContent=e,i.style.cssText=`display:block;margin-bottom:8px;font:600 13px/1.4 system-ui,sans-serif;`,r.append(i,document.createTextNode(t)),n.replaceChildren(r)},f=e=>e instanceof Error?`${e.message}\n\n${e.stack??``}`.trim():String(e),p=e=>{if(typeof e.default==`function`)return e.default;for(let[t,n]of Object.entries(e))if(typeof n==`function`&&/^[A-Z]/.test(t))return n;return null},m=e=>{let t=c.modules.__babel;if(!t)throw Error(`The artifact compiler was not loaded.`);let n=t.transform(e,{filename:`artifact.tsx`,sourceType:`module`,presets:[`typescript`,[`react`,{runtime:`automatic`}]],plugins:[`transform-modules-commonjs`]});if(!n?.code)throw Error(`The artifact produced no runnable code.`);return n.code},h=e=>{let t={exports:{}};return Function(`require`,`module`,`exports`,e)(e=>c.require(e),t,t.exports),t.exports},g=async()=>{let e=l(),t=u();if(!e||!t){d(`Nothing to render.`,`The artifact carried no source.`);return}let n;try{n=h(m(e))}catch(e){d(`This artifact could not be compiled.`,f(e));return}try{let e=c.require(`react`),{createRoot:r}=c.require(`react-dom/client`),i=p(n);if(!i){t.childElementCount===0&&d(`This artifact exported no component.`,`Export the component as the module default, for example: export default function App() { ... }`);return}r(t).render(e.createElement(e.StrictMode,null,e.createElement(i)))}catch(e){d(`This artifact failed to run.`,f(e))}},_=async()=>{let e=l(),t=u();if(!(!e||!t))try{let n=c.require(`mermaid`);n.initialize({startOnLoad:!1,theme:document.documentElement.dataset.colorScheme===`dark`?`dark`:`default`,securityLevel:`strict`,fontFamily:`system-ui, -apple-system, Segoe UI, Roboto, sans-serif`});let{svg:r}=await n.render(`libre-artifact-diagram`,e),i=new DOMParser().parseFromString(r,`image/svg+xml`).documentElement;if(!i||i.nodeName===`parsererror`)throw Error(`The diagram could not be parsed.`);t.replaceChildren(document.importNode(i,!0))}catch(e){d(`This diagram could not be drawn.`,f(e))}};window.addEventListener(`unhandledrejection`,e=>{d(`This artifact raised an unhandled error.`,String(e.reason))}),window.__libreArtifactRuntime=c})();