openclaw-cortex 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{audio-preflight-DgmMV8p-.js → audio-preflight-BT6BcGi_.js} +4 -4
- package/dist/{audio-preflight-oJZolUYt.js → audio-preflight-DmB6B5v7.js} +4 -4
- package/dist/build-info.json +5 -0
- package/dist/bundled/boot-md/HOOK.md +20 -0
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/bootstrap-extra-files/HOOK.md +53 -0
- package/dist/bundled/command-logger/HOOK.md +122 -0
- package/dist/bundled/session-memory/HOOK.md +109 -0
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/canvas-host/a2ui/.bundle.hash +1 -0
- package/dist/canvas-host/a2ui/a2ui.bundle.js +17770 -0
- package/dist/canvas-host/a2ui/index.html +307 -0
- package/dist/{chrome-DxhUHYxR.js → chrome-CBhKqm1e.js} +7 -7
- package/dist/{chrome-BxjGg3Ji.js → chrome-hb9SMlQf.js} +7 -7
- package/dist/cli/daemon-cli.js +9 -0
- package/dist/control-ui/_app/env.js +1 -0
- package/dist/control-ui/_app/immutable/assets/0.DR_FQ37_.css +1 -0
- package/dist/control-ui/_app/immutable/assets/2.D5MMRphb.css +1 -0
- package/dist/control-ui/_app/immutable/assets/4.Cst5sby_.css +1 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_AMS-Regular.BQhdFMY1.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_AMS-Regular.DMm9YOAa.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_AMS-Regular.DRggAlZN.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Caligraphic-Bold.BEiXGLvX.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Caligraphic-Regular.CTRA-rTL.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Caligraphic-Regular.wX97UBjC.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Fraktur-Bold.BdnERNNW.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Fraktur-Bold.BsDP51OF.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Fraktur-Bold.CL6g_b3V.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Fraktur-Regular.CB_wures.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Fraktur-Regular.CTYiF6lA.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Fraktur-Regular.Dxdc4cR9.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-Bold.Cx986IdX.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-Bold.Jm3AIy58.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-Bold.waoOVXN0.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-BoldItalic.DzxPMmG6.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-BoldItalic.SpSLRI95.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-Italic.3WenGoN9.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-Italic.BMLOBm91.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-Italic.NWA7e6Wa.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-Regular.B22Nviop.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-Regular.Dr94JaBh.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Main-Regular.ypZvNtVU.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Math-BoldItalic.B3XSjfu4.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Math-BoldItalic.iY-2wyZ7.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Math-Italic.DA0__PXp.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Math-Italic.flOr_0UB.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Math-Italic.t53AETM-.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_SansSerif-Bold.CFMepnvq.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_SansSerif-Bold.D1sUS0GD.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_SansSerif-Bold.DbIhKOiC.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_SansSerif-Italic.C3H0VqGB.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_SansSerif-Italic.DN2j7dab.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_SansSerif-Regular.BNo7hRIc.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_SansSerif-Regular.CS6fqUqJ.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Script-Regular.C5JkGWo-.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Script-Regular.D3wIWfF6.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Script-Regular.D5yQViql.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size1-Regular.C195tn64.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size1-Regular.Dbsnue_I.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size1-Regular.mCD8mA8B.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size2-Regular.B7gKUWhC.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size2-Regular.Dy4dx90m.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size2-Regular.oD1tc_U0.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size3-Regular.CTq5MqoE.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size3-Regular.DgpXs0kz.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size4-Regular.BF-4gkZK.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size4-Regular.DWFBv043.ttf +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Size4-Regular.Dl5lxZxV.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Typewriter-Regular.C0xS9mPB.woff +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Typewriter-Regular.CO6r4hn1.woff2 +0 -0
- package/dist/control-ui/_app/immutable/assets/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf +0 -0
- package/dist/control-ui/_app/immutable/chunks/0A2p0G4C.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/2EtD6e53.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/2UxHyX5q.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/3e1v2bzS.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/4A_iFExJ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/5J0xJHOV.js +321 -0
- package/dist/control-ui/_app/immutable/chunks/5i3qLPDT.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/83L43bj1.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/85-TOEBH.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/A8Xp3VCv.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B-drBnSa.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B0m2ddpp.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B1dDrJ26.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B1yitclQ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B26luS__.js +249 -0
- package/dist/control-ui/_app/immutable/chunks/B2A7gHtL.js +2 -0
- package/dist/control-ui/_app/immutable/chunks/B2bAh5Q1.js +3 -0
- package/dist/control-ui/_app/immutable/chunks/B2hZObCg.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B3DkuU-J.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B5Fyld5U.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B6aJPvgy.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B7c-h3xW.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B7mTdjB0.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B93PlW-d.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B9jIaMGe.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BAw4ath1.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BBf5iR-q.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BEDo0Tqx.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BERRCDM3.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BETggiCN.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BEwlwnbL.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BFfxhgS-.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BGHnOYBU.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BGJmEYvX.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BGv0vpQT.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BH7IYjvW.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BIGW1oBm.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BJDFO7_C.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BL5jzBAz.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BLmx8bSh.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BLtJtn59.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BM1_JUlF.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BMWR74SV.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BPQ3VLAy.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BQ8w6xss.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BR5kRUq4.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BRHolxvo.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BRZ36xJF.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BSoyQ_R5.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BTJTHyun.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BTifaqeh.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BUw7H-hv.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BV7otONQ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BVQ-GDCI.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BVUk3tWa.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BWvSN4gD.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BXkSAIEj.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BYXRTvT-.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BYunw83y.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BZvkOJ9d.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/B_m7g4N7.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Ba13S78F.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BaaWV1KV.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BcOcwvcX.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BcVCzyr7.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BdImnpbu.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BdnUsdx6.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BeZ-nXK1.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Be_uRYmX.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BfHTSMKl.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BfJx3WfE.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BfQbQz2e.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BfjtVDDH.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BgDCqdQA.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BgIZa_E2.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Bh70dShK.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BhOHFoWU.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BhRPY-oY.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BkioyH1T.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Bkuqu6BP.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BmXAJ9_W.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Bmn6On1c.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Bp6g37R7.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BqTXFGrv.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BqYA7rlc.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Br6cN0cg.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BrzmwbiE.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BsS91CYL.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BseClIFT.js +2 -0
- package/dist/control-ui/_app/immutable/chunks/BspZqrRM.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BtCnVYZw.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BtOb2qkB.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BthQWCQV.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BtjpZpjN.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BtqSS_iP.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BtvRca6l.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BuTRGpGL.js +15 -0
- package/dist/control-ui/_app/immutable/chunks/Buea-lGh.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Bv_4Rxtq.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BvzEVeQv.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Bw305WKR.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BxgE0vQu.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/BzJJZx-M.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C-HG3fhB.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C-SQnVFl.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C-sMwVJq.js +220 -0
- package/dist/control-ui/_app/immutable/chunks/C-sUppwS.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C0HS_06l.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C0hk2d4L.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C151Ov-r.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C28nlFVT.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C2t-YnRu.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C39BiMTA.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C3B-1QV4.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C3Wv6jpd.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C3mMm8J8.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C47S-Tmv.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C4EeE6gA.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C4IJs8-o.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C4gqWexZ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C5YyOfLZ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C7zT0LnQ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C8M2exoo.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C8lEn-DE.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C98Dy4si.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C9E63BpL.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C9XAeP06.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C9dUb6Cb.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C9oPPf7i.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/C9tS-k6U.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CA2Fqmpq.js +10 -0
- package/dist/control-ui/_app/immutable/chunks/CDVJQ6XC.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CDx5xZoG.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CEL-wOlO.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CEu0bR-o.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CF10PKvl.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CF2DLLi1.js +267 -0
- package/dist/control-ui/_app/immutable/chunks/CFHQjOhq.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CFmcBGqp.js +43 -0
- package/dist/control-ui/_app/immutable/chunks/CG6Dc4jp.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CG8Ifv2g.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CH1njM8p.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CHLpvVh8.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CHM0blh-.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CJc9bBzg.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CKIfxQSi.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CLxacb5B.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CMTm3GFP.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CMjwMIkn.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CN4OLKrr.js +65 -0
- package/dist/control-ui/_app/immutable/chunks/CO1LY3CK.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/COcwbKMJ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/COkxafJQ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/COt5Ahok.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CQ8jqdy-.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CQBY9X6E.js +36 -0
- package/dist/control-ui/_app/immutable/chunks/CS3Unz2-.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CSXwinHm.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CT8t8-J1.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CTRr51gU.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CVF7vp9Z.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CVO1_9PV.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CVdnzihN.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CW8IKDeL.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CXQ1lKJR.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CXtECtnM.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CZhp0h8q.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CaGTHgeg.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CafNBF8u.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CbFg5uaA.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CbfX1IO0.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CcGwJm6c.js +30 -0
- package/dist/control-ui/_app/immutable/chunks/CckKNcSY.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CeAyd5Ju.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CenWIFCC.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CfMaDYuo.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CfQXZHmo.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CfxOJN7V.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Cg-RD9OK.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CgoZPVeh.js +24 -0
- package/dist/control-ui/_app/immutable/chunks/ChMvpjG-.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Ci3HlJdq.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Cj5Yp3dK.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CjW8XjqM.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CjoLj4QM.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CkAYskLX.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CkByrt1z.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CkXjmgJE.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CklMAg4u.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CktI4lAE.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Cl8IGKIC.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CmIQRyeF.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CmKTTxBW.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Cmh6b_Ma.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CnnebwVN.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CnnmHF94.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CnsnAmq5.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Co6uUVPk.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CoDkCxhg.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Cp-IABpG.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CpgMrl7C.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Cq5zzVJU.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CquLrc37.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CsfeWuGM.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Csfq5Kiy.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CuPHTKiy.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Cuk6v7N8.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CvQeaAIM.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Cvjx9yec.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CwoSXNpI.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CxGSJlkm.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CxLEBnE3.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CxbxFI8M.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CyktbL80.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CylS5w8V.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/CzTSHFRz.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D-2ljcwZ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D0YGMca9.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D0h_xhSm.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D0r3Knsf.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D17OF-Vu.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D1j8_8rp.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D3iU0WXt.js +5 -0
- package/dist/control-ui/_app/immutable/chunks/D3lLCCz7.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D4_iv3hh.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D4h5O-jR.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D5-Leoub.js +4 -0
- package/dist/control-ui/_app/immutable/chunks/D5-asLiD.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D53aC0YG.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D5KoaKCx.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D7o27uSR.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D7oLnXFd.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D82EKSYY.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D87Tk5Gz.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D8_7TLub.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D93ZcfNL.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D97Zzqfu.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DAi9KRSo.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DBpX0yWo.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DCmPRZMl.js +68 -0
- package/dist/control-ui/_app/immutable/chunks/DDlWCD6s.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DFQXde-d.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DFWUc33u.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DFXneXwc.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DGztddWO.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DH5Ifo-i.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DHCkPAjA.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DHJKELXO.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DHQR4-dF.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DID_Ax9Y.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DLh1OHbt.js +162 -0
- package/dist/control-ui/_app/immutable/chunks/DM8c43g1.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DMzUqQB5.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DNstp7By.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DP56tnrP.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DPfMkruS.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DPrxUVm_.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DQyhUUbL.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DR4elm4u.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DRg8JJMk.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DRw_LuNl.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DTaVu539.js +10 -0
- package/dist/control-ui/_app/immutable/chunks/DU1UobuO.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DUYD8zIj.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DUszq2jm.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DV7GczEv.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DVFEvuxE.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DVMEJ2y_.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DVP7Iy08.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DVxCFoDh.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DWedfzmr.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DWrx1Km3.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DX6XiGOO.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DXEhjiCw.js +2 -0
- package/dist/control-ui/_app/immutable/chunks/DXbdFlpD.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DXmwc3jG.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DXvB9xmW.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DYGYDwS0.js +7 -0
- package/dist/control-ui/_app/immutable/chunks/DYoxhk2S.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DZf3V79B.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DZxFcAj9.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/D_Q5rh1f.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Da5cRb03.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DaZJ10kq.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DaqZ8F7d.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DcOAMOlN.js +13 -0
- package/dist/control-ui/_app/immutable/chunks/DcaNXYhu.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Dd19v3D-.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DdkO51Og.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Ddv68eIx.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Des-eS-w.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Df6bDoY_.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Dg5xB15N.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DhXJpUyf.js +261 -0
- package/dist/control-ui/_app/immutable/chunks/DkFqJrB1.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DkwncUOv.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DlgMBTXO.js +145 -0
- package/dist/control-ui/_app/immutable/chunks/DnULxvSX.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Dntbqd40.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Dp6rzy9s.js +165 -0
- package/dist/control-ui/_app/immutable/chunks/DpBBTLWw.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Dpen1YoG.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DqQDbK_p.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DqwNpetd.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DsOJ9woJ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Dspwwk_N.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DsqENSWP.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Dv7Oe6Be.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Dx-B1_4e.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DxNHbxmM.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DxSwrfjg.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/DyxjwDmM.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/E3gJ1_iC.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/FLe1BQLx.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Gi6I4Gst.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/GsRaNv29.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/IF9eRakj.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/IZSoudUT.js +112 -0
- package/dist/control-ui/_app/immutable/chunks/IeuSbFQv.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/JSbxStMO.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/KBP0Pl-D.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/L9t79GZl.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/LV_KoVeT.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/MzD3tlZU.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/P80f7IUj.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/PNoU9iVn.js +60 -0
- package/dist/control-ui/_app/immutable/chunks/Pmp26Uib.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/QIJgUcNo.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/UuW2ZfGw.js +139 -0
- package/dist/control-ui/_app/immutable/chunks/VCDPK7BO.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/VOosw3JB.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/YqXBG_HV.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/Yzrsuije.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/_ykCGR6B.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/bCR0ucgS.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/bN70gL4F.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/brMvHLvt.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/dwOrl1Do.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/ecD8_m48.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/fKv21gyL.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/fbvUeNLU.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/fuZLfV_i.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/g9-lgVsj.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/gcz8RCvz.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/gowA3Z9N.js +24 -0
- package/dist/control-ui/_app/immutable/chunks/hJgmCMqR.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/hegEt444.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/j5wpLmOt.js +122 -0
- package/dist/control-ui/_app/immutable/chunks/k_qm7-4y.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/lXgVvXCa.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/lwt7gw4R.js +61 -0
- package/dist/control-ui/_app/immutable/chunks/m17aaUwq.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/mWjccvbQ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/mjskCLCv.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/n2N0HUVH.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/nnazh41B.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/pbkj8eYC.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/ppjADO0n.js +89 -0
- package/dist/control-ui/_app/immutable/chunks/qR_TM3YX.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/qdsjHGoJ.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/r2Nt9SxP.js +64 -0
- package/dist/control-ui/_app/immutable/chunks/rGO070M0.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/s1JCCdcW.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/sDksUvMU.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/sya67AFr.js +160 -0
- package/dist/control-ui/_app/immutable/chunks/u5AG7uiY.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/uYugtg8r.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/vGWfd6FD.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/wDzz0qaB.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/wegGCVaW.js +7 -0
- package/dist/control-ui/_app/immutable/entry/app.CBzq0q_Q.js +2 -0
- package/dist/control-ui/_app/immutable/entry/start.BGTp9ME3.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/0.BYoBrrw5.js +33 -0
- package/dist/control-ui/_app/immutable/nodes/1.DFmzErAV.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/10.DCWCeB7T.js +4 -0
- package/dist/control-ui/_app/immutable/nodes/11.DhEjys02.js +10 -0
- package/dist/control-ui/_app/immutable/nodes/12.DSYRsOVI.js +10 -0
- package/dist/control-ui/_app/immutable/nodes/13.n4qWMKUy.js +15 -0
- package/dist/control-ui/_app/immutable/nodes/14.BXh21cYH.js +10 -0
- package/dist/control-ui/_app/immutable/nodes/15.oqIQuwHQ.js +30 -0
- package/dist/control-ui/_app/immutable/nodes/16.DBHG2mB-.js +27 -0
- package/dist/control-ui/_app/immutable/nodes/17.CyrSC_X9.js +6 -0
- package/dist/control-ui/_app/immutable/nodes/18.DH-lajti.js +10 -0
- package/dist/control-ui/_app/immutable/nodes/19.Bf01kDE6.js +14 -0
- package/dist/control-ui/_app/immutable/nodes/2.-1WNqW3J.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/3.DkKyJn61.js +13 -0
- package/dist/control-ui/_app/immutable/nodes/4.B2rWu0jt.js +20 -0
- package/dist/control-ui/_app/immutable/nodes/5.DFem5Aji.js +4 -0
- package/dist/control-ui/_app/immutable/nodes/6.7jHvlHW1.js +16 -0
- package/dist/control-ui/_app/immutable/nodes/7.DrqcqVUQ.js +22 -0
- package/dist/control-ui/_app/immutable/nodes/8.Cs1y6ZIY.js +49 -0
- package/dist/control-ui/_app/immutable/nodes/9.m08xA4oj.js +17 -0
- package/dist/control-ui/_app/version.json +1 -0
- package/dist/control-ui/config.json +10 -0
- package/dist/control-ui/index.html +48 -0
- package/dist/control-ui/logo.png +0 -0
- package/dist/control-ui/manifest.json +23 -0
- package/dist/control-ui/sw.js +14 -0
- package/dist/{deliver-Brnl4HfK.js → deliver-6ybd_3jT.js} +1 -1
- package/dist/{deliver-Cj9AtdCD.js → deliver-Co6ymerY.js} +1 -1
- package/dist/export-html/template.css +1060 -0
- package/dist/export-html/template.html +88 -0
- package/dist/export-html/template.js +1820 -0
- package/dist/export-html/vendor/highlight.min.js +1213 -0
- package/dist/export-html/vendor/marked.min.js +6 -0
- package/dist/extensionAPI.js +6 -6
- package/dist/{image-4JNpzCjn.js → image-BccL3ngs.js} +1 -1
- package/dist/{image-BWAaAO2H.js → image-Dc_S6y5S.js} +1 -1
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{pi-embedded-CwfWXMa_.js → pi-embedded-DReNXc-c.js} +16 -16
- package/dist/{pi-embedded-B1PnhcFd.js → pi-embedded-DXREP4d-.js} +16 -16
- package/dist/{pi-embedded-helpers-6DRwyFRK.js → pi-embedded-helpers-C3BrKpfc.js} +4 -4
- package/dist/{pi-embedded-helpers-OUBsvbo7.js → pi-embedded-helpers-Dh6fWzG0.js} +4 -4
- package/dist/plugin-sdk/account-id.d.ts +1 -0
- package/dist/plugin-sdk/agents/agent-paths.d.ts +2 -0
- package/dist/plugin-sdk/agents/agent-scope.d.ts +43 -0
- package/dist/plugin-sdk/agents/announce-idempotency.d.ts +11 -0
- package/dist/plugin-sdk/agents/anthropic-payload-log.d.ts +16 -0
- package/dist/plugin-sdk/agents/api-key-rotation.d.ts +22 -0
- package/dist/plugin-sdk/agents/apply-patch-update.d.ts +10 -0
- package/dist/plugin-sdk/agents/apply-patch.d.ts +35 -0
- package/dist/plugin-sdk/agents/auth-health.d.ts +39 -0
- package/dist/plugin-sdk/agents/auth-profiles/constants.d.ts +20 -0
- package/dist/plugin-sdk/agents/auth-profiles/display.d.ts +7 -0
- package/dist/plugin-sdk/agents/auth-profiles/doctor.d.ts +8 -0
- package/dist/plugin-sdk/agents/auth-profiles/external-cli-sync.d.ts +7 -0
- package/dist/plugin-sdk/agents/auth-profiles/oauth.d.ts +14 -0
- package/dist/plugin-sdk/agents/auth-profiles/order.d.ts +8 -0
- package/dist/plugin-sdk/agents/auth-profiles/paths.d.ts +4 -0
- package/dist/plugin-sdk/agents/auth-profiles/profiles.d.ts +24 -0
- package/dist/plugin-sdk/agents/auth-profiles/repair.d.ts +14 -0
- package/dist/plugin-sdk/agents/auth-profiles/session-override.d.ts +18 -0
- package/dist/plugin-sdk/agents/auth-profiles/store.d.ts +10 -0
- package/dist/plugin-sdk/agents/auth-profiles/types.d.ts +60 -0
- package/dist/plugin-sdk/agents/auth-profiles/usage.d.ts +73 -0
- package/dist/plugin-sdk/agents/auth-profiles.d.ts +11 -0
- package/dist/plugin-sdk/agents/bash-process-registry.d.ts +70 -0
- package/dist/plugin-sdk/agents/bash-tools.d.ts +4 -0
- package/dist/plugin-sdk/agents/bash-tools.exec-approval-request.d.ts +13 -0
- package/dist/plugin-sdk/agents/bash-tools.exec-host-gateway.d.ts +28 -0
- package/dist/plugin-sdk/agents/bash-tools.exec-host-node.d.ts +22 -0
- package/dist/plugin-sdk/agents/bash-tools.exec-runtime.d.ts +73 -0
- package/dist/plugin-sdk/agents/bash-tools.exec-types.d.ts +51 -0
- package/dist/plugin-sdk/agents/bash-tools.exec.d.ts +6 -0
- package/dist/plugin-sdk/agents/bash-tools.process.d.ts +7 -0
- package/dist/plugin-sdk/agents/bash-tools.shared.d.ts +43 -0
- package/dist/plugin-sdk/agents/bedrock-discovery.d.ts +9 -0
- package/dist/plugin-sdk/agents/bootstrap-files.d.ts +25 -0
- package/dist/plugin-sdk/agents/bootstrap-hooks.d.ts +10 -0
- package/dist/plugin-sdk/agents/cache-trace.d.ts +49 -0
- package/dist/plugin-sdk/agents/channel-tools.d.ts +27 -0
- package/dist/plugin-sdk/agents/chutes-oauth.d.ts +46 -0
- package/dist/plugin-sdk/agents/cli-backends.d.ts +8 -0
- package/dist/plugin-sdk/agents/cli-credentials.d.ts +83 -0
- package/dist/plugin-sdk/agents/cli-runner/helpers.d.ts +70 -0
- package/dist/plugin-sdk/agents/cli-runner/reliability.d.ts +11 -0
- package/dist/plugin-sdk/agents/cli-runner.d.ts +41 -0
- package/dist/plugin-sdk/agents/cli-session.d.ts +3 -0
- package/dist/plugin-sdk/agents/cli-watchdog-defaults.d.ts +11 -0
- package/dist/plugin-sdk/agents/cloudflare-ai-gateway.d.ts +22 -0
- package/dist/plugin-sdk/agents/command-poll-backoff.d.ts +28 -0
- package/dist/plugin-sdk/agents/compaction.d.ts +61 -0
- package/dist/plugin-sdk/agents/content-blocks.d.ts +1 -0
- package/dist/plugin-sdk/agents/context-window-guard.d.ts +24 -0
- package/dist/plugin-sdk/agents/context.d.ts +24 -0
- package/dist/plugin-sdk/agents/current-time.d.ts +17 -0
- package/dist/plugin-sdk/agents/date-time.d.ts +13 -0
- package/dist/plugin-sdk/agents/defaults.d.ts +3 -0
- package/dist/plugin-sdk/agents/docs-path.d.ts +6 -0
- package/dist/plugin-sdk/agents/failover-error.d.ts +33 -0
- package/dist/plugin-sdk/agents/glob-pattern.d.ts +18 -0
- package/dist/plugin-sdk/agents/huggingface-models.d.ts +17 -0
- package/dist/plugin-sdk/agents/identity-avatar.d.ts +15 -0
- package/dist/plugin-sdk/agents/identity-file.d.ts +12 -0
- package/dist/plugin-sdk/agents/identity.d.ts +28 -0
- package/dist/plugin-sdk/agents/image-sanitization.d.ts +8 -0
- package/dist/plugin-sdk/agents/lanes.d.ts +3 -0
- package/dist/plugin-sdk/agents/live-auth-keys.d.ts +6 -0
- package/dist/plugin-sdk/agents/memory-search.d.ts +74 -0
- package/dist/plugin-sdk/agents/minimax-vlm.d.ts +7 -0
- package/dist/plugin-sdk/agents/model-alias-lines.d.ts +2 -0
- package/dist/plugin-sdk/agents/model-auth-label.d.ts +8 -0
- package/dist/plugin-sdk/agents/model-auth.d.ts +36 -0
- package/dist/plugin-sdk/agents/model-catalog.d.ts +25 -0
- package/dist/plugin-sdk/agents/model-compat.d.ts +2 -0
- package/dist/plugin-sdk/agents/model-fallback.d.ts +48 -0
- package/dist/plugin-sdk/agents/model-forward-compat.d.ts +10 -0
- package/dist/plugin-sdk/agents/model-selection.d.ts +106 -0
- package/dist/plugin-sdk/agents/models-config.d.ts +5 -0
- package/dist/plugin-sdk/agents/models-config.providers.d.ts +37 -0
- package/dist/plugin-sdk/agents/ollama-stream.d.ts +46 -0
- package/dist/plugin-sdk/agents/openclaw-tools.d.ts +50 -0
- package/dist/plugin-sdk/agents/pi-auth-json.d.ts +14 -0
- package/dist/plugin-sdk/agents/pi-embedded-block-chunker.d.ts +19 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/bootstrap.d.ts +31 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/errors.d.ts +55 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/google.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/images.d.ts +21 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/messaging-dedupe.d.ts +10 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/openai.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/thinking.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/turns.d.ts +20 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers/types.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-helpers.d.ts +11 -0
- package/dist/plugin-sdk/agents/pi-embedded-messaging.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-payloads.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/abort.d.ts +6 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/cache-ttl.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/compact.d.ts +55 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/compaction-safety-timeout.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/extensions.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/extra-params.d.ts +22 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/google.d.ts +42 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/history.d.ts +18 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/lanes.d.ts +3 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/logger.d.ts +1 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/model.d.ts +22 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/attempt.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/compaction-timeout.d.ts +20 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/images.d.ts +89 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/params.d.ts +115 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/payloads.d.ts +40 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/types.d.ts +54 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run.d.ts +3 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/runs.d.ts +15 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/sandbox-info.d.ts +4 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/session-manager-cache.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/session-manager-init.d.ts +17 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/system-prompt.d.ts +51 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/thinking.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/tool-result-context-guard.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/tool-result-truncation.d.ts +65 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/tool-split.d.ts +11 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/types.d.ts +89 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/utils.d.ts +5 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/wait-for-idle-before-flush.d.ts +13 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner.d.ts +12 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.d.ts +33 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.compaction.d.ts +6 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.lifecycle.d.ts +4 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.messages.d.ts +16 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.tools.d.ts +18 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.handlers.types.d.ts +149 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.raw-stream.d.ts +1 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.tools.d.ts +20 -0
- package/dist/plugin-sdk/agents/pi-embedded-subscribe.types.d.ts +45 -0
- package/dist/plugin-sdk/agents/pi-embedded-utils.d.ts +40 -0
- package/dist/plugin-sdk/agents/pi-embedded.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-extensions/compaction-safeguard-runtime.d.ts +6 -0
- package/dist/plugin-sdk/agents/pi-extensions/compaction-safeguard.d.ts +22 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/extension.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/pruner.d.ts +10 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/runtime.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/settings.d.ts +44 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning/tools.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-extensions/context-pruning.d.ts +10 -0
- package/dist/plugin-sdk/agents/pi-extensions/session-manager-runtime-registry.d.ts +4 -0
- package/dist/plugin-sdk/agents/pi-model-discovery.d.ts +4 -0
- package/dist/plugin-sdk/agents/pi-settings.d.ts +31 -0
- package/dist/plugin-sdk/agents/pi-tool-definition-adapter.d.ts +8 -0
- package/dist/plugin-sdk/agents/pi-tools.abort.d.ts +2 -0
- package/dist/plugin-sdk/agents/pi-tools.before-tool-call.d.ts +31 -0
- package/dist/plugin-sdk/agents/pi-tools.d.ts +76 -0
- package/dist/plugin-sdk/agents/pi-tools.policy.d.ts +37 -0
- package/dist/plugin-sdk/agents/pi-tools.read.d.ts +51 -0
- package/dist/plugin-sdk/agents/pi-tools.schema.d.ts +9 -0
- package/dist/plugin-sdk/agents/pi-tools.types.d.ts +2 -0
- package/dist/plugin-sdk/agents/pty-dsr.d.ts +5 -0
- package/dist/plugin-sdk/agents/pty-keys.d.ts +13 -0
- package/dist/plugin-sdk/agents/queued-file-writer.d.ts +5 -0
- package/dist/plugin-sdk/agents/sandbox/browser-bridges.d.ts +7 -0
- package/dist/plugin-sdk/agents/sandbox/browser.d.ts +12 -0
- package/dist/plugin-sdk/agents/sandbox/config-hash.d.ts +17 -0
- package/dist/plugin-sdk/agents/sandbox/config.d.ts +26 -0
- package/dist/plugin-sdk/agents/sandbox/constants.d.ts +19 -0
- package/dist/plugin-sdk/agents/sandbox/context.d.ts +12 -0
- package/dist/plugin-sdk/agents/sandbox/docker.d.ts +40 -0
- package/dist/plugin-sdk/agents/sandbox/fs-bridge.d.ts +56 -0
- package/dist/plugin-sdk/agents/sandbox/fs-paths.d.ts +28 -0
- package/dist/plugin-sdk/agents/sandbox/hash.d.ts +1 -0
- package/dist/plugin-sdk/agents/sandbox/manage.d.ts +13 -0
- package/dist/plugin-sdk/agents/sandbox/prune.d.ts +3 -0
- package/dist/plugin-sdk/agents/sandbox/registry.d.ts +31 -0
- package/dist/plugin-sdk/agents/sandbox/runtime-status.d.ts +18 -0
- package/dist/plugin-sdk/agents/sandbox/sanitize-env-vars.d.ts +14 -0
- package/dist/plugin-sdk/agents/sandbox/shared.d.ts +4 -0
- package/dist/plugin-sdk/agents/sandbox/tool-policy.d.ts +4 -0
- package/dist/plugin-sdk/agents/sandbox/types.d.ts +76 -0
- package/dist/plugin-sdk/agents/sandbox/types.docker.d.ts +25 -0
- package/dist/plugin-sdk/agents/sandbox/validate-sandbox-security.d.ts +49 -0
- package/dist/plugin-sdk/agents/sandbox/workspace.d.ts +1 -0
- package/dist/plugin-sdk/agents/sandbox-paths.d.ts +23 -0
- package/dist/plugin-sdk/agents/sandbox-tool-policy.d.ts +8 -0
- package/dist/plugin-sdk/agents/sandbox.d.ts +8 -0
- package/dist/plugin-sdk/agents/sanitize-for-prompt.d.ts +16 -0
- package/dist/plugin-sdk/agents/schema/clean-for-gemini.d.ts +2 -0
- package/dist/plugin-sdk/agents/schema/typebox.d.ts +14 -0
- package/dist/plugin-sdk/agents/session-file-repair.d.ts +11 -0
- package/dist/plugin-sdk/agents/session-slug.d.ts +1 -0
- package/dist/plugin-sdk/agents/session-tool-result-guard-wrapper.d.ts +16 -0
- package/dist/plugin-sdk/agents/session-tool-result-guard.d.ts +32 -0
- package/dist/plugin-sdk/agents/session-transcript-repair.d.ts +27 -0
- package/dist/plugin-sdk/agents/session-write-lock.d.ts +53 -0
- package/dist/plugin-sdk/agents/shell-utils.d.ts +8 -0
- package/dist/plugin-sdk/agents/skills/bundled-dir.d.ts +7 -0
- package/dist/plugin-sdk/agents/skills/config.d.ts +13 -0
- package/dist/plugin-sdk/agents/skills/env-overrides.d.ts +10 -0
- package/dist/plugin-sdk/agents/skills/filter.d.ts +3 -0
- package/dist/plugin-sdk/agents/skills/frontmatter.d.ts +6 -0
- package/dist/plugin-sdk/agents/skills/plugin-skills.d.ts +5 -0
- package/dist/plugin-sdk/agents/skills/refresh.d.ts +19 -0
- package/dist/plugin-sdk/agents/skills/serialize.d.ts +1 -0
- package/dist/plugin-sdk/agents/skills/types.d.ts +83 -0
- package/dist/plugin-sdk/agents/skills/workspace.d.ts +49 -0
- package/dist/plugin-sdk/agents/skills.d.ts +7 -0
- package/dist/plugin-sdk/agents/stable-stringify.d.ts +1 -0
- package/dist/plugin-sdk/agents/subagent-announce-queue.d.ts +24 -0
- package/dist/plugin-sdk/agents/subagent-announce.d.ts +35 -0
- package/dist/plugin-sdk/agents/subagent-depth.d.ts +11 -0
- package/dist/plugin-sdk/agents/subagent-registry.d.ts +68 -0
- package/dist/plugin-sdk/agents/subagent-registry.store.d.ts +5 -0
- package/dist/plugin-sdk/agents/subagent-spawn.d.ts +41 -0
- package/dist/plugin-sdk/agents/synthetic-models.d.ts +160 -0
- package/dist/plugin-sdk/agents/system-prompt-params.d.ts +30 -0
- package/dist/plugin-sdk/agents/system-prompt-report.d.ts +21 -0
- package/dist/plugin-sdk/agents/system-prompt.d.ts +78 -0
- package/dist/plugin-sdk/agents/timeout.d.ts +8 -0
- package/dist/plugin-sdk/agents/together-models.d.ts +4 -0
- package/dist/plugin-sdk/agents/tool-call-id.d.ts +27 -0
- package/dist/plugin-sdk/agents/tool-display-common.d.ts +36 -0
- package/dist/plugin-sdk/agents/tool-display.d.ts +15 -0
- package/dist/plugin-sdk/agents/tool-images.d.ts +11 -0
- package/dist/plugin-sdk/agents/tool-loop-detection.d.ts +55 -0
- package/dist/plugin-sdk/agents/tool-mutation.d.ts +14 -0
- package/dist/plugin-sdk/agents/tool-policy-pipeline.d.ts +27 -0
- package/dist/plugin-sdk/agents/tool-policy.d.ts +42 -0
- package/dist/plugin-sdk/agents/tool-summaries.d.ts +2 -0
- package/dist/plugin-sdk/agents/tools/agent-step.d.ts +15 -0
- package/dist/plugin-sdk/agents/tools/agents-list-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/browser-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/browser-tool.schema.d.ts +50 -0
- package/dist/plugin-sdk/agents/tools/canvas-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/common.d.ts +76 -0
- package/dist/plugin-sdk/agents/tools/cron-tool.d.ts +11 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-guild.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-messaging.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-moderation-shared.d.ts +13 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-moderation.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions-presence.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/discord-actions.d.ts +3 -0
- package/dist/plugin-sdk/agents/tools/gateway-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/gateway.d.ts +15 -0
- package/dist/plugin-sdk/agents/tools/image-tool.d.ts +35 -0
- package/dist/plugin-sdk/agents/tools/image-tool.helpers.d.ts +21 -0
- package/dist/plugin-sdk/agents/tools/memory-tool.d.ts +10 -0
- package/dist/plugin-sdk/agents/tools/message-tool.d.ts +19 -0
- package/dist/plugin-sdk/agents/tools/nodes-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/nodes-utils.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/session-status-tool.d.ts +6 -0
- package/dist/plugin-sdk/agents/tools/sessions-access.d.ts +42 -0
- package/dist/plugin-sdk/agents/tools/sessions-announce-target.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/sessions-helpers.d.ts +52 -0
- package/dist/plugin-sdk/agents/tools/sessions-history-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/sessions-list-tool.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/sessions-resolution.d.ts +46 -0
- package/dist/plugin-sdk/agents/tools/sessions-send-helpers.d.ts +34 -0
- package/dist/plugin-sdk/agents/tools/sessions-send-tool.a2a.d.ts +12 -0
- package/dist/plugin-sdk/agents/tools/sessions-send-tool.d.ts +7 -0
- package/dist/plugin-sdk/agents/tools/sessions-spawn-tool.d.ts +15 -0
- package/dist/plugin-sdk/agents/tools/slack-actions.d.ts +15 -0
- package/dist/plugin-sdk/agents/tools/subagents-tool.d.ts +4 -0
- package/dist/plugin-sdk/agents/tools/telegram-actions.d.ts +5 -0
- package/dist/plugin-sdk/agents/tools/tts-tool.d.ts +7 -0
- package/dist/plugin-sdk/agents/tools/web-fetch-utils.d.ts +18 -0
- package/dist/plugin-sdk/agents/tools/web-fetch.d.ts +25 -0
- package/dist/plugin-sdk/agents/tools/web-search.d.ts +78 -0
- package/dist/plugin-sdk/agents/tools/web-shared.d.ts +24 -0
- package/dist/plugin-sdk/agents/tools/web-tools.d.ts +2 -0
- package/dist/plugin-sdk/agents/tools/whatsapp-actions.d.ts +3 -0
- package/dist/plugin-sdk/agents/transcript-policy.d.ts +24 -0
- package/dist/plugin-sdk/agents/usage.d.ts +45 -0
- package/dist/plugin-sdk/agents/venice-models.d.ts +238 -0
- package/dist/plugin-sdk/agents/workspace-dir.d.ts +2 -0
- package/dist/plugin-sdk/agents/workspace-dirs.d.ts +2 -0
- package/dist/plugin-sdk/agents/workspace-run.d.ts +18 -0
- package/dist/plugin-sdk/agents/workspace-templates.d.ts +6 -0
- package/dist/plugin-sdk/agents/workspace.d.ts +35 -0
- package/dist/plugin-sdk/auto-reply/chunk.d.ts +45 -0
- package/dist/plugin-sdk/auto-reply/command-auth.d.ts +17 -0
- package/dist/plugin-sdk/auto-reply/command-detection.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/commands-args.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/commands-registry.d.ts +54 -0
- package/dist/plugin-sdk/auto-reply/commands-registry.data.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/commands-registry.types.d.ts +66 -0
- package/dist/plugin-sdk/auto-reply/dispatch.d.ts +32 -0
- package/dist/plugin-sdk/auto-reply/envelope.d.ts +58 -0
- package/dist/plugin-sdk/auto-reply/fallback-state.d.ts +55 -0
- package/dist/plugin-sdk/auto-reply/group-activation.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/heartbeat-reply-payload.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/heartbeat.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/inbound-debounce.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/media-note.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/model-runtime.d.ts +17 -0
- package/dist/plugin-sdk/auto-reply/model.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/abort.d.ts +32 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-execution.d.ts +59 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-helpers.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-memory.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-payloads.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner-utils.d.ts +146 -0
- package/dist/plugin-sdk/auto-reply/reply/agent-runner.d.ts +38 -0
- package/dist/plugin-sdk/auto-reply/reply/bash-command.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/block-reply-coalescer.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/block-reply-pipeline.d.ts +31 -0
- package/dist/plugin-sdk/auto-reply/reply/block-streaming.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/reply/body.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-allowlist.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-approve.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-bash.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-compact.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-config.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-context-report.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-context.d.ts +12 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-core.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-export-session.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-info.d.ts +11 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-models.d.ts +33 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-plugin.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-session.d.ts +7 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-setunset-standard.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-setunset.d.ts +34 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-slash-parse.d.ts +24 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-status.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-subagents.d.ts +11 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-system-prompt.d.ts +14 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-tts.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/commands-types.d.ts +60 -0
- package/dist/plugin-sdk/auto-reply/reply/commands.d.ts +4 -0
- package/dist/plugin-sdk/auto-reply/reply/config-commands.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/config-value.d.ts +4 -0
- package/dist/plugin-sdk/auto-reply/reply/debug-commands.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.auth.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.fast-lane.d.ts +7 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.impl.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.levels.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.model-picker.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.model.d.ts +44 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.params.d.ts +51 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.parse.d.ts +62 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.persist.d.ts +37 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.queue-validation.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-handling.shared.d.ts +29 -0
- package/dist/plugin-sdk/auto-reply/reply/directive-parsing.d.ts +5 -0
- package/dist/plugin-sdk/auto-reply/reply/directives.d.ts +38 -0
- package/dist/plugin-sdk/auto-reply/reply/dispatch-from-config.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/dispatcher-registry.d.ts +24 -0
- package/dist/plugin-sdk/auto-reply/reply/elevated-unavailable.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/exec/directive.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/exec.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply/followup-runner.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives-apply.d.ts +64 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives-utils.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-directives.d.ts +92 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-inline-actions.d.ts +59 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply-run.d.ts +69 -0
- package/dist/plugin-sdk/auto-reply/reply/get-reply.d.ts +4 -0
- package/dist/plugin-sdk/auto-reply/reply/groups.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/history.d.ts +72 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-context.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-dedupe.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-meta.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/inbound-text.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply/line-directives.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/reply/memory-flush.d.ts +28 -0
- package/dist/plugin-sdk/auto-reply/reply/mentions.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/model-selection.d.ts +64 -0
- package/dist/plugin-sdk/auto-reply/reply/normalize-reply.d.ts +13 -0
- package/dist/plugin-sdk/auto-reply/reply/post-compaction-audit.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/post-compaction-context.d.ts +12 -0
- package/dist/plugin-sdk/auto-reply/reply/provider-dispatcher.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/cleanup.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/directive.d.ts +15 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/drain.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/enqueue.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/normalize.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/settings.d.ts +2 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/state.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/reply/queue/types.d.ts +85 -0
- package/dist/plugin-sdk/auto-reply/reply/queue.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-delivery.d.ts +27 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-directives.d.ts +14 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-dispatcher.d.ts +52 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-elevated.d.ts +16 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-inline.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-payloads.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-reference.d.ts +20 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-tags.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/reply/reply-threading.d.ts +9 -0
- package/dist/plugin-sdk/auto-reply/reply/response-prefix-template.d.ts +51 -0
- package/dist/plugin-sdk/auto-reply/reply/route-reply.d.ts +56 -0
- package/dist/plugin-sdk/auto-reply/reply/session-reset-model.d.ts +24 -0
- package/dist/plugin-sdk/auto-reply/reply/session-reset-prompt.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply/session-run-accounting.d.ts +11 -0
- package/dist/plugin-sdk/auto-reply/reply/session-updates.d.ts +34 -0
- package/dist/plugin-sdk/auto-reply/reply/session-usage.d.ts +21 -0
- package/dist/plugin-sdk/auto-reply/reply/session.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/stage-sandbox-media.d.ts +9 -0
- package/dist/plugin-sdk/auto-reply/reply/streaming-directives.d.ts +10 -0
- package/dist/plugin-sdk/auto-reply/reply/strip-inbound-meta.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/subagents-utils.d.ts +26 -0
- package/dist/plugin-sdk/auto-reply/reply/typing-mode.d.ts +27 -0
- package/dist/plugin-sdk/auto-reply/reply/typing.d.ts +18 -0
- package/dist/plugin-sdk/auto-reply/reply/untrusted-context.d.ts +1 -0
- package/dist/plugin-sdk/auto-reply/reply.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/send-policy.d.ts +6 -0
- package/dist/plugin-sdk/auto-reply/skill-commands.d.ts +19 -0
- package/dist/plugin-sdk/auto-reply/status.d.ts +60 -0
- package/dist/plugin-sdk/auto-reply/templating.d.ts +152 -0
- package/dist/plugin-sdk/auto-reply/thinking.d.ts +22 -0
- package/dist/plugin-sdk/auto-reply/tokens.d.ts +3 -0
- package/dist/plugin-sdk/auto-reply/tool-meta.d.ts +8 -0
- package/dist/plugin-sdk/auto-reply/types.d.ts +72 -0
- package/dist/plugin-sdk/browser/bridge-auth-registry.d.ts +8 -0
- package/dist/plugin-sdk/browser/bridge-server.d.ts +18 -0
- package/dist/plugin-sdk/browser/cdp.d.ts +126 -0
- package/dist/plugin-sdk/browser/cdp.helpers.d.ts +13 -0
- package/dist/plugin-sdk/browser/chrome.d.ts +20 -0
- package/dist/plugin-sdk/browser/chrome.executables.d.ts +9 -0
- package/dist/plugin-sdk/browser/chrome.profile-decoration.d.ts +10 -0
- package/dist/plugin-sdk/browser/client-actions-core.d.ts +142 -0
- package/dist/plugin-sdk/browser/client-actions-observe.d.ts +68 -0
- package/dist/plugin-sdk/browser/client-actions-state.d.ts +90 -0
- package/dist/plugin-sdk/browser/client-actions-types.d.ts +18 -0
- package/dist/plugin-sdk/browser/client-actions-url.d.ts +2 -0
- package/dist/plugin-sdk/browser/client-actions.d.ts +4 -0
- package/dist/plugin-sdk/browser/client-fetch.d.ts +20 -0
- package/dist/plugin-sdk/browser/client.d.ts +147 -0
- package/dist/plugin-sdk/browser/config.d.ts +42 -0
- package/dist/plugin-sdk/browser/constants.d.ts +8 -0
- package/dist/plugin-sdk/browser/control-auth.d.ts +13 -0
- package/dist/plugin-sdk/browser/control-service.d.ts +5 -0
- package/dist/plugin-sdk/browser/csrf.d.ts +8 -0
- package/dist/plugin-sdk/browser/extension-relay.d.ts +15 -0
- package/dist/plugin-sdk/browser/http-auth.d.ts +5 -0
- package/dist/plugin-sdk/browser/navigation-guard.d.ts +12 -0
- package/dist/plugin-sdk/browser/paths.d.ts +38 -0
- package/dist/plugin-sdk/browser/profiles-service.d.ts +25 -0
- package/dist/plugin-sdk/browser/profiles.d.ts +30 -0
- package/dist/plugin-sdk/browser/proxy-files.d.ts +7 -0
- package/dist/plugin-sdk/browser/pw-ai-module.d.ts +6 -0
- package/dist/plugin-sdk/browser/pw-ai-state.d.ts +2 -0
- package/dist/plugin-sdk/browser/pw-ai.d.ts +2 -0
- package/dist/plugin-sdk/browser/pw-role-snapshot.d.ts +35 -0
- package/dist/plugin-sdk/browser/pw-session.d.ts +163 -0
- package/dist/plugin-sdk/browser/pw-tools-core.activity.d.ts +21 -0
- package/dist/plugin-sdk/browser/pw-tools-core.d.ts +8 -0
- package/dist/plugin-sdk/browser/pw-tools-core.downloads.d.ts +34 -0
- package/dist/plugin-sdk/browser/pw-tools-core.interactions.d.ts +114 -0
- package/dist/plugin-sdk/browser/pw-tools-core.responses.d.ts +13 -0
- package/dist/plugin-sdk/browser/pw-tools-core.shared.d.ts +6 -0
- package/dist/plugin-sdk/browser/pw-tools-core.snapshot.d.ts +66 -0
- package/dist/plugin-sdk/browser/pw-tools-core.state.d.ts +46 -0
- package/dist/plugin-sdk/browser/pw-tools-core.storage.d.ts +47 -0
- package/dist/plugin-sdk/browser/pw-tools-core.trace.d.ts +12 -0
- package/dist/plugin-sdk/browser/resolved-config-refresh.d.ts +12 -0
- package/dist/plugin-sdk/browser/routes/agent.act.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.act.shared.d.ts +10 -0
- package/dist/plugin-sdk/browser/routes/agent.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.debug.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.shared.d.ts +37 -0
- package/dist/plugin-sdk/browser/routes/agent.snapshot.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/agent.storage.d.ts +14 -0
- package/dist/plugin-sdk/browser/routes/basic.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/dispatcher.d.ts +16 -0
- package/dist/plugin-sdk/browser/routes/index.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/path-output.d.ts +1 -0
- package/dist/plugin-sdk/browser/routes/tabs.d.ts +3 -0
- package/dist/plugin-sdk/browser/routes/types.d.ts +20 -0
- package/dist/plugin-sdk/browser/routes/utils.d.ts +15 -0
- package/dist/plugin-sdk/browser/screenshot.d.ts +9 -0
- package/dist/plugin-sdk/browser/server-context.d.ts +4 -0
- package/dist/plugin-sdk/browser/server-context.types.d.ts +65 -0
- package/dist/plugin-sdk/browser/server-lifecycle.d.ts +10 -0
- package/dist/plugin-sdk/browser/server-middleware.d.ts +6 -0
- package/dist/plugin-sdk/browser/target-id.d.ts +11 -0
- package/dist/plugin-sdk/browser/trash.d.ts +1 -0
- package/dist/plugin-sdk/channel-web.d.ts +6 -0
- package/dist/plugin-sdk/channels/account-summary.d.ts +17 -0
- package/dist/plugin-sdk/channels/ack-reactions.d.ts +29 -0
- package/dist/plugin-sdk/channels/allow-from.d.ts +10 -0
- package/dist/plugin-sdk/channels/allowlist-match.d.ts +15 -0
- package/dist/plugin-sdk/channels/allowlists/resolve-utils.d.ts +28 -0
- package/dist/plugin-sdk/channels/channel-config.d.ts +39 -0
- package/dist/plugin-sdk/channels/chat-type.d.ts +2 -0
- package/dist/plugin-sdk/channels/command-gating.d.ts +20 -0
- package/dist/plugin-sdk/channels/conversation-label.d.ts +2 -0
- package/dist/plugin-sdk/channels/dock.d.ts +40 -0
- package/dist/plugin-sdk/channels/draft-stream-loop.d.ts +12 -0
- package/dist/plugin-sdk/channels/location.d.ts +21 -0
- package/dist/plugin-sdk/channels/logging.d.ts +20 -0
- package/dist/plugin-sdk/channels/mention-gating.d.ts +27 -0
- package/dist/plugin-sdk/channels/model-overrides.d.ts +18 -0
- package/dist/plugin-sdk/channels/plugins/account-action-gate.d.ts +5 -0
- package/dist/plugin-sdk/channels/plugins/account-helpers.d.ts +6 -0
- package/dist/plugin-sdk/channels/plugins/actions/discord/handle-action.d.ts +3 -0
- package/dist/plugin-sdk/channels/plugins/actions/discord/handle-action.guild-admin.d.ts +9 -0
- package/dist/plugin-sdk/channels/plugins/actions/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/actions/signal.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/actions/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/agent-tools/whatsapp-login.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/allowlist-match.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/bluebubbles-actions.d.ts +48 -0
- package/dist/plugin-sdk/channels/plugins/channel-config.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/config-helpers.d.ts +14 -0
- package/dist/plugin-sdk/channels/plugins/config-schema.d.ts +3 -0
- package/dist/plugin-sdk/channels/plugins/config-writes.d.ts +7 -0
- package/dist/plugin-sdk/channels/plugins/directory-config.d.ts +16 -0
- package/dist/plugin-sdk/channels/plugins/group-mentions.d.ts +28 -0
- package/dist/plugin-sdk/channels/plugins/helpers.d.ts +8 -0
- package/dist/plugin-sdk/channels/plugins/index.d.ts +8 -0
- package/dist/plugin-sdk/channels/plugins/media-limits.d.ts +9 -0
- package/dist/plugin-sdk/channels/plugins/message-action-names.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/message-actions.d.ts +15 -0
- package/dist/plugin-sdk/channels/plugins/normalize/discord.d.ts +14 -0
- package/dist/plugin-sdk/channels/plugins/normalize/imessage.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/signal.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/slack.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/normalize/whatsapp.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/channel-access.d.ts +31 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/helpers.d.ts +26 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/imessage.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/signal.d.ts +3 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/slack.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding/whatsapp.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/onboarding-types.d.ts +77 -0
- package/dist/plugin-sdk/channels/plugins/outbound/load.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/pairing-message.d.ts +1 -0
- package/dist/plugin-sdk/channels/plugins/pairing.d.ts +16 -0
- package/dist/plugin-sdk/channels/plugins/setup-helpers.d.ts +13 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/bluebubbles.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/discord.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/shared.d.ts +16 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/telegram.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/status-issues/whatsapp.d.ts +2 -0
- package/dist/plugin-sdk/channels/plugins/types.adapters.d.ts +302 -0
- package/dist/plugin-sdk/channels/plugins/types.core.d.ts +346 -0
- package/dist/plugin-sdk/channels/plugins/types.d.ts +6 -0
- package/dist/plugin-sdk/channels/plugins/types.plugin.d.ts +53 -0
- package/dist/plugin-sdk/channels/plugins/whatsapp-heartbeat.d.ts +11 -0
- package/dist/plugin-sdk/channels/registry.d.ts +16 -0
- package/dist/plugin-sdk/channels/reply-prefix.d.ts +24 -0
- package/dist/plugin-sdk/channels/sender-label.d.ts +9 -0
- package/dist/plugin-sdk/channels/session.d.ts +18 -0
- package/dist/plugin-sdk/channels/status-reactions.d.ts +62 -0
- package/dist/plugin-sdk/channels/targets.d.ts +42 -0
- package/dist/plugin-sdk/channels/telegram/api.d.ts +5 -0
- package/dist/plugin-sdk/channels/typing.d.ts +12 -0
- package/dist/plugin-sdk/channels/web/index.d.ts +1 -0
- package/dist/plugin-sdk/cli/cli-name.d.ts +3 -0
- package/dist/plugin-sdk/cli/cli-utils.d.ts +19 -0
- package/dist/plugin-sdk/cli/command-format.d.ts +1 -0
- package/dist/plugin-sdk/cli/deps.d.ts +18 -0
- package/dist/plugin-sdk/cli/help-format.d.ts +5 -0
- package/dist/plugin-sdk/cli/memory-cli.d.ts +12 -0
- package/dist/plugin-sdk/cli/nodes-camera.d.ts +38 -0
- package/dist/plugin-sdk/cli/nodes-canvas.d.ts +10 -0
- package/dist/plugin-sdk/cli/nodes-media-utils.d.ts +13 -0
- package/dist/plugin-sdk/cli/nodes-run.d.ts +3 -0
- package/dist/plugin-sdk/cli/nodes-screen.d.ts +18 -0
- package/dist/plugin-sdk/cli/outbound-send-deps.d.ts +10 -0
- package/dist/plugin-sdk/cli/parse-bytes.d.ts +4 -0
- package/dist/plugin-sdk/cli/parse-duration.d.ts +4 -0
- package/dist/plugin-sdk/cli/parse-timeout.d.ts +1 -0
- package/dist/plugin-sdk/cli/profile-utils.d.ts +2 -0
- package/dist/plugin-sdk/cli/progress.d.ts +24 -0
- package/dist/plugin-sdk/cli/prompt.d.ts +1 -0
- package/dist/plugin-sdk/cli/wait.d.ts +1 -0
- package/dist/plugin-sdk/commands/agent/delivery.d.ts +19 -0
- package/dist/plugin-sdk/commands/agent/run-context.d.ts +2 -0
- package/dist/plugin-sdk/commands/agent/session-store.d.ts +17 -0
- package/dist/plugin-sdk/commands/agent/session.d.ts +33 -0
- package/dist/plugin-sdk/commands/agent/types.d.ts +77 -0
- package/dist/plugin-sdk/commands/agent.d.ts +7 -0
- package/dist/plugin-sdk/commands/daemon-runtime.d.ts +8 -0
- package/dist/plugin-sdk/commands/health.d.ts +63 -0
- package/dist/plugin-sdk/commands/oauth-flow.d.ts +21 -0
- package/dist/plugin-sdk/commands/onboard-helpers.d.ts +82 -0
- package/dist/plugin-sdk/commands/onboard-types.d.ts +76 -0
- package/dist/plugin-sdk/commands/signal-install.d.ts +30 -0
- package/dist/plugin-sdk/compat/legacy-names.d.ts +8 -0
- package/dist/plugin-sdk/config/agent-dirs.d.ts +14 -0
- package/dist/plugin-sdk/config/agent-limits.d.ts +5 -0
- package/dist/plugin-sdk/config/backup-rotation.d.ts +5 -0
- package/dist/plugin-sdk/config/cache-utils.d.ts +6 -0
- package/dist/plugin-sdk/config/channel-capabilities.d.ts +6 -0
- package/dist/plugin-sdk/config/commands.d.ts +21 -0
- package/dist/plugin-sdk/config/config-paths.d.ts +10 -0
- package/dist/plugin-sdk/config/config.d.ts +7 -0
- package/dist/plugin-sdk/config/defaults.d.ts +18 -0
- package/dist/plugin-sdk/config/env-preserve.d.ts +10 -0
- package/dist/plugin-sdk/config/env-substitution.d.ts +36 -0
- package/dist/plugin-sdk/config/env-vars.d.ts +3 -0
- package/dist/plugin-sdk/config/group-policy.d.ts +47 -0
- package/dist/plugin-sdk/config/includes.d.ts +32 -0
- package/dist/plugin-sdk/config/io.d.ts +55 -0
- package/dist/plugin-sdk/config/legacy-migrate.d.ts +5 -0
- package/dist/plugin-sdk/config/legacy.d.ts +6 -0
- package/dist/plugin-sdk/config/legacy.migrations.d.ts +1 -0
- package/dist/plugin-sdk/config/legacy.migrations.part-1.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.migrations.part-2.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.migrations.part-3.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.rules.d.ts +2 -0
- package/dist/plugin-sdk/config/legacy.shared.d.ts +19 -0
- package/dist/plugin-sdk/config/markdown-tables.d.ts +7 -0
- package/dist/plugin-sdk/config/merge-config.d.ts +7 -0
- package/dist/plugin-sdk/config/merge-patch.d.ts +5 -0
- package/dist/plugin-sdk/config/normalize-paths.d.ts +8 -0
- package/dist/plugin-sdk/config/paths.d.ts +57 -0
- package/dist/plugin-sdk/config/port-defaults.d.ts +13 -0
- package/dist/plugin-sdk/config/runtime-overrides.d.ts +15 -0
- package/dist/plugin-sdk/config/sessions/delivery-info.d.ts +16 -0
- package/dist/plugin-sdk/config/sessions/group.d.ts +11 -0
- package/dist/plugin-sdk/config/sessions/main-session.d.ts +43 -0
- package/dist/plugin-sdk/config/sessions/metadata.d.ts +16 -0
- package/dist/plugin-sdk/config/sessions/paths.d.ts +21 -0
- package/dist/plugin-sdk/config/sessions/reset.d.ts +43 -0
- package/dist/plugin-sdk/config/sessions/session-key.d.ts +8 -0
- package/dist/plugin-sdk/config/sessions/store.d.ts +103 -0
- package/dist/plugin-sdk/config/sessions/transcript.d.ts +18 -0
- package/dist/plugin-sdk/config/sessions/types.d.ts +169 -0
- package/dist/plugin-sdk/config/sessions.d.ts +10 -0
- package/dist/plugin-sdk/config/talk.d.ts +11 -0
- package/dist/plugin-sdk/config/telegram-custom-commands.d.ts +24 -0
- package/dist/plugin-sdk/config/types.agent-defaults.d.ts +299 -0
- package/dist/plugin-sdk/config/types.agents.d.ts +80 -0
- package/dist/plugin-sdk/config/types.approvals.d.ts +26 -0
- package/dist/plugin-sdk/config/types.auth.d.ts +28 -0
- package/dist/plugin-sdk/config/types.base.d.ts +172 -0
- package/dist/plugin-sdk/config/types.browser.d.ts +63 -0
- package/dist/plugin-sdk/config/types.channels.d.ts +53 -0
- package/dist/plugin-sdk/config/types.cron.d.ts +18 -0
- package/dist/plugin-sdk/config/types.d.ts +30 -0
- package/dist/plugin-sdk/config/types.discord.d.ts +238 -0
- package/dist/plugin-sdk/config/types.gateway.d.ts +294 -0
- package/dist/plugin-sdk/config/types.googlechat.d.ts +102 -0
- package/dist/plugin-sdk/config/types.hooks.d.ts +134 -0
- package/dist/plugin-sdk/config/types.imessage.d.ts +77 -0
- package/dist/plugin-sdk/config/types.irc.d.ts +98 -0
- package/dist/plugin-sdk/config/types.memory.d.ts +45 -0
- package/dist/plugin-sdk/config/types.messages.d.ts +153 -0
- package/dist/plugin-sdk/config/types.models.d.ts +54 -0
- package/dist/plugin-sdk/config/types.msteams.d.ts +103 -0
- package/dist/plugin-sdk/config/types.node-host.d.ts +10 -0
- package/dist/plugin-sdk/config/types.openclaw.d.ts +114 -0
- package/dist/plugin-sdk/config/types.plugins.d.ts +38 -0
- package/dist/plugin-sdk/config/types.queue.d.ts +14 -0
- package/dist/plugin-sdk/config/types.sandbox.d.ts +78 -0
- package/dist/plugin-sdk/config/types.signal.d.ts +88 -0
- package/dist/plugin-sdk/config/types.skills.d.ts +41 -0
- package/dist/plugin-sdk/config/types.slack.d.ts +167 -0
- package/dist/plugin-sdk/config/types.telegram.d.ts +172 -0
- package/dist/plugin-sdk/config/types.tools.d.ts +514 -0
- package/dist/plugin-sdk/config/types.tts.d.ts +78 -0
- package/dist/plugin-sdk/config/types.whatsapp.d.ts +146 -0
- package/dist/plugin-sdk/config/validation.d.ts +37 -0
- package/dist/plugin-sdk/config/version.d.ts +8 -0
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +277 -0
- package/dist/plugin-sdk/config/zod-schema.agent-model.d.ts +5 -0
- package/dist/plugin-sdk/config/zod-schema.agent-runtime.d.ts +916 -0
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +553 -0
- package/dist/plugin-sdk/config/zod-schema.allowdeny.d.ts +13 -0
- package/dist/plugin-sdk/config/zod-schema.approvals.d.ts +15 -0
- package/dist/plugin-sdk/config/zod-schema.channels.d.ts +6 -0
- package/dist/plugin-sdk/config/zod-schema.core.d.ts +699 -0
- package/dist/plugin-sdk/config/zod-schema.d.ts +3746 -0
- package/dist/plugin-sdk/config/zod-schema.hooks.d.ts +85 -0
- package/dist/plugin-sdk/config/zod-schema.installs.d.ts +16 -0
- package/dist/plugin-sdk/config/zod-schema.providers-core.d.ts +3577 -0
- package/dist/plugin-sdk/config/zod-schema.providers-whatsapp.d.ts +234 -0
- package/dist/plugin-sdk/config/zod-schema.providers.d.ts +2128 -0
- package/dist/plugin-sdk/config/zod-schema.sensitive.d.ts +2 -0
- package/dist/plugin-sdk/config/zod-schema.session.d.ts +223 -0
- package/dist/plugin-sdk/cron/delivery.d.ts +9 -0
- package/dist/plugin-sdk/cron/legacy-delivery.d.ts +3 -0
- package/dist/plugin-sdk/cron/normalize.d.ts +9 -0
- package/dist/plugin-sdk/cron/parse.d.ts +1 -0
- package/dist/plugin-sdk/cron/payload-migration.d.ts +3 -0
- package/dist/plugin-sdk/cron/schedule.d.ts +2 -0
- package/dist/plugin-sdk/cron/service/jobs.d.ts +21 -0
- package/dist/plugin-sdk/cron/service/locked.d.ts +2 -0
- package/dist/plugin-sdk/cron/service/normalize.d.ts +18 -0
- package/dist/plugin-sdk/cron/service/ops.d.ts +43 -0
- package/dist/plugin-sdk/cron/service/state.d.ts +121 -0
- package/dist/plugin-sdk/cron/service/store.d.ts +9 -0
- package/dist/plugin-sdk/cron/service/timer.d.ts +25 -0
- package/dist/plugin-sdk/cron/service.d.ts +49 -0
- package/dist/plugin-sdk/cron/session-reaper.d.ts +35 -0
- package/dist/plugin-sdk/cron/stagger.d.ts +8 -0
- package/dist/plugin-sdk/cron/store.d.ts +6 -0
- package/dist/plugin-sdk/cron/types.d.ts +119 -0
- package/dist/plugin-sdk/cron/webhook-url.d.ts +1 -0
- package/dist/plugin-sdk/daemon/constants.d.ts +35 -0
- package/dist/plugin-sdk/discord/accounts.d.ts +21 -0
- package/dist/plugin-sdk/discord/api.d.ts +11 -0
- package/dist/plugin-sdk/discord/audit.d.ts +29 -0
- package/dist/plugin-sdk/discord/chunk.d.ts +20 -0
- package/dist/plugin-sdk/discord/client.d.ts +21 -0
- package/dist/plugin-sdk/discord/components-registry.d.ts +16 -0
- package/dist/plugin-sdk/discord/components.d.ts +196 -0
- package/dist/plugin-sdk/discord/directory-live.d.ts +4 -0
- package/dist/plugin-sdk/discord/draft-chunking.d.ts +6 -0
- package/dist/plugin-sdk/discord/draft-stream.d.ts +21 -0
- package/dist/plugin-sdk/discord/gateway-logging.d.ts +8 -0
- package/dist/plugin-sdk/discord/guilds.d.ts +6 -0
- package/dist/plugin-sdk/discord/monitor/agent-components.d.ts +55 -0
- package/dist/plugin-sdk/discord/monitor/allow-list.d.ts +167 -0
- package/dist/plugin-sdk/discord/monitor/commands.d.ts +2 -0
- package/dist/plugin-sdk/discord/monitor/exec-approvals.d.ts +55 -0
- package/dist/plugin-sdk/discord/monitor/format.d.ts +13 -0
- package/dist/plugin-sdk/discord/monitor/gateway-plugin.d.ts +8 -0
- package/dist/plugin-sdk/discord/monitor/gateway-registry.d.ts +9 -0
- package/dist/plugin-sdk/discord/monitor/listeners.d.ts +43 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.d.ts +5 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.preflight.d.ts +3 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.preflight.types.d.ts +87 -0
- package/dist/plugin-sdk/discord/monitor/message-handler.process.d.ts +2 -0
- package/dist/plugin-sdk/discord/monitor/message-utils.d.ts +39 -0
- package/dist/plugin-sdk/discord/monitor/model-picker-preferences.d.ts +18 -0
- package/dist/plugin-sdk/discord/monitor/model-picker.d.ts +117 -0
- package/dist/plugin-sdk/discord/monitor/native-command.d.ts +23 -0
- package/dist/plugin-sdk/discord/monitor/presence-cache.d.ts +9 -0
- package/dist/plugin-sdk/discord/monitor/presence.d.ts +5 -0
- package/dist/plugin-sdk/discord/monitor/provider.d.ts +23 -0
- package/dist/plugin-sdk/discord/monitor/reply-context.d.ts +17 -0
- package/dist/plugin-sdk/discord/monitor/reply-delivery.d.ts +19 -0
- package/dist/plugin-sdk/discord/monitor/rest-fetch.d.ts +2 -0
- package/dist/plugin-sdk/discord/monitor/sender-identity.d.ts +31 -0
- package/dist/plugin-sdk/discord/monitor/system-events.d.ts +2 -0
- package/dist/plugin-sdk/discord/monitor/threading.d.ts +106 -0
- package/dist/plugin-sdk/discord/monitor/typing.d.ts +5 -0
- package/dist/plugin-sdk/discord/monitor.d.ts +10 -0
- package/dist/plugin-sdk/discord/monitor.gateway.d.ts +12 -0
- package/dist/plugin-sdk/discord/pluralkit.d.ts +26 -0
- package/dist/plugin-sdk/discord/probe.d.ts +28 -0
- package/dist/plugin-sdk/discord/resolve-channels.d.ts +15 -0
- package/dist/plugin-sdk/discord/resolve-users.d.ts +14 -0
- package/dist/plugin-sdk/discord/send.channels.d.ts +17 -0
- package/dist/plugin-sdk/discord/send.components.d.ts +17 -0
- package/dist/plugin-sdk/discord/send.d.ts +10 -0
- package/dist/plugin-sdk/discord/send.emojis-stickers.d.ts +4 -0
- package/dist/plugin-sdk/discord/send.guild.d.ts +24 -0
- package/dist/plugin-sdk/discord/send.messages.d.ts +20 -0
- package/dist/plugin-sdk/discord/send.outbound.d.ts +46 -0
- package/dist/plugin-sdk/discord/send.permissions.d.ts +20 -0
- package/dist/plugin-sdk/discord/send.reactions.d.ts +15 -0
- package/dist/plugin-sdk/discord/send.shared.d.ts +83 -0
- package/dist/plugin-sdk/discord/send.types.d.ts +144 -0
- package/dist/plugin-sdk/discord/targets.d.ts +18 -0
- package/dist/plugin-sdk/discord/token.d.ts +11 -0
- package/dist/plugin-sdk/discord/ui.d.ts +19 -0
- package/dist/plugin-sdk/discord/voice/command.d.ts +15 -0
- package/dist/plugin-sdk/discord/voice/manager.d.ts +49 -0
- package/dist/plugin-sdk/discord/voice-message.d.ts +50 -0
- package/dist/plugin-sdk/gateway/auth-rate-limit.d.ts +59 -0
- package/dist/plugin-sdk/gateway/auth.d.ts +51 -0
- package/dist/plugin-sdk/gateway/call.d.ts +65 -0
- package/dist/plugin-sdk/gateway/chat-abort.d.ts +44 -0
- package/dist/plugin-sdk/gateway/chat-sanitize.d.ts +4 -0
- package/dist/plugin-sdk/gateway/client.d.ts +63 -0
- package/dist/plugin-sdk/gateway/control-ui-shared.d.ts +9 -0
- package/dist/plugin-sdk/gateway/device-auth.d.ts +12 -0
- package/dist/plugin-sdk/gateway/exec-approval-manager.d.ts +44 -0
- package/dist/plugin-sdk/gateway/method-scopes.d.ts +22 -0
- package/dist/plugin-sdk/gateway/net.d.ts +70 -0
- package/dist/plugin-sdk/gateway/node-registry.d.ts +60 -0
- package/dist/plugin-sdk/gateway/protocol/client-info.d.ts +58 -0
- package/dist/plugin-sdk/gateway/protocol/index.d.ts +578 -0
- package/dist/plugin-sdk/gateway/protocol/schema/agent.d.ts +88 -0
- package/dist/plugin-sdk/gateway/protocol/schema/agents-models-skills.d.ts +152 -0
- package/dist/plugin-sdk/gateway/protocol/schema/channels.d.ts +126 -0
- package/dist/plugin-sdk/gateway/protocol/schema/config.d.ts +51 -0
- package/dist/plugin-sdk/gateway/protocol/schema/cron.d.ts +285 -0
- package/dist/plugin-sdk/gateway/protocol/schema/devices.d.ts +41 -0
- package/dist/plugin-sdk/gateway/protocol/schema/error-codes.d.ts +14 -0
- package/dist/plugin-sdk/gateway/protocol/schema/exec-approvals.d.ts +163 -0
- package/dist/plugin-sdk/gateway/protocol/schema/frames.d.ts +169 -0
- package/dist/plugin-sdk/gateway/protocol/schema/logs-chat.d.ts +45 -0
- package/dist/plugin-sdk/gateway/protocol/schema/nodes.d.ts +64 -0
- package/dist/plugin-sdk/gateway/protocol/schema/primitives.d.ts +4 -0
- package/dist/plugin-sdk/gateway/protocol/schema/protocol-schemas.d.ts +3 -0
- package/dist/plugin-sdk/gateway/protocol/schema/push.d.ts +15 -0
- package/dist/plugin-sdk/gateway/protocol/schema/sessions.d.ts +80 -0
- package/dist/plugin-sdk/gateway/protocol/schema/snapshot.d.ts +69 -0
- package/dist/plugin-sdk/gateway/protocol/schema/types.d.ts +128 -0
- package/dist/plugin-sdk/gateway/protocol/schema/wizard.d.ts +86 -0
- package/dist/plugin-sdk/gateway/protocol/schema.d.ts +17 -0
- package/dist/plugin-sdk/gateway/server/ws-types.d.ts +11 -0
- package/dist/plugin-sdk/gateway/server-broadcast.d.ts +17 -0
- package/dist/plugin-sdk/gateway/server-channels.d.ts +26 -0
- package/dist/plugin-sdk/gateway/server-constants.d.ts +10 -0
- package/dist/plugin-sdk/gateway/server-methods/types.d.ts +88 -0
- package/dist/plugin-sdk/gateway/server-shared.d.ts +7 -0
- package/dist/plugin-sdk/gateway/session-utils.d.ts +71 -0
- package/dist/plugin-sdk/gateway/session-utils.fs.d.ts +42 -0
- package/dist/plugin-sdk/gateway/session-utils.types.d.ts +84 -0
- package/dist/plugin-sdk/gateway/startup-auth.d.ts +20 -0
- package/dist/plugin-sdk/gateway/ws-log.d.ts +5 -0
- package/dist/plugin-sdk/gateway/ws-logging.d.ts +4 -0
- package/dist/plugin-sdk/globals.d.ts +11 -0
- package/dist/plugin-sdk/hooks/internal-hooks.d.ts +155 -0
- package/dist/plugin-sdk/hooks/types.d.ts +62 -0
- package/dist/plugin-sdk/imessage/accounts.d.ts +16 -0
- package/dist/plugin-sdk/imessage/client.d.ts +46 -0
- package/dist/plugin-sdk/imessage/constants.d.ts +2 -0
- package/dist/plugin-sdk/imessage/monitor/abort-handler.d.ts +9 -0
- package/dist/plugin-sdk/imessage/monitor/deliver.d.ts +17 -0
- package/dist/plugin-sdk/imessage/monitor/inbound-processing.d.ts +92 -0
- package/dist/plugin-sdk/imessage/monitor/monitor-provider.d.ts +2 -0
- package/dist/plugin-sdk/imessage/monitor/parse-notification.d.ts +2 -0
- package/dist/plugin-sdk/imessage/monitor/runtime.d.ts +4 -0
- package/dist/plugin-sdk/imessage/monitor/types.d.ts +37 -0
- package/dist/plugin-sdk/imessage/monitor.d.ts +2 -0
- package/dist/plugin-sdk/imessage/probe.d.ts +17 -0
- package/dist/plugin-sdk/imessage/send.d.ts +34 -0
- package/dist/plugin-sdk/imessage/target-parsing-helpers.d.ts +45 -0
- package/dist/plugin-sdk/imessage/targets.d.ts +39 -0
- package/dist/plugin-sdk/index.d.ts +1 -0
- package/dist/plugin-sdk/infra/agent-events.d.ts +21 -0
- package/dist/plugin-sdk/infra/archive-path.d.ts +12 -0
- package/dist/plugin-sdk/infra/archive.d.ts +41 -0
- package/dist/plugin-sdk/infra/backoff.d.ts +8 -0
- package/dist/plugin-sdk/infra/binaries.d.ts +3 -0
- package/dist/plugin-sdk/infra/brew.d.ts +8 -0
- package/dist/plugin-sdk/infra/channel-activity.d.ts +18 -0
- package/dist/plugin-sdk/infra/channel-summary.d.ts +6 -0
- package/dist/plugin-sdk/infra/dedupe.d.ts +11 -0
- package/dist/plugin-sdk/infra/device-auth-store.d.ts +18 -0
- package/dist/plugin-sdk/infra/device-identity.d.ts +11 -0
- package/dist/plugin-sdk/infra/device-pairing.d.ts +101 -0
- package/dist/plugin-sdk/infra/diagnostic-events.d.ts +140 -0
- package/dist/plugin-sdk/infra/diagnostic-flags.d.ts +4 -0
- package/dist/plugin-sdk/infra/dotenv.d.ts +3 -0
- package/dist/plugin-sdk/infra/env.d.ts +11 -0
- package/dist/plugin-sdk/infra/errors.d.ts +11 -0
- package/dist/plugin-sdk/infra/exec-approvals-allowlist.d.ts +53 -0
- package/dist/plugin-sdk/infra/exec-approvals-analysis.d.ts +108 -0
- package/dist/plugin-sdk/infra/exec-approvals.d.ts +111 -0
- package/dist/plugin-sdk/infra/exec-safe-bin-policy.d.ts +17 -0
- package/dist/plugin-sdk/infra/exec-safe-bin-trust.d.ts +19 -0
- package/dist/plugin-sdk/infra/exec-safety.d.ts +1 -0
- package/dist/plugin-sdk/infra/fetch.d.ts +2 -0
- package/dist/plugin-sdk/infra/file-lock.d.ts +2 -0
- package/dist/plugin-sdk/infra/format-time/format-datetime.d.ts +35 -0
- package/dist/plugin-sdk/infra/format-time/format-duration.d.ts +23 -0
- package/dist/plugin-sdk/infra/format-time/format-relative.d.ts +39 -0
- package/dist/plugin-sdk/infra/fs-safe.d.ts +25 -0
- package/dist/plugin-sdk/infra/gemini-auth.d.ts +16 -0
- package/dist/plugin-sdk/infra/git-commit.d.ts +4 -0
- package/dist/plugin-sdk/infra/git-root.d.ts +7 -0
- package/dist/plugin-sdk/infra/heartbeat-active-hours.d.ts +5 -0
- package/dist/plugin-sdk/infra/heartbeat-events-filter.d.ts +3 -0
- package/dist/plugin-sdk/infra/heartbeat-events.d.ts +21 -0
- package/dist/plugin-sdk/infra/heartbeat-reason.d.ts +5 -0
- package/dist/plugin-sdk/infra/heartbeat-runner.d.ts +46 -0
- package/dist/plugin-sdk/infra/heartbeat-visibility.d.ts +17 -0
- package/dist/plugin-sdk/infra/heartbeat-wake.d.ts +31 -0
- package/dist/plugin-sdk/infra/home-dir.d.ts +7 -0
- package/dist/plugin-sdk/infra/http-body.d.ts +46 -0
- package/dist/plugin-sdk/infra/json-file.d.ts +2 -0
- package/dist/plugin-sdk/infra/json-files.d.ts +5 -0
- package/dist/plugin-sdk/infra/jsonl-socket.d.ts +6 -0
- package/dist/plugin-sdk/infra/machine-name.d.ts +1 -0
- package/dist/plugin-sdk/infra/map-size.d.ts +1 -0
- package/dist/plugin-sdk/infra/net/fetch-guard.d.ts +21 -0
- package/dist/plugin-sdk/infra/net/hostname.d.ts +1 -0
- package/dist/plugin-sdk/infra/net/ssrf.d.ts +33 -0
- package/dist/plugin-sdk/infra/node-pairing.d.ts +62 -0
- package/dist/plugin-sdk/infra/node-shell.d.ts +1 -0
- package/dist/plugin-sdk/infra/openclaw-root.d.ts +10 -0
- package/dist/plugin-sdk/infra/outbound/abort.d.ts +8 -0
- package/dist/plugin-sdk/infra/outbound/agent-delivery.d.ts +32 -0
- package/dist/plugin-sdk/infra/outbound/channel-adapters.d.ts +15 -0
- package/dist/plugin-sdk/infra/outbound/channel-selection.d.ts +11 -0
- package/dist/plugin-sdk/infra/outbound/channel-target.d.ts +6 -0
- package/dist/plugin-sdk/infra/outbound/deliver.d.ts +79 -0
- package/dist/plugin-sdk/infra/outbound/delivery-queue.d.ts +86 -0
- package/dist/plugin-sdk/infra/outbound/directory-cache.d.ts +24 -0
- package/dist/plugin-sdk/infra/outbound/envelope.d.ts +16 -0
- package/dist/plugin-sdk/infra/outbound/format.d.ts +39 -0
- package/dist/plugin-sdk/infra/outbound/identity.d.ts +8 -0
- package/dist/plugin-sdk/infra/outbound/message-action-params.d.ts +48 -0
- package/dist/plugin-sdk/infra/outbound/message-action-runner.d.ts +75 -0
- package/dist/plugin-sdk/infra/outbound/message-action-spec.d.ts +5 -0
- package/dist/plugin-sdk/infra/outbound/message.d.ts +87 -0
- package/dist/plugin-sdk/infra/outbound/outbound-policy.d.ts +32 -0
- package/dist/plugin-sdk/infra/outbound/outbound-send-service.d.ts +66 -0
- package/dist/plugin-sdk/infra/outbound/outbound-session.d.ts +31 -0
- package/dist/plugin-sdk/infra/outbound/payloads.d.ts +16 -0
- package/dist/plugin-sdk/infra/outbound/target-errors.d.ts +6 -0
- package/dist/plugin-sdk/infra/outbound/target-normalization.d.ts +4 -0
- package/dist/plugin-sdk/infra/outbound/target-resolver.d.ts +53 -0
- package/dist/plugin-sdk/infra/outbound/targets.d.ts +68 -0
- package/dist/plugin-sdk/infra/outbound/tool-payload.d.ts +2 -0
- package/dist/plugin-sdk/infra/pairing-files.d.ts +23 -0
- package/dist/plugin-sdk/infra/pairing-token.d.ts +3 -0
- package/dist/plugin-sdk/infra/path-prepend.d.ts +5 -0
- package/dist/plugin-sdk/infra/path-safety.d.ts +2 -0
- package/dist/plugin-sdk/infra/plain-object.d.ts +4 -0
- package/dist/plugin-sdk/infra/ports-format.d.ts +5 -0
- package/dist/plugin-sdk/infra/ports-inspect.d.ts +2 -0
- package/dist/plugin-sdk/infra/ports-lsof.d.ts +2 -0
- package/dist/plugin-sdk/infra/ports-types.d.ts +17 -0
- package/dist/plugin-sdk/infra/ports.d.ts +14 -0
- package/dist/plugin-sdk/infra/provider-usage.auth.d.ts +11 -0
- package/dist/plugin-sdk/infra/provider-usage.d.ts +4 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.antigravity.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.claude.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.codex.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.copilot.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.d.ts +7 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.gemini.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.minimax.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.shared.d.ts +12 -0
- package/dist/plugin-sdk/infra/provider-usage.fetch.zai.d.ts +2 -0
- package/dist/plugin-sdk/infra/provider-usage.format.d.ts +13 -0
- package/dist/plugin-sdk/infra/provider-usage.load.d.ts +12 -0
- package/dist/plugin-sdk/infra/provider-usage.shared.d.ts +8 -0
- package/dist/plugin-sdk/infra/provider-usage.types.d.ts +17 -0
- package/dist/plugin-sdk/infra/restart-sentinel.d.ts +50 -0
- package/dist/plugin-sdk/infra/restart.d.ts +70 -0
- package/dist/plugin-sdk/infra/retry-policy.d.ts +25 -0
- package/dist/plugin-sdk/infra/retry.d.ts +21 -0
- package/dist/plugin-sdk/infra/scp-host.d.ts +2 -0
- package/dist/plugin-sdk/infra/session-cost-usage.d.ts +45 -0
- package/dist/plugin-sdk/infra/session-cost-usage.types.d.ts +153 -0
- package/dist/plugin-sdk/infra/session-maintenance-warning.d.ts +10 -0
- package/dist/plugin-sdk/infra/shell-env.d.ts +34 -0
- package/dist/plugin-sdk/infra/skills-remote.d.ts +25 -0
- package/dist/plugin-sdk/infra/system-events.d.ts +18 -0
- package/dist/plugin-sdk/infra/tailnet.d.ts +8 -0
- package/dist/plugin-sdk/infra/tailscale.d.ts +34 -0
- package/dist/plugin-sdk/infra/tls/fingerprint.d.ts +1 -0
- package/dist/plugin-sdk/infra/tls/gateway.d.ts +16 -0
- package/dist/plugin-sdk/infra/tmp-openclaw-dir.d.ts +18 -0
- package/dist/plugin-sdk/infra/transport-ready.d.ts +16 -0
- package/dist/plugin-sdk/infra/unhandled-rejections.d.ts +15 -0
- package/dist/plugin-sdk/infra/warning-filter.d.ts +7 -0
- package/dist/plugin-sdk/infra/ws.d.ts +2 -0
- package/dist/plugin-sdk/infra/wsl.d.ts +11 -0
- package/dist/plugin-sdk/line/accounts.d.ts +10 -0
- package/dist/plugin-sdk/line/actions.d.ts +22 -0
- package/dist/plugin-sdk/line/auto-reply-delivery.d.ts +38 -0
- package/dist/plugin-sdk/line/bot-access.d.ts +16 -0
- package/dist/plugin-sdk/line/bot-handlers.d.ts +13 -0
- package/dist/plugin-sdk/line/bot-message-context.d.ts +118 -0
- package/dist/plugin-sdk/line/bot.d.ts +24 -0
- package/dist/plugin-sdk/line/channel-access-token.d.ts +4 -0
- package/dist/plugin-sdk/line/config-schema.d.ts +64 -0
- package/dist/plugin-sdk/line/download.d.ts +7 -0
- package/dist/plugin-sdk/line/flex-templates/basic-cards.d.ts +46 -0
- package/dist/plugin-sdk/line/flex-templates/common.d.ts +2 -0
- package/dist/plugin-sdk/line/flex-templates/media-control-cards.d.ts +73 -0
- package/dist/plugin-sdk/line/flex-templates/message.d.ts +6 -0
- package/dist/plugin-sdk/line/flex-templates/schedule-cards.d.ts +55 -0
- package/dist/plugin-sdk/line/flex-templates/types.d.ts +19 -0
- package/dist/plugin-sdk/line/flex-templates.d.ts +5 -0
- package/dist/plugin-sdk/line/markdown-to-line.d.ts +72 -0
- package/dist/plugin-sdk/line/monitor.d.ts +28 -0
- package/dist/plugin-sdk/line/probe.d.ts +2 -0
- package/dist/plugin-sdk/line/reply-chunks.d.ts +24 -0
- package/dist/plugin-sdk/line/send.d.ts +118 -0
- package/dist/plugin-sdk/line/signature.d.ts +1 -0
- package/dist/plugin-sdk/line/template-messages.d.ts +100 -0
- package/dist/plugin-sdk/line/types.d.ts +113 -0
- package/dist/plugin-sdk/line/webhook-node.d.ts +15 -0
- package/dist/plugin-sdk/line/webhook-utils.d.ts +3 -0
- package/dist/plugin-sdk/line/webhook.d.ts +19 -0
- package/dist/plugin-sdk/link-understanding/apply.d.ts +10 -0
- package/dist/plugin-sdk/link-understanding/defaults.d.ts +2 -0
- package/dist/plugin-sdk/link-understanding/detect.d.ts +3 -0
- package/dist/plugin-sdk/link-understanding/format.d.ts +4 -0
- package/dist/plugin-sdk/link-understanding/runner.d.ts +11 -0
- package/dist/plugin-sdk/logger.d.ts +6 -0
- package/dist/plugin-sdk/logging/config.d.ts +4 -0
- package/dist/plugin-sdk/logging/console.d.ts +23 -0
- package/dist/plugin-sdk/logging/diagnostic-session-state.d.ts +30 -0
- package/dist/plugin-sdk/logging/diagnostic.d.ts +65 -0
- package/dist/plugin-sdk/logging/levels.d.ts +4 -0
- package/dist/plugin-sdk/logging/logger.d.ts +42 -0
- package/dist/plugin-sdk/logging/redact-identifier.d.ts +4 -0
- package/dist/plugin-sdk/logging/redact.d.ts +9 -0
- package/dist/plugin-sdk/logging/state.d.ts +18 -0
- package/dist/plugin-sdk/logging/subsystem.d.ts +18 -0
- package/dist/plugin-sdk/logging/timestamps.d.ts +1 -0
- package/dist/plugin-sdk/logging.d.ts +10 -0
- package/dist/plugin-sdk/markdown/code-spans.d.ts +10 -0
- package/dist/plugin-sdk/markdown/fences.d.ts +10 -0
- package/dist/plugin-sdk/markdown/frontmatter.d.ts +2 -0
- package/dist/plugin-sdk/markdown/ir.d.ts +32 -0
- package/dist/plugin-sdk/markdown/render.d.ts +18 -0
- package/dist/plugin-sdk/markdown/tables.d.ts +2 -0
- package/dist/plugin-sdk/markdown/whatsapp.d.ts +14 -0
- package/dist/plugin-sdk/media/audio-tags.d.ts +10 -0
- package/dist/plugin-sdk/media/audio.d.ts +19 -0
- package/dist/plugin-sdk/media/base64.d.ts +1 -0
- package/dist/plugin-sdk/media/constants.d.ts +7 -0
- package/dist/plugin-sdk/media/fetch.d.ts +23 -0
- package/dist/plugin-sdk/media/image-ops.d.ts +41 -0
- package/dist/plugin-sdk/media/inbound-path-policy.d.ts +18 -0
- package/dist/plugin-sdk/media/input-files.d.ts +95 -0
- package/dist/plugin-sdk/media/local-roots.d.ts +3 -0
- package/dist/plugin-sdk/media/mime.d.ts +16 -0
- package/dist/plugin-sdk/media/outbound-attachment.d.ts +6 -0
- package/dist/plugin-sdk/media/parse.d.ts +8 -0
- package/dist/plugin-sdk/media/png-encode.d.ts +8 -0
- package/dist/plugin-sdk/media/read-response-with-limit.d.ts +7 -0
- package/dist/plugin-sdk/media/sniff-mime-from-base64.d.ts +1 -0
- package/dist/plugin-sdk/media/store.d.ts +33 -0
- package/dist/plugin-sdk/media-understanding/apply.d.ts +19 -0
- package/dist/plugin-sdk/media-understanding/attachments.d.ts +49 -0
- package/dist/plugin-sdk/media-understanding/audio-preflight.d.ts +16 -0
- package/dist/plugin-sdk/media-understanding/concurrency.d.ts +1 -0
- package/dist/plugin-sdk/media-understanding/defaults.d.ts +14 -0
- package/dist/plugin-sdk/media-understanding/errors.d.ts +6 -0
- package/dist/plugin-sdk/media-understanding/format.d.ts +7 -0
- package/dist/plugin-sdk/media-understanding/fs.d.ts +1 -0
- package/dist/plugin-sdk/media-understanding/output-extract.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/anthropic/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/deepgram/audio.d.ts +4 -0
- package/dist/plugin-sdk/media-understanding/providers/deepgram/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/google/audio.d.ts +3 -0
- package/dist/plugin-sdk/media-understanding/providers/google/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/google/inline-data.d.ts +20 -0
- package/dist/plugin-sdk/media-understanding/providers/google/video.d.ts +3 -0
- package/dist/plugin-sdk/media-understanding/providers/groq/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/image.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/index.d.ts +4 -0
- package/dist/plugin-sdk/media-understanding/providers/minimax/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/openai/audio.d.ts +3 -0
- package/dist/plugin-sdk/media-understanding/providers/openai/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/providers/shared.d.ts +11 -0
- package/dist/plugin-sdk/media-understanding/providers/zai/index.d.ts +2 -0
- package/dist/plugin-sdk/media-understanding/resolve.d.ts +44 -0
- package/dist/plugin-sdk/media-understanding/runner.d.ts +39 -0
- package/dist/plugin-sdk/media-understanding/runner.entries.d.ts +33 -0
- package/dist/plugin-sdk/media-understanding/scope.d.ts +9 -0
- package/dist/plugin-sdk/media-understanding/types.d.ts +93 -0
- package/dist/plugin-sdk/media-understanding/video.d.ts +2 -0
- package/dist/plugin-sdk/memory/backend-config.d.ts +49 -0
- package/dist/plugin-sdk/memory/batch-error-utils.d.ts +15 -0
- package/dist/plugin-sdk/memory/batch-gemini.d.ts +55 -0
- package/dist/plugin-sdk/memory/batch-http.d.ts +6 -0
- package/dist/plugin-sdk/memory/batch-openai.d.ts +45 -0
- package/dist/plugin-sdk/memory/batch-output.d.ts +23 -0
- package/dist/plugin-sdk/memory/batch-runner.d.ts +16 -0
- package/dist/plugin-sdk/memory/batch-upload.d.ts +6 -0
- package/dist/plugin-sdk/memory/batch-utils.d.ts +9 -0
- package/dist/plugin-sdk/memory/batch-voyage.d.ts +46 -0
- package/dist/plugin-sdk/memory/embedding-chunk-limits.d.ts +3 -0
- package/dist/plugin-sdk/memory/embedding-input-limits.d.ts +2 -0
- package/dist/plugin-sdk/memory/embedding-model-limits.d.ts +2 -0
- package/dist/plugin-sdk/memory/embeddings-debug.d.ts +1 -0
- package/dist/plugin-sdk/memory/embeddings-gemini.d.ts +14 -0
- package/dist/plugin-sdk/memory/embeddings-openai.d.ts +13 -0
- package/dist/plugin-sdk/memory/embeddings-remote-client.d.ts +11 -0
- package/dist/plugin-sdk/memory/embeddings-remote-fetch.d.ts +6 -0
- package/dist/plugin-sdk/memory/embeddings-voyage.d.ts +13 -0
- package/dist/plugin-sdk/memory/embeddings.d.ts +45 -0
- package/dist/plugin-sdk/memory/fs-utils.d.ts +11 -0
- package/dist/plugin-sdk/memory/hybrid.d.ts +45 -0
- package/dist/plugin-sdk/memory/index.d.ts +3 -0
- package/dist/plugin-sdk/memory/internal.d.ts +38 -0
- package/dist/plugin-sdk/memory/manager-embedding-ops.d.ts +42 -0
- package/dist/plugin-sdk/memory/manager-search.d.ts +60 -0
- package/dist/plugin-sdk/memory/manager-sync-ops.d.ts +132 -0
- package/dist/plugin-sdk/memory/manager.d.ts +103 -0
- package/dist/plugin-sdk/memory/memory-schema.d.ts +10 -0
- package/dist/plugin-sdk/memory/mmr.d.ts +62 -0
- package/dist/plugin-sdk/memory/node-llama.d.ts +8 -0
- package/dist/plugin-sdk/memory/qmd-manager.d.ts +124 -0
- package/dist/plugin-sdk/memory/qmd-query-parser.d.ts +9 -0
- package/dist/plugin-sdk/memory/qmd-scope.d.ts +4 -0
- package/dist/plugin-sdk/memory/query-expansion.d.ts +40 -0
- package/dist/plugin-sdk/memory/search-manager.d.ts +11 -0
- package/dist/plugin-sdk/memory/session-files.d.ts +14 -0
- package/dist/plugin-sdk/memory/sqlite-vec.d.ts +9 -0
- package/dist/plugin-sdk/memory/sqlite.d.ts +1 -0
- package/dist/plugin-sdk/memory/temporal-decay.d.ts +25 -0
- package/dist/plugin-sdk/memory/types.d.ts +94 -0
- package/dist/plugin-sdk/node-host/with-timeout.d.ts +1 -0
- package/dist/plugin-sdk/pairing/pairing-labels.d.ts +2 -0
- package/dist/plugin-sdk/pairing/pairing-messages.d.ts +6 -0
- package/dist/plugin-sdk/pairing/pairing-store.d.ts +51 -0
- package/dist/plugin-sdk/plugin-sdk/account-id.d.ts +1 -0
- package/dist/plugin-sdk/plugin-sdk/agent-media-payload.d.ts +12 -0
- package/dist/plugin-sdk/plugin-sdk/allow-from.d.ts +27 -0
- package/dist/plugin-sdk/plugin-sdk/command-auth.d.ts +25 -0
- package/dist/plugin-sdk/plugin-sdk/config-paths.d.ts +6 -0
- package/dist/plugin-sdk/plugin-sdk/file-lock.d.ts +16 -0
- package/dist/plugin-sdk/plugin-sdk/index.d.ts +138 -0
- package/dist/plugin-sdk/plugin-sdk/json-store.d.ts +5 -0
- package/dist/plugin-sdk/plugin-sdk/onboarding.d.ts +11 -0
- package/dist/plugin-sdk/plugin-sdk/provider-auth-result.d.ts +14 -0
- package/dist/plugin-sdk/plugin-sdk/slack-message-actions.d.ts +11 -0
- package/dist/plugin-sdk/plugin-sdk/status-helpers.d.ts +25 -0
- package/dist/plugin-sdk/plugin-sdk/temp-path.d.ts +12 -0
- package/dist/plugin-sdk/plugin-sdk/text-chunking.d.ts +1 -0
- package/dist/plugin-sdk/plugin-sdk/tool-send.d.ts +4 -0
- package/dist/plugin-sdk/plugin-sdk/webhook-path.d.ts +6 -0
- package/dist/plugin-sdk/plugin-sdk/webhook-targets.d.ts +13 -0
- package/dist/plugin-sdk/plugins/bundled-dir.d.ts +1 -0
- package/dist/plugin-sdk/plugins/commands.d.ts +83 -0
- package/dist/plugin-sdk/plugins/config-schema.d.ts +2 -0
- package/dist/plugin-sdk/plugins/config-state.d.ts +33 -0
- package/dist/plugin-sdk/plugins/discovery.d.ts +24 -0
- package/dist/plugin-sdk/plugins/hook-runner-global.d.ts +37 -0
- package/dist/plugin-sdk/plugins/hooks.d.ts +50 -0
- package/dist/plugin-sdk/plugins/http-path.d.ts +1 -0
- package/dist/plugin-sdk/plugins/http-registry.d.ts +13 -0
- package/dist/plugin-sdk/plugins/loader.d.ts +14 -0
- package/dist/plugin-sdk/plugins/logger.d.ts +9 -0
- package/dist/plugin-sdk/plugins/manifest-registry.d.ts +34 -0
- package/dist/plugin-sdk/plugins/manifest.d.ts +64 -0
- package/dist/plugin-sdk/plugins/path-safety.d.ts +5 -0
- package/dist/plugin-sdk/plugins/registry.d.ts +131 -0
- package/dist/plugin-sdk/plugins/runtime/index.d.ts +3 -0
- package/dist/plugin-sdk/plugins/runtime/native-deps.d.ts +8 -0
- package/dist/plugin-sdk/plugins/runtime/types.d.ts +317 -0
- package/dist/plugin-sdk/plugins/runtime.d.ts +5 -0
- package/dist/plugin-sdk/plugins/schema-validator.d.ts +10 -0
- package/dist/plugin-sdk/plugins/slots.d.ts +24 -0
- package/dist/plugin-sdk/plugins/tools.d.ts +13 -0
- package/dist/plugin-sdk/plugins/types.d.ts +470 -0
- package/dist/plugin-sdk/polls.d.ts +31 -0
- package/dist/plugin-sdk/process/command-queue.d.ts +51 -0
- package/dist/plugin-sdk/process/exec.d.ts +30 -0
- package/dist/plugin-sdk/process/kill-tree.d.ts +12 -0
- package/dist/plugin-sdk/process/lanes.d.ts +6 -0
- package/dist/plugin-sdk/process/spawn-utils.d.ts +26 -0
- package/dist/plugin-sdk/process/supervisor/adapters/child.d.ts +21 -0
- package/dist/plugin-sdk/process/supervisor/adapters/env.d.ts +1 -0
- package/dist/plugin-sdk/process/supervisor/adapters/pty.d.ts +22 -0
- package/dist/plugin-sdk/process/supervisor/index.d.ts +4 -0
- package/dist/plugin-sdk/process/supervisor/registry.d.ts +21 -0
- package/dist/plugin-sdk/process/supervisor/supervisor.d.ts +2 -0
- package/dist/plugin-sdk/process/supervisor/types.d.ts +80 -0
- package/dist/plugin-sdk/providers/github-copilot-token.d.ts +22 -0
- package/dist/plugin-sdk/providers/qwen-portal-oauth.d.ts +2 -0
- package/dist/plugin-sdk/routing/bindings.d.ts +11 -0
- package/dist/plugin-sdk/routing/resolve-route.d.ts +42 -0
- package/dist/plugin-sdk/routing/session-key.d.ts +48 -0
- package/dist/plugin-sdk/runtime.d.ts +7 -0
- package/dist/plugin-sdk/security/channel-metadata.d.ts +6 -0
- package/dist/plugin-sdk/security/external-content.d.ts +67 -0
- package/dist/plugin-sdk/security/scan-paths.d.ts +5 -0
- package/dist/plugin-sdk/security/secret-equal.d.ts +1 -0
- package/dist/plugin-sdk/sessions/input-provenance.d.ts +16 -0
- package/dist/plugin-sdk/sessions/level-overrides.d.ts +10 -0
- package/dist/plugin-sdk/sessions/model-overrides.d.ts +14 -0
- package/dist/plugin-sdk/sessions/send-policy.d.ts +11 -0
- package/dist/plugin-sdk/sessions/session-key-utils.d.ts +11 -0
- package/dist/plugin-sdk/sessions/session-label.d.ts +9 -0
- package/dist/plugin-sdk/sessions/transcript-events.d.ts +7 -0
- package/dist/plugin-sdk/shared/chat-content.d.ts +5 -0
- package/dist/plugin-sdk/shared/chat-envelope.d.ts +2 -0
- package/dist/plugin-sdk/shared/config-eval.d.ts +19 -0
- package/dist/plugin-sdk/shared/device-auth.d.ts +13 -0
- package/dist/plugin-sdk/shared/frontmatter.d.ts +24 -0
- package/dist/plugin-sdk/shared/node-list-parse.d.ts +3 -0
- package/dist/plugin-sdk/shared/node-list-types.d.ts +48 -0
- package/dist/plugin-sdk/shared/node-match.d.ts +9 -0
- package/dist/plugin-sdk/shared/operator-scope-compat.d.ts +5 -0
- package/dist/plugin-sdk/shared/pid-alive.d.ts +1 -0
- package/dist/plugin-sdk/shared/process-scoped-map.d.ts +1 -0
- package/dist/plugin-sdk/shared/string-normalization.d.ts +4 -0
- package/dist/plugin-sdk/shared/subagents-format.d.ts +15 -0
- package/dist/plugin-sdk/shared/text/reasoning-tags.d.ts +6 -0
- package/dist/plugin-sdk/shared/text-chunking.d.ts +1 -0
- package/dist/plugin-sdk/signal/accounts.d.ts +17 -0
- package/dist/plugin-sdk/signal/client.d.ts +32 -0
- package/dist/plugin-sdk/signal/daemon.d.ts +18 -0
- package/dist/plugin-sdk/signal/format.d.ts +17 -0
- package/dist/plugin-sdk/signal/identity.d.ts +23 -0
- package/dist/plugin-sdk/signal/index.d.ts +5 -0
- package/dist/plugin-sdk/signal/monitor/event-handler.d.ts +5 -0
- package/dist/plugin-sdk/signal/monitor/event-handler.types.d.ts +125 -0
- package/dist/plugin-sdk/signal/monitor/mentions.d.ts +2 -0
- package/dist/plugin-sdk/signal/monitor.d.ts +23 -0
- package/dist/plugin-sdk/signal/probe.d.ts +7 -0
- package/dist/plugin-sdk/signal/reaction-level.d.ts +17 -0
- package/dist/plugin-sdk/signal/rpc-context.d.ts +9 -0
- package/dist/plugin-sdk/signal/send-reactions.d.ts +32 -0
- package/dist/plugin-sdk/signal/send.d.ts +25 -0
- package/dist/plugin-sdk/signal/sse-reconnect.d.ts +13 -0
- package/dist/plugin-sdk/slack/accounts.d.ts +32 -0
- package/dist/plugin-sdk/slack/actions.d.ts +56 -0
- package/dist/plugin-sdk/slack/blocks-fallback.d.ts +2 -0
- package/dist/plugin-sdk/slack/blocks-input.d.ts +3 -0
- package/dist/plugin-sdk/slack/channel-migration.d.ts +20 -0
- package/dist/plugin-sdk/slack/client.d.ts +4 -0
- package/dist/plugin-sdk/slack/directory-live.d.ts +4 -0
- package/dist/plugin-sdk/slack/draft-stream.d.ts +25 -0
- package/dist/plugin-sdk/slack/format.d.ts +7 -0
- package/dist/plugin-sdk/slack/http/index.d.ts +1 -0
- package/dist/plugin-sdk/slack/http/registry.d.ts +12 -0
- package/dist/plugin-sdk/slack/index.d.ts +6 -0
- package/dist/plugin-sdk/slack/message-actions.d.ts +4 -0
- package/dist/plugin-sdk/slack/modal-metadata.d.ts +7 -0
- package/dist/plugin-sdk/slack/monitor/allow-list.d.ts +20 -0
- package/dist/plugin-sdk/slack/monitor/auth.d.ts +10 -0
- package/dist/plugin-sdk/slack/monitor/channel-config.d.ts +42 -0
- package/dist/plugin-sdk/slack/monitor/commands.d.ts +9 -0
- package/dist/plugin-sdk/slack/monitor/context.d.ts +102 -0
- package/dist/plugin-sdk/slack/monitor/events/channels.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/interactions.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/members.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/messages.d.ts +6 -0
- package/dist/plugin-sdk/slack/monitor/events/pins.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events/reactions.d.ts +4 -0
- package/dist/plugin-sdk/slack/monitor/events.d.ts +8 -0
- package/dist/plugin-sdk/slack/monitor/media.d.ts +65 -0
- package/dist/plugin-sdk/slack/monitor/message-handler/dispatch.d.ts +8 -0
- package/dist/plugin-sdk/slack/monitor/message-handler/prepare.d.ts +13 -0
- package/dist/plugin-sdk/slack/monitor/message-handler/types.d.ts +22 -0
- package/dist/plugin-sdk/slack/monitor/message-handler.d.ts +11 -0
- package/dist/plugin-sdk/slack/monitor/mrkdwn.d.ts +1 -0
- package/dist/plugin-sdk/slack/monitor/policy.d.ts +5 -0
- package/dist/plugin-sdk/slack/monitor/provider.d.ts +2 -0
- package/dist/plugin-sdk/slack/monitor/replies.d.ts +50 -0
- package/dist/plugin-sdk/slack/monitor/room-context.d.ts +14 -0
- package/dist/plugin-sdk/slack/monitor/slash.d.ts +6 -0
- package/dist/plugin-sdk/slack/monitor/thread-resolution.d.ts +12 -0
- package/dist/plugin-sdk/slack/monitor/types.d.ts +97 -0
- package/dist/plugin-sdk/slack/monitor.d.ts +5 -0
- package/dist/plugin-sdk/slack/probe.d.ts +14 -0
- package/dist/plugin-sdk/slack/resolve-channels.d.ts +19 -0
- package/dist/plugin-sdk/slack/resolve-users.d.ts +26 -0
- package/dist/plugin-sdk/slack/send.d.ts +22 -0
- package/dist/plugin-sdk/slack/stream-mode.d.ts +12 -0
- package/dist/plugin-sdk/slack/streaming.d.ts +72 -0
- package/dist/plugin-sdk/slack/targets.d.ts +7 -0
- package/dist/plugin-sdk/slack/threading-tool-context.d.ts +10 -0
- package/dist/plugin-sdk/slack/threading.d.ts +20 -0
- package/dist/plugin-sdk/slack/token.d.ts +3 -0
- package/dist/plugin-sdk/slack/types.d.ts +58 -0
- package/dist/plugin-sdk/telegram/accounts.d.ts +21 -0
- package/dist/plugin-sdk/telegram/allowed-updates.d.ts +4 -0
- package/dist/plugin-sdk/telegram/api-logging.d.ts +11 -0
- package/dist/plugin-sdk/telegram/audit.d.ts +29 -0
- package/dist/plugin-sdk/telegram/bot/delivery.d.ts +35 -0
- package/dist/plugin-sdk/telegram/bot/helpers.d.ts +124 -0
- package/dist/plugin-sdk/telegram/bot/types.d.ts +28 -0
- package/dist/plugin-sdk/telegram/bot-access.d.ts +25 -0
- package/dist/plugin-sdk/telegram/bot-handlers.d.ts +2 -0
- package/dist/plugin-sdk/telegram/bot-message-context.d.ts +139 -0
- package/dist/plugin-sdk/telegram/bot-message-dispatch.d.ts +19 -0
- package/dist/plugin-sdk/telegram/bot-message.d.ts +20 -0
- package/dist/plugin-sdk/telegram/bot-native-command-menu.d.ts +33 -0
- package/dist/plugin-sdk/telegram/bot-native-commands.d.ts +59 -0
- package/dist/plugin-sdk/telegram/bot-updates.d.ts +31 -0
- package/dist/plugin-sdk/telegram/bot.d.ts +62 -0
- package/dist/plugin-sdk/telegram/button-types.d.ts +7 -0
- package/dist/plugin-sdk/telegram/caption.d.ts +5 -0
- package/dist/plugin-sdk/telegram/draft-chunking.d.ts +6 -0
- package/dist/plugin-sdk/telegram/draft-stream.d.ts +30 -0
- package/dist/plugin-sdk/telegram/fetch.d.ts +5 -0
- package/dist/plugin-sdk/telegram/format.d.ts +18 -0
- package/dist/plugin-sdk/telegram/group-access.d.ts +49 -0
- package/dist/plugin-sdk/telegram/group-migration.d.ts +20 -0
- package/dist/plugin-sdk/telegram/inline-buttons.d.ts +11 -0
- package/dist/plugin-sdk/telegram/model-buttons.d.ts +63 -0
- package/dist/plugin-sdk/telegram/monitor.d.ts +19 -0
- package/dist/plugin-sdk/telegram/network-config.d.ts +12 -0
- package/dist/plugin-sdk/telegram/network-errors.d.ts +5 -0
- package/dist/plugin-sdk/telegram/outbound-params.d.ts +2 -0
- package/dist/plugin-sdk/telegram/probe.d.ts +17 -0
- package/dist/plugin-sdk/telegram/proxy.d.ts +1 -0
- package/dist/plugin-sdk/telegram/reaction-level.d.ts +11 -0
- package/dist/plugin-sdk/telegram/reasoning-lane-coordinator.d.ts +18 -0
- package/dist/plugin-sdk/telegram/send.d.ts +153 -0
- package/dist/plugin-sdk/telegram/sent-message-cache.d.ts +16 -0
- package/dist/plugin-sdk/telegram/status-reaction-variants.d.ts +21 -0
- package/dist/plugin-sdk/telegram/sticker-cache.d.ts +46 -0
- package/dist/plugin-sdk/telegram/targets.d.ts +8 -0
- package/dist/plugin-sdk/telegram/token.d.ts +13 -0
- package/dist/plugin-sdk/telegram/update-offset-store.d.ts +13 -0
- package/dist/plugin-sdk/telegram/voice.d.ts +16 -0
- package/dist/plugin-sdk/telegram/webhook.d.ts +20 -0
- package/dist/plugin-sdk/terminal/ansi.d.ts +2 -0
- package/dist/plugin-sdk/terminal/health-style.d.ts +1 -0
- package/dist/plugin-sdk/terminal/links.d.ts +6 -0
- package/dist/plugin-sdk/terminal/palette.d.ts +10 -0
- package/dist/plugin-sdk/terminal/progress-line.d.ts +3 -0
- package/dist/plugin-sdk/terminal/prompt-style.d.ts +3 -0
- package/dist/plugin-sdk/terminal/restore.d.ts +17 -0
- package/dist/plugin-sdk/terminal/theme.d.ts +15 -0
- package/dist/plugin-sdk/tts/tts-core.d.ts +52 -0
- package/dist/plugin-sdk/tts/tts.d.ts +179 -0
- package/dist/plugin-sdk/utils/account-id.d.ts +1 -0
- package/dist/plugin-sdk/utils/boolean.d.ts +5 -0
- package/dist/plugin-sdk/utils/chunk-items.d.ts +1 -0
- package/dist/plugin-sdk/utils/delivery-context.d.ts +29 -0
- package/dist/plugin-sdk/utils/directive-tags.d.ts +16 -0
- package/dist/plugin-sdk/utils/fetch-timeout.d.ts +13 -0
- package/dist/plugin-sdk/utils/mask-api-key.d.ts +1 -0
- package/dist/plugin-sdk/utils/message-channel.d.ts +27 -0
- package/dist/plugin-sdk/utils/normalize-secret-input.d.ts +11 -0
- package/dist/plugin-sdk/utils/provider-utils.d.ts +9 -0
- package/dist/plugin-sdk/utils/queue-helpers.d.ts +69 -0
- package/dist/plugin-sdk/utils/reaction-level.d.ts +15 -0
- package/dist/plugin-sdk/utils/run-with-concurrency.d.ts +11 -0
- package/dist/plugin-sdk/utils/safe-json.d.ts +1 -0
- package/dist/plugin-sdk/utils/shell-argv.d.ts +1 -0
- package/dist/plugin-sdk/utils/transcript-tools.d.ts +8 -0
- package/dist/plugin-sdk/utils/usage-format.d.ts +26 -0
- package/dist/plugin-sdk/utils/with-timeout.d.ts +1 -0
- package/dist/plugin-sdk/utils.d.ts +63 -0
- package/dist/plugin-sdk/version.d.ts +8 -0
- package/dist/plugin-sdk/web/accounts.d.ts +39 -0
- package/dist/plugin-sdk/web/active-listener.d.ts +25 -0
- package/dist/plugin-sdk/web/auth-store.d.ts +26 -0
- package/dist/plugin-sdk/web/auto-reply/constants.d.ts +1 -0
- package/dist/plugin-sdk/web/auto-reply/deliver-reply.d.ts +19 -0
- package/dist/plugin-sdk/web/auto-reply/heartbeat-runner.d.ts +20 -0
- package/dist/plugin-sdk/web/auto-reply/loggers.d.ts +4 -0
- package/dist/plugin-sdk/web/auto-reply/mentions.d.ts +19 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/ack-reaction.d.ts +13 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/broadcast.d.ts +16 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/commands.d.ts +2 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/echo.d.ts +17 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/group-activation.d.ts +9 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/group-gating.d.ts +29 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/group-members.d.ts +6 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/last-route.d.ts +15 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/message-line.d.ts +11 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/on-message.d.ts +24 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/peer.d.ts +2 -0
- package/dist/plugin-sdk/web/auto-reply/monitor/process-message.d.ts +40 -0
- package/dist/plugin-sdk/web/auto-reply/monitor.d.ts +5 -0
- package/dist/plugin-sdk/web/auto-reply/session-snapshot.d.ts +17 -0
- package/dist/plugin-sdk/web/auto-reply/types.d.ts +28 -0
- package/dist/plugin-sdk/web/auto-reply/util.d.ts +2 -0
- package/dist/plugin-sdk/web/auto-reply.d.ts +1 -0
- package/dist/plugin-sdk/web/auto-reply.impl.d.ts +6 -0
- package/dist/plugin-sdk/web/inbound/access-control.d.ts +24 -0
- package/dist/plugin-sdk/web/inbound/dedupe.d.ts +2 -0
- package/dist/plugin-sdk/web/inbound/extract.d.ts +13 -0
- package/dist/plugin-sdk/web/inbound/media.d.ts +7 -0
- package/dist/plugin-sdk/web/inbound/monitor.d.ts +30 -0
- package/dist/plugin-sdk/web/inbound/send-api.d.ts +22 -0
- package/dist/plugin-sdk/web/inbound/types.d.ts +41 -0
- package/dist/plugin-sdk/web/inbound.d.ts +4 -0
- package/dist/plugin-sdk/web/login-qr.d.ts +19 -0
- package/dist/plugin-sdk/web/login.d.ts +3 -0
- package/dist/plugin-sdk/web/media.d.ts +43 -0
- package/dist/plugin-sdk/web/outbound.d.ts +24 -0
- package/dist/plugin-sdk/web/qr-image.d.ts +4 -0
- package/dist/plugin-sdk/web/reconnect.d.ts +12 -0
- package/dist/plugin-sdk/web/session.d.ts +14 -0
- package/dist/plugin-sdk/web/vcard.d.ts +6 -0
- package/dist/plugin-sdk/whatsapp/normalize.d.ts +6 -0
- package/dist/plugin-sdk/whatsapp/resolve-outbound-target.d.ts +12 -0
- package/dist/plugin-sdk/wizard/prompts.d.ts +43 -0
- package/dist/plugin-sdk/wizard/session.d.ts +42 -0
- package/dist/{pw-ai-BrMJUJAV.js → pw-ai-BcKbTWI9.js} +1 -1
- package/dist/{pw-ai-ByDR1q8k.js → pw-ai-Bp7tQXP7.js} +1 -1
- package/dist/{runner-xrbh4KIj.js → runner-BcsIKdd3.js} +1 -1
- package/dist/{runner-BYhtaPKn.js → runner-j4Bfr_LY.js} +1 -1
- package/dist/{web-DHqyhHGb.js → web-_tlzoEVp.js} +6 -6
- package/dist/{web-CTAJHze9.js → web-fVuWT1jh.js} +6 -6
- package/package.json +2 -1
|
@@ -0,0 +1,1820 @@
|
|
|
1
|
+
(function () {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// ============================================================
|
|
5
|
+
// DATA LOADING
|
|
6
|
+
// ============================================================
|
|
7
|
+
|
|
8
|
+
const base64 = document.getElementById("session-data").textContent;
|
|
9
|
+
const binary = atob(base64);
|
|
10
|
+
const bytes = new Uint8Array(binary.length);
|
|
11
|
+
for (let i = 0; i < binary.length; i++) {
|
|
12
|
+
bytes[i] = binary.charCodeAt(i);
|
|
13
|
+
}
|
|
14
|
+
const data = JSON.parse(new TextDecoder("utf-8").decode(bytes));
|
|
15
|
+
const { header, entries, leafId: defaultLeafId, systemPrompt, tools, renderedTools } = data;
|
|
16
|
+
|
|
17
|
+
// ============================================================
|
|
18
|
+
// URL PARAMETER HANDLING
|
|
19
|
+
// ============================================================
|
|
20
|
+
|
|
21
|
+
// Parse URL parameters for deep linking: leafId and targetId
|
|
22
|
+
// Check for injected params (when loaded in iframe via srcdoc) or use window.location
|
|
23
|
+
const injectedParams = document.querySelector('meta[name="pi-url-params"]');
|
|
24
|
+
const searchString = injectedParams
|
|
25
|
+
? injectedParams.content
|
|
26
|
+
: window.location.search.substring(1);
|
|
27
|
+
const urlParams = new URLSearchParams(searchString);
|
|
28
|
+
const urlLeafId = urlParams.get("leafId");
|
|
29
|
+
const urlTargetId = urlParams.get("targetId");
|
|
30
|
+
// Use URL leafId if provided, otherwise fall back to session default
|
|
31
|
+
const leafId = urlLeafId || defaultLeafId;
|
|
32
|
+
|
|
33
|
+
// ============================================================
|
|
34
|
+
// DATA STRUCTURES
|
|
35
|
+
// ============================================================
|
|
36
|
+
|
|
37
|
+
// Entry lookup by ID
|
|
38
|
+
const byId = new Map();
|
|
39
|
+
for (const entry of entries) {
|
|
40
|
+
byId.set(entry.id, entry);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Tool call lookup (toolCallId -> {name, arguments})
|
|
44
|
+
const toolCallMap = new Map();
|
|
45
|
+
for (const entry of entries) {
|
|
46
|
+
if (entry.type === "message" && entry.message.role === "assistant") {
|
|
47
|
+
const content = entry.message.content;
|
|
48
|
+
if (Array.isArray(content)) {
|
|
49
|
+
for (const block of content) {
|
|
50
|
+
if (block.type === "toolCall") {
|
|
51
|
+
toolCallMap.set(block.id, { name: block.name, arguments: block.arguments });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Label lookup (entryId -> label string)
|
|
59
|
+
// Labels are stored in 'label' entries that reference their target via targetId
|
|
60
|
+
const labelMap = new Map();
|
|
61
|
+
for (const entry of entries) {
|
|
62
|
+
if (entry.type === "label" && entry.targetId && entry.label) {
|
|
63
|
+
labelMap.set(entry.targetId, entry.label);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// ============================================================
|
|
68
|
+
// TREE DATA PREPARATION (no DOM, pure data)
|
|
69
|
+
// ============================================================
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Build tree structure from flat entries.
|
|
73
|
+
* Returns array of root nodes, each with { entry, children, label }.
|
|
74
|
+
*/
|
|
75
|
+
function buildTree() {
|
|
76
|
+
const nodeMap = new Map();
|
|
77
|
+
const roots = [];
|
|
78
|
+
|
|
79
|
+
// Create nodes
|
|
80
|
+
for (const entry of entries) {
|
|
81
|
+
nodeMap.set(entry.id, {
|
|
82
|
+
entry,
|
|
83
|
+
children: [],
|
|
84
|
+
label: labelMap.get(entry.id),
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Build parent-child relationships
|
|
89
|
+
for (const entry of entries) {
|
|
90
|
+
const node = nodeMap.get(entry.id);
|
|
91
|
+
if (entry.parentId === null || entry.parentId === undefined || entry.parentId === entry.id) {
|
|
92
|
+
roots.push(node);
|
|
93
|
+
} else {
|
|
94
|
+
const parent = nodeMap.get(entry.parentId);
|
|
95
|
+
if (parent) {
|
|
96
|
+
parent.children.push(node);
|
|
97
|
+
} else {
|
|
98
|
+
roots.push(node);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Sort children by timestamp
|
|
104
|
+
function sortChildren(node) {
|
|
105
|
+
node.children.sort(
|
|
106
|
+
(a, b) => new Date(a.entry.timestamp).getTime() - new Date(b.entry.timestamp).getTime(),
|
|
107
|
+
);
|
|
108
|
+
node.children.forEach(sortChildren);
|
|
109
|
+
}
|
|
110
|
+
roots.forEach(sortChildren);
|
|
111
|
+
|
|
112
|
+
return roots;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Build set of entry IDs on path from root to target.
|
|
117
|
+
*/
|
|
118
|
+
function buildActivePathIds(targetId) {
|
|
119
|
+
const ids = new Set();
|
|
120
|
+
let current = byId.get(targetId);
|
|
121
|
+
while (current) {
|
|
122
|
+
ids.add(current.id);
|
|
123
|
+
// Stop if no parent or self-referencing (root)
|
|
124
|
+
if (!current.parentId || current.parentId === current.id) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
current = byId.get(current.parentId);
|
|
128
|
+
}
|
|
129
|
+
return ids;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Get array of entries from root to target (the conversation path).
|
|
134
|
+
*/
|
|
135
|
+
function getPath(targetId) {
|
|
136
|
+
const path = [];
|
|
137
|
+
let current = byId.get(targetId);
|
|
138
|
+
while (current) {
|
|
139
|
+
path.unshift(current);
|
|
140
|
+
// Stop if no parent or self-referencing (root)
|
|
141
|
+
if (!current.parentId || current.parentId === current.id) {
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
current = byId.get(current.parentId);
|
|
145
|
+
}
|
|
146
|
+
return path;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Tree node lookup for finding leaves
|
|
150
|
+
let treeNodeMap = null;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Find the newest leaf node reachable from a given node.
|
|
154
|
+
* This allows clicking any node in a branch to show the full branch.
|
|
155
|
+
* Children are sorted by timestamp, so the newest is always last.
|
|
156
|
+
*/
|
|
157
|
+
function findNewestLeaf(nodeId) {
|
|
158
|
+
// Build tree node map lazily
|
|
159
|
+
if (!treeNodeMap) {
|
|
160
|
+
treeNodeMap = new Map();
|
|
161
|
+
const tree = buildTree();
|
|
162
|
+
function mapNodes(node) {
|
|
163
|
+
treeNodeMap.set(node.entry.id, node);
|
|
164
|
+
node.children.forEach(mapNodes);
|
|
165
|
+
}
|
|
166
|
+
tree.forEach(mapNodes);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const node = treeNodeMap.get(nodeId);
|
|
170
|
+
if (!node) {
|
|
171
|
+
return nodeId;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Follow the newest (last) child at each level
|
|
175
|
+
let current = node;
|
|
176
|
+
while (current.children.length > 0) {
|
|
177
|
+
current = current.children[current.children.length - 1];
|
|
178
|
+
}
|
|
179
|
+
return current.entry.id;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Flatten tree into list with indentation and connector info.
|
|
184
|
+
* Returns array of { node, indent, showConnector, isLast, gutters, isVirtualRootChild, multipleRoots }.
|
|
185
|
+
* Matches tree-selector.ts logic exactly.
|
|
186
|
+
*/
|
|
187
|
+
function flattenTree(roots, activePathIds) {
|
|
188
|
+
const result = [];
|
|
189
|
+
const multipleRoots = roots.length > 1;
|
|
190
|
+
|
|
191
|
+
// Mark which subtrees contain the active leaf
|
|
192
|
+
const containsActive = new Map();
|
|
193
|
+
function markActive(node) {
|
|
194
|
+
let has = activePathIds.has(node.entry.id);
|
|
195
|
+
for (const child of node.children) {
|
|
196
|
+
if (markActive(child)) {
|
|
197
|
+
has = true;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
containsActive.set(node, has);
|
|
201
|
+
return has;
|
|
202
|
+
}
|
|
203
|
+
roots.forEach(markActive);
|
|
204
|
+
|
|
205
|
+
// Stack: [node, indent, justBranched, showConnector, isLast, gutters, isVirtualRootChild]
|
|
206
|
+
const stack = [];
|
|
207
|
+
|
|
208
|
+
// Add roots (prioritize branch containing active leaf)
|
|
209
|
+
const orderedRoots = [...roots].toSorted(
|
|
210
|
+
(a, b) => Number(containsActive.get(b)) - Number(containsActive.get(a)),
|
|
211
|
+
);
|
|
212
|
+
for (let i = orderedRoots.length - 1; i >= 0; i--) {
|
|
213
|
+
const isLast = i === orderedRoots.length - 1;
|
|
214
|
+
stack.push([
|
|
215
|
+
orderedRoots[i],
|
|
216
|
+
multipleRoots ? 1 : 0,
|
|
217
|
+
multipleRoots,
|
|
218
|
+
multipleRoots,
|
|
219
|
+
isLast,
|
|
220
|
+
[],
|
|
221
|
+
multipleRoots,
|
|
222
|
+
]);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
while (stack.length > 0) {
|
|
226
|
+
const [node, indent, justBranched, showConnector, isLast, gutters, isVirtualRootChild] =
|
|
227
|
+
stack.pop();
|
|
228
|
+
|
|
229
|
+
result.push({
|
|
230
|
+
node,
|
|
231
|
+
indent,
|
|
232
|
+
showConnector,
|
|
233
|
+
isLast,
|
|
234
|
+
gutters,
|
|
235
|
+
isVirtualRootChild,
|
|
236
|
+
multipleRoots,
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
const children = node.children;
|
|
240
|
+
const multipleChildren = children.length > 1;
|
|
241
|
+
|
|
242
|
+
// Order children (active branch first)
|
|
243
|
+
const orderedChildren = [...children].toSorted(
|
|
244
|
+
(a, b) => Number(containsActive.get(b)) - Number(containsActive.get(a)),
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
// Calculate child indent (matches tree-selector.ts)
|
|
248
|
+
let childIndent;
|
|
249
|
+
if (multipleChildren) {
|
|
250
|
+
// Parent branches: children get +1
|
|
251
|
+
childIndent = indent + 1;
|
|
252
|
+
} else if (justBranched && indent > 0) {
|
|
253
|
+
// First generation after a branch: +1 for visual grouping
|
|
254
|
+
childIndent = indent + 1;
|
|
255
|
+
} else {
|
|
256
|
+
// Single-child chain: stay flat
|
|
257
|
+
childIndent = indent;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Build gutters for children
|
|
261
|
+
const connectorDisplayed = showConnector && !isVirtualRootChild;
|
|
262
|
+
const currentDisplayIndent = multipleRoots ? Math.max(0, indent - 1) : indent;
|
|
263
|
+
const connectorPosition = Math.max(0, currentDisplayIndent - 1);
|
|
264
|
+
const childGutters = connectorDisplayed
|
|
265
|
+
? [...gutters, { position: connectorPosition, show: !isLast }]
|
|
266
|
+
: gutters;
|
|
267
|
+
|
|
268
|
+
// Add children in reverse order for stack
|
|
269
|
+
for (let i = orderedChildren.length - 1; i >= 0; i--) {
|
|
270
|
+
const childIsLast = i === orderedChildren.length - 1;
|
|
271
|
+
stack.push([
|
|
272
|
+
orderedChildren[i],
|
|
273
|
+
childIndent,
|
|
274
|
+
multipleChildren,
|
|
275
|
+
multipleChildren,
|
|
276
|
+
childIsLast,
|
|
277
|
+
childGutters,
|
|
278
|
+
false,
|
|
279
|
+
]);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return result;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Build ASCII prefix string for tree node.
|
|
288
|
+
*/
|
|
289
|
+
function buildTreePrefix(flatNode) {
|
|
290
|
+
const { indent, showConnector, isLast, gutters, isVirtualRootChild, multipleRoots } = flatNode;
|
|
291
|
+
const displayIndent = multipleRoots ? Math.max(0, indent - 1) : indent;
|
|
292
|
+
const connector = showConnector && !isVirtualRootChild ? (isLast ? "└─ " : "├─ ") : "";
|
|
293
|
+
const connectorPosition = connector ? displayIndent - 1 : -1;
|
|
294
|
+
|
|
295
|
+
const totalChars = displayIndent * 3;
|
|
296
|
+
const prefixChars = [];
|
|
297
|
+
for (let i = 0; i < totalChars; i++) {
|
|
298
|
+
const level = Math.floor(i / 3);
|
|
299
|
+
const posInLevel = i % 3;
|
|
300
|
+
|
|
301
|
+
const gutter = gutters.find((g) => g.position === level);
|
|
302
|
+
if (gutter) {
|
|
303
|
+
prefixChars.push(posInLevel === 0 ? (gutter.show ? "│" : " ") : " ");
|
|
304
|
+
} else if (connector && level === connectorPosition) {
|
|
305
|
+
if (posInLevel === 0) {
|
|
306
|
+
prefixChars.push(isLast ? "└" : "├");
|
|
307
|
+
} else if (posInLevel === 1) {
|
|
308
|
+
prefixChars.push("─");
|
|
309
|
+
} else {
|
|
310
|
+
prefixChars.push(" ");
|
|
311
|
+
}
|
|
312
|
+
} else {
|
|
313
|
+
prefixChars.push(" ");
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return prefixChars.join("");
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// ============================================================
|
|
320
|
+
// FILTERING (pure data)
|
|
321
|
+
// ============================================================
|
|
322
|
+
|
|
323
|
+
let filterMode = "default";
|
|
324
|
+
let searchQuery = "";
|
|
325
|
+
|
|
326
|
+
function hasTextContent(content) {
|
|
327
|
+
if (typeof content === "string") {
|
|
328
|
+
return content.trim().length > 0;
|
|
329
|
+
}
|
|
330
|
+
if (Array.isArray(content)) {
|
|
331
|
+
for (const c of content) {
|
|
332
|
+
if (c.type === "text" && c.text && c.text.trim().length > 0) {
|
|
333
|
+
return true;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
return false;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
function extractContent(content) {
|
|
341
|
+
if (typeof content === "string") {
|
|
342
|
+
return content;
|
|
343
|
+
}
|
|
344
|
+
if (Array.isArray(content)) {
|
|
345
|
+
return content
|
|
346
|
+
.filter((c) => c.type === "text" && c.text)
|
|
347
|
+
.map((c) => c.text)
|
|
348
|
+
.join("");
|
|
349
|
+
}
|
|
350
|
+
return "";
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
function getSearchableText(entry, label) {
|
|
354
|
+
const parts = [];
|
|
355
|
+
if (label) {
|
|
356
|
+
parts.push(label);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
switch (entry.type) {
|
|
360
|
+
case "message": {
|
|
361
|
+
const msg = entry.message;
|
|
362
|
+
parts.push(msg.role);
|
|
363
|
+
if (msg.content) {
|
|
364
|
+
parts.push(extractContent(msg.content));
|
|
365
|
+
}
|
|
366
|
+
if (msg.role === "bashExecution" && msg.command) {
|
|
367
|
+
parts.push(msg.command);
|
|
368
|
+
}
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
case "custom_message":
|
|
372
|
+
parts.push(entry.customType);
|
|
373
|
+
parts.push(
|
|
374
|
+
typeof entry.content === "string" ? entry.content : extractContent(entry.content),
|
|
375
|
+
);
|
|
376
|
+
break;
|
|
377
|
+
case "compaction":
|
|
378
|
+
parts.push("compaction");
|
|
379
|
+
break;
|
|
380
|
+
case "branch_summary":
|
|
381
|
+
parts.push("branch summary", entry.summary);
|
|
382
|
+
break;
|
|
383
|
+
case "model_change":
|
|
384
|
+
parts.push("model", entry.modelId);
|
|
385
|
+
break;
|
|
386
|
+
case "thinking_level_change":
|
|
387
|
+
parts.push("thinking", entry.thinkingLevel);
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
return parts.join(" ").toLowerCase();
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Filter flat nodes based on current filterMode and searchQuery.
|
|
396
|
+
*/
|
|
397
|
+
function filterNodes(flatNodes, currentLeafId) {
|
|
398
|
+
const searchTokens = searchQuery.toLowerCase().split(/\s+/).filter(Boolean);
|
|
399
|
+
|
|
400
|
+
const filtered = flatNodes.filter((flatNode) => {
|
|
401
|
+
const entry = flatNode.node.entry;
|
|
402
|
+
const label = flatNode.node.label;
|
|
403
|
+
const isCurrentLeaf = entry.id === currentLeafId;
|
|
404
|
+
|
|
405
|
+
// Always show current leaf
|
|
406
|
+
if (isCurrentLeaf) {
|
|
407
|
+
return true;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
// Hide assistant messages with only tool calls (no text) unless error/aborted
|
|
411
|
+
if (entry.type === "message" && entry.message.role === "assistant") {
|
|
412
|
+
const msg = entry.message;
|
|
413
|
+
const hasText = hasTextContent(msg.content);
|
|
414
|
+
const isErrorOrAborted =
|
|
415
|
+
msg.stopReason && msg.stopReason !== "stop" && msg.stopReason !== "toolUse";
|
|
416
|
+
if (!hasText && !isErrorOrAborted) {
|
|
417
|
+
return false;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
// Apply filter mode
|
|
422
|
+
const isSettingsEntry = ["label", "custom", "model_change", "thinking_level_change"].includes(
|
|
423
|
+
entry.type,
|
|
424
|
+
);
|
|
425
|
+
let passesFilter = true;
|
|
426
|
+
|
|
427
|
+
switch (filterMode) {
|
|
428
|
+
case "user-only":
|
|
429
|
+
passesFilter = entry.type === "message" && entry.message.role === "user";
|
|
430
|
+
break;
|
|
431
|
+
case "no-tools":
|
|
432
|
+
passesFilter =
|
|
433
|
+
!isSettingsEntry && !(entry.type === "message" && entry.message.role === "toolResult");
|
|
434
|
+
break;
|
|
435
|
+
case "labeled-only":
|
|
436
|
+
passesFilter = label !== undefined;
|
|
437
|
+
break;
|
|
438
|
+
case "all":
|
|
439
|
+
passesFilter = true;
|
|
440
|
+
break;
|
|
441
|
+
default: // 'default'
|
|
442
|
+
passesFilter = !isSettingsEntry;
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
if (!passesFilter) {
|
|
447
|
+
return false;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
// Apply search filter
|
|
451
|
+
if (searchTokens.length > 0) {
|
|
452
|
+
const nodeText = getSearchableText(entry, label);
|
|
453
|
+
if (!searchTokens.every((t) => nodeText.includes(t))) {
|
|
454
|
+
return false;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
return true;
|
|
459
|
+
});
|
|
460
|
+
|
|
461
|
+
// Recalculate visual structure based on visible tree
|
|
462
|
+
recalculateVisualStructure(filtered, flatNodes);
|
|
463
|
+
|
|
464
|
+
return filtered;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Recompute indentation/connectors for the filtered view
|
|
469
|
+
*
|
|
470
|
+
* Filtering can hide intermediate entries; descendants attach to the nearest visible ancestor.
|
|
471
|
+
* Keep indentation semantics aligned with flattenTree() so single-child chains don't drift right.
|
|
472
|
+
*/
|
|
473
|
+
function recalculateVisualStructure(filteredNodes, allFlatNodes) {
|
|
474
|
+
if (filteredNodes.length === 0) {
|
|
475
|
+
return;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
const visibleIds = new Set(filteredNodes.map((n) => n.node.entry.id));
|
|
479
|
+
|
|
480
|
+
// Build entry map for parent lookup (using full tree)
|
|
481
|
+
const entryMap = new Map();
|
|
482
|
+
for (const flatNode of allFlatNodes) {
|
|
483
|
+
entryMap.set(flatNode.node.entry.id, flatNode);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
// Find nearest visible ancestor for a node
|
|
487
|
+
function findVisibleAncestor(nodeId) {
|
|
488
|
+
let currentId = entryMap.get(nodeId)?.node.entry.parentId;
|
|
489
|
+
while (currentId != null) {
|
|
490
|
+
if (visibleIds.has(currentId)) {
|
|
491
|
+
return currentId;
|
|
492
|
+
}
|
|
493
|
+
currentId = entryMap.get(currentId)?.node.entry.parentId;
|
|
494
|
+
}
|
|
495
|
+
return null;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// Build visible tree structure
|
|
499
|
+
const visibleParent = new Map();
|
|
500
|
+
const visibleChildren = new Map();
|
|
501
|
+
visibleChildren.set(null, []); // root-level nodes
|
|
502
|
+
|
|
503
|
+
for (const flatNode of filteredNodes) {
|
|
504
|
+
const nodeId = flatNode.node.entry.id;
|
|
505
|
+
const ancestorId = findVisibleAncestor(nodeId);
|
|
506
|
+
visibleParent.set(nodeId, ancestorId);
|
|
507
|
+
|
|
508
|
+
if (!visibleChildren.has(ancestorId)) {
|
|
509
|
+
visibleChildren.set(ancestorId, []);
|
|
510
|
+
}
|
|
511
|
+
visibleChildren.get(ancestorId).push(nodeId);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// Update multipleRoots based on visible roots
|
|
515
|
+
const visibleRootIds = visibleChildren.get(null);
|
|
516
|
+
const multipleRoots = visibleRootIds.length > 1;
|
|
517
|
+
|
|
518
|
+
// Build a map for quick lookup: nodeId → FlatNode
|
|
519
|
+
const filteredNodeMap = new Map();
|
|
520
|
+
for (const flatNode of filteredNodes) {
|
|
521
|
+
filteredNodeMap.set(flatNode.node.entry.id, flatNode);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
// DFS traversal of visible tree, applying same indentation rules as flattenTree()
|
|
525
|
+
// Stack items: [nodeId, indent, justBranched, showConnector, isLast, gutters, isVirtualRootChild]
|
|
526
|
+
const stack = [];
|
|
527
|
+
|
|
528
|
+
// Add visible roots in reverse order (to process in forward order via stack)
|
|
529
|
+
for (let i = visibleRootIds.length - 1; i >= 0; i--) {
|
|
530
|
+
const isLast = i === visibleRootIds.length - 1;
|
|
531
|
+
stack.push([
|
|
532
|
+
visibleRootIds[i],
|
|
533
|
+
multipleRoots ? 1 : 0,
|
|
534
|
+
multipleRoots,
|
|
535
|
+
multipleRoots,
|
|
536
|
+
isLast,
|
|
537
|
+
[],
|
|
538
|
+
multipleRoots,
|
|
539
|
+
]);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
while (stack.length > 0) {
|
|
543
|
+
const [nodeId, indent, justBranched, showConnector, isLast, gutters, isVirtualRootChild] =
|
|
544
|
+
stack.pop();
|
|
545
|
+
|
|
546
|
+
const flatNode = filteredNodeMap.get(nodeId);
|
|
547
|
+
if (!flatNode) {
|
|
548
|
+
continue;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// Update this node's visual properties
|
|
552
|
+
flatNode.indent = indent;
|
|
553
|
+
flatNode.showConnector = showConnector;
|
|
554
|
+
flatNode.isLast = isLast;
|
|
555
|
+
flatNode.gutters = gutters;
|
|
556
|
+
flatNode.isVirtualRootChild = isVirtualRootChild;
|
|
557
|
+
flatNode.multipleRoots = multipleRoots;
|
|
558
|
+
|
|
559
|
+
// Get visible children of this node
|
|
560
|
+
const children = visibleChildren.get(nodeId) || [];
|
|
561
|
+
const multipleChildren = children.length > 1;
|
|
562
|
+
|
|
563
|
+
// Calculate child indent using same rules as flattenTree():
|
|
564
|
+
// - Parent branches (multiple children): children get +1
|
|
565
|
+
// - Just branched and indent > 0: children get +1 for visual grouping
|
|
566
|
+
// - Single-child chain: stay flat
|
|
567
|
+
let childIndent;
|
|
568
|
+
if (multipleChildren) {
|
|
569
|
+
childIndent = indent + 1;
|
|
570
|
+
} else if (justBranched && indent > 0) {
|
|
571
|
+
childIndent = indent + 1;
|
|
572
|
+
} else {
|
|
573
|
+
childIndent = indent;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
// Build gutters for children (same logic as flattenTree)
|
|
577
|
+
const connectorDisplayed = showConnector && !isVirtualRootChild;
|
|
578
|
+
const currentDisplayIndent = multipleRoots ? Math.max(0, indent - 1) : indent;
|
|
579
|
+
const connectorPosition = Math.max(0, currentDisplayIndent - 1);
|
|
580
|
+
const childGutters = connectorDisplayed
|
|
581
|
+
? [...gutters, { position: connectorPosition, show: !isLast }]
|
|
582
|
+
: gutters;
|
|
583
|
+
|
|
584
|
+
// Add children in reverse order (to process in forward order via stack)
|
|
585
|
+
for (let i = children.length - 1; i >= 0; i--) {
|
|
586
|
+
const childIsLast = i === children.length - 1;
|
|
587
|
+
stack.push([
|
|
588
|
+
children[i],
|
|
589
|
+
childIndent,
|
|
590
|
+
multipleChildren,
|
|
591
|
+
multipleChildren,
|
|
592
|
+
childIsLast,
|
|
593
|
+
childGutters,
|
|
594
|
+
false,
|
|
595
|
+
]);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
// ============================================================
|
|
601
|
+
// TREE DISPLAY TEXT (pure data -> string)
|
|
602
|
+
// ============================================================
|
|
603
|
+
|
|
604
|
+
function shortenPath(p) {
|
|
605
|
+
if (typeof p !== "string") {
|
|
606
|
+
return "";
|
|
607
|
+
}
|
|
608
|
+
if (p.startsWith("/Users/")) {
|
|
609
|
+
const parts = p.split("/");
|
|
610
|
+
if (parts.length > 2) {
|
|
611
|
+
return "~" + p.slice(("/Users/" + parts[2]).length);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
if (p.startsWith("/home/")) {
|
|
615
|
+
const parts = p.split("/");
|
|
616
|
+
if (parts.length > 2) {
|
|
617
|
+
return "~" + p.slice(("/home/" + parts[2]).length);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
return p;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
function formatToolCall(name, args) {
|
|
624
|
+
switch (name) {
|
|
625
|
+
case "read": {
|
|
626
|
+
const path = shortenPath(String(args.path || args.file_path || ""));
|
|
627
|
+
const offset = args.offset;
|
|
628
|
+
const limit = args.limit;
|
|
629
|
+
let display = path;
|
|
630
|
+
if (offset !== undefined || limit !== undefined) {
|
|
631
|
+
const start = offset ?? 1;
|
|
632
|
+
const end = limit !== undefined ? start + limit - 1 : "";
|
|
633
|
+
display += `:${start}${end ? `-${end}` : ""}`;
|
|
634
|
+
}
|
|
635
|
+
return `[read: ${display}]`;
|
|
636
|
+
}
|
|
637
|
+
case "write":
|
|
638
|
+
return `[write: ${shortenPath(String(args.path || args.file_path || ""))}]`;
|
|
639
|
+
case "edit":
|
|
640
|
+
return `[edit: ${shortenPath(String(args.path || args.file_path || ""))}]`;
|
|
641
|
+
case "bash": {
|
|
642
|
+
const rawCmd = String(args.command || "");
|
|
643
|
+
const cmd = rawCmd
|
|
644
|
+
.replace(/[\n\t]/g, " ")
|
|
645
|
+
.trim()
|
|
646
|
+
.slice(0, 50);
|
|
647
|
+
return `[bash: ${cmd}${rawCmd.length > 50 ? "..." : ""}]`;
|
|
648
|
+
}
|
|
649
|
+
case "grep":
|
|
650
|
+
return `[grep: /${args.pattern || ""}/ in ${shortenPath(String(args.path || "."))}]`;
|
|
651
|
+
case "find":
|
|
652
|
+
return `[find: ${args.pattern || ""} in ${shortenPath(String(args.path || "."))}]`;
|
|
653
|
+
case "ls":
|
|
654
|
+
return `[ls: ${shortenPath(String(args.path || "."))}]`;
|
|
655
|
+
default: {
|
|
656
|
+
const argsStr = JSON.stringify(args).slice(0, 40);
|
|
657
|
+
return `[${name}: ${argsStr}${JSON.stringify(args).length > 40 ? "..." : ""}]`;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
function escapeHtml(text) {
|
|
663
|
+
const div = document.createElement("div");
|
|
664
|
+
div.textContent = text;
|
|
665
|
+
return div.innerHTML;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Truncate string to maxLen chars, append "..." if truncated.
|
|
670
|
+
*/
|
|
671
|
+
function truncate(s, maxLen = 100) {
|
|
672
|
+
if (s.length <= maxLen) {
|
|
673
|
+
return s;
|
|
674
|
+
}
|
|
675
|
+
return s.slice(0, maxLen) + "...";
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Get display text for tree node (returns HTML string).
|
|
680
|
+
*/
|
|
681
|
+
function getTreeNodeDisplayHtml(entry, label) {
|
|
682
|
+
const normalize = (s) => s.replace(/[\n\t]/g, " ").trim();
|
|
683
|
+
const labelHtml = label ? `<span class="tree-label">[${escapeHtml(label)}]</span> ` : "";
|
|
684
|
+
|
|
685
|
+
switch (entry.type) {
|
|
686
|
+
case "message": {
|
|
687
|
+
const msg = entry.message;
|
|
688
|
+
if (msg.role === "user") {
|
|
689
|
+
const content = truncate(normalize(extractContent(msg.content)));
|
|
690
|
+
return labelHtml + `<span class="tree-role-user">user:</span> ${escapeHtml(content)}`;
|
|
691
|
+
}
|
|
692
|
+
if (msg.role === "assistant") {
|
|
693
|
+
const textContent = truncate(normalize(extractContent(msg.content)));
|
|
694
|
+
if (textContent) {
|
|
695
|
+
return (
|
|
696
|
+
labelHtml +
|
|
697
|
+
`<span class="tree-role-assistant">assistant:</span> ${escapeHtml(textContent)}`
|
|
698
|
+
);
|
|
699
|
+
}
|
|
700
|
+
if (msg.stopReason === "aborted") {
|
|
701
|
+
return (
|
|
702
|
+
labelHtml +
|
|
703
|
+
`<span class="tree-role-assistant">assistant:</span> <span class="tree-muted">(aborted)</span>`
|
|
704
|
+
);
|
|
705
|
+
}
|
|
706
|
+
if (msg.errorMessage) {
|
|
707
|
+
return (
|
|
708
|
+
labelHtml +
|
|
709
|
+
`<span class="tree-role-assistant">assistant:</span> <span class="tree-error">${escapeHtml(truncate(msg.errorMessage))}</span>`
|
|
710
|
+
);
|
|
711
|
+
}
|
|
712
|
+
return (
|
|
713
|
+
labelHtml +
|
|
714
|
+
`<span class="tree-role-assistant">assistant:</span> <span class="tree-muted">(no text)</span>`
|
|
715
|
+
);
|
|
716
|
+
}
|
|
717
|
+
if (msg.role === "toolResult") {
|
|
718
|
+
const toolCall = msg.toolCallId ? toolCallMap.get(msg.toolCallId) : null;
|
|
719
|
+
if (toolCall) {
|
|
720
|
+
return (
|
|
721
|
+
labelHtml +
|
|
722
|
+
`<span class="tree-role-tool">${escapeHtml(formatToolCall(toolCall.name, toolCall.arguments))}</span>`
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
return labelHtml + `<span class="tree-role-tool">[${msg.toolName || "tool"}]</span>`;
|
|
726
|
+
}
|
|
727
|
+
if (msg.role === "bashExecution") {
|
|
728
|
+
const cmd = truncate(normalize(msg.command || ""));
|
|
729
|
+
return labelHtml + `<span class="tree-role-tool">[bash]:</span> ${escapeHtml(cmd)}`;
|
|
730
|
+
}
|
|
731
|
+
return labelHtml + `<span class="tree-muted">[${msg.role}]</span>`;
|
|
732
|
+
}
|
|
733
|
+
case "compaction":
|
|
734
|
+
return (
|
|
735
|
+
labelHtml +
|
|
736
|
+
`<span class="tree-compaction">[compaction: ${Math.round(entry.tokensBefore / 1000)}k tokens]</span>`
|
|
737
|
+
);
|
|
738
|
+
case "branch_summary": {
|
|
739
|
+
const summary = truncate(normalize(entry.summary || ""));
|
|
740
|
+
return (
|
|
741
|
+
labelHtml +
|
|
742
|
+
`<span class="tree-branch-summary">[branch summary]:</span> ${escapeHtml(summary)}`
|
|
743
|
+
);
|
|
744
|
+
}
|
|
745
|
+
case "custom_message": {
|
|
746
|
+
const content =
|
|
747
|
+
typeof entry.content === "string" ? entry.content : extractContent(entry.content);
|
|
748
|
+
return (
|
|
749
|
+
labelHtml +
|
|
750
|
+
`<span class="tree-custom">[${escapeHtml(entry.customType)}]:</span> ${escapeHtml(truncate(normalize(content)))}`
|
|
751
|
+
);
|
|
752
|
+
}
|
|
753
|
+
case "model_change":
|
|
754
|
+
return labelHtml + `<span class="tree-muted">[model: ${entry.modelId}]</span>`;
|
|
755
|
+
case "thinking_level_change":
|
|
756
|
+
return labelHtml + `<span class="tree-muted">[thinking: ${entry.thinkingLevel}]</span>`;
|
|
757
|
+
default:
|
|
758
|
+
return labelHtml + `<span class="tree-muted">[${entry.type}]</span>`;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// ============================================================
|
|
763
|
+
// TREE RENDERING (DOM manipulation)
|
|
764
|
+
// ============================================================
|
|
765
|
+
|
|
766
|
+
let currentLeafId = leafId;
|
|
767
|
+
let currentTargetId = urlTargetId || leafId;
|
|
768
|
+
let treeRendered = false;
|
|
769
|
+
|
|
770
|
+
function renderTree() {
|
|
771
|
+
const tree = buildTree();
|
|
772
|
+
const activePathIds = buildActivePathIds(currentLeafId);
|
|
773
|
+
const flatNodes = flattenTree(tree, activePathIds);
|
|
774
|
+
const filtered = filterNodes(flatNodes, currentLeafId);
|
|
775
|
+
const container = document.getElementById("tree-container");
|
|
776
|
+
|
|
777
|
+
// Full render only on first call or when filter/search changes
|
|
778
|
+
if (!treeRendered) {
|
|
779
|
+
container.innerHTML = "";
|
|
780
|
+
|
|
781
|
+
for (const flatNode of filtered) {
|
|
782
|
+
const entry = flatNode.node.entry;
|
|
783
|
+
const isOnPath = activePathIds.has(entry.id);
|
|
784
|
+
const isTarget = entry.id === currentTargetId;
|
|
785
|
+
|
|
786
|
+
const div = document.createElement("div");
|
|
787
|
+
div.className = "tree-node";
|
|
788
|
+
if (isOnPath) {
|
|
789
|
+
div.classList.add("in-path");
|
|
790
|
+
}
|
|
791
|
+
if (isTarget) {
|
|
792
|
+
div.classList.add("active");
|
|
793
|
+
}
|
|
794
|
+
div.dataset.id = entry.id;
|
|
795
|
+
|
|
796
|
+
const prefix = buildTreePrefix(flatNode);
|
|
797
|
+
const prefixSpan = document.createElement("span");
|
|
798
|
+
prefixSpan.className = "tree-prefix";
|
|
799
|
+
prefixSpan.textContent = prefix;
|
|
800
|
+
|
|
801
|
+
const marker = document.createElement("span");
|
|
802
|
+
marker.className = "tree-marker";
|
|
803
|
+
marker.textContent = isOnPath ? "•" : " ";
|
|
804
|
+
|
|
805
|
+
const content = document.createElement("span");
|
|
806
|
+
content.className = "tree-content";
|
|
807
|
+
content.innerHTML = getTreeNodeDisplayHtml(entry, flatNode.node.label);
|
|
808
|
+
|
|
809
|
+
div.appendChild(prefixSpan);
|
|
810
|
+
div.appendChild(marker);
|
|
811
|
+
div.appendChild(content);
|
|
812
|
+
// Navigate to the newest leaf through this node, but scroll to the clicked node
|
|
813
|
+
div.addEventListener("click", () => {
|
|
814
|
+
const leafId = findNewestLeaf(entry.id);
|
|
815
|
+
navigateTo(leafId, "target", entry.id);
|
|
816
|
+
});
|
|
817
|
+
|
|
818
|
+
container.appendChild(div);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
treeRendered = true;
|
|
822
|
+
} else {
|
|
823
|
+
// Just update markers and classes
|
|
824
|
+
const nodes = container.querySelectorAll(".tree-node");
|
|
825
|
+
for (const node of nodes) {
|
|
826
|
+
const id = node.dataset.id;
|
|
827
|
+
const isOnPath = activePathIds.has(id);
|
|
828
|
+
const isTarget = id === currentTargetId;
|
|
829
|
+
|
|
830
|
+
node.classList.toggle("in-path", isOnPath);
|
|
831
|
+
node.classList.toggle("active", isTarget);
|
|
832
|
+
|
|
833
|
+
const marker = node.querySelector(".tree-marker");
|
|
834
|
+
if (marker) {
|
|
835
|
+
marker.textContent = isOnPath ? "•" : " ";
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
document.getElementById("tree-status").textContent =
|
|
841
|
+
`${filtered.length} / ${flatNodes.length} entries`;
|
|
842
|
+
|
|
843
|
+
// Scroll active node into view after layout
|
|
844
|
+
setTimeout(() => {
|
|
845
|
+
const activeNode = container.querySelector(".tree-node.active");
|
|
846
|
+
if (activeNode) {
|
|
847
|
+
activeNode.scrollIntoView({ block: "nearest" });
|
|
848
|
+
}
|
|
849
|
+
}, 0);
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
function forceTreeRerender() {
|
|
853
|
+
treeRendered = false;
|
|
854
|
+
renderTree();
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
// ============================================================
|
|
858
|
+
// MESSAGE RENDERING
|
|
859
|
+
// ============================================================
|
|
860
|
+
|
|
861
|
+
function formatTokens(count) {
|
|
862
|
+
if (count < 1000) {
|
|
863
|
+
return count.toString();
|
|
864
|
+
}
|
|
865
|
+
if (count < 10000) {
|
|
866
|
+
return (count / 1000).toFixed(1) + "k";
|
|
867
|
+
}
|
|
868
|
+
if (count < 1000000) {
|
|
869
|
+
return Math.round(count / 1000) + "k";
|
|
870
|
+
}
|
|
871
|
+
return (count / 1000000).toFixed(1) + "M";
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
function formatTimestamp(ts) {
|
|
875
|
+
if (!ts) {
|
|
876
|
+
return "";
|
|
877
|
+
}
|
|
878
|
+
const date = new Date(ts);
|
|
879
|
+
return date.toLocaleTimeString(undefined, {
|
|
880
|
+
hour: "2-digit",
|
|
881
|
+
minute: "2-digit",
|
|
882
|
+
second: "2-digit",
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
function replaceTabs(text) {
|
|
887
|
+
return text.replace(/\t/g, " ");
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/** Safely coerce value to string for display. Returns null if invalid type. */
|
|
891
|
+
function str(value) {
|
|
892
|
+
if (typeof value === "string") {
|
|
893
|
+
return value;
|
|
894
|
+
}
|
|
895
|
+
if (value == null) {
|
|
896
|
+
return "";
|
|
897
|
+
}
|
|
898
|
+
return null;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
function getLanguageFromPath(filePath) {
|
|
902
|
+
const ext = filePath.split(".").pop()?.toLowerCase();
|
|
903
|
+
const extToLang = {
|
|
904
|
+
ts: "typescript",
|
|
905
|
+
tsx: "typescript",
|
|
906
|
+
js: "javascript",
|
|
907
|
+
jsx: "javascript",
|
|
908
|
+
py: "python",
|
|
909
|
+
rb: "ruby",
|
|
910
|
+
rs: "rust",
|
|
911
|
+
go: "go",
|
|
912
|
+
java: "java",
|
|
913
|
+
c: "c",
|
|
914
|
+
cpp: "cpp",
|
|
915
|
+
h: "c",
|
|
916
|
+
hpp: "cpp",
|
|
917
|
+
cs: "csharp",
|
|
918
|
+
php: "php",
|
|
919
|
+
sh: "bash",
|
|
920
|
+
bash: "bash",
|
|
921
|
+
zsh: "bash",
|
|
922
|
+
sql: "sql",
|
|
923
|
+
html: "html",
|
|
924
|
+
css: "css",
|
|
925
|
+
scss: "scss",
|
|
926
|
+
json: "json",
|
|
927
|
+
yaml: "yaml",
|
|
928
|
+
yml: "yaml",
|
|
929
|
+
xml: "xml",
|
|
930
|
+
md: "markdown",
|
|
931
|
+
dockerfile: "dockerfile",
|
|
932
|
+
};
|
|
933
|
+
return extToLang[ext];
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
function findToolResult(toolCallId) {
|
|
937
|
+
for (const entry of entries) {
|
|
938
|
+
if (entry.type === "message" && entry.message.role === "toolResult") {
|
|
939
|
+
if (entry.message.toolCallId === toolCallId) {
|
|
940
|
+
return entry.message;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
return null;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
function formatExpandableOutput(text, maxLines, lang) {
|
|
948
|
+
text = replaceTabs(text);
|
|
949
|
+
const lines = text.split("\n");
|
|
950
|
+
const displayLines = lines.slice(0, maxLines);
|
|
951
|
+
const remaining = lines.length - maxLines;
|
|
952
|
+
|
|
953
|
+
if (lang) {
|
|
954
|
+
let highlighted;
|
|
955
|
+
try {
|
|
956
|
+
highlighted = hljs.highlight(text, { language: lang }).value;
|
|
957
|
+
} catch {
|
|
958
|
+
highlighted = escapeHtml(text);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
if (remaining > 0) {
|
|
962
|
+
const previewCode = displayLines.join("\n");
|
|
963
|
+
let previewHighlighted;
|
|
964
|
+
try {
|
|
965
|
+
previewHighlighted = hljs.highlight(previewCode, { language: lang }).value;
|
|
966
|
+
} catch {
|
|
967
|
+
previewHighlighted = escapeHtml(previewCode);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
return `<div class="tool-output expandable" onclick="this.classList.toggle('expanded')">
|
|
971
|
+
<div class="output-preview"><pre><code class="hljs">${previewHighlighted}</code></pre>
|
|
972
|
+
<div class="expand-hint">... (${remaining} more lines)</div></div>
|
|
973
|
+
<div class="output-full"><pre><code class="hljs">${highlighted}</code></pre></div></div>`;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
return `<div class="tool-output"><pre><code class="hljs">${highlighted}</code></pre></div>`;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
// Plain text output
|
|
980
|
+
if (remaining > 0) {
|
|
981
|
+
let out =
|
|
982
|
+
'<div class="tool-output expandable" onclick="this.classList.toggle(\'expanded\')">';
|
|
983
|
+
out += '<div class="output-preview">';
|
|
984
|
+
for (const line of displayLines) {
|
|
985
|
+
out += `<div>${escapeHtml(replaceTabs(line))}</div>`;
|
|
986
|
+
}
|
|
987
|
+
out += `<div class="expand-hint">... (${remaining} more lines)</div></div>`;
|
|
988
|
+
out += '<div class="output-full">';
|
|
989
|
+
for (const line of lines) {
|
|
990
|
+
out += `<div>${escapeHtml(replaceTabs(line))}</div>`;
|
|
991
|
+
}
|
|
992
|
+
out += "</div></div>";
|
|
993
|
+
return out;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
let out = '<div class="tool-output">';
|
|
997
|
+
for (const line of displayLines) {
|
|
998
|
+
out += `<div>${escapeHtml(replaceTabs(line))}</div>`;
|
|
999
|
+
}
|
|
1000
|
+
out += "</div>";
|
|
1001
|
+
return out;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
function renderToolCall(call) {
|
|
1005
|
+
const result = findToolResult(call.id);
|
|
1006
|
+
const isError = result?.isError || false;
|
|
1007
|
+
const statusClass = result ? (isError ? "error" : "success") : "pending";
|
|
1008
|
+
|
|
1009
|
+
const getResultText = () => {
|
|
1010
|
+
if (!result) {
|
|
1011
|
+
return "";
|
|
1012
|
+
}
|
|
1013
|
+
const textBlocks = result.content.filter((c) => c.type === "text");
|
|
1014
|
+
return textBlocks.map((c) => c.text).join("\n");
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
const getResultImages = () => {
|
|
1018
|
+
if (!result) {
|
|
1019
|
+
return [];
|
|
1020
|
+
}
|
|
1021
|
+
return result.content.filter((c) => c.type === "image");
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
const renderResultImages = () => {
|
|
1025
|
+
const images = getResultImages();
|
|
1026
|
+
if (images.length === 0) {
|
|
1027
|
+
return "";
|
|
1028
|
+
}
|
|
1029
|
+
return (
|
|
1030
|
+
'<div class="tool-images">' +
|
|
1031
|
+
images
|
|
1032
|
+
.map((img) => `<img src="data:${img.mimeType};base64,${img.data}" class="tool-image" />`)
|
|
1033
|
+
.join("") +
|
|
1034
|
+
"</div>"
|
|
1035
|
+
);
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
let html = `<div class="tool-execution ${statusClass}">`;
|
|
1039
|
+
const args = call.arguments || {};
|
|
1040
|
+
const name = call.name;
|
|
1041
|
+
|
|
1042
|
+
const invalidArg = '<span class="tool-error">[invalid arg]</span>';
|
|
1043
|
+
|
|
1044
|
+
switch (name) {
|
|
1045
|
+
case "bash": {
|
|
1046
|
+
const command = str(args.command);
|
|
1047
|
+
const cmdDisplay = command === null ? invalidArg : escapeHtml(command || "...");
|
|
1048
|
+
html += `<div class="tool-command">$ ${cmdDisplay}</div>`;
|
|
1049
|
+
if (result) {
|
|
1050
|
+
const output = getResultText().trim();
|
|
1051
|
+
if (output) {
|
|
1052
|
+
html += formatExpandableOutput(output, 5);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
break;
|
|
1056
|
+
}
|
|
1057
|
+
case "read": {
|
|
1058
|
+
const filePath = str(args.file_path ?? args.path);
|
|
1059
|
+
const offset = args.offset;
|
|
1060
|
+
const limit = args.limit;
|
|
1061
|
+
|
|
1062
|
+
let pathHtml = filePath === null ? invalidArg : escapeHtml(shortenPath(filePath || ""));
|
|
1063
|
+
if (filePath !== null && (offset !== undefined || limit !== undefined)) {
|
|
1064
|
+
const startLine = offset ?? 1;
|
|
1065
|
+
const endLine = limit !== undefined ? startLine + limit - 1 : "";
|
|
1066
|
+
pathHtml += `<span class="line-numbers">:${startLine}${endLine ? "-" + endLine : ""}</span>`;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
html += `<div class="tool-header"><span class="tool-name">read</span> <span class="tool-path">${pathHtml}</span></div>`;
|
|
1070
|
+
if (result) {
|
|
1071
|
+
html += renderResultImages();
|
|
1072
|
+
const output = getResultText();
|
|
1073
|
+
const lang = filePath ? getLanguageFromPath(filePath) : null;
|
|
1074
|
+
if (output) {
|
|
1075
|
+
html += formatExpandableOutput(output, 10, lang);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
break;
|
|
1079
|
+
}
|
|
1080
|
+
case "write": {
|
|
1081
|
+
const filePath = str(args.file_path ?? args.path);
|
|
1082
|
+
const content = str(args.content);
|
|
1083
|
+
|
|
1084
|
+
html += `<div class="tool-header"><span class="tool-name">write</span> <span class="tool-path">${filePath === null ? invalidArg : escapeHtml(shortenPath(filePath || ""))}</span>`;
|
|
1085
|
+
if (content !== null && content) {
|
|
1086
|
+
const lines = content.split("\n");
|
|
1087
|
+
if (lines.length > 10) {
|
|
1088
|
+
html += ` <span class="line-count">(${lines.length} lines)</span>`;
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
html += "</div>";
|
|
1092
|
+
|
|
1093
|
+
if (content === null) {
|
|
1094
|
+
html += `<div class="tool-error">[invalid content arg - expected string]</div>`;
|
|
1095
|
+
} else if (content) {
|
|
1096
|
+
const lang = filePath ? getLanguageFromPath(filePath) : null;
|
|
1097
|
+
html += formatExpandableOutput(content, 10, lang);
|
|
1098
|
+
}
|
|
1099
|
+
if (result) {
|
|
1100
|
+
const output = getResultText().trim();
|
|
1101
|
+
if (output) {
|
|
1102
|
+
html += `<div class="tool-output"><div>${escapeHtml(output)}</div></div>`;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
case "edit": {
|
|
1108
|
+
const filePath = str(args.file_path ?? args.path);
|
|
1109
|
+
html += `<div class="tool-header"><span class="tool-name">edit</span> <span class="tool-path">${filePath === null ? invalidArg : escapeHtml(shortenPath(filePath || ""))}</span></div>`;
|
|
1110
|
+
|
|
1111
|
+
if (result?.details?.diff) {
|
|
1112
|
+
const diffLines = result.details.diff.split("\n");
|
|
1113
|
+
html += '<div class="tool-diff">';
|
|
1114
|
+
for (const line of diffLines) {
|
|
1115
|
+
const cls = line.match(/^\+/)
|
|
1116
|
+
? "diff-added"
|
|
1117
|
+
: line.match(/^-/)
|
|
1118
|
+
? "diff-removed"
|
|
1119
|
+
: "diff-context";
|
|
1120
|
+
html += `<div class="${cls}">${escapeHtml(replaceTabs(line))}</div>`;
|
|
1121
|
+
}
|
|
1122
|
+
html += "</div>";
|
|
1123
|
+
} else if (result) {
|
|
1124
|
+
const output = getResultText().trim();
|
|
1125
|
+
if (output) {
|
|
1126
|
+
html += `<div class="tool-output"><pre>${escapeHtml(output)}</pre></div>`;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
break;
|
|
1130
|
+
}
|
|
1131
|
+
default: {
|
|
1132
|
+
// Check for pre-rendered custom tool HTML
|
|
1133
|
+
const rendered = renderedTools?.[call.id];
|
|
1134
|
+
if (rendered?.callHtml || rendered?.resultHtml) {
|
|
1135
|
+
// Custom tool with pre-rendered HTML from TUI renderer
|
|
1136
|
+
if (rendered.callHtml) {
|
|
1137
|
+
html += `<div class="tool-header ansi-rendered">${rendered.callHtml}</div>`;
|
|
1138
|
+
} else {
|
|
1139
|
+
html += `<div class="tool-header"><span class="tool-name">${escapeHtml(name)}</span></div>`;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
if (rendered.resultHtml) {
|
|
1143
|
+
// Apply same truncation as built-in tools (10 lines)
|
|
1144
|
+
const lines = rendered.resultHtml.split("\n");
|
|
1145
|
+
if (lines.length > 10) {
|
|
1146
|
+
const preview = lines.slice(0, 10).join("\n");
|
|
1147
|
+
html += `<div class="tool-output expandable ansi-rendered" onclick="this.classList.toggle('expanded')">
|
|
1148
|
+
<div class="output-preview">${preview}<div class="expand-hint">... (${lines.length - 10} more lines)</div></div>
|
|
1149
|
+
<div class="output-full">${rendered.resultHtml}</div>
|
|
1150
|
+
</div>`;
|
|
1151
|
+
} else {
|
|
1152
|
+
html += `<div class="tool-output ansi-rendered">${rendered.resultHtml}</div>`;
|
|
1153
|
+
}
|
|
1154
|
+
} else if (result) {
|
|
1155
|
+
// Fallback to JSON for result if no pre-rendered HTML
|
|
1156
|
+
const output = getResultText();
|
|
1157
|
+
if (output) {
|
|
1158
|
+
html += formatExpandableOutput(output, 10);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
} else {
|
|
1162
|
+
// Fallback to JSON display (existing behavior)
|
|
1163
|
+
html += `<div class="tool-header"><span class="tool-name">${escapeHtml(name)}</span></div>`;
|
|
1164
|
+
html += `<div class="tool-output"><pre>${escapeHtml(JSON.stringify(args, null, 2))}</pre></div>`;
|
|
1165
|
+
if (result) {
|
|
1166
|
+
const output = getResultText();
|
|
1167
|
+
if (output) {
|
|
1168
|
+
html += formatExpandableOutput(output, 10);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
html += "</div>";
|
|
1176
|
+
return html;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* Download the session data as a JSONL file.
|
|
1181
|
+
* Reconstructs the original format: header line + entry lines.
|
|
1182
|
+
*/
|
|
1183
|
+
window.downloadSessionJson = function () {
|
|
1184
|
+
// Build JSONL content: header first, then all entries
|
|
1185
|
+
const lines = [];
|
|
1186
|
+
if (header) {
|
|
1187
|
+
lines.push(JSON.stringify({ type: "header", ...header }));
|
|
1188
|
+
}
|
|
1189
|
+
for (const entry of entries) {
|
|
1190
|
+
lines.push(JSON.stringify(entry));
|
|
1191
|
+
}
|
|
1192
|
+
const jsonlContent = lines.join("\n");
|
|
1193
|
+
|
|
1194
|
+
// Create download
|
|
1195
|
+
const blob = new Blob([jsonlContent], { type: "application/x-ndjson" });
|
|
1196
|
+
const url = URL.createObjectURL(blob);
|
|
1197
|
+
const a = document.createElement("a");
|
|
1198
|
+
a.href = url;
|
|
1199
|
+
a.download = `${header?.id || "session"}.jsonl`;
|
|
1200
|
+
document.body.appendChild(a);
|
|
1201
|
+
a.click();
|
|
1202
|
+
document.body.removeChild(a);
|
|
1203
|
+
URL.revokeObjectURL(url);
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Build a shareable URL for a specific message.
|
|
1208
|
+
* URL format: base?gistId&leafId=<leafId>&targetId=<entryId>
|
|
1209
|
+
*/
|
|
1210
|
+
function buildShareUrl(entryId) {
|
|
1211
|
+
// Check for injected base URL (used when loaded in iframe via srcdoc)
|
|
1212
|
+
const baseUrlMeta = document.querySelector('meta[name="pi-share-base-url"]');
|
|
1213
|
+
const baseUrl = baseUrlMeta ? baseUrlMeta.content : window.location.href.split("?")[0];
|
|
1214
|
+
|
|
1215
|
+
const url = new URL(window.location.href);
|
|
1216
|
+
// Find the gist ID (first query param without value, e.g., ?abc123)
|
|
1217
|
+
const gistId = Array.from(url.searchParams.keys()).find((k) => !url.searchParams.get(k));
|
|
1218
|
+
|
|
1219
|
+
// Build the share URL
|
|
1220
|
+
const params = new URLSearchParams();
|
|
1221
|
+
params.set("leafId", currentLeafId);
|
|
1222
|
+
params.set("targetId", entryId);
|
|
1223
|
+
|
|
1224
|
+
// If we have an injected base URL (iframe context), use it directly
|
|
1225
|
+
if (baseUrlMeta) {
|
|
1226
|
+
return `${baseUrl}&${params.toString()}`;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
// Otherwise build from current location (direct file access)
|
|
1230
|
+
url.search = gistId ? `?${gistId}&${params.toString()}` : `?${params.toString()}`;
|
|
1231
|
+
return url.toString();
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* Copy text to clipboard with visual feedback.
|
|
1236
|
+
* Uses navigator.clipboard with fallback to execCommand for HTTP contexts.
|
|
1237
|
+
*/
|
|
1238
|
+
async function copyToClipboard(text, button) {
|
|
1239
|
+
let success = false;
|
|
1240
|
+
try {
|
|
1241
|
+
if (navigator.clipboard && navigator.clipboard.writeText) {
|
|
1242
|
+
await navigator.clipboard.writeText(text);
|
|
1243
|
+
success = true;
|
|
1244
|
+
}
|
|
1245
|
+
} catch {
|
|
1246
|
+
// Clipboard API failed, try fallback
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
// Fallback for HTTP or when Clipboard API is unavailable
|
|
1250
|
+
if (!success) {
|
|
1251
|
+
try {
|
|
1252
|
+
const textarea = document.createElement("textarea");
|
|
1253
|
+
textarea.value = text;
|
|
1254
|
+
textarea.style.position = "fixed";
|
|
1255
|
+
textarea.style.opacity = "0";
|
|
1256
|
+
document.body.appendChild(textarea);
|
|
1257
|
+
textarea.select();
|
|
1258
|
+
success = document.execCommand("copy");
|
|
1259
|
+
document.body.removeChild(textarea);
|
|
1260
|
+
} catch (err) {
|
|
1261
|
+
console.error("Failed to copy:", err);
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
if (success && button) {
|
|
1266
|
+
const originalHtml = button.innerHTML;
|
|
1267
|
+
button.innerHTML = "✓";
|
|
1268
|
+
button.classList.add("copied");
|
|
1269
|
+
setTimeout(() => {
|
|
1270
|
+
button.innerHTML = originalHtml;
|
|
1271
|
+
button.classList.remove("copied");
|
|
1272
|
+
}, 1500);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* Render the copy-link button HTML for a message.
|
|
1278
|
+
*/
|
|
1279
|
+
function renderCopyLinkButton(entryId) {
|
|
1280
|
+
return `<button class="copy-link-btn" data-entry-id="${entryId}" title="Copy link to this message">
|
|
1281
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
1282
|
+
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/>
|
|
1283
|
+
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>
|
|
1284
|
+
</svg>
|
|
1285
|
+
</button>`;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
function renderEntry(entry) {
|
|
1289
|
+
const ts = formatTimestamp(entry.timestamp);
|
|
1290
|
+
const tsHtml = ts ? `<div class="message-timestamp">${ts}</div>` : "";
|
|
1291
|
+
const entryId = `entry-${entry.id}`;
|
|
1292
|
+
const copyBtnHtml = renderCopyLinkButton(entry.id);
|
|
1293
|
+
|
|
1294
|
+
if (entry.type === "message") {
|
|
1295
|
+
const msg = entry.message;
|
|
1296
|
+
|
|
1297
|
+
if (msg.role === "user") {
|
|
1298
|
+
let html = `<div class="user-message" id="${entryId}">${copyBtnHtml}${tsHtml}`;
|
|
1299
|
+
const content = msg.content;
|
|
1300
|
+
|
|
1301
|
+
if (Array.isArray(content)) {
|
|
1302
|
+
const images = content.filter((c) => c.type === "image");
|
|
1303
|
+
if (images.length > 0) {
|
|
1304
|
+
html += '<div class="message-images">';
|
|
1305
|
+
for (const img of images) {
|
|
1306
|
+
html += `<img src="data:${img.mimeType};base64,${img.data}" class="message-image" />`;
|
|
1307
|
+
}
|
|
1308
|
+
html += "</div>";
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
const text =
|
|
1313
|
+
typeof content === "string"
|
|
1314
|
+
? content
|
|
1315
|
+
: content
|
|
1316
|
+
.filter((c) => c.type === "text")
|
|
1317
|
+
.map((c) => c.text)
|
|
1318
|
+
.join("\n");
|
|
1319
|
+
if (text.trim()) {
|
|
1320
|
+
html += `<div class="markdown-content">${safeMarkedParse(text)}</div>`;
|
|
1321
|
+
}
|
|
1322
|
+
html += "</div>";
|
|
1323
|
+
return html;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
if (msg.role === "assistant") {
|
|
1327
|
+
let html = `<div class="assistant-message" id="${entryId}">${copyBtnHtml}${tsHtml}`;
|
|
1328
|
+
|
|
1329
|
+
for (const block of msg.content) {
|
|
1330
|
+
if (block.type === "text" && block.text.trim()) {
|
|
1331
|
+
html += `<div class="assistant-text markdown-content">${safeMarkedParse(block.text)}</div>`;
|
|
1332
|
+
} else if (block.type === "thinking" && block.thinking.trim()) {
|
|
1333
|
+
html += `<div class="thinking-block">
|
|
1334
|
+
<div class="thinking-text">${escapeHtml(block.thinking)}</div>
|
|
1335
|
+
<div class="thinking-collapsed">Thinking ...</div>
|
|
1336
|
+
</div>`;
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
for (const block of msg.content) {
|
|
1341
|
+
if (block.type === "toolCall") {
|
|
1342
|
+
html += renderToolCall(block);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
if (msg.stopReason === "aborted") {
|
|
1347
|
+
html += '<div class="error-text">Aborted</div>';
|
|
1348
|
+
} else if (msg.stopReason === "error") {
|
|
1349
|
+
html += `<div class="error-text">Error: ${escapeHtml(msg.errorMessage || "Unknown error")}</div>`;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
html += "</div>";
|
|
1353
|
+
return html;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
if (msg.role === "bashExecution") {
|
|
1357
|
+
const isError = msg.cancelled || (msg.exitCode !== 0 && msg.exitCode !== null);
|
|
1358
|
+
let html = `<div class="tool-execution ${isError ? "error" : "success"}" id="${entryId}">${tsHtml}`;
|
|
1359
|
+
html += `<div class="tool-command">$ ${escapeHtml(msg.command)}</div>`;
|
|
1360
|
+
if (msg.output) {
|
|
1361
|
+
html += formatExpandableOutput(msg.output, 10);
|
|
1362
|
+
}
|
|
1363
|
+
if (msg.cancelled) {
|
|
1364
|
+
html += '<div style="color: var(--warning)">(cancelled)</div>';
|
|
1365
|
+
} else if (msg.exitCode !== 0 && msg.exitCode !== null) {
|
|
1366
|
+
html += `<div style="color: var(--error)">(exit ${msg.exitCode})</div>`;
|
|
1367
|
+
}
|
|
1368
|
+
html += "</div>";
|
|
1369
|
+
return html;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
if (msg.role === "toolResult") {
|
|
1373
|
+
return "";
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
if (entry.type === "model_change") {
|
|
1378
|
+
return `<div class="model-change" id="${entryId}">${tsHtml}Switched to model: <span class="model-name">${escapeHtml(entry.provider)}/${escapeHtml(entry.modelId)}</span></div>`;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
if (entry.type === "compaction") {
|
|
1382
|
+
return `<div class="compaction" id="${entryId}" onclick="this.classList.toggle('expanded')">
|
|
1383
|
+
<div class="compaction-label">[compaction]</div>
|
|
1384
|
+
<div class="compaction-collapsed">Compacted from ${entry.tokensBefore.toLocaleString()} tokens</div>
|
|
1385
|
+
<div class="compaction-content"><strong>Compacted from ${entry.tokensBefore.toLocaleString()} tokens</strong>\n\n${escapeHtml(entry.summary)}</div>
|
|
1386
|
+
</div>`;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
if (entry.type === "branch_summary") {
|
|
1390
|
+
return `<div class="branch-summary" id="${entryId}">${tsHtml}
|
|
1391
|
+
<div class="branch-summary-header">Branch Summary</div>
|
|
1392
|
+
<div class="markdown-content">${safeMarkedParse(entry.summary)}</div>
|
|
1393
|
+
</div>`;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
if (entry.type === "custom_message" && entry.display) {
|
|
1397
|
+
return `<div class="hook-message" id="${entryId}">${tsHtml}
|
|
1398
|
+
<div class="hook-type">[${escapeHtml(entry.customType)}]</div>
|
|
1399
|
+
<div class="markdown-content">${safeMarkedParse(typeof entry.content === "string" ? entry.content : JSON.stringify(entry.content))}</div>
|
|
1400
|
+
</div>`;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
return "";
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
// ============================================================
|
|
1407
|
+
// HEADER / STATS
|
|
1408
|
+
// ============================================================
|
|
1409
|
+
|
|
1410
|
+
function computeStats(entryList) {
|
|
1411
|
+
let userMessages = 0,
|
|
1412
|
+
assistantMessages = 0,
|
|
1413
|
+
toolResults = 0;
|
|
1414
|
+
let customMessages = 0,
|
|
1415
|
+
compactions = 0,
|
|
1416
|
+
branchSummaries = 0,
|
|
1417
|
+
toolCalls = 0;
|
|
1418
|
+
const tokens = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
|
|
1419
|
+
const cost = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
|
|
1420
|
+
const models = new Set();
|
|
1421
|
+
|
|
1422
|
+
for (const entry of entryList) {
|
|
1423
|
+
if (entry.type === "message") {
|
|
1424
|
+
const msg = entry.message;
|
|
1425
|
+
if (msg.role === "user") {
|
|
1426
|
+
userMessages++;
|
|
1427
|
+
}
|
|
1428
|
+
if (msg.role === "assistant") {
|
|
1429
|
+
assistantMessages++;
|
|
1430
|
+
if (msg.model) {
|
|
1431
|
+
models.add(msg.provider ? `${msg.provider}/${msg.model}` : msg.model);
|
|
1432
|
+
}
|
|
1433
|
+
if (msg.usage) {
|
|
1434
|
+
tokens.input += msg.usage.input || 0;
|
|
1435
|
+
tokens.output += msg.usage.output || 0;
|
|
1436
|
+
tokens.cacheRead += msg.usage.cacheRead || 0;
|
|
1437
|
+
tokens.cacheWrite += msg.usage.cacheWrite || 0;
|
|
1438
|
+
if (msg.usage.cost) {
|
|
1439
|
+
cost.input += msg.usage.cost.input || 0;
|
|
1440
|
+
cost.output += msg.usage.cost.output || 0;
|
|
1441
|
+
cost.cacheRead += msg.usage.cost.cacheRead || 0;
|
|
1442
|
+
cost.cacheWrite += msg.usage.cost.cacheWrite || 0;
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
toolCalls += msg.content.filter((c) => c.type === "toolCall").length;
|
|
1446
|
+
}
|
|
1447
|
+
if (msg.role === "toolResult") {
|
|
1448
|
+
toolResults++;
|
|
1449
|
+
}
|
|
1450
|
+
} else if (entry.type === "compaction") {
|
|
1451
|
+
compactions++;
|
|
1452
|
+
} else if (entry.type === "branch_summary") {
|
|
1453
|
+
branchSummaries++;
|
|
1454
|
+
} else if (entry.type === "custom_message") {
|
|
1455
|
+
customMessages++;
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
return {
|
|
1460
|
+
userMessages,
|
|
1461
|
+
assistantMessages,
|
|
1462
|
+
toolResults,
|
|
1463
|
+
customMessages,
|
|
1464
|
+
compactions,
|
|
1465
|
+
branchSummaries,
|
|
1466
|
+
toolCalls,
|
|
1467
|
+
tokens,
|
|
1468
|
+
cost,
|
|
1469
|
+
models: Array.from(models),
|
|
1470
|
+
};
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
const globalStats = computeStats(entries);
|
|
1474
|
+
|
|
1475
|
+
function renderHeader() {
|
|
1476
|
+
const totalCost =
|
|
1477
|
+
globalStats.cost.input +
|
|
1478
|
+
globalStats.cost.output +
|
|
1479
|
+
globalStats.cost.cacheRead +
|
|
1480
|
+
globalStats.cost.cacheWrite;
|
|
1481
|
+
|
|
1482
|
+
const tokenParts = [];
|
|
1483
|
+
if (globalStats.tokens.input) {
|
|
1484
|
+
tokenParts.push(`↑${formatTokens(globalStats.tokens.input)}`);
|
|
1485
|
+
}
|
|
1486
|
+
if (globalStats.tokens.output) {
|
|
1487
|
+
tokenParts.push(`↓${formatTokens(globalStats.tokens.output)}`);
|
|
1488
|
+
}
|
|
1489
|
+
if (globalStats.tokens.cacheRead) {
|
|
1490
|
+
tokenParts.push(`R${formatTokens(globalStats.tokens.cacheRead)}`);
|
|
1491
|
+
}
|
|
1492
|
+
if (globalStats.tokens.cacheWrite) {
|
|
1493
|
+
tokenParts.push(`W${formatTokens(globalStats.tokens.cacheWrite)}`);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
const msgParts = [];
|
|
1497
|
+
if (globalStats.userMessages) {
|
|
1498
|
+
msgParts.push(`${globalStats.userMessages} user`);
|
|
1499
|
+
}
|
|
1500
|
+
if (globalStats.assistantMessages) {
|
|
1501
|
+
msgParts.push(`${globalStats.assistantMessages} assistant`);
|
|
1502
|
+
}
|
|
1503
|
+
if (globalStats.toolResults) {
|
|
1504
|
+
msgParts.push(`${globalStats.toolResults} tool results`);
|
|
1505
|
+
}
|
|
1506
|
+
if (globalStats.customMessages) {
|
|
1507
|
+
msgParts.push(`${globalStats.customMessages} custom`);
|
|
1508
|
+
}
|
|
1509
|
+
if (globalStats.compactions) {
|
|
1510
|
+
msgParts.push(`${globalStats.compactions} compactions`);
|
|
1511
|
+
}
|
|
1512
|
+
if (globalStats.branchSummaries) {
|
|
1513
|
+
msgParts.push(`${globalStats.branchSummaries} branch summaries`);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
let html = `
|
|
1517
|
+
<div class="header">
|
|
1518
|
+
<h1>Session: ${escapeHtml(header?.id || "unknown")}</h1>
|
|
1519
|
+
<div class="help-bar">
|
|
1520
|
+
<span>Ctrl+T toggle thinking · Ctrl+O toggle tools</span>
|
|
1521
|
+
<button class="download-json-btn" onclick="downloadSessionJson()" title="Download session as JSONL">↓ JSONL</button>
|
|
1522
|
+
</div>
|
|
1523
|
+
<div class="header-info">
|
|
1524
|
+
<div class="info-item"><span class="info-label">Date:</span><span class="info-value">${header?.timestamp ? new Date(header.timestamp).toLocaleString() : "unknown"}</span></div>
|
|
1525
|
+
<div class="info-item"><span class="info-label">Models:</span><span class="info-value">${globalStats.models.join(", ") || "unknown"}</span></div>
|
|
1526
|
+
<div class="info-item"><span class="info-label">Messages:</span><span class="info-value">${msgParts.join(", ") || "0"}</span></div>
|
|
1527
|
+
<div class="info-item"><span class="info-label">Tool Calls:</span><span class="info-value">${globalStats.toolCalls}</span></div>
|
|
1528
|
+
<div class="info-item"><span class="info-label">Tokens:</span><span class="info-value">${tokenParts.join(" ") || "0"}</span></div>
|
|
1529
|
+
<div class="info-item"><span class="info-label">Cost:</span><span class="info-value">$${totalCost.toFixed(3)}</span></div>
|
|
1530
|
+
</div>
|
|
1531
|
+
</div>`;
|
|
1532
|
+
|
|
1533
|
+
// Render system prompt (user's base prompt, applies to all providers)
|
|
1534
|
+
if (systemPrompt) {
|
|
1535
|
+
const lines = systemPrompt.split("\n");
|
|
1536
|
+
const previewLines = 10;
|
|
1537
|
+
if (lines.length > previewLines) {
|
|
1538
|
+
const preview = lines.slice(0, previewLines).join("\n");
|
|
1539
|
+
const remaining = lines.length - previewLines;
|
|
1540
|
+
html += `<div class="system-prompt expandable" onclick="this.classList.toggle('expanded')">
|
|
1541
|
+
<div class="system-prompt-header">System Prompt</div>
|
|
1542
|
+
<div class="system-prompt-preview">${escapeHtml(preview)}</div>
|
|
1543
|
+
<div class="system-prompt-expand-hint">... (${remaining} more lines, click to expand)</div>
|
|
1544
|
+
<div class="system-prompt-full">${escapeHtml(systemPrompt)}</div>
|
|
1545
|
+
</div>`;
|
|
1546
|
+
} else {
|
|
1547
|
+
html += `<div class="system-prompt">
|
|
1548
|
+
<div class="system-prompt-header">System Prompt</div>
|
|
1549
|
+
<div class="system-prompt-full" style="display: block">${escapeHtml(systemPrompt)}</div>
|
|
1550
|
+
</div>`;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
if (tools && tools.length > 0) {
|
|
1555
|
+
html += `<div class="tools-list">
|
|
1556
|
+
<div class="tools-header">Available Tools</div>
|
|
1557
|
+
<div class="tools-content">
|
|
1558
|
+
${tools
|
|
1559
|
+
.map((t) => {
|
|
1560
|
+
const hasParams =
|
|
1561
|
+
t.parameters &&
|
|
1562
|
+
typeof t.parameters === "object" &&
|
|
1563
|
+
t.parameters.properties &&
|
|
1564
|
+
Object.keys(t.parameters.properties).length > 0;
|
|
1565
|
+
if (!hasParams) {
|
|
1566
|
+
return `<div class="tool-item"><span class="tool-item-name">${escapeHtml(t.name)}</span> - <span class="tool-item-desc">${escapeHtml(t.description)}</span></div>`;
|
|
1567
|
+
}
|
|
1568
|
+
const params = t.parameters;
|
|
1569
|
+
const properties = params.properties;
|
|
1570
|
+
const required = params.required || [];
|
|
1571
|
+
let paramsHtml = "";
|
|
1572
|
+
for (const [name, prop] of Object.entries(properties)) {
|
|
1573
|
+
const isRequired = required.includes(name);
|
|
1574
|
+
const typeStr = prop.type || "any";
|
|
1575
|
+
const reqLabel = isRequired
|
|
1576
|
+
? '<span class="tool-param-required">required</span>'
|
|
1577
|
+
: '<span class="tool-param-optional">optional</span>';
|
|
1578
|
+
paramsHtml += `<div class="tool-param"><span class="tool-param-name">${escapeHtml(name)}</span> <span class="tool-param-type">${escapeHtml(typeStr)}</span> ${reqLabel}`;
|
|
1579
|
+
if (prop.description) {
|
|
1580
|
+
paramsHtml += `<div class="tool-param-desc">${escapeHtml(prop.description)}</div>`;
|
|
1581
|
+
}
|
|
1582
|
+
paramsHtml += `</div>`;
|
|
1583
|
+
}
|
|
1584
|
+
return `<div class="tool-item" onclick="this.classList.toggle('params-expanded')"><span class="tool-item-name">${escapeHtml(t.name)}</span> - <span class="tool-item-desc">${escapeHtml(t.description)}</span> <span class="tool-params-hint"></span><div class="tool-params-content">${paramsHtml}</div></div>`;
|
|
1585
|
+
})
|
|
1586
|
+
.join("")}
|
|
1587
|
+
</div>
|
|
1588
|
+
</div>`;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
return html;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
// ============================================================
|
|
1595
|
+
// NAVIGATION
|
|
1596
|
+
// ============================================================
|
|
1597
|
+
|
|
1598
|
+
// Cache for rendered entry DOM nodes
|
|
1599
|
+
const entryCache = new Map();
|
|
1600
|
+
|
|
1601
|
+
function renderEntryToNode(entry) {
|
|
1602
|
+
// Check cache first
|
|
1603
|
+
if (entryCache.has(entry.id)) {
|
|
1604
|
+
return entryCache.get(entry.id).cloneNode(true);
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
// Render to HTML string, then parse to node
|
|
1608
|
+
const html = renderEntry(entry);
|
|
1609
|
+
if (!html) {
|
|
1610
|
+
return null;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
const template = document.createElement("template");
|
|
1614
|
+
template.innerHTML = html;
|
|
1615
|
+
const node = template.content.firstElementChild;
|
|
1616
|
+
|
|
1617
|
+
// Cache the node
|
|
1618
|
+
if (node) {
|
|
1619
|
+
entryCache.set(entry.id, node.cloneNode(true));
|
|
1620
|
+
}
|
|
1621
|
+
return node;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
function navigateTo(targetId, scrollMode = "target", scrollToEntryId = null) {
|
|
1625
|
+
currentLeafId = targetId;
|
|
1626
|
+
currentTargetId = scrollToEntryId || targetId;
|
|
1627
|
+
const path = getPath(targetId);
|
|
1628
|
+
|
|
1629
|
+
renderTree();
|
|
1630
|
+
|
|
1631
|
+
document.getElementById("header-container").innerHTML = renderHeader();
|
|
1632
|
+
|
|
1633
|
+
// Build messages using cached DOM nodes
|
|
1634
|
+
const messagesEl = document.getElementById("messages");
|
|
1635
|
+
const fragment = document.createDocumentFragment();
|
|
1636
|
+
|
|
1637
|
+
for (const entry of path) {
|
|
1638
|
+
const node = renderEntryToNode(entry);
|
|
1639
|
+
if (node) {
|
|
1640
|
+
fragment.appendChild(node);
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
messagesEl.innerHTML = "";
|
|
1645
|
+
messagesEl.appendChild(fragment);
|
|
1646
|
+
|
|
1647
|
+
// Attach click handlers for copy-link buttons
|
|
1648
|
+
messagesEl.querySelectorAll(".copy-link-btn").forEach((btn) => {
|
|
1649
|
+
btn.addEventListener("click", (e) => {
|
|
1650
|
+
e.stopPropagation();
|
|
1651
|
+
const entryId = btn.dataset.entryId;
|
|
1652
|
+
const shareUrl = buildShareUrl(entryId);
|
|
1653
|
+
void copyToClipboard(shareUrl, btn);
|
|
1654
|
+
});
|
|
1655
|
+
});
|
|
1656
|
+
|
|
1657
|
+
// Use setTimeout(0) to ensure DOM is fully laid out before scrolling
|
|
1658
|
+
setTimeout(() => {
|
|
1659
|
+
const content = document.getElementById("content");
|
|
1660
|
+
if (scrollMode === "bottom") {
|
|
1661
|
+
content.scrollTop = content.scrollHeight;
|
|
1662
|
+
} else if (scrollMode === "target") {
|
|
1663
|
+
// If scrollToEntryId is provided, scroll to that specific entry
|
|
1664
|
+
const scrollTargetId = scrollToEntryId || targetId;
|
|
1665
|
+
const targetEl = document.getElementById(`entry-${scrollTargetId}`);
|
|
1666
|
+
if (targetEl) {
|
|
1667
|
+
targetEl.scrollIntoView({ block: "center" });
|
|
1668
|
+
// Briefly highlight the target message
|
|
1669
|
+
if (scrollToEntryId) {
|
|
1670
|
+
targetEl.classList.add("highlight");
|
|
1671
|
+
setTimeout(() => targetEl.classList.remove("highlight"), 2000);
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
}, 0);
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
// ============================================================
|
|
1679
|
+
// INITIALIZATION
|
|
1680
|
+
// ============================================================
|
|
1681
|
+
|
|
1682
|
+
// Escape HTML tags in text (but not code blocks)
|
|
1683
|
+
function escapeHtmlTags(text) {
|
|
1684
|
+
return text.replace(/<(?=[a-zA-Z/])/g, "<");
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
// Configure marked with syntax highlighting and HTML escaping for text
|
|
1688
|
+
marked.use({
|
|
1689
|
+
breaks: true,
|
|
1690
|
+
gfm: true,
|
|
1691
|
+
renderer: {
|
|
1692
|
+
// Code blocks: syntax highlight, no HTML escaping
|
|
1693
|
+
code(token) {
|
|
1694
|
+
const code = token.text;
|
|
1695
|
+
const lang = token.lang;
|
|
1696
|
+
let highlighted;
|
|
1697
|
+
if (lang && hljs.getLanguage(lang)) {
|
|
1698
|
+
try {
|
|
1699
|
+
highlighted = hljs.highlight(code, { language: lang }).value;
|
|
1700
|
+
} catch {
|
|
1701
|
+
highlighted = escapeHtml(code);
|
|
1702
|
+
}
|
|
1703
|
+
} else {
|
|
1704
|
+
// Auto-detect language if not specified
|
|
1705
|
+
try {
|
|
1706
|
+
highlighted = hljs.highlightAuto(code).value;
|
|
1707
|
+
} catch {
|
|
1708
|
+
highlighted = escapeHtml(code);
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
return `<pre><code class="hljs">${highlighted}</code></pre>`;
|
|
1712
|
+
},
|
|
1713
|
+
// Text content: escape HTML tags
|
|
1714
|
+
text(token) {
|
|
1715
|
+
return escapeHtmlTags(escapeHtml(token.text));
|
|
1716
|
+
},
|
|
1717
|
+
// Inline code: escape HTML
|
|
1718
|
+
codespan(token) {
|
|
1719
|
+
return `<code>${escapeHtml(token.text)}</code>`;
|
|
1720
|
+
},
|
|
1721
|
+
},
|
|
1722
|
+
});
|
|
1723
|
+
|
|
1724
|
+
// Simple marked parse (escaping handled in renderers)
|
|
1725
|
+
function safeMarkedParse(text) {
|
|
1726
|
+
return marked.parse(text);
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
// Search input
|
|
1730
|
+
const searchInput = document.getElementById("tree-search");
|
|
1731
|
+
searchInput.addEventListener("input", (e) => {
|
|
1732
|
+
searchQuery = e.target.value;
|
|
1733
|
+
forceTreeRerender();
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
// Filter buttons
|
|
1737
|
+
document.querySelectorAll(".filter-btn").forEach((btn) => {
|
|
1738
|
+
btn.addEventListener("click", () => {
|
|
1739
|
+
document.querySelectorAll(".filter-btn").forEach((b) => b.classList.remove("active"));
|
|
1740
|
+
btn.classList.add("active");
|
|
1741
|
+
filterMode = btn.dataset.filter;
|
|
1742
|
+
forceTreeRerender();
|
|
1743
|
+
});
|
|
1744
|
+
});
|
|
1745
|
+
|
|
1746
|
+
// Sidebar toggle
|
|
1747
|
+
const sidebar = document.getElementById("sidebar");
|
|
1748
|
+
const overlay = document.getElementById("sidebar-overlay");
|
|
1749
|
+
const hamburger = document.getElementById("hamburger");
|
|
1750
|
+
|
|
1751
|
+
hamburger.addEventListener("click", () => {
|
|
1752
|
+
sidebar.classList.add("open");
|
|
1753
|
+
overlay.classList.add("open");
|
|
1754
|
+
hamburger.style.display = "none";
|
|
1755
|
+
});
|
|
1756
|
+
|
|
1757
|
+
const closeSidebar = () => {
|
|
1758
|
+
sidebar.classList.remove("open");
|
|
1759
|
+
overlay.classList.remove("open");
|
|
1760
|
+
hamburger.style.display = "";
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
overlay.addEventListener("click", closeSidebar);
|
|
1764
|
+
document.getElementById("sidebar-close").addEventListener("click", closeSidebar);
|
|
1765
|
+
|
|
1766
|
+
// Toggle states
|
|
1767
|
+
let thinkingExpanded = true;
|
|
1768
|
+
let toolOutputsExpanded = false;
|
|
1769
|
+
|
|
1770
|
+
const toggleThinking = () => {
|
|
1771
|
+
thinkingExpanded = !thinkingExpanded;
|
|
1772
|
+
document.querySelectorAll(".thinking-text").forEach((el) => {
|
|
1773
|
+
el.style.display = thinkingExpanded ? "" : "none";
|
|
1774
|
+
});
|
|
1775
|
+
document.querySelectorAll(".thinking-collapsed").forEach((el) => {
|
|
1776
|
+
el.style.display = thinkingExpanded ? "none" : "block";
|
|
1777
|
+
});
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
const toggleToolOutputs = () => {
|
|
1781
|
+
toolOutputsExpanded = !toolOutputsExpanded;
|
|
1782
|
+
document.querySelectorAll(".tool-output.expandable").forEach((el) => {
|
|
1783
|
+
el.classList.toggle("expanded", toolOutputsExpanded);
|
|
1784
|
+
});
|
|
1785
|
+
document.querySelectorAll(".compaction").forEach((el) => {
|
|
1786
|
+
el.classList.toggle("expanded", toolOutputsExpanded);
|
|
1787
|
+
});
|
|
1788
|
+
};
|
|
1789
|
+
|
|
1790
|
+
// Keyboard shortcuts
|
|
1791
|
+
document.addEventListener("keydown", (e) => {
|
|
1792
|
+
if (e.key === "Escape") {
|
|
1793
|
+
searchInput.value = "";
|
|
1794
|
+
searchQuery = "";
|
|
1795
|
+
navigateTo(leafId, "bottom");
|
|
1796
|
+
}
|
|
1797
|
+
if (e.ctrlKey && e.key === "t") {
|
|
1798
|
+
e.preventDefault();
|
|
1799
|
+
toggleThinking();
|
|
1800
|
+
}
|
|
1801
|
+
if (e.ctrlKey && e.key === "o") {
|
|
1802
|
+
e.preventDefault();
|
|
1803
|
+
toggleToolOutputs();
|
|
1804
|
+
}
|
|
1805
|
+
});
|
|
1806
|
+
|
|
1807
|
+
// Initial render
|
|
1808
|
+
// If URL has targetId, scroll to that specific message; otherwise stay at top
|
|
1809
|
+
if (leafId) {
|
|
1810
|
+
if (urlTargetId && byId.has(urlTargetId)) {
|
|
1811
|
+
// Deep link: navigate to leaf and scroll to target message
|
|
1812
|
+
navigateTo(leafId, "target", urlTargetId);
|
|
1813
|
+
} else {
|
|
1814
|
+
navigateTo(leafId, "none");
|
|
1815
|
+
}
|
|
1816
|
+
} else if (entries.length > 0) {
|
|
1817
|
+
// Fallback: use last entry if no leafId
|
|
1818
|
+
navigateTo(entries[entries.length - 1].id, "none");
|
|
1819
|
+
}
|
|
1820
|
+
})();
|