@xpert-ai/chatkit-ui 0.3.17 → 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-BWsQ-B3K.js → _baseUniq-D0QWjKsx.js} +1 -1
- package/dist/app/assets/{abap-MWqgJ30G.js → abap-CZpzd_n-.js} +1 -1
- package/dist/app/assets/{abnf-C1_EZn3V.js → abnf-BkZxiZV-.js} +1 -1
- package/dist/app/assets/{actionscript-CutZQaib.js → actionscript-lom7G2Ch.js} +1 -1
- package/dist/app/assets/{ada-DolQ4Dsb.js → ada-DOqxPnii.js} +1 -1
- package/dist/app/assets/{agda-CHBGH-ZM.js → agda-D_NItjNC.js} +1 -1
- package/dist/app/assets/{al-BYnJIGcd.js → al-CSRsCKGE.js} +1 -1
- package/dist/app/assets/{antlr4-Celf_0wP.js → antlr4-Bq0QMnZu.js} +1 -1
- package/dist/app/assets/{apacheconf-B3SmDxdT.js → apacheconf-DQvlxkdv.js} +1 -1
- package/dist/app/assets/{apex-BhCr8QYz.js → apex-CKJxTX6l.js} +1 -1
- package/dist/app/assets/{apl-37LmSNz2.js → apl-BiEqGaey.js} +1 -1
- package/dist/app/assets/{applescript-Cb1YIIJ5.js → applescript-DCEvG7DI.js} +1 -1
- package/dist/app/assets/{aql-BFUg2FDy.js → aql-BuFNO7D9.js} +1 -1
- package/dist/app/assets/{arc-BgxGVleR.js → arc-D8hHIrHm.js} +1 -1
- package/dist/app/assets/{architectureDiagram-Q4EWVU46-Bx_Op3Vx.js → architectureDiagram-Q4EWVU46-CLhyb4nW.js} +1 -1
- package/dist/app/assets/{arduino-DsWulL2q.js → arduino-RTn-Ta0X.js} +1 -1
- package/dist/app/assets/{arff-2c-iotG0.js → arff-BX26_lhy.js} +1 -1
- package/dist/app/assets/{asciidoc-CQUZuVLM.js → asciidoc-DjaZW1IY.js} +1 -1
- package/dist/app/assets/{asm6502-BbAg1ZHd.js → asm6502-DweNZEI5.js} +1 -1
- package/dist/app/assets/{asmatmel-BxSVxf9E.js → asmatmel-DSJ4MaLF.js} +1 -1
- package/dist/app/assets/{aspnet-CF1gF6LX.js → aspnet-Bqxj8rUF.js} +1 -1
- package/dist/app/assets/{autohotkey-DPvpcFFH.js → autohotkey-DwN-vRLI.js} +1 -1
- package/dist/app/assets/{autoit-CSKFQd37.js → autoit-DmaKLtra.js} +1 -1
- package/dist/app/assets/{avisynth-BfQJ_EZU.js → avisynth-TfTNI5Jh.js} +1 -1
- package/dist/app/assets/{avro-idl-D5UEhxUm.js → avro-idl-BMl39ClO.js} +1 -1
- package/dist/app/assets/{bash-CIxWOy3a.js → bash-BL8Wr16b.js} +1 -1
- package/dist/app/assets/{basic-BzjBKuIq.js → basic-DRgjzuhu.js} +1 -1
- package/dist/app/assets/{batch-DP9PrcLW.js → batch-B0F3WEBi.js} +1 -1
- package/dist/app/assets/{bbcode-CIJyXvpS.js → bbcode-FiQxHi6h.js} +1 -1
- package/dist/app/assets/{bicep-DdGSKGWo.js → bicep-D8HO5zjF.js} +1 -1
- package/dist/app/assets/{birb-8AsUbp_2.js → birb-DhMcYYsj.js} +1 -1
- package/dist/app/assets/{bison-DKZkxBxI.js → bison-Cin6wY4N.js} +1 -1
- package/dist/app/assets/{blockDiagram-DXYQGD6D-CapJMPe0.js → blockDiagram-DXYQGD6D-HCr3yXJI.js} +1 -1
- package/dist/app/assets/{bnf-ZIyE0Phb.js → bnf-COE4RYA6.js} +1 -1
- package/dist/app/assets/{brainfuck-Da2lmQif.js → brainfuck-CjedmhHx.js} +1 -1
- package/dist/app/assets/{brightscript-hBFzXBvG.js → brightscript-DQZTle85.js} +1 -1
- package/dist/app/assets/{bro-BwkvPXTD.js → bro-YtAth1PJ.js} +1 -1
- package/dist/app/assets/{bsl-AtXL3UII.js → bsl-DmdUN1WI.js} +1 -1
- package/dist/app/assets/{c-BtBUNHgs.js → c-CkuI0-9w.js} +1 -1
- package/dist/app/assets/{c4Diagram-AHTNJAMY-DhMOKqN5.js → c4Diagram-AHTNJAMY-BUVYp0Ut.js} +1 -1
- package/dist/app/assets/{cfscript-DrYdkuRa.js → cfscript-D2qpX-Sr.js} +1 -1
- package/dist/app/assets/{chaiscript-DInnzZ0i.js → chaiscript-CarRzcrb.js} +1 -1
- package/dist/app/assets/channel-D5NsBRq7.js +1 -0
- package/dist/app/assets/{chunk-4BX2VUAB-t0hzegHd.js → chunk-4BX2VUAB-DhGE1ZFH.js} +1 -1
- package/dist/app/assets/{chunk-4TB4RGXK-iSOZmk_7.js → chunk-4TB4RGXK-BEUUWAcZ.js} +1 -1
- package/dist/app/assets/{chunk-55IACEB6-fjuEZmuR.js → chunk-55IACEB6-ck04xuIL.js} +1 -1
- package/dist/app/assets/{chunk-EDXVE4YY-DD8988ru.js → chunk-EDXVE4YY-B-xbn47D.js} +1 -1
- package/dist/app/assets/{chunk-FMBD7UC4-YlNAZG3z.js → chunk-FMBD7UC4-DqlLafVB.js} +1 -1
- package/dist/app/assets/{chunk-OYMX7WX6-oVl_i6h2.js → chunk-OYMX7WX6-CnxkISRo.js} +1 -1
- package/dist/app/assets/{chunk-QZHKN3VN-CiPU1gQT.js → chunk-QZHKN3VN-BZCqROC6.js} +1 -1
- package/dist/app/assets/{chunk-YZCP3GAM-CBtkGq5l.js → chunk-YZCP3GAM-CS8tpU-B.js} +1 -1
- package/dist/app/assets/{cil-BlyDPoKO.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-B9lZDt0z.js → clike-C-DkSPvO.js} +1 -1
- package/dist/app/assets/{clojure-CQKEKvm-.js → clojure-woUl7x0t.js} +1 -1
- package/dist/app/assets/clone-Bma5UCo8.js +1 -0
- package/dist/app/assets/{cmake-DWfQmcXT.js → cmake-DfXMWqVV.js} +1 -1
- package/dist/app/assets/{cobol-Bo09vWQl.js → cobol-DCc6dAiW.js} +1 -1
- package/dist/app/assets/{coffeescript-BrejUiR5.js → coffeescript-CVkzhm24.js} +1 -1
- package/dist/app/assets/{concurnas-Du9y8EW9.js → concurnas-DucY-v95.js} +1 -1
- package/dist/app/assets/{coq-BuDZTAo2.js → coq-DiLVaor5.js} +1 -1
- package/dist/app/assets/{core-Dg7Cs_d3.js → core-BZrOvGMG.js} +1 -1
- package/dist/app/assets/{cose-bilkent-S5V4N54A-BUx6mHBG.js → cose-bilkent-S5V4N54A-D_Vzb0Bj.js} +1 -1
- package/dist/app/assets/{cpp-BP_fW1rJ.js → cpp-BsuoZsEC.js} +1 -1
- package/dist/app/assets/{crystal-of9OtDt2.js → crystal-C8VluDKN.js} +1 -1
- package/dist/app/assets/{csharp-B26iJ4pD.js → csharp-Ds6aqVUQ.js} +1 -1
- package/dist/app/assets/{cshtml-B_H9lt_s.js → cshtml-BSBc7i0r.js} +1 -1
- package/dist/app/assets/{csp-BTLEDEDh.js → csp-B05fznhr.js} +1 -1
- package/dist/app/assets/{css-DwqucVIq.js → css-DJPP4Z8A.js} +1 -1
- package/dist/app/assets/{css-extras-BRyzYvTv.js → css-extras-D7VrJ4dc.js} +1 -1
- package/dist/app/assets/{csv-Dfv7JUHl.js → csv-DnjINxTk.js} +1 -1
- package/dist/app/assets/{cypher-CFf2KvJm.js → cypher-B6Kchb2O.js} +1 -1
- package/dist/app/assets/{d-BBHABhBy.js → d-DTEcpQpQ.js} +1 -1
- package/dist/app/assets/{dagre-KV5264BT-C_xScYxl.js → dagre-KV5264BT-D3TzdaKR.js} +1 -1
- package/dist/app/assets/{dart-CcHRa8Aq.js → dart-DvzWV4gq.js} +1 -1
- package/dist/app/assets/{dataweave-ByqPk7YK.js → dataweave-SvsJv6s8.js} +1 -1
- package/dist/app/assets/{dax-PJLrt-Ta.js → dax-hJUJ6K7l.js} +1 -1
- package/dist/app/assets/{dhall-BrKWqO0n.js → dhall-C1k_uxvY.js} +1 -1
- package/dist/app/assets/{diagram-5BDNPKRD-CRfAFg7B.js → diagram-5BDNPKRD-jeiuimP_.js} +1 -1
- package/dist/app/assets/{diagram-G4DWMVQ6-CVrbX-uU.js → diagram-G4DWMVQ6-75jI0aka.js} +1 -1
- package/dist/app/assets/{diagram-MMDJMWI5-Bb2m5nM1.js → diagram-MMDJMWI5-CFfz8Sm3.js} +1 -1
- package/dist/app/assets/{diagram-TYMM5635-iqIRN92N.js → diagram-TYMM5635-DH2lbUTC.js} +1 -1
- package/dist/app/assets/{diff-5yMCiwti.js → diff-BwLflHil.js} +1 -1
- package/dist/app/assets/{django-Dt6Dnlqr.js → django-BaSpPEOE.js} +1 -1
- package/dist/app/assets/{dns-zone-file-Cy4GZLeh.js → dns-zone-file-CVW0RkqX.js} +1 -1
- package/dist/app/assets/{docker-CIJvR2cE.js → docker-CEFjdznt.js} +1 -1
- package/dist/app/assets/{dot-GoxjryG-.js → dot-9XjPfg4V.js} +1 -1
- package/dist/app/assets/{ebnf-DO3lu14r.js → ebnf-DfHJr-Yo.js} +1 -1
- package/dist/app/assets/{editorconfig-BK1AXaAL.js → editorconfig-zPHY_SOt.js} +1 -1
- package/dist/app/assets/{eiffel-C23XDse5.js → eiffel-CY-ceAPf.js} +1 -1
- package/dist/app/assets/{ejs-CUj5uYgc.js → ejs-B9kUBMIM.js} +1 -1
- package/dist/app/assets/{elixir-D8XndvGf.js → elixir-Dv2I-B4L.js} +1 -1
- package/dist/app/assets/{elm-1chKIEKf.js → elm-BgtDFSks.js} +1 -1
- package/dist/app/assets/{erDiagram-SMLLAGMA-BgYIJXSM.js → erDiagram-SMLLAGMA-DFg05Dgn.js} +1 -1
- package/dist/app/assets/{erb-CrAAxCXK.js → erb-C4gUj5tu.js} +1 -1
- package/dist/app/assets/{erlang-moG0w0yW.js → erlang-c56ZE8X2.js} +1 -1
- package/dist/app/assets/{etlua-JUJSZtx9.js → etlua-BriWi48Q.js} +1 -1
- package/dist/app/assets/{excel-formula-53V4q2W_.js → excel-formula-BjjhXLHp.js} +1 -1
- package/dist/app/assets/{factor-eVDYbGXp.js → factor-C65iXl2s.js} +1 -1
- package/dist/app/assets/{false-BlN8Z-7u.js → false-B4J7LvOI.js} +1 -1
- package/dist/app/assets/{firestore-security-rules-BgH00226.js → firestore-security-rules-BSMqKpQx.js} +1 -1
- package/dist/app/assets/{flow-BVRgZuhM.js → flow-DvSzmNK4.js} +1 -1
- package/dist/app/assets/{flowDiagram-DWJPFMVM-O2I1iTnT.js → flowDiagram-DWJPFMVM-CbJ6CyYB.js} +1 -1
- package/dist/app/assets/{fortran-lUbOqYnl.js → fortran-DRediubc.js} +1 -1
- package/dist/app/assets/{fsharp-CAL4oZ9E.js → fsharp-CSuGtDNZ.js} +1 -1
- package/dist/app/assets/{ftl-BmzruZ-7.js → ftl-Dk0kTLkr.js} +1 -1
- package/dist/app/assets/{ganttDiagram-T4ZO3ILL-CifkQelq.js → ganttDiagram-T4ZO3ILL-CzADpq2Q.js} +1 -1
- package/dist/app/assets/{gap-DRxhVAAq.js → gap-C2HPuY5y.js} +1 -1
- package/dist/app/assets/{gcode-DsjpXehc.js → gcode-CNkJDW12.js} +1 -1
- package/dist/app/assets/{gdscript-BS7xXgGn.js → gdscript-Ddbm10Eo.js} +1 -1
- package/dist/app/assets/{gedcom-MJN6M8_V.js → gedcom-DGWECxHt.js} +1 -1
- package/dist/app/assets/{gherkin-Doz4J-xv.js → gherkin-DkZoqva3.js} +1 -1
- package/dist/app/assets/{git-BPqzW_uX.js → git-CaBgh_A6.js} +1 -1
- package/dist/app/assets/{gitGraphDiagram-UUTBAWPF-COCOpUX3.js → gitGraphDiagram-UUTBAWPF-DMHTaVFF.js} +1 -1
- package/dist/app/assets/{glsl-Bc21DnX8.js → glsl-C9lJAkhH.js} +1 -1
- package/dist/app/assets/{gml-bONuSRuR.js → gml-DfDwXu-s.js} +1 -1
- package/dist/app/assets/{gn-C2WAsB3q.js → gn-DcAjwOWf.js} +1 -1
- package/dist/app/assets/{go-Bj5J7kfg.js → go-DvFw0DJZ.js} +1 -1
- package/dist/app/assets/{go-module-ZoQ9_0K1.js → go-module-C_-7e9U7.js} +1 -1
- package/dist/app/assets/{graph-B_OtdwGg.js → graph-DEk6BWGL.js} +1 -1
- package/dist/app/assets/{graphql-BiS2VLfr.js → graphql-C-rTTHtJ.js} +1 -1
- package/dist/app/assets/{groovy-DEddatdC.js → groovy-DFMbERuk.js} +1 -1
- package/dist/app/assets/{haml-Ca6rb3VI.js → haml-CDFAmkh0.js} +1 -1
- package/dist/app/assets/{handlebars-Cj2GSywI.js → handlebars-BjsadT45.js} +1 -1
- package/dist/app/assets/{haskell--h0WITgA.js → haskell-CuB_7VZQ.js} +1 -1
- package/dist/app/assets/{haxe-Bi8MqXjU.js → haxe-CDLw9gNV.js} +1 -1
- package/dist/app/assets/{hcl-DTMK-9xT.js → hcl-BfWezVV7.js} +1 -1
- package/dist/app/assets/{hlsl-g1lp2kel.js → hlsl-ox9e0afz.js} +1 -1
- package/dist/app/assets/{hoon-CBWor6Z5.js → hoon-tvSPlxEl.js} +1 -1
- package/dist/app/assets/{hpkp-NHiOWSjL.js → hpkp-Czhlv-sF.js} +1 -1
- package/dist/app/assets/{hsts-DqpTPXyd.js → hsts-ax9H4GEU.js} +1 -1
- package/dist/app/assets/{http-CjhVo8zK.js → http-CA6SuJcC.js} +1 -1
- package/dist/app/assets/{ichigojam-BJ1M3Oab.js → ichigojam-CqvvcgyU.js} +1 -1
- package/dist/app/assets/{icon-Cz0xSOEy.js → icon-DWfrQ03E.js} +1 -1
- package/dist/app/assets/{icu-message-format-B8vkYV9k.js → icu-message-format-CQWc54rX.js} +1 -1
- package/dist/app/assets/{idris-B-JcZFPT.js → idris-DLQfITVV.js} +1 -1
- package/dist/app/assets/{iecst-DoyoEhFE.js → iecst-Ca2NKugZ.js} +1 -1
- package/dist/app/assets/{ignore-BgQ5je_y.js → ignore-kmxVzwHC.js} +1 -1
- package/dist/app/assets/{index-z0hbYsf9.css → index-DpEwCIj4.css} +1 -1
- package/dist/app/assets/{index-DdN2O8Y_.js → index-MT8kO0ww.js} +135 -135
- package/dist/app/assets/{infoDiagram-42DDH7IO-BoWnokfQ.js → infoDiagram-42DDH7IO-XHcPMnQ_.js} +1 -1
- package/dist/app/assets/{inform7-rv9Nrh8U.js → inform7-bVmY1GrN.js} +1 -1
- package/dist/app/assets/{ini-C9xG6mlQ.js → ini-F4CriHjA.js} +1 -1
- package/dist/app/assets/{io-Coi-GWew.js → io-C1bKXd3E.js} +1 -1
- package/dist/app/assets/{ishikawaDiagram-UXIWVN3A-DsfYztMe.js → ishikawaDiagram-UXIWVN3A-C1KESWH9.js} +1 -1
- package/dist/app/assets/{j-DSy6CVuV.js → j-4lTlo8lZ.js} +1 -1
- package/dist/app/assets/{java-CZZEJ-Dy.js → java-CUOVTS5N.js} +1 -1
- package/dist/app/assets/{javadoc-DBMVZsfK.js → javadoc-C8Z0Xr1u.js} +1 -1
- package/dist/app/assets/{javadoclike-BY5npfwp.js → javadoclike-ByzU09gf.js} +1 -1
- package/dist/app/assets/{javascript-DV6LZ_oQ.js → javascript-C9bsZzTJ.js} +1 -1
- package/dist/app/assets/{javastacktrace-JsM6cLiq.js → javastacktrace-CDqCcOuy.js} +1 -1
- package/dist/app/assets/{jexl-OruYw2Nx.js → jexl-CgRvL-aB.js} +1 -1
- package/dist/app/assets/{jolie-CiJzFBX_.js → jolie-CnRae4yo.js} +1 -1
- package/dist/app/assets/{journeyDiagram-VCZTEJTY-BrQ44_5Z.js → journeyDiagram-VCZTEJTY-BhVCwViA.js} +1 -1
- package/dist/app/assets/{jq-Bg8PNoYn.js → jq-DxYS9voj.js} +1 -1
- package/dist/app/assets/{js-extras-kcExuT2J.js → js-extras-BmSjzx4G.js} +1 -1
- package/dist/app/assets/{js-templates-Ch6Oh0Q5.js → js-templates-CEOSUvFY.js} +1 -1
- package/dist/app/assets/{jsdoc-CpFMXVEA.js → jsdoc-NswOqgGk.js} +1 -1
- package/dist/app/assets/{json-lfved1za.js → json-Ba7dYVJc.js} +1 -1
- package/dist/app/assets/{json5-CMIfYUfu.js → json5-BfCO2NEO.js} +1 -1
- package/dist/app/assets/{jsonp-cpl-YdlT.js → jsonp-BvyWzxPU.js} +1 -1
- package/dist/app/assets/{jsstacktrace-D9FpeWtr.js → jsstacktrace-DmKohQpz.js} +1 -1
- package/dist/app/assets/{jsx-CjVoeuib.js → jsx-BcduoLmj.js} +1 -1
- package/dist/app/assets/{julia-DJB1KWOr.js → julia-CzQgCD1s.js} +1 -1
- package/dist/app/assets/{kanban-definition-6JOO6SKY-CEsG1GJa.js → kanban-definition-6JOO6SKY-DjFOasMJ.js} +1 -1
- package/dist/app/assets/{keepalived-CS-kPB8b.js → keepalived-CvalI5Cn.js} +1 -1
- package/dist/app/assets/{keyman-rSv0MfhO.js → keyman-NuMy7SWP.js} +1 -1
- package/dist/app/assets/{kotlin-rSklQkkT.js → kotlin-CQsM56ed.js} +1 -1
- package/dist/app/assets/{kumir-D3KTvhS6.js → kumir-D0OJISiy.js} +1 -1
- package/dist/app/assets/{kusto-C-7sCQlP.js → kusto-C9fjH3ae.js} +1 -1
- package/dist/app/assets/{latex-n3XWDdc5.js → latex-wvQPV-lg.js} +1 -1
- package/dist/app/assets/{latte-CH3Hv0XS.js → latte-DWJz4b2T.js} +1 -1
- package/dist/app/assets/{layout-DOMaCian.js → layout-Dnz9J-H_.js} +1 -1
- package/dist/app/assets/{less-VRnTaYv_.js → less-fZSl7WFx.js} +1 -1
- package/dist/app/assets/{lilypond-fH-mBeyQ.js → lilypond-KIo85q7D.js} +1 -1
- package/dist/app/assets/{linear-CE9BEzsV.js → linear-CL6MSjEl.js} +1 -1
- package/dist/app/assets/{liquid-BkWRNMcn.js → liquid-DPkFKL4a.js} +1 -1
- package/dist/app/assets/{lisp-D2DraSgn.js → lisp-IyB5qI0o.js} +1 -1
- package/dist/app/assets/{livescript-kX3WAx5r.js → livescript-CXmDuWek.js} +1 -1
- package/dist/app/assets/{llvm-BlEkEh9o.js → llvm-C9n-Frid.js} +1 -1
- package/dist/app/assets/{log-DUDYCpty.js → log-DTd2eweY.js} +1 -1
- package/dist/app/assets/{lolcode-DXB4uD3W.js → lolcode-UV8v1Ivx.js} +1 -1
- package/dist/app/assets/{lua-CfHd1jcm.js → lua-BF4aiENV.js} +1 -1
- package/dist/app/assets/{magma-MxfhXI5I.js → magma-BKi5VfnT.js} +1 -1
- package/dist/app/assets/{makefile-v_FRKzaQ.js → makefile-CMmm13J7.js} +1 -1
- package/dist/app/assets/{markdown-DkFEb4oa.js → markdown-DO70OVBB.js} +1 -1
- package/dist/app/assets/{markup-B3laG32a.js → markup-Bk-71t36.js} +1 -1
- package/dist/app/assets/{markup-templating-QuTJhob0.js → markup-templating-Do5-9Asl.js} +1 -1
- package/dist/app/assets/{matlab-CXeZeGY4.js → matlab-BTfyR-w5.js} +1 -1
- package/dist/app/assets/{maxscript-CJVVt36O.js → maxscript-DUtlTRni.js} +1 -1
- package/dist/app/assets/{mel-D9C63dfP.js → mel-BIa3y7bE.js} +1 -1
- package/dist/app/assets/{mermaid-ChZslda_.js → mermaid-CX7UIW1Q.js} +1 -1
- package/dist/app/assets/{min-DODVoPky.js → min-Gn-lHMwm.js} +1 -1
- package/dist/app/assets/{mindmap-definition-QFDTVHPH-xvkN7DLo.js → mindmap-definition-QFDTVHPH-C0javs-e.js} +1 -1
- package/dist/app/assets/{mizar-DxiMQAG5.js → mizar-7pmYJKEP.js} +1 -1
- package/dist/app/assets/{mongodb-WS13YMnp.js → mongodb-CHfp-6SB.js} +1 -1
- package/dist/app/assets/{monkey-C9bBMrzG.js → monkey-DWI-thhA.js} +1 -1
- package/dist/app/assets/{moonscript-Bp30eIrA.js → moonscript-BFvb5Y1t.js} +1 -1
- package/dist/app/assets/{n1ql-BQTjxZTr.js → n1ql-BVnO1BAt.js} +1 -1
- package/dist/app/assets/{n4js-ZCFT2U4w.js → n4js-BsTOUdys.js} +1 -1
- package/dist/app/assets/{nand2tetris-hdl-o9TkCerb.js → nand2tetris-hdl-_v3dAvjh.js} +1 -1
- package/dist/app/assets/{naniscript-CY9Tr8QS.js → naniscript-C3Z121kz.js} +1 -1
- package/dist/app/assets/{nasm-D4tjFO76.js → nasm-BP4ETiIE.js} +1 -1
- package/dist/app/assets/{neon-CaIgP_XC.js → neon-C0BCC8Xg.js} +1 -1
- package/dist/app/assets/{nevod-BkDEh9gS.js → nevod-Cwv8aOmw.js} +1 -1
- package/dist/app/assets/{nginx-CENeOcEA.js → nginx-2PwKqqAR.js} +1 -1
- package/dist/app/assets/{nim-BRvs-XoW.js → nim-DRx--wVs.js} +1 -1
- package/dist/app/assets/{nix-DB8cBEev.js → nix-_uk2FKeA.js} +1 -1
- package/dist/app/assets/{nsis-CRmfDEc0.js → nsis-DWiWFqpI.js} +1 -1
- package/dist/app/assets/{objectivec-Dy3J2XqF.js → objectivec-DuQC0GBR.js} +1 -1
- package/dist/app/assets/{ocaml-CKyA9YvH.js → ocaml-CW7mQ7DA.js} +1 -1
- package/dist/app/assets/{opencl-CYQcCU8e.js → opencl-IGnv-HrY.js} +1 -1
- package/dist/app/assets/{openqasm-B2JP3rJs.js → openqasm-BqJmwh1u.js} +1 -1
- package/dist/app/assets/{oz-EW8Z_rVP.js → oz-DcTi2Qwy.js} +1 -1
- package/dist/app/assets/{parigp-DPTHoxb5.js → parigp-CqYPOuQD.js} +1 -1
- package/dist/app/assets/{parser-CIs4PdMo.js → parser-B13oWgl1.js} +1 -1
- package/dist/app/assets/{pascal-CVYVFyzf.js → pascal-c6eauTAI.js} +1 -1
- package/dist/app/assets/{pascaligo-Cpo9ger5.js → pascaligo-Bt5Jpl_N.js} +1 -1
- package/dist/app/assets/{pcaxis-DDBH-dbX.js → pcaxis-D7STcJ88.js} +1 -1
- package/dist/app/assets/{peoplecode-BaH9lh29.js → peoplecode-Df3MeQvL.js} +1 -1
- package/dist/app/assets/{perl-BBiEFoOT.js → perl-B1veHTlV.js} +1 -1
- package/dist/app/assets/{php-CWbxMRQ-.js → php-DJelaBP_.js} +1 -1
- package/dist/app/assets/{php-extras-NzT6moiw.js → php-extras-BZILHOLa.js} +1 -1
- package/dist/app/assets/{phpdoc-BLfwamny.js → phpdoc-CaIivege.js} +1 -1
- package/dist/app/assets/{pieDiagram-DEJITSTG-Ur0eI2FN.js → pieDiagram-DEJITSTG-CFMh7ZLo.js} +1 -1
- package/dist/app/assets/{plsql-CPL7oUTG.js → plsql-OjC-GN6T.js} +1 -1
- package/dist/app/assets/{powerquery-u7SjXOyc.js → powerquery-BXcwxkm3.js} +1 -1
- package/dist/app/assets/{powershell-BnTElR6z.js → powershell-CmbnJC3p.js} +1 -1
- package/dist/app/assets/{processing-B00XQdPA.js → processing-Cu1qd9yP.js} +1 -1
- package/dist/app/assets/{prolog-DgUymDlX.js → prolog-Dw_jXeui.js} +1 -1
- package/dist/app/assets/{promql-VnMs1HaL.js → promql-DRU4ot-S.js} +1 -1
- package/dist/app/assets/{properties-Xy5SuXXg.js → properties-DfzvnkeU.js} +1 -1
- package/dist/app/assets/{protobuf-Dn1ZgS18.js → protobuf-maPurCax.js} +1 -1
- package/dist/app/assets/{psl-DMhT7wi8.js → psl-DlwIQKbw.js} +1 -1
- package/dist/app/assets/{pug-BXytsJQB.js → pug-dAkqTeg6.js} +1 -1
- package/dist/app/assets/{puppet-DYTjyR0q.js → puppet-CPoADFAm.js} +1 -1
- package/dist/app/assets/{pure-BJBAPuWc.js → pure-jnDx8H8Y.js} +1 -1
- package/dist/app/assets/{purebasic-CJLlU7gK.js → purebasic-DNUQm9Et.js} +1 -1
- package/dist/app/assets/{purescript-ChuoqZM-.js → purescript-CcEjyhvi.js} +1 -1
- package/dist/app/assets/{q-BinJlHg1.js → q-COLAgV0Y.js} +1 -1
- package/dist/app/assets/{qml-BIhU44Tk.js → qml-moT4w0RU.js} +1 -1
- package/dist/app/assets/{qore-GZ9NK1QI.js → qore-DCx-Oari.js} +1 -1
- package/dist/app/assets/{qsharp-BagE9ybk.js → qsharp-C4hMcK9D.js} +1 -1
- package/dist/app/assets/{quadrantDiagram-34T5L4WZ-DDNgakAn.js → quadrantDiagram-34T5L4WZ-ePCVGz9x.js} +1 -1
- package/dist/app/assets/{r-ClWg07YF.js → r-C-WfUNpi.js} +1 -1
- package/dist/app/assets/{racket-B0nIINzz.js → racket-BZOT6O-m.js} +1 -1
- package/dist/app/assets/{reason-qE-JFzek.js → reason-BYS5Kv1P.js} +1 -1
- package/dist/app/assets/{regex-DkN8oVCz.js → regex-DTpY03uP.js} +1 -1
- package/dist/app/assets/{rego-COIVLshR.js → rego-Coq2P5sz.js} +1 -1
- package/dist/app/assets/{renpy-6x7bObPe.js → renpy-BD6BWV5e.js} +1 -1
- package/dist/app/assets/{requirementDiagram-MS252O5E-Bwtvzs8d.js → requirementDiagram-MS252O5E-DoU1KO1F.js} +1 -1
- package/dist/app/assets/{rest-D1gGAMoK.js → rest-DeLGMmWA.js} +1 -1
- package/dist/app/assets/{rip-DNwlCJg0.js → rip-CXd6BWe1.js} +1 -1
- package/dist/app/assets/{roboconf-OEHPy0B3.js → roboconf-BxA4vMpZ.js} +1 -1
- package/dist/app/assets/{robotframework-BEyMnaMC.js → robotframework-AIf29_9P.js} +1 -1
- package/dist/app/assets/{ruby-CLPfkakS.js → ruby-mIEREBH9.js} +1 -1
- package/dist/app/assets/{rust-BAak1kNU.js → rust-BCmyOg5n.js} +1 -1
- package/dist/app/assets/{sankeyDiagram-XADWPNL6-3e4ZL47V.js → sankeyDiagram-XADWPNL6-CAJcy3UE.js} +1 -1
- package/dist/app/assets/{sas-Dz7OVx1F.js → sas-BDftKlbq.js} +1 -1
- package/dist/app/assets/{sass-DZ0h8-Yc.js → sass-BJkyZ2aC.js} +1 -1
- package/dist/app/assets/{scala-C71RirOz.js → scala-COphQyF3.js} +1 -1
- package/dist/app/assets/{scheme-BKxWhG-n.js → scheme-eiSceHbe.js} +1 -1
- package/dist/app/assets/{scss-E7UaG6Od.js → scss-BJiv8mn3.js} +1 -1
- package/dist/app/assets/{sequenceDiagram-FGHM5R23-CqXuWIAW.js → sequenceDiagram-FGHM5R23-D9RuFKXc.js} +1 -1
- package/dist/app/assets/{shell-session-lW32Okq4.js → shell-session-Di_TNCoe.js} +1 -1
- package/dist/app/assets/{smali-DzL_tI_2.js → smali-RWnI_VB7.js} +1 -1
- package/dist/app/assets/{smalltalk-CKmSdKyu.js → smalltalk-BA05YOX1.js} +1 -1
- package/dist/app/assets/{smarty-DOsiT1nq.js → smarty-ecumexhl.js} +1 -1
- package/dist/app/assets/{sml-CsulMLHi.js → sml--wk3wu3_.js} +1 -1
- package/dist/app/assets/{solidity-CiDAyGpC.js → solidity-C4acB0_R.js} +1 -1
- package/dist/app/assets/{solution-file-CnS2ojbU.js → solution-file-DU89gugK.js} +1 -1
- package/dist/app/assets/{soy-Dun9__rM.js → soy-B0_zN7cX.js} +1 -1
- package/dist/app/assets/{sparql-D9dmDzRU.js → sparql-P9fFKONd.js} +1 -1
- package/dist/app/assets/{splunk-spl-B-VA2mEa.js → splunk-spl-bN22h9SM.js} +1 -1
- package/dist/app/assets/{sqf-DtdmR0vd.js → sqf-Dq-oAdvd.js} +1 -1
- package/dist/app/assets/{sql-CmkSnYub.js → sql-BNLeCI4i.js} +1 -1
- package/dist/app/assets/{squirrel-BE51s-l7.js → squirrel-YihGku12.js} +1 -1
- package/dist/app/assets/{stan-UCPIVXlW.js → stan-DMujZjti.js} +1 -1
- package/dist/app/assets/{stateDiagram-FHFEXIEX-CrceCqP5.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-wjpBGAAY.js → stylus-CgP5IqfO.js} +1 -1
- package/dist/app/assets/{swift-CR3Mx2d7.js → swift-BuGdDqjI.js} +1 -1
- package/dist/app/assets/{systemd-t4mco9kP.js → systemd-BEwRY5b6.js} +1 -1
- package/dist/app/assets/{t4-cs-D_SBO9di.js → t4-cs-Dpcvpa3q.js} +1 -1
- package/dist/app/assets/{t4-templating-SrlTL5Dy.js → t4-templating-DF1FF1fo.js} +1 -1
- package/dist/app/assets/{t4-vb-Panh7BP6.js → t4-vb-D45rIlaC.js} +1 -1
- package/dist/app/assets/{tap-BEisKqIU.js → tap-mdKU5Z0y.js} +1 -1
- package/dist/app/assets/{tcl-DsG0_tuV.js → tcl-BFoy2dZq.js} +1 -1
- package/dist/app/assets/{textile-CtUUJZ-o.js → textile-Cj8nTD6X.js} +1 -1
- package/dist/app/assets/{timeline-definition-GMOUNBTQ-CMFMPXOv.js → timeline-definition-GMOUNBTQ-CCnZdI8r.js} +1 -1
- package/dist/app/assets/{toml-D4vGfUho.js → toml-Cc1SczHl.js} +1 -1
- package/dist/app/assets/{tremor-DOSwkTZQ.js → tremor-DSCtkq1m.js} +1 -1
- package/dist/app/assets/{tt2-BBcd-g3G.js → tt2-BVb0RtBu.js} +1 -1
- package/dist/app/assets/{turtle-DvhF51Ob.js → turtle-BwORMhHy.js} +1 -1
- package/dist/app/assets/{twig-CZnZHM-F.js → twig-S-H9SbBe.js} +1 -1
- package/dist/app/assets/{typescript-D_c6544G.js → typescript-DAfg8hyh.js} +1 -1
- package/dist/app/assets/{typoscript-5C4-zwpc.js → typoscript-B5h8le3v.js} +1 -1
- package/dist/app/assets/{unrealscript-Cj_5zYtR.js → unrealscript-CvqvUsof.js} +1 -1
- package/dist/app/assets/{uorazor-DgbqozHV.js → uorazor-DwzaKLDq.js} +1 -1
- package/dist/app/assets/{uri-BNxjpf_C.js → uri-C0dyYU-K.js} +1 -1
- package/dist/app/assets/{v-D-o0H5W3.js → v-DNLhdQTP.js} +1 -1
- package/dist/app/assets/{vala-5-RFcWHD.js → vala-DKWT9B25.js} +1 -1
- package/dist/app/assets/{vbnet-Dn01-Zfl.js → vbnet-C2iw7H_L.js} +1 -1
- package/dist/app/assets/{velocity-BWHTbEN5.js → velocity-BLtatwds.js} +1 -1
- package/dist/app/assets/{vennDiagram-DHZGUBPP-BpP7mybe.js → vennDiagram-DHZGUBPP-BPIyZjXT.js} +1 -1
- package/dist/app/assets/{verilog-SCv-rtal.js → verilog-BKx3egQ8.js} +1 -1
- package/dist/app/assets/{vhdl-BIz-ubNM.js → vhdl-DqrQULxx.js} +1 -1
- package/dist/app/assets/{vim-BPq3vOyo.js → vim-B4k8HJOX.js} +1 -1
- package/dist/app/assets/{visual-basic-BfZWdbND.js → visual-basic-CW0Ob8Js.js} +1 -1
- package/dist/app/assets/{wardley-RL74JXVD-nqrkrcfl.js → wardley-RL74JXVD-CJeis0YD.js} +1 -1
- package/dist/app/assets/{wardleyDiagram-NUSXRM2D-C7tEzJPg.js → wardleyDiagram-NUSXRM2D-iCXojwKS.js} +1 -1
- package/dist/app/assets/{warpscript-BOWPGGzv.js → warpscript-CJYK39NW.js} +1 -1
- package/dist/app/assets/{wasm-DkfbSwmY.js → wasm-tGnEMXrk.js} +1 -1
- package/dist/app/assets/{web-idl-Bz6KTts-.js → web-idl-CqapBL4m.js} +1 -1
- package/dist/app/assets/{wiki-DSNiXqNl.js → wiki-C8ZIuHJE.js} +1 -1
- package/dist/app/assets/{wolfram-K_FCdopi.js → wolfram-CdwQvCbc.js} +1 -1
- package/dist/app/assets/{wren-Cozd5zDO.js → wren-D5XGe5CI.js} +1 -1
- package/dist/app/assets/{xeora-CIWt9r1-.js → xeora-BcSIXfhF.js} +1 -1
- package/dist/app/assets/{xml-doc-IVZ7SB4A.js → xml-doc-CmRHEm0U.js} +1 -1
- package/dist/app/assets/{xojo-C9CB0qBc.js → xojo-4rMWxEgW.js} +1 -1
- package/dist/app/assets/{xquery-BHedVSi4.js → xquery-BEeKtha3.js} +1 -1
- package/dist/app/assets/{xychartDiagram-5P7HB3ND-CWlSYO3b.js → xychartDiagram-5P7HB3ND-Cv6NY1sW.js} +1 -1
- package/dist/app/assets/{yaml-B7bABkXl.js → yaml-43_1t6gW.js} +1 -1
- package/dist/app/assets/{yang-CTPEK4DL.js → yang-BmJkq6aF.js} +1 -1
- package/dist/app/assets/{zig-BqJLh5Pf.js → zig-8hFhlat3.js} +1 -1
- package/dist/app/index.html +2 -2
- package/dist/index.cjs +86 -50
- package/dist/index.js +86 -50
- package/package.json +3 -3
- package/dist/app/assets/channel-BHwc91-e.js +0 -1
- package/dist/app/assets/classDiagram-6PBFFD2Q-tsKz3o4h.js +0 -1
- package/dist/app/assets/classDiagram-v2-HSJHXN6E-tsKz3o4h.js +0 -1
- package/dist/app/assets/clone-DlTXzYrM.js +0 -1
- package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-DY5Zpttk.js +0 -1
package/dist/index.cjs
CHANGED
|
@@ -122,10 +122,62 @@ function createMessageId() {
|
|
|
122
122
|
|
|
123
123
|
// src/lib/message.ts
|
|
124
124
|
var import_lodash_es = require("lodash-es");
|
|
125
|
+
|
|
126
|
+
// src/lib/thread-context-usage.ts
|
|
127
|
+
var THREAD_CONTEXT_USAGE_EVENT_TYPE = "thread_context_usage";
|
|
128
|
+
function isRecord(value) {
|
|
129
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
130
|
+
}
|
|
131
|
+
function normalizeContextUsageNumber(value) {
|
|
132
|
+
if (typeof value === "number" && Number.isFinite(value) && value >= 0) {
|
|
133
|
+
return Math.floor(value);
|
|
134
|
+
}
|
|
135
|
+
if (typeof value === "string") {
|
|
136
|
+
const parsed = Number.parseFloat(value);
|
|
137
|
+
if (Number.isFinite(parsed) && parsed >= 0) {
|
|
138
|
+
return Math.floor(parsed);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
143
|
+
function isThreadContextUsageType(value) {
|
|
144
|
+
return typeof value === "string" && value.trim() === THREAD_CONTEXT_USAGE_EVENT_TYPE;
|
|
145
|
+
}
|
|
146
|
+
function isThreadContextUsageRenderArtifact(value) {
|
|
147
|
+
if (!isRecord(value)) return false;
|
|
148
|
+
if (isThreadContextUsageType(value.type)) return true;
|
|
149
|
+
if (isThreadContextUsageType(value.event)) return true;
|
|
150
|
+
const data = value.data;
|
|
151
|
+
if (!isRecord(data)) return false;
|
|
152
|
+
return isThreadContextUsageType(data.type) || isThreadContextUsageType(data.event);
|
|
153
|
+
}
|
|
154
|
+
function getThreadContextUsage(state, agentKey) {
|
|
155
|
+
if (!agentKey) return null;
|
|
156
|
+
return state[agentKey] ?? null;
|
|
157
|
+
}
|
|
158
|
+
function getThreadContextUsageTotalTokens(event) {
|
|
159
|
+
return normalizeContextUsageNumber(event?.usage?.totalTokens);
|
|
160
|
+
}
|
|
161
|
+
function resolveUsedContextSize(options) {
|
|
162
|
+
const realtimeUsedTokens = getThreadContextUsageTotalTokens(
|
|
163
|
+
options.realtimeUsage
|
|
164
|
+
);
|
|
165
|
+
if (realtimeUsedTokens != null) {
|
|
166
|
+
return realtimeUsedTokens;
|
|
167
|
+
}
|
|
168
|
+
return normalizeContextUsageNumber(options.fallbackUsedTokens) ?? 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// src/lib/message.ts
|
|
125
172
|
var ASSISTANT_STREAM_IDLE_TO_THINKING_MS = 2e3;
|
|
126
173
|
function hasRenderableReasoning(reasoning) {
|
|
127
174
|
return Array.isArray(reasoning) && reasoning.some((item) => item.text?.trim());
|
|
128
175
|
}
|
|
176
|
+
function isRenderableMessageContentItem(item) {
|
|
177
|
+
if (item === void 0) return false;
|
|
178
|
+
if (typeof item === "string") return true;
|
|
179
|
+
return !isThreadContextUsageRenderArtifact(item);
|
|
180
|
+
}
|
|
129
181
|
function hasRenderableMessageContent(content) {
|
|
130
182
|
if (typeof content === "string") {
|
|
131
183
|
return content.trim().length > 0;
|
|
@@ -135,10 +187,13 @@ function hasRenderableMessageContent(content) {
|
|
|
135
187
|
}
|
|
136
188
|
const items = content;
|
|
137
189
|
return items.some((item) => {
|
|
190
|
+
if (!isRenderableMessageContentItem(item)) {
|
|
191
|
+
return false;
|
|
192
|
+
}
|
|
138
193
|
if (typeof item === "string") {
|
|
139
194
|
return item.trim().length > 0;
|
|
140
195
|
}
|
|
141
|
-
if (
|
|
196
|
+
if (typeof item !== "object") {
|
|
142
197
|
return false;
|
|
143
198
|
}
|
|
144
199
|
if (item.type === "text") {
|
|
@@ -236,28 +291,28 @@ function getMissingApiConfigurationKind({
|
|
|
236
291
|
|
|
237
292
|
// src/lib/request-options.ts
|
|
238
293
|
var import_chatkit_types2 = require("@xpert-ai/chatkit-types");
|
|
239
|
-
function
|
|
294
|
+
function isRecord2(value) {
|
|
240
295
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
241
296
|
}
|
|
242
297
|
function resolveHumanStateValue(value) {
|
|
243
298
|
const human = value?.[import_chatkit_types2.STATE_VARIABLE_HUMAN];
|
|
244
|
-
return
|
|
299
|
+
return isRecord2(human) ? human : {};
|
|
245
300
|
}
|
|
246
301
|
function splitEnvCarrier(value) {
|
|
247
|
-
if (!
|
|
302
|
+
if (!isRecord2(value)) {
|
|
248
303
|
return { value: {}, env: {} };
|
|
249
304
|
}
|
|
250
305
|
const { env, ...rest } = value;
|
|
251
306
|
return {
|
|
252
307
|
value: rest,
|
|
253
|
-
env:
|
|
308
|
+
env: isRecord2(env) ? env : {}
|
|
254
309
|
};
|
|
255
310
|
}
|
|
256
311
|
function mergeRequestOptions(input) {
|
|
257
312
|
const defaultContext = splitEnvCarrier(input.defaults?.context);
|
|
258
313
|
const explicitContext = splitEnvCarrier(input.context);
|
|
259
|
-
const defaultConfig =
|
|
260
|
-
const explicitConfig =
|
|
314
|
+
const defaultConfig = isRecord2(input.defaults?.config) ? input.defaults?.config : {};
|
|
315
|
+
const explicitConfig = isRecord2(input.config) ? input.config : {};
|
|
261
316
|
const mergedEnv = {
|
|
262
317
|
...defaultContext.env,
|
|
263
318
|
...explicitContext.env
|
|
@@ -1050,36 +1105,6 @@ function useParentMessenger({
|
|
|
1050
1105
|
return messenger;
|
|
1051
1106
|
}
|
|
1052
1107
|
|
|
1053
|
-
// src/lib/thread-context-usage.ts
|
|
1054
|
-
function normalizeContextUsageNumber(value) {
|
|
1055
|
-
if (typeof value === "number" && Number.isFinite(value) && value >= 0) {
|
|
1056
|
-
return Math.floor(value);
|
|
1057
|
-
}
|
|
1058
|
-
if (typeof value === "string") {
|
|
1059
|
-
const parsed = Number.parseFloat(value);
|
|
1060
|
-
if (Number.isFinite(parsed) && parsed >= 0) {
|
|
1061
|
-
return Math.floor(parsed);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
return null;
|
|
1065
|
-
}
|
|
1066
|
-
function getThreadContextUsage(state, agentKey) {
|
|
1067
|
-
if (!agentKey) return null;
|
|
1068
|
-
return state[agentKey] ?? null;
|
|
1069
|
-
}
|
|
1070
|
-
function getThreadContextUsageTotalTokens(event) {
|
|
1071
|
-
return normalizeContextUsageNumber(event?.usage?.totalTokens);
|
|
1072
|
-
}
|
|
1073
|
-
function resolveUsedContextSize(options) {
|
|
1074
|
-
const realtimeUsedTokens = getThreadContextUsageTotalTokens(
|
|
1075
|
-
options.realtimeUsage
|
|
1076
|
-
);
|
|
1077
|
-
if (realtimeUsedTokens != null) {
|
|
1078
|
-
return realtimeUsedTokens;
|
|
1079
|
-
}
|
|
1080
|
-
return normalizeContextUsageNumber(options.fallbackUsedTokens) ?? 0;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
1108
|
// src/lib/thread-goals.ts
|
|
1084
1109
|
function normalizeGoalObjective(value) {
|
|
1085
1110
|
return value.trim();
|
|
@@ -7739,6 +7764,9 @@ function getAgentRunCounts(node) {
|
|
|
7739
7764
|
if (item.trim()) text += 1;
|
|
7740
7765
|
continue;
|
|
7741
7766
|
}
|
|
7767
|
+
if (isThreadContextUsageRenderArtifact(item)) {
|
|
7768
|
+
continue;
|
|
7769
|
+
}
|
|
7742
7770
|
if (isTextContent(item) || isReasoningContent(item)) {
|
|
7743
7771
|
if (item.text?.trim()) text += 1;
|
|
7744
7772
|
continue;
|
|
@@ -7850,6 +7878,7 @@ function normalizeAssistantEntries(message) {
|
|
|
7850
7878
|
}
|
|
7851
7879
|
} else if (Array.isArray(message.content)) {
|
|
7852
7880
|
message.content.forEach((item, index) => {
|
|
7881
|
+
if (isThreadContextUsageRenderArtifact(item)) return;
|
|
7853
7882
|
entries.push({
|
|
7854
7883
|
item,
|
|
7855
7884
|
index,
|
|
@@ -9630,7 +9659,7 @@ function normalizeToolToken(value) {
|
|
|
9630
9659
|
const normalized = value.trim().toLowerCase().replace(/[\s-]+/g, "_");
|
|
9631
9660
|
return normalized || null;
|
|
9632
9661
|
}
|
|
9633
|
-
function
|
|
9662
|
+
function isRecord3(value) {
|
|
9634
9663
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
9635
9664
|
}
|
|
9636
9665
|
function readString(value) {
|
|
@@ -9662,9 +9691,9 @@ function formatScore(value) {
|
|
|
9662
9691
|
}
|
|
9663
9692
|
function getLineRange(metadata) {
|
|
9664
9693
|
const loc = metadata.loc;
|
|
9665
|
-
if (!
|
|
9694
|
+
if (!isRecord3(loc)) return void 0;
|
|
9666
9695
|
const lines = loc.lines;
|
|
9667
|
-
if (!
|
|
9696
|
+
if (!isRecord3(lines)) return void 0;
|
|
9668
9697
|
const from = stringifyValue(lines.from);
|
|
9669
9698
|
const to = stringifyValue(lines.to);
|
|
9670
9699
|
if (from && to) return `${from}-${to}`;
|
|
@@ -9684,9 +9713,9 @@ function normalizeMetadataEntries(metadata) {
|
|
|
9684
9713
|
});
|
|
9685
9714
|
}
|
|
9686
9715
|
function normalizeKnowledgeResult(value, fallbackTitle) {
|
|
9687
|
-
if (!
|
|
9688
|
-
const metadata =
|
|
9689
|
-
const document2 =
|
|
9716
|
+
if (!isRecord3(value)) return null;
|
|
9717
|
+
const metadata = isRecord3(value.metadata) ? value.metadata : {};
|
|
9718
|
+
const document2 = isRecord3(value.document) ? value.document : {};
|
|
9690
9719
|
const content = readString(value.pageContent);
|
|
9691
9720
|
const title = readString(document2.name) ?? readString(metadata.originalFileName) ?? readString(metadata.source) ?? readString(value.id) ?? readString(metadata.chunkId) ?? fallbackTitle;
|
|
9692
9721
|
if (!content && Object.keys(metadata).length === 0 && Object.keys(document2).length === 0) {
|
|
@@ -9716,7 +9745,7 @@ function getRawKnowledgeData(data) {
|
|
|
9716
9745
|
}
|
|
9717
9746
|
function getRetrieverQuery(data, language) {
|
|
9718
9747
|
const input = data.input;
|
|
9719
|
-
if (
|
|
9748
|
+
if (isRecord3(input)) {
|
|
9720
9749
|
return readString(input.query) ?? readString(input.input) ?? readString(input.question);
|
|
9721
9750
|
}
|
|
9722
9751
|
return readString((0, import_chatkit_types6.resolveLocalizedText)(data.message, language)) ?? readString(input);
|
|
@@ -10384,6 +10413,7 @@ function isWidgetComponent(content) {
|
|
|
10384
10413
|
}
|
|
10385
10414
|
function isGroupableStepComponent(content) {
|
|
10386
10415
|
if (!content || typeof content === "string") return false;
|
|
10416
|
+
if (isThreadContextUsageRenderArtifact(content)) return false;
|
|
10387
10417
|
if (!isComponentContent2(content) || isWidgetComponent(content)) return false;
|
|
10388
10418
|
const data = getToolStepData(content);
|
|
10389
10419
|
const renderer = getComponentMessageRenderer(content, data);
|
|
@@ -10467,6 +10497,9 @@ function buildToolComponentRenderUnits(content, options) {
|
|
|
10467
10497
|
const units = [];
|
|
10468
10498
|
const pendingTools = [];
|
|
10469
10499
|
content.forEach((item, index) => {
|
|
10500
|
+
if (isThreadContextUsageRenderArtifact(item)) {
|
|
10501
|
+
return;
|
|
10502
|
+
}
|
|
10470
10503
|
if (isGroupableStepComponent(item) && options?.shouldGroupComponent?.(item) !== false) {
|
|
10471
10504
|
pendingTools.push({ item, index });
|
|
10472
10505
|
return;
|
|
@@ -11013,7 +11046,7 @@ var React34 = require("react");
|
|
|
11013
11046
|
var import_chatkit_types8 = require("@xpert-ai/chatkit-types");
|
|
11014
11047
|
var import_lucide_react22 = require("lucide-react");
|
|
11015
11048
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
11016
|
-
function
|
|
11049
|
+
function isRecord4(value) {
|
|
11017
11050
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
11018
11051
|
}
|
|
11019
11052
|
function readString2(record, keys) {
|
|
@@ -11026,11 +11059,11 @@ function readString2(record, keys) {
|
|
|
11026
11059
|
return null;
|
|
11027
11060
|
}
|
|
11028
11061
|
function getToolCallId(value) {
|
|
11029
|
-
if (!
|
|
11062
|
+
if (!isRecord4(value)) return null;
|
|
11030
11063
|
return readString2(value, ["id"]);
|
|
11031
11064
|
}
|
|
11032
11065
|
function getToolCallName(value) {
|
|
11033
|
-
if (!
|
|
11066
|
+
if (!isRecord4(value)) return null;
|
|
11034
11067
|
return readString2(value, ["name"]);
|
|
11035
11068
|
}
|
|
11036
11069
|
function pushClientToolCallsFromRecord(record, calls) {
|
|
@@ -11055,7 +11088,7 @@ function findRequestUserInputClientToolCallById(messages, id) {
|
|
|
11055
11088
|
) ?? null;
|
|
11056
11089
|
}
|
|
11057
11090
|
function normalizeAnswer(value) {
|
|
11058
|
-
if (!
|
|
11091
|
+
if (!isRecord4(value)) return null;
|
|
11059
11092
|
const id = readString2(value, ["id"]);
|
|
11060
11093
|
const question = readString2(value, ["question"]);
|
|
11061
11094
|
const answerValue = readString2(value, ["value"]);
|
|
@@ -11083,7 +11116,7 @@ function parseResultOutput(output) {
|
|
|
11083
11116
|
return null;
|
|
11084
11117
|
}
|
|
11085
11118
|
}
|
|
11086
|
-
if (!
|
|
11119
|
+
if (!isRecord4(result) || !Array.isArray(result.answers)) {
|
|
11087
11120
|
return null;
|
|
11088
11121
|
}
|
|
11089
11122
|
const hasExplicitType = result.type === import_chatkit_types8.REQUEST_USER_INPUT_RESULT_TYPE;
|
|
@@ -11097,7 +11130,7 @@ function parseResultOutput(output) {
|
|
|
11097
11130
|
};
|
|
11098
11131
|
}
|
|
11099
11132
|
function getRequestUserInputResultCardData(content, messages) {
|
|
11100
|
-
const data =
|
|
11133
|
+
const data = isRecord4(content.data) ? content.data : null;
|
|
11101
11134
|
if (data?.status !== "success") {
|
|
11102
11135
|
return null;
|
|
11103
11136
|
}
|
|
@@ -11741,6 +11774,9 @@ function renderContentItem(content, index, message, lookupMessages, options) {
|
|
|
11741
11774
|
if (typeof content === "string") {
|
|
11742
11775
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: textClassName, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(MarkdownText, { children: content }) }, `text-${index}`);
|
|
11743
11776
|
}
|
|
11777
|
+
if (isThreadContextUsageRenderArtifact(content)) {
|
|
11778
|
+
return null;
|
|
11779
|
+
}
|
|
11744
11780
|
if (isTextContent3(content)) {
|
|
11745
11781
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: textClassName, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(MarkdownText, { children: content.text }) }, content.id ?? `text-${index}`);
|
|
11746
11782
|
}
|
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
|
|
@@ -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();
|
|
@@ -7782,6 +7807,9 @@ function getAgentRunCounts(node) {
|
|
|
7782
7807
|
if (item.trim()) text += 1;
|
|
7783
7808
|
continue;
|
|
7784
7809
|
}
|
|
7810
|
+
if (isThreadContextUsageRenderArtifact(item)) {
|
|
7811
|
+
continue;
|
|
7812
|
+
}
|
|
7785
7813
|
if (isTextContent(item) || isReasoningContent(item)) {
|
|
7786
7814
|
if (item.text?.trim()) text += 1;
|
|
7787
7815
|
continue;
|
|
@@ -7893,6 +7921,7 @@ function normalizeAssistantEntries(message) {
|
|
|
7893
7921
|
}
|
|
7894
7922
|
} else if (Array.isArray(message.content)) {
|
|
7895
7923
|
message.content.forEach((item, index) => {
|
|
7924
|
+
if (isThreadContextUsageRenderArtifact(item)) return;
|
|
7896
7925
|
entries.push({
|
|
7897
7926
|
item,
|
|
7898
7927
|
index,
|
|
@@ -9702,7 +9731,7 @@ function normalizeToolToken(value) {
|
|
|
9702
9731
|
const normalized = value.trim().toLowerCase().replace(/[\s-]+/g, "_");
|
|
9703
9732
|
return normalized || null;
|
|
9704
9733
|
}
|
|
9705
|
-
function
|
|
9734
|
+
function isRecord3(value) {
|
|
9706
9735
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
9707
9736
|
}
|
|
9708
9737
|
function readString(value) {
|
|
@@ -9734,9 +9763,9 @@ function formatScore(value) {
|
|
|
9734
9763
|
}
|
|
9735
9764
|
function getLineRange(metadata) {
|
|
9736
9765
|
const loc = metadata.loc;
|
|
9737
|
-
if (!
|
|
9766
|
+
if (!isRecord3(loc)) return void 0;
|
|
9738
9767
|
const lines = loc.lines;
|
|
9739
|
-
if (!
|
|
9768
|
+
if (!isRecord3(lines)) return void 0;
|
|
9740
9769
|
const from = stringifyValue(lines.from);
|
|
9741
9770
|
const to = stringifyValue(lines.to);
|
|
9742
9771
|
if (from && to) return `${from}-${to}`;
|
|
@@ -9756,9 +9785,9 @@ function normalizeMetadataEntries(metadata) {
|
|
|
9756
9785
|
});
|
|
9757
9786
|
}
|
|
9758
9787
|
function normalizeKnowledgeResult(value, fallbackTitle) {
|
|
9759
|
-
if (!
|
|
9760
|
-
const metadata =
|
|
9761
|
-
const document2 =
|
|
9788
|
+
if (!isRecord3(value)) return null;
|
|
9789
|
+
const metadata = isRecord3(value.metadata) ? value.metadata : {};
|
|
9790
|
+
const document2 = isRecord3(value.document) ? value.document : {};
|
|
9762
9791
|
const content = readString(value.pageContent);
|
|
9763
9792
|
const title = readString(document2.name) ?? readString(metadata.originalFileName) ?? readString(metadata.source) ?? readString(value.id) ?? readString(metadata.chunkId) ?? fallbackTitle;
|
|
9764
9793
|
if (!content && Object.keys(metadata).length === 0 && Object.keys(document2).length === 0) {
|
|
@@ -9788,7 +9817,7 @@ function getRawKnowledgeData(data) {
|
|
|
9788
9817
|
}
|
|
9789
9818
|
function getRetrieverQuery(data, language) {
|
|
9790
9819
|
const input = data.input;
|
|
9791
|
-
if (
|
|
9820
|
+
if (isRecord3(input)) {
|
|
9792
9821
|
return readString(input.query) ?? readString(input.input) ?? readString(input.question);
|
|
9793
9822
|
}
|
|
9794
9823
|
return readString(resolveLocalizedText(data.message, language)) ?? readString(input);
|
|
@@ -10475,6 +10504,7 @@ function isWidgetComponent(content) {
|
|
|
10475
10504
|
}
|
|
10476
10505
|
function isGroupableStepComponent(content) {
|
|
10477
10506
|
if (!content || typeof content === "string") return false;
|
|
10507
|
+
if (isThreadContextUsageRenderArtifact(content)) return false;
|
|
10478
10508
|
if (!isComponentContent2(content) || isWidgetComponent(content)) return false;
|
|
10479
10509
|
const data = getToolStepData(content);
|
|
10480
10510
|
const renderer = getComponentMessageRenderer(content, data);
|
|
@@ -10558,6 +10588,9 @@ function buildToolComponentRenderUnits(content, options) {
|
|
|
10558
10588
|
const units = [];
|
|
10559
10589
|
const pendingTools = [];
|
|
10560
10590
|
content.forEach((item, index) => {
|
|
10591
|
+
if (isThreadContextUsageRenderArtifact(item)) {
|
|
10592
|
+
return;
|
|
10593
|
+
}
|
|
10561
10594
|
if (isGroupableStepComponent(item) && options?.shouldGroupComponent?.(item) !== false) {
|
|
10562
10595
|
pendingTools.push({ item, index });
|
|
10563
10596
|
return;
|
|
@@ -11107,7 +11140,7 @@ import {
|
|
|
11107
11140
|
} from "@xpert-ai/chatkit-types";
|
|
11108
11141
|
import { CheckCircle2 as CheckCircle24 } from "lucide-react";
|
|
11109
11142
|
import { jsx as jsx39, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
11110
|
-
function
|
|
11143
|
+
function isRecord4(value) {
|
|
11111
11144
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
11112
11145
|
}
|
|
11113
11146
|
function readString2(record, keys) {
|
|
@@ -11120,11 +11153,11 @@ function readString2(record, keys) {
|
|
|
11120
11153
|
return null;
|
|
11121
11154
|
}
|
|
11122
11155
|
function getToolCallId(value) {
|
|
11123
|
-
if (!
|
|
11156
|
+
if (!isRecord4(value)) return null;
|
|
11124
11157
|
return readString2(value, ["id"]);
|
|
11125
11158
|
}
|
|
11126
11159
|
function getToolCallName(value) {
|
|
11127
|
-
if (!
|
|
11160
|
+
if (!isRecord4(value)) return null;
|
|
11128
11161
|
return readString2(value, ["name"]);
|
|
11129
11162
|
}
|
|
11130
11163
|
function pushClientToolCallsFromRecord(record, calls) {
|
|
@@ -11149,7 +11182,7 @@ function findRequestUserInputClientToolCallById(messages, id) {
|
|
|
11149
11182
|
) ?? null;
|
|
11150
11183
|
}
|
|
11151
11184
|
function normalizeAnswer(value) {
|
|
11152
|
-
if (!
|
|
11185
|
+
if (!isRecord4(value)) return null;
|
|
11153
11186
|
const id = readString2(value, ["id"]);
|
|
11154
11187
|
const question = readString2(value, ["question"]);
|
|
11155
11188
|
const answerValue = readString2(value, ["value"]);
|
|
@@ -11177,7 +11210,7 @@ function parseResultOutput(output) {
|
|
|
11177
11210
|
return null;
|
|
11178
11211
|
}
|
|
11179
11212
|
}
|
|
11180
|
-
if (!
|
|
11213
|
+
if (!isRecord4(result) || !Array.isArray(result.answers)) {
|
|
11181
11214
|
return null;
|
|
11182
11215
|
}
|
|
11183
11216
|
const hasExplicitType = result.type === REQUEST_USER_INPUT_RESULT_TYPE2;
|
|
@@ -11191,7 +11224,7 @@ function parseResultOutput(output) {
|
|
|
11191
11224
|
};
|
|
11192
11225
|
}
|
|
11193
11226
|
function getRequestUserInputResultCardData(content, messages) {
|
|
11194
|
-
const data =
|
|
11227
|
+
const data = isRecord4(content.data) ? content.data : null;
|
|
11195
11228
|
if (data?.status !== "success") {
|
|
11196
11229
|
return null;
|
|
11197
11230
|
}
|
|
@@ -11839,6 +11872,9 @@ function renderContentItem(content, index, message, lookupMessages, options) {
|
|
|
11839
11872
|
if (typeof content === "string") {
|
|
11840
11873
|
return /* @__PURE__ */ jsx41("div", { className: textClassName, children: /* @__PURE__ */ jsx41(MarkdownText, { children: content }) }, `text-${index}`);
|
|
11841
11874
|
}
|
|
11875
|
+
if (isThreadContextUsageRenderArtifact(content)) {
|
|
11876
|
+
return null;
|
|
11877
|
+
}
|
|
11842
11878
|
if (isTextContent3(content)) {
|
|
11843
11879
|
return /* @__PURE__ */ jsx41("div", { className: textClassName, children: /* @__PURE__ */ jsx41(MarkdownText, { children: content.text }) }, content.id ?? `text-${index}`);
|
|
11844
11880
|
}
|
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/a2ui-react": "~0.1.0",
|
|
63
62
|
"@xpert-ai/chatkit-types": "~0.3.12",
|
|
64
|
-
"@xpert-ai/chatkit-web-shared": "~0.3.3"
|
|
63
|
+
"@xpert-ai/chatkit-web-shared": "~0.3.3",
|
|
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-DdN2O8Y_.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-iSOZmk_7.js";import{_ as i}from"./index-DdN2O8Y_.js";import"./chunk-FMBD7UC4-YlNAZG3z.js";import"./chunk-YZCP3GAM-CBtkGq5l.js";import"./chunk-55IACEB6-fjuEZmuR.js";import"./chunk-EDXVE4YY-DD8988ru.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-iSOZmk_7.js";import{_ as i}from"./index-DdN2O8Y_.js";import"./chunk-FMBD7UC4-YlNAZG3z.js";import"./chunk-YZCP3GAM-CBtkGq5l.js";import"./chunk-55IACEB6-fjuEZmuR.js";import"./chunk-EDXVE4YY-DD8988ru.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-B_OtdwGg.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-oVl_i6h2.js";import{_ as i}from"./index-DdN2O8Y_.js";import"./chunk-55IACEB6-fjuEZmuR.js";import"./chunk-EDXVE4YY-DD8988ru.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};
|