onbuzz 4.7.0 → 4.7.1
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-CuE_dLW8.js +1 -0
- package/web-ui/build/static/abap-LOu14tBm.js +1 -0
- package/web-ui/build/static/abnf-CJpfHQLV.js +1 -0
- package/web-ui/build/static/abnf-LdAi7OAY.js +1 -0
- package/web-ui/build/static/accesslog-BvrhdZIJ.js +1 -0
- package/web-ui/build/static/actionscript-B3NHp9II.js +1 -0
- package/web-ui/build/static/actionscript-DVfqv5DS.js +1 -0
- package/web-ui/build/static/ada-BVkvHgSu.js +1 -0
- package/web-ui/build/static/ada-d33rlRPC.js +1 -0
- package/web-ui/build/static/agda-t1mot-jT.js +1 -0
- package/web-ui/build/static/al-D2Aw8sYi.js +1 -0
- package/web-ui/build/static/angelscript-DGjq6ZLh.js +1 -0
- package/web-ui/build/static/antlr4-DQWExQhj.js +1 -0
- package/web-ui/build/static/apache-CRX2mGHA.js +1 -0
- package/web-ui/build/static/apacheconf-BBhhyVVR.js +1 -0
- package/web-ui/build/static/apex-DIJyAF3g.js +1 -0
- package/web-ui/build/static/apl-COGQUhmX.js +1 -0
- package/web-ui/build/static/applescript-DLPa_bvL.js +1 -0
- package/web-ui/build/static/applescript-iEepawXM.js +1 -0
- package/web-ui/build/static/aql-vDYotUbW.js +1 -0
- package/web-ui/build/static/arcade-5bpnh2Oi.js +1 -0
- package/web-ui/build/static/arduino-4OxI8HS8.js +1 -0
- package/web-ui/build/static/arduino-zJUNF7Xl.js +1 -0
- package/web-ui/build/static/arff-DHcdYO6-.js +1 -0
- package/web-ui/build/static/armasm-DVyTHmiD.js +1 -0
- package/web-ui/build/static/asciidoc-BRYIR6BF.js +1 -0
- package/web-ui/build/static/asciidoc-bd_scw1t.js +1 -0
- package/web-ui/build/static/asm6502-DfRcm1MU.js +1 -0
- package/web-ui/build/static/asmatmel--fvKJXxu.js +1 -0
- package/web-ui/build/static/aspectj-Cnm2Ccyg.js +1 -0
- package/web-ui/build/static/aspnet-BK2pQltF.js +1 -0
- package/web-ui/build/static/autohotkey-COkKlASn.js +1 -0
- package/web-ui/build/static/autohotkey-DNYipPv0.js +1 -0
- package/web-ui/build/static/autoit-DiwhqkEo.js +1 -0
- package/web-ui/build/static/autoit-DkQ_YDdk.js +1 -0
- package/web-ui/build/static/avisynth-DFrkQWrl.js +1 -0
- package/web-ui/build/static/avrasm-BbFtsKVm.js +1 -0
- package/web-ui/build/static/avro-idl-06_wFrxE.js +1 -0
- package/web-ui/build/static/awk-BNO1Hu3Y.js +1 -0
- package/web-ui/build/static/axapta-CW0rBEQf.js +1 -0
- package/web-ui/build/static/bash-DAP5H41u.js +1 -0
- package/web-ui/build/static/bash-DsCT4fHh.js +1 -0
- package/web-ui/build/static/basic-DqCcX17x.js +1 -0
- package/web-ui/build/static/basic-J3jqGQaz.js +1 -0
- package/web-ui/build/static/batch-BzKb0QuF.js +1 -0
- package/web-ui/build/static/bbcode-Cxys0qL9.js +1 -0
- package/web-ui/build/static/bicep-DPpVhf9I.js +1 -0
- package/web-ui/build/static/birb-BDF00uY2.js +1 -0
- package/web-ui/build/static/bison-DerSCeTc.js +1 -0
- package/web-ui/build/static/bnf--Nxb91Mj.js +1 -0
- package/web-ui/build/static/bnf-DKp1OqQh.js +1 -0
- package/web-ui/build/static/brainfuck-BgKburBi.js +1 -0
- package/web-ui/build/static/brainfuck-CLRabJhl.js +1 -0
- package/web-ui/build/static/brightscript-DJ0LrgUU.js +1 -0
- package/web-ui/build/static/bro-FVn3137a.js +1 -0
- package/web-ui/build/static/bsl-DGcfC5Qq.js +1 -0
- package/web-ui/build/static/c-CtBaJxj_.js +1 -0
- package/web-ui/build/static/c-DcJBPsOs.js +1 -0
- package/web-ui/build/static/c-like-BMAPMOT0.js +1 -0
- package/web-ui/build/static/cal-Dwvf5LQJ.js +1 -0
- package/web-ui/build/static/capnproto-Be5xeQu8.js +1 -0
- package/web-ui/build/static/ceylon-BV9kQegc.js +1 -0
- package/web-ui/build/static/cfscript-DqyqkqRV.js +1 -0
- package/web-ui/build/static/chaiscript-ab8S5sGz.js +1 -0
- package/web-ui/build/static/cil-DU5bEU16.js +1 -0
- package/web-ui/build/static/clean-CqKiC4l-.js +1 -0
- package/web-ui/build/static/clojure-CdaWManm.js +1 -0
- package/web-ui/build/static/clojure-cVIUydqy.js +1 -0
- package/web-ui/build/static/clojure-repl-mc7sqsOd.js +1 -0
- package/web-ui/build/static/cmake-D2ntzyPv.js +1 -0
- package/web-ui/build/static/cmake-Dt7gdCZl.js +1 -0
- package/web-ui/build/static/cobol-BYMIYxJY.js +1 -0
- package/web-ui/build/static/coffeescript-COUOYE5O.js +1 -0
- package/web-ui/build/static/coffeescript-FDyQzH4X.js +1 -0
- package/web-ui/build/static/concurnas-D8GglsJx.js +1 -0
- package/web-ui/build/static/coq-BvEL_B0N.js +1 -0
- package/web-ui/build/static/coq-C6NZeAuz.js +1 -0
- package/web-ui/build/static/cos-CjjeNVfD.js +1 -0
- package/web-ui/build/static/cpp-BdQQ9k01.js +1 -0
- package/web-ui/build/static/cpp-iYGopslr.js +1 -0
- package/web-ui/build/static/crmsh-COhOWlQB.js +1 -0
- package/web-ui/build/static/crystal-DqVfuZe7.js +1 -0
- package/web-ui/build/static/crystal-fkI7WHLA.js +1 -0
- package/web-ui/build/static/csharp-BKyMR69a.js +1 -0
- package/web-ui/build/static/csharp-KJwk5tFh.js +1 -0
- package/web-ui/build/static/cshtml-D-0Bd5yF.js +1 -0
- package/web-ui/build/static/csp-C6xrFQUZ.js +1 -0
- package/web-ui/build/static/csp-CKOZZjS5.js +1 -0
- package/web-ui/build/static/css-DhttYfIQ.js +1 -0
- package/web-ui/build/static/css-extras-Cwksdn14.js +1 -0
- package/web-ui/build/static/csv-3xOycrIm.js +1 -0
- package/web-ui/build/static/cypher-DIQ_IXvU.js +1 -0
- package/web-ui/build/static/d-CA3ONaPZ.js +1 -0
- package/web-ui/build/static/d-Cpj6yr1P.js +1 -0
- package/web-ui/build/static/dart-CStXueOh.js +1 -0
- package/web-ui/build/static/dart-DyyN2hCZ.js +1 -0
- package/web-ui/build/static/dataweave-C1Z1lf_p.js +1 -0
- package/web-ui/build/static/dax-Bra_xxin.js +1 -0
- package/web-ui/build/static/delphi-BSp32sTR.js +1 -0
- package/web-ui/build/static/dhall-DqULvWhD.js +1 -0
- package/web-ui/build/static/diff-DZWp0eai.js +1 -0
- package/web-ui/build/static/diff-Dl7Q9ZLJ.js +1 -0
- package/web-ui/build/static/django-BKb-9srn.js +1 -0
- package/web-ui/build/static/django-D4ZBsr7A.js +1 -0
- package/web-ui/build/static/dns-BIl1lqfE.js +1 -0
- package/web-ui/build/static/dns-zone-file-BHOpqtwv.js +1 -0
- package/web-ui/build/static/docker-DhYlo5KM.js +1 -0
- package/web-ui/build/static/dockerfile-DkKcxplU.js +1 -0
- package/web-ui/build/static/dos-BL8RAxlP.js +1 -0
- package/web-ui/build/static/dot-BLokvOTb.js +1 -0
- package/web-ui/build/static/dsconfig-C-HwSveF.js +1 -0
- package/web-ui/build/static/dts-D7N7kY9U.js +1 -0
- package/web-ui/build/static/dust-BDDbpTgO.js +1 -0
- package/web-ui/build/static/ebnf-BXq1reNT.js +1 -0
- package/web-ui/build/static/ebnf-DbPDw4Bq.js +1 -0
- package/web-ui/build/static/editorconfig-w2ZfPGuw.js +1 -0
- package/web-ui/build/static/eiffel-c2MQNBkW.js +1 -0
- package/web-ui/build/static/ejs-3QktTSvM.js +1 -0
- package/web-ui/build/static/elixir-BpckBbUo.js +1 -0
- package/web-ui/build/static/elixir-CdGx--Zx.js +1 -0
- package/web-ui/build/static/elm-BZQYORvs.js +1 -0
- package/web-ui/build/static/elm-CuB52FFf.js +1 -0
- package/web-ui/build/static/erb-BBShdpRp.js +1 -0
- package/web-ui/build/static/erb-C6oyD8uR.js +1 -0
- package/web-ui/build/static/erlang-CTR2NiVN.js +1 -0
- package/web-ui/build/static/erlang-Gyvyd8Bt.js +1 -0
- package/web-ui/build/static/erlang-repl-DQ9M2hTB.js +1 -0
- package/web-ui/build/static/etlua-WvCpEBL7.js +1 -0
- package/web-ui/build/static/excel-Cti8qyDh.js +1 -0
- package/web-ui/build/static/excel-formula-CbyjGhLT.js +1 -0
- package/web-ui/build/static/factor-DsS7xUlQ.js +1 -0
- package/web-ui/build/static/false-By7DT7NY.js +1 -0
- package/web-ui/build/static/firestore-security-rules-D818j5mX.js +1 -0
- package/web-ui/build/static/fix-Z9CNHO5B.js +1 -0
- package/web-ui/build/static/flix-CQ5tU7oG.js +1 -0
- package/web-ui/build/static/flow-TAcj5V8G.js +1 -0
- package/web-ui/build/static/fortran-CSo4-IB9.js +1 -0
- package/web-ui/build/static/fortran-D8ckpcuk.js +1 -0
- package/web-ui/build/static/fsharp-CX5IhzHG.js +1 -0
- package/web-ui/build/static/fsharp-CjgdWVzI.js +1 -0
- package/web-ui/build/static/ftl-BniZfpaP.js +1 -0
- package/web-ui/build/static/gams-Dx_Ej7b0.js +1 -0
- package/web-ui/build/static/gap-BW8rQPKU.js +1 -0
- package/web-ui/build/static/gauss-DP_j2AoM.js +1 -0
- package/web-ui/build/static/gcode-C_p0RHK2.js +1 -0
- package/web-ui/build/static/gcode-CvPzqlIr.js +1 -0
- package/web-ui/build/static/gdscript-BQxanI3X.js +1 -0
- package/web-ui/build/static/gedcom-DX22sB95.js +1 -0
- package/web-ui/build/static/gherkin-BuM2TN92.js +1 -0
- package/web-ui/build/static/gherkin-SyKtGAnl.js +1 -0
- package/web-ui/build/static/git-CZsBJbLj.js +1 -0
- package/web-ui/build/static/glsl-0gMMTGpT.js +1 -0
- package/web-ui/build/static/glsl-DdxyDP7O.js +1 -0
- package/web-ui/build/static/gml-Bmf5f_3a.js +1 -0
- package/web-ui/build/static/gml-DygwvUqd.js +1 -0
- package/web-ui/build/static/gn-CmJ9lVHR.js +1 -0
- package/web-ui/build/static/go-DcXIw3ql.js +1 -0
- package/web-ui/build/static/go-Dp-1fwju.js +1 -0
- package/web-ui/build/static/go-module-CVe5dTg-.js +1 -0
- package/web-ui/build/static/golo-Dqz3BdPW.js +1 -0
- package/web-ui/build/static/gradle-PY8Q_ptd.js +1 -0
- package/web-ui/build/static/graphql-7ynBfuuQ.js +1 -0
- package/web-ui/build/static/groovy-CKe3t1A3.js +1 -0
- package/web-ui/build/static/groovy-DK_6c_Dy.js +1 -0
- package/web-ui/build/static/haml-BjjIreuG.js +1 -0
- package/web-ui/build/static/haml-knbHtzU7.js +1 -0
- package/web-ui/build/static/handlebars-Bvicc2ZP.js +1 -0
- package/web-ui/build/static/handlebars-CWjisUes.js +1 -0
- package/web-ui/build/static/haskell-0vOFJmtj.js +1 -0
- package/web-ui/build/static/haskell-BjwWvVul.js +1 -0
- package/web-ui/build/static/haxe-CXIYhI9-.js +1 -0
- package/web-ui/build/static/haxe-Msa_nat5.js +1 -0
- package/web-ui/build/static/hcl-DADfqiqO.js +1 -0
- package/web-ui/build/static/hlsl-BoecwvZ1.js +1 -0
- package/web-ui/build/static/hoon-DoMcF4bN.js +1 -0
- package/web-ui/build/static/hpkp-DOkWWV9B.js +1 -0
- package/web-ui/build/static/hsp-KvanktXQ.js +1 -0
- package/web-ui/build/static/hsts-DP5sAe8p.js +1 -0
- package/web-ui/build/static/htmlbars-DpevdeqY.js +1 -0
- package/web-ui/build/static/http-CTyudxeK.js +1 -0
- package/web-ui/build/static/http-D0_pALtR.js +1 -0
- package/web-ui/build/static/hy-KpsNGTaA.js +1 -0
- package/web-ui/build/static/ichigojam-B9szb3eY.js +1 -0
- package/web-ui/build/static/icon-nqAgdt4t.js +1 -0
- package/web-ui/build/static/icu-message-format-DvgC-cKZ.js +1 -0
- package/web-ui/build/static/idris-D5VcDmFg.js +1 -0
- package/web-ui/build/static/iecst-LbbDhK7w.js +1 -0
- package/web-ui/build/static/ignore-rThoz4zA.js +1 -0
- package/web-ui/build/static/index-Cm1gK3R7.css +1 -0
- package/web-ui/build/static/index-D6blIL5t.js +13 -0
- package/web-ui/build/static/index-DqCutaVi.js +1164 -0
- package/web-ui/build/static/index-_UVy_UGY.js +1 -0
- package/web-ui/build/static/inform7-B2u0-vkK.js +1 -0
- package/web-ui/build/static/inform7-Cj2uMx5P.js +1 -0
- package/web-ui/build/static/ini-DDC_WfpB.js +1 -0
- package/web-ui/build/static/ini-Dafi1wkS.js +1 -0
- package/web-ui/build/static/io-Cs5RmCdQ.js +1 -0
- package/web-ui/build/static/irpf90-5KuyCx_k.js +1 -0
- package/web-ui/build/static/isbl-CZGAUFN3.js +1 -0
- package/web-ui/build/static/j-C2U5CNx3.js +1 -0
- package/web-ui/build/static/java-B-L3bHbG.js +1 -0
- package/web-ui/build/static/java-Dhfb499l.js +1 -0
- package/web-ui/build/static/javadoc-_ln2gn5I.js +1 -0
- package/web-ui/build/static/javadoclike-CnV_ddKg.js +1 -0
- package/web-ui/build/static/javascript-DBUUUlif.js +1 -0
- package/web-ui/build/static/javastacktrace-BS1l3Yf6.js +1 -0
- package/web-ui/build/static/jboss-cli-RdKEfNzL.js +1 -0
- package/web-ui/build/static/jexl-Bu5vdWnx.js +1 -0
- package/web-ui/build/static/jolie-LS18mxou.js +1 -0
- package/web-ui/build/static/jq-u9QEjWr_.js +1 -0
- package/web-ui/build/static/js-extras-C1cS_85G.js +1 -0
- package/web-ui/build/static/js-templates-DQxgBfhh.js +1 -0
- package/web-ui/build/static/jsdoc-DhLXAtzJ.js +1 -0
- package/web-ui/build/static/json-B8DgcmbV.js +1 -0
- package/web-ui/build/static/json-ByLJzbD8.js +1 -0
- package/web-ui/build/static/json5-DSnccLNQ.js +1 -0
- package/web-ui/build/static/jsonp-CcwF40Vu.js +1 -0
- package/web-ui/build/static/jsstacktrace-7YvddNWa.js +1 -0
- package/web-ui/build/static/jsx-DnHkAc3-.js +1 -0
- package/web-ui/build/static/julia-BmadVpf3.js +1 -0
- package/web-ui/build/static/julia-GSKCoIBJ.js +1 -0
- package/web-ui/build/static/julia-repl-ks3HTctE.js +1 -0
- package/web-ui/build/static/keepalived-CWDkM2-Z.js +1 -0
- package/web-ui/build/static/keyman-C9jA4-3Y.js +1 -0
- package/web-ui/build/static/kotlin-BqzUXT-K.js +1 -0
- package/web-ui/build/static/kotlin-BxhEUQAU.js +1 -0
- package/web-ui/build/static/kumir-BFYLWJq-.js +1 -0
- package/web-ui/build/static/kusto-CQRzYXm2.js +1 -0
- package/web-ui/build/static/lasso-D44z_uI8.js +1 -0
- package/web-ui/build/static/latex-BEJdTqYC.js +1 -0
- package/web-ui/build/static/latex-CStS4ql1.js +1 -0
- package/web-ui/build/static/latte-BPXasl8T.js +1 -0
- package/web-ui/build/static/ldif-Wxrk2-xQ.js +1 -0
- package/web-ui/build/static/leaf-DrTXK-pT.js +1 -0
- package/web-ui/build/static/less-BmoAe98U.js +1 -0
- package/web-ui/build/static/less-DzWEFsZj.js +1 -0
- package/web-ui/build/static/lilypond-C3ZnRm_L.js +1 -0
- package/web-ui/build/static/liquid-eXmypvP_.js +1 -0
- package/web-ui/build/static/lisp-DcidyoAl.js +1 -0
- package/web-ui/build/static/lisp-DhmUig93.js +1 -0
- package/web-ui/build/static/livecodeserver-D5lnfCkg.js +1 -0
- package/web-ui/build/static/livescript-Bpb_EpXS.js +1 -0
- package/web-ui/build/static/livescript-rF5whmjG.js +1 -0
- package/web-ui/build/static/llvm-BD9QG7T-.js +1 -0
- package/web-ui/build/static/llvm-CVP-jOx8.js +1 -0
- package/web-ui/build/static/log-DRzysjS2.js +1 -0
- package/web-ui/build/static/lolcode-BmKgPOwi.js +1 -0
- package/web-ui/build/static/lsl-DEO2mV0F.js +1 -0
- package/web-ui/build/static/lua-BNDDIa9F.js +1 -0
- package/web-ui/build/static/lua-C5n4hyV-.js +1 -0
- package/web-ui/build/static/magma-UZvvdXue.js +1 -0
- package/web-ui/build/static/makefile-BDQ4tARf.js +1 -0
- package/web-ui/build/static/makefile-Bjg-ueA2.js +1 -0
- package/web-ui/build/static/markdown-BTXvpQos.js +1 -0
- package/web-ui/build/static/markdown-BvMdFo1Y.js +1 -0
- package/web-ui/build/static/markup-templating-xSAHnnIS.js +1 -0
- package/web-ui/build/static/mathematica-CqNsUy6n.js +1 -0
- package/web-ui/build/static/matlab-D-A1WMHc.js +1 -0
- package/web-ui/build/static/matlab-Us_SxUWG.js +1 -0
- package/web-ui/build/static/maxima-BSyBp09v.js +1 -0
- package/web-ui/build/static/maxscript-wyb-3dgT.js +1 -0
- package/web-ui/build/static/mel-Bpo7JK_A.js +1 -0
- package/web-ui/build/static/mel-eZCDX4iS.js +1 -0
- package/web-ui/build/static/mercury-CEgBiaXI.js +1 -0
- package/web-ui/build/static/mermaid-BJIHmQsO.js +1 -0
- package/web-ui/build/static/mipsasm-c70dMcw9.js +1 -0
- package/web-ui/build/static/mizar-CeCpdHS-.js +1 -0
- package/web-ui/build/static/mizar-DDlOFZXr.js +1 -0
- package/web-ui/build/static/mojolicious-b4UGVld0.js +1 -0
- package/web-ui/build/static/mongodb-DwkU2uSm.js +1 -0
- package/web-ui/build/static/monkey-CNkGqOfo.js +1 -0
- package/web-ui/build/static/monkey-DwmdAwUx.js +1 -0
- package/web-ui/build/static/moonscript-C2vv4alq.js +1 -0
- package/web-ui/build/static/moonscript-GOmGojxm.js +1 -0
- package/web-ui/build/static/n1ql-B-uZXYG_.js +1 -0
- package/web-ui/build/static/n1ql-CqKgc7lF.js +1 -0
- package/web-ui/build/static/n4js-CLkxsn24.js +1 -0
- package/web-ui/build/static/nand2tetris-hdl-CAJAzliK.js +1 -0
- package/web-ui/build/static/naniscript-DxWjsrnl.js +1 -0
- package/web-ui/build/static/nasm-C-GI38un.js +1 -0
- package/web-ui/build/static/neon-DWKBFo--.js +1 -0
- package/web-ui/build/static/nevod-DGDg1w8a.js +1 -0
- package/web-ui/build/static/nginx-BQbAompS.js +1 -0
- package/web-ui/build/static/nginx-BQbgG8J2.js +1 -0
- package/web-ui/build/static/nim-Bf864jik.js +1 -0
- package/web-ui/build/static/nim-DG4Tf5sg.js +1 -0
- package/web-ui/build/static/nix-BBq54ypW.js +1 -0
- package/web-ui/build/static/nix-DiVQTSyM.js +1 -0
- package/web-ui/build/static/node-repl-Dg0rNxhv.js +1 -0
- package/web-ui/build/static/nsis-BG8Lm28v.js +1 -0
- package/web-ui/build/static/nsis-CwA_MNyF.js +1 -0
- package/web-ui/build/static/objectivec-83FM4mu0.js +1 -0
- package/web-ui/build/static/objectivec-CbDgPZGc.js +1 -0
- package/web-ui/build/static/ocaml-CXrksX9b.js +1 -0
- package/web-ui/build/static/ocaml-aktipfk_.js +1 -0
- package/web-ui/build/static/opencl-B1Wu4nP5.js +1 -0
- package/web-ui/build/static/openqasm-BnUjC0Rq.js +1 -0
- package/web-ui/build/static/openscad-CNEF75nQ.js +1 -0
- package/web-ui/build/static/oxygene-B5nQHVvu.js +1 -0
- package/web-ui/build/static/oz-Dw07HFRJ.js +1 -0
- package/web-ui/build/static/parigp-Dkh7PqN8.js +1 -0
- package/web-ui/build/static/parser-CAW1btwt.js +1 -0
- package/web-ui/build/static/parser3-DO4cmbnD.js +1 -0
- package/web-ui/build/static/pascal-B3XwEzrN.js +1 -0
- package/web-ui/build/static/pascaligo-CMKmAZ_B.js +1 -0
- package/web-ui/build/static/pcaxis-B5RrdB6p.js +1 -0
- package/web-ui/build/static/peoplecode-CGkgPJl9.js +1 -0
- package/web-ui/build/static/perl-BWBuZ5Vt.js +1 -0
- package/web-ui/build/static/perl-CW0_w5xG.js +1 -0
- package/web-ui/build/static/pf-B1aiG4iq.js +1 -0
- package/web-ui/build/static/pgsql-BgXadqYx.js +1 -0
- package/web-ui/build/static/php-BpB9heTH.js +1 -0
- package/web-ui/build/static/php-S3LJn70M.js +1 -0
- package/web-ui/build/static/php-extras-Dmblzt0I.js +1 -0
- package/web-ui/build/static/php-template-BS_uyUS1.js +1 -0
- package/web-ui/build/static/phpdoc-BqP_4LKt.js +1 -0
- package/web-ui/build/static/plaintext-BvDBRLjE.js +1 -0
- package/web-ui/build/static/plsql-DEj_qOIm.js +1 -0
- package/web-ui/build/static/pony-DpvrOLZf.js +1 -0
- package/web-ui/build/static/powerquery-C0Wobunx.js +1 -0
- package/web-ui/build/static/powershell-CY7ZBlTW.js +1 -0
- package/web-ui/build/static/powershell-DiEDDrOo.js +1 -0
- package/web-ui/build/static/processing-IXybgMWQ.js +1 -0
- package/web-ui/build/static/processing-i136WolF.js +1 -0
- package/web-ui/build/static/profile-guIih27Q.js +1 -0
- package/web-ui/build/static/prolog-CvmO0VDt.js +1 -0
- package/web-ui/build/static/prolog-Dmf4klwf.js +1 -0
- package/web-ui/build/static/promql-DObZhyF5.js +1 -0
- package/web-ui/build/static/properties-CK08qg7k.js +1 -0
- package/web-ui/build/static/properties-DmwePx7J.js +1 -0
- package/web-ui/build/static/protobuf-BDkUYcAx.js +1 -0
- package/web-ui/build/static/protobuf-CBMNyvhU.js +1 -0
- package/web-ui/build/static/psl-eW3BB0n6.js +1 -0
- package/web-ui/build/static/pug-D0LF-keh.js +1 -0
- package/web-ui/build/static/puppet-BUYZQfB-.js +1 -0
- package/web-ui/build/static/puppet-Dbo5UDT-.js +1 -0
- package/web-ui/build/static/pure-C5ukDHhg.js +1 -0
- package/web-ui/build/static/purebasic-B8eqrPTw.js +1 -0
- package/web-ui/build/static/purebasic-BA8g0-l-.js +1 -0
- package/web-ui/build/static/purescript-CKa_o5qx.js +1 -0
- package/web-ui/build/static/python-C-iEDsum.js +1 -0
- package/web-ui/build/static/python-CJcHyEGQ.js +1 -0
- package/web-ui/build/static/python-repl-WvDxhQ8t.js +1 -0
- package/web-ui/build/static/q-Ben5hioy.js +1 -0
- package/web-ui/build/static/q-CenUx0Za.js +1 -0
- package/web-ui/build/static/qml-CkUJB-7R.js +1 -0
- package/web-ui/build/static/qml-G6uEqbt_.js +1 -0
- package/web-ui/build/static/qore-CASrYvaT.js +1 -0
- package/web-ui/build/static/qsharp-CJMvScJV.js +1 -0
- package/web-ui/build/static/r-C3qOLTEa.js +1 -0
- package/web-ui/build/static/r-pFTIkWVX.js +1 -0
- package/web-ui/build/static/racket-Dj2Pnxz8.js +1 -0
- package/web-ui/build/static/reason-BLo81vJj.js +1 -0
- package/web-ui/build/static/reasonml-Uso3eiRd.js +1 -0
- package/web-ui/build/static/regex-CRRrWtDv.js +1 -0
- package/web-ui/build/static/rego-Pd9N41dQ.js +1 -0
- package/web-ui/build/static/renpy-B5nJRJ6W.js +1 -0
- package/web-ui/build/static/rest-C4KktBYV.js +1 -0
- package/web-ui/build/static/rib-WhwJFXjw.js +1 -0
- package/web-ui/build/static/rip-BRMu9y5Q.js +1 -0
- package/web-ui/build/static/roboconf-BC-HzyUK.js +1 -0
- package/web-ui/build/static/roboconf-Wo-TPzlW.js +1 -0
- package/web-ui/build/static/robotframework-Cvw8u8mL.js +1 -0
- package/web-ui/build/static/routeros-1EUCLy_j.js +1 -0
- package/web-ui/build/static/rsl-DcVNeKkF.js +1 -0
- package/web-ui/build/static/ruby-B1fqRC3j.js +1 -0
- package/web-ui/build/static/ruby-Bl1wXNzL.js +1 -0
- package/web-ui/build/static/ruleslanguage-C3rzl2Ma.js +1 -0
- package/web-ui/build/static/rust-4iyLrpFQ.js +1 -0
- package/web-ui/build/static/rust-V8MRv3os.js +1 -0
- package/web-ui/build/static/sas-ClkrCklD.js +1 -0
- package/web-ui/build/static/sas-CyFFy3mS.js +1 -0
- package/web-ui/build/static/sass-Cege3fu1.js +1 -0
- package/web-ui/build/static/scala-DNb7CDvN.js +1 -0
- package/web-ui/build/static/scala-c5k_CS9h.js +1 -0
- package/web-ui/build/static/scheme-BXrEBzXP.js +1 -0
- package/web-ui/build/static/scheme-COq0pstl.js +1 -0
- package/web-ui/build/static/scilab-CRMCfvft.js +1 -0
- package/web-ui/build/static/scss-C6MDSdKd.js +1 -0
- package/web-ui/build/static/scss-D1INSi-r.js +1 -0
- package/web-ui/build/static/shell-BHTFz9Xv.js +1 -0
- package/web-ui/build/static/shell-session-B6KXgRjz.js +1 -0
- package/web-ui/build/static/smali-CXGHC3zj.js +1 -0
- package/web-ui/build/static/smali-DFRkIqFc.js +1 -0
- package/web-ui/build/static/smalltalk-DWI2TbuJ.js +1 -0
- package/web-ui/build/static/smalltalk-jkgxBKRZ.js +1 -0
- package/web-ui/build/static/smarty-BPJMXwnj.js +1 -0
- package/web-ui/build/static/sml-BHT8CCeD.js +1 -0
- package/web-ui/build/static/sml-D5fkPJU1.js +1 -0
- package/web-ui/build/static/solidity-BfFvCWqp.js +1 -0
- package/web-ui/build/static/solution-file-DmSVfk_X.js +1 -0
- package/web-ui/build/static/soy-CXqMJVf8.js +1 -0
- package/web-ui/build/static/sparql-BxIpMyhJ.js +1 -0
- package/web-ui/build/static/splunk-spl-DMekyRuD.js +1 -0
- package/web-ui/build/static/sqf-DeQ-Lyaa.js +1 -0
- package/web-ui/build/static/sqf-hkl5BOBV.js +1 -0
- package/web-ui/build/static/sql-Di-rn3Od.js +1 -0
- package/web-ui/build/static/sql-DuF5aX9R.js +1 -0
- package/web-ui/build/static/sql_more-CCmzwYYA.js +1 -0
- package/web-ui/build/static/squirrel-fGLPlBkB.js +1 -0
- package/web-ui/build/static/stan-BveEpl1w.js +1 -0
- package/web-ui/build/static/stan-CM09XtOD.js +1 -0
- package/web-ui/build/static/stata-DeFUbv91.js +1 -0
- package/web-ui/build/static/step21-DnUE2ZTl.js +1 -0
- package/web-ui/build/static/stylus-Bz9XG6KK.js +1 -0
- package/web-ui/build/static/stylus-h33ZUR4b.js +1 -0
- package/web-ui/build/static/subunit-v4SRMSnP.js +1 -0
- package/web-ui/build/static/swift-BMCxsbHv.js +1 -0
- package/web-ui/build/static/swift-qFBaTSsZ.js +1 -0
- package/web-ui/build/static/systemd-9w7KWsst.js +1 -0
- package/web-ui/build/static/t4-cs-DdBrJkO9.js +1 -0
- package/web-ui/build/static/t4-templating-B-3iQJ4y.js +1 -0
- package/web-ui/build/static/t4-vb-BBuTbPK8.js +1 -0
- package/web-ui/build/static/taggerscript-BPvYYpaJ.js +1 -0
- package/web-ui/build/static/tap-DiFULuZV.js +1 -0
- package/web-ui/build/static/tap-Q9DMgrzh.js +1 -0
- package/web-ui/build/static/tcl-BZcwcRUU.js +1 -0
- package/web-ui/build/static/tcl-C4DHKxjE.js +1 -0
- package/web-ui/build/static/textile-ByLAjlo8.js +1 -0
- package/web-ui/build/static/thrift-C_isEMNl.js +1 -0
- package/web-ui/build/static/toml-C6ffwJpv.js +1 -0
- package/web-ui/build/static/tp-aV8nCrpp.js +1 -0
- package/web-ui/build/static/tremor-Bs1SSWo9.js +1 -0
- package/web-ui/build/static/tsx-DdryYBa4.js +1 -0
- package/web-ui/build/static/tt2-BeCMXvbZ.js +1 -0
- package/web-ui/build/static/turtle-B2FzT5Ov.js +1 -0
- package/web-ui/build/static/twig-fVEYqAxR.js +1 -0
- package/web-ui/build/static/twig-p9k58-hx.js +1 -0
- package/web-ui/build/static/typescript-8bhStN7p.js +1 -0
- package/web-ui/build/static/typescript-D2zmnuDR.js +1 -0
- package/web-ui/build/static/typoscript-DQePQcKL.js +1 -0
- package/web-ui/build/static/unrealscript-BZYSnJjB.js +1 -0
- package/web-ui/build/static/uorazor-CGaRtqR5.js +1 -0
- package/web-ui/build/static/uri-PJ3dz1qj.js +1 -0
- package/web-ui/build/static/v-CI9qDsYZ.js +1 -0
- package/web-ui/build/static/vala-B4ses542.js +1 -0
- package/web-ui/build/static/vala-BLxHpeKp.js +1 -0
- package/web-ui/build/static/vbnet-B7Dzk1rR.js +1 -0
- package/web-ui/build/static/vbnet-HOI9SMLZ.js +1 -0
- package/web-ui/build/static/vbscript-ERv5iDpi.js +1 -0
- package/web-ui/build/static/vbscript-html-D-mjpNAX.js +1 -0
- package/web-ui/build/static/velocity-B754qmeE.js +1 -0
- package/web-ui/build/static/verilog-3PA83Bxs.js +1 -0
- package/web-ui/build/static/verilog-D-lqP5ci.js +1 -0
- package/web-ui/build/static/vhdl-BjRYdIRF.js +1 -0
- package/web-ui/build/static/vhdl-DgrorvTt.js +1 -0
- package/web-ui/build/static/vim-3Oixnlee.js +1 -0
- package/web-ui/build/static/vim-BJTKcXdU.js +1 -0
- package/web-ui/build/static/visual-basic-BG8-3339.js +1 -0
- package/web-ui/build/static/warpscript-CEIgv5UG.js +1 -0
- package/web-ui/build/static/wasm-BJlpp9rs.js +1 -0
- package/web-ui/build/static/web-idl-Dlh9DutO.js +1 -0
- package/web-ui/build/static/wiki-CCcmRzkd.js +1 -0
- package/web-ui/build/static/wolfram--Xk-fAUi.js +1 -0
- package/web-ui/build/static/wren-B9Ajd9OC.js +1 -0
- package/web-ui/build/static/x86asm-DJJ72Zy-.js +1 -0
- package/web-ui/build/static/xeora-C0tNsSDj.js +1 -0
- package/web-ui/build/static/xl-CzEpyjRJ.js +1 -0
- package/web-ui/build/static/xml-CdtQTsBH.js +1 -0
- package/web-ui/build/static/xml-doc-TtPAAmc6.js +1 -0
- package/web-ui/build/static/xojo-B92fAnQE.js +1 -0
- package/web-ui/build/static/xquery-D0Z1FZVO.js +1 -0
- package/web-ui/build/static/xquery-DwlcRJ7Q.js +1 -0
- package/web-ui/build/static/yaml-DySZjPvD.js +1 -0
- package/web-ui/build/static/yaml-YgOVzvAS.js +1 -0
- package/web-ui/build/static/yang-BJokKPTo.js +1 -0
- package/web-ui/build/static/zephir-BWMUFIRD.js +1 -0
- package/web-ui/build/static/zig-Bpzj48cM.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
|
+
|