@xpert-ai/chatkit-ui 0.5.3 → 0.5.5

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 (339) hide show
  1. package/dist/app/assets/{_baseUniq-ChT9Qo4e.js → _baseUniq-BMCqWfgA.js} +1 -1
  2. package/dist/app/assets/{abap-Ce7DiJV3.js → abap-BITk3Jt_.js} +1 -1
  3. package/dist/app/assets/{abnf-BVHFzq1y.js → abnf-BvC3dC08.js} +1 -1
  4. package/dist/app/assets/{actionscript-b1N6pm-O.js → actionscript-crsAUb88.js} +1 -1
  5. package/dist/app/assets/{ada-rBXyByh8.js → ada-C5_oTrxY.js} +1 -1
  6. package/dist/app/assets/{agda-BBQB7lJp.js → agda-BsGxYoSi.js} +1 -1
  7. package/dist/app/assets/{al-Bo-88aPW.js → al-Lgs1uvQq.js} +1 -1
  8. package/dist/app/assets/{antlr4-BP25W3T7.js → antlr4-DY_QkyMs.js} +1 -1
  9. package/dist/app/assets/{apacheconf-hxzhJkXa.js → apacheconf-DgiDqboI.js} +1 -1
  10. package/dist/app/assets/{apex-B9XGHTVl.js → apex-kNnLe_NT.js} +1 -1
  11. package/dist/app/assets/{apl-CnE-JBL6.js → apl-BfmtMaij.js} +1 -1
  12. package/dist/app/assets/{applescript-BGxq2QF0.js → applescript-C4XJsKdP.js} +1 -1
  13. package/dist/app/assets/{aql-KrbZMJlr.js → aql-DYrVSBR5.js} +1 -1
  14. package/dist/app/assets/{arc-BmJ5F6oU.js → arc-CzQ3zvn7.js} +1 -1
  15. package/dist/app/assets/{architectureDiagram-Q4EWVU46-Dz1_Ibzx.js → architectureDiagram-Q4EWVU46-DIQCnrEl.js} +1 -1
  16. package/dist/app/assets/{arduino-BrA3jTJh.js → arduino-D5wp_Ytj.js} +1 -1
  17. package/dist/app/assets/{arff-O0GaAEXp.js → arff-D4Squ5Th.js} +1 -1
  18. package/dist/app/assets/{asciidoc-ClkiMNF8.js → asciidoc-C62k_z5u.js} +1 -1
  19. package/dist/app/assets/{asm6502-5bKj4vQ6.js → asm6502-BHpO2XiQ.js} +1 -1
  20. package/dist/app/assets/{asmatmel-DgpgDfTH.js → asmatmel-BqsyeDBx.js} +1 -1
  21. package/dist/app/assets/{aspnet-DIULsgBh.js → aspnet--LeuGZEu.js} +1 -1
  22. package/dist/app/assets/{autohotkey-DPq46f5T.js → autohotkey-CbOtA9Zr.js} +1 -1
  23. package/dist/app/assets/{autoit-DDnxI--a.js → autoit-DURAQtEN.js} +1 -1
  24. package/dist/app/assets/{avisynth-C1Lt9ROp.js → avisynth-DUr0LV7a.js} +1 -1
  25. package/dist/app/assets/{avro-idl-CGvQ4UxL.js → avro-idl-ghHqoAQi.js} +1 -1
  26. package/dist/app/assets/{bash-D8eqCsZ8.js → bash-BqcMimxs.js} +1 -1
  27. package/dist/app/assets/{basic-DrODtqCb.js → basic-PorE3PYu.js} +1 -1
  28. package/dist/app/assets/{batch-DqeGqoQZ.js → batch-XayYK11A.js} +1 -1
  29. package/dist/app/assets/{bbcode-CY9lX15S.js → bbcode-Dg5vgcil.js} +1 -1
  30. package/dist/app/assets/{bicep-BDv89DRM.js → bicep-xul0Z5k3.js} +1 -1
  31. package/dist/app/assets/{birb-DgNPr1Tg.js → birb-CNI54ftA.js} +1 -1
  32. package/dist/app/assets/{bison-BH6C31Lr.js → bison-VidC1SJ-.js} +1 -1
  33. package/dist/app/assets/{blockDiagram-DXYQGD6D-BizaVLYu.js → blockDiagram-DXYQGD6D-CDJbm4s2.js} +1 -1
  34. package/dist/app/assets/{bnf-BBDWrGyG.js → bnf-fedNuAF3.js} +1 -1
  35. package/dist/app/assets/{brainfuck-DhaNdGJl.js → brainfuck-B9YdJo2v.js} +1 -1
  36. package/dist/app/assets/{brightscript-DiGiUax0.js → brightscript-Bhbx-Sc0.js} +1 -1
  37. package/dist/app/assets/{bro-DZY9XGEu.js → bro-DvpaWDcI.js} +1 -1
  38. package/dist/app/assets/{bsl-W7fV4TQH.js → bsl-7xDnStwL.js} +1 -1
  39. package/dist/app/assets/{c-CkCwgvhy.js → c-Dvi_aHwU.js} +1 -1
  40. package/dist/app/assets/{c4Diagram-AHTNJAMY-0Cj5K2_S.js → c4Diagram-AHTNJAMY-CvUdVGiB.js} +1 -1
  41. package/dist/app/assets/{cfscript-CPFnj1HR.js → cfscript-wSwhUShj.js} +1 -1
  42. package/dist/app/assets/{chaiscript-RQ2qKbDX.js → chaiscript-B0gQwbq3.js} +1 -1
  43. package/dist/app/assets/channel-CMDLhUtX.js +1 -0
  44. package/dist/app/assets/{chunk-4BX2VUAB-jYTZLj5e.js → chunk-4BX2VUAB-EfN0tlBd.js} +1 -1
  45. package/dist/app/assets/{chunk-4TB4RGXK-59Kj6DwN.js → chunk-4TB4RGXK-Cl-SDjy-.js} +1 -1
  46. package/dist/app/assets/{chunk-55IACEB6-M7fxqf0U.js → chunk-55IACEB6-fB-UIiXE.js} +1 -1
  47. package/dist/app/assets/{chunk-EDXVE4YY-Bk0s3eDs.js → chunk-EDXVE4YY-CVsk0dZ_.js} +1 -1
  48. package/dist/app/assets/{chunk-FMBD7UC4-DHgDQnYu.js → chunk-FMBD7UC4-BuzWm6Z7.js} +1 -1
  49. package/dist/app/assets/{chunk-OYMX7WX6-DId-EsyC.js → chunk-OYMX7WX6-BE_YToGo.js} +1 -1
  50. package/dist/app/assets/{chunk-QZHKN3VN-DAUAP7IC.js → chunk-QZHKN3VN-BnEL4AxW.js} +1 -1
  51. package/dist/app/assets/{chunk-YZCP3GAM-BsCgIURb.js → chunk-YZCP3GAM-Dmk5QjH8.js} +1 -1
  52. package/dist/app/assets/{cil-BB0yck4I.js → cil-CQxnSJ9E.js} +1 -1
  53. package/dist/app/assets/classDiagram-6PBFFD2Q-BWbVx6v3.js +1 -0
  54. package/dist/app/assets/classDiagram-v2-HSJHXN6E-BWbVx6v3.js +1 -0
  55. package/dist/app/assets/{clike-DIAL6hbW.js → clike-CP83ighl.js} +1 -1
  56. package/dist/app/assets/{clojure-CFCnhIDV.js → clojure-VWCUZ5WZ.js} +1 -1
  57. package/dist/app/assets/clone-DaFwzQ-L.js +1 -0
  58. package/dist/app/assets/{cmake-BJ7M3VLa.js → cmake-Dc7R1o_M.js} +1 -1
  59. package/dist/app/assets/{cobol-CHafHfaf.js → cobol-Ce1J2pqN.js} +1 -1
  60. package/dist/app/assets/{coffeescript-D-myNsVo.js → coffeescript-CeEAB534.js} +1 -1
  61. package/dist/app/assets/{concurnas-CMSXd2bi.js → concurnas-Bh4-abc-.js} +1 -1
  62. package/dist/app/assets/{coq-2WMbyt5L.js → coq-C_H8AuNe.js} +1 -1
  63. package/dist/app/assets/{core-D_mcgtst.js → core-DwGdMA-y.js} +1 -1
  64. package/dist/app/assets/{cose-bilkent-S5V4N54A-CFYSME8q.js → cose-bilkent-S5V4N54A-BrXwWxov.js} +1 -1
  65. package/dist/app/assets/{cpp-BFYZXt4W.js → cpp-DpPKPdHS.js} +1 -1
  66. package/dist/app/assets/{crystal-YbXf5NLu.js → crystal-Fuhe2OE6.js} +1 -1
  67. package/dist/app/assets/{csharp-CrpatUEr.js → csharp-wpCE0nEo.js} +1 -1
  68. package/dist/app/assets/{cshtml-DdDPOFL2.js → cshtml-F-xmChtp.js} +1 -1
  69. package/dist/app/assets/{csp-BuLrc-qp.js → csp-CxC5jxHW.js} +1 -1
  70. package/dist/app/assets/{css-BP2xEqtJ.js → css-L_F4d51L.js} +1 -1
  71. package/dist/app/assets/{css-extras-BUdZfgaW.js → css-extras-BwZnZEu1.js} +1 -1
  72. package/dist/app/assets/{csv-CxUvYF3W.js → csv-C74oCGIa.js} +1 -1
  73. package/dist/app/assets/{cypher-dyjlMPfG.js → cypher-COyWv3va.js} +1 -1
  74. package/dist/app/assets/{d-CAXNQWlH.js → d-B65TnuTe.js} +1 -1
  75. package/dist/app/assets/{dagre-KV5264BT-B9TaDHlk.js → dagre-KV5264BT-ChgLBE-T.js} +1 -1
  76. package/dist/app/assets/{dart-J8aLCmN6.js → dart-CpDUfitf.js} +1 -1
  77. package/dist/app/assets/{dataweave-DF9ImZ3N.js → dataweave-CX7Qa1n1.js} +1 -1
  78. package/dist/app/assets/{dax-BT2AHpyf.js → dax-ZkNL61zw.js} +1 -1
  79. package/dist/app/assets/{dhall-Dg1Tevpu.js → dhall-DNjyksqY.js} +1 -1
  80. package/dist/app/assets/{diagram-5BDNPKRD-WO42pTkv.js → diagram-5BDNPKRD-BcPwD8Kj.js} +1 -1
  81. package/dist/app/assets/{diagram-G4DWMVQ6-7TQ5HPZE.js → diagram-G4DWMVQ6-LnY4PFsc.js} +1 -1
  82. package/dist/app/assets/{diagram-MMDJMWI5-7RdXMs-Z.js → diagram-MMDJMWI5-aa8Vhu2F.js} +1 -1
  83. package/dist/app/assets/{diagram-TYMM5635-WTtOoqLh.js → diagram-TYMM5635-Jz5pzpKI.js} +1 -1
  84. package/dist/app/assets/{diff-CqmM9jMk.js → diff-WVoPKUmv.js} +1 -1
  85. package/dist/app/assets/{django-BV_Txwli.js → django-DI3sOVdK.js} +1 -1
  86. package/dist/app/assets/{dns-zone-file-chHftqfl.js → dns-zone-file-B1W7kh1x.js} +1 -1
  87. package/dist/app/assets/{docker-CP5sCvPc.js → docker-hRBkoPjj.js} +1 -1
  88. package/dist/app/assets/{dot-CslM1TDF.js → dot-Dv1MABF9.js} +1 -1
  89. package/dist/app/assets/{ebnf-D2Ek46XJ.js → ebnf-C30PMC4p.js} +1 -1
  90. package/dist/app/assets/{editorconfig-Ci8FK60B.js → editorconfig-DAr3YnEC.js} +1 -1
  91. package/dist/app/assets/{eiffel-Cwub3-yA.js → eiffel-CiFHBF_B.js} +1 -1
  92. package/dist/app/assets/{ejs-C6kPczUt.js → ejs-DqKhaaVB.js} +1 -1
  93. package/dist/app/assets/{elixir-DC01nBAk.js → elixir-CCSuSI4O.js} +1 -1
  94. package/dist/app/assets/{elm-ng29Uzm3.js → elm-DR4HIlv8.js} +1 -1
  95. package/dist/app/assets/{erDiagram-SMLLAGMA-CSu1K2TE.js → erDiagram-SMLLAGMA-Dl0knKmC.js} +1 -1
  96. package/dist/app/assets/{erb-BmVXUkNt.js → erb-CzDVBAbw.js} +1 -1
  97. package/dist/app/assets/{erlang-DX8lZuNY.js → erlang-DVgBLqEJ.js} +1 -1
  98. package/dist/app/assets/{etlua-DF9WPqFy.js → etlua-DF61eWL_.js} +1 -1
  99. package/dist/app/assets/{excel-formula-DHOUaKKc.js → excel-formula-BjOYKoXw.js} +1 -1
  100. package/dist/app/assets/{factor-BBsagI82.js → factor-BYlgtT88.js} +1 -1
  101. package/dist/app/assets/{false-BwLYv3CT.js → false-VpD50GQd.js} +1 -1
  102. package/dist/app/assets/{firestore-security-rules-CsYkwF2L.js → firestore-security-rules-CXjNgiqw.js} +1 -1
  103. package/dist/app/assets/{flow-fPHEMMRe.js → flow-UCBwYj4g.js} +1 -1
  104. package/dist/app/assets/{flowDiagram-DWJPFMVM-CjMcT8VF.js → flowDiagram-DWJPFMVM-DLqa5bCT.js} +1 -1
  105. package/dist/app/assets/{fortran-BlFC22wE.js → fortran-B-VF6DSD.js} +1 -1
  106. package/dist/app/assets/{fsharp-qPaHfboo.js → fsharp-Cfa53HRV.js} +1 -1
  107. package/dist/app/assets/{ftl-Dez07P0T.js → ftl-S9XnBYZE.js} +1 -1
  108. package/dist/app/assets/{ganttDiagram-T4ZO3ILL-BiQxSqt_.js → ganttDiagram-T4ZO3ILL-xkcpESb-.js} +1 -1
  109. package/dist/app/assets/{gap-DJplhPXp.js → gap-DxWyiJyd.js} +1 -1
  110. package/dist/app/assets/{gcode-Dg1b5k4P.js → gcode-I3TnotdP.js} +1 -1
  111. package/dist/app/assets/{gdscript-BVrkBC3R.js → gdscript-DwmqcMfp.js} +1 -1
  112. package/dist/app/assets/{gedcom-CrxzyI_t.js → gedcom-wk25u4tk.js} +1 -1
  113. package/dist/app/assets/{gherkin-XsNIfB3o.js → gherkin-CmyQpRR3.js} +1 -1
  114. package/dist/app/assets/{git-sYqvjDtZ.js → git-2fPv4icm.js} +1 -1
  115. package/dist/app/assets/{gitGraphDiagram-UUTBAWPF-BLuiUQC4.js → gitGraphDiagram-UUTBAWPF-BWO5yamZ.js} +1 -1
  116. package/dist/app/assets/{glsl-DBAWeWvj.js → glsl-DhdeRPUr.js} +1 -1
  117. package/dist/app/assets/{gml-D9dDabjR.js → gml-C9Rp-vdi.js} +1 -1
  118. package/dist/app/assets/{gn-C_VSOkBi.js → gn-sdpsdb_1.js} +1 -1
  119. package/dist/app/assets/{go-WIUDW1GS.js → go-cX_tr1iE.js} +1 -1
  120. package/dist/app/assets/{go-module-C_q6u5lV.js → go-module-BEq1Vgmm.js} +1 -1
  121. package/dist/app/assets/{graph-CQZE41Xl.js → graph-aH3Tj20-.js} +1 -1
  122. package/dist/app/assets/{graphql-CCzYeA7K.js → graphql-US2hovIL.js} +1 -1
  123. package/dist/app/assets/{groovy-Dcndc-8V.js → groovy-D-RU_8Ov.js} +1 -1
  124. package/dist/app/assets/{haml-DAdQxEtZ.js → haml-D6DPh9Fz.js} +1 -1
  125. package/dist/app/assets/{handlebars-DdcZ78iT.js → handlebars-DbUAZVat.js} +1 -1
  126. package/dist/app/assets/{haskell-CL_s7J5t.js → haskell-HL-nThgK.js} +1 -1
  127. package/dist/app/assets/{haxe-D6kxxTPa.js → haxe-DwGFr-vT.js} +1 -1
  128. package/dist/app/assets/{hcl-v_Duxzy7.js → hcl-Bx2jsjMJ.js} +1 -1
  129. package/dist/app/assets/{hlsl-DvMfgEKG.js → hlsl-BtPVfKcX.js} +1 -1
  130. package/dist/app/assets/{hoon-DtG7k-4U.js → hoon-DpKpFgdR.js} +1 -1
  131. package/dist/app/assets/{hpkp-j-ypNrrU.js → hpkp-C3IPUrYT.js} +1 -1
  132. package/dist/app/assets/{hsts-ukPmjqGZ.js → hsts-BXUSL0Uw.js} +1 -1
  133. package/dist/app/assets/{http-BMxLX5wW.js → http-DWQae60m.js} +1 -1
  134. package/dist/app/assets/{ichigojam-CKMzeTbi.js → ichigojam-IE3fX27V.js} +1 -1
  135. package/dist/app/assets/{icon-BI_YktC6.js → icon-DcQB3JhE.js} +1 -1
  136. package/dist/app/assets/{icu-message-format-CKWPiv_u.js → icu-message-format-Blb7heef.js} +1 -1
  137. package/dist/app/assets/{idris-CEoG17tH.js → idris-Dd5-rtkp.js} +1 -1
  138. package/dist/app/assets/{iecst-BPgsr1sk.js → iecst-gy7LbUFO.js} +1 -1
  139. package/dist/app/assets/{ignore-D3mP-IeM.js → ignore-CyYyW5-g.js} +1 -1
  140. package/dist/app/assets/index-CXm_XByQ.css +1 -0
  141. package/dist/app/assets/index-IOhU4-W6.js +791 -0
  142. package/dist/app/assets/{infoDiagram-42DDH7IO-CXt53QRt.js → infoDiagram-42DDH7IO-fROPG8_1.js} +1 -1
  143. package/dist/app/assets/{inform7-BRNaKTTS.js → inform7-F6Ip2hlp.js} +1 -1
  144. package/dist/app/assets/{ini-Co63A9KY.js → ini--3blLJvm.js} +1 -1
  145. package/dist/app/assets/{io-Y6dFSwsb.js → io-0G865U20.js} +1 -1
  146. package/dist/app/assets/{ishikawaDiagram-UXIWVN3A-BtfknNuf.js → ishikawaDiagram-UXIWVN3A-seYp8a9Z.js} +1 -1
  147. package/dist/app/assets/{j-Cpt-bjtI.js → j-DhayNq9O.js} +1 -1
  148. package/dist/app/assets/{java-OV7NSS4M.js → java-B6j2ClTV.js} +1 -1
  149. package/dist/app/assets/{javadoc-1xPzWdCF.js → javadoc-hoGv-qgI.js} +1 -1
  150. package/dist/app/assets/{javadoclike-BcMUnjFK.js → javadoclike-yqygIGpT.js} +1 -1
  151. package/dist/app/assets/{javascript-CqCV1NzJ.js → javascript-CNZ9X09R.js} +1 -1
  152. package/dist/app/assets/{javastacktrace-BUFSCM4B.js → javastacktrace-CKG9auUr.js} +1 -1
  153. package/dist/app/assets/{jexl-CCwB7QfC.js → jexl-CR8OmrfU.js} +1 -1
  154. package/dist/app/assets/{jolie-CI7ZKpQW.js → jolie-fS6VUF2C.js} +1 -1
  155. package/dist/app/assets/{journeyDiagram-VCZTEJTY-CtPUPowP.js → journeyDiagram-VCZTEJTY-ge9fmUsx.js} +1 -1
  156. package/dist/app/assets/{jq-Cat52Ckh.js → jq-Dd5vzlZ2.js} +1 -1
  157. package/dist/app/assets/{js-extras-BW8AY5FQ.js → js-extras-CEjE_sw9.js} +1 -1
  158. package/dist/app/assets/{js-templates-pTyGClWG.js → js-templates-Bs_q-mFW.js} +1 -1
  159. package/dist/app/assets/{jsdoc-C5dISiXN.js → jsdoc-CmRWGQBg.js} +1 -1
  160. package/dist/app/assets/{json-BV_ZLpYa.js → json-B3WtMqxE.js} +1 -1
  161. package/dist/app/assets/{json5-CaLO3fQi.js → json5-B35VDHIE.js} +1 -1
  162. package/dist/app/assets/{jsonp-DsV6uVRp.js → jsonp-BSAuIBIk.js} +1 -1
  163. package/dist/app/assets/{jsstacktrace-CcXrnL18.js → jsstacktrace-BVnszM9n.js} +1 -1
  164. package/dist/app/assets/{jsx-D59JtHOy.js → jsx-Ulk1xmaf.js} +1 -1
  165. package/dist/app/assets/{julia-CclEoB-n.js → julia-wAegROxA.js} +1 -1
  166. package/dist/app/assets/{kanban-definition-6JOO6SKY-DAwZttRD.js → kanban-definition-6JOO6SKY-Dt82KiI-.js} +1 -1
  167. package/dist/app/assets/{keepalived-CFWxCW-H.js → keepalived-D-8Fkb5_.js} +1 -1
  168. package/dist/app/assets/{keyman-BVv9EQYe.js → keyman-CMwETd_q.js} +1 -1
  169. package/dist/app/assets/{kotlin-CslW8NWU.js → kotlin-Dvdn8vfk.js} +1 -1
  170. package/dist/app/assets/{kumir-DTu9BtLG.js → kumir-Cw3eJErW.js} +1 -1
  171. package/dist/app/assets/{kusto-CtqoVlVe.js → kusto-B50-ACHb.js} +1 -1
  172. package/dist/app/assets/{latex-18RzpOnX.js → latex-B32EHvXj.js} +1 -1
  173. package/dist/app/assets/{latte-BLDf5fvr.js → latte-24U9Gwk2.js} +1 -1
  174. package/dist/app/assets/{layout-kfH7ie9s.js → layout-B42p62_a.js} +1 -1
  175. package/dist/app/assets/{less-CBsIVmwy.js → less-BC5uCSSJ.js} +1 -1
  176. package/dist/app/assets/{lilypond-Diikt1xh.js → lilypond-DA9ijLUg.js} +1 -1
  177. package/dist/app/assets/{linear-CpWdLpIW.js → linear-D7k5TriK.js} +1 -1
  178. package/dist/app/assets/{liquid-CYsFgJAn.js → liquid-CMWpAUrU.js} +1 -1
  179. package/dist/app/assets/{lisp-D5IX2IMS.js → lisp-uq_t7VQ0.js} +1 -1
  180. package/dist/app/assets/{livescript-CFLCkEiE.js → livescript-rXe_0rnu.js} +1 -1
  181. package/dist/app/assets/{llvm-CHtlwgXC.js → llvm-CFpKeGcG.js} +1 -1
  182. package/dist/app/assets/{log-Bb0q4gWy.js → log-CrFg7_GJ.js} +1 -1
  183. package/dist/app/assets/{lolcode-DcN_7oO2.js → lolcode-5t6AdMcG.js} +1 -1
  184. package/dist/app/assets/{lua-t7DZ5tkJ.js → lua-DJH8NYbV.js} +1 -1
  185. package/dist/app/assets/{magma-72K2RrWH.js → magma-D8t_fqVr.js} +1 -1
  186. package/dist/app/assets/{makefile-DvrABWRt.js → makefile-xeiRxxOf.js} +1 -1
  187. package/dist/app/assets/{markdown-CF5Lb7qd.js → markdown-DF3vOSCM.js} +1 -1
  188. package/dist/app/assets/{markup-CrH5Qer4.js → markup-bE2X4wC8.js} +1 -1
  189. package/dist/app/assets/{markup-templating-BqtThcnw.js → markup-templating-DED2gOIo.js} +1 -1
  190. package/dist/app/assets/{matlab-Cl5LNbiN.js → matlab-B7X6-kVy.js} +1 -1
  191. package/dist/app/assets/{maxscript-DryW9P8J.js → maxscript-DSdYVbA7.js} +1 -1
  192. package/dist/app/assets/{mel-C4tZH7tA.js → mel-BO4WVBll.js} +1 -1
  193. package/dist/app/assets/{mermaid-CMyXjaN5.js → mermaid-BP4GUY4H.js} +1 -1
  194. package/dist/app/assets/{min-BSLr1xjt.js → min-V1PQNI6q.js} +1 -1
  195. package/dist/app/assets/{mindmap-definition-QFDTVHPH-D_rZAJl5.js → mindmap-definition-QFDTVHPH-CZ6ona8k.js} +1 -1
  196. package/dist/app/assets/{mizar-Hb1RtA6I.js → mizar-FWa_raHf.js} +1 -1
  197. package/dist/app/assets/{mongodb-C9eHJ0I9.js → mongodb-DD8_dDht.js} +1 -1
  198. package/dist/app/assets/{monkey-5znuwlAY.js → monkey-Dt0m2Zb5.js} +1 -1
  199. package/dist/app/assets/{moonscript-BiOwz93j.js → moonscript-BoXc6FQi.js} +1 -1
  200. package/dist/app/assets/{n1ql-BOK-qtfI.js → n1ql-CrirIwOq.js} +1 -1
  201. package/dist/app/assets/{n4js-gUw2INcg.js → n4js-BGjyzq1k.js} +1 -1
  202. package/dist/app/assets/{nand2tetris-hdl-DulMQ1fH.js → nand2tetris-hdl-BI4CKoYd.js} +1 -1
  203. package/dist/app/assets/{naniscript-Fwk03Juz.js → naniscript-7GbIvKW8.js} +1 -1
  204. package/dist/app/assets/{nasm-DyQXh7z1.js → nasm-DrYMlX0m.js} +1 -1
  205. package/dist/app/assets/{neon-DpkOLWSF.js → neon-CC_AE4_j.js} +1 -1
  206. package/dist/app/assets/{nevod-BXopGva8.js → nevod-C5zbhlet.js} +1 -1
  207. package/dist/app/assets/{nginx-DPSO5ekf.js → nginx-COnP5veC.js} +1 -1
  208. package/dist/app/assets/{nim-Bq6d6_Bu.js → nim-Bimev9j5.js} +1 -1
  209. package/dist/app/assets/{nix-Dy2iCPYK.js → nix-Bkpogm6s.js} +1 -1
  210. package/dist/app/assets/{nsis-C53FxEmM.js → nsis-CWWvCzwV.js} +1 -1
  211. package/dist/app/assets/{objectivec-ClHOfm6L.js → objectivec-CI9F-hmE.js} +1 -1
  212. package/dist/app/assets/{ocaml-Bd4mMVMR.js → ocaml-CfTpJ0jq.js} +1 -1
  213. package/dist/app/assets/{opencl-CH3K7nMz.js → opencl-B05YiLIb.js} +1 -1
  214. package/dist/app/assets/{openqasm-SOdUhTmx.js → openqasm-CsAV_7C1.js} +1 -1
  215. package/dist/app/assets/{oz-BOUspg_L.js → oz-BHiLYYl_.js} +1 -1
  216. package/dist/app/assets/{parigp-BnU6Vr73.js → parigp-6QUmmFTv.js} +1 -1
  217. package/dist/app/assets/{parser-jweo2qRc.js → parser-Mdqtx5i0.js} +1 -1
  218. package/dist/app/assets/{pascal-CKG3Ve5B.js → pascal-DZgkOKaZ.js} +1 -1
  219. package/dist/app/assets/{pascaligo-DnSgOfZi.js → pascaligo-BrdsXPa7.js} +1 -1
  220. package/dist/app/assets/{pcaxis-s94ah1qs.js → pcaxis-Ct6yTXHn.js} +1 -1
  221. package/dist/app/assets/{peoplecode-DoIvIKcb.js → peoplecode-BQleLytH.js} +1 -1
  222. package/dist/app/assets/{perl-BXJBS0qx.js → perl-DGPr--KX.js} +1 -1
  223. package/dist/app/assets/{php-BlzlR4_v.js → php-BZdELfRg.js} +1 -1
  224. package/dist/app/assets/{php-extras-hjEa1iTA.js → php-extras-DRUygll3.js} +1 -1
  225. package/dist/app/assets/{phpdoc-Ch0l7Uv9.js → phpdoc-BWPaQ5aL.js} +1 -1
  226. package/dist/app/assets/{pieDiagram-DEJITSTG-BK8YBT53.js → pieDiagram-DEJITSTG-GnisibOc.js} +1 -1
  227. package/dist/app/assets/{plsql-BmSD3Q1k.js → plsql-B-axWEnd.js} +1 -1
  228. package/dist/app/assets/{powerquery-DM7b-u-o.js → powerquery-DBu_nYIE.js} +1 -1
  229. package/dist/app/assets/{powershell-CXsqbD80.js → powershell-Kyg_XGYJ.js} +1 -1
  230. package/dist/app/assets/{processing-RuoLznsF.js → processing-BCH64X2E.js} +1 -1
  231. package/dist/app/assets/{prolog-Bu4ZaUxi.js → prolog-BwsJzSpU.js} +1 -1
  232. package/dist/app/assets/{promql-DOOZUaV8.js → promql-BD6SCtxu.js} +1 -1
  233. package/dist/app/assets/{properties-Be3moloV.js → properties-CjLcIGgH.js} +1 -1
  234. package/dist/app/assets/{protobuf-N7mb4_Rv.js → protobuf-DHl_TDp-.js} +1 -1
  235. package/dist/app/assets/{psl-Cww5iKGd.js → psl-BX8f_5Fm.js} +1 -1
  236. package/dist/app/assets/{pug-DSLvyPtG.js → pug-DkC8-gpH.js} +1 -1
  237. package/dist/app/assets/{puppet-CxmK6KXr.js → puppet-BxCjGLCs.js} +1 -1
  238. package/dist/app/assets/{pure-CEWpRrG_.js → pure-YXSvr1oq.js} +1 -1
  239. package/dist/app/assets/{purebasic-BkihQx2l.js → purebasic-BtANC5US.js} +1 -1
  240. package/dist/app/assets/{purescript-Dv8RWtry.js → purescript-BRmYew9s.js} +1 -1
  241. package/dist/app/assets/{q-BWG_IRXv.js → q-qMeVKej2.js} +1 -1
  242. package/dist/app/assets/{qml-DNdfSfok.js → qml-CzQ0_17a.js} +1 -1
  243. package/dist/app/assets/{qore-DN6GB5B6.js → qore-DwKsIUAf.js} +1 -1
  244. package/dist/app/assets/{qsharp-DwetPVRU.js → qsharp-Dzv2ddoV.js} +1 -1
  245. package/dist/app/assets/{quadrantDiagram-34T5L4WZ-wVPtNsq8.js → quadrantDiagram-34T5L4WZ-Ccz5qvcS.js} +1 -1
  246. package/dist/app/assets/{r-mq6rsL09.js → r-YY0rX2Fg.js} +1 -1
  247. package/dist/app/assets/{racket-DG9wIycI.js → racket-DQ-iUkE5.js} +1 -1
  248. package/dist/app/assets/{reason-QDeJ9fGt.js → reason-Cjhe8Z_n.js} +1 -1
  249. package/dist/app/assets/{regex-CJq5NHvY.js → regex-D6o05mSl.js} +1 -1
  250. package/dist/app/assets/{rego-CuCkTZEO.js → rego-g70BDcHY.js} +1 -1
  251. package/dist/app/assets/{renpy-CF60Vgpp.js → renpy-BaQZldp-.js} +1 -1
  252. package/dist/app/assets/{requirementDiagram-MS252O5E-NYm3MUgE.js → requirementDiagram-MS252O5E-CPa1ce3e.js} +1 -1
  253. package/dist/app/assets/{rest-pvM9_VPV.js → rest-5qmWToDM.js} +1 -1
  254. package/dist/app/assets/{rip-knfZMbzc.js → rip-ZEEk2fEL.js} +1 -1
  255. package/dist/app/assets/{roboconf-DE2PK0Rv.js → roboconf-BtgyXJKu.js} +1 -1
  256. package/dist/app/assets/{robotframework-CLlyRuvY.js → robotframework-BOYxsKuq.js} +1 -1
  257. package/dist/app/assets/{ruby-x5dznEbw.js → ruby-Ct3dhEle.js} +1 -1
  258. package/dist/app/assets/{rust-9aWCBT_0.js → rust-CQMSZOQW.js} +1 -1
  259. package/dist/app/assets/{sankeyDiagram-XADWPNL6-BOYwPyyU.js → sankeyDiagram-XADWPNL6-ATErDvu1.js} +1 -1
  260. package/dist/app/assets/{sas-C2Y0yCZT.js → sas-DCf9MLvQ.js} +1 -1
  261. package/dist/app/assets/{sass-BVG4jrsz.js → sass-DVA9OI0k.js} +1 -1
  262. package/dist/app/assets/{scala-CILasXNs.js → scala-BfZyHW5h.js} +1 -1
  263. package/dist/app/assets/{scheme-DMT3k7Ay.js → scheme-CwMuNF1M.js} +1 -1
  264. package/dist/app/assets/{scss-DM3koaoe.js → scss-CJdhLSZp.js} +1 -1
  265. package/dist/app/assets/{sequenceDiagram-FGHM5R23-DL40pkmm.js → sequenceDiagram-FGHM5R23-BkbO0Scj.js} +1 -1
  266. package/dist/app/assets/{shell-session-Dxpec_d0.js → shell-session-vHTgPhiW.js} +1 -1
  267. package/dist/app/assets/{smali-D1whxEhZ.js → smali-B5RIaXX6.js} +1 -1
  268. package/dist/app/assets/{smalltalk-BQMH8qD7.js → smalltalk-DdCjaJpb.js} +1 -1
  269. package/dist/app/assets/{smarty-JrMCkQIc.js → smarty-C03Borcw.js} +1 -1
  270. package/dist/app/assets/{sml-mhC7b4QX.js → sml-AOXYXMyG.js} +1 -1
  271. package/dist/app/assets/{solidity-BSynZrZc.js → solidity-BUfMc4bt.js} +1 -1
  272. package/dist/app/assets/{solution-file-DAfssftu.js → solution-file-D2fkraeh.js} +1 -1
  273. package/dist/app/assets/{soy-DU7nZVR7.js → soy-CCe9Oz9Z.js} +1 -1
  274. package/dist/app/assets/{sparql-Cq3r5HHF.js → sparql-r2A9npIs.js} +1 -1
  275. package/dist/app/assets/{splunk-spl-CGcTPfRb.js → splunk-spl-BLJ7LIMc.js} +1 -1
  276. package/dist/app/assets/{sqf-CG8TBMKD.js → sqf-CF9U0BVS.js} +1 -1
  277. package/dist/app/assets/{sql-e3vFyHiF.js → sql-ByRrR3JK.js} +1 -1
  278. package/dist/app/assets/{squirrel-CYCMghr2.js → squirrel-ibnqUhbv.js} +1 -1
  279. package/dist/app/assets/{stan-DQRnUJX1.js → stan-shDBkVpE.js} +1 -1
  280. package/dist/app/assets/{stateDiagram-FHFEXIEX-BXjm3A3K.js → stateDiagram-FHFEXIEX-DsBVqEQ8.js} +1 -1
  281. package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-DwNISjCA.js +1 -0
  282. package/dist/app/assets/{stylus-C7mZgsLR.js → stylus-x9BPU4fj.js} +1 -1
  283. package/dist/app/assets/{swift-FgNu5uOF.js → swift-CeApZvIL.js} +1 -1
  284. package/dist/app/assets/{systemd-Gxav6pEn.js → systemd-CHwYAy8N.js} +1 -1
  285. package/dist/app/assets/{t4-cs-DmynqUb7.js → t4-cs-7t9W6Xyg.js} +1 -1
  286. package/dist/app/assets/{t4-templating-yOruJMSa.js → t4-templating-DAsen3Wi.js} +1 -1
  287. package/dist/app/assets/{t4-vb-BKIzALAO.js → t4-vb-zh9Spwor.js} +1 -1
  288. package/dist/app/assets/{tap-DS5QmC0E.js → tap-CKplrrNi.js} +1 -1
  289. package/dist/app/assets/{tcl-AP9wIHUu.js → tcl-CCgbmbOw.js} +1 -1
  290. package/dist/app/assets/{textile-Cwund-GG.js → textile-04XOhOjd.js} +1 -1
  291. package/dist/app/assets/{timeline-definition-GMOUNBTQ-CUgfdbl8.js → timeline-definition-GMOUNBTQ-BwHfdHIv.js} +1 -1
  292. package/dist/app/assets/{toml-DdbNJSTB.js → toml-BGmTZBPA.js} +1 -1
  293. package/dist/app/assets/{tremor-Ci5mLsoz.js → tremor-B8872n6v.js} +1 -1
  294. package/dist/app/assets/{tt2-DMnaiyrl.js → tt2-aZiGOlKK.js} +1 -1
  295. package/dist/app/assets/{turtle-CtmHhGlr.js → turtle-BSNUwacz.js} +1 -1
  296. package/dist/app/assets/{twig-jOh3JXGe.js → twig-ptdE7Q2Z.js} +1 -1
  297. package/dist/app/assets/{typescript-C9ZO1Bsq.js → typescript-Khd69_WJ.js} +1 -1
  298. package/dist/app/assets/{typoscript-BPJJK2gF.js → typoscript-CfYT1lKW.js} +1 -1
  299. package/dist/app/assets/{unrealscript-D5q598j9.js → unrealscript-JRtn5WV4.js} +1 -1
  300. package/dist/app/assets/{uorazor-ig8gHEFY.js → uorazor-CaNt3nj0.js} +1 -1
  301. package/dist/app/assets/{uri-B0NV-CTl.js → uri-DF_akl0r.js} +1 -1
  302. package/dist/app/assets/{v-DLKo3VP1.js → v-GxHLGbau.js} +1 -1
  303. package/dist/app/assets/{vala-DQyQ3_G9.js → vala-BbqXQP8w.js} +1 -1
  304. package/dist/app/assets/{vbnet-C2EluvGs.js → vbnet-CnRrKN7C.js} +1 -1
  305. package/dist/app/assets/{velocity-CocU3Pr_.js → velocity-DlBz1165.js} +1 -1
  306. package/dist/app/assets/{vennDiagram-DHZGUBPP-C6HjVfSH.js → vennDiagram-DHZGUBPP-BkTv9Hp8.js} +1 -1
  307. package/dist/app/assets/{verilog-C5-NnnGo.js → verilog-TMYqM5LN.js} +1 -1
  308. package/dist/app/assets/{vhdl-1lTwYkMl.js → vhdl-9KK9QW2R.js} +1 -1
  309. package/dist/app/assets/{vim-BFFrBSnn.js → vim-D8mr58we.js} +1 -1
  310. package/dist/app/assets/{visual-basic-DmqiNP3t.js → visual-basic-CtbJ6635.js} +1 -1
  311. package/dist/app/assets/{wardley-RL74JXVD-B_Ds6kTY.js → wardley-RL74JXVD-Q0QjweO3.js} +1 -1
  312. package/dist/app/assets/{wardleyDiagram-NUSXRM2D-DBuGTx4P.js → wardleyDiagram-NUSXRM2D-tMIiAqRy.js} +1 -1
  313. package/dist/app/assets/{warpscript-DbCf6a2h.js → warpscript-DQVy2Tvj.js} +1 -1
  314. package/dist/app/assets/{wasm-BdwrQDsu.js → wasm-BV-fD8Xt.js} +1 -1
  315. package/dist/app/assets/{web-idl-Ci16LhtK.js → web-idl-BDAJ8-I9.js} +1 -1
  316. package/dist/app/assets/{wiki-DkGStcp9.js → wiki-B2QtmzwE.js} +1 -1
  317. package/dist/app/assets/{wolfram-DIKPY0pR.js → wolfram-DjIjB5dd.js} +1 -1
  318. package/dist/app/assets/{wren-Co-reRGP.js → wren-DIVMYwvI.js} +1 -1
  319. package/dist/app/assets/{xeora-DzP_NAXE.js → xeora-MKFHkr6j.js} +1 -1
  320. package/dist/app/assets/{xml-doc-0qJkt3-O.js → xml-doc-Q7xM1lOj.js} +1 -1
  321. package/dist/app/assets/{xojo-CGBxZsBv.js → xojo-Dt1zgTjo.js} +1 -1
  322. package/dist/app/assets/{xquery-C4AX9sLX.js → xquery-DJieRY_f.js} +1 -1
  323. package/dist/app/assets/{xychartDiagram-5P7HB3ND-CK9Q1OGP.js → xychartDiagram-5P7HB3ND-sb3QOqo6.js} +1 -1
  324. package/dist/app/assets/{yaml-Dxa8k2xC.js → yaml-BSxLpBjL.js} +1 -1
  325. package/dist/app/assets/{yang-CcCtKZOu.js → yang-G_xeq_R4.js} +1 -1
  326. package/dist/app/assets/{zig-DURHftPm.js → zig-CpabVzlr.js} +1 -1
  327. package/dist/app/index.html +2 -2
  328. package/dist/index.cjs +399 -94
  329. package/dist/index.d.cts +8 -2
  330. package/dist/index.d.ts +8 -2
  331. package/dist/index.js +412 -116
  332. package/package.json +3 -3
  333. package/dist/app/assets/channel-CrrgI7jC.js +0 -1
  334. package/dist/app/assets/classDiagram-6PBFFD2Q-DK7Wbhmk.js +0 -1
  335. package/dist/app/assets/classDiagram-v2-HSJHXN6E-DK7Wbhmk.js +0 -1
  336. package/dist/app/assets/clone-BurOzDBp.js +0 -1
  337. package/dist/app/assets/index-BfTgPY7i.css +0 -1
  338. package/dist/app/assets/index-Wv8qdZGD.js +0 -785
  339. package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-WTCPU8pQ.js +0 -1
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  FileText as FileText5,
7
7
  ImageIcon as ImageIcon2,
