@xpert-ai/chatkit-ui 0.3.16 → 0.3.18
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.
- package/dist/app/assets/{_baseUniq-U5K_xAMH.js → _baseUniq-D0QWjKsx.js} +1 -1
- package/dist/app/assets/{abap-BQPZNM71.js → abap-CZpzd_n-.js} +1 -1
- package/dist/app/assets/{abnf-CLY7CKO2.js → abnf-BkZxiZV-.js} +1 -1
- package/dist/app/assets/{actionscript-BxhLVjVY.js → actionscript-lom7G2Ch.js} +1 -1
- package/dist/app/assets/{ada-BLfdJJFu.js → ada-DOqxPnii.js} +1 -1
- package/dist/app/assets/{agda-CcPqaBhi.js → agda-D_NItjNC.js} +1 -1
- package/dist/app/assets/{al-DM6lJqXu.js → al-CSRsCKGE.js} +1 -1
- package/dist/app/assets/{antlr4--dUJRuG4.js → antlr4-Bq0QMnZu.js} +1 -1
- package/dist/app/assets/{apacheconf-B05oQ5fb.js → apacheconf-DQvlxkdv.js} +1 -1
- package/dist/app/assets/{apex-DIm7LWiX.js → apex-CKJxTX6l.js} +1 -1
- package/dist/app/assets/{apl-DecZUU_1.js → apl-BiEqGaey.js} +1 -1
- package/dist/app/assets/{applescript-Du7X7155.js → applescript-DCEvG7DI.js} +1 -1
- package/dist/app/assets/{aql-DN4Tmpxx.js → aql-BuFNO7D9.js} +1 -1
- package/dist/app/assets/{arc-CvYKF1jN.js → arc-D8hHIrHm.js} +1 -1
- package/dist/app/assets/{architectureDiagram-Q4EWVU46-DoFtD6N6.js → architectureDiagram-Q4EWVU46-CLhyb4nW.js} +1 -1
- package/dist/app/assets/{arduino-Vt8TlSKq.js → arduino-RTn-Ta0X.js} +1 -1
- package/dist/app/assets/{arff-85pSuvZu.js → arff-BX26_lhy.js} +1 -1
- package/dist/app/assets/{asciidoc-CM-gRuuP.js → asciidoc-DjaZW1IY.js} +1 -1
- package/dist/app/assets/{asm6502-BzviHLRf.js → asm6502-DweNZEI5.js} +1 -1
- package/dist/app/assets/{asmatmel-Cs897bAD.js → asmatmel-DSJ4MaLF.js} +1 -1
- package/dist/app/assets/{aspnet-DRixl_JC.js → aspnet-Bqxj8rUF.js} +1 -1
- package/dist/app/assets/{autohotkey-S7KH7GAx.js → autohotkey-DwN-vRLI.js} +1 -1
- package/dist/app/assets/{autoit-B2zBL97E.js → autoit-DmaKLtra.js} +1 -1
- package/dist/app/assets/{avisynth-4WHMZfJ1.js → avisynth-TfTNI5Jh.js} +1 -1
- package/dist/app/assets/{avro-idl-C8zo2SRZ.js → avro-idl-BMl39ClO.js} +1 -1
- package/dist/app/assets/{bash-C_t0-f82.js → bash-BL8Wr16b.js} +1 -1
- package/dist/app/assets/{basic-CG2VnK46.js → basic-DRgjzuhu.js} +1 -1
- package/dist/app/assets/{batch-BJ51HTeP.js → batch-B0F3WEBi.js} +1 -1
- package/dist/app/assets/{bbcode-DeTXBHTJ.js → bbcode-FiQxHi6h.js} +1 -1
- package/dist/app/assets/{bicep-CO_U4FS9.js → bicep-D8HO5zjF.js} +1 -1
- package/dist/app/assets/{birb-CmLWIA8x.js → birb-DhMcYYsj.js} +1 -1
- package/dist/app/assets/{bison-qzdmasAk.js → bison-Cin6wY4N.js} +1 -1
- package/dist/app/assets/{blockDiagram-DXYQGD6D-wC-QW5xN.js → blockDiagram-DXYQGD6D-HCr3yXJI.js} +1 -1
- package/dist/app/assets/{bnf-BLX-XN3r.js → bnf-COE4RYA6.js} +1 -1
- package/dist/app/assets/{brainfuck-CMps1eD_.js → brainfuck-CjedmhHx.js} +1 -1
- package/dist/app/assets/{brightscript-BspG9dXI.js → brightscript-DQZTle85.js} +1 -1
- package/dist/app/assets/{bro-06NoPmcH.js → bro-YtAth1PJ.js} +1 -1
- package/dist/app/assets/{bsl-9PyY5OsQ.js → bsl-DmdUN1WI.js} +1 -1
- package/dist/app/assets/{c-CW2iJOc_.js → c-CkuI0-9w.js} +1 -1
- package/dist/app/assets/{c4Diagram-AHTNJAMY-Hr69jb_o.js → c4Diagram-AHTNJAMY-BUVYp0Ut.js} +1 -1
- package/dist/app/assets/{cfscript-DGPk482s.js → cfscript-D2qpX-Sr.js} +1 -1
- package/dist/app/assets/{chaiscript-BCkhvVWo.js → chaiscript-CarRzcrb.js} +1 -1
- package/dist/app/assets/channel-D5NsBRq7.js +1 -0
- package/dist/app/assets/{chunk-4BX2VUAB-CJ-9NtPN.js → chunk-4BX2VUAB-DhGE1ZFH.js} +1 -1
- package/dist/app/assets/{chunk-4TB4RGXK-B3qkiX2L.js → chunk-4TB4RGXK-BEUUWAcZ.js} +1 -1
- package/dist/app/assets/{chunk-55IACEB6-CnBWGq6G.js → chunk-55IACEB6-ck04xuIL.js} +1 -1
- package/dist/app/assets/{chunk-EDXVE4YY-CDHv162l.js → chunk-EDXVE4YY-B-xbn47D.js} +1 -1
- package/dist/app/assets/{chunk-FMBD7UC4-BAfcG0-N.js → chunk-FMBD7UC4-DqlLafVB.js} +1 -1
- package/dist/app/assets/{chunk-OYMX7WX6-B0WqmfnM.js → chunk-OYMX7WX6-CnxkISRo.js} +1 -1
- package/dist/app/assets/{chunk-QZHKN3VN-Cvh4tTQj.js → chunk-QZHKN3VN-BZCqROC6.js} +1 -1
- package/dist/app/assets/{chunk-YZCP3GAM-DUwUr549.js → chunk-YZCP3GAM-CS8tpU-B.js} +1 -1
- package/dist/app/assets/{cil-BRw5TLmK.js → cil-DJ8V1XkW.js} +1 -1
- package/dist/app/assets/classDiagram-6PBFFD2Q-pGVLD9Ix.js +1 -0
- package/dist/app/assets/classDiagram-v2-HSJHXN6E-pGVLD9Ix.js +1 -0
- package/dist/app/assets/{clike-CcHRj61d.js → clike-C-DkSPvO.js} +1 -1
- package/dist/app/assets/{clojure-Bk_UPkE9.js → clojure-woUl7x0t.js} +1 -1
- package/dist/app/assets/clone-Bma5UCo8.js +1 -0
- package/dist/app/assets/{cmake-BVp_5usr.js → cmake-DfXMWqVV.js} +1 -1
- package/dist/app/assets/{cobol-C-S3dP0V.js → cobol-DCc6dAiW.js} +1 -1
- package/dist/app/assets/{coffeescript-BXdSmFBU.js → coffeescript-CVkzhm24.js} +1 -1
- package/dist/app/assets/{concurnas-DYRN04jP.js → concurnas-DucY-v95.js} +1 -1
- package/dist/app/assets/{coq-BvIl_ASN.js → coq-DiLVaor5.js} +1 -1
- package/dist/app/assets/{core-VCA1aJfp.js → core-BZrOvGMG.js} +1 -1
- package/dist/app/assets/{cose-bilkent-S5V4N54A-LlTkfCsS.js → cose-bilkent-S5V4N54A-D_Vzb0Bj.js} +1 -1
- package/dist/app/assets/{cpp-DVPoqb4b.js → cpp-BsuoZsEC.js} +1 -1
- package/dist/app/assets/{crystal-zbx5Nqxn.js → crystal-C8VluDKN.js} +1 -1
- package/dist/app/assets/{csharp-Dl3XyHrn.js → csharp-Ds6aqVUQ.js} +1 -1
- package/dist/app/assets/{cshtml-BScERcM_.js → cshtml-BSBc7i0r.js} +1 -1
- package/dist/app/assets/{csp-IZqTA9HP.js → csp-B05fznhr.js} +1 -1
- package/dist/app/assets/{css-Dv8pCDuH.js → css-DJPP4Z8A.js} +1 -1
- package/dist/app/assets/{css-extras-BRpm7jsI.js → css-extras-D7VrJ4dc.js} +1 -1
- package/dist/app/assets/{csv-B6QYrdae.js → csv-DnjINxTk.js} +1 -1
- package/dist/app/assets/{cypher-CQSTIE_1.js → cypher-B6Kchb2O.js} +1 -1
- package/dist/app/assets/{d-DYLr3PwQ.js → d-DTEcpQpQ.js} +1 -1
- package/dist/app/assets/{dagre-KV5264BT-BuRMFln5.js → dagre-KV5264BT-D3TzdaKR.js} +1 -1
- package/dist/app/assets/{dart-BSLbckV2.js → dart-DvzWV4gq.js} +1 -1
- package/dist/app/assets/{dataweave-D4d62yH0.js → dataweave-SvsJv6s8.js} +1 -1
- package/dist/app/assets/{dax-BPNQcGTv.js → dax-hJUJ6K7l.js} +1 -1
- package/dist/app/assets/{dhall-EFJkKCNP.js → dhall-C1k_uxvY.js} +1 -1
- package/dist/app/assets/{diagram-5BDNPKRD-DbaU-g3n.js → diagram-5BDNPKRD-jeiuimP_.js} +1 -1
- package/dist/app/assets/{diagram-G4DWMVQ6-DSBwJY81.js → diagram-G4DWMVQ6-75jI0aka.js} +1 -1
- package/dist/app/assets/{diagram-MMDJMWI5-CdEbHc5z.js → diagram-MMDJMWI5-CFfz8Sm3.js} +1 -1
- package/dist/app/assets/{diagram-TYMM5635-BUZRHCBi.js → diagram-TYMM5635-DH2lbUTC.js} +1 -1
- package/dist/app/assets/{diff-DBZzPuN-.js → diff-BwLflHil.js} +1 -1
- package/dist/app/assets/{django-wCcZj3pc.js → django-BaSpPEOE.js} +1 -1
- package/dist/app/assets/{dns-zone-file-BjcMjrrn.js → dns-zone-file-CVW0RkqX.js} +1 -1
- package/dist/app/assets/{docker-t2q8JCAU.js → docker-CEFjdznt.js} +1 -1
- package/dist/app/assets/{dot-D6Xlw932.js → dot-9XjPfg4V.js} +1 -1
- package/dist/app/assets/{ebnf-ButfpEuX.js → ebnf-DfHJr-Yo.js} +1 -1
- package/dist/app/assets/{editorconfig-D3jnzqII.js → editorconfig-zPHY_SOt.js} +1 -1
- package/dist/app/assets/{eiffel-DSrP3oRQ.js → eiffel-CY-ceAPf.js} +1 -1
- package/dist/app/assets/{ejs-DjO0iq7l.js → ejs-B9kUBMIM.js} +1 -1
- package/dist/app/assets/{elixir-Cgiq5uwe.js → elixir-Dv2I-B4L.js} +1 -1
- package/dist/app/assets/{elm-DNqkR0AK.js → elm-BgtDFSks.js} +1 -1
- package/dist/app/assets/{erDiagram-SMLLAGMA-D8j75naP.js → erDiagram-SMLLAGMA-DFg05Dgn.js} +1 -1
- package/dist/app/assets/{erb-E5n61MS7.js → erb-C4gUj5tu.js} +1 -1
- package/dist/app/assets/{erlang-DJH5JDPw.js → erlang-c56ZE8X2.js} +1 -1
- package/dist/app/assets/{etlua-V3Oyiflf.js → etlua-BriWi48Q.js} +1 -1
- package/dist/app/assets/{excel-formula-gzzq_csC.js → excel-formula-BjjhXLHp.js} +1 -1
- package/dist/app/assets/{factor-BW8TxUiW.js → factor-C65iXl2s.js} +1 -1
- package/dist/app/assets/{false-28d1Cvff.js → false-B4J7LvOI.js} +1 -1
- package/dist/app/assets/{firestore-security-rules-C0auMkms.js → firestore-security-rules-BSMqKpQx.js} +1 -1
- package/dist/app/assets/{flow-ComNszn-.js → flow-DvSzmNK4.js} +1 -1
- package/dist/app/assets/{flowDiagram-DWJPFMVM-DFUacZw6.js → flowDiagram-DWJPFMVM-CbJ6CyYB.js} +1 -1
- package/dist/app/assets/{fortran-7kYGnrnv.js → fortran-DRediubc.js} +1 -1
- package/dist/app/assets/{fsharp-CWSmjMI7.js → fsharp-CSuGtDNZ.js} +1 -1
- package/dist/app/assets/{ftl-CO1mzzsH.js → ftl-Dk0kTLkr.js} +1 -1
- package/dist/app/assets/{ganttDiagram-T4ZO3ILL-BqnV147Q.js → ganttDiagram-T4ZO3ILL-CzADpq2Q.js} +1 -1
- package/dist/app/assets/{gap-buASepAH.js → gap-C2HPuY5y.js} +1 -1
- package/dist/app/assets/{gcode-BpF4VeNp.js → gcode-CNkJDW12.js} +1 -1
- package/dist/app/assets/{gdscript-Dfz-VNg1.js → gdscript-Ddbm10Eo.js} +1 -1
- package/dist/app/assets/{gedcom-znH5r8dd.js → gedcom-DGWECxHt.js} +1 -1
- package/dist/app/assets/{gherkin-DUyqBxEJ.js → gherkin-DkZoqva3.js} +1 -1
- package/dist/app/assets/{git-CohiM6Mv.js → git-CaBgh_A6.js} +1 -1
- package/dist/app/assets/{gitGraphDiagram-UUTBAWPF-Dym7w36b.js → gitGraphDiagram-UUTBAWPF-DMHTaVFF.js} +1 -1
- package/dist/app/assets/{glsl-D7BZzSq4.js → glsl-C9lJAkhH.js} +1 -1
- package/dist/app/assets/{gml-DSwCvOVA.js → gml-DfDwXu-s.js} +1 -1
- package/dist/app/assets/{gn-CB-QT4G3.js → gn-DcAjwOWf.js} +1 -1
- package/dist/app/assets/{go-D7TdmZXh.js → go-DvFw0DJZ.js} +1 -1
- package/dist/app/assets/{go-module-3p_Z_Nvv.js → go-module-C_-7e9U7.js} +1 -1
- package/dist/app/assets/{graph-VkviDXZM.js → graph-DEk6BWGL.js} +1 -1
- package/dist/app/assets/{graphql-CI150CFa.js → graphql-C-rTTHtJ.js} +1 -1
- package/dist/app/assets/{groovy-DLVCTNlH.js → groovy-DFMbERuk.js} +1 -1
- package/dist/app/assets/{haml-CEcoYGI-.js → haml-CDFAmkh0.js} +1 -1
- package/dist/app/assets/{handlebars-CGMkvKCV.js → handlebars-BjsadT45.js} +1 -1
- package/dist/app/assets/{haskell-CB_R9zNF.js → haskell-CuB_7VZQ.js} +1 -1
- package/dist/app/assets/{haxe-CGxgjJdR.js → haxe-CDLw9gNV.js} +1 -1
- package/dist/app/assets/{hcl-CMZiS1-l.js → hcl-BfWezVV7.js} +1 -1
- package/dist/app/assets/{hlsl-CGgjcGri.js → hlsl-ox9e0afz.js} +1 -1
- package/dist/app/assets/{hoon-8GPRCbAM.js → hoon-tvSPlxEl.js} +1 -1
- package/dist/app/assets/{hpkp-PG2U8Fdd.js → hpkp-Czhlv-sF.js} +1 -1
- package/dist/app/assets/{hsts-D_fAUY6b.js → hsts-ax9H4GEU.js} +1 -1
- package/dist/app/assets/{http-DCEkWlyl.js → http-CA6SuJcC.js} +1 -1
- package/dist/app/assets/{ichigojam-9AAslk8-.js → ichigojam-CqvvcgyU.js} +1 -1
- package/dist/app/assets/{icon-B69s9klJ.js → icon-DWfrQ03E.js} +1 -1
- package/dist/app/assets/{icu-message-format-CIofDM61.js → icu-message-format-CQWc54rX.js} +1 -1
- package/dist/app/assets/{idris-BeSScDMn.js → idris-DLQfITVV.js} +1 -1
- package/dist/app/assets/{iecst-DUaKbiqI.js → iecst-Ca2NKugZ.js} +1 -1
- package/dist/app/assets/{ignore-C5sCyArW.js → ignore-kmxVzwHC.js} +1 -1
- package/dist/app/assets/{index-CYj11nKH.css → index-DpEwCIj4.css} +1 -1
- package/dist/app/assets/{index-B2Rg5xL3.js → index-MT8kO0ww.js} +180 -180
- package/dist/app/assets/{infoDiagram-42DDH7IO-Cr0GBg9C.js → infoDiagram-42DDH7IO-XHcPMnQ_.js} +1 -1
- package/dist/app/assets/{inform7-DDW1E5uh.js → inform7-bVmY1GrN.js} +1 -1
- package/dist/app/assets/{ini-CQgsOBuu.js → ini-F4CriHjA.js} +1 -1
- package/dist/app/assets/{io-BrxbTsHS.js → io-C1bKXd3E.js} +1 -1
- package/dist/app/assets/{ishikawaDiagram-UXIWVN3A-BUudQYu4.js → ishikawaDiagram-UXIWVN3A-C1KESWH9.js} +1 -1
- package/dist/app/assets/{j-gYbwHlPi.js → j-4lTlo8lZ.js} +1 -1
- package/dist/app/assets/{java-BxwX2UqI.js → java-CUOVTS5N.js} +1 -1
- package/dist/app/assets/{javadoc-CjDoGyQx.js → javadoc-C8Z0Xr1u.js} +1 -1
- package/dist/app/assets/{javadoclike-DQdNCy5C.js → javadoclike-ByzU09gf.js} +1 -1
- package/dist/app/assets/{javascript-Bh-94-yw.js → javascript-C9bsZzTJ.js} +1 -1
- package/dist/app/assets/{javastacktrace-L2U7YdtD.js → javastacktrace-CDqCcOuy.js} +1 -1
- package/dist/app/assets/{jexl-CT8kQDPW.js → jexl-CgRvL-aB.js} +1 -1
- package/dist/app/assets/{jolie-GCjWq91p.js → jolie-CnRae4yo.js} +1 -1
- package/dist/app/assets/{journeyDiagram-VCZTEJTY-CHjxdUj0.js → journeyDiagram-VCZTEJTY-BhVCwViA.js} +1 -1
- package/dist/app/assets/{jq-DJYndRnF.js → jq-DxYS9voj.js} +1 -1
- package/dist/app/assets/{js-extras-DWiLBu8h.js → js-extras-BmSjzx4G.js} +1 -1
- package/dist/app/assets/{js-templates-DWIR368E.js → js-templates-CEOSUvFY.js} +1 -1
- package/dist/app/assets/{jsdoc-BS5e-kic.js → jsdoc-NswOqgGk.js} +1 -1
- package/dist/app/assets/{json-DJHOgsW_.js → json-Ba7dYVJc.js} +1 -1
- package/dist/app/assets/{json5-DcVE7vsh.js → json5-BfCO2NEO.js} +1 -1
- package/dist/app/assets/{jsonp-BZPea95u.js → jsonp-BvyWzxPU.js} +1 -1
- package/dist/app/assets/{jsstacktrace-CTT325vf.js → jsstacktrace-DmKohQpz.js} +1 -1
- package/dist/app/assets/{jsx-BMOVsrnq.js → jsx-BcduoLmj.js} +1 -1
- package/dist/app/assets/{julia-BpH1WVjA.js → julia-CzQgCD1s.js} +1 -1
- package/dist/app/assets/{kanban-definition-6JOO6SKY-DQQOFruD.js → kanban-definition-6JOO6SKY-DjFOasMJ.js} +1 -1
- package/dist/app/assets/{keepalived-DMqXA9qq.js → keepalived-CvalI5Cn.js} +1 -1
- package/dist/app/assets/{keyman-BuIXTWK1.js → keyman-NuMy7SWP.js} +1 -1
- package/dist/app/assets/{kotlin-BDcT4Isp.js → kotlin-CQsM56ed.js} +1 -1
- package/dist/app/assets/{kumir-m3_kmKP2.js → kumir-D0OJISiy.js} +1 -1
- package/dist/app/assets/{kusto-D-UrAJSW.js → kusto-C9fjH3ae.js} +1 -1
- package/dist/app/assets/{latex-tgCR0Tao.js → latex-wvQPV-lg.js} +1 -1
- package/dist/app/assets/{latte-CK0fn5N8.js → latte-DWJz4b2T.js} +1 -1
- package/dist/app/assets/{layout-BHTa7B0n.js → layout-Dnz9J-H_.js} +1 -1
- package/dist/app/assets/{less-DJSgh3Nf.js → less-fZSl7WFx.js} +1 -1
- package/dist/app/assets/{lilypond-BiZrd_FZ.js → lilypond-KIo85q7D.js} +1 -1
- package/dist/app/assets/{linear-BKNTkFyI.js → linear-CL6MSjEl.js} +1 -1
- package/dist/app/assets/{liquid-B9mNVKVD.js → liquid-DPkFKL4a.js} +1 -1
- package/dist/app/assets/{lisp-Cfn15eG4.js → lisp-IyB5qI0o.js} +1 -1
- package/dist/app/assets/{livescript-BxuvymSb.js → livescript-CXmDuWek.js} +1 -1
- package/dist/app/assets/{llvm-7_FL4oWI.js → llvm-C9n-Frid.js} +1 -1
- package/dist/app/assets/{log-BNnyBrlP.js → log-DTd2eweY.js} +1 -1
- package/dist/app/assets/{lolcode-LKckarVv.js → lolcode-UV8v1Ivx.js} +1 -1
- package/dist/app/assets/{lua-B6Hkmggj.js → lua-BF4aiENV.js} +1 -1
- package/dist/app/assets/{magma-tJeyQA9O.js → magma-BKi5VfnT.js} +1 -1
- package/dist/app/assets/{makefile-Dk7GgHtc.js → makefile-CMmm13J7.js} +1 -1
- package/dist/app/assets/{markdown-CVuAl4Q4.js → markdown-DO70OVBB.js} +1 -1
- package/dist/app/assets/{markup-Dna-5b8j.js → markup-Bk-71t36.js} +1 -1
- package/dist/app/assets/{markup-templating-B-496Z4V.js → markup-templating-Do5-9Asl.js} +1 -1
- package/dist/app/assets/{matlab-BFHogmZu.js → matlab-BTfyR-w5.js} +1 -1
- package/dist/app/assets/{maxscript-CEoITCg_.js → maxscript-DUtlTRni.js} +1 -1
- package/dist/app/assets/{mel-DkItS91a.js → mel-BIa3y7bE.js} +1 -1
- package/dist/app/assets/{mermaid-B057fB8P.js → mermaid-CX7UIW1Q.js} +1 -1
- package/dist/app/assets/{min-CyYFJoj7.js → min-Gn-lHMwm.js} +1 -1
- package/dist/app/assets/{mindmap-definition-QFDTVHPH-sZJlqff2.js → mindmap-definition-QFDTVHPH-C0javs-e.js} +1 -1
- package/dist/app/assets/{mizar-C34n9WvM.js → mizar-7pmYJKEP.js} +1 -1
- package/dist/app/assets/{mongodb-Dn-RVHGF.js → mongodb-CHfp-6SB.js} +1 -1
- package/dist/app/assets/{monkey-CchbYxKb.js → monkey-DWI-thhA.js} +1 -1
- package/dist/app/assets/{moonscript-bgc_rMVk.js → moonscript-BFvb5Y1t.js} +1 -1
- package/dist/app/assets/{n1ql-Dc3Rqpo0.js → n1ql-BVnO1BAt.js} +1 -1
- package/dist/app/assets/{n4js-BZrN14mN.js → n4js-BsTOUdys.js} +1 -1
- package/dist/app/assets/{nand2tetris-hdl-CkhLKkF6.js → nand2tetris-hdl-_v3dAvjh.js} +1 -1
- package/dist/app/assets/{naniscript-qV7rI93m.js → naniscript-C3Z121kz.js} +1 -1
- package/dist/app/assets/{nasm-gYP1yVWT.js → nasm-BP4ETiIE.js} +1 -1
- package/dist/app/assets/{neon-CtXfm5uw.js → neon-C0BCC8Xg.js} +1 -1
- package/dist/app/assets/{nevod-CB8t4dHK.js → nevod-Cwv8aOmw.js} +1 -1
- package/dist/app/assets/{nginx-BmKdm8yX.js → nginx-2PwKqqAR.js} +1 -1
- package/dist/app/assets/{nim-DtGHCszZ.js → nim-DRx--wVs.js} +1 -1
- package/dist/app/assets/{nix-D4GbSnEd.js → nix-_uk2FKeA.js} +1 -1
- package/dist/app/assets/{nsis-Bj3SsdeV.js → nsis-DWiWFqpI.js} +1 -1
- package/dist/app/assets/{objectivec-CFF2Dkns.js → objectivec-DuQC0GBR.js} +1 -1
- package/dist/app/assets/{ocaml-DAJPLi8c.js → ocaml-CW7mQ7DA.js} +1 -1
- package/dist/app/assets/{opencl-DiKh-99y.js → opencl-IGnv-HrY.js} +1 -1
- package/dist/app/assets/{openqasm-tueuB3_y.js → openqasm-BqJmwh1u.js} +1 -1
- package/dist/app/assets/{oz-zqL1ngLO.js → oz-DcTi2Qwy.js} +1 -1
- package/dist/app/assets/{parigp-D3LdHq2U.js → parigp-CqYPOuQD.js} +1 -1
- package/dist/app/assets/{parser-CKMaRQ-4.js → parser-B13oWgl1.js} +1 -1
- package/dist/app/assets/{pascal-DAKujXtp.js → pascal-c6eauTAI.js} +1 -1
- package/dist/app/assets/{pascaligo-DCtAmY2b.js → pascaligo-Bt5Jpl_N.js} +1 -1
- package/dist/app/assets/{pcaxis-CkTkU6RG.js → pcaxis-D7STcJ88.js} +1 -1
- package/dist/app/assets/{peoplecode-T3uGFXP0.js → peoplecode-Df3MeQvL.js} +1 -1
- package/dist/app/assets/{perl-CartfYED.js → perl-B1veHTlV.js} +1 -1
- package/dist/app/assets/{php-BUE6JcOK.js → php-DJelaBP_.js} +1 -1
- package/dist/app/assets/{php-extras-ji_LKaVg.js → php-extras-BZILHOLa.js} +1 -1
- package/dist/app/assets/{phpdoc-B2skMGYa.js → phpdoc-CaIivege.js} +1 -1
- package/dist/app/assets/{pieDiagram-DEJITSTG-Lwq5NQjn.js → pieDiagram-DEJITSTG-CFMh7ZLo.js} +1 -1
- package/dist/app/assets/{plsql-DM6pS3m0.js → plsql-OjC-GN6T.js} +1 -1
- package/dist/app/assets/{powerquery-ivuHm3I-.js → powerquery-BXcwxkm3.js} +1 -1
- package/dist/app/assets/{powershell-CW7VFVaB.js → powershell-CmbnJC3p.js} +1 -1
- package/dist/app/assets/{processing-B1n0p6xb.js → processing-Cu1qd9yP.js} +1 -1
- package/dist/app/assets/{prolog-BnYHsmyt.js → prolog-Dw_jXeui.js} +1 -1
- package/dist/app/assets/{promql-BarvRvwP.js → promql-DRU4ot-S.js} +1 -1
- package/dist/app/assets/{properties-C2XPr9zr.js → properties-DfzvnkeU.js} +1 -1
- package/dist/app/assets/{protobuf-B2T9qoVh.js → protobuf-maPurCax.js} +1 -1
- package/dist/app/assets/{psl-_cLPfo0-.js → psl-DlwIQKbw.js} +1 -1
- package/dist/app/assets/{pug-EnnApdVZ.js → pug-dAkqTeg6.js} +1 -1
- package/dist/app/assets/{puppet-CavxXINo.js → puppet-CPoADFAm.js} +1 -1
- package/dist/app/assets/{pure-BNrknZBs.js → pure-jnDx8H8Y.js} +1 -1
- package/dist/app/assets/{purebasic-Dt3-14oa.js → purebasic-DNUQm9Et.js} +1 -1
- package/dist/app/assets/{purescript-C7e9akiH.js → purescript-CcEjyhvi.js} +1 -1
- package/dist/app/assets/{q-18HlE955.js → q-COLAgV0Y.js} +1 -1
- package/dist/app/assets/{qml-J1XWfY2P.js → qml-moT4w0RU.js} +1 -1
- package/dist/app/assets/{qore-Bj4I3iI1.js → qore-DCx-Oari.js} +1 -1
- package/dist/app/assets/{qsharp-C0l91cmA.js → qsharp-C4hMcK9D.js} +1 -1
- package/dist/app/assets/{quadrantDiagram-34T5L4WZ-BIMHBSya.js → quadrantDiagram-34T5L4WZ-ePCVGz9x.js} +1 -1
- package/dist/app/assets/{r-qbS82cwa.js → r-C-WfUNpi.js} +1 -1
- package/dist/app/assets/{racket-DAADMEL5.js → racket-BZOT6O-m.js} +1 -1
- package/dist/app/assets/{reason-Bs6jsOzK.js → reason-BYS5Kv1P.js} +1 -1
- package/dist/app/assets/{regex-BtRGd9nN.js → regex-DTpY03uP.js} +1 -1
- package/dist/app/assets/{rego-BJglsgkF.js → rego-Coq2P5sz.js} +1 -1
- package/dist/app/assets/{renpy-CP7L4If_.js → renpy-BD6BWV5e.js} +1 -1
- package/dist/app/assets/{requirementDiagram-MS252O5E-MPqt-eGe.js → requirementDiagram-MS252O5E-DoU1KO1F.js} +1 -1
- package/dist/app/assets/{rest-Co5-219y.js → rest-DeLGMmWA.js} +1 -1
- package/dist/app/assets/{rip-DsGz1NlI.js → rip-CXd6BWe1.js} +1 -1
- package/dist/app/assets/{roboconf-BsxCGyLW.js → roboconf-BxA4vMpZ.js} +1 -1
- package/dist/app/assets/{robotframework-CRvOngPj.js → robotframework-AIf29_9P.js} +1 -1
- package/dist/app/assets/{ruby-Be2WADtM.js → ruby-mIEREBH9.js} +1 -1
- package/dist/app/assets/{rust-XS0qO_D0.js → rust-BCmyOg5n.js} +1 -1
- package/dist/app/assets/{sankeyDiagram-XADWPNL6-r04f57Pz.js → sankeyDiagram-XADWPNL6-CAJcy3UE.js} +1 -1
- package/dist/app/assets/{sas-B_Qy3pz5.js → sas-BDftKlbq.js} +1 -1
- package/dist/app/assets/{sass-BlRh-hOx.js → sass-BJkyZ2aC.js} +1 -1
- package/dist/app/assets/{scala-DCgiUitq.js → scala-COphQyF3.js} +1 -1
- package/dist/app/assets/{scheme-DSUnD_ON.js → scheme-eiSceHbe.js} +1 -1
- package/dist/app/assets/{scss-BBGMx4cb.js → scss-BJiv8mn3.js} +1 -1
- package/dist/app/assets/{sequenceDiagram-FGHM5R23-B930CzTp.js → sequenceDiagram-FGHM5R23-D9RuFKXc.js} +1 -1
- package/dist/app/assets/{shell-session-CCEAyDxL.js → shell-session-Di_TNCoe.js} +1 -1
- package/dist/app/assets/{smali-STXqj3e0.js → smali-RWnI_VB7.js} +1 -1
- package/dist/app/assets/{smalltalk-ifkdo4ZI.js → smalltalk-BA05YOX1.js} +1 -1
- package/dist/app/assets/{smarty-2-MHldHc.js → smarty-ecumexhl.js} +1 -1
- package/dist/app/assets/{sml-ILGBjmiA.js → sml--wk3wu3_.js} +1 -1
- package/dist/app/assets/{solidity-DG--AXKv.js → solidity-C4acB0_R.js} +1 -1
- package/dist/app/assets/{solution-file-xhuGGZs3.js → solution-file-DU89gugK.js} +1 -1
- package/dist/app/assets/{soy-CyfuKuhi.js → soy-B0_zN7cX.js} +1 -1
- package/dist/app/assets/{sparql-BoFuvAJg.js → sparql-P9fFKONd.js} +1 -1
- package/dist/app/assets/{splunk-spl-DCz7kls2.js → splunk-spl-bN22h9SM.js} +1 -1
- package/dist/app/assets/{sqf-CcWsxNdh.js → sqf-Dq-oAdvd.js} +1 -1
- package/dist/app/assets/{sql-D7fwVxBZ.js → sql-BNLeCI4i.js} +1 -1
- package/dist/app/assets/{squirrel-CypkquZg.js → squirrel-YihGku12.js} +1 -1
- package/dist/app/assets/{stan-y71hz03e.js → stan-DMujZjti.js} +1 -1
- package/dist/app/assets/{stateDiagram-FHFEXIEX-ByfFvoUg.js → stateDiagram-FHFEXIEX-C_Tf5_Ai.js} +1 -1
- package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-CVytdbpc.js +1 -0
- package/dist/app/assets/{stylus-DA1Lm4ry.js → stylus-CgP5IqfO.js} +1 -1
- package/dist/app/assets/{swift-Cx2r7slQ.js → swift-BuGdDqjI.js} +1 -1
- package/dist/app/assets/{systemd-gpoUO6NS.js → systemd-BEwRY5b6.js} +1 -1
- package/dist/app/assets/{t4-cs-CAu6MkaB.js → t4-cs-Dpcvpa3q.js} +1 -1
- package/dist/app/assets/{t4-templating-CvpGfhmf.js → t4-templating-DF1FF1fo.js} +1 -1
- package/dist/app/assets/{t4-vb-D4TmSfj_.js → t4-vb-D45rIlaC.js} +1 -1
- package/dist/app/assets/{tap-D6AJBrLR.js → tap-mdKU5Z0y.js} +1 -1
- package/dist/app/assets/{tcl-Di_jMY5_.js → tcl-BFoy2dZq.js} +1 -1
- package/dist/app/assets/{textile-JJZ08PUf.js → textile-Cj8nTD6X.js} +1 -1
- package/dist/app/assets/{timeline-definition-GMOUNBTQ-CXg8Q4Wu.js → timeline-definition-GMOUNBTQ-CCnZdI8r.js} +1 -1
- package/dist/app/assets/{toml-CqNTABde.js → toml-Cc1SczHl.js} +1 -1
- package/dist/app/assets/{tremor-Cxvljfbs.js → tremor-DSCtkq1m.js} +1 -1
- package/dist/app/assets/{tt2-BlDSiRHu.js → tt2-BVb0RtBu.js} +1 -1
- package/dist/app/assets/{turtle-0Nhw1Gj6.js → turtle-BwORMhHy.js} +1 -1
- package/dist/app/assets/{twig-CT7SkKZz.js → twig-S-H9SbBe.js} +1 -1
- package/dist/app/assets/{typescript-0aIg0VIN.js → typescript-DAfg8hyh.js} +1 -1
- package/dist/app/assets/{typoscript-wbHkw0EG.js → typoscript-B5h8le3v.js} +1 -1
- package/dist/app/assets/{unrealscript-BjYNrNr-.js → unrealscript-CvqvUsof.js} +1 -1
- package/dist/app/assets/{uorazor-BtsJktwW.js → uorazor-DwzaKLDq.js} +1 -1
- package/dist/app/assets/{uri-Ddoq-rRE.js → uri-C0dyYU-K.js} +1 -1
- package/dist/app/assets/{v-DWdg_7gX.js → v-DNLhdQTP.js} +1 -1
- package/dist/app/assets/{vala-CvMVgDGt.js → vala-DKWT9B25.js} +1 -1
- package/dist/app/assets/{vbnet-6qgMzhH3.js → vbnet-C2iw7H_L.js} +1 -1
- package/dist/app/assets/{velocity-Bv0wIOGF.js → velocity-BLtatwds.js} +1 -1
- package/dist/app/assets/{vennDiagram-DHZGUBPP-m0Z7WTtb.js → vennDiagram-DHZGUBPP-BPIyZjXT.js} +1 -1
- package/dist/app/assets/{verilog-DJeki8az.js → verilog-BKx3egQ8.js} +1 -1
- package/dist/app/assets/{vhdl-n11gW22E.js → vhdl-DqrQULxx.js} +1 -1
- package/dist/app/assets/{vim-DGqfDOpp.js → vim-B4k8HJOX.js} +1 -1
- package/dist/app/assets/{visual-basic-DH6Uneds.js → visual-basic-CW0Ob8Js.js} +1 -1
- package/dist/app/assets/{wardley-RL74JXVD-CXfzfLIh.js → wardley-RL74JXVD-CJeis0YD.js} +1 -1
- package/dist/app/assets/{wardleyDiagram-NUSXRM2D-CY5R288d.js → wardleyDiagram-NUSXRM2D-iCXojwKS.js} +1 -1
- package/dist/app/assets/{warpscript-C2v2dv70.js → warpscript-CJYK39NW.js} +1 -1
- package/dist/app/assets/{wasm-BH4rIbR4.js → wasm-tGnEMXrk.js} +1 -1
- package/dist/app/assets/{web-idl-BY7o4BA1.js → web-idl-CqapBL4m.js} +1 -1
- package/dist/app/assets/{wiki-e8OXT8k4.js → wiki-C8ZIuHJE.js} +1 -1
- package/dist/app/assets/{wolfram-CJi1UPLF.js → wolfram-CdwQvCbc.js} +1 -1
- package/dist/app/assets/{wren-CTNnknns.js → wren-D5XGe5CI.js} +1 -1
- package/dist/app/assets/{xeora-ChrSb105.js → xeora-BcSIXfhF.js} +1 -1
- package/dist/app/assets/{xml-doc-B5Rm_Siy.js → xml-doc-CmRHEm0U.js} +1 -1
- package/dist/app/assets/{xojo-YUxLYAnr.js → xojo-4rMWxEgW.js} +1 -1
- package/dist/app/assets/{xquery-CQ8qCe0H.js → xquery-BEeKtha3.js} +1 -1
- package/dist/app/assets/{xychartDiagram-5P7HB3ND-BxJNZqP3.js → xychartDiagram-5P7HB3ND-Cv6NY1sW.js} +1 -1
- package/dist/app/assets/{yaml-3upUbJ9C.js → yaml-43_1t6gW.js} +1 -1
- package/dist/app/assets/{yang-C7a4OOgH.js → yang-BmJkq6aF.js} +1 -1
- package/dist/app/assets/{zig-Dyj9y251.js → zig-8hFhlat3.js} +1 -1
- package/dist/app/index.html +2 -2
- package/dist/index.cjs +121 -215
- package/dist/index.js +121 -216
- package/package.json +3 -3
- package/dist/app/assets/channel-TLpt_CUq.js +0 -1
- package/dist/app/assets/classDiagram-6PBFFD2Q-CDPJCbPK.js +0 -1
- package/dist/app/assets/classDiagram-v2-HSJHXN6E-CDPJCbPK.js +0 -1
- package/dist/app/assets/clone-DnldPOas.js +0 -1
- package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-Dw6r5BXK.js +0 -1
package/dist/index.js
CHANGED
|
@@ -69,10 +69,62 @@ function createMessageId() {
|
|
|
69
69
|
|
|
70
70
|
// src/lib/message.ts
|
|
71
71
|
import { isNil, omitBy } from "lodash-es";
|
|
72
|
+
|
|
73
|
+
// src/lib/thread-context-usage.ts
|
|
74
|
+
var THREAD_CONTEXT_USAGE_EVENT_TYPE = "thread_context_usage";
|
|
75
|
+
function isRecord(value) {
|
|
76
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
77
|
+
}
|
|
78
|
+
function normalizeContextUsageNumber(value) {
|
|
79
|
+
if (typeof value === "number" && Number.isFinite(value) && value >= 0) {
|
|
80
|
+
return Math.floor(value);
|
|
81
|
+
}
|
|
82
|
+
if (typeof value === "string") {
|
|
83
|
+
const parsed = Number.parseFloat(value);
|
|
84
|
+
if (Number.isFinite(parsed) && parsed >= 0) {
|
|
85
|
+
return Math.floor(parsed);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
function isThreadContextUsageType(value) {
|
|
91
|
+
return typeof value === "string" && value.trim() === THREAD_CONTEXT_USAGE_EVENT_TYPE;
|
|
92
|
+
}
|
|
93
|
+
function isThreadContextUsageRenderArtifact(value) {
|
|
94
|
+
if (!isRecord(value)) return false;
|
|
95
|
+
if (isThreadContextUsageType(value.type)) return true;
|
|
96
|
+
if (isThreadContextUsageType(value.event)) return true;
|
|
97
|
+
const data = value.data;
|
|
98
|
+
if (!isRecord(data)) return false;
|
|
99
|
+
return isThreadContextUsageType(data.type) || isThreadContextUsageType(data.event);
|
|
100
|
+
}
|
|
101
|
+
function getThreadContextUsage(state, agentKey) {
|
|
102
|
+
if (!agentKey) return null;
|
|
103
|
+
return state[agentKey] ?? null;
|
|
104
|
+
}
|
|
105
|
+
function getThreadContextUsageTotalTokens(event) {
|
|
106
|
+
return normalizeContextUsageNumber(event?.usage?.totalTokens);
|
|
107
|
+
}
|
|
108
|
+
function resolveUsedContextSize(options) {
|
|
109
|
+
const realtimeUsedTokens = getThreadContextUsageTotalTokens(
|
|
110
|
+
options.realtimeUsage
|
|
111
|
+
);
|
|
112
|
+
if (realtimeUsedTokens != null) {
|
|
113
|
+
return realtimeUsedTokens;
|
|
114
|
+
}
|
|
115
|
+
return normalizeContextUsageNumber(options.fallbackUsedTokens) ?? 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// src/lib/message.ts
|
|
72
119
|
var ASSISTANT_STREAM_IDLE_TO_THINKING_MS = 2e3;
|
|
73
120
|
function hasRenderableReasoning(reasoning) {
|
|
74
121
|
return Array.isArray(reasoning) && reasoning.some((item) => item.text?.trim());
|
|
75
122
|
}
|
|
123
|
+
function isRenderableMessageContentItem(item) {
|
|
124
|
+
if (item === void 0) return false;
|
|
125
|
+
if (typeof item === "string") return true;
|
|
126
|
+
return !isThreadContextUsageRenderArtifact(item);
|
|
127
|
+
}
|
|
76
128
|
function hasRenderableMessageContent(content) {
|
|
77
129
|
if (typeof content === "string") {
|
|
78
130
|
return content.trim().length > 0;
|
|
@@ -82,10 +134,13 @@ function hasRenderableMessageContent(content) {
|
|
|
82
134
|
}
|
|
83
135
|
const items = content;
|
|
84
136
|
return items.some((item) => {
|
|
137
|
+
if (!isRenderableMessageContentItem(item)) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
85
140
|
if (typeof item === "string") {
|
|
86
141
|
return item.trim().length > 0;
|
|
87
142
|
}
|
|
88
|
-
if (
|
|
143
|
+
if (typeof item !== "object") {
|
|
89
144
|
return false;
|
|
90
145
|
}
|
|
91
146
|
if (item.type === "text") {
|
|
@@ -207,28 +262,28 @@ function getMissingApiConfigurationKind({
|
|
|
207
262
|
import {
|
|
208
263
|
STATE_VARIABLE_HUMAN
|
|
209
264
|
} from "@xpert-ai/chatkit-types";
|
|
210
|
-
function
|
|
265
|
+
function isRecord2(value) {
|
|
211
266
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
212
267
|
}
|
|
213
268
|
function resolveHumanStateValue(value) {
|
|
214
269
|
const human = value?.[STATE_VARIABLE_HUMAN];
|
|
215
|
-
return
|
|
270
|
+
return isRecord2(human) ? human : {};
|
|
216
271
|
}
|
|
217
272
|
function splitEnvCarrier(value) {
|
|
218
|
-
if (!
|
|
273
|
+
if (!isRecord2(value)) {
|
|
219
274
|
return { value: {}, env: {} };
|
|
220
275
|
}
|
|
221
276
|
const { env, ...rest } = value;
|
|
222
277
|
return {
|
|
223
278
|
value: rest,
|
|
224
|
-
env:
|
|
279
|
+
env: isRecord2(env) ? env : {}
|
|
225
280
|
};
|
|
226
281
|
}
|
|
227
282
|
function mergeRequestOptions(input) {
|
|
228
283
|
const defaultContext = splitEnvCarrier(input.defaults?.context);
|
|
229
284
|
const explicitContext = splitEnvCarrier(input.context);
|
|
230
|
-
const defaultConfig =
|
|
231
|
-
const explicitConfig =
|
|
285
|
+
const defaultConfig = isRecord2(input.defaults?.config) ? input.defaults?.config : {};
|
|
286
|
+
const explicitConfig = isRecord2(input.config) ? input.config : {};
|
|
232
287
|
const mergedEnv = {
|
|
233
288
|
...defaultContext.env,
|
|
234
289
|
...explicitContext.env
|
|
@@ -774,7 +829,7 @@ function ParentMessengerProvider({
|
|
|
774
829
|
...runtimeCapabilities ? { runtimeCapabilities } : {}
|
|
775
830
|
};
|
|
776
831
|
const stream = streamRef2.current;
|
|
777
|
-
const activeFollowUpMode = stream?.isLoading ? params.followUpMode && params.followUpMode !== "default" ? params.followUpMode :
|
|
832
|
+
const activeFollowUpMode = stream?.isLoading ? params.followUpMode && params.followUpMode !== "default" ? params.followUpMode : "queue" : void 0;
|
|
778
833
|
const requestOptions = buildInjectedRequestOptions({
|
|
779
834
|
defaults: latestOptionsRef.current?.request,
|
|
780
835
|
state: params.state,
|
|
@@ -1031,36 +1086,6 @@ function useParentMessenger({
|
|
|
1031
1086
|
return messenger;
|
|
1032
1087
|
}
|
|
1033
1088
|
|
|
1034
|
-
// src/lib/thread-context-usage.ts
|
|
1035
|
-
function normalizeContextUsageNumber(value) {
|
|
1036
|
-
if (typeof value === "number" && Number.isFinite(value) && value >= 0) {
|
|
1037
|
-
return Math.floor(value);
|
|
1038
|
-
}
|
|
1039
|
-
if (typeof value === "string") {
|
|
1040
|
-
const parsed = Number.parseFloat(value);
|
|
1041
|
-
if (Number.isFinite(parsed) && parsed >= 0) {
|
|
1042
|
-
return Math.floor(parsed);
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
return null;
|
|
1046
|
-
}
|
|
1047
|
-
function getThreadContextUsage(state, agentKey) {
|
|
1048
|
-
if (!agentKey) return null;
|
|
1049
|
-
return state[agentKey] ?? null;
|
|
1050
|
-
}
|
|
1051
|
-
function getThreadContextUsageTotalTokens(event) {
|
|
1052
|
-
return normalizeContextUsageNumber(event?.usage?.totalTokens);
|
|
1053
|
-
}
|
|
1054
|
-
function resolveUsedContextSize(options) {
|
|
1055
|
-
const realtimeUsedTokens = getThreadContextUsageTotalTokens(
|
|
1056
|
-
options.realtimeUsage
|
|
1057
|
-
);
|
|
1058
|
-
if (realtimeUsedTokens != null) {
|
|
1059
|
-
return realtimeUsedTokens;
|
|
1060
|
-
}
|
|
1061
|
-
return normalizeContextUsageNumber(options.fallbackUsedTokens) ?? 0;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
1089
|
// src/lib/thread-goals.ts
|
|
1065
1090
|
function normalizeGoalObjective(value) {
|
|
1066
1091
|
return value.trim();
|
|
@@ -1173,14 +1198,14 @@ async function executeThreadGoalCommand({
|
|
|
1173
1198
|
}
|
|
1174
1199
|
|
|
1175
1200
|
// src/lib/follow-ups.ts
|
|
1176
|
-
function
|
|
1177
|
-
return
|
|
1178
|
-
steer: "Enter",
|
|
1179
|
-
queue: queueShortcutLabel
|
|
1180
|
-
};
|
|
1201
|
+
function getVisiblePendingFollowUpPriority(item) {
|
|
1202
|
+
return item.mode === "steer" || item.queuedFromSteer ? 0 : 1;
|
|
1181
1203
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return
|
|
1204
|
+
function sortVisiblePendingFollowUps(items) {
|
|
1205
|
+
return [...items].sort((left, right) => {
|
|
1206
|
+
const priority = getVisiblePendingFollowUpPriority(left) - getVisiblePendingFollowUpPriority(right);
|
|
1207
|
+
return priority || left.createdAt - right.createdAt;
|
|
1208
|
+
});
|
|
1184
1209
|
}
|
|
1185
1210
|
|
|
1186
1211
|
// src/lib/todos.ts
|
|
@@ -1425,20 +1450,13 @@ var en_US_default = {
|
|
|
1425
1450
|
},
|
|
1426
1451
|
poweredBy: "Powered by Xpert AI",
|
|
1427
1452
|
followUps: {
|
|
1428
|
-
label: "Follow-up behavior",
|
|
1429
|
-
settings: "Settings",
|
|
1430
|
-
idleHint: "Used when you send while a run is active.",
|
|
1431
|
-
activeHint: "This message will use the selected busy-run behavior.",
|
|
1432
1453
|
pending: "Pending follow-ups",
|
|
1433
1454
|
queue: "Queue",
|
|
1434
|
-
steer: "Steer",
|
|
1435
1455
|
steerAction: "Steer",
|
|
1436
|
-
promoteToSteer: "Steer now",
|
|
1437
1456
|
sendNow: "Send now",
|
|
1438
1457
|
remove: "Remove pending follow-up",
|
|
1439
1458
|
more: "More actions",
|
|
1440
1459
|
edit: "Edit message",
|
|
1441
|
-
turnOffQueueing: "Turn off queueing",
|
|
1442
1460
|
queueHint: "Starts after the current run finishes",
|
|
1443
1461
|
manualQueueHint: "Ready to send as a new run",
|
|
1444
1462
|
steerHint: "Injects after the current tool call"
|
|
@@ -1821,20 +1839,13 @@ var zh_CN_default = {
|
|
|
1821
1839
|
},
|
|
1822
1840
|
poweredBy: "\u7531 Xpert AI \u9A71\u52A8",
|
|
1823
1841
|
followUps: {
|
|
1824
|
-
label: "Follow-up \u6A21\u5F0F",
|
|
1825
|
-
settings: "\u8BBE\u7F6E",
|
|
1826
|
-
idleHint: "\u4EC5\u5728\u8FD0\u884C\u4E2D\u53D1\u9001\u6D88\u606F\u65F6\u751F\u6548\u3002",
|
|
1827
|
-
activeHint: "\u5F53\u524D\u6D88\u606F\u4F1A\u6309\u6240\u9009\u7684\u8FD0\u884C\u4E2D\u884C\u4E3A\u5904\u7406\u3002",
|
|
1828
1842
|
pending: "\u5F85\u5904\u7406 Follow-up",
|
|
1829
1843
|
queue: "\u6392\u961F",
|
|
1830
|
-
steer: "\u5F15\u5BFC",
|
|
1831
1844
|
steerAction: "\u5F15\u5BFC",
|
|
1832
|
-
promoteToSteer: "\u8F6C\u4E3A\u5F15\u5BFC",
|
|
1833
1845
|
sendNow: "\u7ACB\u5373\u53D1\u9001",
|
|
1834
1846
|
remove: "\u79FB\u9664\u6B64\u5F85\u5904\u7406 Follow-up",
|
|
1835
1847
|
more: "\u66F4\u591A\u64CD\u4F5C",
|
|
1836
1848
|
edit: "\u7F16\u8F91\u6D88\u606F",
|
|
1837
|
-
turnOffQueueing: "\u5173\u95ED\u6392\u961F",
|
|
1838
1849
|
queueHint: "\u5F53\u524D\u8FD0\u884C\u7ED3\u675F\u540E\u5F00\u542F\u4E0B\u4E00\u8F6E",
|
|
1839
1850
|
manualQueueHint: "\u4FDD\u7559\u4E3A\u5F85\u53D1\u9001\uFF0C\u53EF\u624B\u52A8\u5F00\u542F\u65B0\u4E00\u8F6E",
|
|
1840
1851
|
steerHint: "\u5F53\u524D\u5DE5\u5177\u8C03\u7528\u5B8C\u6210\u540E\u6CE8\u5165"
|
|
@@ -4116,7 +4127,6 @@ import {
|
|
|
4116
4127
|
Ellipsis,
|
|
4117
4128
|
Info as Info2,
|
|
4118
4129
|
PencilLine,
|
|
4119
|
-
SlidersHorizontal as SlidersHorizontal2,
|
|
4120
4130
|
Trash2 as Trash22
|
|
4121
4131
|
} from "lucide-react";
|
|
4122
4132
|
|
|
@@ -4188,8 +4198,6 @@ function useRoundedClasses() {
|
|
|
4188
4198
|
function PendingFollowUps({
|
|
4189
4199
|
items,
|
|
4190
4200
|
isLoading,
|
|
4191
|
-
followUpBehavior,
|
|
4192
|
-
onBehaviorChange,
|
|
4193
4201
|
onPromoteToSteer,
|
|
4194
4202
|
canSendNow,
|
|
4195
4203
|
onSendNow,
|
|
@@ -4201,16 +4209,12 @@ function PendingFollowUps({
|
|
|
4201
4209
|
const { t } = useChatkitTranslation();
|
|
4202
4210
|
const rounded = useRoundedClasses();
|
|
4203
4211
|
const referencedContentFallback = t("chat.referencedContentOnly");
|
|
4204
|
-
const [isSettingsOpen, setIsSettingsOpen] = React15.useState(false);
|
|
4205
4212
|
const [openMenuId, setOpenMenuId] = React15.useState(null);
|
|
4206
4213
|
React15.useEffect(() => {
|
|
4207
|
-
if (items.length === 0 && isSettingsOpen) {
|
|
4208
|
-
setIsSettingsOpen(false);
|
|
4209
|
-
}
|
|
4210
4214
|
if (items.every((item) => item.id !== openMenuId)) {
|
|
4211
4215
|
setOpenMenuId(null);
|
|
4212
4216
|
}
|
|
4213
|
-
}, [
|
|
4217
|
+
}, [items, openMenuId]);
|
|
4214
4218
|
if (items.length === 0) {
|
|
4215
4219
|
return null;
|
|
4216
4220
|
}
|
|
@@ -4224,75 +4228,7 @@ function PendingFollowUps({
|
|
|
4224
4228
|
className
|
|
4225
4229
|
),
|
|
4226
4230
|
children: /* @__PURE__ */ jsxs10("div", { className: "space-y-1", children: [
|
|
4227
|
-
/* @__PURE__ */
|
|
4228
|
-
/* @__PURE__ */ jsx18("div", { className: "text-xs font-medium text-foreground", children: t("chat.followUps.pending") }),
|
|
4229
|
-
/* @__PURE__ */ jsxs10(Tooltip, { children: [
|
|
4230
|
-
/* @__PURE__ */ jsx18(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs10(
|
|
4231
|
-
"button",
|
|
4232
|
-
{
|
|
4233
|
-
type: "button",
|
|
4234
|
-
onClick: () => setIsSettingsOpen((prev) => !prev),
|
|
4235
|
-
className: cn(
|
|
4236
|
-
"inline-flex h-6 w-6 items-center justify-center transition-colors",
|
|
4237
|
-
isSettingsOpen ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted/60 hover:text-foreground",
|
|
4238
|
-
rounded.control
|
|
4239
|
-
),
|
|
4240
|
-
"aria-label": t("chat.followUps.settings"),
|
|
4241
|
-
"aria-expanded": isSettingsOpen,
|
|
4242
|
-
"aria-controls": "follow-ups-settings-panel",
|
|
4243
|
-
children: [
|
|
4244
|
-
/* @__PURE__ */ jsx18(SlidersHorizontal2, { className: "h-3.5 w-3.5" }),
|
|
4245
|
-
/* @__PURE__ */ jsx18("span", { className: "sr-only", children: t("chat.followUps.settings") })
|
|
4246
|
-
]
|
|
4247
|
-
}
|
|
4248
|
-
) }),
|
|
4249
|
-
/* @__PURE__ */ jsx18(TooltipContent, { side: "top", children: t("chat.followUps.settings") })
|
|
4250
|
-
] })
|
|
4251
|
-
] }),
|
|
4252
|
-
isSettingsOpen && /* @__PURE__ */ jsx18(
|
|
4253
|
-
"div",
|
|
4254
|
-
{
|
|
4255
|
-
id: "follow-ups-settings-panel",
|
|
4256
|
-
className: cn(
|
|
4257
|
-
"border border-border/70 bg-muted/20 px-3 py-2",
|
|
4258
|
-
rounded.panel
|
|
4259
|
-
),
|
|
4260
|
-
children: /* @__PURE__ */ jsxs10("div", { className: "flex items-center justify-between gap-3", children: [
|
|
4261
|
-
/* @__PURE__ */ jsxs10("div", { className: "min-w-0", children: [
|
|
4262
|
-
/* @__PURE__ */ jsx18("div", { className: "text-xs font-medium text-foreground", children: t("chat.followUps.label") }),
|
|
4263
|
-
/* @__PURE__ */ jsx18("div", { className: "text-[11px] text-muted-foreground", children: isLoading ? t("chat.followUps.activeHint") : t("chat.followUps.idleHint") })
|
|
4264
|
-
] }),
|
|
4265
|
-
/* @__PURE__ */ jsx18(
|
|
4266
|
-
"div",
|
|
4267
|
-
{
|
|
4268
|
-
className: cn(
|
|
4269
|
-
"inline-flex shrink-0 border border-border bg-background p-1",
|
|
4270
|
-
rounded.control
|
|
4271
|
-
),
|
|
4272
|
-
children: ["queue", "steer"].map((behavior) => /* @__PURE__ */ jsxs10(Tooltip, { children: [
|
|
4273
|
-
/* @__PURE__ */ jsx18(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx18(
|
|
4274
|
-
"button",
|
|
4275
|
-
{
|
|
4276
|
-
type: "button",
|
|
4277
|
-
onClick: () => {
|
|
4278
|
-
onBehaviorChange(behavior);
|
|
4279
|
-
setIsSettingsOpen(false);
|
|
4280
|
-
},
|
|
4281
|
-
className: cn(
|
|
4282
|
-
"px-3 py-1 text-xs font-medium transition-colors",
|
|
4283
|
-
rounded.control,
|
|
4284
|
-
followUpBehavior === behavior ? "bg-primary text-background" : "text-muted-foreground hover:text-foreground"
|
|
4285
|
-
),
|
|
4286
|
-
children: behavior === "queue" ? t("chat.followUps.queue") : t("chat.followUps.steer")
|
|
4287
|
-
}
|
|
4288
|
-
) }),
|
|
4289
|
-
/* @__PURE__ */ jsx18(TooltipContent, { side: "top", children: behavior === "queue" ? t("chat.followUps.queueHint") : t("chat.followUps.steerHint") })
|
|
4290
|
-
] }, behavior))
|
|
4291
|
-
}
|
|
4292
|
-
)
|
|
4293
|
-
] })
|
|
4294
|
-
}
|
|
4295
|
-
),
|
|
4231
|
+
/* @__PURE__ */ jsx18("div", { className: "flex items-center justify-between gap-3", children: /* @__PURE__ */ jsx18("div", { className: "text-xs font-medium text-foreground", children: t("chat.followUps.pending") }) }),
|
|
4296
4232
|
items.map((item) => {
|
|
4297
4233
|
const canSendItemNow = item.mode === "queue" && canSendNow(item.id);
|
|
4298
4234
|
return /* @__PURE__ */ jsx18(
|
|
@@ -4321,7 +4257,7 @@ function PendingFollowUps({
|
|
|
4321
4257
|
}
|
|
4322
4258
|
) }),
|
|
4323
4259
|
/* @__PURE__ */ jsxs10("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
4324
|
-
item.mode === "queue" && isLoading && /* @__PURE__ */ jsx18(
|
|
4260
|
+
item.mode === "queue" && isLoading && !item.queuedFromSteer && /* @__PURE__ */ jsx18(
|
|
4325
4261
|
"button",
|
|
4326
4262
|
{
|
|
4327
4263
|
type: "button",
|
|
@@ -4391,44 +4327,24 @@ function PendingFollowUps({
|
|
|
4391
4327
|
"w-52 border-border/70 bg-background p-1.5",
|
|
4392
4328
|
rounded.panel
|
|
4393
4329
|
),
|
|
4394
|
-
children: /* @__PURE__ */
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
),
|
|
4413
|
-
/* @__PURE__ */ jsxs10(
|
|
4414
|
-
"button",
|
|
4415
|
-
{
|
|
4416
|
-
type: "button",
|
|
4417
|
-
onClick: () => {
|
|
4418
|
-
setOpenMenuId(null);
|
|
4419
|
-
onBehaviorChange("steer");
|
|
4420
|
-
},
|
|
4421
|
-
className: cn(
|
|
4422
|
-
"flex items-center gap-2 px-2 py-1.5 text-left text-sm text-foreground transition-colors hover:bg-muted",
|
|
4423
|
-
rounded.control
|
|
4424
|
-
),
|
|
4425
|
-
children: [
|
|
4426
|
-
/* @__PURE__ */ jsx18(CornerDownLeft, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
4427
|
-
/* @__PURE__ */ jsx18("span", { children: t("chat.followUps.turnOffQueueing") })
|
|
4428
|
-
]
|
|
4429
|
-
}
|
|
4430
|
-
)
|
|
4431
|
-
] })
|
|
4330
|
+
children: /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1", children: /* @__PURE__ */ jsxs10(
|
|
4331
|
+
"button",
|
|
4332
|
+
{
|
|
4333
|
+
type: "button",
|
|
4334
|
+
onClick: () => {
|
|
4335
|
+
setOpenMenuId(null);
|
|
4336
|
+
onEdit(item.id);
|
|
4337
|
+
},
|
|
4338
|
+
className: cn(
|
|
4339
|
+
"flex items-center gap-2 px-2 py-1.5 text-left text-sm text-foreground transition-colors hover:bg-muted",
|
|
4340
|
+
rounded.control
|
|
4341
|
+
),
|
|
4342
|
+
children: [
|
|
4343
|
+
/* @__PURE__ */ jsx18(PencilLine, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
4344
|
+
/* @__PURE__ */ jsx18("span", { children: t("chat.followUps.edit") })
|
|
4345
|
+
]
|
|
4346
|
+
}
|
|
4347
|
+
) })
|
|
4432
4348
|
}
|
|
4433
4349
|
)
|
|
4434
4350
|
]
|
|
@@ -7891,6 +7807,9 @@ function getAgentRunCounts(node) {
|
|
|
7891
7807
|
if (item.trim()) text += 1;
|
|
7892
7808
|
continue;
|
|
7893
7809
|
}
|
|
7810
|
+
if (isThreadContextUsageRenderArtifact(item)) {
|
|
7811
|
+
continue;
|
|
7812
|
+
}
|
|
7894
7813
|
if (isTextContent(item) || isReasoningContent(item)) {
|
|
7895
7814
|
if (item.text?.trim()) text += 1;
|
|
7896
7815
|
continue;
|
|
@@ -8002,6 +7921,7 @@ function normalizeAssistantEntries(message) {
|
|
|
8002
7921
|
}
|
|
8003
7922
|
} else if (Array.isArray(message.content)) {
|
|
8004
7923
|
message.content.forEach((item, index) => {
|
|
7924
|
+
if (isThreadContextUsageRenderArtifact(item)) return;
|
|
8005
7925
|
entries.push({
|
|
8006
7926
|
item,
|
|
8007
7927
|
index,
|
|
@@ -9811,7 +9731,7 @@ function normalizeToolToken(value) {
|
|
|
9811
9731
|
const normalized = value.trim().toLowerCase().replace(/[\s-]+/g, "_");
|
|
9812
9732
|
return normalized || null;
|
|
9813
9733
|
}
|
|
9814
|
-
function
|
|
9734
|
+
function isRecord3(value) {
|
|
9815
9735
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
9816
9736
|
}
|
|
9817
9737
|
function readString(value) {
|
|
@@ -9843,9 +9763,9 @@ function formatScore(value) {
|
|
|
9843
9763
|
}
|
|
9844
9764
|
function getLineRange(metadata) {
|
|
9845
9765
|
const loc = metadata.loc;
|
|
9846
|
-
if (!
|
|
9766
|
+
if (!isRecord3(loc)) return void 0;
|
|
9847
9767
|
const lines = loc.lines;
|
|
9848
|
-
if (!
|
|
9768
|
+
if (!isRecord3(lines)) return void 0;
|
|
9849
9769
|
const from = stringifyValue(lines.from);
|
|
9850
9770
|
const to = stringifyValue(lines.to);
|
|
9851
9771
|
if (from && to) return `${from}-${to}`;
|
|
@@ -9865,9 +9785,9 @@ function normalizeMetadataEntries(metadata) {
|
|
|
9865
9785
|
});
|
|
9866
9786
|
}
|
|
9867
9787
|
function normalizeKnowledgeResult(value, fallbackTitle) {
|
|
9868
|
-
if (!
|
|
9869
|
-
const metadata =
|
|
9870
|
-
const document2 =
|
|
9788
|
+
if (!isRecord3(value)) return null;
|
|
9789
|
+
const metadata = isRecord3(value.metadata) ? value.metadata : {};
|
|
9790
|
+
const document2 = isRecord3(value.document) ? value.document : {};
|
|
9871
9791
|
const content = readString(value.pageContent);
|
|
9872
9792
|
const title = readString(document2.name) ?? readString(metadata.originalFileName) ?? readString(metadata.source) ?? readString(value.id) ?? readString(metadata.chunkId) ?? fallbackTitle;
|
|
9873
9793
|
if (!content && Object.keys(metadata).length === 0 && Object.keys(document2).length === 0) {
|
|
@@ -9897,7 +9817,7 @@ function getRawKnowledgeData(data) {
|
|
|
9897
9817
|
}
|
|
9898
9818
|
function getRetrieverQuery(data, language) {
|
|
9899
9819
|
const input = data.input;
|
|
9900
|
-
if (
|
|
9820
|
+
if (isRecord3(input)) {
|
|
9901
9821
|
return readString(input.query) ?? readString(input.input) ?? readString(input.question);
|
|
9902
9822
|
}
|
|
9903
9823
|
return readString(resolveLocalizedText(data.message, language)) ?? readString(input);
|
|
@@ -10584,6 +10504,7 @@ function isWidgetComponent(content) {
|
|
|
10584
10504
|
}
|
|
10585
10505
|
function isGroupableStepComponent(content) {
|
|
10586
10506
|
if (!content || typeof content === "string") return false;
|
|
10507
|
+
if (isThreadContextUsageRenderArtifact(content)) return false;
|
|
10587
10508
|
if (!isComponentContent2(content) || isWidgetComponent(content)) return false;
|
|
10588
10509
|
const data = getToolStepData(content);
|
|
10589
10510
|
const renderer = getComponentMessageRenderer(content, data);
|
|
@@ -10667,6 +10588,9 @@ function buildToolComponentRenderUnits(content, options) {
|
|
|
10667
10588
|
const units = [];
|
|
10668
10589
|
const pendingTools = [];
|
|
10669
10590
|
content.forEach((item, index) => {
|
|
10591
|
+
if (isThreadContextUsageRenderArtifact(item)) {
|
|
10592
|
+
return;
|
|
10593
|
+
}
|
|
10670
10594
|
if (isGroupableStepComponent(item) && options?.shouldGroupComponent?.(item) !== false) {
|
|
10671
10595
|
pendingTools.push({ item, index });
|
|
10672
10596
|
return;
|
|
@@ -11216,7 +11140,7 @@ import {
|
|
|
11216
11140
|
} from "@xpert-ai/chatkit-types";
|
|
11217
11141
|
import { CheckCircle2 as CheckCircle24 } from "lucide-react";
|
|
11218
11142
|
import { jsx as jsx39, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
11219
|
-
function
|
|
11143
|
+
function isRecord4(value) {
|
|
11220
11144
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
11221
11145
|
}
|
|
11222
11146
|
function readString2(record, keys) {
|
|
@@ -11229,11 +11153,11 @@ function readString2(record, keys) {
|
|
|
11229
11153
|
return null;
|
|
11230
11154
|
}
|
|
11231
11155
|
function getToolCallId(value) {
|
|
11232
|
-
if (!
|
|
11156
|
+
if (!isRecord4(value)) return null;
|
|
11233
11157
|
return readString2(value, ["id"]);
|
|
11234
11158
|
}
|
|
11235
11159
|
function getToolCallName(value) {
|
|
11236
|
-
if (!
|
|
11160
|
+
if (!isRecord4(value)) return null;
|
|
11237
11161
|
return readString2(value, ["name"]);
|
|
11238
11162
|
}
|
|
11239
11163
|
function pushClientToolCallsFromRecord(record, calls) {
|
|
@@ -11258,7 +11182,7 @@ function findRequestUserInputClientToolCallById(messages, id) {
|
|
|
11258
11182
|
) ?? null;
|
|
11259
11183
|
}
|
|
11260
11184
|
function normalizeAnswer(value) {
|
|
11261
|
-
if (!
|
|
11185
|
+
if (!isRecord4(value)) return null;
|
|
11262
11186
|
const id = readString2(value, ["id"]);
|
|
11263
11187
|
const question = readString2(value, ["question"]);
|
|
11264
11188
|
const answerValue = readString2(value, ["value"]);
|
|
@@ -11286,7 +11210,7 @@ function parseResultOutput(output) {
|
|
|
11286
11210
|
return null;
|
|
11287
11211
|
}
|
|
11288
11212
|
}
|
|
11289
|
-
if (!
|
|
11213
|
+
if (!isRecord4(result) || !Array.isArray(result.answers)) {
|
|
11290
11214
|
return null;
|
|
11291
11215
|
}
|
|
11292
11216
|
const hasExplicitType = result.type === REQUEST_USER_INPUT_RESULT_TYPE2;
|
|
@@ -11300,7 +11224,7 @@ function parseResultOutput(output) {
|
|
|
11300
11224
|
};
|
|
11301
11225
|
}
|
|
11302
11226
|
function getRequestUserInputResultCardData(content, messages) {
|
|
11303
|
-
const data =
|
|
11227
|
+
const data = isRecord4(content.data) ? content.data : null;
|
|
11304
11228
|
if (data?.status !== "success") {
|
|
11305
11229
|
return null;
|
|
11306
11230
|
}
|
|
@@ -11948,6 +11872,9 @@ function renderContentItem(content, index, message, lookupMessages, options) {
|
|
|
11948
11872
|
if (typeof content === "string") {
|
|
11949
11873
|
return /* @__PURE__ */ jsx41("div", { className: textClassName, children: /* @__PURE__ */ jsx41(MarkdownText, { children: content }) }, `text-${index}`);
|
|
11950
11874
|
}
|
|
11875
|
+
if (isThreadContextUsageRenderArtifact(content)) {
|
|
11876
|
+
return null;
|
|
11877
|
+
}
|
|
11951
11878
|
if (isTextContent3(content)) {
|
|
11952
11879
|
return /* @__PURE__ */ jsx41("div", { className: textClassName, children: /* @__PURE__ */ jsx41(MarkdownText, { children: content.text }) }, content.id ?? `text-${index}`);
|
|
11953
11880
|
}
|
|
@@ -14622,9 +14549,7 @@ function Chat({
|
|
|
14622
14549
|
isStacked: isComposerStacked
|
|
14623
14550
|
});
|
|
14624
14551
|
const pendingFollowUps = React48.useMemo(
|
|
14625
|
-
() =>
|
|
14626
|
-
(a, b) => a.createdAt - b.createdAt
|
|
14627
|
-
),
|
|
14552
|
+
() => sortVisiblePendingFollowUps(stream.pendingFollowUps ?? []),
|
|
14628
14553
|
[stream.pendingFollowUps]
|
|
14629
14554
|
);
|
|
14630
14555
|
const hasPendingFollowUps = pendingFollowUps.length > 0;
|
|
@@ -15336,13 +15261,12 @@ function Chat({
|
|
|
15336
15261
|
[commitComposerParts]
|
|
15337
15262
|
);
|
|
15338
15263
|
const submitDraft = React48.useCallback(
|
|
15339
|
-
(
|
|
15264
|
+
(submitOptions = {}) => {
|
|
15340
15265
|
if (isSendDisabled) return;
|
|
15341
|
-
const submitOptions = typeof optionsOrFollowUp === "string" ? { followUpOverride: optionsOrFollowUp } : optionsOrFollowUp ?? {};
|
|
15342
15266
|
const contentToSubmit = (submitOptions.inputText ?? trimmedDraft).trim();
|
|
15343
15267
|
const filesToSend = uploadedFiles.length > 0 ? [...uploadedFiles] : void 0;
|
|
15344
15268
|
const referencesToSend = references.length > 0 ? [...references] : void 0;
|
|
15345
|
-
const nextFollowUpMode = stream.isLoading ?
|
|
15269
|
+
const nextFollowUpMode = stream.isLoading ? "queue" : void 0;
|
|
15346
15270
|
const effectivePlanMode = submitOptions.planMode ?? planModeEnabled;
|
|
15347
15271
|
const humanInput = buildHumanMessageInputPayload({
|
|
15348
15272
|
content: contentToSubmit,
|
|
@@ -15901,9 +15825,7 @@ function Chat({
|
|
|
15901
15825
|
if (submitGoalModeDraft()) {
|
|
15902
15826
|
return;
|
|
15903
15827
|
}
|
|
15904
|
-
submitDraft(
|
|
15905
|
-
getBusyComposerShortcutFollowUpMode(event.metaKey || event.ctrlKey)
|
|
15906
|
-
);
|
|
15828
|
+
submitDraft();
|
|
15907
15829
|
return;
|
|
15908
15830
|
}
|
|
15909
15831
|
if (executeSlashCommandFromDraft()) {
|
|
@@ -16013,17 +15935,6 @@ function Chat({
|
|
|
16013
15935
|
uploadContextFile
|
|
16014
15936
|
]
|
|
16015
15937
|
);
|
|
16016
|
-
const alternateFollowUpShortcutLabel = React48.useMemo(() => {
|
|
16017
|
-
if (typeof navigator === "undefined") {
|
|
16018
|
-
return "\u2318Enter";
|
|
16019
|
-
}
|
|
16020
|
-
const platform = navigator.platform || navigator.userAgent;
|
|
16021
|
-
return /Mac|iPhone|iPad|iPod/i.test(platform) ? "\u2318Enter" : "Ctrl+Enter";
|
|
16022
|
-
}, []);
|
|
16023
|
-
const followUpShortcutLabels = React48.useMemo(
|
|
16024
|
-
() => getComposerFollowUpShortcutLabels(alternateFollowUpShortcutLabel),
|
|
16025
|
-
[alternateFollowUpShortcutLabel]
|
|
16026
|
-
);
|
|
16027
15938
|
const handleToolSelect = (tool) => {
|
|
16028
15939
|
setSelectedTool((prev) => prev?.id === tool.id ? null : tool);
|
|
16029
15940
|
};
|
|
@@ -16034,7 +15945,7 @@ function Chat({
|
|
|
16034
15945
|
type: "human",
|
|
16035
15946
|
content: prompt
|
|
16036
15947
|
};
|
|
16037
|
-
const nextFollowUpMode = stream.isLoading ?
|
|
15948
|
+
const nextFollowUpMode = stream.isLoading ? "queue" : void 0;
|
|
16038
15949
|
const inputPayload = {
|
|
16039
15950
|
input: prompt,
|
|
16040
15951
|
...planModeEnabled ? { planMode: true } : {},
|
|
@@ -16802,8 +16713,6 @@ function Chat({
|
|
|
16802
16713
|
{
|
|
16803
16714
|
items: pendingFollowUps,
|
|
16804
16715
|
isLoading: stream.isLoading,
|
|
16805
|
-
followUpBehavior: stream.followUpBehavior,
|
|
16806
|
-
onBehaviorChange: stream.setFollowUpBehavior,
|
|
16807
16716
|
onPromoteToSteer: (id) => stream.promotePendingFollowUpToSteer(id),
|
|
16808
16717
|
canSendNow: stream.canSendPendingFollowUpNow,
|
|
16809
16718
|
onSendNow: (id) => stream.sendPendingFollowUpNow(id),
|
|
@@ -16953,13 +16862,9 @@ function Chat({
|
|
|
16953
16862
|
stopLabel: t("chat.stop"),
|
|
16954
16863
|
sendLabel: t("chat.send"),
|
|
16955
16864
|
shortcuts: stream.isLoading && trimmedDraft ? [
|
|
16956
|
-
{
|
|
16957
|
-
label: t("chat.followUps.steer"),
|
|
16958
|
-
keys: followUpShortcutLabels.steer
|
|
16959
|
-
},
|
|
16960
16865
|
{
|
|
16961
16866
|
label: t("chat.followUps.queue"),
|
|
16962
|
-
keys:
|
|
16867
|
+
keys: "Enter"
|
|
16963
16868
|
}
|
|
16964
16869
|
] : void 0
|
|
16965
16870
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpert-ai/chatkit-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "ChatKit UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"tw-animate-css": "^1.4.0",
|
|
60
60
|
"uuid": "^11.1.0",
|
|
61
61
|
"zod": "^4.1.12",
|
|
62
|
-
"@xpert-ai/
|
|
62
|
+
"@xpert-ai/chatkit-types": "~0.3.12",
|
|
63
63
|
"@xpert-ai/chatkit-web-shared": "~0.3.3",
|
|
64
|
-
"@xpert-ai/
|
|
64
|
+
"@xpert-ai/a2ui-react": "~0.1.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aq as o,ar as n}from"./index-B2Rg5xL3.js";const t=(r,a)=>o.lang.round(n.parse(r)[a]);export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-B3qkiX2L.js";import{_ as i}from"./index-B2Rg5xL3.js";import"./chunk-FMBD7UC4-BAfcG0-N.js";import"./chunk-YZCP3GAM-DUwUr549.js";import"./chunk-55IACEB6-CnBWGq6G.js";import"./chunk-EDXVE4YY-CDHv162l.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-B3qkiX2L.js";import{_ as i}from"./index-B2Rg5xL3.js";import"./chunk-FMBD7UC4-BAfcG0-N.js";import"./chunk-YZCP3GAM-DUwUr549.js";import"./chunk-55IACEB6-CnBWGq6G.js";import"./chunk-EDXVE4YY-CDHv162l.js";var u={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{u as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as r}from"./graph-VkviDXZM.js";var e=4;function a(o){return r(o,e)}export{a as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as t,b as r,a,S as s}from"./chunk-OYMX7WX6-B0WqmfnM.js";import{_ as i}from"./index-B2Rg5xL3.js";import"./chunk-55IACEB6-CnBWGq6G.js";import"./chunk-EDXVE4YY-CDHv162l.js";var l={parser:a,get db(){return new s(2)},renderer:r,styles:t,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{l as diagram};
|