onbuzz 4.7.0 → 4.7.2
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/package.json +1 -1
- package/scripts/debug-balance-probe.mjs +35 -0
- package/src/__tests__/autoUpdateConfig.test.js +48 -12
- package/src/core/__tests__/messageProcessor.sourceHeader.test.js +7 -2
- package/src/index.js +16 -0
- package/src/interfaces/__tests__/accountRoutes.test.js +60 -2
- package/src/interfaces/accountRoutes.js +155 -7
- package/src/interfaces/webServer.js +41 -5
- package/src/services/__tests__/channelRelay.integration.test.js +49 -12
- package/src/services/__tests__/messageSource.test.js +6 -2
- package/src/services/__tests__/telegramBlockParser.test.js +183 -0
- package/src/services/__tests__/telegramService.test.js +838 -0
- package/src/services/messageSource.js +11 -11
- package/src/services/telegramBlockParser.js +145 -0
- package/src/services/telegramService.js +1273 -431
- package/web-ui/build/index.html +2 -2
- package/web-ui/build/static/1c-BLo2-5GS.js +1 -0
- package/web-ui/build/static/abap-BjUneMMr.js +1 -0
- package/web-ui/build/static/abnf-CZTz-l7P.js +1 -0
- package/web-ui/build/static/abnf-ITJ5mkBo.js +1 -0
- package/web-ui/build/static/accesslog-Dj78lZOU.js +1 -0
- package/web-ui/build/static/actionscript-Chivtu59.js +1 -0
- package/web-ui/build/static/actionscript-CrvMFXnx.js +1 -0
- package/web-ui/build/static/ada-DdJtyoYe.js +1 -0
- package/web-ui/build/static/ada-GIvogaLi.js +1 -0
- package/web-ui/build/static/agda-DbPp4fQi.js +1 -0
- package/web-ui/build/static/al-BZ24KwRS.js +1 -0
- package/web-ui/build/static/angelscript-DzsFypYt.js +1 -0
- package/web-ui/build/static/antlr4-3qb4rD3S.js +1 -0
- package/web-ui/build/static/apache-DF0P5ZRm.js +1 -0
- package/web-ui/build/static/apacheconf-C8KuNf9c.js +1 -0
- package/web-ui/build/static/apex-CPV-DeVE.js +1 -0
- package/web-ui/build/static/apl-C60bVxxW.js +1 -0
- package/web-ui/build/static/applescript-uz0i0tu1.js +1 -0
- package/web-ui/build/static/applescript-xcPRUBia.js +1 -0
- package/web-ui/build/static/aql-CRh4IGkA.js +1 -0
- package/web-ui/build/static/arcade-CmLedeqc.js +1 -0
- package/web-ui/build/static/arduino-3pr1BvXB.js +1 -0
- package/web-ui/build/static/arduino-C2BejAip.js +1 -0
- package/web-ui/build/static/arff-DE6Wr9MU.js +1 -0
- package/web-ui/build/static/armasm-DXodTfP4.js +1 -0
- package/web-ui/build/static/asciidoc-BU2BDFme.js +1 -0
- package/web-ui/build/static/asciidoc-CgvtvdeC.js +1 -0
- package/web-ui/build/static/asm6502-BMuYCKmP.js +1 -0
- package/web-ui/build/static/asmatmel-Dwxzg4kq.js +1 -0
- package/web-ui/build/static/aspectj-XZIldIRI.js +1 -0
- package/web-ui/build/static/aspnet-UxY2bZ9O.js +1 -0
- package/web-ui/build/static/autohotkey-BdZoQT7s.js +1 -0
- package/web-ui/build/static/autohotkey-DLWs6p8o.js +1 -0
- package/web-ui/build/static/autoit-CxcZx_kh.js +1 -0
- package/web-ui/build/static/autoit-HY_BHh1p.js +1 -0
- package/web-ui/build/static/avisynth-4Q4be9zq.js +1 -0
- package/web-ui/build/static/avrasm-CFqVJML2.js +1 -0
- package/web-ui/build/static/avro-idl-DVTV2YZm.js +1 -0
- package/web-ui/build/static/awk-C1Udi4As.js +1 -0
- package/web-ui/build/static/axapta-B9lexIDC.js +1 -0
- package/web-ui/build/static/bash-DDZrx0R1.js +1 -0
- package/web-ui/build/static/bash-Uuijyc_K.js +1 -0
- package/web-ui/build/static/basic-B29QFWwp.js +1 -0
- package/web-ui/build/static/basic-DKDOc42O.js +1 -0
- package/web-ui/build/static/batch-CA3q9wRr.js +1 -0
- package/web-ui/build/static/bbcode-DkUDcqrp.js +1 -0
- package/web-ui/build/static/bicep-AHSQiVgQ.js +1 -0
- package/web-ui/build/static/birb-BsAnN1j3.js +1 -0
- package/web-ui/build/static/bison-BIq5-ZXo.js +1 -0
- package/web-ui/build/static/bnf-BexLm6hz.js +1 -0
- package/web-ui/build/static/bnf-Dm46EM5S.js +1 -0
- package/web-ui/build/static/brainfuck-CBG8MHhD.js +1 -0
- package/web-ui/build/static/brainfuck-DrHuUFVv.js +1 -0
- package/web-ui/build/static/brightscript-CoQ7s_l3.js +1 -0
- package/web-ui/build/static/bro-Cz5RmvoK.js +1 -0
- package/web-ui/build/static/bsl-C9wXomkX.js +1 -0
- package/web-ui/build/static/c-BZFEFWwC.js +1 -0
- package/web-ui/build/static/c-CfFWLEL7.js +1 -0
- package/web-ui/build/static/c-like-CvIii1QP.js +1 -0
- package/web-ui/build/static/cal-be-Dz3GC.js +1 -0
- package/web-ui/build/static/capnproto-Bcaxak1e.js +1 -0
- package/web-ui/build/static/ceylon-QH_iQXnW.js +1 -0
- package/web-ui/build/static/cfscript-BRgBlxCO.js +1 -0
- package/web-ui/build/static/chaiscript-DSBx5kyN.js +1 -0
- package/web-ui/build/static/cil-C90LIbge.js +1 -0
- package/web-ui/build/static/clean-D2X3fSKw.js +1 -0
- package/web-ui/build/static/clojure-CvKE0e-3.js +1 -0
- package/web-ui/build/static/clojure-Cy3Zg4vZ.js +1 -0
- package/web-ui/build/static/clojure-repl-D0kONHv2.js +1 -0
- package/web-ui/build/static/cmake-DIDVe3n_.js +1 -0
- package/web-ui/build/static/cmake-DPijEs9c.js +1 -0
- package/web-ui/build/static/cobol-BPEjLjGY.js +1 -0
- package/web-ui/build/static/coffeescript-CoSx9MQU.js +1 -0
- package/web-ui/build/static/coffeescript-L5CBXrnP.js +1 -0
- package/web-ui/build/static/concurnas-q5sXhVU4.js +1 -0
- package/web-ui/build/static/coq-BAEq82zI.js +1 -0
- package/web-ui/build/static/coq-BBgtQZwi.js +1 -0
- package/web-ui/build/static/cos-9FdwfBC5.js +1 -0
- package/web-ui/build/static/cpp-CYt8UYn2.js +1 -0
- package/web-ui/build/static/cpp-CZ2lOXlm.js +1 -0
- package/web-ui/build/static/crmsh-C_TZWkES.js +1 -0
- package/web-ui/build/static/crystal-BDf_0NDz.js +1 -0
- package/web-ui/build/static/crystal-BrTR9dGT.js +1 -0
- package/web-ui/build/static/csharp-BSBrba50.js +1 -0
- package/web-ui/build/static/csharp-Cerqyqbn.js +1 -0
- package/web-ui/build/static/cshtml-heNA_ya5.js +1 -0
- package/web-ui/build/static/csp-CJprtNTl.js +1 -0
- package/web-ui/build/static/csp-CyYfNNga.js +1 -0
- package/web-ui/build/static/css-ClMfqSLF.js +1 -0
- package/web-ui/build/static/css-extras-BRU-Fmfk.js +1 -0
- package/web-ui/build/static/csv-VxPQSCnT.js +1 -0
- package/web-ui/build/static/cypher-COR7lVoB.js +1 -0
- package/web-ui/build/static/d-CjJIoaqU.js +1 -0
- package/web-ui/build/static/d-DrTea74c.js +1 -0
- package/web-ui/build/static/dart-Dx1CtbrO.js +1 -0
- package/web-ui/build/static/dart-Kqlt_5Iy.js +1 -0
- package/web-ui/build/static/dataweave-DpoRPYaa.js +1 -0
- package/web-ui/build/static/dax-BdRNDjXh.js +1 -0
- package/web-ui/build/static/delphi-C6ZfxFVF.js +1 -0
- package/web-ui/build/static/dhall-DZrga6Gc.js +1 -0
- package/web-ui/build/static/diff-BuMvzPYe.js +1 -0
- package/web-ui/build/static/diff-DZYXzKCb.js +1 -0
- package/web-ui/build/static/django-D_vRowuc.js +1 -0
- package/web-ui/build/static/django-NYcglI2i.js +1 -0
- package/web-ui/build/static/dns-Cd7tDS1i.js +1 -0
- package/web-ui/build/static/dns-zone-file-C3-2vwxy.js +1 -0
- package/web-ui/build/static/docker-DQ7ZFefk.js +1 -0
- package/web-ui/build/static/dockerfile-BpU0w0F-.js +1 -0
- package/web-ui/build/static/dos-B1_ZGbVG.js +1 -0
- package/web-ui/build/static/dot-BGB_tXU7.js +1 -0
- package/web-ui/build/static/dsconfig-BbDxyV_e.js +1 -0
- package/web-ui/build/static/dts-BfjOjY8l.js +1 -0
- package/web-ui/build/static/dust-BdwQ-7T_.js +1 -0
- package/web-ui/build/static/ebnf-BQTMmaYU.js +1 -0
- package/web-ui/build/static/ebnf-BwwBWilG.js +1 -0
- package/web-ui/build/static/editorconfig-DWS4VSOM.js +1 -0
- package/web-ui/build/static/eiffel-DVvlc0AI.js +1 -0
- package/web-ui/build/static/ejs-DsD496m-.js +1 -0
- package/web-ui/build/static/elixir-CLxuo9eh.js +1 -0
- package/web-ui/build/static/elixir-Cnyg3Ezx.js +1 -0
- package/web-ui/build/static/elm-CMAIkLMI.js +1 -0
- package/web-ui/build/static/elm-DZBnlwPV.js +1 -0
- package/web-ui/build/static/erb-B5xezjly.js +1 -0
- package/web-ui/build/static/erb-CJr8Ab4S.js +1 -0
- package/web-ui/build/static/erlang-BKy_rMFs.js +1 -0
- package/web-ui/build/static/erlang-DtaEL15_.js +1 -0
- package/web-ui/build/static/erlang-repl-CC5OZ0oZ.js +1 -0
- package/web-ui/build/static/etlua-1AfbSbi_.js +1 -0
- package/web-ui/build/static/excel-AEWYaJMN.js +1 -0
- package/web-ui/build/static/excel-formula-DXCH31eV.js +1 -0
- package/web-ui/build/static/factor-BvZsNxRC.js +1 -0
- package/web-ui/build/static/false-Y69sPjTa.js +1 -0
- package/web-ui/build/static/firestore-security-rules-BAYXaIU_.js +1 -0
- package/web-ui/build/static/fix-D7wVox5L.js +1 -0
- package/web-ui/build/static/flix-xYG3kZl-.js +1 -0
- package/web-ui/build/static/flow-zBPh0c8a.js +1 -0
- package/web-ui/build/static/fortran-C7OgAOwk.js +1 -0
- package/web-ui/build/static/fortran-D7HqnRra.js +1 -0
- package/web-ui/build/static/fsharp-Dz8jq_YD.js +1 -0
- package/web-ui/build/static/fsharp-wem8e879.js +1 -0
- package/web-ui/build/static/ftl-BNZhFjQT.js +1 -0
- package/web-ui/build/static/gams-C0WL3JTk.js +1 -0
- package/web-ui/build/static/gap-C3QTJPj2.js +1 -0
- package/web-ui/build/static/gauss-HDeDt6Js.js +1 -0
- package/web-ui/build/static/gcode-B6xVa-Q4.js +1 -0
- package/web-ui/build/static/gcode-KfjFk59Y.js +1 -0
- package/web-ui/build/static/gdscript-CZWTW6OT.js +1 -0
- package/web-ui/build/static/gedcom-DGTBZtDe.js +1 -0
- package/web-ui/build/static/gherkin-BM2fti5q.js +1 -0
- package/web-ui/build/static/gherkin-BsD-keLP.js +1 -0
- package/web-ui/build/static/git-CwXnrvg5.js +1 -0
- package/web-ui/build/static/glsl-CEL-DKdu.js +1 -0
- package/web-ui/build/static/glsl-DClg1hhL.js +1 -0
- package/web-ui/build/static/gml-BuyC2nUx.js +1 -0
- package/web-ui/build/static/gml-CaV0fexF.js +1 -0
- package/web-ui/build/static/gn-RZ4XHU09.js +1 -0
- package/web-ui/build/static/go-2fZP5dFL.js +1 -0
- package/web-ui/build/static/go-B-2r4QAR.js +1 -0
- package/web-ui/build/static/go-module-DSWZUUGo.js +1 -0
- package/web-ui/build/static/golo-BLZaLyU5.js +1 -0
- package/web-ui/build/static/gradle--RLe7WtU.js +1 -0
- package/web-ui/build/static/graphql-Dersm5rs.js +1 -0
- package/web-ui/build/static/groovy-BhCtzyFe.js +1 -0
- package/web-ui/build/static/groovy-CvbHavu3.js +1 -0
- package/web-ui/build/static/haml-CQhB89Xl.js +1 -0
- package/web-ui/build/static/haml-CemWzAX2.js +1 -0
- package/web-ui/build/static/handlebars-B39jLKjQ.js +1 -0
- package/web-ui/build/static/handlebars-Cl4dI91M.js +1 -0
- package/web-ui/build/static/haskell-CO9Ug-Kw.js +1 -0
- package/web-ui/build/static/haskell-EXme4CFR.js +1 -0
- package/web-ui/build/static/haxe-BDkCyqBy.js +1 -0
- package/web-ui/build/static/haxe-ahczQlFA.js +1 -0
- package/web-ui/build/static/hcl-liOTbdHr.js +1 -0
- package/web-ui/build/static/hlsl-Bnkb1zrP.js +1 -0
- package/web-ui/build/static/hoon-DCXHuTNp.js +1 -0
- package/web-ui/build/static/hpkp-CPJOGDF_.js +1 -0
- package/web-ui/build/static/hsp-BdeT0enM.js +1 -0
- package/web-ui/build/static/hsts-BoIN2VGK.js +1 -0
- package/web-ui/build/static/htmlbars-B5Ruf2zT.js +1 -0
- package/web-ui/build/static/http-BacVzmeC.js +1 -0
- package/web-ui/build/static/http-DifjpER4.js +1 -0
- package/web-ui/build/static/hy-DQ-M6mjk.js +1 -0
- package/web-ui/build/static/ichigojam-CcVrpthd.js +1 -0
- package/web-ui/build/static/icon-B4N1Fnx2.js +1 -0
- package/web-ui/build/static/icu-message-format-aDIl6Oaf.js +1 -0
- package/web-ui/build/static/idris-DKvV6i27.js +1 -0
- package/web-ui/build/static/iecst-zqZH79Dw.js +1 -0
- package/web-ui/build/static/ignore-BBbP-u2O.js +1 -0
- package/web-ui/build/static/index-CkhVK4lF.js +1164 -0
- package/web-ui/build/static/index-Cm1gK3R7.css +1 -0
- package/web-ui/build/static/index-D9JNKR2k.js +13 -0
- package/web-ui/build/static/index-DqZhvIWG.js +1 -0
- package/web-ui/build/static/inform7-BwvEArfL.js +1 -0
- package/web-ui/build/static/inform7-YkPDg57k.js +1 -0
- package/web-ui/build/static/ini-DU4drXRb.js +1 -0
- package/web-ui/build/static/ini-OhDTn0L5.js +1 -0
- package/web-ui/build/static/io-4thQGR-r.js +1 -0
- package/web-ui/build/static/irpf90-BnhmotbX.js +1 -0
- package/web-ui/build/static/isbl-BKcWS-M5.js +1 -0
- package/web-ui/build/static/j-Bw6CUCl9.js +1 -0
- package/web-ui/build/static/java-8IzvJ-mZ.js +1 -0
- package/web-ui/build/static/java-_jaQp1m2.js +1 -0
- package/web-ui/build/static/javadoc-D6KaHkhq.js +1 -0
- package/web-ui/build/static/javadoclike-B-DnR3Tl.js +1 -0
- package/web-ui/build/static/javascript-CfOOSye9.js +1 -0
- package/web-ui/build/static/javastacktrace-DHyDfhlB.js +1 -0
- package/web-ui/build/static/jboss-cli-zEH5UaRS.js +1 -0
- package/web-ui/build/static/jexl-CRpgdJ2f.js +1 -0
- package/web-ui/build/static/jolie-C5S16-nE.js +1 -0
- package/web-ui/build/static/jq-Dy-2LJZM.js +1 -0
- package/web-ui/build/static/js-extras-CNfXr3kE.js +1 -0
- package/web-ui/build/static/js-templates-DCJ1syUw.js +1 -0
- package/web-ui/build/static/jsdoc-BamyoRCh.js +1 -0
- package/web-ui/build/static/json-Buz-eeND.js +1 -0
- package/web-ui/build/static/json-D4xr_AK1.js +1 -0
- package/web-ui/build/static/json5-CS3uAaJP.js +1 -0
- package/web-ui/build/static/jsonp-CmEAdOcH.js +1 -0
- package/web-ui/build/static/jsstacktrace-D35jXpCN.js +1 -0
- package/web-ui/build/static/jsx-DRMEK-Qn.js +1 -0
- package/web-ui/build/static/julia-BgYJV7ho.js +1 -0
- package/web-ui/build/static/julia-CRsGDmxp.js +1 -0
- package/web-ui/build/static/julia-repl-D0vTZKUn.js +1 -0
- package/web-ui/build/static/keepalived-BlhBatvM.js +1 -0
- package/web-ui/build/static/keyman-B_-J66sg.js +1 -0
- package/web-ui/build/static/kotlin-B7HqYBGK.js +1 -0
- package/web-ui/build/static/kotlin-CszxhoS4.js +1 -0
- package/web-ui/build/static/kumir-B_wpMfXS.js +1 -0
- package/web-ui/build/static/kusto-BrHkOiE1.js +1 -0
- package/web-ui/build/static/lasso-xizuiq1s.js +1 -0
- package/web-ui/build/static/latex-62pryLTa.js +1 -0
- package/web-ui/build/static/latex-D7Tnbs2l.js +1 -0
- package/web-ui/build/static/latte-B_8xJj-y.js +1 -0
- package/web-ui/build/static/ldif-B69eIciC.js +1 -0
- package/web-ui/build/static/leaf-DPnh4k7N.js +1 -0
- package/web-ui/build/static/less-Bg3xuki-.js +1 -0
- package/web-ui/build/static/less-Cm-zhk4i.js +1 -0
- package/web-ui/build/static/lilypond-BFSXmrKQ.js +1 -0
- package/web-ui/build/static/liquid-D_jMXN_8.js +1 -0
- package/web-ui/build/static/lisp-CDWjXhWU.js +1 -0
- package/web-ui/build/static/lisp-DAu9fWrQ.js +1 -0
- package/web-ui/build/static/livecodeserver-BNgd6rBu.js +1 -0
- package/web-ui/build/static/livescript-C6sYNsdz.js +1 -0
- package/web-ui/build/static/livescript-CMOawYYt.js +1 -0
- package/web-ui/build/static/llvm-Yx2vcmJw.js +1 -0
- package/web-ui/build/static/llvm-w4vVb6qs.js +1 -0
- package/web-ui/build/static/log-CqhluDSP.js +1 -0
- package/web-ui/build/static/lolcode-Ck0rxP3x.js +1 -0
- package/web-ui/build/static/lsl-BwPX-Qjm.js +1 -0
- package/web-ui/build/static/lua-4H_Ijh4D.js +1 -0
- package/web-ui/build/static/lua-dDdlvQ6u.js +1 -0
- package/web-ui/build/static/magma-2nRRraug.js +1 -0
- package/web-ui/build/static/makefile-C887R9mV.js +1 -0
- package/web-ui/build/static/makefile-hlNtZePL.js +1 -0
- package/web-ui/build/static/markdown-DCALPnuW.js +1 -0
- package/web-ui/build/static/markdown-DGM_Z5tW.js +1 -0
- package/web-ui/build/static/marketplaceInstall-DbaC5Wr0.js +1 -0
- package/web-ui/build/static/markup-templating-PAvYDmBZ.js +1 -0
- package/web-ui/build/static/mathematica-CGL-Gomp.js +1 -0
- package/web-ui/build/static/matlab-C46ZZzlH.js +1 -0
- package/web-ui/build/static/matlab-WUgx8roJ.js +1 -0
- package/web-ui/build/static/maxima-Dd_TIy4H.js +1 -0
- package/web-ui/build/static/maxscript-f8SP9Ybn.js +1 -0
- package/web-ui/build/static/mel-6l2ZAh7F.js +1 -0
- package/web-ui/build/static/mel-BYdNMJzZ.js +1 -0
- package/web-ui/build/static/mercury-CdHf1buq.js +1 -0
- package/web-ui/build/static/mermaid-IRgUMtb1.js +1 -0
- package/web-ui/build/static/mipsasm-CRPpDKP4.js +1 -0
- package/web-ui/build/static/mizar-B4DBCLSi.js +1 -0
- package/web-ui/build/static/mizar-DiuZyDh7.js +1 -0
- package/web-ui/build/static/mojolicious-ChuQv8wb.js +1 -0
- package/web-ui/build/static/mongodb-CE5Epj0T.js +1 -0
- package/web-ui/build/static/monkey-BAz4pIwb.js +1 -0
- package/web-ui/build/static/monkey-i_g3gMkJ.js +1 -0
- package/web-ui/build/static/moonscript-BNaNpboV.js +1 -0
- package/web-ui/build/static/moonscript-uHlQVjxf.js +1 -0
- package/web-ui/build/static/n1ql-CBDLma2D.js +1 -0
- package/web-ui/build/static/n1ql-u4YLlLfk.js +1 -0
- package/web-ui/build/static/n4js-IVFjZEMP.js +1 -0
- package/web-ui/build/static/nand2tetris-hdl-Ba72aD32.js +1 -0
- package/web-ui/build/static/naniscript-CjMhybrb.js +1 -0
- package/web-ui/build/static/nasm-DjKhk70h.js +1 -0
- package/web-ui/build/static/neon-JEhMoh8P.js +1 -0
- package/web-ui/build/static/nevod-6tgpQVCA.js +1 -0
- package/web-ui/build/static/nginx-C6NwXcw_.js +1 -0
- package/web-ui/build/static/nginx-CquSTZbP.js +1 -0
- package/web-ui/build/static/nim-0bOOYxfL.js +1 -0
- package/web-ui/build/static/nim-aCQGMs_4.js +1 -0
- package/web-ui/build/static/nix-BV4kRCY_.js +1 -0
- package/web-ui/build/static/nix-FvSL2V8j.js +1 -0
- package/web-ui/build/static/node-repl-GtjTvb93.js +1 -0
- package/web-ui/build/static/nsis-DsftItKH.js +1 -0
- package/web-ui/build/static/nsis-pu7O80Pq.js +1 -0
- package/web-ui/build/static/objectivec-Bx7Bj0U_.js +1 -0
- package/web-ui/build/static/objectivec-GtO6Znp9.js +1 -0
- package/web-ui/build/static/ocaml-B71sR3qa.js +1 -0
- package/web-ui/build/static/ocaml-BlhoK75p.js +1 -0
- package/web-ui/build/static/opencl-40JZ6XXw.js +1 -0
- package/web-ui/build/static/openqasm-cDL6l7w3.js +1 -0
- package/web-ui/build/static/openscad-BQ0gNGv9.js +1 -0
- package/web-ui/build/static/oxygene-1fX2ftBa.js +1 -0
- package/web-ui/build/static/oz-Cgq2yQZq.js +1 -0
- package/web-ui/build/static/parigp-DfRO3DxU.js +1 -0
- package/web-ui/build/static/parser-hZcHrq-n.js +1 -0
- package/web-ui/build/static/parser3-Cf2p4Ryg.js +1 -0
- package/web-ui/build/static/pascal-C6tg_yvS.js +1 -0
- package/web-ui/build/static/pascaligo-9U9PdOS6.js +1 -0
- package/web-ui/build/static/pcaxis-B5EnEKrt.js +1 -0
- package/web-ui/build/static/peoplecode-Cf2sGzFJ.js +1 -0
- package/web-ui/build/static/perl-C9FNSHZx.js +1 -0
- package/web-ui/build/static/perl-uzSwl6wJ.js +1 -0
- package/web-ui/build/static/pf-C7Bjci1q.js +1 -0
- package/web-ui/build/static/pgsql-IBD1Cka7.js +1 -0
- package/web-ui/build/static/php-19XvqtTQ.js +1 -0
- package/web-ui/build/static/php-CUjVuQ1J.js +1 -0
- package/web-ui/build/static/php-extras-GWBU2Qbm.js +1 -0
- package/web-ui/build/static/php-template-Chtii014.js +1 -0
- package/web-ui/build/static/phpdoc-BLcJXgrV.js +1 -0
- package/web-ui/build/static/plaintext-BX3hHjdj.js +1 -0
- package/web-ui/build/static/plsql-tCcTmmsx.js +1 -0
- package/web-ui/build/static/pony-CKD16QkU.js +1 -0
- package/web-ui/build/static/powerquery-DXj7kqMe.js +1 -0
- package/web-ui/build/static/powershell-0jB2gvRR.js +1 -0
- package/web-ui/build/static/powershell-Ca6UjZV2.js +1 -0
- package/web-ui/build/static/processing-CPjwH4wc.js +1 -0
- package/web-ui/build/static/processing-ItKy7l8u.js +1 -0
- package/web-ui/build/static/profile-6N_Rzycx.js +1 -0
- package/web-ui/build/static/prolog-BV3TgLfG.js +1 -0
- package/web-ui/build/static/prolog-C5UoVyBz.js +1 -0
- package/web-ui/build/static/promql-CZot8Bw3.js +1 -0
- package/web-ui/build/static/properties-C_r_5f7N.js +1 -0
- package/web-ui/build/static/properties-qycKL1T0.js +1 -0
- package/web-ui/build/static/protobuf-BmdKEOw6.js +1 -0
- package/web-ui/build/static/protobuf-CxWC8PvT.js +1 -0
- package/web-ui/build/static/psl-CFSNRM7z.js +1 -0
- package/web-ui/build/static/pug-8dv12FtI.js +1 -0
- package/web-ui/build/static/puppet-CNjskGXn.js +1 -0
- package/web-ui/build/static/puppet-Cf6xZODN.js +1 -0
- package/web-ui/build/static/pure-exFir566.js +1 -0
- package/web-ui/build/static/purebasic-Bm6QaKku.js +1 -0
- package/web-ui/build/static/purebasic-lfzND9Qp.js +1 -0
- package/web-ui/build/static/purescript-D1xRYVQG.js +1 -0
- package/web-ui/build/static/python-DgkOjU0T.js +1 -0
- package/web-ui/build/static/python-o7BJVaX6.js +1 -0
- package/web-ui/build/static/python-repl-6SyonvH1.js +1 -0
- package/web-ui/build/static/q-CiQ2AFzU.js +1 -0
- package/web-ui/build/static/q-g7rEIWgm.js +1 -0
- package/web-ui/build/static/qml-ARc9Akfg.js +1 -0
- package/web-ui/build/static/qml-rVumxss_.js +1 -0
- package/web-ui/build/static/qore-CUXpqOSx.js +1 -0
- package/web-ui/build/static/qsharp-DMPNcgaz.js +1 -0
- package/web-ui/build/static/r-DCIo6joW.js +1 -0
- package/web-ui/build/static/r-nUBzz4LB.js +1 -0
- package/web-ui/build/static/racket--fPY_Q4o.js +1 -0
- package/web-ui/build/static/reason-CeVN9vJx.js +1 -0
- package/web-ui/build/static/reasonml-49SEasi3.js +1 -0
- package/web-ui/build/static/regex-BS97XMMk.js +1 -0
- package/web-ui/build/static/rego-Brc7DU11.js +1 -0
- package/web-ui/build/static/renpy-C2sPWAHv.js +1 -0
- package/web-ui/build/static/rest-DlZ7ycRe.js +1 -0
- package/web-ui/build/static/rib-C8WsA4on.js +1 -0
- package/web-ui/build/static/rip-dd9bS3Ar.js +1 -0
- package/web-ui/build/static/roboconf-CAEw-rS3.js +1 -0
- package/web-ui/build/static/roboconf-D0TfrLeu.js +1 -0
- package/web-ui/build/static/robotframework-CkgVY4bX.js +1 -0
- package/web-ui/build/static/routeros-DIek1v-Z.js +1 -0
- package/web-ui/build/static/rsl-DExhHtA1.js +1 -0
- package/web-ui/build/static/ruby-BjvzODgO.js +1 -0
- package/web-ui/build/static/ruby-Dflr1gcA.js +1 -0
- package/web-ui/build/static/ruleslanguage-BgzP6UBl.js +1 -0
- package/web-ui/build/static/rust-DxIro-GW.js +1 -0
- package/web-ui/build/static/rust-qWzP5Jcw.js +1 -0
- package/web-ui/build/static/sas-BrCJWU_w.js +1 -0
- package/web-ui/build/static/sas-itaOGZ-D.js +1 -0
- package/web-ui/build/static/sass-BTk1_hyU.js +1 -0
- package/web-ui/build/static/scala-DEtImhEo.js +1 -0
- package/web-ui/build/static/scala-DdZCH_nS.js +1 -0
- package/web-ui/build/static/scheme-CiOCQffl.js +1 -0
- package/web-ui/build/static/scheme-WaU-JPJX.js +1 -0
- package/web-ui/build/static/scilab-03tyg0ft.js +1 -0
- package/web-ui/build/static/scss-DXl2WSdH.js +1 -0
- package/web-ui/build/static/scss-movJ3vcX.js +1 -0
- package/web-ui/build/static/shell-DWmlNcrf.js +1 -0
- package/web-ui/build/static/shell-session-lHcfQbT0.js +1 -0
- package/web-ui/build/static/smali-7RKwn9RZ.js +1 -0
- package/web-ui/build/static/smali-TEMQ7bRM.js +1 -0
- package/web-ui/build/static/smalltalk-B_nVEfab.js +1 -0
- package/web-ui/build/static/smalltalk-BsA9wucb.js +1 -0
- package/web-ui/build/static/smarty-DSf4s_8v.js +1 -0
- package/web-ui/build/static/sml-BDO_Hmie.js +1 -0
- package/web-ui/build/static/sml-DKuy82zG.js +1 -0
- package/web-ui/build/static/solidity-jtWv6laA.js +1 -0
- package/web-ui/build/static/solution-file-DcfiquuJ.js +1 -0
- package/web-ui/build/static/soy-DmBVrDYd.js +1 -0
- package/web-ui/build/static/sparql-_JOxZ7fM.js +1 -0
- package/web-ui/build/static/splunk-spl-CHeBtp33.js +1 -0
- package/web-ui/build/static/sqf-9wI8rp5o.js +1 -0
- package/web-ui/build/static/sqf-BuKh30bG.js +1 -0
- package/web-ui/build/static/sql-ClFFHGMY.js +1 -0
- package/web-ui/build/static/sql-DVXtimpW.js +1 -0
- package/web-ui/build/static/sql_more-CNw-JJON.js +1 -0
- package/web-ui/build/static/squirrel-Bdi8LbT5.js +1 -0
- package/web-ui/build/static/stan-Brcz64A8.js +1 -0
- package/web-ui/build/static/stan-C9Q08Juk.js +1 -0
- package/web-ui/build/static/stata-ES8hryw_.js +1 -0
- package/web-ui/build/static/step21-Cfmoq4Lb.js +1 -0
- package/web-ui/build/static/stylus-DMKHLSvm.js +1 -0
- package/web-ui/build/static/stylus-Dcs8vyW2.js +1 -0
- package/web-ui/build/static/subunit-DRjv565H.js +1 -0
- package/web-ui/build/static/swift-0x_T9zx8.js +1 -0
- package/web-ui/build/static/swift-CUvpRg4a.js +1 -0
- package/web-ui/build/static/systemd-Dl8xGVv9.js +1 -0
- package/web-ui/build/static/t4-cs-DqvXuZwc.js +1 -0
- package/web-ui/build/static/t4-templating-DjN2N1uM.js +1 -0
- package/web-ui/build/static/t4-vb-CZQn9IVK.js +1 -0
- package/web-ui/build/static/taggerscript-CPCJkC2t.js +1 -0
- package/web-ui/build/static/tap-BPfuLhe7.js +1 -0
- package/web-ui/build/static/tap-CSdsd38Q.js +1 -0
- package/web-ui/build/static/tcl-4BqhAKLC.js +1 -0
- package/web-ui/build/static/tcl-Bh0Jg8jj.js +1 -0
- package/web-ui/build/static/textile-BiD4awlU.js +1 -0
- package/web-ui/build/static/thrift-Br1-10xh.js +1 -0
- package/web-ui/build/static/toml-QlLCqVpQ.js +1 -0
- package/web-ui/build/static/tp-B2Ef9EBz.js +1 -0
- package/web-ui/build/static/tremor-DuZdAfVr.js +1 -0
- package/web-ui/build/static/tsx-W3KEjccO.js +1 -0
- package/web-ui/build/static/tt2-D_tdF-56.js +1 -0
- package/web-ui/build/static/turtle-DxrQkFoq.js +1 -0
- package/web-ui/build/static/twig-DD44ApyU.js +1 -0
- package/web-ui/build/static/twig-vA3ZwAxn.js +1 -0
- package/web-ui/build/static/typescript-BfbcKNOu.js +1 -0
- package/web-ui/build/static/typescript-CvKtq1ix.js +1 -0
- package/web-ui/build/static/typoscript-BEu84JpE.js +1 -0
- package/web-ui/build/static/unrealscript-ohUNsJGM.js +1 -0
- package/web-ui/build/static/uorazor-BWer-chm.js +1 -0
- package/web-ui/build/static/uri-CPLTr_NY.js +1 -0
- package/web-ui/build/static/v-gAkMRmmI.js +1 -0
- package/web-ui/build/static/vala-Bktj5SNB.js +1 -0
- package/web-ui/build/static/vala-D1fDPFxI.js +1 -0
- package/web-ui/build/static/vbnet-Cn0g0ohh.js +1 -0
- package/web-ui/build/static/vbnet-TiYHF2WM.js +1 -0
- package/web-ui/build/static/vbscript-BUV-Kjvs.js +1 -0
- package/web-ui/build/static/vbscript-html-s1RgByjf.js +1 -0
- package/web-ui/build/static/velocity-DTy-TOwB.js +1 -0
- package/web-ui/build/static/verilog-4jk4MMXN.js +1 -0
- package/web-ui/build/static/verilog-aR4U-DJX.js +1 -0
- package/web-ui/build/static/vhdl-D72XnBZR.js +1 -0
- package/web-ui/build/static/vhdl-DFdtG28B.js +1 -0
- package/web-ui/build/static/vim-BMqsbQ-a.js +1 -0
- package/web-ui/build/static/vim-Cc3UuKOs.js +1 -0
- package/web-ui/build/static/visual-basic-CyC2kNGV.js +1 -0
- package/web-ui/build/static/warpscript-DpKFeISB.js +1 -0
- package/web-ui/build/static/wasm-SPljCkFH.js +1 -0
- package/web-ui/build/static/web-idl-Cie2yHU9.js +1 -0
- package/web-ui/build/static/wiki-BfYfwsBk.js +1 -0
- package/web-ui/build/static/wolfram-Dgi1K2gQ.js +1 -0
- package/web-ui/build/static/wren-CFQxgLld.js +1 -0
- package/web-ui/build/static/x86asm-CBIt2r64.js +1 -0
- package/web-ui/build/static/xeora-e5JHDF1T.js +1 -0
- package/web-ui/build/static/xl-CPZe-czl.js +1 -0
- package/web-ui/build/static/xml-BEuPuoS1.js +1 -0
- package/web-ui/build/static/xml-doc-DTOJGYE2.js +1 -0
- package/web-ui/build/static/xojo-ByMSKdYJ.js +1 -0
- package/web-ui/build/static/xquery--5iaD5oE.js +1 -0
- package/web-ui/build/static/xquery-DJp5PXZo.js +1 -0
- package/web-ui/build/static/yaml-CH8EnM9M.js +1 -0
- package/web-ui/build/static/yaml-mKr8oN1v.js +1 -0
- package/web-ui/build/static/yang-Nqdvm2mQ.js +1 -0
- package/web-ui/build/static/zephir-BJZaDzrW.js +1 -0
- package/web-ui/build/static/zig-DRkhvZLn.js +1 -0
- package/web-ui/build/static/1c-D_MLuenD.js +0 -1
- package/web-ui/build/static/abap-BNvFMksw.js +0 -1
- package/web-ui/build/static/abnf-WlnRJIp2.js +0 -1
- package/web-ui/build/static/abnf-mx1Wbtnp.js +0 -1
- package/web-ui/build/static/accesslog-CJumJuuV.js +0 -1
- package/web-ui/build/static/actionscript-B6CbK7n7.js +0 -1
- package/web-ui/build/static/actionscript-DZ5xfmPr.js +0 -1
- package/web-ui/build/static/ada-CCVAXM0c.js +0 -1
- package/web-ui/build/static/ada-DtGkgqC4.js +0 -1
- package/web-ui/build/static/agda-gMFRTChb.js +0 -1
- package/web-ui/build/static/al-88fYQh4r.js +0 -1
- package/web-ui/build/static/angelscript-Bibc8YWJ.js +0 -1
- package/web-ui/build/static/antlr4-DgibPJaJ.js +0 -1
- package/web-ui/build/static/apache-_pZ-s8l6.js +0 -1
- package/web-ui/build/static/apacheconf-YDldOH3Q.js +0 -1
- package/web-ui/build/static/apex-CIj23tyF.js +0 -1
- package/web-ui/build/static/apl-DtRSC0Xv.js +0 -1
- package/web-ui/build/static/applescript-CKhcPsla.js +0 -1
- package/web-ui/build/static/applescript-DuJeHJ1r.js +0 -1
- package/web-ui/build/static/aql-BgmI8Ors.js +0 -1
- package/web-ui/build/static/arcade-BX83978b.js +0 -1
- package/web-ui/build/static/arduino-BVdatcJb.js +0 -1
- package/web-ui/build/static/arduino-h6ifuWka.js +0 -1
- package/web-ui/build/static/arff-DHmbMeIA.js +0 -1
- package/web-ui/build/static/armasm-DiDgI5h5.js +0 -1
- package/web-ui/build/static/asciidoc-CBro7xXU.js +0 -1
- package/web-ui/build/static/asciidoc-DRC2X4bq.js +0 -1
- package/web-ui/build/static/asm6502-53VLu0lq.js +0 -1
- package/web-ui/build/static/asmatmel-DlRHdXes.js +0 -1
- package/web-ui/build/static/aspectj-DTSWMNl9.js +0 -1
- package/web-ui/build/static/aspnet-DEUO05ai.js +0 -1
- package/web-ui/build/static/autohotkey-3gt8xVo-.js +0 -1
- package/web-ui/build/static/autohotkey-BWcbMbe_.js +0 -1
- package/web-ui/build/static/autoit-CackGf4X.js +0 -1
- package/web-ui/build/static/autoit-Dyf0FSt2.js +0 -1
- package/web-ui/build/static/avisynth-DfCuxmn5.js +0 -1
- package/web-ui/build/static/avrasm-DdDiRWhx.js +0 -1
- package/web-ui/build/static/avro-idl-DppsvvwR.js +0 -1
- package/web-ui/build/static/awk-Cjk3U-Y4.js +0 -1
- package/web-ui/build/static/axapta-WwnY3TVf.js +0 -1
- package/web-ui/build/static/bash-C5Xkqken.js +0 -1
- package/web-ui/build/static/bash-ckPXa-RG.js +0 -1
- package/web-ui/build/static/basic-BCVHqHd2.js +0 -1
- package/web-ui/build/static/basic-D0dZbGrs.js +0 -1
- package/web-ui/build/static/batch-DUo60tbI.js +0 -1
- package/web-ui/build/static/bbcode-BVzBKrPV.js +0 -1
- package/web-ui/build/static/bicep-DkTjKL2N.js +0 -1
- package/web-ui/build/static/birb-C0rKI0h6.js +0 -1
- package/web-ui/build/static/bison-ChzwcDVc.js +0 -1
- package/web-ui/build/static/bnf-COhTgjpr.js +0 -1
- package/web-ui/build/static/bnf-DUYKVI2p.js +0 -1
- package/web-ui/build/static/brainfuck-BBJLbMxW.js +0 -1
- package/web-ui/build/static/brainfuck-DufOqE73.js +0 -1
- package/web-ui/build/static/brightscript-DXhkwfCc.js +0 -1
- package/web-ui/build/static/bro-BOFEsT-K.js +0 -1
- package/web-ui/build/static/bsl-ClV9GpNm.js +0 -1
- package/web-ui/build/static/c-Cl_3N1WB.js +0 -1
- package/web-ui/build/static/c-D0hFoAJ3.js +0 -1
- package/web-ui/build/static/c-like-D4BQ8VhL.js +0 -1
- package/web-ui/build/static/cal-CVIQ5DKG.js +0 -1
- package/web-ui/build/static/capnproto-l7oAqnCr.js +0 -1
- package/web-ui/build/static/ceylon-BEhCsFMw.js +0 -1
- package/web-ui/build/static/cfscript-DMh-xvVk.js +0 -1
- package/web-ui/build/static/chaiscript-DCvDoIGS.js +0 -1
- package/web-ui/build/static/cil-Ccn-j3TB.js +0 -1
- package/web-ui/build/static/clean-CjrEwcC-.js +0 -1
- package/web-ui/build/static/clojure-Dgo-8qFd.js +0 -1
- package/web-ui/build/static/clojure-M1AknfQi.js +0 -1
- package/web-ui/build/static/clojure-repl-BY1VLOSH.js +0 -1
- package/web-ui/build/static/cmake-CdHJ7Mp0.js +0 -1
- package/web-ui/build/static/cmake-DDGvi7kU.js +0 -1
- package/web-ui/build/static/cobol-BdrXYRxi.js +0 -1
- package/web-ui/build/static/coffeescript-BMDvMAy2.js +0 -1
- package/web-ui/build/static/coffeescript-CAYcMTRg.js +0 -1
- package/web-ui/build/static/concurnas-B8vcX0ec.js +0 -1
- package/web-ui/build/static/coq-CqvluN1S.js +0 -1
- package/web-ui/build/static/coq-vhnnRdWb.js +0 -1
- package/web-ui/build/static/cos-DY4p0y_u.js +0 -1
- package/web-ui/build/static/cpp-C3m_aEUX.js +0 -1
- package/web-ui/build/static/cpp-DRs9bbEm.js +0 -1
- package/web-ui/build/static/crmsh-CY6InunC.js +0 -1
- package/web-ui/build/static/crystal-Cwk1figA.js +0 -1
- package/web-ui/build/static/crystal-DeCJ5Pz7.js +0 -1
- package/web-ui/build/static/csharp-WmvubeKF.js +0 -1
- package/web-ui/build/static/csharp-zL1j7hXr.js +0 -1
- package/web-ui/build/static/cshtml-CbvGCaf_.js +0 -1
- package/web-ui/build/static/csp-BH2nxxKs.js +0 -1
- package/web-ui/build/static/csp-CHlC7KoB.js +0 -1
- package/web-ui/build/static/css-_X0ZO87y.js +0 -1
- package/web-ui/build/static/css-extras-wgFh56PY.js +0 -1
- package/web-ui/build/static/csv-momqe7r6.js +0 -1
- package/web-ui/build/static/cypher-hOeHFCfk.js +0 -1
- package/web-ui/build/static/d-B3d-tfyQ.js +0 -1
- package/web-ui/build/static/d-C6iyl9wX.js +0 -1
- package/web-ui/build/static/dart-BDKSE6LE.js +0 -1
- package/web-ui/build/static/dart-Bjchg8qI.js +0 -1
- package/web-ui/build/static/dataweave-ZgvdD-pH.js +0 -1
- package/web-ui/build/static/dax-yfGYNpUh.js +0 -1
- package/web-ui/build/static/delphi-CRLCdiTE.js +0 -1
- package/web-ui/build/static/dhall-yl1p1XUr.js +0 -1
- package/web-ui/build/static/diff-5SMtcFK7.js +0 -1
- package/web-ui/build/static/diff-y2RTBWsQ.js +0 -1
- package/web-ui/build/static/django-CtjG6w9L.js +0 -1
- package/web-ui/build/static/django-DNXOxI3v.js +0 -1
- package/web-ui/build/static/dns-D7Czwn_S.js +0 -1
- package/web-ui/build/static/dns-zone-file-D3yPxpjz.js +0 -1
- package/web-ui/build/static/docker-CWC5NqQQ.js +0 -1
- package/web-ui/build/static/dockerfile-CKFBVY9d.js +0 -1
- package/web-ui/build/static/dos-B7gYphQ-.js +0 -1
- package/web-ui/build/static/dot-BsisNMX4.js +0 -1
- package/web-ui/build/static/dsconfig-CEWwz7T6.js +0 -1
- package/web-ui/build/static/dts-UM5u5dMt.js +0 -1
- package/web-ui/build/static/dust-DlPmuh4d.js +0 -1
- package/web-ui/build/static/ebnf-BE6vq-fo.js +0 -1
- package/web-ui/build/static/ebnf-Czd8moGp.js +0 -1
- package/web-ui/build/static/editorconfig-Ctn83uRn.js +0 -1
- package/web-ui/build/static/eiffel-CZP01HVF.js +0 -1
- package/web-ui/build/static/ejs-BAXhrtLI.js +0 -1
- package/web-ui/build/static/elixir-C9PFjTwP.js +0 -1
- package/web-ui/build/static/elixir-DMjZPYCh.js +0 -1
- package/web-ui/build/static/elm-BH_KfOxJ.js +0 -1
- package/web-ui/build/static/elm-DRnNerE2.js +0 -1
- package/web-ui/build/static/erb-BhzUuTTy.js +0 -1
- package/web-ui/build/static/erb-DNbmX3N2.js +0 -1
- package/web-ui/build/static/erlang-BBPIw_V_.js +0 -1
- package/web-ui/build/static/erlang-BWdcSiKs.js +0 -1
- package/web-ui/build/static/erlang-repl-DQ9I6Dh_.js +0 -1
- package/web-ui/build/static/etlua-BeVNUecy.js +0 -1
- package/web-ui/build/static/excel-DYFvX5ms.js +0 -1
- package/web-ui/build/static/excel-formula-BtiqixBz.js +0 -1
- package/web-ui/build/static/factor-BCHyN6XZ.js +0 -1
- package/web-ui/build/static/false-UDWS0Dzk.js +0 -1
- package/web-ui/build/static/firestore-security-rules-B1-wJ42j.js +0 -1
- package/web-ui/build/static/fix-DrXU-V21.js +0 -1
- package/web-ui/build/static/flix-BjF0RPW9.js +0 -1
- package/web-ui/build/static/flow-DovuDACs.js +0 -1
- package/web-ui/build/static/fortran-DOqQP_9c.js +0 -1
- package/web-ui/build/static/fortran-DPASe5gH.js +0 -1
- package/web-ui/build/static/fsharp-Ckup0uPw.js +0 -1
- package/web-ui/build/static/fsharp-DyfRmGjn.js +0 -1
- package/web-ui/build/static/ftl-Coj24bDj.js +0 -1
- package/web-ui/build/static/gams-GwREZQh1.js +0 -1
- package/web-ui/build/static/gap-B7d6Bkmk.js +0 -1
- package/web-ui/build/static/gauss-DrLvPj5Z.js +0 -1
- package/web-ui/build/static/gcode-40iTJ2U1.js +0 -1
- package/web-ui/build/static/gcode-CISHXDj4.js +0 -1
- package/web-ui/build/static/gdscript-DmopCB0R.js +0 -1
- package/web-ui/build/static/gedcom-LiECv7gg.js +0 -1
- package/web-ui/build/static/gherkin-CYp_kcve.js +0 -1
- package/web-ui/build/static/gherkin-C_QgMjxf.js +0 -1
- package/web-ui/build/static/git-CfTT-600.js +0 -1
- package/web-ui/build/static/glsl-DRFMhvlG.js +0 -1
- package/web-ui/build/static/glsl-PNmpuSn0.js +0 -1
- package/web-ui/build/static/gml-3qmqfrt3.js +0 -1
- package/web-ui/build/static/gml-BTCmr4y5.js +0 -1
- package/web-ui/build/static/gn-BX0L2dQ-.js +0 -1
- package/web-ui/build/static/go-BXYOf5mS.js +0 -1
- package/web-ui/build/static/go-BnvPVHID.js +0 -1
- package/web-ui/build/static/go-module-BsPBvEmG.js +0 -1
- package/web-ui/build/static/golo-B6l7i4bX.js +0 -1
- package/web-ui/build/static/gradle-9DvvuDBJ.js +0 -1
- package/web-ui/build/static/graphql-OcCfd-Bc.js +0 -1
- package/web-ui/build/static/groovy-B33LZAt0.js +0 -1
- package/web-ui/build/static/groovy-Uyg0ruyE.js +0 -1
- package/web-ui/build/static/haml-D_FDAM6q.js +0 -1
- package/web-ui/build/static/haml-DjG31i1A.js +0 -1
- package/web-ui/build/static/handlebars-BKPDMksf.js +0 -1
- package/web-ui/build/static/handlebars-PP4M-qJ8.js +0 -1
- package/web-ui/build/static/haskell-HD9Gv3Wo.js +0 -1
- package/web-ui/build/static/haskell-nUf9ckz5.js +0 -1
- package/web-ui/build/static/haxe-BSsJNrQU.js +0 -1
- package/web-ui/build/static/haxe-D7yTwhdv.js +0 -1
- package/web-ui/build/static/hcl-_dqjptFs.js +0 -1
- package/web-ui/build/static/hlsl-DKixrsyy.js +0 -1
- package/web-ui/build/static/hoon-Di28eQfV.js +0 -1
- package/web-ui/build/static/hpkp-CXYG9zoQ.js +0 -1
- package/web-ui/build/static/hsp-lYl9KN6o.js +0 -1
- package/web-ui/build/static/hsts-CaYq9R8-.js +0 -1
- package/web-ui/build/static/htmlbars-eoY2PWS6.js +0 -1
- package/web-ui/build/static/http-2DXUmN2h.js +0 -1
- package/web-ui/build/static/http-Yjic3oWm.js +0 -1
- package/web-ui/build/static/hy-DVImg5uG.js +0 -1
- package/web-ui/build/static/ichigojam-Bdk-szlv.js +0 -1
- package/web-ui/build/static/icon-BEs9UbI_.js +0 -1
- package/web-ui/build/static/icu-message-format-DMfiLVs5.js +0 -1
- package/web-ui/build/static/idris-meksg0Ce.js +0 -1
- package/web-ui/build/static/iecst-DMPBiTmw.js +0 -1
- package/web-ui/build/static/ignore-BOQ9ZPvw.js +0 -1
- package/web-ui/build/static/index-BSEOP86D.js +0 -1
- package/web-ui/build/static/index-Be9WvMkI.js +0 -1162
- package/web-ui/build/static/index-Cr9q1fNq.css +0 -1
- package/web-ui/build/static/index-CuZ_erP9.js +0 -13
- package/web-ui/build/static/inform7-CNqu8FhU.js +0 -1
- package/web-ui/build/static/inform7-Cvfrdb0X.js +0 -1
- package/web-ui/build/static/ini-4DHUSW37.js +0 -1
- package/web-ui/build/static/ini-BgZ18Nk6.js +0 -1
- package/web-ui/build/static/io-c519ulw2.js +0 -1
- package/web-ui/build/static/irpf90-Kzq81vn5.js +0 -1
- package/web-ui/build/static/isbl-CeBN_o-W.js +0 -1
- package/web-ui/build/static/j-BmSuFx5E.js +0 -1
- package/web-ui/build/static/java-BezG0JQd.js +0 -1
- package/web-ui/build/static/java-BxBhTA1D.js +0 -1
- package/web-ui/build/static/javadoc-b96LRy9-.js +0 -1
- package/web-ui/build/static/javadoclike-BTNVp6pR.js +0 -1
- package/web-ui/build/static/javascript-B75gzQUI.js +0 -1
- package/web-ui/build/static/javastacktrace-D4xVOdoe.js +0 -1
- package/web-ui/build/static/jboss-cli-DH30pghK.js +0 -1
- package/web-ui/build/static/jexl-DF2RGmtX.js +0 -1
- package/web-ui/build/static/jolie-BlwO_Eyn.js +0 -1
- package/web-ui/build/static/jq-C7YhIw1G.js +0 -1
- package/web-ui/build/static/js-extras-JVZxoi4Q.js +0 -1
- package/web-ui/build/static/js-templates-D1CnsXgJ.js +0 -1
- package/web-ui/build/static/jsdoc-vf63NOxo.js +0 -1
- package/web-ui/build/static/json-CiKwLA5O.js +0 -1
- package/web-ui/build/static/json-pgLQeaes.js +0 -1
- package/web-ui/build/static/json5-_HMAYh1c.js +0 -1
- package/web-ui/build/static/jsonp-BeHQpb2r.js +0 -1
- package/web-ui/build/static/jsstacktrace-nw21JEtY.js +0 -1
- package/web-ui/build/static/jsx-Nxt_XhcW.js +0 -1
- package/web-ui/build/static/julia-BFczE4HB.js +0 -1
- package/web-ui/build/static/julia-DeDNID0K.js +0 -1
- package/web-ui/build/static/julia-repl-CoPTZMue.js +0 -1
- package/web-ui/build/static/keepalived-DP1sFl1b.js +0 -1
- package/web-ui/build/static/keyman-CCQVTHgo.js +0 -1
- package/web-ui/build/static/kotlin-CdZP58gi.js +0 -1
- package/web-ui/build/static/kotlin-CzNKVbXq.js +0 -1
- package/web-ui/build/static/kumir-lPok55sq.js +0 -1
- package/web-ui/build/static/kusto-oLek_zqj.js +0 -1
- package/web-ui/build/static/lasso-BFOYENIx.js +0 -1
- package/web-ui/build/static/latex-BH6YJXW6.js +0 -1
- package/web-ui/build/static/latex-IweVcDOS.js +0 -1
- package/web-ui/build/static/latte-Cmzytj93.js +0 -1
- package/web-ui/build/static/ldif-Bp4o5m10.js +0 -1
- package/web-ui/build/static/leaf-BFbMre84.js +0 -1
- package/web-ui/build/static/less-BVpV_iBx.js +0 -1
- package/web-ui/build/static/less-vdx-pGtM.js +0 -1
- package/web-ui/build/static/lilypond-Da6mCtwg.js +0 -1
- package/web-ui/build/static/liquid-RVC3EWUf.js +0 -1
- package/web-ui/build/static/lisp-Bgt-EmTk.js +0 -1
- package/web-ui/build/static/lisp-E8gUigGo.js +0 -1
- package/web-ui/build/static/livecodeserver-DDFQieJg.js +0 -1
- package/web-ui/build/static/livescript-C7FEDmfm.js +0 -1
- package/web-ui/build/static/livescript-Cc5SDmvx.js +0 -1
- package/web-ui/build/static/llvm-C22gmUEJ.js +0 -1
- package/web-ui/build/static/llvm-CjnVIiX4.js +0 -1
- package/web-ui/build/static/log-duIQICZV.js +0 -1
- package/web-ui/build/static/lolcode-Chrz9tTZ.js +0 -1
- package/web-ui/build/static/lsl-D1sdqECW.js +0 -1
- package/web-ui/build/static/lua-BFoJUb0S.js +0 -1
- package/web-ui/build/static/lua-D8RyRvqw.js +0 -1
- package/web-ui/build/static/magma-Cb3OhPkH.js +0 -1
- package/web-ui/build/static/makefile-BoVTcm8r.js +0 -1
- package/web-ui/build/static/makefile-LpYbnzZi.js +0 -1
- package/web-ui/build/static/markdown-CtQc_FZV.js +0 -1
- package/web-ui/build/static/markdown-DKz9qNdH.js +0 -1
- package/web-ui/build/static/markup-templating-D4EP19Lc.js +0 -1
- package/web-ui/build/static/mathematica-CIjlHVkd.js +0 -1
- package/web-ui/build/static/matlab-2b895p29.js +0 -1
- package/web-ui/build/static/matlab-BuluE4GS.js +0 -1
- package/web-ui/build/static/maxima-BGR8Puew.js +0 -1
- package/web-ui/build/static/maxscript-B429y77A.js +0 -1
- package/web-ui/build/static/mel-CYh_3LnF.js +0 -1
- package/web-ui/build/static/mel-CbYDscql.js +0 -1
- package/web-ui/build/static/mercury-DOee0RcU.js +0 -1
- package/web-ui/build/static/mermaid-Bgnlfred.js +0 -1
- package/web-ui/build/static/mipsasm-CB-uene8.js +0 -1
- package/web-ui/build/static/mizar-7qF42uX5.js +0 -1
- package/web-ui/build/static/mizar-Clogrskx.js +0 -1
- package/web-ui/build/static/mojolicious-BSIpTTKj.js +0 -1
- package/web-ui/build/static/mongodb--rWzrKDS.js +0 -1
- package/web-ui/build/static/monkey-C0lS2_fv.js +0 -1
- package/web-ui/build/static/monkey-DvqsFbfK.js +0 -1
- package/web-ui/build/static/moonscript-D6zFHk1D.js +0 -1
- package/web-ui/build/static/moonscript-JTxm8n_4.js +0 -1
- package/web-ui/build/static/n1ql-BwY55fjF.js +0 -1
- package/web-ui/build/static/n1ql-D8h3fDkJ.js +0 -1
- package/web-ui/build/static/n4js-5XIl8zQT.js +0 -1
- package/web-ui/build/static/nand2tetris-hdl-C4b_TExX.js +0 -1
- package/web-ui/build/static/naniscript-h2vnytgY.js +0 -1
- package/web-ui/build/static/nasm-SJmR3Ebn.js +0 -1
- package/web-ui/build/static/neon-B7dnnKEh.js +0 -1
- package/web-ui/build/static/nevod-zunhA02o.js +0 -1
- package/web-ui/build/static/nginx-BR_D0je7.js +0 -1
- package/web-ui/build/static/nginx-Cf7oQt-G.js +0 -1
- package/web-ui/build/static/nim-D-MjIxvw.js +0 -1
- package/web-ui/build/static/nim-D6YOyDC-.js +0 -1
- package/web-ui/build/static/nix-DCZEZqSO.js +0 -1
- package/web-ui/build/static/nix-Dx16U5rS.js +0 -1
- package/web-ui/build/static/node-repl-P-vGpiQ7.js +0 -1
- package/web-ui/build/static/nsis-CjyZMgjR.js +0 -1
- package/web-ui/build/static/nsis-X8NQeZjE.js +0 -1
- package/web-ui/build/static/objectivec-BejNoH7m.js +0 -1
- package/web-ui/build/static/objectivec-CGy2F8n6.js +0 -1
- package/web-ui/build/static/ocaml-C15hcRxR.js +0 -1
- package/web-ui/build/static/ocaml-U7N8L5Z7.js +0 -1
- package/web-ui/build/static/opencl-Bkm-SovU.js +0 -1
- package/web-ui/build/static/openqasm-BOc5975b.js +0 -1
- package/web-ui/build/static/openscad-CRpFnhV_.js +0 -1
- package/web-ui/build/static/oxygene-eHBZbxHy.js +0 -1
- package/web-ui/build/static/oz-B6RWw36L.js +0 -1
- package/web-ui/build/static/parigp-rifRy-ff.js +0 -1
- package/web-ui/build/static/parser-C0HBjZDk.js +0 -1
- package/web-ui/build/static/parser3-DSK81uS5.js +0 -1
- package/web-ui/build/static/pascal-BWha02r-.js +0 -1
- package/web-ui/build/static/pascaligo-B5sQ2hGz.js +0 -1
- package/web-ui/build/static/pcaxis-B1HLYPhm.js +0 -1
- package/web-ui/build/static/peoplecode-C4FPD4Yt.js +0 -1
- package/web-ui/build/static/perl-CyNx_mIa.js +0 -1
- package/web-ui/build/static/perl-rKxEWgtc.js +0 -1
- package/web-ui/build/static/pf-DbL4T2HZ.js +0 -1
- package/web-ui/build/static/pgsql-BKrwbRTY.js +0 -1
- package/web-ui/build/static/php-Cbd5TyJ-.js +0 -1
- package/web-ui/build/static/php-extras-DoVpsRj3.js +0 -1
- package/web-ui/build/static/php-template-DvdLavxo.js +0 -1
- package/web-ui/build/static/php-wYQJLv7J.js +0 -1
- package/web-ui/build/static/phpdoc-DTzZ5d0C.js +0 -1
- package/web-ui/build/static/plaintext-BRfzJjyj.js +0 -1
- package/web-ui/build/static/plsql-BLiE3aGC.js +0 -1
- package/web-ui/build/static/pony-CzLDxYVb.js +0 -1
- package/web-ui/build/static/powerquery-BdGgwM1a.js +0 -1
- package/web-ui/build/static/powershell-Cxl47yK_.js +0 -1
- package/web-ui/build/static/powershell-DrOFoqBE.js +0 -1
- package/web-ui/build/static/processing-9GbETrF_.js +0 -1
- package/web-ui/build/static/processing-M8gRGxck.js +0 -1
- package/web-ui/build/static/profile-CpNlvCnw.js +0 -1
- package/web-ui/build/static/prolog-CKZzbIr9.js +0 -1
- package/web-ui/build/static/prolog-mmIPeMRS.js +0 -1
- package/web-ui/build/static/promql-sDn1PHGN.js +0 -1
- package/web-ui/build/static/properties-CMFMCgWo.js +0 -1
- package/web-ui/build/static/properties-DQUf7KOp.js +0 -1
- package/web-ui/build/static/protobuf-CeY2Q-pH.js +0 -1
- package/web-ui/build/static/protobuf-WpfASK2n.js +0 -1
- package/web-ui/build/static/psl-D2GfEOkk.js +0 -1
- package/web-ui/build/static/pug-OMqhtHt8.js +0 -1
- package/web-ui/build/static/puppet-B68-xib8.js +0 -1
- package/web-ui/build/static/puppet-DEWzLqRg.js +0 -1
- package/web-ui/build/static/pure-C_CchY8g.js +0 -1
- package/web-ui/build/static/purebasic-D6vSqsja.js +0 -1
- package/web-ui/build/static/purebasic-Dy_z6LTs.js +0 -1
- package/web-ui/build/static/purescript-1f1OoM-A.js +0 -1
- package/web-ui/build/static/python-BssLWmNd.js +0 -1
- package/web-ui/build/static/python-CbOivp-X.js +0 -1
- package/web-ui/build/static/python-repl-Dsbi7aBP.js +0 -1
- package/web-ui/build/static/q-BC6w8B4U.js +0 -1
- package/web-ui/build/static/q-Brd1mf_C.js +0 -1
- package/web-ui/build/static/qml-BG4KN74g.js +0 -1
- package/web-ui/build/static/qml-BW-AE2Ma.js +0 -1
- package/web-ui/build/static/qore-m870d7ZA.js +0 -1
- package/web-ui/build/static/qsharp-BC9vEXOd.js +0 -1
- package/web-ui/build/static/r-BQySF8sO.js +0 -1
- package/web-ui/build/static/r-Cur0B9lo.js +0 -1
- package/web-ui/build/static/racket-CiJlajVU.js +0 -1
- package/web-ui/build/static/reason-C3VZcXa9.js +0 -1
- package/web-ui/build/static/reasonml-CpaxZwMO.js +0 -1
- package/web-ui/build/static/regex-bY-o17az.js +0 -1
- package/web-ui/build/static/rego-WPkEW7us.js +0 -1
- package/web-ui/build/static/renpy-DQr5LC4O.js +0 -1
- package/web-ui/build/static/rest-qmfCQ86m.js +0 -1
- package/web-ui/build/static/rib-DYzEblkc.js +0 -1
- package/web-ui/build/static/rip-D-NWUqHZ.js +0 -1
- package/web-ui/build/static/roboconf-CVmdy543.js +0 -1
- package/web-ui/build/static/roboconf-Ray0NGMb.js +0 -1
- package/web-ui/build/static/robotframework-DlxPBTF_.js +0 -1
- package/web-ui/build/static/routeros-S_f-nuVM.js +0 -1
- package/web-ui/build/static/rsl-CHtR71Pc.js +0 -1
- package/web-ui/build/static/ruby-ByuU-3cy.js +0 -1
- package/web-ui/build/static/ruby-DOin939S.js +0 -1
- package/web-ui/build/static/ruleslanguage-zhFrFxeU.js +0 -1
- package/web-ui/build/static/rust-B606UvZv.js +0 -1
- package/web-ui/build/static/rust-BJMuS7if.js +0 -1
- package/web-ui/build/static/sas-Bzk_0rOu.js +0 -1
- package/web-ui/build/static/sas-C-C55Hy4.js +0 -1
- package/web-ui/build/static/sass-DKkkoHtH.js +0 -1
- package/web-ui/build/static/scala-BKlnHttP.js +0 -1
- package/web-ui/build/static/scala-IsJjjIKA.js +0 -1
- package/web-ui/build/static/scheme-Bq_tfrRE.js +0 -1
- package/web-ui/build/static/scheme-DiXFvLKG.js +0 -1
- package/web-ui/build/static/scilab-DVyT87si.js +0 -1
- package/web-ui/build/static/scss-BtDpAVzH.js +0 -1
- package/web-ui/build/static/scss-D8cn4aNM.js +0 -1
- package/web-ui/build/static/shell-YROU1_yo.js +0 -1
- package/web-ui/build/static/shell-session-D06UXOLk.js +0 -1
- package/web-ui/build/static/smali-B1Wl_1dD.js +0 -1
- package/web-ui/build/static/smali-D2R-11j_.js +0 -1
- package/web-ui/build/static/smalltalk-M2S1lL6Z.js +0 -1
- package/web-ui/build/static/smalltalk-OWg84676.js +0 -1
- package/web-ui/build/static/smarty-l1m-zZmR.js +0 -1
- package/web-ui/build/static/sml-B6gSTHMm.js +0 -1
- package/web-ui/build/static/sml-BKURhRNM.js +0 -1
- package/web-ui/build/static/solidity-BcrqESJt.js +0 -1
- package/web-ui/build/static/solution-file-BYpCOi9k.js +0 -1
- package/web-ui/build/static/soy-DOQhQ7Di.js +0 -1
- package/web-ui/build/static/sparql-BwiIX_wO.js +0 -1
- package/web-ui/build/static/splunk-spl-DuIl6XxN.js +0 -1
- package/web-ui/build/static/sqf-8cYPidUR.js +0 -1
- package/web-ui/build/static/sqf-n8nRTmXc.js +0 -1
- package/web-ui/build/static/sql-D0WSLeXV.js +0 -1
- package/web-ui/build/static/sql-D8KWxFl_.js +0 -1
- package/web-ui/build/static/sql_more-D3ozDsf6.js +0 -1
- package/web-ui/build/static/squirrel-C4U4fAL5.js +0 -1
- package/web-ui/build/static/stan-BbFEvT-l.js +0 -1
- package/web-ui/build/static/stan-CJ4ny6dZ.js +0 -1
- package/web-ui/build/static/stata-BKEkbqzD.js +0 -1
- package/web-ui/build/static/step21-52PURHjy.js +0 -1
- package/web-ui/build/static/stylus-buszfxDg.js +0 -1
- package/web-ui/build/static/stylus-y0WOYXDO.js +0 -1
- package/web-ui/build/static/subunit-DU_iInw0.js +0 -1
- package/web-ui/build/static/swift-1VeEUHZi.js +0 -1
- package/web-ui/build/static/swift-Iw0x_Dum.js +0 -1
- package/web-ui/build/static/systemd-BT_5EOz8.js +0 -1
- package/web-ui/build/static/t4-cs-DlHeFrua.js +0 -1
- package/web-ui/build/static/t4-templating-Bz3RFfzp.js +0 -1
- package/web-ui/build/static/t4-vb-BMG0Q3qg.js +0 -1
- package/web-ui/build/static/taggerscript-CxwafGpT.js +0 -1
- package/web-ui/build/static/tap-6QugbkZA.js +0 -1
- package/web-ui/build/static/tap-SB1ST166.js +0 -1
- package/web-ui/build/static/tcl-CpV5bsKx.js +0 -1
- package/web-ui/build/static/tcl-Dikgd33H.js +0 -1
- package/web-ui/build/static/textile-aPmNtrkM.js +0 -1
- package/web-ui/build/static/thrift-B4Snltg5.js +0 -1
- package/web-ui/build/static/toml-B8SfswHQ.js +0 -1
- package/web-ui/build/static/tp-CdO-cn9g.js +0 -1
- package/web-ui/build/static/tremor-CqqCLe4A.js +0 -1
- package/web-ui/build/static/tsx-Ck0ZDqEy.js +0 -1
- package/web-ui/build/static/tt2-BrqZXSkJ.js +0 -1
- package/web-ui/build/static/turtle-DpnSIzmN.js +0 -1
- package/web-ui/build/static/twig-B5Et_eTY.js +0 -1
- package/web-ui/build/static/twig-C3vsy99c.js +0 -1
- package/web-ui/build/static/typescript-DH7tzpeO.js +0 -1
- package/web-ui/build/static/typescript-s1qBbHGm.js +0 -1
- package/web-ui/build/static/typoscript-DD8499cq.js +0 -1
- package/web-ui/build/static/unrealscript-C1zerCVR.js +0 -1
- package/web-ui/build/static/uorazor-CtRNfzg2.js +0 -1
- package/web-ui/build/static/uri-CAfIv8vn.js +0 -1
- package/web-ui/build/static/v-B6_f9ZGJ.js +0 -1
- package/web-ui/build/static/vala-BIpejmrf.js +0 -1
- package/web-ui/build/static/vala-BYLjm9ih.js +0 -1
- package/web-ui/build/static/vbnet-DEW7adbx.js +0 -1
- package/web-ui/build/static/vbnet-D_CuPCaz.js +0 -1
- package/web-ui/build/static/vbscript-Do9hsQ_u.js +0 -1
- package/web-ui/build/static/vbscript-html-4bMQ0-FJ.js +0 -1
- package/web-ui/build/static/velocity-CQjo2-fz.js +0 -1
- package/web-ui/build/static/verilog-C-Xvd__o.js +0 -1
- package/web-ui/build/static/verilog-Dn1ZGsRG.js +0 -1
- package/web-ui/build/static/vhdl-DZ-dTOLA.js +0 -1
- package/web-ui/build/static/vhdl-bDNJfpa7.js +0 -1
- package/web-ui/build/static/vim-BDAo5YHC.js +0 -1
- package/web-ui/build/static/vim-ClkOafc3.js +0 -1
- package/web-ui/build/static/visual-basic-DXIeLZZ8.js +0 -1
- package/web-ui/build/static/warpscript-f7veA-3J.js +0 -1
- package/web-ui/build/static/wasm-TToDlmNk.js +0 -1
- package/web-ui/build/static/web-idl-CrrjMFQT.js +0 -1
- package/web-ui/build/static/wiki-aicisDW2.js +0 -1
- package/web-ui/build/static/wolfram-C_A80rAh.js +0 -1
- package/web-ui/build/static/wren-DkVyeDoy.js +0 -1
- package/web-ui/build/static/x86asm-fx1o_ltw.js +0 -1
- package/web-ui/build/static/xeora-D-uaDMXn.js +0 -1
- package/web-ui/build/static/xl-Dnyvb9_S.js +0 -1
- package/web-ui/build/static/xml-BGV0zG9K.js +0 -1
- package/web-ui/build/static/xml-doc-DOGLcenw.js +0 -1
- package/web-ui/build/static/xojo-B3Qgvb5A.js +0 -1
- package/web-ui/build/static/xquery-C-B5-0Q9.js +0 -1
- package/web-ui/build/static/xquery-KbuiAVhj.js +0 -1
- package/web-ui/build/static/yaml-CBWBoq6m.js +0 -1
- package/web-ui/build/static/yaml-IghlDZf6.js +0 -1
- package/web-ui/build/static/yang-CArp62P5.js +0 -1
- package/web-ui/build/static/zephir-DMLTJ9_9.js +0 -1
- package/web-ui/build/static/zig-CWG2311v.js +0 -1
|
@@ -0,0 +1,838 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for the rewritten TelegramService.
|
|
3
|
+
*
|
|
4
|
+
* Covers the user-experience-critical surfaces:
|
|
5
|
+
* • Multi-chat /start (no global lock)
|
|
6
|
+
* • Group chat @mention gating
|
|
7
|
+
* • Voice → backend transcribe → text dispatch
|
|
8
|
+
* • Thinking placeholder edit-on-completion
|
|
9
|
+
* • <actions> / <image> / <attachment> block dispatch
|
|
10
|
+
* • Always-relay error broadcasts vs watch-gated completions
|
|
11
|
+
* • /reset, /new, /logout commands
|
|
12
|
+
* • Pagination of /agents
|
|
13
|
+
* • Markdown vs HTML vs document selection by content shape
|
|
14
|
+
* • Config migration (legacy `chatId` scalar)
|
|
15
|
+
*
|
|
16
|
+
* The mock TelegramBot records every call and exposes them via
|
|
17
|
+
* `bot.calls.<method>` arrays. node-telegram-bot-api is fully mocked
|
|
18
|
+
* so no network and no dependency on the real bot library.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import { jest, describe, test, expect, beforeEach } from '@jest/globals';
|
|
22
|
+
|
|
23
|
+
// ─── Module mocks ─────────────────────────────────────────────────────
|
|
24
|
+
|
|
25
|
+
// In-memory virtual fs for the config file. Each beforeEach resets it.
|
|
26
|
+
const virtualFs = { content: null };
|
|
27
|
+
|
|
28
|
+
jest.unstable_mockModule('fs', () => ({
|
|
29
|
+
promises: {
|
|
30
|
+
mkdir: jest.fn().mockResolvedValue(undefined),
|
|
31
|
+
readFile: jest.fn().mockImplementation(async () => {
|
|
32
|
+
if (virtualFs.content === null) throw Object.assign(new Error('ENOENT'), { code: 'ENOENT' });
|
|
33
|
+
return virtualFs.content;
|
|
34
|
+
}),
|
|
35
|
+
writeFile: jest.fn().mockImplementation(async (_p, data) => {
|
|
36
|
+
virtualFs.content = data;
|
|
37
|
+
}),
|
|
38
|
+
},
|
|
39
|
+
}));
|
|
40
|
+
|
|
41
|
+
jest.unstable_mockModule('../../utilities/userDataDir.js', () => ({
|
|
42
|
+
getUserDataPaths: () => ({ base: '/mock/data' }),
|
|
43
|
+
ensureUserDataDirs: jest.fn().mockResolvedValue(undefined),
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
// MockBot — a deterministic stand-in for node-telegram-bot-api. Records
|
|
47
|
+
// every call, exposes hooks so tests can simulate incoming messages.
|
|
48
|
+
class MockBot {
|
|
49
|
+
constructor() {
|
|
50
|
+
this._textHandlers = []; // [{regex, fn}]
|
|
51
|
+
this._messageHandlers = [];
|
|
52
|
+
this._callbackHandlers = [];
|
|
53
|
+
this.calls = {
|
|
54
|
+
sendMessage: [], sendPhoto: [], sendDocument: [],
|
|
55
|
+
sendChatAction: [], editMessageText: [], deleteMessage: [],
|
|
56
|
+
answerCallbackQuery: [],
|
|
57
|
+
};
|
|
58
|
+
this.nextMessageId = 100;
|
|
59
|
+
this.stopPolling = jest.fn().mockResolvedValue(undefined);
|
|
60
|
+
}
|
|
61
|
+
async getMe() { return { username: 'loxia_bot', id: 1 }; }
|
|
62
|
+
onText(regex, fn) { this._textHandlers.push({ regex, fn }); }
|
|
63
|
+
on(event, fn) {
|
|
64
|
+
if (event === 'message') this._messageHandlers.push(fn);
|
|
65
|
+
else if (event === 'callback_query') this._callbackHandlers.push(fn);
|
|
66
|
+
}
|
|
67
|
+
async sendMessage(chatId, text, opts) {
|
|
68
|
+
const id = this.nextMessageId++;
|
|
69
|
+
this.calls.sendMessage.push({ chatId, text, opts, message_id: id });
|
|
70
|
+
return { message_id: id, chat: { id: chatId } };
|
|
71
|
+
}
|
|
72
|
+
async editMessageText(text, opts) { this.calls.editMessageText.push({ text, opts }); return { ok: true }; }
|
|
73
|
+
async deleteMessage(chatId, message_id) { this.calls.deleteMessage.push({ chatId, message_id }); }
|
|
74
|
+
async sendChatAction(chatId, action) { this.calls.sendChatAction.push({ chatId, action }); }
|
|
75
|
+
async sendPhoto(chatId, photo, opts) { this.calls.sendPhoto.push({ chatId, photo, opts }); }
|
|
76
|
+
async sendDocument(chatId, doc, opts) { this.calls.sendDocument.push({ chatId, doc, opts }); }
|
|
77
|
+
async answerCallbackQuery(id) { this.calls.answerCallbackQuery.push(id); }
|
|
78
|
+
async getFileLink(fileId) { return `https://t.example/file/${fileId}`; }
|
|
79
|
+
|
|
80
|
+
// Test helpers: simulate an incoming message / callback.
|
|
81
|
+
async simulateMessage(msg) {
|
|
82
|
+
// Telegram fires onText first when text matches a regex, then `message` listeners.
|
|
83
|
+
if (typeof msg.text === 'string') {
|
|
84
|
+
for (const { regex, fn } of this._textHandlers) {
|
|
85
|
+
const m = msg.text.match(regex);
|
|
86
|
+
if (m) await fn(msg, m);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
for (const fn of this._messageHandlers) await fn(msg);
|
|
90
|
+
}
|
|
91
|
+
async simulateCallback(query) {
|
|
92
|
+
for (const fn of this._callbackHandlers) await fn(query);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
let currentBot;
|
|
97
|
+
jest.unstable_mockModule('node-telegram-bot-api', () => ({
|
|
98
|
+
default: jest.fn(() => {
|
|
99
|
+
currentBot = new MockBot();
|
|
100
|
+
return currentBot;
|
|
101
|
+
}),
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
// ─── Imports after mocks ──────────────────────────────────────────────
|
|
105
|
+
|
|
106
|
+
const { TelegramService, TELEGRAM_STATUS, _resetTelegramSingletonForTests } = await import('../telegramService.js');
|
|
107
|
+
|
|
108
|
+
// ─── Test helpers ─────────────────────────────────────────────────────
|
|
109
|
+
|
|
110
|
+
const SAMPLE_AGENTS = [
|
|
111
|
+
{ id: 'a1', name: 'Cody', mode: 'chat', status: 'idle', currentModel: 'gpt-4.1' },
|
|
112
|
+
{ id: 'a2', name: 'Lina', mode: 'auto', status: 'active', currentModel: 'claude-sonnet-4-5' },
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
function makeService({ agents = SAMPLE_AGENTS, withOrchestrator = true } = {}) {
|
|
116
|
+
const svc = new TelegramService(null);
|
|
117
|
+
svc.setAgentPool({
|
|
118
|
+
getAllAgents: jest.fn().mockResolvedValue(agents),
|
|
119
|
+
getAgent: jest.fn((id) => Promise.resolve(agents.find(a => a.id === id) || null)),
|
|
120
|
+
});
|
|
121
|
+
if (withOrchestrator) {
|
|
122
|
+
svc.setOrchestrator({
|
|
123
|
+
config: { project: { directory: '/proj' } },
|
|
124
|
+
processRequest: jest.fn().mockResolvedValue(undefined),
|
|
125
|
+
messageProcessor: {
|
|
126
|
+
stopAutonomousExecution: jest.fn().mockResolvedValue(undefined),
|
|
127
|
+
resetAgentConversation: jest.fn().mockResolvedValue(undefined),
|
|
128
|
+
},
|
|
129
|
+
stateManager: {
|
|
130
|
+
loadFlowIndex: jest.fn().mockResolvedValue({}),
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return svc;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function userMsg(chatId, text, { chatType = 'private', from = { username: 'alice' }, title } = {}) {
|
|
138
|
+
return {
|
|
139
|
+
chat: { id: chatId, type: chatType, title },
|
|
140
|
+
from,
|
|
141
|
+
text,
|
|
142
|
+
message_id: 1,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
beforeEach(() => {
|
|
147
|
+
virtualFs.content = null;
|
|
148
|
+
_resetTelegramSingletonForTests();
|
|
149
|
+
currentBot = null;
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
async function connected(svc) {
|
|
153
|
+
await svc.connect('TEST_TOKEN');
|
|
154
|
+
return currentBot;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
158
|
+
// @-prefix resolution (names with spaces, slug form, ambiguity)
|
|
159
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
160
|
+
|
|
161
|
+
describe('_resolveAtPrefix — @agent-name parsing', () => {
|
|
162
|
+
const agents = [
|
|
163
|
+
{ id: 'a1', name: 'Cody' },
|
|
164
|
+
{ id: 'a2', name: 'John Smith' },
|
|
165
|
+
{ id: 'a3', name: 'John' }, // prefix-conflict with #a2
|
|
166
|
+
{ id: 'a4', name: 'Multi Word Long Name' },
|
|
167
|
+
];
|
|
168
|
+
|
|
169
|
+
test('no @prefix → agentName null, messageText unchanged', () => {
|
|
170
|
+
const svc = makeService({ agents });
|
|
171
|
+
const r = svc._resolveAtPrefix('just a message', agents);
|
|
172
|
+
expect(r.agentName).toBeNull();
|
|
173
|
+
expect(r.matchedAgent).toBeNull();
|
|
174
|
+
expect(r.messageText).toBe('just a message');
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
test('single-word name (legacy path)', () => {
|
|
178
|
+
const svc = makeService({ agents });
|
|
179
|
+
const r = svc._resolveAtPrefix('@Cody hello', agents);
|
|
180
|
+
expect(r.matchedAgent?.id).toBe('a1');
|
|
181
|
+
expect(r.messageText).toBe('hello');
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
test('multi-word name with literal spaces works', () => {
|
|
185
|
+
const svc = makeService({ agents });
|
|
186
|
+
const r = svc._resolveAtPrefix('@John Smith write the report', agents);
|
|
187
|
+
expect(r.matchedAgent?.id).toBe('a2');
|
|
188
|
+
expect(r.agentName).toBe('John Smith');
|
|
189
|
+
expect(r.messageText).toBe('write the report');
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
test('slug form @John_Smith resolves to "John Smith"', () => {
|
|
193
|
+
const svc = makeService({ agents });
|
|
194
|
+
const r = svc._resolveAtPrefix('@John_Smith write the report', agents);
|
|
195
|
+
expect(r.matchedAgent?.id).toBe('a2');
|
|
196
|
+
expect(r.messageText).toBe('write the report');
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
test('dash form @John-Smith also works', () => {
|
|
200
|
+
const svc = makeService({ agents });
|
|
201
|
+
const r = svc._resolveAtPrefix('@John-Smith hi', agents);
|
|
202
|
+
expect(r.matchedAgent?.id).toBe('a2');
|
|
203
|
+
expect(r.messageText).toBe('hi');
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
test('longest-match wins when one name is a prefix of another', () => {
|
|
207
|
+
// "@John Smith hello" must NOT resolve to the "John" agent.
|
|
208
|
+
const svc = makeService({ agents });
|
|
209
|
+
const r = svc._resolveAtPrefix('@John Smith hello', agents);
|
|
210
|
+
expect(r.matchedAgent?.id).toBe('a2');
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
test('shorter name still wins when the longer name doesn\'t match', () => {
|
|
214
|
+
const svc = makeService({ agents });
|
|
215
|
+
const r = svc._resolveAtPrefix('@John hello', agents);
|
|
216
|
+
expect(r.matchedAgent?.id).toBe('a3');
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
test('case-insensitive match', () => {
|
|
220
|
+
const svc = makeService({ agents });
|
|
221
|
+
const r = svc._resolveAtPrefix('@JOHN SMITH hi', agents);
|
|
222
|
+
expect(r.matchedAgent?.id).toBe('a2');
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
test('extra whitespace between the name and the message is collapsed', () => {
|
|
226
|
+
const svc = makeService({ agents });
|
|
227
|
+
const r = svc._resolveAtPrefix('@Cody \t hello', agents);
|
|
228
|
+
expect(r.messageText).toBe('hello');
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
test('partial-word collision does NOT false-match (Johnson should not match John)', () => {
|
|
232
|
+
const svc = makeService({ agents });
|
|
233
|
+
const r = svc._resolveAtPrefix('@Johnson hi', agents);
|
|
234
|
+
// Falls back to legacy capture so caller can show "not found"
|
|
235
|
+
expect(r.matchedAgent).toBeNull();
|
|
236
|
+
expect(r.agentName).toBe('Johnson');
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
test('unknown @name → legacy capture for "not found" error', () => {
|
|
240
|
+
const svc = makeService({ agents });
|
|
241
|
+
const r = svc._resolveAtPrefix('@Stranger hi', agents);
|
|
242
|
+
expect(r.matchedAgent).toBeNull();
|
|
243
|
+
expect(r.agentName).toBe('Stranger');
|
|
244
|
+
expect(r.messageText).toBe('hi');
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
test('handles regex-sensitive characters in agent names safely', () => {
|
|
248
|
+
const dangerous = [{ id: 'a1', name: 'C++.parser' }];
|
|
249
|
+
const svc = makeService({ agents: dangerous });
|
|
250
|
+
const r = svc._resolveAtPrefix('@C++.parser go', dangerous);
|
|
251
|
+
expect(r.matchedAgent?.id).toBe('a1');
|
|
252
|
+
expect(r.messageText).toBe('go');
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
test('many-word names ("Multi Word Long Name") match end-to-end', () => {
|
|
256
|
+
const svc = makeService({ agents });
|
|
257
|
+
const r = svc._resolveAtPrefix('@Multi Word Long Name run the audit', agents);
|
|
258
|
+
expect(r.matchedAgent?.id).toBe('a4');
|
|
259
|
+
expect(r.messageText).toBe('run the audit');
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
264
|
+
// Multi-chat /start
|
|
265
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
266
|
+
|
|
267
|
+
describe('multi-chat /start', () => {
|
|
268
|
+
test('first chat /start registers; second chat /start ALSO registers (no global lock)', async () => {
|
|
269
|
+
const svc = makeService();
|
|
270
|
+
const bot = await connected(svc);
|
|
271
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
272
|
+
await bot.simulateMessage(userMsg(222, '/start'));
|
|
273
|
+
expect(svc.chats.has('111')).toBe(true);
|
|
274
|
+
expect(svc.chats.has('222')).toBe(true);
|
|
275
|
+
expect(svc.getStatus().chatCount).toBe(2);
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
test('same chat /start twice does NOT duplicate state', async () => {
|
|
279
|
+
const svc = makeService();
|
|
280
|
+
const bot = await connected(svc);
|
|
281
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
282
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
283
|
+
expect(svc.chats.size).toBe(1);
|
|
284
|
+
// Second invocation should reply "Already connected".
|
|
285
|
+
const greetings = bot.calls.sendMessage.filter(c => String(c.chatId) === '111');
|
|
286
|
+
expect(greetings.length).toBeGreaterThanOrEqual(2);
|
|
287
|
+
expect(greetings[1].text).toMatch(/Already connected/);
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
292
|
+
// /logout, /reset, /new
|
|
293
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
294
|
+
|
|
295
|
+
describe('/logout', () => {
|
|
296
|
+
test('removes chat from registered set', async () => {
|
|
297
|
+
const svc = makeService();
|
|
298
|
+
const bot = await connected(svc);
|
|
299
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
300
|
+
await bot.simulateMessage(userMsg(111, '/logout'));
|
|
301
|
+
expect(svc.chats.has('111')).toBe(false);
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
describe('/reset', () => {
|
|
306
|
+
test('calls resetAgentConversation on the sticky agent', async () => {
|
|
307
|
+
const svc = makeService();
|
|
308
|
+
const bot = await connected(svc);
|
|
309
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
310
|
+
svc.chats.get('111').lastAgentId = 'a1';
|
|
311
|
+
svc.chats.get('111').activeAgentIds.add('a1');
|
|
312
|
+
|
|
313
|
+
await bot.simulateMessage(userMsg(111, '/reset'));
|
|
314
|
+
expect(svc.orchestrator.messageProcessor.resetAgentConversation).toHaveBeenCalledWith('a1');
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
test('returns friendly message when no sticky agent is set', async () => {
|
|
318
|
+
const svc = makeService();
|
|
319
|
+
const bot = await connected(svc);
|
|
320
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
321
|
+
bot.calls.sendMessage = [];
|
|
322
|
+
await bot.simulateMessage(userMsg(111, '/reset'));
|
|
323
|
+
const last = bot.calls.sendMessage[bot.calls.sendMessage.length - 1];
|
|
324
|
+
expect(last.text).toMatch(/No active agent/);
|
|
325
|
+
expect(svc.orchestrator.messageProcessor.resetAgentConversation).not.toHaveBeenCalled();
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
describe('/new <agent>', () => {
|
|
330
|
+
test('switches sticky agent + resets the new one', async () => {
|
|
331
|
+
const svc = makeService();
|
|
332
|
+
const bot = await connected(svc);
|
|
333
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
334
|
+
await bot.simulateMessage(userMsg(111, '/new Lina'));
|
|
335
|
+
expect(svc.chats.get('111').lastAgentId).toBe('a2');
|
|
336
|
+
expect(svc.orchestrator.messageProcessor.resetAgentConversation).toHaveBeenCalledWith('a2');
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
test('unknown agent returns error', async () => {
|
|
340
|
+
const svc = makeService();
|
|
341
|
+
const bot = await connected(svc);
|
|
342
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
343
|
+
bot.calls.sendMessage = [];
|
|
344
|
+
await bot.simulateMessage(userMsg(111, '/new Nobody'));
|
|
345
|
+
expect(bot.calls.sendMessage[0].text).toMatch(/not found/);
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
350
|
+
// End-to-end @-prefix with spaced name
|
|
351
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
352
|
+
|
|
353
|
+
describe('@-prefix dispatch — name with spaces', () => {
|
|
354
|
+
test('"@John Smith write the report" dispatches to the right agent with the right message', async () => {
|
|
355
|
+
const agents = [
|
|
356
|
+
{ id: 'js-1', name: 'John Smith', mode: 'chat', status: 'idle', currentModel: 'gpt-4.1' },
|
|
357
|
+
{ id: 'cody', name: 'Cody', mode: 'chat', status: 'idle', currentModel: 'gpt-4.1' },
|
|
358
|
+
];
|
|
359
|
+
const svc = makeService({ agents });
|
|
360
|
+
const bot = await connected(svc);
|
|
361
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
362
|
+
|
|
363
|
+
await bot.simulateMessage(userMsg(111, '@John Smith write the report'));
|
|
364
|
+
|
|
365
|
+
expect(svc.orchestrator.processRequest).toHaveBeenCalled();
|
|
366
|
+
const payload = svc.orchestrator.processRequest.mock.calls.slice(-1)[0][0].payload;
|
|
367
|
+
expect(payload.agentId).toBe('js-1');
|
|
368
|
+
expect(payload.message).toBe('write the report');
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
test('unknown @name surfaces a helpful "not found" reply, no orchestrator call', async () => {
|
|
372
|
+
const svc = makeService();
|
|
373
|
+
const bot = await connected(svc);
|
|
374
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
375
|
+
bot.calls.sendMessage = [];
|
|
376
|
+
|
|
377
|
+
await bot.simulateMessage(userMsg(111, '@Nobody hello'));
|
|
378
|
+
|
|
379
|
+
expect(svc.orchestrator.processRequest).not.toHaveBeenCalled();
|
|
380
|
+
const reply = bot.calls.sendMessage[0];
|
|
381
|
+
expect(reply.text).toMatch(/not found/);
|
|
382
|
+
// The friendly tip explaining slug syntax must be present so users
|
|
383
|
+
// who typed an underscore version learn the syntax. Underscores
|
|
384
|
+
// are MarkdownV2-escaped on the wire (`John\_Smith`), so allow
|
|
385
|
+
// any single character between the two halves.
|
|
386
|
+
expect(reply.text).toMatch(/John.Smith/);
|
|
387
|
+
});
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
391
|
+
// Group chat @mention gating
|
|
392
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
393
|
+
|
|
394
|
+
describe('group chat — @mention required', () => {
|
|
395
|
+
test('plain message in group is IGNORED (no orchestrator call)', async () => {
|
|
396
|
+
const svc = makeService();
|
|
397
|
+
const bot = await connected(svc);
|
|
398
|
+
await bot.simulateMessage(userMsg(-100, '/start', { chatType: 'supergroup', title: 'Ops' }));
|
|
399
|
+
svc.chats.get('-100').lastAgentId = 'a1';
|
|
400
|
+
svc.chats.get('-100').activeAgentIds.add('a1');
|
|
401
|
+
|
|
402
|
+
await bot.simulateMessage(userMsg(-100, 'hello team', { chatType: 'supergroup' }));
|
|
403
|
+
expect(svc.orchestrator.processRequest).not.toHaveBeenCalled();
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
test('@bot message in group strips mention and dispatches', async () => {
|
|
407
|
+
const svc = makeService();
|
|
408
|
+
const bot = await connected(svc);
|
|
409
|
+
await bot.simulateMessage(userMsg(-100, '/start', { chatType: 'supergroup', title: 'Ops' }));
|
|
410
|
+
svc.chats.get('-100').lastAgentId = 'a1';
|
|
411
|
+
svc.chats.get('-100').activeAgentIds.add('a1');
|
|
412
|
+
|
|
413
|
+
await bot.simulateMessage(userMsg(-100, '@loxia_bot summarize last meeting', { chatType: 'supergroup' }));
|
|
414
|
+
expect(svc.orchestrator.processRequest).toHaveBeenCalled();
|
|
415
|
+
const payload = svc.orchestrator.processRequest.mock.calls[0][0].payload;
|
|
416
|
+
expect(payload.message).toBe('summarize last meeting');
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
test('private chat does NOT require @mention', async () => {
|
|
420
|
+
const svc = makeService();
|
|
421
|
+
const bot = await connected(svc);
|
|
422
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
423
|
+
svc.chats.get('111').lastAgentId = 'a1';
|
|
424
|
+
svc.chats.get('111').activeAgentIds.add('a1');
|
|
425
|
+
|
|
426
|
+
await bot.simulateMessage(userMsg(111, 'hi there'));
|
|
427
|
+
expect(svc.orchestrator.processRequest).toHaveBeenCalled();
|
|
428
|
+
});
|
|
429
|
+
});
|
|
430
|
+
|
|
431
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
432
|
+
// Thinking placeholder & edit
|
|
433
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
434
|
+
|
|
435
|
+
describe('thinking placeholder', () => {
|
|
436
|
+
test('typing action + placeholder sent before orchestrator call', async () => {
|
|
437
|
+
const svc = makeService();
|
|
438
|
+
const bot = await connected(svc);
|
|
439
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
440
|
+
await bot.simulateMessage(userMsg(111, '@Cody help me'));
|
|
441
|
+
|
|
442
|
+
expect(bot.calls.sendChatAction).toContainEqual({ chatId: 111, action: 'typing' });
|
|
443
|
+
const thinking = bot.calls.sendMessage.find(c => c.text.includes('thinking'));
|
|
444
|
+
expect(thinking).toBeDefined();
|
|
445
|
+
expect(thinking.chatId).toBe(111);
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
test('placeholder is replaced (edit) when agent emits stream_complete', async () => {
|
|
449
|
+
const svc = makeService();
|
|
450
|
+
const bot = await connected(svc);
|
|
451
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
452
|
+
await bot.simulateMessage(userMsg(111, '@Cody hello'));
|
|
453
|
+
|
|
454
|
+
// Simulate broadcast.
|
|
455
|
+
await svc._handleBroadcastEvent({
|
|
456
|
+
type: 'stream_complete',
|
|
457
|
+
agentId: 'a1',
|
|
458
|
+
content: '<external>Sure — here you go.</external>',
|
|
459
|
+
role: 'assistant',
|
|
460
|
+
});
|
|
461
|
+
|
|
462
|
+
expect(bot.calls.editMessageText).toHaveLength(1);
|
|
463
|
+
expect(bot.calls.editMessageText[0].text).toMatch(/Cody/);
|
|
464
|
+
expect(bot.calls.editMessageText[0].text).toMatch(/Sure/);
|
|
465
|
+
});
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
469
|
+
// <actions> / <image> / <attachment> blocks
|
|
470
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
471
|
+
|
|
472
|
+
describe('rich reply blocks', () => {
|
|
473
|
+
test('<actions> block becomes inline keyboard with act:agentId:value callbacks', async () => {
|
|
474
|
+
const svc = makeService();
|
|
475
|
+
const bot = await connected(svc);
|
|
476
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
477
|
+
await bot.simulateMessage(userMsg(111, '@Cody what now'));
|
|
478
|
+
|
|
479
|
+
await svc._handleBroadcastEvent({
|
|
480
|
+
type: 'stream_complete', agentId: 'a1', role: 'assistant',
|
|
481
|
+
content:
|
|
482
|
+
'<external>Pick one:\n' +
|
|
483
|
+
'<actions>[{"label":"Continue","value":"go"},{"label":"Restart","value":"reset"}]</actions>' +
|
|
484
|
+
'</external>',
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
expect(bot.calls.editMessageText).toHaveLength(1);
|
|
488
|
+
const opts = bot.calls.editMessageText[0].opts;
|
|
489
|
+
const kb = opts.reply_markup.inline_keyboard;
|
|
490
|
+
expect(kb.map(row => row[0].text)).toEqual(['Continue', 'Restart']);
|
|
491
|
+
expect(kb[0][0].callback_data).toBe('act:a1:go');
|
|
492
|
+
expect(kb[1][0].callback_data).toBe('act:a1:reset');
|
|
493
|
+
});
|
|
494
|
+
|
|
495
|
+
test('button tap dispatches a synthetic agent message', async () => {
|
|
496
|
+
const svc = makeService();
|
|
497
|
+
const bot = await connected(svc);
|
|
498
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
499
|
+
svc.chats.get('111').activeAgentIds.add('a1');
|
|
500
|
+
svc.chats.get('111').lastAgentId = 'a1';
|
|
501
|
+
|
|
502
|
+
await bot.simulateCallback({
|
|
503
|
+
id: 'cb-1',
|
|
504
|
+
data: 'act:a1:keep going',
|
|
505
|
+
message: { chat: { id: 111, type: 'private' }, message_id: 999 },
|
|
506
|
+
from: { username: 'alice' },
|
|
507
|
+
});
|
|
508
|
+
expect(svc.orchestrator.processRequest).toHaveBeenCalled();
|
|
509
|
+
const payload = svc.orchestrator.processRequest.mock.calls.slice(-1)[0][0].payload;
|
|
510
|
+
expect(payload.message).toBe('keep going');
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
test('<image> block triggers sendPhoto', async () => {
|
|
514
|
+
const svc = makeService();
|
|
515
|
+
const bot = await connected(svc);
|
|
516
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
517
|
+
await bot.simulateMessage(userMsg(111, '@Cody chart'));
|
|
518
|
+
|
|
519
|
+
await svc._handleBroadcastEvent({
|
|
520
|
+
type: 'stream_complete', agentId: 'a1', role: 'assistant',
|
|
521
|
+
content: '<external>Here it is:\n<image src="https://example.com/chart.png">Q4 chart</image></external>',
|
|
522
|
+
});
|
|
523
|
+
expect(bot.calls.sendPhoto).toHaveLength(1);
|
|
524
|
+
expect(String(bot.calls.sendPhoto[0].chatId)).toBe('111');
|
|
525
|
+
expect(bot.calls.sendPhoto[0].photo).toBe('https://example.com/chart.png');
|
|
526
|
+
});
|
|
527
|
+
|
|
528
|
+
test('<attachment> block triggers sendDocument', async () => {
|
|
529
|
+
const svc = makeService();
|
|
530
|
+
const bot = await connected(svc);
|
|
531
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
532
|
+
await bot.simulateMessage(userMsg(111, '@Cody report'));
|
|
533
|
+
|
|
534
|
+
await svc._handleBroadcastEvent({
|
|
535
|
+
type: 'stream_complete', agentId: 'a1', role: 'assistant',
|
|
536
|
+
content: '<external>See report:\n<attachment src="/tmp/r.pdf" type="application/pdf">Report</attachment></external>',
|
|
537
|
+
});
|
|
538
|
+
expect(bot.calls.sendDocument).toHaveLength(1);
|
|
539
|
+
expect(String(bot.calls.sendDocument[0].chatId)).toBe('111');
|
|
540
|
+
expect(bot.calls.sendDocument[0].doc).toBe('/tmp/r.pdf');
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
|
|
544
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
545
|
+
// Always-relay errors / watch-gated completions
|
|
546
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
547
|
+
|
|
548
|
+
describe('error fan-out vs watch-gating', () => {
|
|
549
|
+
test('agent_error relays to a chat that has NOT subscribed via /watch', async () => {
|
|
550
|
+
const svc = makeService();
|
|
551
|
+
const bot = await connected(svc);
|
|
552
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
553
|
+
expect(svc.chats.get('111').watchEnabled).toBe(false);
|
|
554
|
+
|
|
555
|
+
await svc._handleBroadcastEvent({
|
|
556
|
+
type: 'agent_error', agentId: 'a1', agentName: 'Cody', message: 'boom',
|
|
557
|
+
});
|
|
558
|
+
const sent = bot.calls.sendMessage.find(c => c.text.includes('Agent Error'));
|
|
559
|
+
expect(sent).toBeDefined();
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
test('execution_stopped does NOT relay unless /watch is on', async () => {
|
|
563
|
+
const svc = makeService();
|
|
564
|
+
const bot = await connected(svc);
|
|
565
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
566
|
+
|
|
567
|
+
await svc._handleBroadcastEvent({
|
|
568
|
+
type: 'execution_stopped', agentId: 'a1', agentName: 'Cody', message: 'done',
|
|
569
|
+
});
|
|
570
|
+
// Notifications are batched on a timer, so we just assert nothing
|
|
571
|
+
// queued at the immediate level.
|
|
572
|
+
expect(bot.calls.sendMessage.find(c => c.text.includes('Agent Finished'))).toBeUndefined();
|
|
573
|
+
});
|
|
574
|
+
|
|
575
|
+
test('execution_stopped relays when /watch is on', async () => {
|
|
576
|
+
jest.useFakeTimers();
|
|
577
|
+
try {
|
|
578
|
+
const svc = makeService();
|
|
579
|
+
const bot = await connected(svc);
|
|
580
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
581
|
+
await bot.simulateMessage(userMsg(111, '/watch'));
|
|
582
|
+
|
|
583
|
+
await svc._handleBroadcastEvent({
|
|
584
|
+
type: 'execution_stopped', agentId: 'a1', agentName: 'Cody', message: 'done',
|
|
585
|
+
});
|
|
586
|
+
jest.advanceTimersByTime(11000); // flush batch interval (10s)
|
|
587
|
+
await Promise.resolve(); // microtask drain
|
|
588
|
+
// Sent messages are async — check that the queue WOULD have been flushed.
|
|
589
|
+
expect(svc.notificationQueue.size === 0 || bot.calls.sendMessage.some(c => c.text.includes('Agent Finished')))
|
|
590
|
+
.toBe(true);
|
|
591
|
+
} finally {
|
|
592
|
+
jest.useRealTimers();
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
});
|
|
596
|
+
|
|
597
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
598
|
+
// Pagination
|
|
599
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
600
|
+
|
|
601
|
+
describe('paginated /agents', () => {
|
|
602
|
+
test('first page only shows PAGE_SIZE entries when many agents exist', async () => {
|
|
603
|
+
const many = Array.from({ length: 20 }, (_, i) => ({
|
|
604
|
+
id: `a${i}`, name: `Agent${i}`, mode: 'chat', status: 'idle',
|
|
605
|
+
}));
|
|
606
|
+
const svc = makeService({ agents: many });
|
|
607
|
+
const bot = await connected(svc);
|
|
608
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
609
|
+
bot.calls.sendMessage = [];
|
|
610
|
+
await bot.simulateMessage(userMsg(111, '/agents'));
|
|
611
|
+
|
|
612
|
+
const listMsg = bot.calls.sendMessage.find(c => c.text.includes('Agents (20)'));
|
|
613
|
+
expect(listMsg).toBeDefined();
|
|
614
|
+
// Page 1/3 of 20 with PAGE_SIZE=8 → 8 entries shown.
|
|
615
|
+
const buttons = listMsg.opts.reply_markup.inline_keyboard;
|
|
616
|
+
expect(buttons.filter(row => row[0].callback_data?.startsWith('agent_detail:'))).toHaveLength(8);
|
|
617
|
+
// Last row is the pagination nav.
|
|
618
|
+
const nav = buttons[buttons.length - 1];
|
|
619
|
+
expect(nav.some(b => b.callback_data?.startsWith('agents_page:'))).toBe(true);
|
|
620
|
+
});
|
|
621
|
+
});
|
|
622
|
+
|
|
623
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
624
|
+
// Markdown vs HTML vs document selection
|
|
625
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
626
|
+
|
|
627
|
+
describe('text formatting selection', () => {
|
|
628
|
+
test('plain text uses MarkdownV2', () => {
|
|
629
|
+
const svc = makeService();
|
|
630
|
+
const out = svc._formatAgentBody('hello world.');
|
|
631
|
+
expect(out.parseMode).toBe('MarkdownV2');
|
|
632
|
+
expect(out.body).toContain('hello world\\.'); // dot escaped
|
|
633
|
+
});
|
|
634
|
+
|
|
635
|
+
test('short fenced code uses HTML', () => {
|
|
636
|
+
const svc = makeService();
|
|
637
|
+
const out = svc._formatAgentBody('See:\n```js\nconst x = 1;\n```');
|
|
638
|
+
expect(out.parseMode).toBe('HTML');
|
|
639
|
+
expect(out.body).toMatch(/<pre>const x = 1;/);
|
|
640
|
+
});
|
|
641
|
+
|
|
642
|
+
test('long fenced code (> threshold) is sent as document', () => {
|
|
643
|
+
const svc = makeService();
|
|
644
|
+
const big = 'x = 1;\n'.repeat(800);
|
|
645
|
+
const out = svc._formatAgentBody('```py\n' + big + '\n```');
|
|
646
|
+
expect(out.kind).toBe('document');
|
|
647
|
+
});
|
|
648
|
+
});
|
|
649
|
+
|
|
650
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
651
|
+
// Config migration
|
|
652
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
653
|
+
|
|
654
|
+
describe('config migration', () => {
|
|
655
|
+
test('legacy { chatId: "x", watchEnabled: true } loads as a single-chat entry', async () => {
|
|
656
|
+
virtualFs.content = JSON.stringify({ chatId: 'X1', watchEnabled: true, botToken: 'T' });
|
|
657
|
+
const svc = makeService();
|
|
658
|
+
await svc._loadConfig();
|
|
659
|
+
expect(svc.chats.has('X1')).toBe(true);
|
|
660
|
+
expect(svc.chats.get('X1').watchEnabled).toBe(true);
|
|
661
|
+
});
|
|
662
|
+
|
|
663
|
+
test('legacy fields are dropped on next save', async () => {
|
|
664
|
+
virtualFs.content = JSON.stringify({ chatId: 'X1', watchEnabled: true, botToken: 'T' });
|
|
665
|
+
const svc = makeService();
|
|
666
|
+
await svc._loadConfig();
|
|
667
|
+
await svc._saveConfig();
|
|
668
|
+
const persisted = JSON.parse(virtualFs.content);
|
|
669
|
+
expect(persisted.chatId).toBeUndefined();
|
|
670
|
+
expect(persisted.watchEnabled).toBeUndefined();
|
|
671
|
+
expect(persisted.chats).toHaveLength(1);
|
|
672
|
+
expect(persisted.chats[0].chatId).toBe('X1');
|
|
673
|
+
});
|
|
674
|
+
});
|
|
675
|
+
|
|
676
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
677
|
+
// Bridged channels per-chat
|
|
678
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
679
|
+
|
|
680
|
+
describe('getBridgedChannels', () => {
|
|
681
|
+
test('returns one alias per chat the agent is active in, plus a bare "telegram" alias', async () => {
|
|
682
|
+
const svc = makeService();
|
|
683
|
+
const bot = await connected(svc);
|
|
684
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
685
|
+
await bot.simulateMessage(userMsg(222, '/start'));
|
|
686
|
+
svc.chats.get('111').activeAgentIds.add('a1');
|
|
687
|
+
svc.chats.get('222').activeAgentIds.add('a1');
|
|
688
|
+
|
|
689
|
+
const bridged = svc.getBridgedChannels('a1');
|
|
690
|
+
const aliases = bridged.map(c => c.alias);
|
|
691
|
+
expect(aliases).toEqual(expect.arrayContaining([
|
|
692
|
+
'telegram:chat-111',
|
|
693
|
+
'telegram:chat-222',
|
|
694
|
+
'telegram',
|
|
695
|
+
]));
|
|
696
|
+
});
|
|
697
|
+
|
|
698
|
+
test('returns empty array when agent has no chat', async () => {
|
|
699
|
+
const svc = makeService();
|
|
700
|
+
await connected(svc);
|
|
701
|
+
expect(svc.getBridgedChannels('a1')).toEqual([]);
|
|
702
|
+
});
|
|
703
|
+
});
|
|
704
|
+
|
|
705
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
706
|
+
// imageGenerated → Telegram relay
|
|
707
|
+
//
|
|
708
|
+
// Background: the imageTool emits a separate broadcast (`imageGenerated`)
|
|
709
|
+
// alongside the agent's textual `stream_complete`. Before this fix the
|
|
710
|
+
// `imageGenerated` event was silently dropped and the user — who'd
|
|
711
|
+
// asked the bot to "draw me X" — saw no image come back to the chat.
|
|
712
|
+
//
|
|
713
|
+
// Behavior we lock in:
|
|
714
|
+
// - imageGenerated is buffered per agent, flushed on the next
|
|
715
|
+
// stream_complete for the same agent into every active chat that
|
|
716
|
+
// has that agent linked.
|
|
717
|
+
// - dedupes against images the agent already embedded as
|
|
718
|
+
// `<image src="…">` markup so we don't double-post.
|
|
719
|
+
// - works even when the agent's text reply has no `<external>` block
|
|
720
|
+
// at all (image-only turn).
|
|
721
|
+
// - skips chats where the agent isn't active (multi-chat isolation).
|
|
722
|
+
// ─────────────────────────────────────────────────────────────────────
|
|
723
|
+
|
|
724
|
+
describe('imageGenerated relay', () => {
|
|
725
|
+
test('imageGenerated buffered, flushed on stream_complete into the active chat', async () => {
|
|
726
|
+
const svc = makeService();
|
|
727
|
+
const bot = await connected(svc);
|
|
728
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
729
|
+
await bot.simulateMessage(userMsg(111, '@Cody draw a sunset'));
|
|
730
|
+
|
|
731
|
+
// Image arrives from the tool first…
|
|
732
|
+
await svc._handleBroadcastEvent({
|
|
733
|
+
type: 'imageGenerated', agentId: 'a1',
|
|
734
|
+
imageUrl: 'https://cdn.example/sunset.png',
|
|
735
|
+
prompt: 'a sunset over Paris',
|
|
736
|
+
success: true,
|
|
737
|
+
});
|
|
738
|
+
// Bot should not have posted the photo yet — we wait for the
|
|
739
|
+
// agent's text completion to keep the order stable.
|
|
740
|
+
expect(bot.calls.sendPhoto).toHaveLength(0);
|
|
741
|
+
|
|
742
|
+
// Then the agent's text completion arrives.
|
|
743
|
+
await svc._handleBroadcastEvent({
|
|
744
|
+
type: 'stream_complete', agentId: 'a1', role: 'assistant',
|
|
745
|
+
content: '<external>Here is your sunset.</external>',
|
|
746
|
+
});
|
|
747
|
+
|
|
748
|
+
expect(bot.calls.sendPhoto).toHaveLength(1);
|
|
749
|
+
expect(bot.calls.sendPhoto[0].photo).toBe('https://cdn.example/sunset.png');
|
|
750
|
+
expect(String(bot.calls.sendPhoto[0].chatId)).toBe('111');
|
|
751
|
+
});
|
|
752
|
+
|
|
753
|
+
test('still flushes even when stream_complete has no <external> block', async () => {
|
|
754
|
+
const svc = makeService();
|
|
755
|
+
const bot = await connected(svc);
|
|
756
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
757
|
+
await bot.simulateMessage(userMsg(111, '@Cody draw'));
|
|
758
|
+
|
|
759
|
+
await svc._handleBroadcastEvent({
|
|
760
|
+
type: 'imageGenerated', agentId: 'a1',
|
|
761
|
+
imageUrl: 'https://cdn.example/only.png',
|
|
762
|
+
success: true,
|
|
763
|
+
});
|
|
764
|
+
await svc._handleBroadcastEvent({
|
|
765
|
+
type: 'stream_complete', agentId: 'a1', role: 'assistant',
|
|
766
|
+
content: 'internal-only narration, no external block',
|
|
767
|
+
});
|
|
768
|
+
expect(bot.calls.sendPhoto).toHaveLength(1);
|
|
769
|
+
expect(bot.calls.sendPhoto[0].photo).toBe('https://cdn.example/only.png');
|
|
770
|
+
});
|
|
771
|
+
|
|
772
|
+
test('deduplicates against images the agent already embedded in <external>', async () => {
|
|
773
|
+
const svc = makeService();
|
|
774
|
+
const bot = await connected(svc);
|
|
775
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
776
|
+
await bot.simulateMessage(userMsg(111, '@Cody draw'));
|
|
777
|
+
|
|
778
|
+
const url = 'https://cdn.example/dup.png';
|
|
779
|
+
await svc._handleBroadcastEvent({
|
|
780
|
+
type: 'imageGenerated', agentId: 'a1', imageUrl: url, success: true,
|
|
781
|
+
});
|
|
782
|
+
await svc._handleBroadcastEvent({
|
|
783
|
+
type: 'stream_complete', agentId: 'a1', role: 'assistant',
|
|
784
|
+
content: `<external>See:\n<image src="${url}">my pic</image></external>`,
|
|
785
|
+
});
|
|
786
|
+
expect(bot.calls.sendPhoto).toHaveLength(1);
|
|
787
|
+
});
|
|
788
|
+
|
|
789
|
+
test('does NOT leak the image to a chat where the agent isn\'t active', async () => {
|
|
790
|
+
const svc = makeService();
|
|
791
|
+
const bot = await connected(svc);
|
|
792
|
+
await bot.simulateMessage(userMsg(111, '/start'));
|
|
793
|
+
await bot.simulateMessage(userMsg(222, '/start'));
|
|
794
|
+
await bot.simulateMessage(userMsg(111, '@Cody draw'));
|
|
795
|
+
// Chat 222 never @-mentioned the agent → activeAgentIds is empty.
|
|
796
|
+
expect(svc.chats.get('222').activeAgentIds.has('a1')).toBe(false);
|
|
797
|
+
|
|
798
|
+
await svc._handleBroadcastEvent({
|
|
799
|
+
type: 'imageGenerated', agentId: 'a1',
|
|
800
|
+
imageUrl: 'https://cdn.example/private.png',
|
|
801
|
+
success: true,
|
|
802
|
+
});
|
|
803
|
+
await svc._handleBroadcastEvent({
|
|
804
|
+
type: 'stream_complete', agentId: 'a1', role: 'assistant',
|
|
805
|
+
content: '<external>done</external>',
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
const chats = bot.calls.sendPhoto.map(c => String(c.chatId));
|
|
809
|
+
expect(chats).toEqual(['111']);
|
|
810
|
+
});
|
|
811
|
+
|
|
812
|
+
test('buffer drops stale entries (>5 min) on next insert', async () => {
|
|
813
|
+
// Direct unit test of the buffer helper — bypasses the
|
|
814
|
+
// `_handleBroadcastEvent` early-return guard (which requires a
|
|
815
|
+
// connected bot + a /start'ed chat) so we can focus on the TTL.
|
|
816
|
+
const svc = makeService();
|
|
817
|
+
const original = Date.now;
|
|
818
|
+
try {
|
|
819
|
+
let now = 1_000_000_000_000;
|
|
820
|
+
Date.now = () => now;
|
|
821
|
+
|
|
822
|
+
svc._bufferGeneratedImage({ agentId: 'a1', imageUrl: 'https://cdn.example/stale.png' });
|
|
823
|
+
now += 6 * 60 * 1000; // 6 min later
|
|
824
|
+
svc._bufferGeneratedImage({ agentId: 'a1', imageUrl: 'https://cdn.example/fresh.png' });
|
|
825
|
+
const remaining = svc._pendingImagesByAgent.get('a1');
|
|
826
|
+
expect(remaining.map(e => e.imageUrl)).toEqual(['https://cdn.example/fresh.png']);
|
|
827
|
+
} finally {
|
|
828
|
+
Date.now = original;
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
|
|
832
|
+
test('imageGenerated with no imageUrl is ignored (no crash)', () => {
|
|
833
|
+
const svc = makeService();
|
|
834
|
+
svc._bufferGeneratedImage({ agentId: 'a1' });
|
|
835
|
+
expect(svc._pendingImagesByAgent.has('a1')).toBe(false);
|
|
836
|
+
});
|
|
837
|
+
});
|
|
838
|
+
|