8
8
  Loader2 as Loader212,
9
+ MessageSquarePlus,
9
10
  Minus,
10
11
  Pause,
11
12
  Pencil as Pencil4,
@@ -14,7 +15,7 @@ import {
14
15
  Settings as Settings2,
15
16
  Target as Target3,
16
17
  Trash2 as Trash23,
17
- X as X10
18
+ X as X9
18
19
  } from "lucide-react";
19
20
  import { CHATKIT_TASK_SUMMARY_OPEN_RESOURCE_EFFECT } from "@xpert-ai/chatkit-types";
20
21
 
@@ -2154,6 +2155,17 @@ var en_US_default = {
2154
2155
  entryUnavailable: "Remote view content is unavailable.",
2155
2156
  missingAssistant: "An assistant is required to load views.",
2156
2157
  retry: "Retry",
2158
+ sideChat: {
2159
+ title: "Side chat",
2160
+ threadRequired: "Start a conversation before opening a side chat.",
2161
+ closeDialog: {
2162
+ title: "Close side chat?",
2163
+ description: "This side chat will be removed from the current workbench and cannot be restored on this page. Its conversation data will be retained.",
2164
+ dontAskAgain: "Don't ask again",
2165
+ cancel: "Cancel",
2166
+ confirm: "Close side chat"
2167
+ }
2168
+ },
2157
2169
  errors: {
2158
2170
  contextKeyRequired: "Context key is required.",
2159
2171
  messageRequired: "Message text is required.",
@@ -2329,6 +2341,7 @@ var en_US_default = {
2329
2341
  disablePlanMode: "Turn off plan mode",
2330
2342
  removeReference: "Remove reference",
2331
2343
  quoteSelection: "Quote selection",
2344
+ askInSideChat: "Ask in side chat",
2332
2345
  requestUserInput: {
2333
2346
  title: "Input requested",
2334
2347
  recommended: "Recommended",
@@ -2344,6 +2357,14 @@ var en_US_default = {
2344
2357
  },
2345
2358
  hitl: {
2346
2359
  title: "Action review",
2360
+ mcpElicitationTitle: "MCP Elicitation",
2361
+ fieldProgress: "Field {{current}}/{{total}}",
2362
+ requiredUnanswered: "1 required unanswered",
2363
+ requiredAnswered: "All required fields answered",
2364
+ true: "True",
2365
+ false: "False",
2366
+ cancel: "Cancel",
2367
+ elicitationSubmit: "Submit",
2347
2368
  actionProgress: "{{current}} of {{total}}",
2348
2369
  previousAction: "Previous action",
2349
2370
  nextAction: "Next action",
@@ -2646,6 +2667,17 @@ var zh_CN_default = {
2646
2667
  entryUnavailable: "\u8FDC\u7A0B\u89C6\u56FE\u5185\u5BB9\u4E0D\u53EF\u7528\u3002",
2647
2668
  missingAssistant: "\u9700\u8981 Assistant \u624D\u80FD\u52A0\u8F7D\u89C6\u56FE\u3002",
2648
2669
  retry: "\u91CD\u8BD5",
2670
+ sideChat: {
2671
+ title: "\u4FA7\u8FB9\u804A\u5929",
2672
+ threadRequired: "\u8BF7\u5148\u5F00\u59CB\u4E3B\u5BF9\u8BDD\uFF0C\u518D\u6253\u5F00\u4FA7\u8FB9\u804A\u5929\u3002",
2673
+ closeDialog: {
2674
+ title: "\u5173\u95ED\u4FA7\u8FB9\u804A\u5929\uFF1F",
2675
+ description: "\u5173\u95ED\u540E\uFF0C\u6B64\u4FA7\u8FB9\u804A\u5929\u5C06\u4ECE\u5F53\u524D\u5DE5\u4F5C\u53F0\u79FB\u9664\uFF0C\u5F53\u524D\u9875\u9762\u65E0\u6CD5\u6062\u590D\uFF1B\u5BF9\u8BDD\u6570\u636E\u4ECD\u4F1A\u4FDD\u7559\u3002",
2676
+ dontAskAgain: "\u4E0D\u518D\u8BE2\u95EE",
2677
+ cancel: "\u53D6\u6D88",
2678
+ confirm: "\u5173\u95ED\u4FA7\u8FB9\u804A\u5929"
2679
+ }
2680
+ },
2649
2681
  errors: {
2650
2682
  contextKeyRequired: "\u5FC5\u987B\u63D0\u4F9B\u4E0A\u4E0B\u6587\u952E\u3002",
2651
2683
  messageRequired: "\u5FC5\u987B\u63D0\u4F9B\u6D88\u606F\u5185\u5BB9\u3002",
@@ -2821,6 +2853,7 @@ var zh_CN_default = {
2821
2853
  disablePlanMode: "\u5173\u95ED\u8BA1\u5212\u6A21\u5F0F",
2822
2854
  removeReference: "\u79FB\u9664\u5F15\u7528",
2823
2855
  quoteSelection: "\u5F15\u7528\u9009\u4E2D\u5185\u5BB9",
2856
+ askInSideChat: "\u5728\u4FA7\u8FB9\u804A\u5929\u4E2D\u63D0\u95EE",
2824
2857
  requestUserInput: {
2825
2858
  title: "\u9700\u8981\u4F60\u7684\u8F93\u5165",
2826
2859
  recommended: "\u63A8\u8350",
@@ -2836,6 +2869,14 @@ var zh_CN_default = {
2836
2869
  },
2837
2870
  hitl: {
2838
2871
  title: "\u64CD\u4F5C\u5BA1\u6838",
2872
+ mcpElicitationTitle: "MCP Elicitation",
2873
+ fieldProgress: "\u5B57\u6BB5 {{current}}/{{total}}",
2874
+ requiredUnanswered: "1 \u4E2A\u5FC5\u586B\u9879\u5F85\u56DE\u7B54",
2875
+ requiredAnswered: "\u5FC5\u586B\u9879\u5DF2\u56DE\u7B54",
2876
+ true: "\u662F",
2877
+ false: "\u5426",
2878
+ cancel: "\u53D6\u6D88",
2879
+ elicitationSubmit: "\u63D0\u4EA4",
2839
2880
  actionProgress: "{{current}} / {{total}}",
2840
2881
  previousAction: "\u4E0A\u4E00\u4E2A\u64CD\u4F5C",
2841
2882
  nextAction: "\u4E0B\u4E00\u4E2A\u64CD\u4F5C",
@@ -4965,6 +5006,7 @@ function SheetOverlay({
4965
5006
  function SheetContent({
4966
5007
  side = "right",
4967
5008
  showCloseButton = true,
5009
+ forceMount,
4968
5010
  className,
4969
5011
  children,
4970
5012
  ...props
@@ -4976,11 +5018,18 @@ function SheetContent({
4976
5018
  left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
4977
5019
  right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
4978
5020
  };
4979
- return /* @__PURE__ */ jsxs8(SheetPortal, { children: [
4980
- /* @__PURE__ */ jsx15(SheetOverlay, {}),
5021
+ return /* @__PURE__ */ jsxs8(SheetPortal, { forceMount, children: [
5022
+ /* @__PURE__ */ jsx15(
5023
+ SheetOverlay,
5024
+ {
5025
+ forceMount,
5026
+ className: forceMount ? "data-[state=closed]:hidden" : void 0
5027
+ }
5028
+ ),
4981
5029
  /* @__PURE__ */ jsxs8(
4982
5030
  SheetPrimitive.Content,
4983
5031
  {
5032
+ forceMount,
4984
5033
  className: cn(
4985
5034
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
4986
5035
  sideVariants[side],
@@ -6153,6 +6202,199 @@ function HITLApprovalPanel({
6153
6202
  onDismiss,
6154
6203
  attachToComposer = true,
6155
6204
  className
6205
+ }) {
6206
+ if (request?.request.elicitation?.kind === "mcp_elicitation" && request.request.actionRequests.length === 1 && request.request.actionRequests[0]?.name === request.request.elicitation.actionName) {
6207
+ return /* @__PURE__ */ jsx22(
6208
+ MCPBooleanElicitationPanel,
6209
+ {
6210
+ request,
6211
+ onSubmit,
6212
+ onDismiss,
6213
+ attachToComposer,
6214
+ className
6215
+ }
6216
+ );
6217
+ }
6218
+ return /* @__PURE__ */ jsx22(
6219
+ ActionReviewPanel,
6220
+ {
6221
+ request,
6222
+ onSubmit,
6223
+ onDismiss,
6224
+ attachToComposer,
6225
+ className
6226
+ }
6227
+ );
6228
+ }
6229
+ function MCPBooleanElicitationPanel({
6230
+ request,
6231
+ onSubmit,
6232
+ onDismiss,
6233
+ attachToComposer = true,
6234
+ className
6235
+ }) {
6236
+ const { t } = useChatkitTranslation();
6237
+ const rounded = useRoundedClasses4();
6238
+ const [decision, setDecision] = React19.useState(
6239
+ null
6240
+ );
6241
+ const elicitation = request?.request.elicitation;
6242
+ const action = request?.request.actionRequests.find(
6243
+ (candidate) => candidate.name === elicitation?.actionName
6244
+ );
6245
+ React19.useEffect(() => {
6246
+ setDecision(null);
6247
+ }, [request?.id]);
6248
+ React19.useEffect(() => {
6249
+ if (!request || !onDismiss) return;
6250
+ const handleKeyDown = (event) => {
6251
+ if (event.isComposing) return;
6252
+ if (event.key !== "Escape" && event.key !== "Esc") return;
6253
+ event.preventDefault();
6254
+ onDismiss();
6255
+ };
6256
+ document.addEventListener("keydown", handleKeyDown);
6257
+ return () => document.removeEventListener("keydown", handleKeyDown);
6258
+ }, [onDismiss, request]);
6259
+ if (!request || !elicitation || !action) return null;
6260
+ const fieldTitle = elicitation.field.title ?? action.name;
6261
+ const options = [
6262
+ {
6263
+ decision: "approve",
6264
+ label: t("composer.hitl.true")
6265
+ },
6266
+ {
6267
+ decision: "reject",
6268
+ label: t("composer.hitl.false")
6269
+ }
6270
+ ];
6271
+ return /* @__PURE__ */ jsxs14(
6272
+ "section",
6273
+ {
6274
+ "aria-label": t("composer.hitl.mcpElicitationTitle"),
6275
+ "aria-live": "polite",
6276
+ className: cn(
6277
+ "mx-2 border border-border bg-background/95 shadow-sm",
6278
+ rounded.density.section,
6279
+ attachToComposer ? "border-b-0" : null,
6280
+ attachToComposer ? rounded.top : rounded.panel,
6281
+ className
6282
+ ),
6283
+ children: [
6284
+ /* @__PURE__ */ jsxs14(
6285
+ "div",
6286
+ {
6287
+ className: cn(
6288
+ "flex items-center gap-1.5 font-medium text-muted-foreground",
6289
+ rounded.density.eyebrow
6290
+ ),
6291
+ children: [
6292
+ /* @__PURE__ */ jsx22(ShieldCheck, { className: "h-3.5 w-3.5" }),
6293
+ /* @__PURE__ */ jsx22("span", { children: t("composer.hitl.mcpElicitationTitle") })
6294
+ ]
6295
+ }
6296
+ ),
6297
+ /* @__PURE__ */ jsxs14("div", { className: cn("space-y-2.5", rounded.density.body), children: [
6298
+ /* @__PURE__ */ jsxs14("div", { className: "flex flex-wrap items-center gap-x-1.5 gap-y-0.5 text-xs font-medium text-muted-foreground", children: [
6299
+ /* @__PURE__ */ jsx22("span", { children: t("composer.hitl.fieldProgress", { current: 1, total: 1 }) }),
6300
+ /* @__PURE__ */ jsx22("span", { "aria-hidden": "true", children: "\xB7" }),
6301
+ /* @__PURE__ */ jsx22("span", { children: decision ? t("composer.hitl.requiredAnswered") : t("composer.hitl.requiredUnanswered") })
6302
+ ] }),
6303
+ /* @__PURE__ */ jsxs14("div", { children: [
6304
+ /* @__PURE__ */ jsx22(
6305
+ "h3",
6306
+ {
6307
+ className: cn(
6308
+ "font-semibold text-foreground",
6309
+ rounded.density.title
6310
+ ),
6311
+ children: fieldTitle
6312
+ }
6313
+ ),
6314
+ action.description ? /* @__PURE__ */ jsx22("p", { className: "mt-1 whitespace-pre-wrap text-sm leading-5 text-muted-foreground", children: action.description }) : null
6315
+ ] }),
6316
+ /* @__PURE__ */ jsx22("div", { role: "radiogroup", "aria-label": fieldTitle, className: "grid gap-1.5", children: options.map((option) => {
6317
+ const selected = decision === option.decision;
6318
+ return /* @__PURE__ */ jsxs14(
6319
+ "button",
6320
+ {
6321
+ type: "button",
6322
+ role: "radio",
6323
+ "aria-checked": selected,
6324
+ onClick: () => setDecision(option.decision),
6325
+ className: cn(
6326
+ "flex w-full items-center gap-2.5 border px-3 py-2 text-left text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
6327
+ rounded.control,
6328
+ selected ? "border-primary/50 bg-primary/10 text-foreground" : "border-border bg-background text-foreground/85 hover:bg-muted/70"
6329
+ ),
6330
+ children: [
6331
+ /* @__PURE__ */ jsx22(
6332
+ "span",
6333
+ {
6334
+ className: cn(
6335
+ "flex h-4 w-4 shrink-0 items-center justify-center rounded-full border",
6336
+ selected ? "border-primary" : "border-muted-foreground/45"
6337
+ ),
6338
+ children: selected ? /* @__PURE__ */ jsx22("span", { className: "h-2 w-2 rounded-full bg-primary" }) : null
6339
+ }
6340
+ ),
6341
+ /* @__PURE__ */ jsx22("span", { children: option.label })
6342
+ ]
6343
+ },
6344
+ option.decision
6345
+ );
6346
+ }) })
6347
+ ] }),
6348
+ /* @__PURE__ */ jsxs14(
6349
+ "div",
6350
+ {
6351
+ className: cn("flex items-center justify-end", rounded.density.footer),
6352
+ children: [
6353
+ onDismiss ? /* @__PURE__ */ jsx22(
6354
+ "button",
6355
+ {
6356
+ type: "button",
6357
+ onClick: onDismiss,
6358
+ className: cn(
6359
+ "inline-flex items-center justify-center font-medium text-muted-foreground hover:text-foreground",
6360
+ rounded.control,
6361
+ rounded.density.dismissButton
6362
+ ),
6363
+ children: t("composer.hitl.cancel")
6364
+ }
6365
+ ) : null,
6366
+ /* @__PURE__ */ jsxs14(
6367
+ "button",
6368
+ {
6369
+ type: "button",
6370
+ disabled: !decision,
6371
+ onClick: () => {
6372
+ if (decision) onSubmit([{ type: decision }]);
6373
+ },
6374
+ className: cn(
6375
+ "inline-flex shrink-0 items-center justify-center gap-1.5 bg-primary font-semibold text-primary-foreground hover:bg-primary/90 disabled:pointer-events-none disabled:opacity-45",
6376
+ rounded.control,
6377
+ rounded.density.continueButton
6378
+ ),
6379
+ children: [
6380
+ /* @__PURE__ */ jsx22(CornerDownLeft2, { className: rounded.density.continueIcon }),
6381
+ /* @__PURE__ */ jsx22("span", { children: t("composer.hitl.elicitationSubmit") })
6382
+ ]
6383
+ }
6384
+ )
6385
+ ]
6386
+ }
6387
+ )
6388
+ ]
6389
+ }
6390
+ );
6391
+ }
6392
+ function ActionReviewPanel({
6393
+ request,
6394
+ onSubmit,
6395
+ onDismiss,
6396
+ attachToComposer = true,
6397
+ className
6156
6398
  }) {
6157
6399
  const { t } = useChatkitTranslation();
6158
6400
  const rounded = useRoundedClasses4();
@@ -10831,7 +11073,7 @@ function AgentRunGroup({
10831
11073
  ].filter(
10832
11074
  (item) => Boolean(item)
10833
11075
  );
10834
- return /* @__PURE__ */ jsxs21("div", { className: cn("border-l border-border/70 pl-2", depth > 0 ? "ml-1" : "-mx-2.5"), children: [
11076
+ return /* @__PURE__ */ jsxs21("div", { className: cn("border border-border/70 pl-2 rounded-lg", depth > 0 ? "ml-1" : "-mx-2.5"), children: [
10835
11077
  /* @__PURE__ */ jsxs21(
10836
11078
  "button",
10837
11079
  {
@@ -15946,7 +16188,7 @@ var sortThreadRecords = (threadRecords) => {
15946
16188
  return (Number.isNaN(bTime) ? 0 : bTime) - (Number.isNaN(aTime) ? 0 : aTime);
15947
16189
  });
15948
16190
  };
15949
- function useThreads(limit = DEFAULT_LIMIT) {
16191
+ function useThreads(limit = DEFAULT_LIMIT, enabled = true) {
15950
16192
  const {
15951
16193
  client,
15952
16194
  threadId,
@@ -15966,6 +16208,7 @@ function useThreads(limit = DEFAULT_LIMIT) {
15966
16208
  });
15967
16209
  }, []);
15968
16210
  const refreshThreads = React42.useCallback(async () => {
16211
+ if (!enabled) return;
15969
16212
  setIsLoading(true);
15970
16213
  setError(null);
15971
16214
  try {
@@ -15980,7 +16223,7 @@ function useThreads(limit = DEFAULT_LIMIT) {
15980
16223
  } finally {
15981
16224
  setIsLoading(false);
15982
16225
  }
15983
- }, [client, limit, assistantId, projectId]);
16226
+ }, [client, enabled, limit, assistantId, projectId]);
15984
16227
  const createThread = React42.useCallback(
15985
16228
  async (input) => {
15986
16229
  setError(null);
@@ -16016,9 +16259,9 @@ function useThreads(limit = DEFAULT_LIMIT) {
16016
16259
  [client]
16017
16260
  );
16018
16261
  React42.useEffect(() => {
16019
- if (!isReady) return;
16262
+ if (!enabled || !isReady) return;
16020
16263
  void refreshThreads();
16021
- }, [refreshThreads, isReady]);
16264
+ }, [enabled, refreshThreads, isReady]);
16022
16265
  React42.useEffect(() => {
16023
16266
  if (!threadId || !isStreamLoading) return;
16024
16267
  const now = (/* @__PURE__ */ new Date()).toISOString();
@@ -17786,27 +18029,18 @@ function findDomPointForComposerOffset(root, offset) {
17786
18029
  return result ?? { node: lastNode, offset: lastOffset };
17787
18030
  }
17788
18031
 
17789
- // src/workbench/WorkbenchShell.tsx
18032
+ // src/workbench/context.tsx
17790
18033
  import * as React52 from "react";
17791
- import {
17792
- ASSISTANT_CHAT_SEND_MESSAGE_COMMAND,
17793
- ASSISTANT_CONTEXT_SET_COMMAND
17794
- } from "@xpert-ai/xpert-sdk";
17795
- import {
17796
- Loader2 as Loader210,
17797
- Maximize2 as Maximize22,
17798
- Minimize2 as Minimize22,
17799
- PanelRight,
17800
- RotateCcw,
17801
- X as X8
17802
- } from "lucide-react";
17803
- import { Fragment as Fragment10, jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
18034
+ import { Loader2 as Loader210, PanelRight } from "lucide-react";
18035
+ import { jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
17804
18036
  var WorkbenchContext = React52.createContext({
17805
18037
  enabled: false,
17806
18038
  open: false,
17807
18039
  loading: false,
17808
18040
  available: false,
17809
- toggle: () => void 0
18041
+ toggle: () => void 0,
18042
+ sideChatEnabled: false,
18043
+ askInSideChat: async () => void 0
17810
18044
  });
17811
18045
  function useWorkbench() {
17812
18046
  return React52.useContext(WorkbenchContext);
@@ -17840,7 +18074,7 @@ function WorkbenchToggleButton() {
17840
18074
 
17841
18075
  // src/components/chat/runtime-capabilities.tsx
17842
18076
  import * as React53 from "react";
17843
- import { X as X9 } from "lucide-react";
18077
+ import { X as X8 } from "lucide-react";
17844
18078
  import { jsx as jsx58, jsxs as jsxs40 } from "react/jsx-runtime";
17845
18079
  function createComposerCapabilityInsertionParts(options) {
17846
18080
  return options.flatMap((option) => [
@@ -18446,7 +18680,7 @@ function DetachedRunRuntimeCapabilities({
18446
18680
  className: "rounded-full p-0.5 hover:bg-primary/15",
18447
18681
  title: removeLabel,
18448
18682
  "aria-label": removeLabel,
18449
- children: /* @__PURE__ */ jsx58(X9, { size: 11 })
18683
+ children: /* @__PURE__ */ jsx58(X8, { size: 11 })
18450
18684
  }
18451
18685
  )
18452
18686
  ]
@@ -18858,7 +19092,7 @@ import {
18858
19092
  ListChecks as ListChecks3,
18859
19093
  Loader2 as Loader211,
18860
19094
  PlayCircle,
18861
- RotateCcw as RotateCcw2,
19095
+ RotateCcw,
18862
19096
  Target as Target2
18863
19097
  } from "lucide-react";
18864
19098
  import { jsx as jsx59, jsxs as jsxs41 } from "react/jsx-runtime";
@@ -19002,7 +19236,7 @@ function TaskSummaryContent({
19002
19236
  className: "inline-flex shrink-0 items-center gap-1 font-medium hover:underline",
19003
19237
  onClick: onRetryHistory,
19004
19238
  children: [
19005
- /* @__PURE__ */ jsx59(RotateCcw2, { className: "size-3" }),
19239
+ /* @__PURE__ */ jsx59(RotateCcw, { className: "size-3" }),
19006
19240
  t("taskSummary.retry")
19007
19241
  ]
19008
19242
  }
@@ -19176,7 +19410,7 @@ function formatElapsed(value) {
19176
19410
  }
19177
19411
 
19178
19412
  // src/components/chat.tsx
19179
- import { Fragment as Fragment12, jsx as jsx60, jsxs as jsxs42 } from "react/jsx-runtime";
19413
+ import { Fragment as Fragment11, jsx as jsx60, jsxs as jsxs42 } from "react/jsx-runtime";
19180
19414
  var defaultApiUrl2 = import.meta.env.VITE_XPERTAI_API_URL;
19181
19415
  var COMPOSER_INPUT_MAX_HEIGHT = 128;
19182
19416
  var LONG_TEXT_REFERENCE_THRESHOLD = 5e3;
@@ -19335,7 +19569,7 @@ function ReferenceChip({
19335
19569
  ),
19336
19570
  title: removeLabel,
19337
19571
  "aria-label": removeLabel,
19338
- children: /* @__PURE__ */ jsx60(X10, { size: 12 })
19572
+ children: /* @__PURE__ */ jsx60(X9, { size: 12 })
19339
19573
  }
19340
19574
  )
19341
19575
  ]
@@ -19348,7 +19582,9 @@ function Chat({
19348
19582
  title,
19349
19583
  placeholder,
19350
19584
  clientSecret = "",
19351
- isClientSecretInitializing = false
19585
+ isClientSecretInitializing = false,
19586
+ surface = "main",
19587
+ referenceRequest
19352
19588
  }) {
19353
19589
  const { t, i18n: i18n2 } = useChatkitTranslation();
19354
19590
  const composer = options?.composer;
@@ -19359,6 +19595,7 @@ function Chat({
19359
19595
  const messageNavigationEnabled = options?.messageNavigation?.enabled !== false;
19360
19596
  const { setStream } = useStreamManager();
19361
19597
  const stream = useStreamContext();
19598
+ const workbench = useWorkbench();
19362
19599
  const { theme } = useTheme();
19363
19600
  const effectiveClientSecret = stream.apiKey?.trim() ? stream.apiKey : clientSecret;
19364
19601
  const missingConfigKind = getMissingApiConfigurationKind({
@@ -19407,8 +19644,8 @@ function Chat({
19407
19644
  const loadingStartTimeRef = React56.useRef(null);
19408
19645
  const lastStreamOutputAtRef = React56.useRef(null);
19409
19646
  React56.useEffect(() => {
19410
- setStream(stream);
19411
- }, [setStream, stream]);
19647
+ if (surface === "main") setStream(stream);
19648
+ }, [setStream, stream, surface]);
19412
19649
  React56.useEffect(() => {
19413
19650
  if (stream.isLoading) {
19414
19651
  if (!loadingStartTimeRef.current) {
@@ -19483,6 +19720,8 @@ function Chat({
19483
19720
  const [references, setReferences] = React56.useState([]);
19484
19721
  const [isUploadingReferenceImages, setIsUploadingReferenceImages] = React56.useState(false);
19485
19722
  const [quoteSelection, setQuoteSelection] = React56.useState(null);
19723
+ const [isOpeningSideChat, setIsOpeningSideChat] = React56.useState(false);
19724
+ const [sideChatError, setSideChatError] = React56.useState(null);
19486
19725
  const [isAtBottom, setIsAtBottom] = React56.useState(true);
19487
19726
  const [hasUpdatesBelow, setHasUpdatesBelow] = React56.useState(false);
19488
19727
  const {
@@ -19490,7 +19729,7 @@ function Chat({
19490
19729
  deleteThread,
19491
19730
  refreshThreads,
19492
19731
  isLoading: isThreadsLoading
19493
- } = useThreads();
19732
+ } = useThreads(void 0, surface === "main" && history?.enabled !== false);
19494
19733
  const viewportRef = React56.useRef(null);
19495
19734
  const chatColumnRef = React56.useRef(null);
19496
19735
  const messageNavigationAnchorsRef = React56.useRef(
@@ -19498,6 +19737,7 @@ function Chat({
19498
19737
  );
19499
19738
  const attachmentsRef = React56.useRef(null);
19500
19739
  const composerInputRef = React56.useRef(null);
19740
+ const appliedReferenceRequestRef = React56.useRef(null);
19501
19741
  const isComposerComposingRef = React56.useRef(false);
19502
19742
  const slashPaletteRef = React56.useRef(null);
19503
19743
  const slashPaletteOptionRefs = React56.useRef(
@@ -19658,15 +19898,16 @@ function Chat({
19658
19898
  const hasPendingInteractiveRequest = hasPendingRequestUserInput || hasPendingHITLRequest;
19659
19899
  const hasPendingTodos = Boolean(stream.todos?.items.length);
19660
19900
  const goalAdapter = React56.useMemo(() => {
19901
+ if (surface !== "main") return null;
19661
19902
  if (isGoalAdapter(options?.goal)) {
19662
19903
  return options.goal;
19663
19904
  }
19664
19905
  return supportsXpertThreadGoalAdapter(stream.client) ? createXpertThreadGoalAdapter(stream.client) : null;
19665
- }, [options?.goal, stream.client]);
19906
+ }, [options?.goal, stream.client, surface]);
19666
19907
  const displayedGoalElapsedSeconds = threadGoal ? (threadGoal.elapsedSeconds ?? 0) + (goalElapsedStartedAt ? Math.max(0, Math.floor((streamingNow - goalElapsedStartedAt) / 1e3)) : 0) : 0;
19667
19908
  const goalCommandAvailable = hasSelectedRuntimeSlashCommand(
19668
- runtimeCapabilities,
19669
- effectiveSessionRuntimeCapabilities,
19909
+ surface === "main" ? runtimeCapabilities : null,
19910
+ surface === "main" ? effectiveSessionRuntimeCapabilities : null,
19670
19911
  "goal"
19671
19912
  );
19672
19913
  const showGoalStatus = goalCommandAvailable && !hasCompletedGoal && (Boolean(goalError) || threadGoal?.status === "active" && stream.isLoading);
@@ -19724,6 +19965,16 @@ function Chat({
19724
19965
  setComposerSelectionOffset(input, nextPosition);
19725
19966
  });
19726
19967
  }, []);
19968
+ React56.useEffect(() => {
19969
+ if (!referenceRequest || appliedReferenceRequestRef.current === referenceRequest.id) {
19970
+ return;
19971
+ }
19972
+ appliedReferenceRequestRef.current = referenceRequest.id;
19973
+ setReferences(
19974
+ (previous) => mergeReferences(previous, [referenceRequest.reference])
19975
+ );
19976
+ requestAnimationFrame(() => composerInputRef.current?.focus());
19977
+ }, [referenceRequest]);
19727
19978
  const {
19728
19979
  applyComposerValueRuntimeCapabilities,
19729
19980
  updateRuntimeCapabilityPalette,
@@ -19741,62 +19992,63 @@ function Chat({
19741
19992
  commitComposerParts,
19742
19993
  focusComposerAt
19743
19994
  });
19744
- const parentMessenger = useParentMessenger({
19745
- onSetComposerValue: React56.useCallback(
19746
- (payload) => {
19747
- if (!payload) {
19748
- return;
19749
- }
19750
- const shouldInsertRuntimeCapabilitiesBeforeText = typeof payload.text === "string" && payload.insertRuntimeCapabilities === true;
19751
- if (typeof payload.text === "string") {
19752
- setComposerText(payload.text);
19753
- }
19754
- if (Array.isArray(payload.references)) {
19755
- const nextReferences = normalizeReferences(payload.references);
19756
- setReferences(
19757
- (previous) => payload.appendReferences ? mergeReferences(previous, nextReferences) : nextReferences
19758
- );
19759
- }
19760
- if (payload.selectedToolId !== void 0) {
19761
- const nextTool = payload.selectedToolId === null ? null : (composer?.tools ?? []).find(
19762
- (tool) => tool.id === payload.selectedToolId
19763
- ) ?? null;
19764
- setSelectedTool(nextTool);
19765
- }
19766
- applyComposerValueRuntimeCapabilities(
19767
- payload,
19768
- shouldInsertRuntimeCapabilitiesBeforeText ? { insertAt: 0 } : void 0
19995
+ const handleSetComposerValue = React56.useCallback(
19996
+ (payload) => {
19997
+ if (!payload) return;
19998
+ const shouldInsertRuntimeCapabilitiesBeforeText = typeof payload.text === "string" && payload.insertRuntimeCapabilities === true;
19999
+ if (typeof payload.text === "string") setComposerText(payload.text);
20000
+ if (Array.isArray(payload.references)) {
20001
+ const nextReferences = normalizeReferences(payload.references);
20002
+ setReferences(
20003
+ (previous) => payload.appendReferences ? mergeReferences(previous, nextReferences) : nextReferences
19769
20004
  );
19770
- },
19771
- [applyComposerValueRuntimeCapabilities, composer?.tools, setComposerText]
19772
- ),
19773
- onSetRuntimeCapabilities: React56.useCallback(
19774
- (selection) => {
19775
- applyExternalRuntimeCapabilities(selection);
19776
- },
19777
- [applyExternalRuntimeCapabilities]
19778
- ),
19779
- onFocusComposer: React56.useCallback(() => {
19780
- composerInputRef.current?.focus();
19781
- }, []),
19782
- onSetPetEnabled: React56.useCallback(
19783
- (enabled) => {
19784
- if (petRequired) {
19785
- return;
19786
- }
19787
- savePetLocalSettings({
19788
- ...displayedPetSettings,
19789
- enabled
19790
- });
19791
- },
19792
- [displayedPetSettings, petRequired, savePetLocalSettings]
19793
- )
19794
- });
20005
+ }
20006
+ if (payload.selectedToolId !== void 0) {
20007
+ const nextTool = payload.selectedToolId === null ? null : (composer?.tools ?? []).find(
20008
+ (tool) => tool.id === payload.selectedToolId
20009
+ ) ?? null;
20010
+ setSelectedTool(nextTool);
20011
+ }
20012
+ applyComposerValueRuntimeCapabilities(
20013
+ payload,
20014
+ shouldInsertRuntimeCapabilitiesBeforeText ? { insertAt: 0 } : void 0
20015
+ );
20016
+ },
20017
+ [applyComposerValueRuntimeCapabilities, composer?.tools, setComposerText]
20018
+ );
20019
+ const handleSetRuntimeCapabilities = React56.useCallback(
20020
+ (selection) => {
20021
+ applyExternalRuntimeCapabilities(selection);
20022
+ },
20023
+ [applyExternalRuntimeCapabilities]
20024
+ );
20025
+ const handleFocusComposer = React56.useCallback(() => {
20026
+ composerInputRef.current?.focus();
20027
+ }, []);
20028
+ const handleSetPetEnabled = React56.useCallback(
20029
+ (enabled) => {
20030
+ if (petRequired) return;
20031
+ savePetLocalSettings({ ...displayedPetSettings, enabled });
20032
+ },
20033
+ [displayedPetSettings, petRequired, savePetLocalSettings]
20034
+ );
20035
+ const parentMessenger = useParentMessenger(
20036
+ surface === "main" ? {
20037
+ onSetComposerValue: handleSetComposerValue,
20038
+ onSetRuntimeCapabilities: handleSetRuntimeCapabilities,
20039
+ onFocusComposer: handleFocusComposer,
20040
+ onSetPetEnabled: handleSetPetEnabled
20041
+ } : {}
20042
+ );
19795
20043
  const canMinimizeToPet = parentMessenger?.isParentAvailable === true && isPetEnabled(effectivePet);
19796
20044
  const handleMinimizeToPet = React56.useCallback(() => {
19797
20045
  parentMessenger?.sendEvent("chat_minimize_change", { minimized: true });
19798
20046
  }, [parentMessenger]);
19799
20047
  const syncQuoteSelection = React56.useCallback(() => {
20048
+ if (surface !== "main") {
20049
+ clearQuoteSelection();
20050
+ return;
20051
+ }
19800
20052
  if (typeof window === "undefined") {
19801
20053
  clearQuoteSelection();
19802
20054
  return;
@@ -19840,7 +20092,7 @@ function Chat({
19840
20092
  top,
19841
20093
  left
19842
20094
  });
19843
- }, [clearQuoteSelection]);
20095
+ }, [clearQuoteSelection, surface]);
19844
20096
  const cancelPendingAutoScroll = React56.useCallback(() => {
19845
20097
  if (autoScrollFrameRef.current !== null) {
19846
20098
  cancelAnimationFrame(autoScrollFrameRef.current);
@@ -20690,6 +20942,27 @@ function Chat({
20690
20942
  }
20691
20943
  composerInputRef.current?.focus();
20692
20944
  }, [clearQuoteSelection, quoteSelection]);
20945
+ const handleAskInSideChat = React56.useCallback(async () => {
20946
+ if (!quoteSelection || !workbench.sideChatEnabled || !stream.threadId || stream.isLoading)
20947
+ return;
20948
+ setIsOpeningSideChat(true);
20949
+ setSideChatError(null);
20950
+ try {
20951
+ await workbench.askInSideChat(quoteSelection.reference);
20952
+ clearQuoteSelection();
20953
+ window.getSelection()?.removeAllRanges();
20954
+ } catch (error) {
20955
+ setSideChatError(error instanceof Error ? error.message : String(error));
20956
+ } finally {
20957
+ setIsOpeningSideChat(false);
20958
+ }
20959
+ }, [
20960
+ clearQuoteSelection,
20961
+ quoteSelection,
20962
+ stream.isLoading,
20963
+ stream.threadId,
20964
+ workbench
20965
+ ]);
20693
20966
  const handleAttachmentClick = () => {
20694
20967
  attachmentsRef.current?.openFilePicker();
20695
20968
  };
@@ -20944,7 +21217,7 @@ function Chat({
20944
21217
  [focusComposerAt, isPromptEditDisabled, setComposerText]
20945
21218
  );
20946
21219
  const loadConversationMessages = React56.useCallback(
20947
- async (recordId) => {
21220
+ async (recordId, threadId) => {
20948
21221
  if (missingConfig) {
20949
21222
  setHistoryError(missingConfigShortMessage);
20950
21223
  return;
@@ -20952,7 +21225,7 @@ function Chat({
20952
21225
  setHistoryError(null);
20953
21226
  setIsHistoryLoading(true);
20954
21227
  try {
20955
- await stream.loadConversationMessages(recordId);
21228
+ await stream.loadConversationMessages(recordId, threadId);
20956
21229
  } catch (err) {
20957
21230
  console.warn("Failed to load thread messages", err);
20958
21231
  setHistoryError(
@@ -21017,13 +21290,13 @@ function Chat({
21017
21290
  if (!thread) return;
21018
21291
  if (id === stream.threadId) {
21019
21292
  if (thread.status === "interrupted" && thread.recordId && !stream.pendingHITLRequest) {
21020
- void loadConversationMessages(thread.recordId);
21293
+ void loadConversationMessages(thread.recordId, thread.id);
21021
21294
  }
21022
21295
  return;
21023
21296
  }
21024
21297
  stream.reset(id, []);
21025
21298
  if (thread.recordId) {
21026
- void loadConversationMessages(thread.recordId);
21299
+ void loadConversationMessages(thread.recordId, thread.id);
21027
21300
  }
21028
21301
  };
21029
21302
  const handleDeleteThread = (id) => {
@@ -21220,12 +21493,12 @@ function Chat({
21220
21493
  className
21221
21494
  ),
21222
21495
  children: [
21223
- /* @__PURE__ */ jsxs42(
21496
+ surface === "main" && options?.header?.enabled !== false && /* @__PURE__ */ jsxs42(
21224
21497
  "div",
21225
21498
  {
21226
21499
  ref: chatColumnRef,
21227
21500
  "data-slot": "chatkit-chat-header",
21228
- className: "mx-auto flex w-full items-center justify-between border-b p-2 sticky top-0 z-10 bg-background",
21501
+ className: "mx-auto flex w-full items-center justify-between border-b border-secondary px-2 py-1 sticky top-0 z-10 bg-background",
21229
21502
  style: chatColumnStyle,
21230
21503
  children: [
21231
21504
  /* @__PURE__ */ jsxs42("div", { className: "flex min-w-0 items-center gap-3 overflow-hidden", children: [
@@ -21304,7 +21577,7 @@ function Chat({
21304
21577
  ) }) }),
21305
21578
  /* @__PURE__ */ jsx60(TooltipContent, { side: "bottom", children: t("settings.open") })
21306
21579
  ] }),
21307
- history?.enabled !== false && /* @__PURE__ */ jsxs42(Fragment12, { children: [
21580
+ history?.enabled !== false && /* @__PURE__ */ jsxs42(Fragment11, { children: [
21308
21581
  /* @__PURE__ */ jsxs42(Tooltip, { children: [
21309
21582
  /* @__PURE__ */ jsx60(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx60("span", { className: "inline-flex h-8 w-8", children: /* @__PURE__ */ jsx60(
21310
21583
  "button",
@@ -21374,7 +21647,7 @@ function Chat({
21374
21647
  promptSendDisabled: isSubmissionBlocked,
21375
21648
  promptEditDisabled: isPromptEditDisabled
21376
21649
  }
21377
- ) : /* @__PURE__ */ jsxs42("div", { className: "space-y-4", children: [
21650
+ ) : /* @__PURE__ */ jsxs42("div", { className: "space-y-1", children: [
21378
21651
  canLoadMoreMessages && /* @__PURE__ */ jsxs42("div", { className: "flex items-center gap-3 py-1", children: [
21379
21652
  /* @__PURE__ */ jsx60("div", { className: "h-px min-w-8 flex-1 bg-border" }),
21380
21653
  /* @__PURE__ */ jsx60(
@@ -21484,7 +21757,7 @@ function Chat({
21484
21757
  pet: effectivePet,
21485
21758
  mcpApps: options?.mcpApps
21486
21759
  }
21487
- ) : /* @__PURE__ */ jsxs42(Fragment12, { children: [
21760
+ ) : /* @__PURE__ */ jsxs42(Fragment11, { children: [
21488
21761
  message.type === "human" && humanRuntimeCapabilityOptions.length > 0 && /* @__PURE__ */ jsx60(
21489
21762
  HumanRuntimeCapabilityChips,
21490
21763
  {
@@ -21586,32 +21859,55 @@ function Chat({
21586
21859
  children: /* @__PURE__ */ jsx60(ArrowDown2, { size: 16 })
21587
21860
  }
21588
21861
  ) }),
21589
- quoteSelection && /* @__PURE__ */ jsx60(
21862
+ quoteSelection && /* @__PURE__ */ jsxs42(
21590
21863
  "div",
21591
21864
  {
21592
- className: "pointer-events-none fixed z-50",
21865
+ className: "pointer-events-none fixed z-50 flex flex-col items-center gap-1",
21593
21866
  style: {
21594
21867
  top: `${quoteSelection.top}px`,
21595
21868
  left: `${quoteSelection.left}px`,
21596
21869
  transform: "translateX(-50%)"
21597
21870
  },
21598
- children: /* @__PURE__ */ jsxs42(
21599
- Button,
21600
- {
21601
- type: "button",
21602
- size: "sm",
21603
- variant: "secondary",
21604
- className: "pointer-events-auto shadow-lg",
21605
- onMouseDown: (event) => event.preventDefault(),
21606
- onClick: handleQuoteSelection,
21607
- "aria-label": t("composer.quoteSelection"),
21608
- title: t("composer.quoteSelection"),
21609
- children: [
21610
- /* @__PURE__ */ jsx60(Quote, { size: 14 }),
21611
- t("composer.quoteSelection")
21612
- ]
21613
- }
21614
- )
21871
+ children: [
21872
+ /* @__PURE__ */ jsxs42("div", { className: "pointer-events-auto flex overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg", children: [
21873
+ /* @__PURE__ */ jsxs42(
21874
+ Button,
21875
+ {
21876
+ type: "button",
21877
+ size: "sm",
21878
+ variant: "ghost",
21879
+ className: "rounded-none border-r",
21880
+ onMouseDown: (event) => event.preventDefault(),
21881
+ onClick: handleQuoteSelection,
21882
+ "aria-label": t("composer.quoteSelection"),
21883
+ title: t("composer.quoteSelection"),
21884
+ children: [
21885
+ /* @__PURE__ */ jsx60(Quote, { size: 14 }),
21886
+ t("composer.quoteSelection")
21887
+ ]
21888
+ }
21889
+ ),
21890
+ workbench.sideChatEnabled && /* @__PURE__ */ jsxs42(
21891
+ Button,
21892
+ {
21893
+ type: "button",
21894
+ size: "sm",
21895
+ variant: "ghost",
21896
+ className: "rounded-none",
21897
+ disabled: isOpeningSideChat || stream.isLoading || !stream.threadId,
21898
+ onMouseDown: (event) => event.preventDefault(),
21899
+ onClick: () => void handleAskInSideChat(),
21900
+ "aria-label": t("composer.askInSideChat"),
21901
+ title: t("composer.askInSideChat"),
21902
+ children: [
21903
+ isOpeningSideChat ? /* @__PURE__ */ jsx60(Loader212, { size: 14, className: "animate-spin" }) : /* @__PURE__ */ jsx60(MessageSquarePlus, { size: 14 }),
21904
+ t("composer.askInSideChat")
21905
+ ]
21906
+ }
21907
+ )
21908
+ ] }),
21909
+ sideChatError && /* @__PURE__ */ jsx60("div", { className: "pointer-events-auto max-w-72 rounded-md bg-destructive px-2 py-1 text-xs text-destructive-foreground shadow", children: sideChatError })
21910
+ ]
21615
21911
  }
21616
21912
  ),
21617
21913
  /* @__PURE__ */ jsxs42(
@@ -21922,7 +22218,7 @@ function Chat({
21922
22218
  type: "button",
21923
22219
  onClick: () => setSelectedTool(null),
21924
22220
  className: "shrink-0 rounded-full p-0.5 text-primary/70 hover:bg-primary/10 hover:text-primary",
21925
- children: /* @__PURE__ */ jsx60(X10, { size: 12 })
22221
+ children: /* @__PURE__ */ jsx60(X9, { size: 12 })
21926
22222
  }
21927
22223
  )
21928
22224
  ] })