@xpert-ai/chatkit-ui 0.0.2 → 0.0.4

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 (287) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +6 -59
  3. package/dist/app/assets/{abap-r5qEZhbP.js → abap-B-sfhg2z.js} +1 -1
  4. package/dist/app/assets/{abnf-B1-snbnN.js → abnf-DxU6yiAg.js} +1 -1
  5. package/dist/app/assets/{actionscript-DKuzag0S.js → actionscript-dVONyrQj.js} +1 -1
  6. package/dist/app/assets/{ada-Cf7_jj9e.js → ada-Z-gyaTAM.js} +1 -1
  7. package/dist/app/assets/{agda-DTzFiqCe.js → agda-CqOWqor_.js} +1 -1
  8. package/dist/app/assets/{al-CxK958n6.js → al-C8MoQnzW.js} +1 -1
  9. package/dist/app/assets/{antlr4-BAQNvWAR.js → antlr4-BIdpiTwg.js} +1 -1
  10. package/dist/app/assets/{apacheconf-BDS7lzSp.js → apacheconf-DfGbtjvw.js} +1 -1
  11. package/dist/app/assets/{apex-PrEYueYu.js → apex-Kly9RRHJ.js} +1 -1
  12. package/dist/app/assets/{apl-BxCE3pUM.js → apl-DURzpBuB.js} +1 -1
  13. package/dist/app/assets/{applescript-CbmkMI2b.js → applescript-DsHoYR5P.js} +1 -1
  14. package/dist/app/assets/{aql-Br7w2FWv.js → aql-Dfzdr0OA.js} +1 -1
  15. package/dist/app/assets/{arduino-DztvkRBm.js → arduino-CJKdO8b_.js} +1 -1
  16. package/dist/app/assets/{arff-DMIMEeal.js → arff-BomSImC5.js} +1 -1
  17. package/dist/app/assets/{asciidoc-6sbk5AU3.js → asciidoc-BIzqSRse.js} +1 -1
  18. package/dist/app/assets/{asm6502-pvPxs3SS.js → asm6502-WdZAKqQ_.js} +1 -1
  19. package/dist/app/assets/{asmatmel-C6DNoRbE.js → asmatmel-DmtWS1sE.js} +1 -1
  20. package/dist/app/assets/{aspnet-BbJerGfY.js → aspnet-Bw6BDTtV.js} +1 -1
  21. package/dist/app/assets/{autohotkey-DKwYophK.js → autohotkey-DZ3_SdqB.js} +1 -1
  22. package/dist/app/assets/{autoit-DAz38rob.js → autoit-PJmTDznW.js} +1 -1
  23. package/dist/app/assets/{avisynth-CA38jZ01.js → avisynth-CsVI1aol.js} +1 -1
  24. package/dist/app/assets/{avro-idl-DsorjIu9.js → avro-idl-B1yK8yIP.js} +1 -1
  25. package/dist/app/assets/{bash-Byt0YIsi.js → bash-DBK1RJ9n.js} +1 -1
  26. package/dist/app/assets/{basic-CMWvkpXD.js → basic-CsMK-tVD.js} +1 -1
  27. package/dist/app/assets/{batch-DuBQ3McD.js → batch-DwHAHI-7.js} +1 -1
  28. package/dist/app/assets/{bbcode-DfssxBA1.js → bbcode-AsDHJGD4.js} +1 -1
  29. package/dist/app/assets/{bicep-9hsCe6m3.js → bicep-BygN0UMc.js} +1 -1
  30. package/dist/app/assets/{birb-Bc9BRwRB.js → birb-CG0oKTMY.js} +1 -1
  31. package/dist/app/assets/{bison-xsfiYnBc.js → bison-B_wb93x3.js} +1 -1
  32. package/dist/app/assets/{bnf-DjWYNABY.js → bnf-KgJBlfsw.js} +1 -1
  33. package/dist/app/assets/{brainfuck-DRIStkin.js → brainfuck-0XdZeRRW.js} +1 -1
  34. package/dist/app/assets/{brightscript-C2PUL6fB.js → brightscript-CKTaFfGi.js} +1 -1
  35. package/dist/app/assets/{bro-CGiYkxiS.js → bro-RLFA-4Vd.js} +1 -1
  36. package/dist/app/assets/{bsl-Bl8C3_3D.js → bsl-B63yOyV8.js} +1 -1
  37. package/dist/app/assets/{c-ZYvTJlSO.js → c-CVgdhwuY.js} +1 -1
  38. package/dist/app/assets/{cfscript-BMhAq5o9.js → cfscript-CGWK3wZL.js} +1 -1
  39. package/dist/app/assets/{chaiscript-CPmV-euz.js → chaiscript-i-d2kl2k.js} +1 -1
  40. package/dist/app/assets/{cil-B6Amcpic.js → cil-CjLawpFW.js} +1 -1
  41. package/dist/app/assets/{clike-BJEDekBy.js → clike-YftFO7ZY.js} +1 -1
  42. package/dist/app/assets/{clojure-CW8XdyJM.js → clojure-CUwnQKwY.js} +1 -1
  43. package/dist/app/assets/{cmake-C67VTXlG.js → cmake-D543lCQx.js} +1 -1
  44. package/dist/app/assets/{cobol-36MS0vW5.js → cobol-9fjBVJPf.js} +1 -1
  45. package/dist/app/assets/{coffeescript-HPCQWKbV.js → coffeescript-DtWqUqX_.js} +1 -1
  46. package/dist/app/assets/{concurnas-BdV-2hSV.js → concurnas-Cf8yBPbn.js} +1 -1
  47. package/dist/app/assets/{coq-B4X2Mh4T.js → coq-eM6IsW2x.js} +1 -1
  48. package/dist/app/assets/{core-xfKxb2c-.js → core-Dv_2Q326.js} +1 -1
  49. package/dist/app/assets/{cpp-DbuAZI9Z.js → cpp-BTuEQPna.js} +1 -1
  50. package/dist/app/assets/{crystal-Bn0O5Oft.js → crystal-prJJ8_tq.js} +1 -1
  51. package/dist/app/assets/{csharp-CjsjgIr3.js → csharp-Cv-WGI29.js} +1 -1
  52. package/dist/app/assets/{cshtml-Cy8WSSs7.js → cshtml-DAYCdsCV.js} +1 -1
  53. package/dist/app/assets/{csp-CfCdno1W.js → csp-C7sZ2D4b.js} +1 -1
  54. package/dist/app/assets/{css-DenRb6F4.js → css-CGfkdSVC.js} +1 -1
  55. package/dist/app/assets/{css-extras-Xo_fwYbL.js → css-extras-DA4fbtlm.js} +1 -1
  56. package/dist/app/assets/{csv-BWaJLMiL.js → csv-D3Trlkpt.js} +1 -1
  57. package/dist/app/assets/{cypher-BgX9fVzJ.js → cypher-DuMIoii4.js} +1 -1
  58. package/dist/app/assets/{d-DyyCNOIH.js → d-D9ExwkNJ.js} +1 -1
  59. package/dist/app/assets/{dart-DjzwYiLS.js → dart-CuQX2J-O.js} +1 -1
  60. package/dist/app/assets/{dataweave-B-Vy-inP.js → dataweave-DAlEjOvf.js} +1 -1
  61. package/dist/app/assets/{dax-CZ05y54Z.js → dax-NTZcM_Vm.js} +1 -1
  62. package/dist/app/assets/{dhall-CwkbNTKc.js → dhall-CnbjdBXn.js} +1 -1
  63. package/dist/app/assets/{diff-C_qDIIt8.js → diff-Bvfm9917.js} +1 -1
  64. package/dist/app/assets/{django-Cchdv5xU.js → django-COw_K600.js} +1 -1
  65. package/dist/app/assets/{dns-zone-file-CyQNz9kq.js → dns-zone-file-D6MV0F_P.js} +1 -1
  66. package/dist/app/assets/{docker-B0pp2G5o.js → docker-DHbVqjjd.js} +1 -1
  67. package/dist/app/assets/{dot-CYXSIdXI.js → dot-CHbof6jx.js} +1 -1
  68. package/dist/app/assets/{ebnf-BhtXTbQG.js → ebnf-uVpvH3l_.js} +1 -1
  69. package/dist/app/assets/{editorconfig-BDSiMJB3.js → editorconfig-sRrSw09a.js} +1 -1
  70. package/dist/app/assets/{eiffel-CSI_WtNY.js → eiffel-nnO6nRZ2.js} +1 -1
  71. package/dist/app/assets/{ejs-B7FjKtFB.js → ejs-DFrlp5ZT.js} +1 -1
  72. package/dist/app/assets/{elixir-D5ItL-Mz.js → elixir-Ct3i8TvM.js} +1 -1
  73. package/dist/app/assets/{elm-hVteuOs9.js → elm-CBFcitTd.js} +1 -1
  74. package/dist/app/assets/{erb-BN7dXGSL.js → erb-DbV0kLT9.js} +1 -1
  75. package/dist/app/assets/{erlang-BSP_-sRS.js → erlang-B1mJaJyJ.js} +1 -1
  76. package/dist/app/assets/{etlua-BJLOsyG2.js → etlua-Cxm0cEab.js} +1 -1
  77. package/dist/app/assets/{excel-formula-Cz8oPHlg.js → excel-formula-CZukILIG.js} +1 -1
  78. package/dist/app/assets/{factor-B18ayaMg.js → factor-DJygGCwq.js} +1 -1
  79. package/dist/app/assets/{false-BbwgoANn.js → false-DlIyCLmL.js} +1 -1
  80. package/dist/app/assets/{firestore-security-rules-Cb-sIv4N.js → firestore-security-rules-HI5-WQLc.js} +1 -1
  81. package/dist/app/assets/{flow-DwNhMKdq.js → flow-CcoZ7_Vu.js} +1 -1
  82. package/dist/app/assets/{fortran-Q9_x6NYJ.js → fortran-BRrztTgX.js} +1 -1
  83. package/dist/app/assets/{fsharp-DAn0fWAf.js → fsharp-BMMYQHue.js} +1 -1
  84. package/dist/app/assets/{ftl-0VJqQF7L.js → ftl-Ci-sPaug.js} +1 -1
  85. package/dist/app/assets/{gap-CwARvyeO.js → gap-DmGgK8rL.js} +1 -1
  86. package/dist/app/assets/{gcode-DRZ-NtIf.js → gcode-PU7qTQzc.js} +1 -1
  87. package/dist/app/assets/{gdscript-DLWUxJKZ.js → gdscript-CckEtSRG.js} +1 -1
  88. package/dist/app/assets/{gedcom-LrWyJR_l.js → gedcom-D5EJtxWv.js} +1 -1
  89. package/dist/app/assets/{gherkin-DILlSFJd.js → gherkin-DsHQJnq5.js} +1 -1
  90. package/dist/app/assets/{git-tykDb3ub.js → git-W93HSMkW.js} +1 -1
  91. package/dist/app/assets/{glsl-D97iKuQJ.js → glsl-D82Gm6XG.js} +1 -1
  92. package/dist/app/assets/{gml-DB1PeyPv.js → gml-B-YiS-by.js} +1 -1
  93. package/dist/app/assets/{gn-Oqf78vQS.js → gn-B5CF7s3V.js} +1 -1
  94. package/dist/app/assets/{go-uYHARARY.js → go-BLFYncOS.js} +1 -1
  95. package/dist/app/assets/{go-module-D7KyvJ4u.js → go-module-qiRaeEbS.js} +1 -1
  96. package/dist/app/assets/{graphql-BIap2FqQ.js → graphql-CfuhtQlr.js} +1 -1
  97. package/dist/app/assets/{groovy-Cr9o9fqv.js → groovy-DCCszopm.js} +1 -1
  98. package/dist/app/assets/{haml-Dbj6JAX0.js → haml-BZyecmei.js} +1 -1
  99. package/dist/app/assets/{handlebars-TWtx7Zmf.js → handlebars-eepOpVog.js} +1 -1
  100. package/dist/app/assets/{haskell-_f6nn-YC.js → haskell-Cx-kQ09O.js} +1 -1
  101. package/dist/app/assets/{haxe-Dz8mYH5i.js → haxe-Djt0g5VP.js} +1 -1
  102. package/dist/app/assets/{hcl-CWBhK_2d.js → hcl-DDwI2YlZ.js} +1 -1
  103. package/dist/app/assets/{hlsl-C8w84-ui.js → hlsl-DFGamQ0x.js} +1 -1
  104. package/dist/app/assets/{hoon-EPQkWoKN.js → hoon-CVQbgUGZ.js} +1 -1
  105. package/dist/app/assets/{hpkp-Cuo4Xy5e.js → hpkp-BXElcl43.js} +1 -1
  106. package/dist/app/assets/{hsts-CpNIILMG.js → hsts-DHLFi7AP.js} +1 -1
  107. package/dist/app/assets/{http-CYP6yT6s.js → http-CubVv5rO.js} +1 -1
  108. package/dist/app/assets/{ichigojam-hUSaDBKO.js → ichigojam-BXQ2dMfl.js} +1 -1
  109. package/dist/app/assets/{icon-CiwrwB3z.js → icon-DLXxMTIR.js} +1 -1
  110. package/dist/app/assets/{icu-message-format-VDYKiTmx.js → icu-message-format-BMpWiY5I.js} +1 -1
  111. package/dist/app/assets/{idris-BrYqIHFw.js → idris-DeYvOuyu.js} +1 -1
  112. package/dist/app/assets/{iecst-CY8zdJ-p.js → iecst-6ffFZ4rl.js} +1 -1
  113. package/dist/app/assets/{ignore-DnPVmmQY.js → ignore-BzNbTtC-.js} +1 -1
  114. package/dist/app/assets/index-C6U_3k3T.css +1 -0
  115. package/dist/app/assets/{index-CfiLrrLw.js → index-DbSxpAhQ.js} +93 -93
  116. package/dist/app/assets/{inform7-B5v6FoDj.js → inform7-DZwGFgQD.js} +1 -1
  117. package/dist/app/assets/{ini-DgEXlHMC.js → ini-CzDC58iT.js} +1 -1
  118. package/dist/app/assets/{io-CyM_37VY.js → io-EYvfSOGz.js} +1 -1
  119. package/dist/app/assets/{j-DH8W8lNX.js → j-DQ-m5cST.js} +1 -1
  120. package/dist/app/assets/{java-CqyMp51C.js → java-DGtnBkuj.js} +1 -1
  121. package/dist/app/assets/{javadoc-D8u9HkgH.js → javadoc-D_6KOCdh.js} +1 -1
  122. package/dist/app/assets/{javadoclike-C1Lq0x6T.js → javadoclike-BfZFbprB.js} +1 -1
  123. package/dist/app/assets/{javascript-Dg-dDZaa.js → javascript-DhoCCYlZ.js} +1 -1
  124. package/dist/app/assets/{javastacktrace-tDCrTG88.js → javastacktrace-D_CCkzZ3.js} +1 -1
  125. package/dist/app/assets/{jexl-xmkYJPWN.js → jexl-B5MUpxiV.js} +1 -1
  126. package/dist/app/assets/{jolie-BxjtsVcI.js → jolie-pTtns16c.js} +1 -1
  127. package/dist/app/assets/{jq-t_D06nWO.js → jq-BZk7caZU.js} +1 -1
  128. package/dist/app/assets/{js-extras-BBCqHvzI.js → js-extras-CEKZLr9D.js} +1 -1
  129. package/dist/app/assets/{js-templates-Bg1HmpMK.js → js-templates-BAD5asYk.js} +1 -1
  130. package/dist/app/assets/{jsdoc-D80EteFV.js → jsdoc-DlTezzVM.js} +1 -1
  131. package/dist/app/assets/{json-C1i6SnC5.js → json-CgdtROPE.js} +1 -1
  132. package/dist/app/assets/{json5-CZOwksJ6.js → json5-CXabhHYd.js} +1 -1
  133. package/dist/app/assets/{jsonp-CMd_XDVf.js → jsonp-bYonZnU-.js} +1 -1
  134. package/dist/app/assets/{jsstacktrace-DGrGR7kW.js → jsstacktrace-e2eBRK44.js} +1 -1
  135. package/dist/app/assets/{jsx-CYygDQtl.js → jsx-Cb-qMyS3.js} +1 -1
  136. package/dist/app/assets/{julia-BR0LDBvi.js → julia-DpjeuNOI.js} +1 -1
  137. package/dist/app/assets/{keepalived-D44bjXvu.js → keepalived-jAOzG8mF.js} +1 -1
  138. package/dist/app/assets/{keyman-DzuVPclz.js → keyman-C9WZ6KZG.js} +1 -1
  139. package/dist/app/assets/{kotlin-DOwz6NW2.js → kotlin-BbXXjs0t.js} +1 -1
  140. package/dist/app/assets/{kumir-nVco3tEb.js → kumir-B8384nTm.js} +1 -1
  141. package/dist/app/assets/{kusto-CM18Mfrd.js → kusto-BU4K441X.js} +1 -1
  142. package/dist/app/assets/{latex-BROy64ts.js → latex-CMt2ZRtr.js} +1 -1
  143. package/dist/app/assets/{latte-BTs2KkCX.js → latte-BCxxJntr.js} +1 -1
  144. package/dist/app/assets/{less-BKd5Zil6.js → less-CRNsERfc.js} +1 -1
  145. package/dist/app/assets/{lilypond-COFiYhj_.js → lilypond-nvb6C3PV.js} +1 -1
  146. package/dist/app/assets/{liquid-CJguD-PK.js → liquid-9MIfddI7.js} +1 -1
  147. package/dist/app/assets/{lisp-D49Pqw-8.js → lisp-ByVtEPMH.js} +1 -1
  148. package/dist/app/assets/{livescript-Ik0P2d90.js → livescript-Bf0PGZwJ.js} +1 -1
  149. package/dist/app/assets/{llvm-D1Ep8sh7.js → llvm-DqaQoCZA.js} +1 -1
  150. package/dist/app/assets/{log-C3qpQ9j4.js → log-CC80NB2F.js} +1 -1
  151. package/dist/app/assets/{lolcode-DRI6_ZBz.js → lolcode-C0GkFgBd.js} +1 -1
  152. package/dist/app/assets/{lua-BmFhPjSF.js → lua-kxsSMaGC.js} +1 -1
  153. package/dist/app/assets/{magma-CU_SnAJn.js → magma-BATxfNka.js} +1 -1
  154. package/dist/app/assets/{makefile-Br-PJxmu.js → makefile-CihexU6Z.js} +1 -1
  155. package/dist/app/assets/{markdown-DNpDsBSv.js → markdown-uFawIavo.js} +1 -1
  156. package/dist/app/assets/{markup-eMO994fL.js → markup-B9RwwE_n.js} +1 -1
  157. package/dist/app/assets/{markup-templating-5gNayUbG.js → markup-templating-DpPGiUk3.js} +1 -1
  158. package/dist/app/assets/{matlab-GWJYeB2_.js → matlab-Bsk_RpH0.js} +1 -1
  159. package/dist/app/assets/{maxscript-CpFmD-Fw.js → maxscript-Ccu8U8QN.js} +1 -1
  160. package/dist/app/assets/{mel-BteQuMj1.js → mel-CROl3pa8.js} +1 -1
  161. package/dist/app/assets/{mermaid-CdUPJtSd.js → mermaid-DRdVc2Cn.js} +1 -1
  162. package/dist/app/assets/{mizar-MajG2Dpn.js → mizar-KzwABJ0Z.js} +1 -1
  163. package/dist/app/assets/{mongodb-DDvaIpbe.js → mongodb-CWNbxYFP.js} +1 -1
  164. package/dist/app/assets/{monkey-D2s8GYu3.js → monkey-BZt-2Sb5.js} +1 -1
  165. package/dist/app/assets/{moonscript-C3OwgoDV.js → moonscript-fVle9acG.js} +1 -1
  166. package/dist/app/assets/{n1ql-B-I37duX.js → n1ql-ClWLMlHs.js} +1 -1
  167. package/dist/app/assets/{n4js-mpVOXLsz.js → n4js-CA3SbShE.js} +1 -1
  168. package/dist/app/assets/{nand2tetris-hdl-D3LeJ4lR.js → nand2tetris-hdl-dzVdc52v.js} +1 -1
  169. package/dist/app/assets/{naniscript-BLmLFeRO.js → naniscript-maSDTTuo.js} +1 -1
  170. package/dist/app/assets/{nasm-Dab_l8tl.js → nasm-BQS-uHon.js} +1 -1
  171. package/dist/app/assets/{neon-Cfars9KI.js → neon-DPdItrWf.js} +1 -1
  172. package/dist/app/assets/{nevod-BZuwf-5p.js → nevod-sVk1hLxH.js} +1 -1
  173. package/dist/app/assets/{nginx-PFxBbEel.js → nginx-C7tYf2w2.js} +1 -1
  174. package/dist/app/assets/{nim-vCFXO-Nn.js → nim-fbtrG7C_.js} +1 -1
  175. package/dist/app/assets/{nix-BWxxabUK.js → nix-Buy428dA.js} +1 -1
  176. package/dist/app/assets/{nsis-BnGcOg9C.js → nsis-CQGjQ48c.js} +1 -1
  177. package/dist/app/assets/{objectivec-B65eHGmp.js → objectivec-Brf6c-V_.js} +1 -1
  178. package/dist/app/assets/{ocaml-DjvuAe7V.js → ocaml-OgsC4MHk.js} +1 -1
  179. package/dist/app/assets/{opencl-Durkzx8Q.js → opencl-k7hPBrJt.js} +1 -1
  180. package/dist/app/assets/{openqasm-D8fmu6EO.js → openqasm-Yz9VlZm-.js} +1 -1
  181. package/dist/app/assets/{oz-B_AoXlHI.js → oz-DQ3H5HWy.js} +1 -1
  182. package/dist/app/assets/{parigp-CELpLnU5.js → parigp-MmAcJz9_.js} +1 -1
  183. package/dist/app/assets/{parser-BRBykfrA.js → parser-CfZibnYB.js} +1 -1
  184. package/dist/app/assets/{pascal-Ce2bsA8F.js → pascal-CeFDfMiy.js} +1 -1
  185. package/dist/app/assets/{pascaligo-BOccKAjF.js → pascaligo-DOn1fFrt.js} +1 -1
  186. package/dist/app/assets/{pcaxis-_8AUMo8I.js → pcaxis-CD5JmjMC.js} +1 -1
  187. package/dist/app/assets/{peoplecode-B7vJSvNe.js → peoplecode-Ckiu-ilI.js} +1 -1
  188. package/dist/app/assets/{perl-B6IUwOJU.js → perl-tDcq5fSN.js} +1 -1
  189. package/dist/app/assets/{php-extras-CFCou6pE.js → php-extras-zEOvke17.js} +1 -1
  190. package/dist/app/assets/{php-DZZMsf5_.js → php-oHaciYF2.js} +1 -1
  191. package/dist/app/assets/{phpdoc-BihYeqX2.js → phpdoc-B1vHvslm.js} +1 -1
  192. package/dist/app/assets/{plsql-DkoJO_WC.js → plsql-Ch87xjEn.js} +1 -1
  193. package/dist/app/assets/{powerquery-C9BdK_n1.js → powerquery-BDIAtCtN.js} +1 -1
  194. package/dist/app/assets/{powershell-B6i5FlCn.js → powershell-C-S6IfFi.js} +1 -1
  195. package/dist/app/assets/{processing-7XippcCI.js → processing-2gozUB76.js} +1 -1
  196. package/dist/app/assets/{prolog-Pp-7CZ0i.js → prolog-lMiHe0Vo.js} +1 -1
  197. package/dist/app/assets/{promql-B6Hu2BCx.js → promql-gekiotPh.js} +1 -1
  198. package/dist/app/assets/{properties-BOn4P5Zq.js → properties-BCnPeXd3.js} +1 -1
  199. package/dist/app/assets/{protobuf-B3NNx_Xr.js → protobuf-CmHxA8A6.js} +1 -1
  200. package/dist/app/assets/{psl-CIRU9YYt.js → psl-BsM6yDje.js} +1 -1
  201. package/dist/app/assets/{pug-C7F7xuzy.js → pug-C5ga-iGl.js} +1 -1
  202. package/dist/app/assets/{puppet-B0u-JHH7.js → puppet-CwXGcjwC.js} +1 -1
  203. package/dist/app/assets/{pure-CTpP4_SN.js → pure-oTZGx7zA.js} +1 -1
  204. package/dist/app/assets/{purebasic-CRaKz7Bg.js → purebasic-BoIIqHLn.js} +1 -1
  205. package/dist/app/assets/{purescript-BwoF668l.js → purescript-ColZGyBA.js} +1 -1
  206. package/dist/app/assets/{q-DPdcJodp.js → q-_AOzBTNC.js} +1 -1
  207. package/dist/app/assets/{qml-DOG1bBnZ.js → qml-Y4GxXL9F.js} +1 -1
  208. package/dist/app/assets/{qore-Bl9DZz9p.js → qore-Rog2igo6.js} +1 -1
  209. package/dist/app/assets/{qsharp-D61ab9U0.js → qsharp-D1KxTRY4.js} +1 -1
  210. package/dist/app/assets/{r-BRGCy6GC.js → r-BCDUsPts.js} +1 -1
  211. package/dist/app/assets/{racket-DX1mUQtk.js → racket-CukmSqoT.js} +1 -1
  212. package/dist/app/assets/{reason-jGsz7TNy.js → reason-S_8m7rUG.js} +1 -1
  213. package/dist/app/assets/{regex-BgBGl-Po.js → regex-BnALhjyN.js} +1 -1
  214. package/dist/app/assets/{rego-DzMdKj2S.js → rego-CuCKqgk-.js} +1 -1
  215. package/dist/app/assets/{renpy-CZQbSS0W.js → renpy-BhMAlScI.js} +1 -1
  216. package/dist/app/assets/{rest-BlHXtJh-.js → rest-JTEvrdLi.js} +1 -1
  217. package/dist/app/assets/{rip-Cp8amRhg.js → rip-CICa93q3.js} +1 -1
  218. package/dist/app/assets/{roboconf-8dICkxq_.js → roboconf-BdRKPYKy.js} +1 -1
  219. package/dist/app/assets/{robotframework-CQBVnI1B.js → robotframework-D-X6Fl-3.js} +1 -1
  220. package/dist/app/assets/{ruby-BySgJbQh.js → ruby-BQG_eEqL.js} +1 -1
  221. package/dist/app/assets/{rust-DwFCpVnM.js → rust-DihtnD1m.js} +1 -1
  222. package/dist/app/assets/{sas-BVz4-dXi.js → sas-CeLyiEJA.js} +1 -1
  223. package/dist/app/assets/{sass-kF1eV1tc.js → sass-CmJaAe18.js} +1 -1
  224. package/dist/app/assets/{scala-BCd79KMC.js → scala-CMgdVByI.js} +1 -1
  225. package/dist/app/assets/{scheme-DGDH5UrN.js → scheme-CX8kVo96.js} +1 -1
  226. package/dist/app/assets/{scss-C3A6bKF2.js → scss-bvH93FWf.js} +1 -1
  227. package/dist/app/assets/{shell-session-Bt1ByUnn.js → shell-session-BPjDVp9C.js} +1 -1
  228. package/dist/app/assets/{smali-BG59gVAI.js → smali-Bi5SpKre.js} +1 -1
  229. package/dist/app/assets/{smalltalk-DeWMrHCy.js → smalltalk-DHX-eeK6.js} +1 -1
  230. package/dist/app/assets/{smarty-BlMz3kJS.js → smarty-CxQ8AxMT.js} +1 -1
  231. package/dist/app/assets/{sml-CWaZSpkP.js → sml-nmCFo89H.js} +1 -1
  232. package/dist/app/assets/{solidity-Bjo0yzXA.js → solidity-Bg5-3yGN.js} +1 -1
  233. package/dist/app/assets/{solution-file-D8MELZgB.js → solution-file-BcG2_is6.js} +1 -1
  234. package/dist/app/assets/{soy-BZNmPo5T.js → soy-D9crrWwM.js} +1 -1
  235. package/dist/app/assets/{sparql-W4BcW6wH.js → sparql-BoV3ViaN.js} +1 -1
  236. package/dist/app/assets/{splunk-spl-hrA6j7ir.js → splunk-spl-iUqPla9v.js} +1 -1
  237. package/dist/app/assets/{sqf-Buh6IqkS.js → sqf-DDdd2c_i.js} +1 -1
  238. package/dist/app/assets/{sql-XQlNmVmI.js → sql-CObsOh_L.js} +1 -1
  239. package/dist/app/assets/{squirrel-ogEthJ_u.js → squirrel-BmtzoAr_.js} +1 -1
  240. package/dist/app/assets/{stan-C3I9t6dB.js → stan-RVj4X6xA.js} +1 -1
  241. package/dist/app/assets/{stylus-awj24PQU.js → stylus-CzHM0ecP.js} +1 -1
  242. package/dist/app/assets/{swift-mDS-oIFf.js → swift-2YhZ_RcB.js} +1 -1
  243. package/dist/app/assets/{systemd-C2laI5tS.js → systemd-DvAu7VCG.js} +1 -1
  244. package/dist/app/assets/{t4-cs-C03LNWmj.js → t4-cs-CVHSw3Cu.js} +1 -1
  245. package/dist/app/assets/{t4-templating-BsqHjv_U.js → t4-templating-ChhR2RYl.js} +1 -1
  246. package/dist/app/assets/{t4-vb-CO8Pw53s.js → t4-vb-Dsk01KQw.js} +1 -1
  247. package/dist/app/assets/{tap-Do_BVzJ7.js → tap-aIeS4DsG.js} +1 -1
  248. package/dist/app/assets/{tcl-EmfIWHBm.js → tcl-P9oTYESX.js} +1 -1
  249. package/dist/app/assets/{textile-RGeNEtU0.js → textile-DhY9TS_-.js} +1 -1
  250. package/dist/app/assets/{toml-DOSAiG5P.js → toml-CtHwl0QH.js} +1 -1
  251. package/dist/app/assets/{tremor-C8teCYgc.js → tremor-BxMh-TKX.js} +1 -1
  252. package/dist/app/assets/{tt2-CZSbMCZy.js → tt2-afYdbub1.js} +1 -1
  253. package/dist/app/assets/{turtle-DFryR16s.js → turtle-y5PJxjPU.js} +1 -1
  254. package/dist/app/assets/{twig-y7WI1mGR.js → twig-DZ1DPIaM.js} +1 -1
  255. package/dist/app/assets/{typescript-DZIZH67S.js → typescript-Cq-FdKeg.js} +1 -1
  256. package/dist/app/assets/{typoscript-B5Pie--I.js → typoscript-CTti-Yx9.js} +1 -1
  257. package/dist/app/assets/{unrealscript-DEQuLPVx.js → unrealscript-Bl82YqF3.js} +1 -1
  258. package/dist/app/assets/{uorazor-C3fd8YVl.js → uorazor-BJ-I21sO.js} +1 -1
  259. package/dist/app/assets/{uri-i-FmRGl_.js → uri-CZIi2SUQ.js} +1 -1
  260. package/dist/app/assets/{v-DJ6LpC6A.js → v-HTvvwR8d.js} +1 -1
  261. package/dist/app/assets/{vala-BuGDftgP.js → vala-BBGFlZqr.js} +1 -1
  262. package/dist/app/assets/{vbnet-BnZaMO7X.js → vbnet-DiZ8kimu.js} +1 -1
  263. package/dist/app/assets/{velocity-WmSIATwx.js → velocity-C3WlAQvp.js} +1 -1
  264. package/dist/app/assets/{verilog-CAXR3v8A.js → verilog-_OqcpRr7.js} +1 -1
  265. package/dist/app/assets/{vhdl-5m-SQ1vR.js → vhdl-AtRpbypd.js} +1 -1
  266. package/dist/app/assets/{vim-CQxy_hpv.js → vim-CvY-Q13F.js} +1 -1
  267. package/dist/app/assets/{visual-basic-DUXEe4eb.js → visual-basic-DdwSdyGV.js} +1 -1
  268. package/dist/app/assets/{warpscript-Dn2sF1Na.js → warpscript-D17eNLg6.js} +1 -1
  269. package/dist/app/assets/{wasm-CNYCO55I.js → wasm-CkDZlciM.js} +1 -1
  270. package/dist/app/assets/{web-idl-qpTEzhMi.js → web-idl-C20W0YNO.js} +1 -1
  271. package/dist/app/assets/{wiki-IUIM-gLF.js → wiki--0ATyytX.js} +1 -1
  272. package/dist/app/assets/{wolfram-WHvqmd61.js → wolfram-FSDRfRAx.js} +1 -1
  273. package/dist/app/assets/{wren-DHDfXRyN.js → wren-AeiwVndk.js} +1 -1
  274. package/dist/app/assets/{xeora-BmALMX-C.js → xeora-CR8HdODY.js} +1 -1
  275. package/dist/app/assets/{xml-doc-DipNs41l.js → xml-doc-BvnuEiTK.js} +1 -1
  276. package/dist/app/assets/{xojo-Ch51-LqE.js → xojo-BzD_C6Vi.js} +1 -1
  277. package/dist/app/assets/{xquery-BkfTblI-.js → xquery-CcCpJGO9.js} +1 -1
  278. package/dist/app/assets/{yaml-DR3QJEOe.js → yaml-DhUT94_X.js} +1 -1
  279. package/dist/app/assets/{yang-BnYvEcuQ.js → yang-CxKCu7gZ.js} +1 -1
  280. package/dist/app/assets/{zig-6vTJYoFe.js → zig-BmaRG7vb.js} +1 -1
  281. package/dist/app/index.html +2 -2
  282. package/dist/index.cjs +114 -382
  283. package/dist/index.d.cts +9 -4
  284. package/dist/index.d.ts +9 -4
  285. package/dist/index.js +134 -381
  286. package/package.json +18 -17
  287. package/dist/app/assets/index-C3ZmJ6gF.css +0 -1
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // src/components/chat.tsx
2
2
  import * as React17 from "react";
