@xpert-ai/chatkit-ui 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/dist/app/assets/{_baseUniq-DAi_U6eJ.js → _baseUniq-DUmeJXMF.js} +1 -1
  2. package/dist/app/assets/{abap-ChIrIedY.js → abap-CAHc26jT.js} +1 -1
  3. package/dist/app/assets/{abnf-BmyKeVYS.js → abnf-CVkfvAG7.js} +1 -1
  4. package/dist/app/assets/{actionscript-C9wzeSLx.js → actionscript-BEzJB7WT.js} +1 -1
  5. package/dist/app/assets/{ada-CnZwIcQD.js → ada-DFt4d8s0.js} +1 -1
  6. package/dist/app/assets/{agda-BC6tdZrt.js → agda-Dgk-d8Ej.js} +1 -1
  7. package/dist/app/assets/{al-1IyjxpDM.js → al-CgIwrIi7.js} +1 -1
  8. package/dist/app/assets/{antlr4-CHd-fyh6.js → antlr4-v8CVE7fu.js} +1 -1
  9. package/dist/app/assets/{apacheconf-2lN3gJw-.js → apacheconf-DJRGF6BS.js} +1 -1
  10. package/dist/app/assets/{apex-BlHo9TNy.js → apex-uUgU4D2N.js} +1 -1
  11. package/dist/app/assets/{apl-LQvIBwOu.js → apl-QLgjdSly.js} +1 -1
  12. package/dist/app/assets/{applescript-DWoMPELD.js → applescript-BFVeekYt.js} +1 -1
  13. package/dist/app/assets/{aql-C9S6c12M.js → aql-mHS01Klr.js} +1 -1
  14. package/dist/app/assets/{arc-Dt2ofM0k.js → arc-CuZh5y_d.js} +1 -1
  15. package/dist/app/assets/{architectureDiagram-Q4EWVU46-Bt8nuJ35.js → architectureDiagram-Q4EWVU46-Cp-oqFuq.js} +1 -1
  16. package/dist/app/assets/{arduino-1xWm7Tq4.js → arduino-D3yikoHI.js} +1 -1
  17. package/dist/app/assets/{arff-COOkNnH1.js → arff-Bzp22yLm.js} +1 -1
  18. package/dist/app/assets/{asciidoc-DFECG2l7.js → asciidoc-DyMmgwzJ.js} +1 -1
  19. package/dist/app/assets/{asm6502-CzDAeDcX.js → asm6502-B80D95Jm.js} +1 -1
  20. package/dist/app/assets/{asmatmel-CBtEsKji.js → asmatmel-D7eDDNLW.js} +1 -1
  21. package/dist/app/assets/{aspnet-BezxKLhu.js → aspnet-DP6URAXF.js} +1 -1
  22. package/dist/app/assets/{autohotkey-CHatwkez.js → autohotkey-CkErJpFg.js} +1 -1
  23. package/dist/app/assets/{autoit-CI77RO6k.js → autoit-BdpOTPpv.js} +1 -1
  24. package/dist/app/assets/{avisynth-DagCdNDY.js → avisynth-Dmhp2heE.js} +1 -1
  25. package/dist/app/assets/{avro-idl-Cy1rg8Yn.js → avro-idl-DUhKaWgN.js} +1 -1
  26. package/dist/app/assets/{bash-BzvlO_s6.js → bash-BivYb6BT.js} +1 -1
  27. package/dist/app/assets/{basic-MZAshZcs.js → basic-D-8b5r6a.js} +1 -1
  28. package/dist/app/assets/{batch-czYKl46o.js → batch-BgMIK1_X.js} +1 -1
  29. package/dist/app/assets/{bbcode-cLlsKGAK.js → bbcode-DVoSXbR6.js} +1 -1
  30. package/dist/app/assets/{bicep-DZ2Qthyi.js → bicep-DAyvfnBb.js} +1 -1
  31. package/dist/app/assets/{birb-G8OGp_MU.js → birb-MciDoImB.js} +1 -1
  32. package/dist/app/assets/{bison-Bskzz9x7.js → bison-MfDz2wSW.js} +1 -1
  33. package/dist/app/assets/{blockDiagram-DXYQGD6D-BdBXVdp9.js → blockDiagram-DXYQGD6D-D6fzklHs.js} +1 -1
  34. package/dist/app/assets/{bnf-BOEOLky_.js → bnf-NfFrR8D5.js} +1 -1
  35. package/dist/app/assets/{brainfuck-h8bJ3DFC.js → brainfuck-ClI8X4SF.js} +1 -1
  36. package/dist/app/assets/{brightscript-BIR8Gf--.js → brightscript-zS1iu4vq.js} +1 -1
  37. package/dist/app/assets/{bro-B5XbyZQT.js → bro-DljtPq2D.js} +1 -1
  38. package/dist/app/assets/{bsl-C-sazznb.js → bsl-hhgsw8vw.js} +1 -1
  39. package/dist/app/assets/{c-DotRXvuU.js → c-DrpFfWnr.js} +1 -1
  40. package/dist/app/assets/{c4Diagram-AHTNJAMY-Dd8x_6AZ.js → c4Diagram-AHTNJAMY-DFqBpiK8.js} +1 -1
  41. package/dist/app/assets/{cfscript-ByuErNyc.js → cfscript-DDb6Lyf6.js} +1 -1
  42. package/dist/app/assets/{chaiscript-xSeu7-zW.js → chaiscript-DF48gGB2.js} +1 -1
  43. package/dist/app/assets/channel-DFkA7Odq.js +1 -0
  44. package/dist/app/assets/{chunk-4BX2VUAB-DZN1JqGD.js → chunk-4BX2VUAB-B12wPqT-.js} +1 -1
  45. package/dist/app/assets/{chunk-4TB4RGXK-bBSVyHgs.js → chunk-4TB4RGXK-DvBRV7Wa.js} +1 -1
  46. package/dist/app/assets/{chunk-55IACEB6-Ds-SW37D.js → chunk-55IACEB6-DYYpJnIt.js} +1 -1
  47. package/dist/app/assets/{chunk-EDXVE4YY-Dri8feOV.js → chunk-EDXVE4YY-C_cgU5oo.js} +1 -1
  48. package/dist/app/assets/{chunk-FMBD7UC4-DJ8k-IiR.js → chunk-FMBD7UC4-B3gAIARW.js} +1 -1
  49. package/dist/app/assets/{chunk-OYMX7WX6-k7E98ZJe.js → chunk-OYMX7WX6-DfeuAq49.js} +1 -1
  50. package/dist/app/assets/{chunk-QZHKN3VN-DJhFI2vO.js → chunk-QZHKN3VN-B_q1wkHk.js} +1 -1
  51. package/dist/app/assets/{chunk-YZCP3GAM-B1p0s5ao.js → chunk-YZCP3GAM-BI51-5Xl.js} +1 -1
  52. package/dist/app/assets/{cil-BvhK6LJY.js → cil-5e3EFNQ-.js} +1 -1
  53. package/dist/app/assets/classDiagram-6PBFFD2Q-BhcMxOX3.js +1 -0
  54. package/dist/app/assets/classDiagram-v2-HSJHXN6E-BhcMxOX3.js +1 -0
  55. package/dist/app/assets/{clike-FuCuUpd8.js → clike-CGm019RU.js} +1 -1
  56. package/dist/app/assets/{clojure-CU75lO9p.js → clojure-EUxmeflx.js} +1 -1
  57. package/dist/app/assets/clone-D0zp_cmi.js +1 -0
  58. package/dist/app/assets/{cmake-BRgcPG29.js → cmake-Cx_TgZnP.js} +1 -1
  59. package/dist/app/assets/{cobol-CTa8YX63.js → cobol-BthqexLq.js} +1 -1
  60. package/dist/app/assets/{coffeescript-C1tCgHyE.js → coffeescript-Gvi0WUl9.js} +1 -1
  61. package/dist/app/assets/{concurnas-Wgt7FQyC.js → concurnas-DIsKiUcY.js} +1 -1
  62. package/dist/app/assets/{coq-CpXQQvmF.js → coq-Cbm4LAk7.js} +1 -1
  63. package/dist/app/assets/{core-dcDIevRF.js → core-DbOl2YVH.js} +1 -1
  64. package/dist/app/assets/{cose-bilkent-S5V4N54A-AWnydwPj.js → cose-bilkent-S5V4N54A-tDz06OBa.js} +1 -1
  65. package/dist/app/assets/{cpp-PopsO2HF.js → cpp-DvM1W1M3.js} +1 -1
  66. package/dist/app/assets/{crystal-Bkd2nMwS.js → crystal-Cgeclk0-.js} +1 -1
  67. package/dist/app/assets/{csharp-BA1kER1p.js → csharp-DLajxlCH.js} +1 -1
  68. package/dist/app/assets/{cshtml-BmNdnWsC.js → cshtml-D4WJuQ28.js} +1 -1
  69. package/dist/app/assets/{csp-BV7K_LnK.js → csp-DlOt0mll.js} +1 -1
  70. package/dist/app/assets/{css-D_do90Bs.js → css-BzsDxt7h.js} +1 -1
  71. package/dist/app/assets/{css-extras-D0dKqzph.js → css-extras-yKv4-OYr.js} +1 -1
  72. package/dist/app/assets/{csv-Dy2-4DqS.js → csv-Bv1CB32G.js} +1 -1
  73. package/dist/app/assets/{cypher-Bbt867j9.js → cypher-p1eqx6Jt.js} +1 -1
  74. package/dist/app/assets/{d-BJKjKDuh.js → d-Beqwk42F.js} +1 -1
  75. package/dist/app/assets/{dagre-KV5264BT-qACi6DAC.js → dagre-KV5264BT-Bva9KEQ3.js} +1 -1
  76. package/dist/app/assets/{dart-C7zj4vyl.js → dart-DGUIre7b.js} +1 -1
  77. package/dist/app/assets/{dataweave-XWkmXL_n.js → dataweave-BKEvzZhX.js} +1 -1
  78. package/dist/app/assets/{dax-C12CMdhM.js → dax-7DSfOdOt.js} +1 -1
  79. package/dist/app/assets/{dhall-luyA3uBM.js → dhall-D96qT6GR.js} +1 -1
  80. package/dist/app/assets/{diagram-5BDNPKRD-D2DNhSOw.js → diagram-5BDNPKRD-BLdVEgIg.js} +1 -1
  81. package/dist/app/assets/{diagram-G4DWMVQ6-D2e2KRjm.js → diagram-G4DWMVQ6-B1mGc4DZ.js} +1 -1
  82. package/dist/app/assets/{diagram-MMDJMWI5-knmYakCW.js → diagram-MMDJMWI5-BCbX9vwv.js} +1 -1
  83. package/dist/app/assets/{diagram-TYMM5635-DORhYdkc.js → diagram-TYMM5635-BbiM5rwX.js} +1 -1
  84. package/dist/app/assets/{diff-B8UdoaQV.js → diff-BJy0ijGD.js} +1 -1
  85. package/dist/app/assets/{django-DtYp2PYt.js → django-CA3Li7Xc.js} +1 -1
  86. package/dist/app/assets/{dns-zone-file-DrtEuPTT.js → dns-zone-file-CQ5FJ0e2.js} +1 -1
  87. package/dist/app/assets/{docker-2GV5UON2.js → docker-C_jKEoBB.js} +1 -1
  88. package/dist/app/assets/{dot-OL5v0gu4.js → dot-UuhFwEC4.js} +1 -1
  89. package/dist/app/assets/{ebnf-C9eB4mQh.js → ebnf-v-JYoSll.js} +1 -1
  90. package/dist/app/assets/{editorconfig-Bt1KhC9s.js → editorconfig-Be3ygJWd.js} +1 -1
  91. package/dist/app/assets/{eiffel-5tZX-H1U.js → eiffel-wc_Ly8vK.js} +1 -1
  92. package/dist/app/assets/{ejs-5X_EH25G.js → ejs-DkUkLWO_.js} +1 -1
  93. package/dist/app/assets/{elixir-B3cIfaev.js → elixir-D4YWMnOb.js} +1 -1
  94. package/dist/app/assets/{elm-BZzmZArh.js → elm-DvpgkmZw.js} +1 -1
  95. package/dist/app/assets/{erDiagram-SMLLAGMA-D6XJaFtW.js → erDiagram-SMLLAGMA-DeYRxjbM.js} +1 -1
  96. package/dist/app/assets/{erb-B3vztRAF.js → erb-BrK-PMgA.js} +1 -1
  97. package/dist/app/assets/{erlang-ViBllQb_.js → erlang-BYb5M5Pb.js} +1 -1
  98. package/dist/app/assets/{etlua-CLh8MAjG.js → etlua-Bhe3IDc-.js} +1 -1
  99. package/dist/app/assets/{excel-formula-us8LQ5A8.js → excel-formula-jODZlBfX.js} +1 -1
  100. package/dist/app/assets/{factor-Sxzieg9m.js → factor-BKsD6d0K.js} +1 -1
  101. package/dist/app/assets/{false-CNugF9H4.js → false-CcGNJYns.js} +1 -1
  102. package/dist/app/assets/{firestore-security-rules-Xl5Y-ePD.js → firestore-security-rules-5vyxJaeJ.js} +1 -1
  103. package/dist/app/assets/{flow-275bTxGc.js → flow-NU1izkCa.js} +1 -1
  104. package/dist/app/assets/{flowDiagram-DWJPFMVM-riJvcRDk.js → flowDiagram-DWJPFMVM-Bj0SYU-k.js} +1 -1
  105. package/dist/app/assets/{fortran-Dzu99g0z.js → fortran-DCGTQjju.js} +1 -1
  106. package/dist/app/assets/{fsharp-D0oFScfK.js → fsharp-DNhO6FM-.js} +1 -1
  107. package/dist/app/assets/{ftl-CgLUYfhw.js → ftl-P_p2wyPG.js} +1 -1
  108. package/dist/app/assets/{ganttDiagram-T4ZO3ILL-DD-HGvMl.js → ganttDiagram-T4ZO3ILL-Dv-WNsgb.js} +1 -1
  109. package/dist/app/assets/{gap-B44Er8-4.js → gap-DgF9ZGYZ.js} +1 -1
  110. package/dist/app/assets/{gcode-DuMJg2M0.js → gcode-CMhuYhvh.js} +1 -1
  111. package/dist/app/assets/{gdscript-x-7hd2Cg.js → gdscript-BaNvmSXL.js} +1 -1
  112. package/dist/app/assets/{gedcom-BMCTbYS6.js → gedcom-BLjWW8zc.js} +1 -1
  113. package/dist/app/assets/{gherkin-BcBvM988.js → gherkin-BxsMbJgE.js} +1 -1
  114. package/dist/app/assets/{git-BTGg5sN4.js → git-C3JKKGbu.js} +1 -1
  115. package/dist/app/assets/{gitGraphDiagram-UUTBAWPF-b-kntfTC.js → gitGraphDiagram-UUTBAWPF-antOmae7.js} +1 -1
  116. package/dist/app/assets/{glsl-DByr37nv.js → glsl-Dy963NrS.js} +1 -1
  117. package/dist/app/assets/{gml-36I_9f_U.js → gml-RHKUDQYR.js} +1 -1
  118. package/dist/app/assets/{gn-BLDlPwNQ.js → gn-B5wX0kjQ.js} +1 -1
  119. package/dist/app/assets/{go-Boj1uPSx.js → go-BO0hAT1N.js} +1 -1
  120. package/dist/app/assets/{go-module-L2WDzHgB.js → go-module-C2Fr-9ms.js} +1 -1
  121. package/dist/app/assets/{graph-BYtz-_6s.js → graph-DLqezY1N.js} +1 -1
  122. package/dist/app/assets/{graphql-BfN-CNvc.js → graphql-D58aRI9g.js} +1 -1
  123. package/dist/app/assets/{groovy-Di6yQ_XB.js → groovy-IGpaqhY4.js} +1 -1
  124. package/dist/app/assets/{haml-CJKYBDrb.js → haml-C2z2yhSa.js} +1 -1
  125. package/dist/app/assets/{handlebars-C_d7SzSb.js → handlebars-BobMlUhh.js} +1 -1
  126. package/dist/app/assets/{haskell-DvCoQrPY.js → haskell-nIuVVanU.js} +1 -1
  127. package/dist/app/assets/{haxe-g-aQ5l_r.js → haxe-D5efufya.js} +1 -1
  128. package/dist/app/assets/{hcl-B2sKOa6X.js → hcl-D9KAZKAO.js} +1 -1
  129. package/dist/app/assets/{hlsl-DWW7PgMK.js → hlsl-BFWBj6lA.js} +1 -1
  130. package/dist/app/assets/{hoon-Cgs2pF0p.js → hoon-B5vc2PPa.js} +1 -1
  131. package/dist/app/assets/{hpkp-PIZ7CodS.js → hpkp-X9Vy-aP4.js} +1 -1
  132. package/dist/app/assets/{hsts-Bdp-yuRT.js → hsts-BTHtjxYA.js} +1 -1
  133. package/dist/app/assets/{http-VYp76tRU.js → http-D93SJiT9.js} +1 -1
  134. package/dist/app/assets/{ichigojam-DvtKARkc.js → ichigojam-DFGOLrmf.js} +1 -1
  135. package/dist/app/assets/{icon-d06F6rDq.js → icon-BsJxVaoC.js} +1 -1
  136. package/dist/app/assets/{icu-message-format-aVC9gogJ.js → icu-message-format-C0hqHQFf.js} +1 -1
  137. package/dist/app/assets/{idris-BQ2Vr1Lo.js → idris-D_XFEa4Y.js} +1 -1
  138. package/dist/app/assets/{iecst-o62IQ8Ar.js → iecst-BBDx_Apd.js} +1 -1
  139. package/dist/app/assets/{ignore-CXf2VZ3C.js → ignore-5mrYyBCy.js} +1 -1
  140. package/dist/app/assets/{index-KkR7szpv.js → index-OJL54NcI.js} +170 -170
  141. package/dist/app/assets/index-s5_akYUB.css +1 -0
  142. package/dist/app/assets/{infoDiagram-42DDH7IO-BFBpKPZd.js → infoDiagram-42DDH7IO-DHNCTrQo.js} +1 -1
  143. package/dist/app/assets/{inform7-CsQNRaGw.js → inform7-D_BK4Whb.js} +1 -1
  144. package/dist/app/assets/{ini-BlQytVce.js → ini-DHL1U3zm.js} +1 -1
  145. package/dist/app/assets/{io-Bo6fwZ5O.js → io-Bw7TS_7w.js} +1 -1
  146. package/dist/app/assets/{ishikawaDiagram-UXIWVN3A-D5AkPKrc.js → ishikawaDiagram-UXIWVN3A-CjewUobx.js} +1 -1
  147. package/dist/app/assets/{j-Cz5UUgV-.js → j-DfX-jMbV.js} +1 -1
  148. package/dist/app/assets/{java-CjUD3NXn.js → java-BldkMImw.js} +1 -1
  149. package/dist/app/assets/{javadoc-yF8ZVFyi.js → javadoc-6dOM24mQ.js} +1 -1
  150. package/dist/app/assets/{javadoclike-DnQ7gClD.js → javadoclike-BHmZlS5e.js} +1 -1
  151. package/dist/app/assets/{javascript-PRMAjM-s.js → javascript-FvrzCcvc.js} +1 -1
  152. package/dist/app/assets/{javastacktrace-C6-F9CMW.js → javastacktrace-Byn0DB0K.js} +1 -1
  153. package/dist/app/assets/{jexl-oI1gkWTn.js → jexl-CB5kP-Am.js} +1 -1
  154. package/dist/app/assets/{jolie-KHDj467I.js → jolie-C7Q5mImX.js} +1 -1
  155. package/dist/app/assets/{journeyDiagram-VCZTEJTY-DgMvhqym.js → journeyDiagram-VCZTEJTY-DD8qNzmh.js} +1 -1
  156. package/dist/app/assets/{jq-CqB-vLgA.js → jq-C9deMLmZ.js} +1 -1
  157. package/dist/app/assets/{js-extras--LnkBZGI.js → js-extras-Brhyk9ef.js} +1 -1
  158. package/dist/app/assets/{js-templates-CdUH3dZg.js → js-templates-DhpXMSuF.js} +1 -1
  159. package/dist/app/assets/{jsdoc-C8SPD3A9.js → jsdoc-BEesq6va.js} +1 -1
  160. package/dist/app/assets/{json-CCZ95ADF.js → json-CRGHFhSS.js} +1 -1
  161. package/dist/app/assets/{json5-CQoP6QWS.js → json5-CbPQgQz7.js} +1 -1
  162. package/dist/app/assets/{jsonp-BzvcroET.js → jsonp-BBjDy5AO.js} +1 -1
  163. package/dist/app/assets/{jsstacktrace-D3CXOSM-.js → jsstacktrace-CcOPcdH3.js} +1 -1
  164. package/dist/app/assets/{jsx-Bd3mMffB.js → jsx-DRgBFrjX.js} +1 -1
  165. package/dist/app/assets/{julia-qBdVr2Tr.js → julia-DAe7WbG-.js} +1 -1
  166. package/dist/app/assets/{kanban-definition-6JOO6SKY-DPXkILDM.js → kanban-definition-6JOO6SKY-DgTSO2X8.js} +1 -1
  167. package/dist/app/assets/{keepalived-FNAJGQz5.js → keepalived-COsmSeDV.js} +1 -1
  168. package/dist/app/assets/{keyman-B0NqoQM-.js → keyman-Biz_0q7B.js} +1 -1
  169. package/dist/app/assets/{kotlin-CdWWxHY0.js → kotlin-C3V8Z8W0.js} +1 -1
  170. package/dist/app/assets/{kumir-bAKuoUwp.js → kumir-clIi7e8-.js} +1 -1
  171. package/dist/app/assets/{kusto-D1hPCkmo.js → kusto-BhEtzjY8.js} +1 -1
  172. package/dist/app/assets/{latex-BYk1hc9y.js → latex-kWox6R5Q.js} +1 -1
  173. package/dist/app/assets/{latte-BWv6hwOU.js → latte-C8Xd4YKa.js} +1 -1
  174. package/dist/app/assets/{layout-2Js2q7Wp.js → layout-CD5_V8sq.js} +1 -1
  175. package/dist/app/assets/{less-wnHPSvJJ.js → less-8ceLguvR.js} +1 -1
  176. package/dist/app/assets/{lilypond-xuX4YO1U.js → lilypond-CfYHEM-K.js} +1 -1
  177. package/dist/app/assets/{linear-B6WywDat.js → linear-B5jHFagM.js} +1 -1
  178. package/dist/app/assets/{liquid-xFGU1AAd.js → liquid-BJ6eYcfk.js} +1 -1
  179. package/dist/app/assets/{lisp-DjvMW89a.js → lisp--smLUoul.js} +1 -1
  180. package/dist/app/assets/{livescript-D5MDpvjh.js → livescript-BBflhyer.js} +1 -1
  181. package/dist/app/assets/{llvm-BTbu6b_B.js → llvm-Stc38VbV.js} +1 -1
  182. package/dist/app/assets/{log-BXtPvqUh.js → log-Dl9NGCxx.js} +1 -1
  183. package/dist/app/assets/{lolcode-Cg2KO8Bk.js → lolcode-7yqzBped.js} +1 -1
  184. package/dist/app/assets/{lua-D1_Kwv1l.js → lua-BEWp6yVC.js} +1 -1
  185. package/dist/app/assets/{magma-DT5ABiea.js → magma-a1ZYdqHu.js} +1 -1
  186. package/dist/app/assets/{makefile-B0kz2zIF.js → makefile-QpxduTfi.js} +1 -1
  187. package/dist/app/assets/{markdown-Ccqy3gK-.js → markdown-Dr9rg3gd.js} +1 -1
  188. package/dist/app/assets/{markup-B-Gm3D06.js → markup-DWdbcYGh.js} +1 -1
  189. package/dist/app/assets/{markup-templating-CVIiYen0.js → markup-templating-BduvWqLe.js} +1 -1
  190. package/dist/app/assets/{matlab-CpRokG-g.js → matlab-C9LyN81W.js} +1 -1
  191. package/dist/app/assets/{maxscript-CifzwyQN.js → maxscript-BMf24IEz.js} +1 -1
  192. package/dist/app/assets/{mel-CyTX6M-N.js → mel-C_j2S2hb.js} +1 -1
  193. package/dist/app/assets/{mermaid-DnF0NJk0.js → mermaid-G8stp4Fu.js} +1 -1
  194. package/dist/app/assets/{min-CeO0o-VZ.js → min-BGvlJ2dI.js} +1 -1
  195. package/dist/app/assets/{mindmap-definition-QFDTVHPH-C1GLNszO.js → mindmap-definition-QFDTVHPH-Dxkf-h1G.js} +1 -1
  196. package/dist/app/assets/{mizar-DX-L7mf3.js → mizar-J5U-ieUu.js} +1 -1
  197. package/dist/app/assets/{mongodb-CrNBr4YD.js → mongodb-DsLKEq_k.js} +1 -1
  198. package/dist/app/assets/{monkey-EVsyFzXp.js → monkey-lZP0TIai.js} +1 -1
  199. package/dist/app/assets/{moonscript-Bb5VMmq0.js → moonscript-OiCHzZ6_.js} +1 -1
  200. package/dist/app/assets/{n1ql-B8avGgLU.js → n1ql-C6sbE8_e.js} +1 -1
  201. package/dist/app/assets/{n4js-BA_CeBpN.js → n4js-BpPLTwi3.js} +1 -1
  202. package/dist/app/assets/{nand2tetris-hdl-BNrrwWv7.js → nand2tetris-hdl-BONzgEmL.js} +1 -1
  203. package/dist/app/assets/{naniscript-PcEQKYGG.js → naniscript-DmYZ1vD6.js} +1 -1
  204. package/dist/app/assets/{nasm-BF2RPhuG.js → nasm-BfiJTfj8.js} +1 -1
  205. package/dist/app/assets/{neon-BH4eKGLv.js → neon-CM742PO-.js} +1 -1
  206. package/dist/app/assets/{nevod-DLUuPv3n.js → nevod-Dlk8fgIJ.js} +1 -1
  207. package/dist/app/assets/{nginx-Fnshx0R8.js → nginx-BZ-0DFHd.js} +1 -1
  208. package/dist/app/assets/{nim-D0A0og2Z.js → nim-CU13w-pb.js} +1 -1
  209. package/dist/app/assets/{nix-Bon-hCg-.js → nix-DKrd4S8j.js} +1 -1
  210. package/dist/app/assets/{nsis-B0Op3uDI.js → nsis-B6Grq7ob.js} +1 -1
  211. package/dist/app/assets/{objectivec-CI9W2RmC.js → objectivec-Dbl3oSVf.js} +1 -1
  212. package/dist/app/assets/{ocaml-CPuytBAo.js → ocaml-Dp6vkH1l.js} +1 -1
  213. package/dist/app/assets/{opencl-ckicWmRb.js → opencl-BGEl-B5f.js} +1 -1
  214. package/dist/app/assets/{openqasm-DNNaR-Mb.js → openqasm-CBrpfqoP.js} +1 -1
  215. package/dist/app/assets/{oz-Cp5S2lvu.js → oz-Bcy_Q3m9.js} +1 -1
  216. package/dist/app/assets/{parigp-BiU88-BW.js → parigp-C8xRJQCD.js} +1 -1
  217. package/dist/app/assets/{parser-BJoKleAv.js → parser-Cey9DM6y.js} +1 -1
  218. package/dist/app/assets/{pascal-CcE4xcIX.js → pascal-l6HUvzh7.js} +1 -1
  219. package/dist/app/assets/{pascaligo-r-ZE34N3.js → pascaligo-B0R2oVyK.js} +1 -1
  220. package/dist/app/assets/{pcaxis-CW4NowQv.js → pcaxis-B7gTfCp3.js} +1 -1
  221. package/dist/app/assets/{peoplecode-Bbokkn0k.js → peoplecode-BrynhEhk.js} +1 -1
  222. package/dist/app/assets/{perl-NWBFpbg8.js → perl-DGnem1ta.js} +1 -1
  223. package/dist/app/assets/{php-extras-DvwbSAqp.js → php-extras-UxJ7EW_B.js} +1 -1
  224. package/dist/app/assets/{php-DzJJC1FF.js → php-ymrnn-Sa.js} +1 -1
  225. package/dist/app/assets/{phpdoc-vc489EfZ.js → phpdoc-D9_wAKK9.js} +1 -1
  226. package/dist/app/assets/{pieDiagram-DEJITSTG-DakoqX91.js → pieDiagram-DEJITSTG-DQU88qux.js} +1 -1
  227. package/dist/app/assets/{plsql-BSYYydG4.js → plsql-DAA7FuKL.js} +1 -1
  228. package/dist/app/assets/{powerquery-TIsxOi6u.js → powerquery-iAxKW4DJ.js} +1 -1
  229. package/dist/app/assets/{powershell-Bh2wJ04E.js → powershell-CWnnAMh5.js} +1 -1
  230. package/dist/app/assets/{processing-0Xg8ooVg.js → processing-Fx5vM2Rk.js} +1 -1
  231. package/dist/app/assets/{prolog-CxppYjwG.js → prolog-MDMz_07H.js} +1 -1
  232. package/dist/app/assets/{promql-M_6Fk7_i.js → promql-pDapTiOR.js} +1 -1
  233. package/dist/app/assets/{properties-DaA3ENH6.js → properties-Cq5vAXr4.js} +1 -1
  234. package/dist/app/assets/{protobuf-C7yrawyt.js → protobuf-BSKn03IB.js} +1 -1
  235. package/dist/app/assets/{psl-D7EDqlli.js → psl-DJWnJ0aZ.js} +1 -1
  236. package/dist/app/assets/{pug-CqBJblJn.js → pug-6thMZc-l.js} +1 -1
  237. package/dist/app/assets/{puppet-Z388LiOc.js → puppet-DcBfOA0r.js} +1 -1
  238. package/dist/app/assets/{pure-CXCKqVIH.js → pure-BMCCjO23.js} +1 -1
  239. package/dist/app/assets/{purebasic-CH-UTkQE.js → purebasic-DUfq0bVz.js} +1 -1
  240. package/dist/app/assets/{purescript-DvOvPLcm.js → purescript-Bmj-jbV7.js} +1 -1
  241. package/dist/app/assets/{q-CTsCA7pz.js → q-o6FC2Oci.js} +1 -1
  242. package/dist/app/assets/{qml-C2L45_tT.js → qml-CaBbPt0f.js} +1 -1
  243. package/dist/app/assets/{qore-CgIwfQn-.js → qore-C0fJNj2s.js} +1 -1
  244. package/dist/app/assets/{qsharp-Cfohf27J.js → qsharp-nrwk7Iu2.js} +1 -1
  245. package/dist/app/assets/{quadrantDiagram-34T5L4WZ-BJHhj_jc.js → quadrantDiagram-34T5L4WZ-DQQGChO4.js} +1 -1
  246. package/dist/app/assets/{r-C5o21RDe.js → r-s3d67ipT.js} +1 -1
  247. package/dist/app/assets/{racket-CN9RmGia.js → racket-CvnxUTxS.js} +1 -1
  248. package/dist/app/assets/{reason-C0TktVj3.js → reason-abnvbDHw.js} +1 -1
  249. package/dist/app/assets/{regex-BlijmS7y.js → regex-Dyp7nyFE.js} +1 -1
  250. package/dist/app/assets/{rego-D8yKAPUb.js → rego-D9o_M1Kt.js} +1 -1
  251. package/dist/app/assets/{renpy-HRBI32Rj.js → renpy-P-s55mrw.js} +1 -1
  252. package/dist/app/assets/{requirementDiagram-MS252O5E-DlLBwibk.js → requirementDiagram-MS252O5E-CQyaMifY.js} +1 -1
  253. package/dist/app/assets/{rest--RXtECt5.js → rest-CJGNsPIO.js} +1 -1
  254. package/dist/app/assets/{rip-mE2Wb308.js → rip--_Kjyshk.js} +1 -1
  255. package/dist/app/assets/{roboconf-DRTv7VeG.js → roboconf-CzO4IdEr.js} +1 -1
  256. package/dist/app/assets/{robotframework-BnkzJa4T.js → robotframework-CqMBjau5.js} +1 -1
  257. package/dist/app/assets/{ruby-CbnYMgfx.js → ruby-CcbP52GS.js} +1 -1
  258. package/dist/app/assets/{rust-D9ZEey-F.js → rust-BDcJmAdg.js} +1 -1
  259. package/dist/app/assets/{sankeyDiagram-XADWPNL6-CQ0D4FEy.js → sankeyDiagram-XADWPNL6-BR5ykQyP.js} +1 -1
  260. package/dist/app/assets/{sas-DEOAT5T8.js → sas-6ZRrxGY4.js} +1 -1
  261. package/dist/app/assets/{sass-CFnXYw-w.js → sass-LQWASCzx.js} +1 -1
  262. package/dist/app/assets/{scala-Cdyre3LC.js → scala-dLVC34jC.js} +1 -1
  263. package/dist/app/assets/{scheme-C7TzUGNb.js → scheme-ljjM-kw4.js} +1 -1
  264. package/dist/app/assets/{scss-DqOdGhXG.js → scss-BjZr9V6H.js} +1 -1
  265. package/dist/app/assets/{sequenceDiagram-FGHM5R23-Cliyp3uP.js → sequenceDiagram-FGHM5R23-C_CfyMdO.js} +1 -1
  266. package/dist/app/assets/{shell-session-C18Fh-Mo.js → shell-session-DN7Q5cOF.js} +1 -1
  267. package/dist/app/assets/{smali-Ba-NYTBy.js → smali-BSUZr7sT.js} +1 -1
  268. package/dist/app/assets/{smalltalk-D4_HH51D.js → smalltalk-DNUcII1j.js} +1 -1
  269. package/dist/app/assets/{smarty-ve8WueLi.js → smarty-w3V8wJ8q.js} +1 -1
  270. package/dist/app/assets/{sml-B1M_nKm2.js → sml-DSoVmt8E.js} +1 -1
  271. package/dist/app/assets/{solidity-CIvnWntJ.js → solidity-r-lFr53c.js} +1 -1
  272. package/dist/app/assets/{solution-file-R2nyikO3.js → solution-file-BE-32cJO.js} +1 -1
  273. package/dist/app/assets/{soy-C_3SFG7Z.js → soy-BH05VIly.js} +1 -1
  274. package/dist/app/assets/{sparql-C2k3cKYf.js → sparql-BmZSbo8m.js} +1 -1
  275. package/dist/app/assets/{splunk-spl-ByIFO0Ol.js → splunk-spl-BBtbm42X.js} +1 -1
  276. package/dist/app/assets/{sqf-Vjg8AD_x.js → sqf-2G5YaT6f.js} +1 -1
  277. package/dist/app/assets/{sql-DjDfr2VA.js → sql-BhZO3kQ8.js} +1 -1
  278. package/dist/app/assets/{squirrel-BlPI0NeA.js → squirrel-6NG1h2a_.js} +1 -1
  279. package/dist/app/assets/{stan-EA9jmZ4B.js → stan-DlLgeY1f.js} +1 -1
  280. package/dist/app/assets/{stateDiagram-FHFEXIEX-BaG7xzbX.js → stateDiagram-FHFEXIEX-BK6LRJ_J.js} +1 -1
  281. package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-kcyyVi9f.js +1 -0
  282. package/dist/app/assets/{stylus-D2qHhNmV.js → stylus-9MANoABX.js} +1 -1
  283. package/dist/app/assets/{swift-CzeQnM5g.js → swift-rgVRgAqK.js} +1 -1
  284. package/dist/app/assets/{systemd-BL_IyZfy.js → systemd-DH306ton.js} +1 -1
  285. package/dist/app/assets/{t4-cs-BpATtOyQ.js → t4-cs-CqAUhraT.js} +1 -1
  286. package/dist/app/assets/{t4-templating-DarnFlia.js → t4-templating-CdnkPXAS.js} +1 -1
  287. package/dist/app/assets/{t4-vb-DlsRn2Cj.js → t4-vb-BGXI99pE.js} +1 -1
  288. package/dist/app/assets/{tap-swtRUhHW.js → tap-BAZJNbLK.js} +1 -1
  289. package/dist/app/assets/{tcl-C6d9gcmI.js → tcl-BOEKRtOp.js} +1 -1
  290. package/dist/app/assets/{textile-ue6vVR7H.js → textile-D7X0Sgyn.js} +1 -1
  291. package/dist/app/assets/{timeline-definition-GMOUNBTQ-CXGgHbNE.js → timeline-definition-GMOUNBTQ-B_LU5nDM.js} +1 -1
  292. package/dist/app/assets/{toml-DzLpuKYb.js → toml-CfzGw53h.js} +1 -1
  293. package/dist/app/assets/{tremor-DVx5napI.js → tremor-DYByk7ar.js} +1 -1
  294. package/dist/app/assets/{tt2-CfBoG1D5.js → tt2-CNCaPxhQ.js} +1 -1
  295. package/dist/app/assets/{turtle-03crZiO0.js → turtle-Bzs_at2N.js} +1 -1
  296. package/dist/app/assets/{twig-KE1rmB-l.js → twig-o2S4KNvE.js} +1 -1
  297. package/dist/app/assets/{typescript-BdOSmjy2.js → typescript-OnTd0yu3.js} +1 -1
  298. package/dist/app/assets/{typoscript-B28vjRk7.js → typoscript-CSmcWd5z.js} +1 -1
  299. package/dist/app/assets/{unrealscript-CTh7n3tv.js → unrealscript-cdAqsg1H.js} +1 -1
  300. package/dist/app/assets/{uorazor-QSSsUqoY.js → uorazor-It80EI2m.js} +1 -1
  301. package/dist/app/assets/{uri-Ui2KPDFN.js → uri-DsMi8rd7.js} +1 -1
  302. package/dist/app/assets/{v-Bbxf1ds9.js → v-B_-3T97Y.js} +1 -1
  303. package/dist/app/assets/{vala-BlgZ9glv.js → vala-Bege32x4.js} +1 -1
  304. package/dist/app/assets/{vbnet-DSInurkl.js → vbnet-DxWsZHmf.js} +1 -1
  305. package/dist/app/assets/{velocity-CpoD6Pq0.js → velocity-D8j2-t5T.js} +1 -1
  306. package/dist/app/assets/{vennDiagram-DHZGUBPP-Db2TlePA.js → vennDiagram-DHZGUBPP-DfQHyCke.js} +1 -1
  307. package/dist/app/assets/{verilog-yw--B1wx.js → verilog-BOdg-tSC.js} +1 -1
  308. package/dist/app/assets/{vhdl-CHBhtgXL.js → vhdl-Ce-nebP4.js} +1 -1
  309. package/dist/app/assets/{vim-CdXJ9W72.js → vim-Xv1PHa_E.js} +1 -1
  310. package/dist/app/assets/{visual-basic-DtOe-guS.js → visual-basic-Dxm3bTj4.js} +1 -1
  311. package/dist/app/assets/{wardley-RL74JXVD-CMqZ314T.js → wardley-RL74JXVD-B6u0ieiH.js} +1 -1
  312. package/dist/app/assets/{wardleyDiagram-NUSXRM2D-Diu9QsPH.js → wardleyDiagram-NUSXRM2D-DFue6QoQ.js} +1 -1
  313. package/dist/app/assets/{warpscript-DwowGOOS.js → warpscript-CXGTE5kB.js} +1 -1
  314. package/dist/app/assets/{wasm-BkLUVFyv.js → wasm-DkO34hDs.js} +1 -1
  315. package/dist/app/assets/{web-idl-C1GVfRt2.js → web-idl-BPq5ywx_.js} +1 -1
  316. package/dist/app/assets/{wiki-DURYVzTz.js → wiki-DPqgO5Yt.js} +1 -1
  317. package/dist/app/assets/{wolfram-CxvLgL5P.js → wolfram-BUOqMX2F.js} +1 -1
  318. package/dist/app/assets/{wren-BIEilPFe.js → wren-KDTDLR_P.js} +1 -1
  319. package/dist/app/assets/{xeora-CdxWp6rT.js → xeora-tlwdZtLE.js} +1 -1
  320. package/dist/app/assets/{xml-doc-Cqq7E-Uw.js → xml-doc-mP74j5_p.js} +1 -1
  321. package/dist/app/assets/{xojo-TX_aeoYq.js → xojo-C9Z4cCIr.js} +1 -1
  322. package/dist/app/assets/{xquery-CL0gFxeo.js → xquery-CNxehrYO.js} +1 -1
  323. package/dist/app/assets/{xychartDiagram-5P7HB3ND-BYaDUge6.js → xychartDiagram-5P7HB3ND-B_zEnzIh.js} +1 -1
  324. package/dist/app/assets/{yaml-lCG0Z7vx.js → yaml-CYOcRzsc.js} +1 -1
  325. package/dist/app/assets/{yang-BjQjWvFO.js → yang-CdXyvG4d.js} +1 -1
  326. package/dist/app/assets/{zig-DMlo7Ol7.js → zig-DisfpEah.js} +1 -1
  327. package/dist/app/index.html +2 -2
  328. package/dist/index.cjs +704 -659
  329. package/dist/index.js +704 -659
  330. package/package.json +2 -2
  331. package/dist/app/assets/channel-BFsqVDof.js +0 -1
  332. package/dist/app/assets/classDiagram-6PBFFD2Q-Bn8c7G_r.js +0 -1
  333. package/dist/app/assets/classDiagram-v2-HSJHXN6E-Bn8c7G_r.js +0 -1
  334. package/dist/app/assets/clone-IlBC1DaN.js +0 -1
  335. package/dist/app/assets/index-ByruneYs.css +0 -1
  336. package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-CFVaPbpw.js +0 -1