3
+ import { FileText as FileText2, Pencil as Pencil3, X as X2 } from "lucide-react";
3
4
 
4
5
  // src/lib/utils.ts
5
6
  import { clsx } from "clsx";
@@ -66,6 +67,10 @@ function useParentMessenger({ onSetOptions } = {}) {
66
67
  useEffect(() => {
67
68
  parentOriginRef.current = getParentOrigin();
68
69
  }, []);
70
+ const onSetOptionsRef = useRef(onSetOptions);
71
+ useEffect(() => {
72
+ onSetOptionsRef.current = onSetOptions;
73
+ }, [onSetOptions]);
69
74
  useEffect(() => {
70
75
  if (!isParentAvailable) return;
71
76
  const sendResponse = (nonce, response, error) => {
@@ -98,8 +103,8 @@ function useParentMessenger({ onSetOptions } = {}) {
98
103
  return;
99
104
  }
100
105
  if (payload.type == "command" && payload.command === "onSetOptions") {
101
- if (onSetOptions) {
102
- onSetOptions(payload.data);
106
+ if (onSetOptionsRef.current) {
107
+ onSetOptionsRef.current(payload.data);
103
108
  }
104
109
  if (payload.nonce) {
105
110
  sendResponse(payload.nonce, { ok: true });
@@ -180,35 +185,72 @@ var useStreamContext = () => {
180
185
 
181
186
  // src/components/composer/ComposerMenu.tsx
182
187
  import * as React4 from "react";
188
+ import {
189
+ FileText,
190
+ Globe,
191
+ Images,
192
+ Lightbulb,
193
+ Paperclip,
194
+ Pencil,
195
+ Plus,
196
+ Search,
197
+ SlidersHorizontal,
198
+ Sparkles
199
+ } from "lucide-react";
183
200
 
184
201
  // src/components/ui/button.tsx
185
- import * as React2 from "react";
202
+ import "react";
203
+ import { cva } from "class-variance-authority";
204
+ import { Slot } from "@radix-ui/react-slot";
186
205
  import { jsx as jsx2 } from "react/jsx-runtime";
187
- var base = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 ring-offset-background";
188
- var variants = {
189
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
190
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
191
- ghost: "hover:bg-accent hover:text-accent-foreground"
192
- };
193
- var sizes = {
194
- default: "h-10 px-4 py-2",
195
- sm: "h-9 rounded-md px-3",
196
- icon: "h-10 w-10"
197
- };
198
- var Button = React2.forwardRef(
199
- ({ className, variant = "default", size = "default", type, ...props }, ref) => {
200
- return /* @__PURE__ */ jsx2(
201
- "button",
202
- {
203
- ref,
204
- type: type ?? "button",
205
- className: cn(base, variants[variant], sizes[size], className),
206
- ...props
206
+ var buttonVariants = cva(
207
+ "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none",
208
+ {
209
+ variants: {
210
+ variant: {
211
+ default: "bg-primary text-primary-foreground hover:bg-primary/80",
212
+ outline: "border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground shadow-xs",
213
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
214
+ ghost: "hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",
215
+ destructive: "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
216
+ link: "text-primary underline-offset-4 hover:underline"
217
+ },
218
+ size: {
219
+ default: "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
220
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
221
+ sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
222
+ lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
223
+ icon: "size-9",
224
+ "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
225
+ "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
226
+ "icon-lg": "size-10"
207
227
  }
208
- );
228
+ },
229
+ defaultVariants: {
230
+ variant: "default",
231
+ size: "default"
232
+ }
209
233
  }
210
234
  );
211
- Button.displayName = "Button";
235
+ function Button({
236
+ className,
237
+ variant = "default",
238
+ size = "default",
239
+ asChild = false,
240
+ ...props
241
+ }) {
242
+ const Comp = asChild ? Slot : "button";
243
+ return /* @__PURE__ */ jsx2(
244
+ Comp,
245
+ {
246
+ "data-slot": "button",
247
+ "data-variant": variant,
248
+ "data-size": size,
249
+ className: cn(buttonVariants({ variant, size, className })),
250
+ ...props
251
+ }
252
+ );
253
+ }
212
254
 
213
255
  // src/components/ui/popover.tsx
214
256
  import "react";
@@ -429,56 +471,18 @@ function useChatkitTranslation() {
429
471
  import { Fragment, jsx as jsx4, jsxs } from "react/jsx-runtime";
430
472
  function getIconComponent(icon) {
431
473
  const iconMap = {
432
- "plus": /* @__PURE__ */ jsx4("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx4("path", { d: "M5 12h14M12 5v14" }) }),
433
- "document": /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
434
- /* @__PURE__ */ jsx4("path", { d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" }),
435
- /* @__PURE__ */ jsx4("polyline", { points: "14 2 14 8 20 8" })
436
- ] }),
437
- "write": /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
438
- /* @__PURE__ */ jsx4("path", { d: "M12 20h9" }),
439
- /* @__PURE__ */ jsx4("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })
440
- ] }),
441
- "sparkle": /* @__PURE__ */ jsx4("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx4("path", { d: "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" }) }),
442
- "lightbulb": /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
443
- /* @__PURE__ */ jsx4("path", { d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" }),
444
- /* @__PURE__ */ jsx4("path", { d: "M9 18h6" }),
445
- /* @__PURE__ */ jsx4("path", { d: "M10 22h4" })
446
- ] }),
447
- "settings-slider": /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
448
- /* @__PURE__ */ jsx4("line", { x1: "4", x2: "4", y1: "21", y2: "14" }),
449
- /* @__PURE__ */ jsx4("line", { x1: "4", x2: "4", y1: "10", y2: "3" }),
450
- /* @__PURE__ */ jsx4("line", { x1: "12", x2: "12", y1: "21", y2: "12" }),
451
- /* @__PURE__ */ jsx4("line", { x1: "12", x2: "12", y1: "8", y2: "3" }),
452
- /* @__PURE__ */ jsx4("line", { x1: "20", x2: "20", y1: "21", y2: "16" }),
453
- /* @__PURE__ */ jsx4("line", { x1: "20", x2: "20", y1: "12", y2: "3" }),
454
- /* @__PURE__ */ jsx4("line", { x1: "2", x2: "6", y1: "14", y2: "14" }),
455
- /* @__PURE__ */ jsx4("line", { x1: "10", x2: "14", y1: "8", y2: "8" }),
456
- /* @__PURE__ */ jsx4("line", { x1: "18", x2: "22", y1: "16", y2: "16" })
457
- ] }),
458
- "search": /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
459
- /* @__PURE__ */ jsx4("circle", { cx: "11", cy: "11", r: "8" }),
460
- /* @__PURE__ */ jsx4("path", { d: "m21 21-4.3-4.3" })
461
- ] }),
462
- "globe": /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
463
- /* @__PURE__ */ jsx4("circle", { cx: "12", cy: "12", r: "10" }),
464
- /* @__PURE__ */ jsx4("line", { x1: "2", x2: "22", y1: "12", y2: "12" }),
465
- /* @__PURE__ */ jsx4("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
466
- ] }),
467
- "images": /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
468
- /* @__PURE__ */ jsx4("path", { d: "M18 22H4a2 2 0 0 1-2-2V6" }),
469
- /* @__PURE__ */ jsx4("path", { d: "m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18" }),
470
- /* @__PURE__ */ jsx4("circle", { cx: "12", cy: "8", r: "2" }),
471
- /* @__PURE__ */ jsx4("rect", { width: "16", height: "16", x: "6", y: "2", rx: "2" })
472
- ] })
474
+ "plus": /* @__PURE__ */ jsx4(Plus, { size: 16 }),
475
+ "document": /* @__PURE__ */ jsx4(FileText, { size: 16 }),
476
+ "write": /* @__PURE__ */ jsx4(Pencil, { size: 16 }),
477
+ "sparkle": /* @__PURE__ */ jsx4(Sparkles, { size: 16 }),
478
+ "lightbulb": /* @__PURE__ */ jsx4(Lightbulb, { size: 16 }),
479
+ "settings-slider": /* @__PURE__ */ jsx4(SlidersHorizontal, { size: 16 }),
480
+ "search": /* @__PURE__ */ jsx4(Search, { size: 16 }),
481
+ "globe": /* @__PURE__ */ jsx4(Globe, { size: 16 }),
482
+ "images": /* @__PURE__ */ jsx4(Images, { size: 16 })
473
483
  };