package/dist/index.js CHANGED
@@ -11722,7 +11722,7 @@ function appendQuery(path, params) {
11722
11722
  const query = params.toString();
11723
11723
  return query ? `${path}?${query}` : path;
11724
11724
  }
11725
- function buildMcpAppReviveParams(data) {
11725
+ function buildMcpAppReviveParams(data, options) {
11726
11726
  const params = new URLSearchParams();
11727
11727
  const add = (key, value) => {
11728
11728
  if (value) {
@@ -11735,15 +11735,16 @@ function buildMcpAppReviveParams(data) {
11735
11735
  add("toolCallId", data.toolCallId);
11736
11736
  add("resourceUri", data.resourceUri);
11737
11737
  add("title", typeof data.title === "string" ? data.title : void 0);
11738
- add("token", data.appInstanceToken);
11738
+ add("messageId", options?.messageId);
11739
+ add("token", options?.appInstanceToken ?? data.appInstanceToken);
11739
11740
  return params;
11740
11741
  }
11741
- function buildMcpAppEndpointPath(data, endpoint) {
11742
+ function buildMcpAppEndpointPath(data, endpoint, options) {
11742
11743
  return appendQuery(
11743
11744
  `/api/xpert-toolset/mcp-apps/${encodeURIComponent(
11744
11745
  data.appInstanceId
11745
11746
  )}/${endpoint}`,
11746
- buildMcpAppReviveParams(data)
11747
+ buildMcpAppReviveParams(data, options)
11747
11748
  );
11748
11749
  }
11749
11750
  function escapeHtmlAttribute(value) {
@@ -12202,6 +12203,7 @@ function normalizeMcpAppResourceResponse(value, data) {
12202
12203
  uri: readString3(raw.uri),
12203
12204
  mimeType: readString3(raw.mimeType),
12204
12205
  html,
12206
+ appInstanceToken: readString3(raw.appInstanceToken),
12205
12207
  resourceUri: readString3(raw.resourceUri),
12206
12208
  title: resourceInfo.title,
12207
12209
  description: resourceInfo.description,
@@ -12247,6 +12249,7 @@ function isMcpAppComponentData(data) {
12247
12249
  }
12248
12250
  function McpAppMessage({
12249
12251
  data,
12252
+ messageId,
12250
12253
  className
12251
12254
  }) {
12252
12255
  const { i18n: i18n2 } = useChatkitTranslation();
@@ -12262,6 +12265,7 @@ function McpAppMessage({
12262
12265
  const sentInitialResultRef = React35.useRef(false);
12263
12266
  const modelContextRef = React35.useRef(null);
12264
12267
  const [resource, setResource] = React35.useState(null);
12268
+ const [runtimeAppInstanceToken, setRuntimeAppInstanceToken] = React35.useState(data.appInstanceToken);
12265
12269
  const [srcDoc, setSrcDoc] = React35.useState(null);
12266
12270
  const [height, setHeight] = React35.useState(420);
12267
12271
  const [error, setError] = React35.useState(null);
@@ -12269,16 +12273,21 @@ function McpAppMessage({
12269
12273
  const resourceUrl = React35.useMemo(
12270
12274
  () => buildXpertApiUrl(
12271
12275
  apiUrl,
12272
- buildMcpAppEndpointPath(data, "resource")
12276
+ buildMcpAppEndpointPath(data, "resource", {
12277
+ messageId
12278
+ })
12273
12279
  ),
12274
- [apiUrl, data]
12280
+ [apiUrl, data, messageId]
12275
12281
  );
12276
12282
  const rpcUrl = React35.useMemo(
12277
12283
  () => buildXpertApiUrl(
12278
12284
  apiUrl,
12279
- buildMcpAppEndpointPath(data, "rpc")
12285
+ buildMcpAppEndpointPath(data, "rpc", {
12286
+ appInstanceToken: runtimeAppInstanceToken,
12287
+ messageId
12288
+ })
12280
12289
  ),
12281
- [apiUrl, data]
12290
+ [apiUrl, data, messageId, runtimeAppInstanceToken]
12282
12291
  );
12283
12292
  const postToApp = React35.useCallback((message) => {
12284
12293
  iframeRef.current?.contentWindow?.postMessage(message, "*");
@@ -12335,6 +12344,7 @@ function McpAppMessage({
12335
12344
  const controller = new AbortController();
12336
12345
  initializedRef.current = false;
12337
12346
  sentInitialResultRef.current = false;
12347
+ setRuntimeAppInstanceToken(data.appInstanceToken);
12338
12348
  setIsLoading(true);
12339
12349
  setError(null);
12340
12350
  setResource(null);
@@ -12353,6 +12363,9 @@ function McpAppMessage({
12353
12363
  data
12354
12364
  );
12355
12365
  setResource(normalizedResource);
12366
+ setRuntimeAppInstanceToken(
12367
+ normalizedResource.appInstanceToken ?? data.appInstanceToken
12368
+ );
12356
12369
  const hostLocale = normalizeHostLocale(i18n2.language);
12357
12370
  setSrcDoc(
12358
12371
  injectMcpAppTheme(
@@ -12380,6 +12393,7 @@ function McpAppMessage({
12380
12393
  authenticatedFetch,
12381
12394
  data,
12382
12395
  data.appInstanceId,
12396
+ data.appInstanceToken,
12383
12397
  data.csp,
12384
12398
  i18n2.language,
12385
12399
  resourceUrl
@@ -12926,7 +12940,7 @@ function renderContentItem(content, index, message, lookupMessages, options) {
12926
12940
  return /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42(WidgetMessage, { messageId, data: content.data }) }, content.id ?? `widget-${index}`);
12927
12941
  }
12928
12942
  if (isMcpAppComponent(content)) {
12929
- return /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42(McpAppMessage, { data: content.data }) }, content.id ?? `mcp-app-${index}`);
12943
+ return /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42(McpAppMessage, { messageId, data: content.data }) }, content.id ?? `mcp-app-${index}`);
12930
12944
  }
12931
12945
  if (getComponentMessagePresentation(content, getToolStepData(content)) === "grouped-step") {
12932
12946
  return /* @__PURE__ */ jsx42("div", { children: /* @__PURE__ */ jsx42(
@@ -17194,6 +17208,13 @@ function Chat({
17194
17208
  fallbackTitle: t("history.threadFallback")
17195
17209
  });
17196
17210
  const assistantTitle = assistantName || resolvedTitle;
17211
+ const layoutMaxWidth = options?.layout?.maxWidth;
17212
+ const chatColumnStyle = React49.useMemo(() => {
17213
+ if (layoutMaxWidth === void 0 || layoutMaxWidth === null || layoutMaxWidth === "") {
17214
+ return void 0;
17215
+ }
17216
+ return { maxWidth: layoutMaxWidth };
17217
+ }, [layoutMaxWidth]);
17197
17218
  return /* @__PURE__ */ jsxs37(
17198
17219
  UploadDroppedFiles,
17199
17220
  {
@@ -17209,309 +17230,325 @@ function Chat({
17209
17230
  className
17210
17231
  ),
17211
17232
  children: [
17212
- /* @__PURE__ */ jsxs37("div", { className: "flex items-center justify-between border-b p-2 sticky top-0 z-10 bg-background", children: [
17213
- /* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-3 overflow-hidden", children: [
17214
- /* @__PURE__ */ jsxs37("div", { className: "relative shrink-0", children: [
17215
- /* @__PURE__ */ jsx54(
17216
- ChatkitAvatar,
17217
- {
17218
- avatar: assistantAvatar,
17219
- className: "h-9 w-9 border border-border/60",
17220
- label: assistantTitle
17221
- }
17222
- ),
17223
- /* @__PURE__ */ jsx54("span", { className: "absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full border-2 border-background bg-green-500" })
17224
- ] }),
17225
- /* @__PURE__ */ jsxs37("div", { className: "truncate", children: [
17226
- /* @__PURE__ */ jsx54(
17227
- "h2",
17228
- {
17229
- className: "text-lg font-semibold truncate",
17230
- title: assistantTitle,
17231
- children: assistantTitle
17232
- }
17233
- ),
17234
- /* @__PURE__ */ jsx54("p", { className: "text-xs text-muted-foreground", children: t("chat.statusOnline") })
17235
- ] })
17236
- ] }),
17237
- /* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-1", children: [
17238
- canMinimizeToPet && /* @__PURE__ */ jsxs37(Tooltip, { children: [
17239
- /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54("span", { className: "inline-flex h-8 w-8", children: /* @__PURE__ */ jsx54(
17240
- "button",
17241
- {
17242
- type: "button",
17243
- onClick: handleMinimizeToPet,
17244
- className: cn(
17245
- "flex h-8 w-8 cursor-pointer items-center justify-center rounded-md",
17246
- "text-muted-foreground hover:text-foreground hover:bg-muted",
17247
- "transition-colors duration-150"
17233
+ /* @__PURE__ */ jsxs37(
17234
+ "div",
17235
+ {
17236
+ "data-slot": "chatkit-chat-header",
17237
+ className: "mx-auto flex w-full items-center justify-between border-b p-2 sticky top-0 z-10 bg-background",
17238
+ style: chatColumnStyle,
17239
+ children: [
17240
+ /* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-3 overflow-hidden", children: [
17241
+ /* @__PURE__ */ jsxs37("div", { className: "relative shrink-0", children: [
17242
+ /* @__PURE__ */ jsx54(
17243
+ ChatkitAvatar,
17244
+ {
17245
+ avatar: assistantAvatar,
17246
+ className: "h-9 w-9 border border-border/60",
17247
+ label: assistantTitle
17248
+ }
17248
17249
  ),
17249
- "aria-label": t("chat.minimizeToPet"),
17250
- children: /* @__PURE__ */ jsx54(Minus, { size: 16 })
17251
- }
17252
- ) }) }),
17253
- /* @__PURE__ */ jsx54(TooltipContent, { side: "bottom", children: t("chat.minimizeToPet") })
17254
- ] }),
17255
- /* @__PURE__ */ jsxs37(Tooltip, { children: [
17256
- /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54("span", { className: "inline-flex h-8 w-8", children: /* @__PURE__ */ jsx54(
17257
- "button",
17258
- {
17259
- type: "button",
17260
- onClick: () => setPetSettingsOpen(true),
17261
- className: cn(
17262
- "flex h-8 w-8 cursor-pointer items-center justify-center rounded-md",
17263
- "text-muted-foreground hover:text-foreground hover:bg-muted",
17264
- "transition-colors duration-150"
17250
+ /* @__PURE__ */ jsx54("span", { className: "absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full border-2 border-background bg-green-500" })
17251
+ ] }),
17252
+ /* @__PURE__ */ jsxs37("div", { className: "truncate", children: [
17253
+ /* @__PURE__ */ jsx54(
17254
+ "h2",
17255
+ {
17256
+ className: "text-lg font-semibold truncate",
17257
+ title: assistantTitle,
17258
+ children: assistantTitle
17259
+ }
17265
17260
  ),
17266
- "aria-label": t("settings.open"),
17267
- children: /* @__PURE__ */ jsx54(Settings2, { size: 16 })
17268
- }
17269
- ) }) }),
17270
- /* @__PURE__ */ jsx54(TooltipContent, { side: "bottom", children: t("settings.open") })
17271
- ] }),
17272
- history?.enabled !== false && /* @__PURE__ */ jsxs37(Fragment9, { children: [
17273
- /* @__PURE__ */ jsxs37(Tooltip, { children: [
17274
- /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54("span", { className: "inline-flex h-8 w-8", children: /* @__PURE__ */ jsx54(
17275
- "button",
17276
- {
17277
- type: "button",
17278
- onClick: handleNewThread,
17279
- disabled: missingConfig || isHistoryLoading,
17280
- className: cn(
17281
- "flex h-8 w-8 cursor-pointer items-center justify-center rounded-md",
17282
- "text-muted-foreground hover:text-foreground hover:bg-muted",
17283
- "transition-colors duration-150",
17284
- "disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed"
17285
- ),
17286
- "aria-label": t("history.newThread"),
17287
- children: /* @__PURE__ */ jsx54(Pencil4, { size: 16 })
17288
- }
17289
- ) }) }),
17290
- /* @__PURE__ */ jsx54(TooltipContent, { side: "bottom", children: t("history.newThread") })
17261
+ /* @__PURE__ */ jsx54("p", { className: "text-xs text-muted-foreground", children: t("chat.statusOnline") })
17262
+ ] })
17291
17263
  ] }),
17292
- /* @__PURE__ */ jsx54(
17293
- HistorySidebar,
17294
- {
17295
- threads,
17296
- currentThreadId: stream.threadId ?? void 0,
17297
- onNewThread: handleNewThread,
17298
- onSelectThread: handleSelectThread,
17299
- onDeleteThread: handleDeleteThread,
17300
- showDelete: history?.showDelete !== false,
17301
- disabled: missingConfig || isThreadsLoading || isHistoryLoading
17302
- }
17303
- )
17304
- ] })
17305
- ] })
17306
- ] }),
17307
- /* @__PURE__ */ jsxs37("div", { className: "flex-1 p-4", children: [
17308
- errorMessage && /* @__PURE__ */ jsx54("div", { className: "mb-4 rounded-lg border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive", children: errorMessage }),
17309
- historyError && /* @__PURE__ */ jsx54("div", { className: "mb-4 rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-900", children: historyError }),
17310
- showMissingConfig && /* @__PURE__ */ jsx54("div", { className: "mb-4 rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-900", children: missingConfigDetailMessage }),
17311
- isHistoryLoading && /* @__PURE__ */ jsx54("div", { className: "mb-4 rounded-lg border border-muted px-3 py-2 text-sm text-muted-foreground", children: t("chat.loadingThread") }),
17312
- messages.length === 0 && !canLoadMoreMessages ? /* @__PURE__ */ jsx54(
17313
- StartScreen,
17314
- {
17315
- startScreen,
17316
- onPromptClick: handlePromptClick,
17317
- onPromptEdit: handlePromptEdit,
17318
- promptSendDisabled: isSubmissionBlocked,
17319
- promptEditDisabled: isPromptEditDisabled
17320
- }
17321
- ) : /* @__PURE__ */ jsxs37("div", { className: "space-y-4", children: [
17322
- canLoadMoreMessages && /* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-3 py-1", children: [
17323
- /* @__PURE__ */ jsx54("div", { className: "h-px min-w-8 flex-1 bg-border" }),
17324
- /* @__PURE__ */ jsx54(
17325
- Button,
17264
+ /* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-1", children: [
17265
+ canMinimizeToPet && /* @__PURE__ */ jsxs37(Tooltip, { children: [
17266
+ /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54("span", { className: "inline-flex h-8 w-8", children: /* @__PURE__ */ jsx54(
17267
+ "button",
17268
+ {
17269
+ type: "button",
17270
+ onClick: handleMinimizeToPet,
17271
+ className: cn(
17272
+ "flex h-8 w-8 cursor-pointer items-center justify-center rounded-md",
17273
+ "text-muted-foreground hover:text-foreground hover:bg-muted",
17274
+ "transition-colors duration-150"
17275
+ ),
17276
+ "aria-label": t("chat.minimizeToPet"),
17277
+ children: /* @__PURE__ */ jsx54(Minus, { size: 16 })
17278
+ }
17279
+ ) }) }),
17280
+ /* @__PURE__ */ jsx54(TooltipContent, { side: "bottom", children: t("chat.minimizeToPet") })
17281
+ ] }),
17282
+ /* @__PURE__ */ jsxs37(Tooltip, { children: [
17283
+ /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54("span", { className: "inline-flex h-8 w-8", children: /* @__PURE__ */ jsx54(
17284
+ "button",
17285
+ {
17286
+ type: "button",
17287
+ onClick: () => setPetSettingsOpen(true),
17288
+ className: cn(
17289
+ "flex h-8 w-8 cursor-pointer items-center justify-center rounded-md",
17290
+ "text-muted-foreground hover:text-foreground hover:bg-muted",
17291
+ "transition-colors duration-150"
17292
+ ),
17293
+ "aria-label": t("settings.open"),
17294
+ children: /* @__PURE__ */ jsx54(Settings2, { size: 16 })
17295
+ }
17296
+ ) }) }),
17297
+ /* @__PURE__ */ jsx54(TooltipContent, { side: "bottom", children: t("settings.open") })
17298
+ ] }),
17299
+ history?.enabled !== false && /* @__PURE__ */ jsxs37(Fragment9, { children: [
17300
+ /* @__PURE__ */ jsxs37(Tooltip, { children: [
17301
+ /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54("span", { className: "inline-flex h-8 w-8", children: /* @__PURE__ */ jsx54(
17302
+ "button",
17303
+ {
17304
+ type: "button",
17305
+ onClick: handleNewThread,
17306
+ disabled: missingConfig || isHistoryLoading,
17307
+ className: cn(
17308
+ "flex h-8 w-8 cursor-pointer items-center justify-center rounded-md",
17309
+ "text-muted-foreground hover:text-foreground hover:bg-muted",
17310
+ "transition-colors duration-150",
17311
+ "disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed"
17312
+ ),
17313
+ "aria-label": t("history.newThread"),
17314
+ children: /* @__PURE__ */ jsx54(Pencil4, { size: 16 })
17315
+ }
17316
+ ) }) }),
17317
+ /* @__PURE__ */ jsx54(TooltipContent, { side: "bottom", children: t("history.newThread") })
17318
+ ] }),
17319
+ /* @__PURE__ */ jsx54(
17320
+ HistorySidebar,
17321
+ {
17322
+ threads,
17323
+ currentThreadId: stream.threadId ?? void 0,
17324
+ onNewThread: handleNewThread,
17325
+ onSelectThread: handleSelectThread,
17326
+ onDeleteThread: handleDeleteThread,
17327
+ showDelete: history?.showDelete !== false,
17328
+ disabled: missingConfig || isThreadsLoading || isHistoryLoading
17329
+ }
17330
+ )
17331
+ ] })
17332
+ ] })
17333
+ ]
17334
+ }
17335
+ ),
17336
+ /* @__PURE__ */ jsxs37(
17337
+ "div",
17338
+ {
17339
+ "data-slot": "chatkit-chat-content",
17340
+ className: "mx-auto w-full flex-1 p-4",
17341
+ style: chatColumnStyle,
17342
+ children: [
17343
+ errorMessage && /* @__PURE__ */ jsx54("div", { className: "mb-4 rounded-lg border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive", children: errorMessage }),
17344
+ historyError && /* @__PURE__ */ jsx54("div", { className: "mb-4 rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-900", children: historyError }),
17345
+ showMissingConfig && /* @__PURE__ */ jsx54("div", { className: "mb-4 rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-900", children: missingConfigDetailMessage }),
17346
+ isHistoryLoading && /* @__PURE__ */ jsx54("div", { className: "mb-4 rounded-lg border border-muted px-3 py-2 text-sm text-muted-foreground", children: t("chat.loadingThread") }),
17347
+ messages.length === 0 && !canLoadMoreMessages ? /* @__PURE__ */ jsx54(
17348
+ StartScreen,
17326
17349
  {
17327
- type: "button",
17328
- variant: "ghost",
17329
- size: "sm",
17330
- onClick: handleLoadMoreMessages,
17331
- disabled: isLoadingMoreMessages,
17332
- className: "h-7 px-2 text-xs font-medium text-muted-foreground hover:text-foreground",
17333
- children: isLoadingMoreMessages ? t("chat.loadingMoreMessages") : t("chat.loadMoreMessages")
17350
+ startScreen,
17351
+ onPromptClick: handlePromptClick,
17352
+ onPromptEdit: handlePromptEdit,
17353
+ promptSendDisabled: isSubmissionBlocked,
17354
+ promptEditDisabled: isPromptEditDisabled
17334
17355
  }
17335
- ),
17336
- /* @__PURE__ */ jsx54("div", { className: "h-px min-w-8 flex-1 bg-border" })
17337
- ] }),
17338
- messages.map((message, index) => {
17339
- const messageType = String(message.type);
17340
- const isAssistantMessage = messageType === "assistant" || messageType === "ai";
17341
- const isStreamingMessage = stream.isLoading && index === messages.length - 1;
17342
- const streamingStatus = isAssistantMessage ? getAssistantStreamingStatus(
17343
- {
17344
- ...message,
17345
- lastStreamOutputAt: lastStreamOutputAtRef.current
17346
- },
17347
- isStreamingMessage,
17348
- { now: streamingNow }
17349
- ) : null;
17350
- if (isAssistantMessage && !hasRenderableAssistantMessage(message) && !streamingStatus) {
17351
- return null;
17352
- }
17353
- const messageContent = typeof message.content === "string" ? message.content : Array.isArray(message.content) ? message.content.map((part) => formatMessageContent(part)).join("") : formatMessageContent(message.content);
17354
- const hasPlainRenderableContent = messageContent.trim().length > 0;
17355
- const humanMessage = message;
17356
- const humanReferences = humanMessage.references ?? [];
17357
- const humanAttachments = [
17358
- ...humanMessage.fileAssets ?? [],
17359
- ...humanMessage.attachments ?? []
17360
- ];
17361
- const humanRuntimeCapabilityOptions = message.type === "human" ? humanMessage.runtimeCapabilityOptions ?? getSelectedRuntimeCapabilityOptions(
17362
- getRecommendedRuntimeCapabilitiesSelection(
17363
- humanMessage.runtimeCapabilities
17364
- ),
17365
- runtimeCapabilityOptions
17366
- ) : [];
17367
- const hasHumanAttachments = message.type === "human" && humanAttachments.length > 0;
17368
- const canQuoteMessage = message.type === "human" || isAssistantMessage;
17369
- const quoteSource = message.type === "human" ? t("chat.youLabel") : assistantTitle;
17370
- if (!isAssistantMessage && !hasPlainRenderableContent && !hasHumanAttachments && humanRuntimeCapabilityOptions.length === 0 && humanReferences.length === 0) {
17371
- return null;
17372
- }
17373
- return /* @__PURE__ */ jsx54(
17374
- "div",
17375
- {
17376
- className: cn(
17377
- "group flex gap-3",
17378
- message.type === "human" ? "justify-end" : "justify-start -ml-1"
17379
- // AI messages: slightly closer to left
17356
+ ) : /* @__PURE__ */ jsxs37("div", { className: "space-y-4", children: [
17357
+ canLoadMoreMessages && /* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-3 py-1", children: [
17358
+ /* @__PURE__ */ jsx54("div", { className: "h-px min-w-8 flex-1 bg-border" }),
17359
+ /* @__PURE__ */ jsx54(
17360
+ Button,
17361
+ {
17362
+ type: "button",
17363
+ variant: "ghost",
17364
+ size: "sm",
17365
+ onClick: handleLoadMoreMessages,
17366
+ disabled: isLoadingMoreMessages,
17367
+ className: "h-7 px-2 text-xs font-medium text-muted-foreground hover:text-foreground",
17368
+ children: isLoadingMoreMessages ? t("chat.loadingMoreMessages") : t("chat.loadMoreMessages")
17369
+ }
17380
17370
  ),
17381
- children: /* @__PURE__ */ jsxs37(
17371
+ /* @__PURE__ */ jsx54("div", { className: "h-px min-w-8 flex-1 bg-border" })
17372
+ ] }),
17373
+ messages.map((message, index) => {
17374
+ const messageType = String(message.type);
17375
+ const isAssistantMessage = messageType === "assistant" || messageType === "ai";
17376
+ const isStreamingMessage = stream.isLoading && index === messages.length - 1;
17377
+ const streamingStatus = isAssistantMessage ? getAssistantStreamingStatus(
17378
+ {
17379
+ ...message,
17380
+ lastStreamOutputAt: lastStreamOutputAtRef.current
17381
+ },
17382
+ isStreamingMessage,
17383
+ { now: streamingNow }
17384
+ ) : null;
17385
+ if (isAssistantMessage && !hasRenderableAssistantMessage(message) && !streamingStatus) {
17386
+ return null;
17387
+ }
17388
+ const messageContent = typeof message.content === "string" ? message.content : Array.isArray(message.content) ? message.content.map((part) => formatMessageContent(part)).join("") : formatMessageContent(message.content);
17389
+ const hasPlainRenderableContent = messageContent.trim().length > 0;
17390
+ const humanMessage = message;
17391
+ const humanReferences = humanMessage.references ?? [];
17392
+ const humanAttachments = [
17393
+ ...humanMessage.fileAssets ?? [],
17394
+ ...humanMessage.attachments ?? []
17395
+ ];
17396
+ const humanRuntimeCapabilityOptions = message.type === "human" ? humanMessage.runtimeCapabilityOptions ?? getSelectedRuntimeCapabilityOptions(
17397
+ getRecommendedRuntimeCapabilitiesSelection(
17398
+ humanMessage.runtimeCapabilities
17399
+ ),
17400
+ runtimeCapabilityOptions
17401
+ ) : [];
17402
+ const hasHumanAttachments = message.type === "human" && humanAttachments.length > 0;
17403
+ const canQuoteMessage = message.type === "human" || isAssistantMessage;
17404
+ const quoteSource = message.type === "human" ? t("chat.youLabel") : assistantTitle;
17405
+ if (!isAssistantMessage && !hasPlainRenderableContent && !hasHumanAttachments && humanRuntimeCapabilityOptions.length === 0 && humanReferences.length === 0) {
17406
+ return null;
17407
+ }
17408
+ return /* @__PURE__ */ jsx54(
17382
17409
  "div",
17383
17410
  {
17384
17411
  className: cn(
17385
- "flex flex-col px-3 overflow-hidden",
17386
- isAssistantMessage && "min-w-0 flex-1"
17412
+ "group flex gap-3",
17413
+ message.type === "human" ? "justify-end" : "justify-start -ml-1"
17414
+ // AI messages: slightly closer to left
17387
17415
  ),
17388
- children: [
17389
- /* @__PURE__ */ jsx54(
17390
- "div",
17391
- {
17392
- ...canQuoteMessage ? {
17393
- "data-quote-message-id": message.id,
17394
- "data-quote-source": quoteSource
17395
- } : {},
17396
- className: cn(
17397
- "max-w-full rounded-2xl",
17398
- message.type === "human" ? "bg-primary text-primary-foreground px-4 py-2.5" : message.type === "system" ? "bg-muted text-muted-foreground text-xs px-4 py-2.5" : "py-1 text-chat-foreground"
17399
- // AI messages: use chat-specific foreground color
17400
- ),
17401
- children: isAssistantMessage ? /* @__PURE__ */ jsx54(
17402
- AssistantMessage,
17416
+ children: /* @__PURE__ */ jsxs37(
17417
+ "div",
17418
+ {
17419
+ className: cn(
17420
+ "flex flex-col px-3 overflow-hidden",
17421
+ isAssistantMessage && "min-w-0 flex-1"
17422
+ ),
17423
+ children: [
17424
+ /* @__PURE__ */ jsx54(
17425
+ "div",
17403
17426
  {
17404
- message: {
17405
- ...message,
17406
- type: "assistant"
17407
- },
17408
- messages: messages.slice(0, index + 1).map(
17409
- (item) => ({
17410
- ...item,
17411
- type: String(item.type) === "ai" ? "assistant" : item.type
17412
- })
17427
+ ...canQuoteMessage ? {
17428
+ "data-quote-message-id": message.id,
17429
+ "data-quote-source": quoteSource
17430
+ } : {},
17431
+ className: cn(
17432
+ "max-w-full rounded-2xl",
17433
+ message.type === "human" ? "bg-primary text-primary-foreground px-4 py-2.5" : message.type === "system" ? "bg-muted text-muted-foreground text-xs px-4 py-2.5" : "py-1 text-chat-foreground"
17434
+ // AI messages: use chat-specific foreground color
17413
17435
  ),
17436
+ children: isAssistantMessage ? /* @__PURE__ */ jsx54(
17437
+ AssistantMessage,
17438
+ {
17439
+ message: {
17440
+ ...message,
17441
+ type: "assistant"
17442
+ },
17443
+ messages: messages.slice(0, index + 1).map(
17444
+ (item) => ({
17445
+ ...item,
17446
+ type: String(item.type) === "ai" ? "assistant" : item.type
17447
+ })
17448
+ ),
17449
+ isStreaming: isStreamingMessage,
17450
+ streamingStatus,
17451
+ isThreadRunning: currentThreadIsRunning,
17452
+ organizationId: stream.organizationId,
17453
+ apiUrl: stream.apiUrl
17454
+ }
17455
+ ) : /* @__PURE__ */ jsxs37(Fragment9, { children: [
17456
+ message.type === "human" && humanRuntimeCapabilityOptions.length > 0 && /* @__PURE__ */ jsx54("div", { className: "mb-2 flex flex-wrap gap-1.5", children: humanRuntimeCapabilityOptions.map((option) => /* @__PURE__ */ jsxs37(
17457
+ "span",
17458
+ {
17459
+ className: "inline-flex max-w-full items-center gap-1 rounded-md bg-primary-foreground/20 px-2 py-1 text-xs font-medium text-primary-foreground",
17460
+ children: [
17461
+ /* @__PURE__ */ jsx54(
17462
+ RuntimeCapabilityIcon,
17463
+ {
17464
+ option,
17465
+ variant: "chip"
17466
+ }
17467
+ ),
17468
+ /* @__PURE__ */ jsx54("span", { className: "max-w-[9rem] truncate", children: option.label })
17469
+ ]
17470
+ },
17471
+ `${option.type}:${option.id}`
17472
+ )) }),
17473
+ message.type === "human" && humanReferences.length > 0 && /* @__PURE__ */ jsx54("div", { className: "mb-2 flex flex-wrap gap-1.5", children: humanReferences.map((reference) => /* @__PURE__ */ jsx54(
17474
+ ReferenceChip,
17475
+ {
17476
+ reference,
17477
+ variant: "message"
17478
+ },
17479
+ getReferenceKey(reference)
17480
+ )) }),
17481
+ message.type === "human" && humanAttachments.length > 0 && /* @__PURE__ */ jsx54("div", { className: "flex flex-wrap gap-1.5 mb-2", children: humanAttachments.map((file, fileIndex) => /* @__PURE__ */ jsxs37(
17482
+ "div",
17483
+ {
17484
+ className: "flex items-center gap-1.5 rounded-md bg-primary-foreground/20 px-2 py-1 text-xs",
17485
+ children: [
17486
+ /* @__PURE__ */ jsx54(FileText5, { size: 12 }),
17487
+ /* @__PURE__ */ jsx54("span", { className: "max-w-[100px] truncate", children: file.originalName ?? file.id })
17488
+ ]
17489
+ },
17490
+ fileIndex
17491
+ )) }),
17492
+ Array.isArray(message.content) ? message.content.map((part, partIndex) => /* @__PURE__ */ jsx54(
17493
+ "p",
17494
+ {
17495
+ className: "wrap-break-word text-sm leading-relaxed",
17496
+ children: formatMessageContent(part)
17497
+ },
17498
+ `${part.type}-${partIndex}`
17499
+ )) : /* @__PURE__ */ jsx54("span", { className: "wrap-break-word text-sm leading-relaxed", children: formatMessageContent(message.content) })
17500
+ ] })
17501
+ }
17502
+ ),
17503
+ /* @__PURE__ */ jsx54(
17504
+ MessageActions,
17505
+ {
17506
+ content: messageContent,
17507
+ isAssistant: isAssistantMessage,
17414
17508
  isStreaming: isStreamingMessage,
17415
- streamingStatus,
17416
- isThreadRunning: currentThreadIsRunning,
17417
- organizationId: stream.organizationId,
17418
- apiUrl: stream.apiUrl
17509
+ onRetry: isAssistantMessage && !stream.isLoading && index === messages.length - 1 ? () => handleRetry(index) : void 0
17419
17510
  }
17420
- ) : /* @__PURE__ */ jsxs37(Fragment9, { children: [
17421
- message.type === "human" && humanRuntimeCapabilityOptions.length > 0 && /* @__PURE__ */ jsx54("div", { className: "mb-2 flex flex-wrap gap-1.5", children: humanRuntimeCapabilityOptions.map((option) => /* @__PURE__ */ jsxs37(
17422
- "span",
17423
- {
17424
- className: "inline-flex max-w-full items-center gap-1 rounded-md bg-primary-foreground/20 px-2 py-1 text-xs font-medium text-primary-foreground",
17425
- children: [
17426
- /* @__PURE__ */ jsx54(
17427
- RuntimeCapabilityIcon,
17428
- {
17429
- option,
17430
- variant: "chip"
17431
- }
17432
- ),
17433
- /* @__PURE__ */ jsx54("span", { className: "max-w-[9rem] truncate", children: option.label })
17434
- ]
17435
- },
17436
- `${option.type}:${option.id}`
17437
- )) }),
17438
- message.type === "human" && humanReferences.length > 0 && /* @__PURE__ */ jsx54("div", { className: "mb-2 flex flex-wrap gap-1.5", children: humanReferences.map((reference) => /* @__PURE__ */ jsx54(
17439
- ReferenceChip,
17440
- {
17441
- reference,
17442
- variant: "message"
17443
- },
17444
- getReferenceKey(reference)
17445
- )) }),
17446
- message.type === "human" && humanAttachments.length > 0 && /* @__PURE__ */ jsx54("div", { className: "flex flex-wrap gap-1.5 mb-2", children: humanAttachments.map((file, fileIndex) => /* @__PURE__ */ jsxs37(
17447
- "div",
17448
- {
17449
- className: "flex items-center gap-1.5 rounded-md bg-primary-foreground/20 px-2 py-1 text-xs",
17450
- children: [
17451
- /* @__PURE__ */ jsx54(FileText5, { size: 12 }),
17452
- /* @__PURE__ */ jsx54("span", { className: "max-w-[100px] truncate", children: file.originalName ?? file.id })
17453
- ]
17454
- },
17455
- fileIndex
17456
- )) }),
17457
- Array.isArray(message.content) ? message.content.map((part, partIndex) => /* @__PURE__ */ jsx54(
17458
- "p",
17459
- {
17460
- className: "wrap-break-word text-sm leading-relaxed",
17461
- children: formatMessageContent(part)
17462
- },
17463
- `${part.type}-${partIndex}`
17464
- )) : /* @__PURE__ */ jsx54("span", { className: "wrap-break-word text-sm leading-relaxed", children: formatMessageContent(message.content) })
17465
- ] })
17466
- }
17467
- ),
17468
- /* @__PURE__ */ jsx54(
17469
- MessageActions,
17470
- {
17471
- content: messageContent,
17472
- isAssistant: isAssistantMessage,
17473
- isStreaming: isStreamingMessage,
17474
- onRetry: isAssistantMessage && !stream.isLoading && index === messages.length - 1 ? () => handleRetry(index) : void 0
17475
- }
17476
- )
17477
- ]
17511
+ )
17512
+ ]
17513
+ }
17514
+ )
17515
+ },
17516
+ message.id ?? `${message.type}-${index}`
17517
+ );
17518
+ }),
17519
+ showLoadingDots && (() => {
17520
+ const lastMessage = messages[messages.length - 1];
17521
+ const lastMessageType = lastMessage ? String(lastMessage.type) : "";
17522
+ const isLastMessageFromAI = lastMessageType === "ai" || lastMessageType === "assistant";
17523
+ const lastAssistantStatus = isLastMessageFromAI ? getAssistantStreamingStatus(
17524
+ {
17525
+ ...lastMessage,
17526
+ lastStreamOutputAt: lastStreamOutputAtRef.current
17527
+ },
17528
+ stream.isLoading,
17529
+ { now: streamingNow }
17530
+ ) : null;
17531
+ if (lastAssistantStatus) return null;
17532
+ const fallbackStreamingStatus = getAssistantStreamingStatus(
17533
+ {
17534
+ status: void 0,
17535
+ reasoning: void 0,
17536
+ lastStreamOutputAt: lastStreamOutputAtRef.current
17537
+ },
17538
+ stream.isLoading,
17539
+ { now: streamingNow }
17540
+ );
17541
+ return /* @__PURE__ */ jsx54("div", { className: "flex justify-start gap-3 -ml-2", children: /* @__PURE__ */ jsx54("div", { className: "max-w-full rounded-2xl py-2.5", children: /* @__PURE__ */ jsx54(
17542
+ AssistantStreamingIndicator,
17543
+ {
17544
+ status: fallbackStreamingStatus ?? "loading"
17478
17545
  }
17479
- )
17480
- },
17481
- message.id ?? `${message.type}-${index}`
17482
- );
17483
- }),
17484
- showLoadingDots && (() => {
17485
- const lastMessage = messages[messages.length - 1];
17486
- const lastMessageType = lastMessage ? String(lastMessage.type) : "";
17487
- const isLastMessageFromAI = lastMessageType === "ai" || lastMessageType === "assistant";
17488
- const lastAssistantStatus = isLastMessageFromAI ? getAssistantStreamingStatus(
17489
- {
17490
- ...lastMessage,
17491
- lastStreamOutputAt: lastStreamOutputAtRef.current
17492
- },
17493
- stream.isLoading,
17494
- { now: streamingNow }
17495
- ) : null;
17496
- if (lastAssistantStatus) return null;
17497
- const fallbackStreamingStatus = getAssistantStreamingStatus(
17498
- {
17499
- status: void 0,
17500
- reasoning: void 0,
17501
- lastStreamOutputAt: lastStreamOutputAtRef.current
17502
- },
17503
- stream.isLoading,
17504
- { now: streamingNow }
17505
- );
17506
- return /* @__PURE__ */ jsx54("div", { className: "flex justify-start gap-3 -ml-2", children: /* @__PURE__ */ jsx54("div", { className: "max-w-full rounded-2xl py-2.5", children: /* @__PURE__ */ jsx54(
17507
- AssistantStreamingIndicator,
17508
- {
17509
- status: fallbackStreamingStatus ?? "loading"
17510
- }
17511
- ) }) });
17512
- })()
17513
- ] })
17514
- ] }),
17546
+ ) }) });
17547
+ })()
17548
+ ] })
17549
+ ]
17550
+ }
17551
+ ),
17515
17552
  !isAtBottom && messages.length > 0 && /* @__PURE__ */ jsx54("div", { className: "sticky bottom-20 z-20 flex justify-center px-4 pointer-events-none", children: /* @__PURE__ */ jsx54(
17516
17553
  Button,
17517
17554
  {
@@ -17556,386 +17593,394 @@ function Chat({
17556
17593
  )
17557
17594
  }
17558
17595
  ),
17559
- /* @__PURE__ */ jsxs37("div", { className: "p-2 sticky bottom-0 z-10 bg-background", children: [
17560
- threadErrorMessage && /* @__PURE__ */ jsx54("div", { className: "mb-3 rounded-lg border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive overflow-auto", children: threadErrorMessage }),
17561
- /* @__PURE__ */ jsx54(
17562
- ChatAttachments,
17563
- {
17564
- ref: attachmentsRef,
17565
- accept: acceptMimes,
17566
- maxCount: composer?.attachments?.maxCount ?? 10,
17567
- maxSize: composer?.attachments?.maxSize ?? 100 * 1024 * 1024,
17568
- retryUploadLabel: t("chat.retryUpload"),
17569
- uploadFile: uploadContextFile,
17570
- deleteFile: deleteContextFile,
17571
- getFileStatus: getContextFileStatus,
17572
- onStateChange: setAttachmentState
17573
- }
17574
- ),
17575
- references.length > 0 && /* @__PURE__ */ jsx54("div", { className: "mb-3 flex flex-wrap gap-2", children: references.map((reference) => /* @__PURE__ */ jsx54(
17576
- ReferenceChip,
17577
- {
17578
- reference,
17579
- variant: "composer",
17580
- onRemove: () => setReferences(
17581
- (previous) => previous.filter(
17582
- (item) => getReferenceKey(item) !== getReferenceKey(reference)
17583
- )
17584
- ),
17585
- removeLabel: t("composer.removeReference")
17586
- },
17587
- getReferenceKey(reference)
17588
- )) }),
17589
- detachedRunRuntimeCapabilityOptions.length > 0 && /* @__PURE__ */ jsxs37("div", { className: "mb-2 flex flex-wrap items-center gap-2", children: [
17590
- /* @__PURE__ */ jsx54("span", { className: "text-xs text-muted-foreground", children: t("composer.capabilities.runOnly") }),
17591
- detachedRunRuntimeCapabilityOptions.map((option) => /* @__PURE__ */ jsxs37(
17592
- "span",
17593
- {
17594
- className: "inline-flex max-w-full items-center gap-1 rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",
17595
- children: [
17596
- /* @__PURE__ */ jsx54(RuntimeCapabilityIcon, { option, variant: "chip" }),
17597
- /* @__PURE__ */ jsx54("span", { className: "max-w-40 truncate", children: option.label }),
17598
- /* @__PURE__ */ jsx54(
17599
- "button",
17600
- {
17601
- type: "button",
17602
- onClick: () => removeRunRuntimeCapability(option),
17603
- className: "rounded-full p-0.5 hover:bg-primary/15",
17604
- title: t("composer.capabilities.removeRunCapability"),
17605
- "aria-label": t("composer.capabilities.removeRunCapability"),
17606
- children: /* @__PURE__ */ jsx54(X6, { size: 11 })
17607
- }
17608
- )
17609
- ]
17610
- },
17611
- `${option.type}:${option.id}`
17612
- ))
17613
- ] }),
17614
- showGoalStatus && /* @__PURE__ */ jsxs37(
17615
- "div",
17616
- {
17617
- className: cn(
17618
- "mb-2 flex min-h-10 gap-2 rounded-md border border-border bg-background px-2.5 py-2 text-xs text-foreground shadow-sm",
17619
- isGoalObjectiveExpanded ? "items-start" : "items-center"
17596
+ /* @__PURE__ */ jsxs37(
17597
+ "div",
17598
+ {
17599
+ "data-slot": "chatkit-chat-composer",
17600
+ className: "mx-auto w-full p-2 sticky bottom-0 z-10 bg-background",
17601
+ style: chatColumnStyle,
17602
+ children: [
17603
+ threadErrorMessage && /* @__PURE__ */ jsx54("div", { className: "mb-3 rounded-lg border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive overflow-auto", children: threadErrorMessage }),
17604
+ /* @__PURE__ */ jsx54(
17605
+ ChatAttachments,
17606
+ {
17607
+ ref: attachmentsRef,
17608
+ accept: acceptMimes,
17609
+ maxCount: composer?.attachments?.maxCount ?? 10,
17610
+ maxSize: composer?.attachments?.maxSize ?? 100 * 1024 * 1024,
17611
+ retryUploadLabel: t("chat.retryUpload"),
17612
+ uploadFile: uploadContextFile,
17613
+ deleteFile: deleteContextFile,
17614
+ getFileStatus: getContextFileStatus,
17615
+ onStateChange: setAttachmentState
17616
+ }
17620
17617
  ),
17621
- children: [
17622
- /* @__PURE__ */ jsx54(
17623
- Target2,
17624
- {
17625
- className: cn(
17626
- "size-4 shrink-0 text-muted-foreground",
17627
- isGoalObjectiveExpanded && "mt-1"
17618
+ references.length > 0 && /* @__PURE__ */ jsx54("div", { className: "mb-3 flex flex-wrap gap-2", children: references.map((reference) => /* @__PURE__ */ jsx54(
17619
+ ReferenceChip,
17620
+ {
17621
+ reference,
17622
+ variant: "composer",
17623
+ onRemove: () => setReferences(
17624
+ (previous) => previous.filter(
17625
+ (item) => getReferenceKey(item) !== getReferenceKey(reference)
17628
17626
  )
17629
- }
17630
- ),
17631
- /* @__PURE__ */ jsxs37("div", { className: "min-w-0 flex-1", children: [
17632
- /* @__PURE__ */ jsxs37("div", { className: "flex min-w-0 items-center gap-2", children: [
17633
- /* @__PURE__ */ jsx54("span", { className: "font-medium", children: t("chat.goal.label") }),
17634
- threadGoal && /* @__PURE__ */ jsx54("span", { className: "shrink-0 rounded-md bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground", children: t(`chat.goal.status.${threadGoal.status}`) }),
17635
- isGoalLoading && /* @__PURE__ */ jsx54(Loader29, { className: "size-3 animate-spin text-muted-foreground" })
17636
- ] }),
17637
- /* @__PURE__ */ jsx54(
17638
- "div",
17639
- {
17640
- className: cn(
17641
- "mt-0.5 text-muted-foreground",
17642
- threadGoal?.objective && !goalError && isGoalObjectiveExpanded ? "whitespace-pre-wrap break-words" : "truncate"
17643
- ),
17644
- children: goalError || threadGoal?.objective
17645
- }
17646
17627
  ),
17647
- threadGoal && /* @__PURE__ */ jsx54("div", { className: "mt-1 flex flex-wrap gap-x-3 gap-y-1 text-[11px] text-muted-foreground", children: /* @__PURE__ */ jsx54("span", { children: t("chat.goal.elapsed", {
17648
- elapsed: formatGoalElapsed(displayedGoalElapsedSeconds)
17649
- }) }) })
17650
- ] }),
17651
- threadGoal && /* @__PURE__ */ jsxs37("div", { className: "flex shrink-0 items-center gap-1", children: [
17652
- /* @__PURE__ */ jsxs37(Tooltip, { children: [
17653
- /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(
17654
- Button,
17628
+ removeLabel: t("composer.removeReference")
17629
+ },
17630
+ getReferenceKey(reference)
17631
+ )) }),
17632
+ detachedRunRuntimeCapabilityOptions.length > 0 && /* @__PURE__ */ jsxs37("div", { className: "mb-2 flex flex-wrap items-center gap-2", children: [
17633
+ /* @__PURE__ */ jsx54("span", { className: "text-xs text-muted-foreground", children: t("composer.capabilities.runOnly") }),
17634
+ detachedRunRuntimeCapabilityOptions.map((option) => /* @__PURE__ */ jsxs37(
17635
+ "span",
17636
+ {
17637
+ className: "inline-flex max-w-full items-center gap-1 rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",
17638
+ children: [
17639
+ /* @__PURE__ */ jsx54(RuntimeCapabilityIcon, { option, variant: "chip" }),
17640
+ /* @__PURE__ */ jsx54("span", { className: "max-w-40 truncate", children: option.label }),
17641
+ /* @__PURE__ */ jsx54(
17642
+ "button",
17643
+ {
17644
+ type: "button",
17645
+ onClick: () => removeRunRuntimeCapability(option),
17646
+ className: "rounded-full p-0.5 hover:bg-primary/15",
17647
+ title: t("composer.capabilities.removeRunCapability"),
17648
+ "aria-label": t("composer.capabilities.removeRunCapability"),
17649
+ children: /* @__PURE__ */ jsx54(X6, { size: 11 })
17650
+ }
17651
+ )
17652
+ ]
17653
+ },
17654
+ `${option.type}:${option.id}`
17655
+ ))
17656
+ ] }),
17657
+ showGoalStatus && /* @__PURE__ */ jsxs37(
17658
+ "div",
17659
+ {
17660
+ className: cn(
17661
+ "mb-2 flex min-h-10 gap-2 rounded-md border border-border bg-background px-2.5 py-2 text-xs text-foreground shadow-sm",
17662
+ isGoalObjectiveExpanded ? "items-start" : "items-center"
17663
+ ),
17664
+ children: [
17665
+ /* @__PURE__ */ jsx54(
17666
+ Target2,
17655
17667
  {
17656
- type: "button",
17657
- variant: "ghost",
17658
- size: "icon-xs",
17659
- disabled: isGoalLoading,
17660
- onClick: () => {
17661
- const prefix = "/goal edit ";
17662
- setComposerText(`${prefix}${threadGoal.objective}`);
17663
- },
17664
- children: /* @__PURE__ */ jsx54(Pencil4, { className: "size-3" })
17668
+ className: cn(
17669
+ "size-4 shrink-0 text-muted-foreground",
17670
+ isGoalObjectiveExpanded && "mt-1"
17671
+ )
17665
17672
  }
17666
- ) }),
17667
- /* @__PURE__ */ jsx54(TooltipContent, { children: t("chat.goal.edit") })
17668
- ] }),
17669
- /* @__PURE__ */ jsxs37(Tooltip, { children: [
17670
- /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(
17671
- Button,
17672
- {
17673
- type: "button",
17674
- variant: "ghost",
17675
- size: "icon-xs",
17676
- disabled: isGoalLoading,
17677
- onClick: () => void handleGoalCommand({
17678
- args: threadGoal.status === "paused" ? "resume" : "pause",
17679
- commandSource: {
17680
- type: "slash_command",
17681
- name: "goal",
17682
- source: "runtime",
17683
- executionType: "insert_invocation"
17673
+ ),
17674
+ /* @__PURE__ */ jsxs37("div", { className: "min-w-0 flex-1", children: [
17675
+ /* @__PURE__ */ jsxs37("div", { className: "flex min-w-0 items-center gap-2", children: [
17676
+ /* @__PURE__ */ jsx54("span", { className: "font-medium", children: t("chat.goal.label") }),
17677
+ threadGoal && /* @__PURE__ */ jsx54("span", { className: "shrink-0 rounded-md bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground", children: t(`chat.goal.status.${threadGoal.status}`) }),
17678
+ isGoalLoading && /* @__PURE__ */ jsx54(Loader29, { className: "size-3 animate-spin text-muted-foreground" })
17679
+ ] }),
17680
+ /* @__PURE__ */ jsx54(
17681
+ "div",
17682
+ {
17683
+ className: cn(
17684
+ "mt-0.5 text-muted-foreground",
17685
+ threadGoal?.objective && !goalError && isGoalObjectiveExpanded ? "whitespace-pre-wrap break-words" : "truncate"
17686
+ ),
17687
+ children: goalError || threadGoal?.objective
17688
+ }
17689
+ ),
17690
+ threadGoal && /* @__PURE__ */ jsx54("div", { className: "mt-1 flex flex-wrap gap-x-3 gap-y-1 text-[11px] text-muted-foreground", children: /* @__PURE__ */ jsx54("span", { children: t("chat.goal.elapsed", {
17691
+ elapsed: formatGoalElapsed(displayedGoalElapsedSeconds)
17692
+ }) }) })
17693
+ ] }),
17694
+ threadGoal && /* @__PURE__ */ jsxs37("div", { className: "flex shrink-0 items-center gap-1", children: [
17695
+ /* @__PURE__ */ jsxs37(Tooltip, { children: [
17696
+ /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(
17697
+ Button,
17698
+ {
17699
+ type: "button",
17700
+ variant: "ghost",
17701
+ size: "icon-xs",
17702
+ disabled: isGoalLoading,
17703
+ onClick: () => {
17704
+ const prefix = "/goal edit ";
17705
+ setComposerText(`${prefix}${threadGoal.objective}`);
17706
+ },
17707
+ children: /* @__PURE__ */ jsx54(Pencil4, { className: "size-3" })
17684
17708
  }
17685
- }),
17686
- children: threadGoal.status === "paused" ? /* @__PURE__ */ jsx54(Play, { className: "size-3" }) : /* @__PURE__ */ jsx54(Pause, { className: "size-3" })
17687
- }
17688
- ) }),
17689
- /* @__PURE__ */ jsx54(TooltipContent, { children: threadGoal.status === "paused" ? t("chat.goal.resume") : t("chat.goal.pause") })
17690
- ] }),
17691
- /* @__PURE__ */ jsxs37(Tooltip, { children: [
17692
- /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(
17693
- Button,
17694
- {
17695
- type: "button",
17696
- variant: "ghost",
17697
- size: "icon-xs",
17698
- disabled: isGoalLoading,
17699
- onClick: () => void handleGoalCommand({
17700
- args: "clear",
17701
- commandSource: {
17702
- type: "slash_command",
17703
- name: "goal",
17704
- source: "runtime",
17705
- executionType: "insert_invocation"
17709
+ ) }),
17710
+ /* @__PURE__ */ jsx54(TooltipContent, { children: t("chat.goal.edit") })
17711
+ ] }),
17712
+ /* @__PURE__ */ jsxs37(Tooltip, { children: [
17713
+ /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(
17714
+ Button,
17715
+ {
17716
+ type: "button",
17717
+ variant: "ghost",
17718
+ size: "icon-xs",
17719
+ disabled: isGoalLoading,
17720
+ onClick: () => void handleGoalCommand({
17721
+ args: threadGoal.status === "paused" ? "resume" : "pause",
17722
+ commandSource: {
17723
+ type: "slash_command",
17724
+ name: "goal",
17725
+ source: "runtime",
17726
+ executionType: "insert_invocation"
17727
+ }
17728
+ }),
17729
+ children: threadGoal.status === "paused" ? /* @__PURE__ */ jsx54(Play, { className: "size-3" }) : /* @__PURE__ */ jsx54(Pause, { className: "size-3" })
17706
17730
  }
17707
- }),
17708
- children: /* @__PURE__ */ jsx54(Trash23, { className: "size-3" })
17709
- }
17710
- ) }),
17711
- /* @__PURE__ */ jsx54(TooltipContent, { children: t("chat.goal.clear") })
17712
- ] }),
17713
- threadGoal.objective && !goalError && /* @__PURE__ */ jsxs37(Tooltip, { children: [
17714
- /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(
17715
- Button,
17716
- {
17717
- type: "button",
17718
- variant: "ghost",
17719
- size: "icon-xs",
17720
- "aria-expanded": isGoalObjectiveExpanded,
17721
- "aria-label": isGoalObjectiveExpanded ? t("chat.goal.collapseObjective") : t("chat.goal.expandObjective"),
17722
- onClick: () => setIsGoalObjectiveExpanded((expanded) => !expanded),
17723
- children: /* @__PURE__ */ jsx54(
17724
- ChevronDown5,
17731
+ ) }),
17732
+ /* @__PURE__ */ jsx54(TooltipContent, { children: threadGoal.status === "paused" ? t("chat.goal.resume") : t("chat.goal.pause") })
17733
+ ] }),
17734
+ /* @__PURE__ */ jsxs37(Tooltip, { children: [
17735
+ /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(
17736
+ Button,
17725
17737
  {
17726
- className: cn(
17727
- "size-3 transition-transform",
17728
- isGoalObjectiveExpanded && "rotate-180"
17729
- )
17738
+ type: "button",
17739
+ variant: "ghost",
17740
+ size: "icon-xs",
17741
+ disabled: isGoalLoading,
17742
+ onClick: () => void handleGoalCommand({
17743
+ args: "clear",
17744
+ commandSource: {
17745
+ type: "slash_command",
17746
+ name: "goal",
17747
+ source: "runtime",
17748
+ executionType: "insert_invocation"
17749
+ }
17750
+ }),
17751
+ children: /* @__PURE__ */ jsx54(Trash23, { className: "size-3" })
17730
17752
  }
17731
- )
17732
- }
17733
- ) }),
17734
- /* @__PURE__ */ jsx54(TooltipContent, { children: isGoalObjectiveExpanded ? t("chat.goal.collapseObjective") : t("chat.goal.expandObjective") })
17735
- ] })
17736
- ] })
17737
- ]
17738
- }
17739
- ),
17740
- /* @__PURE__ */ jsx54(
17741
- PendingRuntimeServices,
17742
- {
17743
- state: stream.runtimeActivities.sandboxServices,
17744
- onStopService: (serviceId) => stream.stopRuntimeActivityItem("sandbox-services", serviceId),
17745
- attachToComposer: !hasPendingTodos && !hasPendingFollowUps,
17746
- className: hasPendingTodos || hasPendingFollowUps ? "mb-2" : void 0
17747
- }
17748
- ),
17749
- /* @__PURE__ */ jsx54(
17750
- PendingTodos,
17751
- {
17752
- snapshot: stream.todos,
17753
- attachToComposer: !hasPendingFollowUps,
17754
- className: hasPendingFollowUps ? "mb-2" : void 0
17755
- }
17756
- ),
17757
- /* @__PURE__ */ jsx54(
17758
- PendingFollowUps,
17759
- {
17760
- items: pendingFollowUps,
17761
- isLoading: stream.isLoading,
17762
- onPromoteToSteer: (id) => stream.promotePendingFollowUpToSteer(id),
17763
- canSendNow: stream.canSendPendingFollowUpNow,
17764
- onSendNow: (id) => stream.sendPendingFollowUpNow(id),
17765
- onEdit: handleEditPendingFollowUp,
17766
- onRemove: stream.removePendingFollowUp,
17767
- attachToComposer: true
17768
- }
17769
- ),
17770
- /* @__PURE__ */ jsx54(
17771
- RequestUserInputPanel,
17772
- {
17773
- request: stream.pendingRequestUserInput,
17774
- onSubmit: stream.submitRequestUserInput,
17775
- onDismiss: stream.stop,
17776
- attachToComposer: true
17777
- }
17778
- ),
17779
- /* @__PURE__ */ jsx54(
17780
- HITLApprovalPanel,
17781
- {
17782
- request: stream.pendingHITLRequest,
17783
- onSubmit: stream.submitHITLDecision,
17784
- onDismiss: stream.stop,
17785
- attachToComposer: true
17786
- }
17787
- ),
17788
- runtimeCapabilityPalette && /* @__PURE__ */ jsx54(
17789
- SlashPalette,
17790
- {
17791
- palette: runtimeCapabilityPalette,
17792
- options: slashPaletteOptions,
17793
- paletteRef: slashPaletteRef,
17794
- optionRefs: slashPaletteOptionRefs,
17795
- panelRoundedClass: getPanelRoundedClass(theme.radius),
17796
- itemRoundedClass: getMenuItemRoundedClass(theme.radius),
17797
- emptyLabel: slashPaletteEmptyLabel,
17798
- capabilityEmptyLabels: slashPaletteCapabilityEmptyLabels,
17799
- onSelect: selectSlashPaletteOption
17800
- }
17801
- ),
17802
- /* @__PURE__ */ jsx54("form", { className: "flex items-end", onSubmit: handleSubmit, children: /* @__PURE__ */ jsxs37(
17803
- "div",
17804
- {
17805
- "data-slot": "composer-input-shell",
17806
- "data-layout": isComposerStacked ? "stacked" : "inline",
17807
- className: cn(
17808
- "relative flex flex-1 overflow-hidden",
17809
- "bg-background border border-border shadow-sm",
17810
- isComposerStacked ? "min-h-[5.5rem] px-1.5 pt-1.5 pb-12" : "min-h-12 px-1.5 py-1",
17811
- "focus-within:border-muted-foreground/30 focus-within:shadow-md",
17812
- "transition-[min-height,padding,border-radius,box-shadow,border-color] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",
17813
- composerInputRoundedClass
17814
- ),
17815
- children: [
17816
- /* @__PURE__ */ jsx54(
17817
- "div",
17818
- {
17819
- ref: composerInputRef,
17820
- role: "textbox",
17821
- "aria-multiline": "true",
17822
- "aria-disabled": missingConfig || isHistoryLoading || hasPendingInteractiveRequest,
17823
- contentEditable: !(missingConfig || isHistoryLoading || hasPendingInteractiveRequest),
17824
- suppressContentEditableWarning: true,
17825
- onInput: handleComposerInput,
17826
- onCompositionEnd: handleComposerCompositionEnd,
17827
- onSelect: handleComposerSelect,
17828
- onPaste: handleComposerPaste,
17829
- onKeyDown: handleComposerKeyDown,
17830
- "data-placeholder": inputPlaceholder,
17831
- className: cn(
17832
- "min-h-8 max-h-32 w-full overflow-hidden whitespace-pre-wrap break-words bg-transparent text-sm leading-5 text-foreground outline-none transition-[padding,min-height] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",
17833
- isComposerStacked ? "px-2 py-1.5" : "py-1 pr-11 pl-11 mt-1",
17834
- "empty:before:pointer-events-none empty:before:text-muted-foreground empty:before:content-[attr(data-placeholder)]",
17835
- (missingConfig || isHistoryLoading || hasPendingInteractiveRequest) && "cursor-not-allowed opacity-50"
17836
- ),
17837
- children: renderedComposerParts.map(
17838
- (part, index) => part.type === "text" ? /* @__PURE__ */ jsx54(React49.Fragment, { children: part.text }, `text-${index}`) : /* @__PURE__ */ jsxs37(
17839
- "span",
17840
- {
17841
- "data-composer-capability-key": part.key,
17842
- "data-capability-type": part.capability.type,
17843
- "data-capability-id": part.capability.id,
17844
- contentEditable: false,
17845
- className: "mx-0.5 inline-flex max-w-[14rem] select-none items-center gap-1 text-sm font-semibold text-primary align-baseline",
17846
- children: [
17847
- /* @__PURE__ */ jsx54(
17848
- RuntimeCapabilityIcon,
17753
+ ) }),
17754
+ /* @__PURE__ */ jsx54(TooltipContent, { children: t("chat.goal.clear") })
17755
+ ] }),
17756
+ threadGoal.objective && !goalError && /* @__PURE__ */ jsxs37(Tooltip, { children: [
17757
+ /* @__PURE__ */ jsx54(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(
17758
+ Button,
17759
+ {
17760
+ type: "button",
17761
+ variant: "ghost",
17762
+ size: "icon-xs",
17763
+ "aria-expanded": isGoalObjectiveExpanded,
17764
+ "aria-label": isGoalObjectiveExpanded ? t("chat.goal.collapseObjective") : t("chat.goal.expandObjective"),
17765
+ onClick: () => setIsGoalObjectiveExpanded((expanded) => !expanded),
17766
+ children: /* @__PURE__ */ jsx54(
17767
+ ChevronDown5,
17849
17768
  {
17850
- option: part.capability,
17851
- variant: "chip"
17769
+ className: cn(
17770
+ "size-3 transition-transform",
17771
+ isGoalObjectiveExpanded && "rotate-180"
17772
+ )
17852
17773
  }
17853
- ),
17854
- /* @__PURE__ */ jsx54("span", { className: "truncate", children: part.capability.label })
17855
- ]
17856
- },
17857
- part.key
17858
- )
17859
- )
17860
- },
17861
- composerDomVersion
17862
- ),
17863
- /* @__PURE__ */ jsxs37(
17864
- "div",
17865
- {
17866
- "data-slot": "composer-action-bar",
17867
- className: "pointer-events-none absolute inset-x-1.5 bottom-1 flex min-h-10 items-center justify-between gap-2",
17868
- children: [
17869
- /* @__PURE__ */ jsxs37("div", { className: "pointer-events-none flex min-w-0 flex-1 items-center gap-1.5", children: [
17870
- /* @__PURE__ */ jsx54("div", { className: "pointer-events-auto flex shrink-0 items-center gap-1.5", children: /* @__PURE__ */ jsx54(
17871
- ComposerMenu,
17872
- {
17873
- composer,
17874
- onAttachmentClick: handleAttachmentClick,
17875
- onToolSelect: handleToolSelect,
17876
- selectedTool,
17877
- planModeEnabled,
17878
- onPlanModeChange: setPlanModeEnabled,
17879
- goalCommandAvailable,
17880
- goalPanelOpen: isGoalModeOpen,
17881
- onGoalPanelOpenChange: handleGoalPanelOpenChange,
17882
- runtimeCapabilities: runtimeCapabilitiesReady ? runtimeCapabilities : null,
17883
- selectedRuntimeCapabilities: effectiveSessionRuntimeCapabilities,
17884
- onRuntimeCapabilityToggle: handleSessionRuntimeCapabilityToggle,
17885
- disabled: missingConfig || isHistoryLoading || hasPendingInteractiveRequest
17774
+ )
17886
17775
  }
17887
17776
  ) }),
17888
- selectedTool && /* @__PURE__ */ jsxs37("span", { className: "pointer-events-auto inline-flex h-8 min-w-0 max-w-[14rem] shrink items-center gap-1.5 rounded-full bg-primary/10 px-2 text-xs font-medium text-primary transition-all duration-200", children: [
17889
- /* @__PURE__ */ jsx54("span", { className: "truncate", children: selectedTool.shortLabel ?? selectedTool.label }),
17890
- /* @__PURE__ */ jsx54(
17891
- "button",
17777
+ /* @__PURE__ */ jsx54(TooltipContent, { children: isGoalObjectiveExpanded ? t("chat.goal.collapseObjective") : t("chat.goal.expandObjective") })
17778
+ ] })
17779
+ ] })
17780
+ ]
17781
+ }
17782
+ ),
17783
+ /* @__PURE__ */ jsx54(
17784
+ PendingRuntimeServices,
17785
+ {
17786
+ state: stream.runtimeActivities.sandboxServices,
17787
+ onStopService: (serviceId) => stream.stopRuntimeActivityItem("sandbox-services", serviceId),
17788
+ attachToComposer: !hasPendingTodos && !hasPendingFollowUps,
17789
+ className: hasPendingTodos || hasPendingFollowUps ? "mb-2" : void 0
17790
+ }
17791
+ ),
17792
+ /* @__PURE__ */ jsx54(
17793
+ PendingTodos,
17794
+ {
17795
+ snapshot: stream.todos,
17796
+ attachToComposer: !hasPendingFollowUps,
17797
+ className: hasPendingFollowUps ? "mb-2" : void 0
17798
+ }
17799
+ ),
17800
+ /* @__PURE__ */ jsx54(
17801
+ PendingFollowUps,
17802
+ {
17803
+ items: pendingFollowUps,
17804
+ isLoading: stream.isLoading,
17805
+ onPromoteToSteer: (id) => stream.promotePendingFollowUpToSteer(id),
17806
+ canSendNow: stream.canSendPendingFollowUpNow,
17807
+ onSendNow: (id) => stream.sendPendingFollowUpNow(id),
17808
+ onEdit: handleEditPendingFollowUp,
17809
+ onRemove: stream.removePendingFollowUp,
17810
+ attachToComposer: true
17811
+ }
17812
+ ),
17813
+ /* @__PURE__ */ jsx54(
17814
+ RequestUserInputPanel,
17815
+ {
17816
+ request: stream.pendingRequestUserInput,
17817
+ onSubmit: stream.submitRequestUserInput,
17818
+ onDismiss: stream.stop,
17819
+ attachToComposer: true
17820
+ }
17821
+ ),
17822
+ /* @__PURE__ */ jsx54(
17823
+ HITLApprovalPanel,
17824
+ {
17825
+ request: stream.pendingHITLRequest,
17826
+ onSubmit: stream.submitHITLDecision,
17827
+ onDismiss: stream.stop,
17828
+ attachToComposer: true
17829
+ }
17830
+ ),
17831
+ runtimeCapabilityPalette && /* @__PURE__ */ jsx54(
17832
+ SlashPalette,
17833
+ {
17834
+ palette: runtimeCapabilityPalette,
17835
+ options: slashPaletteOptions,
17836
+ paletteRef: slashPaletteRef,
17837
+ optionRefs: slashPaletteOptionRefs,
17838
+ panelRoundedClass: getPanelRoundedClass(theme.radius),
17839
+ itemRoundedClass: getMenuItemRoundedClass(theme.radius),
17840
+ emptyLabel: slashPaletteEmptyLabel,
17841
+ capabilityEmptyLabels: slashPaletteCapabilityEmptyLabels,
17842
+ onSelect: selectSlashPaletteOption
17843
+ }
17844
+ ),
17845
+ /* @__PURE__ */ jsx54("form", { className: "flex items-end", onSubmit: handleSubmit, children: /* @__PURE__ */ jsxs37(
17846
+ "div",
17847
+ {
17848
+ "data-slot": "composer-input-shell",
17849
+ "data-layout": isComposerStacked ? "stacked" : "inline",
17850
+ className: cn(
17851
+ "relative flex flex-1 overflow-hidden",
17852
+ "bg-background border border-border shadow-sm",
17853
+ isComposerStacked ? "min-h-[5.5rem] px-1.5 pt-1.5 pb-12" : "min-h-12 px-1.5 py-1",
17854
+ "focus-within:border-muted-foreground/30 focus-within:shadow-md",
17855
+ "transition-[min-height,padding,border-radius,box-shadow,border-color] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",
17856
+ composerInputRoundedClass
17857
+ ),
17858
+ children: [
17859
+ /* @__PURE__ */ jsx54(
17860
+ "div",
17861
+ {
17862
+ ref: composerInputRef,
17863
+ role: "textbox",
17864
+ "aria-multiline": "true",
17865
+ "aria-disabled": missingConfig || isHistoryLoading || hasPendingInteractiveRequest,
17866
+ contentEditable: !(missingConfig || isHistoryLoading || hasPendingInteractiveRequest),
17867
+ suppressContentEditableWarning: true,
17868
+ onInput: handleComposerInput,
17869
+ onCompositionEnd: handleComposerCompositionEnd,
17870
+ onSelect: handleComposerSelect,
17871
+ onPaste: handleComposerPaste,
17872
+ onKeyDown: handleComposerKeyDown,
17873
+ "data-placeholder": inputPlaceholder,
17874
+ className: cn(
17875
+ "min-h-8 max-h-32 w-full overflow-hidden whitespace-pre-wrap break-words bg-transparent text-sm leading-5 text-foreground outline-none transition-[padding,min-height] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)]",
17876
+ isComposerStacked ? "px-2 py-1.5" : "py-1 pr-11 pl-11 mt-1",
17877
+ "empty:before:pointer-events-none empty:before:text-muted-foreground empty:before:content-[attr(data-placeholder)]",
17878
+ (missingConfig || isHistoryLoading || hasPendingInteractiveRequest) && "cursor-not-allowed opacity-50"
17879
+ ),
17880
+ children: renderedComposerParts.map(
17881
+ (part, index) => part.type === "text" ? /* @__PURE__ */ jsx54(React49.Fragment, { children: part.text }, `text-${index}`) : /* @__PURE__ */ jsxs37(
17882
+ "span",
17892
17883
  {
17893
- type: "button",
17894
- onClick: () => setSelectedTool(null),
17895
- className: "shrink-0 rounded-full p-0.5 text-primary/70 hover:bg-primary/10 hover:text-primary",
17896
- children: /* @__PURE__ */ jsx54(X6, { size: 12 })
17897
- }
17884
+ "data-composer-capability-key": part.key,
17885
+ "data-capability-type": part.capability.type,
17886
+ "data-capability-id": part.capability.id,
17887
+ contentEditable: false,
17888
+ className: "mx-0.5 inline-flex max-w-[14rem] select-none items-center gap-1 text-sm font-semibold text-primary align-baseline",
17889
+ children: [
17890
+ /* @__PURE__ */ jsx54(
17891
+ RuntimeCapabilityIcon,
17892
+ {
17893
+ option: part.capability,
17894
+ variant: "chip"
17895
+ }
17896
+ ),
17897
+ /* @__PURE__ */ jsx54("span", { className: "truncate", children: part.capability.label })
17898
+ ]
17899
+ },
17900
+ part.key
17898
17901
  )
17899
- ] })
17900
- ] }),
17901
- /* @__PURE__ */ jsx54("div", { className: "pointer-events-auto shrink-0", children: /* @__PURE__ */ jsx54(
17902
- SendButton,
17903
- {
17904
- disabled: isSendDisabled,
17905
- isLoading: stream.isLoading,
17906
- showStop: stream.isLoading && (!trimmedDraft || hasPendingInteractiveRequest),
17907
- onStop: () => stream.stop(),
17908
- stopLabel: t("chat.stop"),
17909
- sendLabel: t("chat.send"),
17910
- shortcuts: stream.isLoading && trimmedDraft ? [
17902
+ )
17903
+ },
17904
+ composerDomVersion
17905
+ ),
17906
+ /* @__PURE__ */ jsxs37(
17907
+ "div",
17908
+ {
17909
+ "data-slot": "composer-action-bar",
17910
+ className: "pointer-events-none absolute inset-x-1.5 bottom-1 flex min-h-10 items-center justify-between gap-2",
17911
+ children: [
17912
+ /* @__PURE__ */ jsxs37("div", { className: "pointer-events-none flex min-w-0 flex-1 items-center gap-1.5", children: [
17913
+ /* @__PURE__ */ jsx54("div", { className: "pointer-events-auto flex shrink-0 items-center gap-1.5", children: /* @__PURE__ */ jsx54(
17914
+ ComposerMenu,
17915
+ {
17916
+ composer,
17917
+ onAttachmentClick: handleAttachmentClick,
17918
+ onToolSelect: handleToolSelect,
17919
+ selectedTool,
17920
+ planModeEnabled,
17921
+ onPlanModeChange: setPlanModeEnabled,
17922
+ goalCommandAvailable,
17923
+ goalPanelOpen: isGoalModeOpen,
17924
+ onGoalPanelOpenChange: handleGoalPanelOpenChange,
17925
+ runtimeCapabilities: runtimeCapabilitiesReady ? runtimeCapabilities : null,
17926
+ selectedRuntimeCapabilities: effectiveSessionRuntimeCapabilities,
17927
+ onRuntimeCapabilityToggle: handleSessionRuntimeCapabilityToggle,
17928
+ disabled: missingConfig || isHistoryLoading || hasPendingInteractiveRequest
17929
+ }
17930
+ ) }),
17931
+ selectedTool && /* @__PURE__ */ jsxs37("span", { className: "pointer-events-auto inline-flex h-8 min-w-0 max-w-[14rem] shrink items-center gap-1.5 rounded-full bg-primary/10 px-2 text-xs font-medium text-primary transition-all duration-200", children: [
17932
+ /* @__PURE__ */ jsx54("span", { className: "truncate", children: selectedTool.shortLabel ?? selectedTool.label }),
17933
+ /* @__PURE__ */ jsx54(
17934
+ "button",
17935
+ {
17936
+ type: "button",
17937
+ onClick: () => setSelectedTool(null),
17938
+ className: "shrink-0 rounded-full p-0.5 text-primary/70 hover:bg-primary/10 hover:text-primary",
17939
+ children: /* @__PURE__ */ jsx54(X6, { size: 12 })
17940
+ }
17941
+ )
17942
+ ] })
17943
+ ] }),
17944
+ /* @__PURE__ */ jsx54("div", { className: "pointer-events-auto shrink-0", children: /* @__PURE__ */ jsx54(
17945
+ SendButton,
17911
17946
  {
17912
- label: t("chat.followUps.queue"),
17913
- keys: "Enter"
17947
+ disabled: isSendDisabled,
17948
+ isLoading: stream.isLoading,
17949
+ showStop: stream.isLoading && (!trimmedDraft || hasPendingInteractiveRequest),
17950
+ onStop: () => stream.stop(),
17951
+ stopLabel: t("chat.stop"),
17952
+ sendLabel: t("chat.send"),
17953
+ shortcuts: stream.isLoading && trimmedDraft ? [
17954
+ {
17955
+ label: t("chat.followUps.queue"),
17956
+ keys: "Enter"
17957
+ }
17958
+ ] : void 0
17914
17959
  }
17915
- ] : void 0
17916
- }
17917
- ) })
17918
- ]
17919
- }
17920
- )
17921
- ]
17922
- }
17923
- ) }),
17924
- disclaimer?.text && /* @__PURE__ */ jsx54(
17925
- "p",
17926
- {
17927
- className: cn(
17928
- "mt-2 text-center text-xs",
17929
- disclaimer.highContrast ? "text-foreground" : "text-muted-foreground"
17960
+ ) })
17961
+ ]
17962
+ }
17963
+ )
17964
+ ]
17965
+ }
17966
+ ) }),
17967
+ disclaimer?.text && /* @__PURE__ */ jsx54(
17968
+ "p",
17969
+ {
17970
+ className: cn(
17971
+ "mt-2 text-center text-xs",
17972
+ disclaimer.highContrast ? "text-foreground" : "text-muted-foreground"
17973
+ ),
17974
+ children: disclaimer.text
17975
+ }
17930
17976
  ),
17931
- children: disclaimer.text
17932
- }
17933
- ),
17934
- /* @__PURE__ */ jsxs37("div", { className: "mt-2 flex items-center justify-center gap-2 text-xs text-muted-foreground", children: [
17935
- /* @__PURE__ */ jsx54("span", { children: t("chat.poweredBy") }),
17936
- /* @__PURE__ */ jsx54(ContextUsageIndicator, { className: "absolute right-4" })
17937
- ] })
17938
- ] }),
17977
+ /* @__PURE__ */ jsxs37("div", { className: "mt-2 flex items-center justify-center gap-2 text-xs text-muted-foreground", children: [
17978
+ /* @__PURE__ */ jsx54("span", { children: t("chat.poweredBy") }),
17979
+ /* @__PURE__ */ jsx54(ContextUsageIndicator, { className: "absolute right-4" })
17980
+ ] })
17981
+ ]
17982
+ }
17983
+ ),
17939
17984
  /* @__PURE__ */ jsx54(
17940
17985
  SettingsSheet,
17941
17986
  {