474
484
  return iconMap[icon] || iconMap["sparkle"];
475
485
  }
476
- function PaperclipIcon() {
477
- return /* @__PURE__ */ jsx4("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx4("path", { d: "m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48" }) });
478
- }
479
- function PlusIcon() {
480
- return /* @__PURE__ */ jsx4("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx4("path", { d: "M5 12h14M12 5v14" }) });
481
- }
482
486
  function ComposerMenu({
483
487
  composer,
484
488
  onAttachmentClick,
@@ -514,7 +518,7 @@ function ComposerMenu({
514
518
  open && "bg-muted"
515
519
  ),
516
520
  children: [
517
- /* @__PURE__ */ jsx4(PlusIcon, {}),
521
+ /* @__PURE__ */ jsx4(Plus, { size: 18 }),
518
522
  /* @__PURE__ */ jsx4("span", { className: "sr-only", children: t("composer.openMenu") })
519
523
  ]
520
524
  }
@@ -534,7 +538,7 @@ function ComposerMenu({
534
538
  onClick: handleAttachmentClick,
535
539
  className: "flex items-center gap-3 rounded-md px-3 py-2 text-sm hover:bg-muted transition-colors",
536
540
  children: [
537
- /* @__PURE__ */ jsx4("span", { className: "flex h-6 w-6 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsx4(PaperclipIcon, {}) }),
541
+ /* @__PURE__ */ jsx4("span", { className: "flex h-6 w-6 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsx4(Paperclip, { size: 16 }) }),
538
542
  /* @__PURE__ */ jsx4("span", { children: t("composer.addAttachment") })
539
543
  ]
540
544
  }
@@ -565,37 +569,8 @@ function ComposerMenu({
565
569
 
566
570
  // src/components/composer/SendButton.tsx
567
571
  import "react";
572
+ import { ArrowUp, Square } from "lucide-react";
568
573
  import { jsx as jsx5 } from "react/jsx-runtime";
569
- function ArrowUpIcon() {
570
- return /* @__PURE__ */ jsx5(
571
- "svg",
572
- {
573
- xmlns: "http://www.w3.org/2000/svg",
574
- width: "18",
575
- height: "18",
576
- viewBox: "0 0 24 24",
577
- fill: "none",
578
- stroke: "currentColor",
579
- strokeWidth: "2.5",
580
- strokeLinecap: "round",
581
- strokeLinejoin: "round",
582
- children: /* @__PURE__ */ jsx5("path", { d: "M12 19V5M5 12l7-7 7 7" })
583
- }
584
- );
585
- }
586
- function StopIcon() {
587
- return /* @__PURE__ */ jsx5(
588
- "svg",
589
- {
590
- xmlns: "http://www.w3.org/2000/svg",
591
- width: "14",
592
- height: "14",
593
- viewBox: "0 0 24 24",
594
- fill: "currentColor",
595
- children: /* @__PURE__ */ jsx5("rect", { x: "4", y: "4", width: "16", height: "16", rx: "2" })
596
- }
597
- );
598
- }
599
574
  function SendButton({
600
575
  disabled = false,
601
576
  isLoading = false,
@@ -610,13 +585,13 @@ function SendButton({
610
585
  type: "button",
611
586
  onClick: onStop,
612
587
  className: cn(
613
- "flex h-9 w-9 shrink-0 items-center justify-center rounded-full",
614
- "bg-foreground text-background",
588
+ "flex h-9 w-9 shrink-0 items-center justify-center rounded-full cursor-pointer",
589
+ "bg-primary text-background",
615
590
  "transition-transform duration-150 ease-out",
616
591
  "hover:scale-105 active:scale-95"
617
592
  ),
618
593
  "aria-label": stopLabel,
619
- children: /* @__PURE__ */ jsx5(StopIcon, {})
594
+ children: /* @__PURE__ */ jsx5(Square, { size: 14, fill: "currentColor", stroke: "currentColor", strokeWidth: 0 })
620
595
  }
621
596
  );
622
597
  }
@@ -626,20 +601,21 @@ function SendButton({
626
601
  type: "submit",
627
602
  disabled,
628
603
  className: cn(
629
- "flex h-9 w-9 shrink-0 items-center justify-center rounded-full",
630
- "bg-foreground text-background",
604
+ "flex h-9 w-9 shrink-0 items-center justify-center rounded-full cursor-pointer",
605
+ "bg-primary text-background",
631
606
  "transition-all duration-150 ease-out",
632
607
  "hover:scale-105 active:scale-95",
633
608
  "disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:scale-100"
634
609
  ),
635
610
  "aria-label": sendLabel,
636
- children: /* @__PURE__ */ jsx5(ArrowUpIcon, {})
611
+ children: /* @__PURE__ */ jsx5(ArrowUp, { size: 18, strokeWidth: 2.5 })
637
612
  }
638
613
  );
639
614
  }
640
615
 
641
616
  // src/components/history/HistorySidebar.tsx
642
617
  import * as React8 from "react";
618
+ import { History, MessageSquare, PlusCircle, Trash2 } from "lucide-react";
643
619
 
644
620
  // src/components/ui/scroll-area.tsx
645
621
  import * as React6 from "react";
@@ -678,6 +654,7 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
678
654
 
679
655
  // src/components/ui/sheet.tsx
680
656
  import "react";
657
+ import { X } from "lucide-react";
681
658
  import * as SheetPrimitive from "@radix-ui/react-dialog";
682
659
  import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
683
660
  function Sheet({ ...props }) {
@@ -731,21 +708,7 @@ function SheetContent({
731
708
  children: [
732
709
  children,
733
710
  /* @__PURE__ */ jsxs3(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
734
- /* @__PURE__ */ jsx7(
735
- "svg",
736
- {
737
- xmlns: "http://www.w3.org/2000/svg",
738
- width: "16",
739
- height: "16",
740
- viewBox: "0 0 24 24",
741
- fill: "none",
742
- stroke: "currentColor",
743
- strokeWidth: "2",
744
- strokeLinecap: "round",
745
- strokeLinejoin: "round",
746
- children: /* @__PURE__ */ jsx7("path", { d: "M18 6 6 18M6 6l12 12" })
747
- }
748
- ),
711
+ /* @__PURE__ */ jsx7(X, { size: 16 }),
749
712
  /* @__PURE__ */ jsx7("span", { className: "sr-only", children: t("sheet.close") })
750
713
  ] })
751
714
  ]
@@ -783,85 +746,6 @@ function SheetTitle({
783
746
 
784
747
  // src/components/history/HistorySidebar.tsx
785
748
  import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
786
- function HistoryIcon() {
787
- return /* @__PURE__ */ jsxs4(
788
- "svg",
789
- {
790
- xmlns: "http://www.w3.org/2000/svg",
791
- width: "18",
792
- height: "18",
793
- viewBox: "0 0 24 24",
794
- fill: "none",
795
- stroke: "currentColor",
796
- strokeWidth: "2",
797
- strokeLinecap: "round",
798
- strokeLinejoin: "round",
799
- children: [
800
- /* @__PURE__ */ jsx8("path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }),
801
- /* @__PURE__ */ jsx8("path", { d: "M3 3v5h5" }),
802
- /* @__PURE__ */ jsx8("path", { d: "M12 7v5l4 2" })
803
- ]
804
- }
805
- );
806
- }
807
- function PlusCircleIcon() {
808
- return /* @__PURE__ */ jsxs4(
809
- "svg",
810
- {
811
- xmlns: "http://www.w3.org/2000/svg",
812
- width: "16",
813
- height: "16",
814
- viewBox: "0 0 24 24",
815
- fill: "none",
816
- stroke: "currentColor",
817
- strokeWidth: "2",
818
- strokeLinecap: "round",
819
- strokeLinejoin: "round",
820
- children: [
821
- /* @__PURE__ */ jsx8("circle", { cx: "12", cy: "12", r: "10" }),
822
- /* @__PURE__ */ jsx8("path", { d: "M8 12h8M12 8v8" })
823
- ]
824
- }
825
- );
826
- }
827
- function MessageIcon() {
828
- return /* @__PURE__ */ jsx8(
829
- "svg",
830
- {
831
- xmlns: "http://www.w3.org/2000/svg",
832
- width: "16",
833
- height: "16",
834
- viewBox: "0 0 24 24",
835
- fill: "none",
836
- stroke: "currentColor",
837
- strokeWidth: "2",
838
- strokeLinecap: "round",
839
- strokeLinejoin: "round",
840
- children: /* @__PURE__ */ jsx8("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })
841
- }
842
- );
843
- }
844
- function TrashIcon() {
845
- return /* @__PURE__ */ jsxs4(
846
- "svg",
847
- {
848
- xmlns: "http://www.w3.org/2000/svg",
849
- width: "14",
850
- height: "14",
851
- viewBox: "0 0 24 24",
852
- fill: "none",
853
- stroke: "currentColor",
854
- strokeWidth: "2",
855
- strokeLinecap: "round",
856
- strokeLinejoin: "round",
857
- children: [
858
- /* @__PURE__ */ jsx8("path", { d: "M3 6h18" }),
859
- /* @__PURE__ */ jsx8("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }),
860
- /* @__PURE__ */ jsx8("path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" })
861
- ]
862
- }
863
- );
864
- }
865
749
  function HistorySidebar({
866
750
  conversations = [],
867
751
  currentConversationId,
@@ -888,9 +772,9 @@ function HistorySidebar({
888
772
  variant: "ghost",
889
773
  size: "icon",
890
774
  disabled,
891
- className: "h-8 w-8",
775
+ className: "h-8 w-8 cursor-pointer",
892
776
  children: [
893
- /* @__PURE__ */ jsx8(HistoryIcon, {}),
777
+ /* @__PURE__ */ jsx8(History, { size: 18 }),
894
778
  /* @__PURE__ */ jsx8("span", { className: "sr-only", children: t("history.conversationHistory") })
895
779
  ]
896
780
  }
@@ -904,7 +788,7 @@ function HistorySidebar({
904
788
  className: "w-full justify-start gap-2",
905
789
  variant: "secondary",
906
790
  children: [
907
- /* @__PURE__ */ jsx8(PlusCircleIcon, {}),
791
+ /* @__PURE__ */ jsx8(PlusCircle, { size: 16 }),
908
792
  t("history.newChat")
909
793
  ]
910
794
  }
@@ -919,7 +803,7 @@ function HistorySidebar({
919
803
  ),
920
804
  onClick: () => handleSelectConversation(conversation.id),
921
805
  children: [
922
- /* @__PURE__ */ jsx8("span", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx8(MessageIcon, {}) }),
806
+ /* @__PURE__ */ jsx8("span", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx8(MessageSquare, { size: 16 }) }),
923
807
  /* @__PURE__ */ jsx8("span", { className: "flex-1 truncate", children: conversation.title }),
924
808
  showDelete && onDeleteConversation && /* @__PURE__ */ jsx8(
925
809
  "button",
@@ -930,7 +814,7 @@ function HistorySidebar({
930
814
  onDeleteConversation(conversation.id);
931
815
  },
932
816
  className: "opacity-0 group-hover:opacity-100 p-1 rounded hover:bg-destructive/10 hover:text-destructive transition-all",
933
- children: /* @__PURE__ */ jsx8(TrashIcon, {})
817
+ children: /* @__PURE__ */ jsx8(Trash2, { size: 14 })
934
818
  }
935
819
  )
936
820
  ]
@@ -947,15 +831,15 @@ import "react";
947
831
  // src/components/ui/badge.tsx
948
832
  import * as React9 from "react";
949
833
  import { jsx as jsx9 } from "react/jsx-runtime";
950
- var base2 = "inline-flex items-center rounded-full border border-transparent px-2.5 py-0.5 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background";
951
- var variants2 = {
834
+ var base = "inline-flex items-center rounded-full border border-transparent px-2.5 py-0.5 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background";
835
+ var variants = {
952
836
  default: "bg-primary text-primary-foreground",
953
837
  secondary: "bg-secondary text-secondary-foreground",
954
838
  outline: "border-input text-foreground"
955
839
  };
956
840
  var Badge = React9.forwardRef(
957
841
  ({ className, variant = "default", ...props }, ref) => {
958
- return /* @__PURE__ */ jsx9("span", { ref, className: cn(base2, variants2[variant], className), ...props });
842
+ return /* @__PURE__ */ jsx9("span", { ref, className: cn(base, variants[variant], className), ...props });
959
843
  }
960
844
  );
961
845
  Badge.displayName = "Badge";
@@ -1124,7 +1008,7 @@ var SyntaxHighlighter = ({
1124
1008
  };
1125
1009
 
1126
1010
  // src/components/thread/tooltip-icon-button.tsx
1127
- import { forwardRef as forwardRef6 } from "react";
1011
+ import { forwardRef as forwardRef5 } from "react";
1128
1012
 
1129
1013
  // src/components/ui/tooltip.tsx
1130
1014
  import "react";
@@ -1191,7 +1075,7 @@ function TooltipContent({
1191
1075
 
1192
1076
  // src/components/thread/tooltip-icon-button.tsx
1193
1077
  import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
1194
- var TooltipIconButton = forwardRef6(({ children, tooltip, side = "bottom", className, ...rest }, ref) => {
1078
+ var TooltipIconButton = forwardRef5(({ children, tooltip, side = "bottom", className, ...rest }, ref) => {
1195
1079
  return /* @__PURE__ */ jsx14(TooltipProvider, { children: /* @__PURE__ */ jsxs6(Tooltip, { children: [
1196
1080
  /* @__PURE__ */ jsx14(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs6(
1197
1081
  Button,
@@ -1639,66 +1523,8 @@ function AssistantMessage({ message, className, isStreaming = false }) {
1639
1523
 
1640
1524
  // src/components/thread/MessageActions.tsx
1641
1525
  import * as React14 from "react";
1526
+ import { Check, Copy, RefreshCw } from "lucide-react";
1642
1527
  import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
1643
- function CopyIcon2() {
1644
- return /* @__PURE__ */ jsxs9(
1645
- "svg",
1646
- {
1647
- xmlns: "http://www.w3.org/2000/svg",
1648
- width: "14",
1649
- height: "14",
1650
- viewBox: "0 0 24 24",
1651
- fill: "none",
1652
- stroke: "currentColor",
1653
- strokeWidth: "2",
1654
- strokeLinecap: "round",
1655
- strokeLinejoin: "round",
1656
- children: [
1657
- /* @__PURE__ */ jsx18("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
1658
- /* @__PURE__ */ jsx18("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
1659
- ]
1660
- }
1661
- );
1662
- }
1663
- function CheckIcon2() {
1664
- return /* @__PURE__ */ jsx18(
1665
- "svg",
1666
- {
1667
- xmlns: "http://www.w3.org/2000/svg",
1668
- width: "14",
1669
- height: "14",
1670
- viewBox: "0 0 24 24",
1671
- fill: "none",
1672
- stroke: "currentColor",
1673
- strokeWidth: "2",
1674
- strokeLinecap: "round",
1675
- strokeLinejoin: "round",
1676
- children: /* @__PURE__ */ jsx18("path", { d: "M20 6 9 17l-5-5" })
1677
- }
1678
- );
1679
- }
1680
- function RetryIcon() {
1681
- return /* @__PURE__ */ jsxs9(
1682
- "svg",
1683
- {
1684
- xmlns: "http://www.w3.org/2000/svg",
1685
- width: "14",
1686
- height: "14",
1687
- viewBox: "0 0 24 24",
1688
- fill: "none",
1689
- stroke: "currentColor",
1690
- strokeWidth: "2",
1691
- strokeLinecap: "round",
1692
- strokeLinejoin: "round",
1693
- children: [
1694
- /* @__PURE__ */ jsx18("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }),
1695
- /* @__PURE__ */ jsx18("path", { d: "M21 3v5h-5" }),
1696
- /* @__PURE__ */ jsx18("path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }),
1697
- /* @__PURE__ */ jsx18("path", { d: "M8 16H3v5" })
1698
- ]
1699
- }
1700
- );
1701
- }
1702
1528
  function MessageActions({
1703
1529
  content,
1704
1530
  isAssistant = false,
@@ -1738,7 +1564,7 @@ function MessageActions({
1738
1564
  copied && "text-green-500"
1739
1565
  ),
1740
1566
  title: copied ? t("messageActions.copied") : t("messageActions.copy"),
1741
- children: copied ? /* @__PURE__ */ jsx18(CheckIcon2, {}) : /* @__PURE__ */ jsx18(CopyIcon2, {})
1567
+ children: copied ? /* @__PURE__ */ jsx18(Check, { size: 14 }) : /* @__PURE__ */ jsx18(Copy, { size: 14 })
1742
1568
  }
1743
1569
  ),
1744
1570
  isAssistant && onRetry && /* @__PURE__ */ jsx18(
@@ -1748,7 +1574,7 @@ function MessageActions({
1748
1574
  onClick: onRetry,
1749
1575
  className: "p-1.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",
1750
1576
  title: t("messageActions.regenerate"),
1751
- children: /* @__PURE__ */ jsx18(RetryIcon, {})
1577
+ children: /* @__PURE__ */ jsx18(RefreshCw, { size: 14 })
1752
1578
  }
1753
1579
  )
1754
1580
  ]
@@ -1758,42 +1584,29 @@ function MessageActions({
1758
1584
 
1759
1585
  // src/components/thread/StartScreen.tsx
1760
1586
  import "react";
1587
+ import {
1588
+ BookOpen,
1589
+ Compass,
1590
+ Globe as Globe2,
1591
+ HelpCircle,
1592
+ Lightbulb as Lightbulb2,
1593
+ Pencil as Pencil2,
1594
+ Search as Search2,
1595
+ Sparkles as Sparkles2,
1596
+ Zap
1597
+ } from "lucide-react";
1761
1598
  import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
1762
1599
  function getIconComponent2(icon) {
1763
1600
  const iconMap = {
1764
- "circle-question": /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
1765
- /* @__PURE__ */ jsx19("circle", { cx: "12", cy: "12", r: "10" }),
1766
- /* @__PURE__ */ jsx19("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
1767
- /* @__PURE__ */ jsx19("path", { d: "M12 17h.01" })
1768
- ] }),
1769
- "lightbulb": /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
1770
- /* @__PURE__ */ jsx19("path", { d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" }),
1771
- /* @__PURE__ */ jsx19("path", { d: "M9 18h6" }),
1772
- /* @__PURE__ */ jsx19("path", { d: "M10 22h4" })
1773
- ] }),
1774
- "sparkle": /* @__PURE__ */ jsx19("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx19("path", { d: "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" }) }),
1775
- "write": /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
1776
- /* @__PURE__ */ jsx19("path", { d: "M12 20h9" }),
1777
- /* @__PURE__ */ jsx19("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })
1778
- ] }),
1779
- "search": /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
1780
- /* @__PURE__ */ jsx19("circle", { cx: "11", cy: "11", r: "8" }),
1781
- /* @__PURE__ */ jsx19("path", { d: "m21 21-4.3-4.3" })
1782
- ] }),
1783
- "globe": /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
1784
- /* @__PURE__ */ jsx19("circle", { cx: "12", cy: "12", r: "10" }),
1785
- /* @__PURE__ */ jsx19("line", { x1: "2", x2: "22", y1: "12", y2: "12" }),
1786
- /* @__PURE__ */ jsx19("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
1787
- ] }),
1788
- "book-open": /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
1789
- /* @__PURE__ */ jsx19("path", { d: "M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z" }),
1790
- /* @__PURE__ */ jsx19("path", { d: "M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z" })
1791
- ] }),
1792
- "compass": /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
1793
- /* @__PURE__ */ jsx19("circle", { cx: "12", cy: "12", r: "10" }),
1794
- /* @__PURE__ */ jsx19("polygon", { points: "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76" })
1795
- ] }),
1796
- "bolt": /* @__PURE__ */ jsx19("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx19("path", { d: "M13 2 3 14h9l-1 8 10-12h-9l1-8z" }) })
1601
+ "circle-question": /* @__PURE__ */ jsx19(HelpCircle, { size: 20 }),
1602
+ "lightbulb": /* @__PURE__ */ jsx19(Lightbulb2, { size: 20 }),
1603
+ "sparkle": /* @__PURE__ */ jsx19(Sparkles2, { size: 20 }),
1604
+ "write": /* @__PURE__ */ jsx19(Pencil2, { size: 20 }),
1605
+ "search": /* @__PURE__ */ jsx19(Search2, { size: 20 }),
1606
+ "globe": /* @__PURE__ */ jsx19(Globe2, { size: 20 }),
1607
+ "book-open": /* @__PURE__ */ jsx19(BookOpen, { size: 20 }),
1608
+ "compass": /* @__PURE__ */ jsx19(Compass, { size: 20 }),
1609
+ "bolt": /* @__PURE__ */ jsx19(Zap, { size: 20 })
1797
1610
  };
1798
1611
  return icon ? iconMap[icon] || iconMap["sparkle"] : iconMap["sparkle"];
1799
1612
  }
@@ -1853,7 +1666,7 @@ var sortConversations = (conversations) => {
1853
1666
  });
1854
1667
  };
1855
1668
  function useThreads(limit = DEFAULT_LIMIT) {
1856
- const { client, threadId } = useStreamContext();
1669
+ const { client, threadId, assistantId, isReady } = useStreamContext();
1857
1670
  const [conversationsState, setConversationsState] = React16.useState([]);
1858
1671
  const [isLoading, setIsLoading] = React16.useState(false);
1859
1672
  const [error, setError] = React16.useState(null);
@@ -1868,6 +1681,7 @@ function useThreads(limit = DEFAULT_LIMIT) {
1868
1681
  setError(null);
1869
1682
  try {
1870
1683
  const { items } = await client.conversations.search({
1684
+ where: { xpertId: assistantId },
1871
1685
  limit,
1872
1686
  order: { updatedAt: "DESC" }
1873
1687
  });
@@ -1878,7 +1692,7 @@ function useThreads(limit = DEFAULT_LIMIT) {
1878
1692
  } finally {
1879
1693
  setIsLoading(false);
1880
1694
  }
1881
- }, [client, limit]);
1695
+ }, [client, limit, assistantId]);
1882
1696
  const createConversation = React16.useCallback(
1883
1697
  async (input) => {
1884
1698
  setError(null);
@@ -1911,9 +1725,11 @@ function useThreads(limit = DEFAULT_LIMIT) {
1911
1725
  [client]
1912
1726
  );
1913
1727
  React16.useEffect(() => {
1728
+ if (!isReady) return;
1914
1729
  void refreshConversations();
1915
- }, [refreshConversations]);
1730
+ }, [refreshConversations, isReady]);
1916
1731
  React16.useEffect(() => {
1732
+ if (!isReady) return;
1917
1733
  if (!threadId) return;
1918
1734
  if (conversationsState.some((item) => item.threadId === threadId)) return;
1919
1735
  void client.conversations.search({ where: { threadId }, limit: 1 }).then((result) => {
@@ -1922,7 +1738,7 @@ function useThreads(limit = DEFAULT_LIMIT) {
1922
1738
  }).catch((err) => {
1923
1739
  setError(err);
1924
1740
  });
1925
- }, [client, threadId, conversationsState, upsertConversation]);
1741
+ }, [client, threadId, conversationsState, upsertConversation, isReady]);
1926
1742
  const conversations = React16.useMemo(
1927
1743
  () => conversationsState.map((conversation) => toConversation(conversation)),
1928
1744
  [conversationsState]
@@ -2292,7 +2108,7 @@ function Chat({
2292
2108
  className
2293
2109
  ),
2294
2110
  children: [
2295
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between border-b bg-muted/30 px-6 py-4", children: [
2111
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between border-b bg-muted/30 px-6 py-2", children: [
2296
2112
  /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-3", children: [
2297
2113
  /* @__PURE__ */ jsx20("div", { className: "h-2 w-2 rounded-full bg-green-500" }),
2298
2114
  /* @__PURE__ */ jsxs11("div", { children: [
@@ -2308,30 +2124,13 @@ function Chat({
2308
2124
  onClick: handleNewConversation,
2309
2125
  disabled: missingConfig || stream.isLoading || isHistoryLoading,
2310
2126
  className: cn(
2311
- "flex h-9 w-9 items-center justify-center rounded-md",
2127
+ "flex h-8 w-8 cursor-pointer items-center justify-center rounded-md",
2312
2128
  "text-muted-foreground hover:text-foreground hover:bg-muted",
2313
2129
  "transition-colors duration-150",
2314
2130
  "disabled:opacity-50 disabled:cursor-not-allowed"
2315
2131
  ),
2316
2132
  title: t("history.newConversation"),
2317
- children: /* @__PURE__ */ jsxs11(
2318
- "svg",
2319
- {
2320
- xmlns: "http://www.w3.org/2000/svg",
2321
- width: "18",
2322
- height: "18",
2323
- viewBox: "0 0 24 24",
2324
- fill: "none",
2325
- stroke: "currentColor",
2326
- strokeWidth: "2",
2327
- strokeLinecap: "round",
2328
- strokeLinejoin: "round",
2329
- children: [
2330
- /* @__PURE__ */ jsx20("path", { d: "M12 20h9" }),
2331
- /* @__PURE__ */ jsx20("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })
2332
- ]
2333
- }
2334
- )
2133
+ children: /* @__PURE__ */ jsx20(Pencil3, { size: 16 })
2335
2134
  }
2336
2135
  ),
2337
2136
  /* @__PURE__ */ jsx20(
@@ -2446,25 +2245,7 @@ function Chat({
2446
2245
  {
2447
2246
  className: "flex items-center gap-2 rounded-md bg-muted px-2 py-1 text-sm",
2448
2247
  children: [
2449
- /* @__PURE__ */ jsxs11(
2450
- "svg",
2451
- {
2452
- xmlns: "http://www.w3.org/2000/svg",
2453
- width: "14",
2454
- height: "14",
2455
- viewBox: "0 0 24 24",
2456
- fill: "none",
2457
- stroke: "currentColor",
2458
- strokeWidth: "2",
2459
- strokeLinecap: "round",
2460
- strokeLinejoin: "round",
2461
- className: "text-muted-foreground",
2462
- children: [
2463
- /* @__PURE__ */ jsx20("path", { d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" }),
2464
- /* @__PURE__ */ jsx20("polyline", { points: "14 2 14 8 20 8" })
2465
- ]
2466
- }
2467
- ),
2248
+ /* @__PURE__ */ jsx20(FileText2, { size: 14, className: "text-muted-foreground" }),
2468
2249
  /* @__PURE__ */ jsx20("span", { className: "max-w-[120px] truncate", children: file.name }),
2469
2250
  /* @__PURE__ */ jsx20(
2470
2251
  "button",
@@ -2472,21 +2253,7 @@ function Chat({
2472
2253
  type: "button",
2473
2254
  onClick: () => handleRemoveAttachment(index),
2474
2255
  className: "ml-1 rounded-full p-0.5 hover:bg-muted-foreground/20",
2475
- children: /* @__PURE__ */ jsx20(
2476
- "svg",
2477
- {
2478
- xmlns: "http://www.w3.org/2000/svg",
2479
- width: "12",
2480
- height: "12",
2481
- viewBox: "0 0 24 24",
2482
- fill: "none",
2483
- stroke: "currentColor",
2484
- strokeWidth: "2",
2485
- strokeLinecap: "round",
2486
- strokeLinejoin: "round",
2487
- children: /* @__PURE__ */ jsx20("path", { d: "M18 6 6 18M6 6l12 12" })
2488
- }
2489
- )
2256
+ children: /* @__PURE__ */ jsx20(X2, { size: 12 })
2490
2257
  }
2491
2258
  )
2492
2259
  ]
@@ -2501,21 +2268,7 @@ function Chat({
2501
2268
  type: "button",
2502
2269
  onClick: () => setSelectedTool(null),
2503
2270
  className: "rounded-full p-0.5 text-muted-foreground hover:bg-muted",
2504
- children: /* @__PURE__ */ jsx20(
2505
- "svg",
2506
- {
2507
- xmlns: "http://www.w3.org/2000/svg",
2508
- width: "12",
2509
- height: "12",
2510
- viewBox: "0 0 24 24",
2511
- fill: "none",
2512
- stroke: "currentColor",
2513
- strokeWidth: "2",
2514
- strokeLinecap: "round",
2515
- strokeLinejoin: "round",
2516
- children: /* @__PURE__ */ jsx20("path", { d: "M18 6 6 18M6 6l12 12" })
2517
- }
2518
- )
2271
+ children: /* @__PURE__ */ jsx20(X2, { size: 12 })
2519
2272
  }
2520
2273
  )
2521
2274
  ] }),