@symerian/symi 2.5.1 → 2.5.3
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/{accounts-tNElYrCH.js → accounts-CI6zQTJj.js} +14 -14
- package/dist/{accounts-qtxJ-6em.js → accounts-CJR8j_Kq.js} +1 -1
- package/dist/{accounts-CWktKM8a.js → accounts-ChTFYj8Q.js} +1 -1
- package/dist/{active-listener-C9r8ZB9m.js → active-listener-D6sXIjAg.js} +1 -1
- package/dist/{agent-scope-BxoUQqgM.js → agent-scope-Bw1Ed8W9.js} +3 -3
- package/dist/{agents-Cf7lxbx4.js → agents-CTPFuwCu.js} +4 -4
- package/dist/{agents.config-aAHTt-cM.js → agents.config-CQVRXowo.js} +1 -1
- package/dist/{agents.config-CsltNAhl.js → agents.config-CVlanyIt.js} +1 -1
- package/dist/{audio-preflight-D02HwB-I.js → audio-preflight-BkIfnmpi.js} +29 -29
- package/dist/{auth-choice-wU5fEl73.js → auth-choice-AlA3IixA.js} +1 -1
- package/dist/{auth-choice-Cy78Q2jy.js → auth-choice-BKmjyPNC.js} +1 -1
- package/dist/{banner-BRzyFiIY.js → banner-8_qXSW1S.js} +1 -1
- package/dist/{bindings-B7Ke6LJi.js → bindings-BU2hsBd9.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-CsM_hJ_s.js → channel-activity-C9-gaquj.js} +1 -1
- package/dist/{channel-options-BcCKOiwh.js → channel-options-CMm67N4v.js} +1 -1
- package/dist/{channel-options-up8R2ST5.js → channel-options-nfXd5NWO.js} +1 -1
- package/dist/{channel-web-CrH0yvww.js → channel-web-D6t5UK5A.js} +1 -1
- package/dist/{channels-cli-DG3sTlC7.js → channels-cli-BA9QVK8Q.js} +4 -4
- package/dist/{channels-cli-BiHu6J16.js → channels-cli-B_iBgjWh.js} +4 -4
- package/dist/{chrome-EyvdASWt.js → chrome-CxSAp8x3.js} +13 -13
- package/dist/{chunk-BW5f05BR.js → chunk-ClbN9Pqy.js} +1 -1
- package/dist/{cli-YBkGYxfg.js → cli-BF2nSOtU.js} +1 -1
- package/dist/{cli-BUkGaPzi.js → cli-DyI0-h78.js} +1 -1
- package/dist/{command-format-BaxDnULz.js → command-format-UKHV-j0K.js} +1 -1
- package/dist/{command-registry-YX9EbrJh.js → command-registry-DhvgkMQN.js} +9 -9
- package/dist/{commands-registry-D7CTCQPm.js → commands-registry-VSmULp-g.js} +4 -4
- package/dist/{completion-cli-Cm8iWdRA.js → completion-cli-CqHcRASb.js} +2 -2
- package/dist/{completion-cli-DZf03KrT.js → completion-cli-DJ2AgNQF.js} +1 -1
- package/dist/{config-cli-1PDMhq8v.js → config-cli-7yzVs6sD.js} +1 -1
- package/dist/{config-cli-Dx3mtUwm.js → config-cli-9MIL9tVq.js} +1 -1
- package/dist/{config-DRbjHIwD.js → config-eEaJddXj.js} +12 -12
- package/dist/{configure-DZn4tz03.js → configure-BWIGtf_8.js} +3 -3
- package/dist/{configure-DKN7f4VI.js → configure-rs23A6dR.js} +3 -3
- package/dist/{deliver-D1ZN6-fl.js → deliver-BA7ZN3iM.js} +20 -20
- package/dist/{diagnostic-CI0kRQkt.js → diagnostic-C3nsWaw3.js} +1 -1
- package/dist/{doctor-completion--aLGEAgK.js → doctor-completion-BqOO4r2O.js} +1 -1
- package/dist/{doctor-completion-D4SLAoAE.js → doctor-completion-DD-fb-G8.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +1 -1
- package/dist/{frontmatter-C_bv_0P8.js → frontmatter-DPlG6yha.js} +2 -2
- package/dist/{gateway-cli-CMVvut5c.js → gateway-cli-2R-SuiTy.js} +9 -9
- package/dist/{gateway-cli-ZbqwB66o.js → gateway-cli-BVnEz6em.js} +9 -9
- package/dist/{gemini-auth-CdSPHuLl.js → gemini-auth-CF48hUR9.js} +1 -1
- package/dist/{github-copilot-token-C_qUP7p5.js → github-copilot-token-DJqsJ2-r.js} +7 -7
- package/dist/{glass-ui-ws-Bg6ek2Vs.js → glass-ui-ws-C9w0ySFw.js} +7 -7
- package/dist/{glass-ui-ws-Cykb9Xv4.js → glass-ui-ws-CmDHJq0W.js} +7 -7
- package/dist/{health-CGoPVhko.js → health-CGJe8xON.js} +1 -1
- package/dist/{health-BMKu3MJz.js → health-R_6vQfbY.js} +1 -1
- package/dist/{hooks-cli-CQUjUbF8.js → hooks-cli-CUTMGbml.js} +2 -2
- package/dist/{hooks-cli-CFtgfZBU.js → hooks-cli-Cvc0R8C2.js} +2 -2
- package/dist/{image-Cp3JDEBB.js → image-BGmVDkkw.js} +4 -4
- package/dist/{image-ops-CvJzsyvE.js → image-ops-S8-8dAhx.js} +1 -1
- package/dist/index.js +6 -6
- package/dist/{ir-DccrnjsE.js → ir-CbFUkv_T.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-DMwIh5cS.js → local-roots-C7OCYACU.js} +5 -5
- package/dist/{login-CwCoxapk.js → login-B8uiUAnV.js} +7 -7
- package/dist/{login-qr-Batf3PT5.js → login-qr-CIZk8uKX.js} +12 -12
- package/dist/{manager-D_LwXbc6.js → manager-BoLr3xR_.js} +13 -13
- package/dist/{manifest-registry-D0IQ3WuX.js → manifest-registry-CneMHk0N.js} +19 -19
- package/dist/{markdown-tables-iMQQZu4Q.js → markdown-tables-DSHvnTLx.js} +1 -1
- package/dist/{plugin-sdk/message-channel-COTAJzHd.js → message-channel-DbsRltF2.js} +1 -1
- package/dist/{model-auth-DK43VicI.js → model-auth-CwOuTuXl.js} +9 -9
- package/dist/{models-BPJ5Z5tU.js → models-DPk6zVF5.js} +2 -2
- package/dist/{models-cli-D9miPqtu.js → models-cli-1hWA7FrI.js} +2 -2
- package/dist/{models-cli-I7FIJUNa.js → models-cli-BhijD6uM.js} +3 -3
- package/dist/{onboard-BU6-iBln.js → onboard-BgoNPLnU.js} +2 -2
- package/dist/{onboard-CCZ5n-rI.js → onboard-CSPuFTdy.js} +2 -2
- package/dist/{onboard-channels-CaRYhl9J.js → onboard-channels-D680exuN.js} +1 -1
- package/dist/{onboard-channels-B188R3F1.js → onboard-channels-r6Gvo5Cd.js} +1 -1
- package/dist/{onboarding-CNgU4kg8.js → onboarding-Dnmpcyzj.js} +3 -3
- package/dist/{onboarding-Gsj-iMyY.js → onboarding-pxBeD60g.js} +3 -3
- package/dist/{onboarding.finalize-C64KHESC.js → onboarding.finalize-CBTphwf0.js} +6 -6
- package/dist/{onboarding.finalize-BvPgcu7R.js → onboarding.finalize-jsLRDHxC.js} +5 -5
- package/dist/{outbound-attachment-DjNDa3zn.js → outbound-attachment-Co2diKdP.js} +2 -2
- package/dist/{outbound-D4fN_ZlE.js → outbound-opDNxv-l.js} +7 -7
- package/dist/{paths-DLyHUt31.js → paths-Cb87-LzP.js} +1 -1
- package/dist/{paths-Cce4PUkG.js → paths-CySxpNhH.js} +5 -5
- package/dist/{pi-auth-json-0SYBFZTt.js → pi-auth-json-DPWPoruO.js} +8 -8
- package/dist/{pi-embedded-RoXbo73e.js → pi-embedded-BRw7oe5n.js} +125 -8
- package/dist/{pi-embedded-DXSWVPEZ.js → pi-embedded-DkqIIBK5.js} +281 -164
- package/dist/{pi-embedded-helpers-ag2bosuj.js → pi-embedded-helpers-DEEaCvEp.js} +52 -52
- package/dist/{plugin-registry-ByLEBcK_.js → plugin-registry-BtIkzwfi.js} +1 -1
- package/dist/{plugin-registry-dNrBrnR0.js → plugin-registry-DZ4m64Mr.js} +1 -1
- package/dist/plugin-sdk/{accounts-BtaOa4z_.js → accounts-BToL3HlP.js} +1 -1
- package/dist/plugin-sdk/{accounts-Ddm33hQm.js → accounts-D9zGZU5t.js} +3 -3
- package/dist/plugin-sdk/{accounts-s-AdhXVR.js → accounts-Dtszw3Zn.js} +1 -1
- package/dist/plugin-sdk/{active-listener-BXYeALs0.js → active-listener-bEk__wbB.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-CYYpcO9W.js → agent-scope-C3gMMKCU.js} +2 -2
- package/dist/plugin-sdk/agents/session-version.d.ts +48 -0
- package/dist/plugin-sdk/{api-key-rotation-D_sMvI5W.js → api-key-rotation-CVBMpnPc.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-VpItkiy3.js → audio-preflight-DoQQKlxa.js} +24 -24
- package/dist/plugin-sdk/{bindings-C7hRtgYW.js → bindings-BbwoUGPx.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-DoC1xtDu.js → channel-activity-Ji7f0gqq.js} +1 -1
- package/dist/plugin-sdk/{channel-web-Dn3ufSyq.js → channel-web-CDaDQ_94.js} +22 -22
- package/dist/plugin-sdk/{chrome-B7RdxmJ0.js → chrome-C7c_0I5M.js} +3 -3
- package/dist/plugin-sdk/{chunk-Dw2XBYXv.js → chunk-jvk9axTQ.js} +1 -1
- package/dist/plugin-sdk/{command-format-GKSevep4.js → command-format-DSdvQ_M5.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-COIaslGl.js → commands-registry-CQFbmUMs.js} +4 -4
- package/dist/plugin-sdk/{config-KlTNfkFF.js → config-DDkdiUOR.js} +9 -9
- package/dist/plugin-sdk/{deliver-BZ99UKQq.js → deliver-BZ6iNLl7.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-05pm5Rxi.js → diagnostic-mFf4i4G9.js} +1 -1
- package/dist/plugin-sdk/{image-CLOPx7yW.js → image-BOYy0Ump.js} +4 -4
- package/dist/plugin-sdk/{image-ops-BlQR__MN.js → image-ops-Bnp6LXEx.js} +1 -1
- package/dist/plugin-sdk/index.js +53 -53
- package/dist/plugin-sdk/{ir-BJ6BHE5b.js → ir-Fb3qpcis.js} +4 -4
- package/dist/plugin-sdk/{local-roots-BHLNSI8U.js → local-roots-Ckk1QfzI.js} +3 -3
- package/dist/plugin-sdk/{login-DQMXuxOk.js → login-Bh3DZPam.js} +7 -7
- package/dist/plugin-sdk/{login-qr-BjVZSoCi.js → login-qr-DbR7odSr.js} +9 -9
- package/dist/plugin-sdk/{manager-CBSBFuFz.js → manager-DckktAQ3.js} +8 -8
- package/dist/plugin-sdk/{manifest-registry-CPnHl_K3.js → manifest-registry-B3ugY9-f.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-BoYFajMu.js → markdown-tables-Dfaqilz6.js} +1 -1
- package/dist/{message-channel-Dz5lr5b0.js → plugin-sdk/message-channel-BdI5Ra9S.js} +1 -1
- package/dist/plugin-sdk/{model-selection-CsbEfrS0.js → model-selection-OpU8HN50.js} +4 -4
- package/dist/plugin-sdk/{outbound-attachment-CnslKL38.js → outbound-attachment-DnVQfTG2.js} +2 -2
- package/dist/plugin-sdk/{outbound-B0e8KdaR.js → outbound-rF6G8Xpr.js} +7 -7
- package/dist/plugin-sdk/{pi-auth-json-qWi7ZIYV.js → pi-auth-json-CJk8t14T.js} +5 -5
- package/dist/plugin-sdk/{pi-embedded-helpers-CW630epe.js → pi-embedded-helpers-BveUP4hk.js} +17 -17
- package/dist/plugin-sdk/{plugins-BNByVCIH.js → plugins-BbAvhC25.js} +4 -4
- package/dist/plugin-sdk/{pw-ai-CnbPIPY9.js → pw-ai-DjGUsee-.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-CH0XbIHf.js → qmd-manager-mjKcdwVr.js} +4 -4
- package/dist/plugin-sdk/{registry-D0xTnUWt.js → registry--_pGht6S.js} +2 -2
- package/dist/{replies-BIX_isV7.js → plugin-sdk/replies-fI39rPGa.js} +3 -3
- package/dist/plugin-sdk/{reply-DqjPcp_q.js → reply-BgTxNeXD.js} +201 -84
- package/dist/plugin-sdk/{reply-prefix-uxfMZW4p.js → reply-prefix-BHuV5t70.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-BiyAyTWz.js → resolve-outbound-target-BkCUbYGV.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-B3CCBumQ.js → resolve-route-D3JH_D2N.js} +3 -3
- package/dist/plugin-sdk/{retry-CwQ_iIj8.js → retry-ilSJqnz9.js} +1 -1
- package/dist/plugin-sdk/{runner-CGBT7tgF.js → runner-BVqnEfNe.js} +9 -9
- package/dist/plugin-sdk/{send-C5h_YxNb.js → send-BHbXh8Ly.js} +7 -7
- package/dist/plugin-sdk/{send-pYqe432l.js → send-BMfJIhCk.js} +6 -6
- package/dist/plugin-sdk/{send-B2CEnVLL.js → send-BtANzsAo.js} +6 -6
- package/dist/plugin-sdk/{send-CjOBB3Vo.js → send-Bxdu6ZZy.js} +10 -10
- package/dist/plugin-sdk/{send-CRsR8-vO.js → send-D6LMZJ_h.js} +10 -10
- package/dist/plugin-sdk/{session-BsOrxiMj.js → session-kI0tzViQ.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-ff_01_r3.js → skill-commands-DCNXVERE.js} +5 -5
- package/dist/plugin-sdk/{skills-_yTP47Cd.js → skills-B1GeRYlu.js} +7 -7
- package/dist/plugin-sdk/{sqlite-CxAR5ttJ.js → sqlite-Cq_7Cg4E.js} +1 -1
- package/dist/plugin-sdk/{store-BdrNabcU.js → store-Do3t33-c.js} +2 -2
- package/dist/plugin-sdk/{subsystem-B2uDN3TV.js → subsystem-Coz2AgU8.js} +1 -1
- package/dist/plugin-sdk/{tables-DNwXwNFa.js → tables-DR0NmBeH.js} +1 -1
- package/dist/{target-errors-Be1SwYlW.js → plugin-sdk/target-errors-B7YyMnIi.js} +2 -2
- package/dist/plugin-sdk/{thinking-CXqf7WTe.js → thinking-DCNUIAHY.js} +5 -5
- package/dist/plugin-sdk/{tokens-bC3UVmVH.js → tokens-CWMflosr.js} +1 -1
- package/dist/{tool-images-DXB7tqWi.js → plugin-sdk/tool-images-D7Lno-TE.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-BVA6fax-.js → tool-loop-detection-edmW8ZiF.js} +2 -2
- package/dist/plugin-sdk/web-B6NRKGGa.js +65 -0
- package/dist/plugin-sdk/{whatsapp-actions-DfseosPO.js → whatsapp-actions-CcBzDuL-.js} +21 -21
- package/dist/{plugins-DQYI3Fr-.js → plugins-C4C9637U.js} +9 -9
- package/dist/{plugins-cli-BJRG_tkQ.js → plugins-cli-CRb9nRFi.js} +2 -2
- package/dist/{plugins-cli-DPaKpbZ0.js → plugins-cli-DqE-InfX.js} +2 -2
- package/dist/{program-DCyh129g.js → program-BDQRtHXP.js} +7 -7
- package/dist/{program-context-27mCl36z.js → program-context-DoK7rKBC.js} +17 -17
- package/dist/{prompt-select-styled-JUdZMeZI.js → prompt-select-styled-B3dTk26Y.js} +4 -4
- package/dist/{prompt-select-styled-kpNeUDud.js → prompt-select-styled-MqSvQaDb.js} +4 -4
- package/dist/{provider-auth-helpers-C9GRYN-o.js → provider-auth-helpers-BDN3x0AU.js} +1 -1
- package/dist/{provider-auth-helpers-DyW_7UGQ.js → provider-auth-helpers-CwUeZ41c.js} +1 -1
- package/dist/{push-apns-DSpV-UMg.js → push-apns-BBaXO4aV.js} +1 -1
- package/dist/{push-apns-CZw1UMXk.js → push-apns-CgmHr336.js} +1 -1
- package/dist/{pw-ai-Ch7liUOW.js → pw-ai-DhwRiS06.js} +11 -11
- package/dist/{qmd-manager-QHUP-_em.js → qmd-manager-DdZh9PHs.js} +7 -7
- package/dist/{register.agent-B7jOO00w.js → register.agent-BDIn4sRN.js} +5 -5
- package/dist/{register.agent-Dt-fGSRM.js → register.agent-zqbU35_d.js} +6 -6
- package/dist/{register.configure-B4ssKdGP.js → register.configure-B9Atehb4.js} +6 -6
- package/dist/{register.configure-BB1NVcZv.js → register.configure-CBWMCe2I.js} +6 -6
- package/dist/{register.maintenance-ICQUl02l.js → register.maintenance-B3SsgHO_.js} +8 -8
- package/dist/{register.maintenance-B6JGjudV.js → register.maintenance-BQy8hEp0.js} +7 -7
- package/dist/{register.message-BEP0P-gF.js → register.message-B6KDPfgh.js} +2 -2
- package/dist/{register.message-B-hq0-gd.js → register.message-Dg0Q8NL0.js} +2 -2
- package/dist/{register.onboard-CrgzRM5X.js → register.onboard-Cg1itYBF.js} +4 -4
- package/dist/{register.onboard-Dgsu5_C8.js → register.onboard-kaKkBUpb.js} +4 -4
- package/dist/{register.setup-C8xPuOMY.js → register.setup-BBQtCyWL.js} +4 -4
- package/dist/{register.setup-B3pPkZ-g.js → register.setup-BiBByjTo.js} +4 -4
- package/dist/{register.status-health-sessions-RqNzd4Pm.js → register.status-health-sessions-C3M6B_3w.js} +3 -3
- package/dist/{register.status-health-sessions-DzM7DkCi.js → register.status-health-sessions-DL9QESHL.js} +3 -3
- package/dist/{register.subclis-DcJgaLOK.js → register.subclis-B27L2Tlh.js} +9 -9
- package/dist/{registry-CK4e9hn8.js → registry-DP24za6g.js} +17 -17
- package/dist/{plugin-sdk/replies-LLcQL3w6.js → replies-DpPvWiGF.js} +3 -3
- package/dist/{reply-DiFKjgpz.js → reply-ahHa59uT.js} +125 -8
- package/dist/{reply-prefix-XlyuyChD.js → reply-prefix-CtL0omgM.js} +1 -1
- package/dist/{resolve-route-CZ-1eqw0.js → resolve-route-BVikmvWO.js} +4 -4
- package/dist/{retry-Cly39XZB.js → retry-dGG-MbxL.js} +1 -1
- package/dist/{run-main-Ck0iMwKh.js → run-main-DqlK3Wy-.js} +14 -14
- package/dist/{runner-D0QUGA_X.js → runner-B_KP4voe.js} +9 -9
- package/dist/{send-DeFniOjh.js → send-CHEOWVc8.js} +6 -6
- package/dist/{send-WyRqb4WD.js → send-DbcLJb0P.js} +7 -7
- package/dist/{send-B1u-LrcS.js → send-DeEosX8F.js} +18 -18
- package/dist/{send-CiTGOvEc.js → send-DwKJK3sM.js} +10 -10
- package/dist/{send-DW96zgDL.js → send-zSarozV2.js} +6 -6
- package/dist/{server-methods-pP1Q9SDn.js → server-methods-B9ZPWP0q.js} +7 -7
- package/dist/{server-methods-CBQha8Aw.js → server-methods-CGVoOkf3.js} +7 -7
- package/dist/{server-node-events-CfY2QTYr.js → server-node-events-CjoofPGv.js} +2 -2
- package/dist/{server-node-events-aW9AFIXA.js → server-node-events-DzlyRIPt.js} +2 -2
- package/dist/{session-SM36BTsl.js → session-DV1MNlbV.js} +8 -8
- package/dist/{skill-commands-BJMb_psG.js → skill-commands-D610IKhm.js} +9 -9
- package/dist/{skills-BFekKL7i.js → skills-o5WVqM4V.js} +21 -21
- package/dist/{sqlite-DRbx2dhW.js → sqlite-6H6Zw1cs.js} +4 -4
- package/dist/{status-iwhTBXbZ.js → status-Csa1fdSW.js} +2 -2
- package/dist/{status-BNOqNwMY.js → status-DNRd5-AN.js} +1 -1
- package/dist/{status-DYp8kqmj.js → status-Dd3-6fq5.js} +2 -2
- package/dist/{status-BKc593Qu.js → status-TUjwchut.js} +1 -1
- package/dist/{store-C0wvOkae.js → store-vVE6N2mH.js} +2 -2
- package/dist/{subagent-registry-yBrXpTO-.js → subagent-registry-DfimjEyh.js} +125 -8
- package/dist/{subsystem-Bs9YvKLa.js → subsystem-DgpxyDQ_.js} +1 -1
- package/dist/{tables-DuZspiBu.js → tables-BIWsCKXJ.js} +1 -1
- package/dist/{plugin-sdk/target-errors-Paro1BjP.js → target-errors-DyItGyW9.js} +2 -2
- package/dist/{thinking-CdlENGRW.js → thinking-Ni0HF-w6.js} +5 -5
- package/dist/{tokens-H1H1LiSQ.js → tokens-c_SLAkVb.js} +1 -1
- package/dist/{plugin-sdk/tool-images-HJ2sfZDV.js → tool-images-DBCfXdli.js} +2 -2
- package/dist/{tool-loop-detection-Cs8_HCsx.js → tool-loop-detection-Bbc9OPFR.js} +3 -3
- package/dist/{update-cli-Cma87YH0.js → update-cli-4mLsTTm5.js} +7 -7
- package/dist/{update-cli-B8lS5-Z5.js → update-cli-yJuLaKdL.js} +8 -8
- package/dist/{update-runner-Cx6XjioC.js → update-runner-C0hYiaj2.js} +1 -1
- package/dist/{update-runner-DZmjPgW-.js → update-runner-CB0M0lum.js} +1 -1
- package/dist/{web-C5liFFox.js → web-BMLeQ_Ql.js} +1 -1
- package/dist/{web-CycbZoQb.js → web-BUrK0rTE.js} +2 -2
- package/dist/{web-B9ciy43q.js → web-DrsjOzkW.js} +1 -1
- package/dist/{web-BWuN3c4n.js → web-Nrl97JcY.js} +57 -57
- package/dist/{whatsapp-actions-D1RsnX7P.js → whatsapp-actions-oRQjcdQe.js} +23 -23
- package/dist/{workspace-wAaHI8-5.js → workspace-CbvamIU6.js} +6 -6
- package/package.json +1 -1
- package/dist/plugin-sdk/web-GvAx9MMo.js +0 -65
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as expandHomePrefix, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-
|
|
2
|
+
import { c as expandHomePrefix, i as resolveGatewayPort, n as resolveConfigPath, s as resolveStateDir, t as STATE_DIR, u as resolveRequiredHomeDir } from "./paths-CySxpNhH.js";
|
|
3
3
|
import { _ as isCronSessionKey, b as resolveThreadParentSessionKey, c as normalizeMainKey, d as sanitizeAgentId, f as DEFAULT_ACCOUNT_ID, g as isAcpSessionKey, h as getSubagentDepth, l as resolveAgentIdFromSessionKey, o as classifySessionKeyShape, p as normalizeAccountId$2, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveThreadSessionKeys, v as isSubagentSessionKey, y as parseAgentSessionKey } from "./session-key-BCzIW1Y2.js";
|
|
4
|
-
import { $ as warn, B as sleep$1, D as escapeRegExp, E as ensureDir$3, G as danger, I as resolveUserPath, J as logVerbose, M as normalizeE164, O as formatTerminalLink, R as shortenHomeInString, S as CONFIG_DIR, U as truncateUtf16Safe, V as sliceUtf16Safe, W as isPlainObject, X as setVerbose, Z as shouldLogVerbose, _ as matchPluginCommand, a as normalizeAnyChannelId, d as createPluginRegistry, dt as resolvePreferredSymiTmpDir, et as colorize, f as normalizePluginHttpPath, g as listPluginCommands, h as getPluginCommandSpecs, k as isRecord$1, l as requireActivePluginRegistry, lt as normalizeLogLevel, m as executePluginCommand, n as CHAT_CHANNEL_ORDER, nt as theme, o as normalizeChannelId, p as clearPluginCommands, r as DEFAULT_CHAT_CHANNEL, rt as getChildLogger, tt as isRich, u as setActivePluginRegistry, v as createInternalHookEvent, w as clampInt, x as triggerInternalHook, z as shortenHomePath } from "./registry-
|
|
5
|
-
import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, d as resolveSessionAgentIds, i as resolveAgentModelFallbacksOverride, l as resolveEffectiveModelFallbacks, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId } from "./agent-scope-
|
|
6
|
-
import { a as registerActiveProgressLine, i as clearActiveProgressLine, n as createNonExitingRuntime, o as unregisterActiveProgressLine, r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { S as logWarn, _ as runExec, b as logError, f as loadWorkspaceBootstrapFiles, g as runCommandWithTimeout, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, m as resolveSymiPackageRoot, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, u as filterBootstrapFilesForSession, v as spawnWithFallback, x as logInfo, y as logDebug } from "./workspace-
|
|
8
|
-
import { a as isSilentReplyText, i as isSilentReplyPrefixText, n as SILENT_REPLY_TOKEN, r as SYMIPULSE_TOKEN, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
9
|
-
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, g as listEnabledDiscordAccounts, h as createDiscordActionGate, i as isWhatsAppGroupJid, l as resolveTelegramAccount, m as resolveSlackBotToken, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAppToken, r as normalizeChannelId$1, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-
|
|
10
|
-
import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, p as webAuthExists, r as getWebAuthAgeMs, t as resolveWhatsAppAccount } from "./accounts-
|
|
4
|
+
import { $ as warn, B as sleep$1, D as escapeRegExp, E as ensureDir$3, G as danger, I as resolveUserPath, J as logVerbose, M as normalizeE164, O as formatTerminalLink, R as shortenHomeInString, S as CONFIG_DIR, U as truncateUtf16Safe, V as sliceUtf16Safe, W as isPlainObject, X as setVerbose, Z as shouldLogVerbose, _ as matchPluginCommand, a as normalizeAnyChannelId, d as createPluginRegistry, dt as resolvePreferredSymiTmpDir, et as colorize, f as normalizePluginHttpPath, g as listPluginCommands, h as getPluginCommandSpecs, k as isRecord$1, l as requireActivePluginRegistry, lt as normalizeLogLevel, m as executePluginCommand, n as CHAT_CHANNEL_ORDER, nt as theme, o as normalizeChannelId, p as clearPluginCommands, r as DEFAULT_CHAT_CHANNEL, rt as getChildLogger, tt as isRich, u as setActivePluginRegistry, v as createInternalHookEvent, w as clampInt, x as triggerInternalHook, z as shortenHomePath } from "./registry-DP24za6g.js";
|
|
5
|
+
import { a as resolveAgentModelPrimary, c as resolveDefaultAgentId, d as resolveSessionAgentIds, i as resolveAgentModelFallbacksOverride, l as resolveEffectiveModelFallbacks, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentId } from "./agent-scope-Bw1Ed8W9.js";
|
|
6
|
+
import { a as registerActiveProgressLine, i as clearActiveProgressLine, n as createNonExitingRuntime, o as unregisterActiveProgressLine, r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-DgpxyDQ_.js";
|
|
7
|
+
import { S as logWarn, _ as runExec, b as logError, f as loadWorkspaceBootstrapFiles, g as runCommandWithTimeout, i as DEFAULT_IDENTITY_FILENAME, l as ensureAgentWorkspace, m as resolveSymiPackageRoot, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, u as filterBootstrapFilesForSession, v as spawnWithFallback, x as logInfo, y as logDebug } from "./workspace-CbvamIU6.js";
|
|
8
|
+
import { a as isSilentReplyText, i as isSilentReplyPrefixText, n as SILENT_REPLY_TOKEN, r as SYMIPULSE_TOKEN, t as HEARTBEAT_TOKEN } from "./tokens-c_SLAkVb.js";
|
|
9
|
+
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, g as listEnabledDiscordAccounts, h as createDiscordActionGate, i as isWhatsAppGroupJid, l as resolveTelegramAccount, m as resolveSlackBotToken, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAppToken, r as normalizeChannelId$1, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-C4C9637U.js";
|
|
10
|
+
import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, p as webAuthExists, r as getWebAuthAgeMs, t as resolveWhatsAppAccount } from "./accounts-CI6zQTJj.js";
|
|
11
11
|
import { t as normalizeChatType } from "./chat-type-C_KiWNAH.js";
|
|
12
12
|
import { t as parseBooleanValue$1 } from "./boolean-B8-BqKGQ.js";
|
|
13
|
-
import { n as resolveCliName, r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
14
|
-
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-
|
|
15
|
-
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-
|
|
16
|
-
import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-
|
|
17
|
-
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-
|
|
13
|
+
import { n as resolveCliName, r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-UKHV-j0K.js";
|
|
14
|
+
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-CHEOWVc8.js";
|
|
15
|
+
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-DwKJK3sM.js";
|
|
16
|
+
import { C as getGlobalHookRunner, S as parseInlineDirectives$1, _ as normalizeTargetForProvider, a as normalizeOutboundPayloadsForJson, b as MEDIA_TOKEN_RE, c as applyReplyThreading, d as isRenderablePayload, f as shouldSuppressMessagingToolReplies, g as normalizeChannelTargetInput, h as buildTargetResolverSignature, i as normalizeOutboundPayloads, l as filterMessagingToolDuplicates, m as resolveReplyToMode, o as normalizeReplyPayloadsForDelivery, p as createReplyToModeFilterForChannel, r as formatOutboundPayloadLog, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as filterMessagingToolMediaDuplicates, v as throwIfAborted, w as initializeGlobalHookRunner, x as splitMediaFromOutput, y as parseReplyDirectives } from "./deliver-BA7ZN3iM.js";
|
|
17
|
+
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-C3nsWaw3.js";
|
|
18
18
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Bxo4UHOL.js";
|
|
19
|
-
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
20
|
-
import { $ as isVoiceCompatibleAudio, A as extractTelegramLocation, B as normalizeAllowFromWithStore$1, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as formatLocationText, H as firstDefined$1, I as resolveTelegramReplyId, J as readChannelAllowFromStore, K as toLocationContext, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as listPairingChannels, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as isSenderIdAllowed, V as resolveSenderAllowMatch, W as mergeAllowFromSources, X as upsertChannelPairingRequest, Y as removeChannelAllowFromStoreEntry, Z as getPairingAdapter, _ as resolveTelegramFetch, a as reactMessageTelegram, b as buildGroupLabel, c as sendStickerTelegram, d as wasSentByBot, et as parseTelegramTarget, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramChunks, q as addChannelAllowFromStoreEntry, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, tt as resolveTelegramTargetChatType, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-
|
|
21
|
-
import { d as detectMime, f as extensionForMime, g as isGifMedia, h as isAudioFileName, i as getImageMetadata, m as imageMimeFromFormat, s as resizeToJpeg, x as mediaKindFromMime, y as MAX_IMAGE_BYTES } from "./image-ops-
|
|
22
|
-
import { A as normalizeProviderId, C as buildAllowedModelSet, D as isCliProvider, E as findNormalizedProviderValue, F as resolveSubagentSpawnModelSelection, G as DEFAULT_MODEL, H as OLLAMA_NATIVE_BASE_URL, I as resolveThinkingDefault, J as normalizeSecretInput, K as DEFAULT_PROVIDER, M as resolveConfiguredModelRef, N as resolveDefaultModelForAgent, O as modelKey, P as resolveModelRefFromString, T as buildModelAliasIndex, U as createOllamaStreamFn, W as DEFAULT_CONTEXT_TOKENS, Y as getShellPathFromLoginShell, Z as resolveShellEnvFallbackTimeoutMs, _ as ensureAuthProfileStore, a as resolveEnvApiKey, b as withFileLock, c as resolveAuthProfileOrder, d as markAuthProfileFailure, f as markAuthProfileUsed, g as markAuthProfileGood, h as listProfilesForProvider, i as resolveApiKeyForProvider, k as normalizeModelRef$2, l as getSoonestCooldownExpiry, m as dedupeProfileIds, n as getCustomProviderApiKey, o as resolveModelAuthMode, p as resolveApiKeyForProfile, q as resolveAuthProfileDisplayLabel, r as requireApiKey, t as getApiKeyForModel, u as isProfileInCooldown, v as resolveAuthStorePathForDisplay, w as buildConfiguredAllowlistKeys, y as resolveSymiAgentDir } from "./model-auth-
|
|
23
|
-
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-
|
|
19
|
+
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-ChTFYj8Q.js";
|
|
20
|
+
import { $ as isVoiceCompatibleAudio, A as extractTelegramLocation, B as normalizeAllowFromWithStore$1, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as formatLocationText, H as firstDefined$1, I as resolveTelegramReplyId, J as readChannelAllowFromStore, K as toLocationContext, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as listPairingChannels, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as isSenderIdAllowed, V as resolveSenderAllowMatch, W as mergeAllowFromSources, X as upsertChannelPairingRequest, Y as removeChannelAllowFromStoreEntry, Z as getPairingAdapter, _ as resolveTelegramFetch, a as reactMessageTelegram, b as buildGroupLabel, c as sendStickerTelegram, d as wasSentByBot, et as parseTelegramTarget, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, o as sendMessageTelegram, p as markdownToTelegramChunks, q as addChannelAllowFromStoreEntry, r as deleteMessageTelegram, s as sendPollTelegram, t as buildInlineKeyboard, tt as resolveTelegramTargetChatType, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-DeEosX8F.js";
|
|
21
|
+
import { d as detectMime, f as extensionForMime, g as isGifMedia, h as isAudioFileName, i as getImageMetadata, m as imageMimeFromFormat, s as resizeToJpeg, x as mediaKindFromMime, y as MAX_IMAGE_BYTES } from "./image-ops-S8-8dAhx.js";
|
|
22
|
+
import { A as normalizeProviderId, C as buildAllowedModelSet, D as isCliProvider, E as findNormalizedProviderValue, F as resolveSubagentSpawnModelSelection, G as DEFAULT_MODEL, H as OLLAMA_NATIVE_BASE_URL, I as resolveThinkingDefault, J as normalizeSecretInput, K as DEFAULT_PROVIDER, M as resolveConfiguredModelRef, N as resolveDefaultModelForAgent, O as modelKey, P as resolveModelRefFromString, T as buildModelAliasIndex, U as createOllamaStreamFn, W as DEFAULT_CONTEXT_TOKENS, Y as getShellPathFromLoginShell, Z as resolveShellEnvFallbackTimeoutMs, _ as ensureAuthProfileStore, a as resolveEnvApiKey, b as withFileLock, c as resolveAuthProfileOrder, d as markAuthProfileFailure, f as markAuthProfileUsed, g as markAuthProfileGood, h as listProfilesForProvider, i as resolveApiKeyForProvider, k as normalizeModelRef$2, l as getSoonestCooldownExpiry, m as dedupeProfileIds, n as getCustomProviderApiKey, o as resolveModelAuthMode, p as resolveApiKeyForProfile, q as resolveAuthProfileDisplayLabel, r as requireApiKey, t as getApiKeyForModel, u as isProfileInCooldown, v as resolveAuthStorePathForDisplay, w as buildConfiguredAllowlistKeys, y as resolveSymiAgentDir } from "./model-auth-CwOuTuXl.js";
|
|
23
|
+
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-DJqsJ2-r.js";
|
|
24
24
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DaNAekda.js";
|
|
25
|
-
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-
|
|
26
|
-
import { $ as normalizeDeliveryContext, A as isTransientHttpError, At as DEFAULT_UPLOAD_DIR, Bt as expandToolGroups, C as isContextOverflowError, Ct as resolveGroupSessionKey, D as isRateLimitAssistantError, Dt as registerBrowserRoutes, E as isLikelyContextOverflowError, Et as createBrowserRouteContext, F as resolveSandboxContext, Ft as resolveSandboxConfigForAgent, G as updateLastRoute, Gt as compileGlobPatterns, H as loadSessionStore, Ht as normalizeToolName, I as resolveSandboxRuntimeStatus, It as applyOwnerOnlyToolPolicy, J as isCacheEnabled, Jt as ensureSessionHeader, K as updateSessionStore, Kt as matchesAnyGlobPattern, L as extractDeliveryInfo, Lt as buildPluginToolGroups, M as parseImageSizeError, Mt as getBridgeAuthForPort, N as sanitizeUserFacingText, Nt as ensureBrowserControlAuth, O as isRawApiErrorPayload, Ot as resolveBrowserConfig, P as ensureSandboxWorkspaceForSession, Pt as resolveBrowserControlAuth, Q as mergeDeliveryContext, R as parseSessionThreadInfo, Rt as collectExplicitAllowlist, S as isCompactionFailureError, St as deriveSessionMetaPatch, T as isFailoverErrorMessage, Tt as resolveSessionLockMaxHoldFromTimeout, U as readSessionUpdatedAt, Ut as resolveToolProfilePolicy, V as resolveAndPersistSessionFile, Vt as mergeAlsoAllowPolicy, W as recordSessionMetaFromInbound, Wt as stripPluginOnlyAllowlist, X as deliveryContextFromSession, Xt as resolveBootstrapTotalMaxChars, Y as resolveCacheTtlMs$1, Yt as resolveBootstrapMaxChars, Z as deliveryContextKey, Zt as sanitizeGoogleTurnOrdering, _ as formatRawAssistantErrorForUi, _t as resolveFreshSessionTotalTokens, a as isMessagingToolDuplicateNormalized, at as extractToolCallNames, b as isBillingAssistantError, bt as resolveExplicitAgentSessionKey, c as extractToolCallsFromAssistant, ct as hasInterSessionUserProvenance, d as isAntigravityClaude, dt as evaluateSessionFreshness, et as normalizeSessionDeliveryFields, f as isGoogleModelApi, ft as resolveChannelResetConfig, g as formatBillingErrorMessage, gt as DEFAULT_RESET_TRIGGERS, h as formatAssistantErrorText, ht as resolveThreadFlag, it as countToolResults, j as parseImageDimensionError, jt as resolveExistingPathsWithinRoot, k as isTimeoutErrorMessage, kt as resolveProfile, l as extractToolResultId, lt as normalizeInputProvenance, m as classifyFailoverReason, mt as resolveSessionResetType, n as validateGeminiTurns, nt as archiveSessionTranscripts, o as normalizeTextForComparison, ot as INPUT_PROVENANCE_KIND_VALUES, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetPolicy, q as updateSessionStoreEntry, qt as buildBootstrapContextFiles, r as pickFallbackThinkingLevel, rt as capArrayByJsonBytes, s as sanitizeSessionMessagesImages, st as applyInputProvenanceToUserMessage, t as validateAnthropicTurns, tt as normalizeAccountId$3, u as downgradeOpenAIReasoningBlocks, ut as resolveSessionKey, v as getApiErrorPayloadFingerprint, vt as canonicalizeMainSessionAlias, w as isFailoverAssistantError, wt as acquireSessionWriteLock, x as isCloudCodeAssistFormatError, xt as resolveMainSessionKey, y as isAuthAssistantError, z as appendAssistantMessageToSessionTranscript, zt as expandPolicyWithPluginGroups } from "./pi-embedded-helpers-
|
|
27
|
-
import { A as VERSION, C as getConfigValueAtPath, D as isSafeExecutableValue, E as unsetConfigValueAtPath, O as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, S as unsetConfigOverride, T as setConfigValueAtPath, _ as parseDurationMs, a as writeConfigFile, b as resetConfigOverrides, c as TELEGRAM_COMMAND_NAME_PATTERN, f as isInboundPathAllowed, g as normalizeScpRemoteHost, h as resolveIMessageRemoteAttachmentRoots, i as resolveConfigSnapshotHash, k as resolveAgentMaxConcurrent, l as normalizeTelegramCommandName, m as resolveIMessageAttachmentRoots, n as loadConfig, o as validateConfigObjectWithPlugins, r as readConfigFileSnapshot, u as resolveTelegramCustomCommands, v as validateJsonSchemaValue, w as parseConfigPath, x as setConfigOverride, y as getConfigOverrides } from "./config-
|
|
28
|
-
import { a as applyTestPluginDefaults, c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, i as safeStatSync, n as discoverSymiPlugins, o as normalizePluginsConfig, r as isPathInside, s as resolveEnableState, t as loadPluginManifestRegistry, u as isPathInsideWithRealpath } from "./manifest-registry-
|
|
29
|
-
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-
|
|
30
|
-
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-
|
|
25
|
+
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-DbsRltF2.js";
|
|
26
|
+
import { $ as normalizeDeliveryContext, A as isTransientHttpError, At as DEFAULT_UPLOAD_DIR, Bt as expandToolGroups, C as isContextOverflowError, Ct as resolveGroupSessionKey, D as isRateLimitAssistantError, Dt as registerBrowserRoutes, E as isLikelyContextOverflowError, Et as createBrowserRouteContext, F as resolveSandboxContext, Ft as resolveSandboxConfigForAgent, G as updateLastRoute, Gt as compileGlobPatterns, H as loadSessionStore, Ht as normalizeToolName, I as resolveSandboxRuntimeStatus, It as applyOwnerOnlyToolPolicy, J as isCacheEnabled, Jt as ensureSessionHeader, K as updateSessionStore, Kt as matchesAnyGlobPattern, L as extractDeliveryInfo, Lt as buildPluginToolGroups, M as parseImageSizeError, Mt as getBridgeAuthForPort, N as sanitizeUserFacingText, Nt as ensureBrowserControlAuth, O as isRawApiErrorPayload, Ot as resolveBrowserConfig, P as ensureSandboxWorkspaceForSession, Pt as resolveBrowserControlAuth, Q as mergeDeliveryContext, R as parseSessionThreadInfo, Rt as collectExplicitAllowlist, S as isCompactionFailureError, St as deriveSessionMetaPatch, T as isFailoverErrorMessage, Tt as resolveSessionLockMaxHoldFromTimeout, U as readSessionUpdatedAt, Ut as resolveToolProfilePolicy, V as resolveAndPersistSessionFile, Vt as mergeAlsoAllowPolicy, W as recordSessionMetaFromInbound, Wt as stripPluginOnlyAllowlist, X as deliveryContextFromSession, Xt as resolveBootstrapTotalMaxChars, Y as resolveCacheTtlMs$1, Yt as resolveBootstrapMaxChars, Z as deliveryContextKey, Zt as sanitizeGoogleTurnOrdering, _ as formatRawAssistantErrorForUi, _t as resolveFreshSessionTotalTokens, a as isMessagingToolDuplicateNormalized, at as extractToolCallNames, b as isBillingAssistantError, bt as resolveExplicitAgentSessionKey, c as extractToolCallsFromAssistant, ct as hasInterSessionUserProvenance, d as isAntigravityClaude, dt as evaluateSessionFreshness, et as normalizeSessionDeliveryFields, f as isGoogleModelApi, ft as resolveChannelResetConfig, g as formatBillingErrorMessage, gt as DEFAULT_RESET_TRIGGERS, h as formatAssistantErrorText, ht as resolveThreadFlag, it as countToolResults, j as parseImageDimensionError, jt as resolveExistingPathsWithinRoot, k as isTimeoutErrorMessage, kt as resolveProfile, l as extractToolResultId, lt as normalizeInputProvenance, m as classifyFailoverReason, mt as resolveSessionResetType, n as validateGeminiTurns, nt as archiveSessionTranscripts, o as normalizeTextForComparison, ot as INPUT_PROVENANCE_KIND_VALUES, p as BILLING_ERROR_USER_MESSAGE, pt as resolveSessionResetPolicy, q as updateSessionStoreEntry, qt as buildBootstrapContextFiles, r as pickFallbackThinkingLevel, rt as capArrayByJsonBytes, s as sanitizeSessionMessagesImages, st as applyInputProvenanceToUserMessage, t as validateAnthropicTurns, tt as normalizeAccountId$3, u as downgradeOpenAIReasoningBlocks, ut as resolveSessionKey, v as getApiErrorPayloadFingerprint, vt as canonicalizeMainSessionAlias, w as isFailoverAssistantError, wt as acquireSessionWriteLock, x as isCloudCodeAssistFormatError, xt as resolveMainSessionKey, y as isAuthAssistantError, z as appendAssistantMessageToSessionTranscript, zt as expandPolicyWithPluginGroups } from "./pi-embedded-helpers-DEEaCvEp.js";
|
|
27
|
+
import { A as VERSION, C as getConfigValueAtPath, D as isSafeExecutableValue, E as unsetConfigValueAtPath, O as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, S as unsetConfigOverride, T as setConfigValueAtPath, _ as parseDurationMs, a as writeConfigFile, b as resetConfigOverrides, c as TELEGRAM_COMMAND_NAME_PATTERN, f as isInboundPathAllowed, g as normalizeScpRemoteHost, h as resolveIMessageRemoteAttachmentRoots, i as resolveConfigSnapshotHash, k as resolveAgentMaxConcurrent, l as normalizeTelegramCommandName, m as resolveIMessageAttachmentRoots, n as loadConfig, o as validateConfigObjectWithPlugins, r as readConfigFileSnapshot, u as resolveTelegramCustomCommands, v as validateJsonSchemaValue, w as parseConfigPath, x as setConfigOverride, y as getConfigOverrides } from "./config-eEaJddXj.js";
|
|
28
|
+
import { a as applyTestPluginDefaults, c as resolveMemorySlotDecision, d as isDangerousHostEnvVarName, i as safeStatSync, n as discoverSymiPlugins, o as normalizePluginsConfig, r as isPathInside, s as resolveEnableState, t as loadPluginManifestRegistry, u as isPathInsideWithRealpath } from "./manifest-registry-CneMHk0N.js";
|
|
29
|
+
import { C as rawDataToString, O as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as isSecureWebSocketUrl, x as ensureChromeExtensionRelayServer } from "./chrome-CxSAp8x3.js";
|
|
30
|
+
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-o5WVqM4V.js";
|
|
31
31
|
import { n as formatErrorMessage, r as formatUncaughtError } from "./errors-BoQgnc8X.js";
|
|
32
32
|
import { i as isBlockedHostnameOrIp, o as normalizeHostname, t as SsrFBlockedError } from "./ssrf-BTMDZjHT.js";
|
|
33
|
-
import { n as getMediaDir, r as saveMediaBuffer } from "./store-
|
|
34
|
-
import { _ as normalizeAtHashSlug, a as normalizeReasoningLevel, b as normalizeStringEntriesLower, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, g as resolveChannelGroupToolsPolicy, h as resolveChannelGroupRequireMention, i as normalizeElevatedLevel, l as resolveResponseUsageMode, m as resolveChannelGroupPolicy, n as formatXHighModelHint, o as normalizeThinkLevel, p as normalizeSignalMessagingTarget, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking, v as normalizeHyphenSlug, y as normalizeStringEntries } from "./thinking-
|
|
33
|
+
import { n as getMediaDir, r as saveMediaBuffer } from "./store-vVE6N2mH.js";
|
|
34
|
+
import { _ as normalizeAtHashSlug, a as normalizeReasoningLevel, b as normalizeStringEntriesLower, c as normalizeVerboseLevel, d as getChannelDock, f as listChannelDocks, g as resolveChannelGroupToolsPolicy, h as resolveChannelGroupRequireMention, i as normalizeElevatedLevel, l as resolveResponseUsageMode, m as resolveChannelGroupPolicy, n as formatXHighModelHint, o as normalizeThinkLevel, p as normalizeSignalMessagingTarget, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking, v as normalizeHyphenSlug, y as normalizeStringEntries } from "./thinking-Ni0HF-w6.js";
|
|
35
35
|
import { n as resolveConversationLabel } from "./conversation-label-DXUkoKcB.js";
|
|
36
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
37
|
-
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-
|
|
36
|
+
import { t as resolveIMessageAccount } from "./accounts-CJR8j_Kq.js";
|
|
37
|
+
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-Cb87-LzP.js";
|
|
38
38
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-DDYvbmRV.js";
|
|
39
|
-
import { i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-
|
|
40
|
-
import { S as ensureSymiModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-
|
|
41
|
-
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
42
|
-
import { i as resolveMemorySearchConfig, n as probeOllamaEmbeddingModels, r as resolveOllamaBaseUrl } from "./manager-
|
|
43
|
-
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as runTasksWithConcurrency } from "./sqlite-
|
|
44
|
-
import { n as retryAsync } from "./retry-
|
|
45
|
-
import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-
|
|
46
|
-
import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-
|
|
47
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
39
|
+
import { i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, r as sanitizeToolResultImages } from "./tool-images-DBCfXdli.js";
|
|
40
|
+
import { S as ensureSymiModelsJson, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, x as extractTextFromChatContent, y as resolveToolDisplay } from "./image-BGmVDkkw.js";
|
|
41
|
+
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-CtL0omgM.js";
|
|
42
|
+
import { i as resolveMemorySearchConfig, n as probeOllamaEmbeddingModels, r as resolveOllamaBaseUrl } from "./manager-BoLr3xR_.js";
|
|
43
|
+
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths, g as runTasksWithConcurrency } from "./sqlite-6H6Zw1cs.js";
|
|
44
|
+
import { n as retryAsync } from "./retry-dGG-MbxL.js";
|
|
45
|
+
import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-DyItGyW9.js";
|
|
46
|
+
import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-ClbN9Pqy.js";
|
|
47
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DSHvnTLx.js";
|
|
48
48
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-DL3f_O53.js";
|
|
49
|
-
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
50
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-
|
|
51
|
-
import { _ as resolveNativeCommandsEnabled, a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, g as isRestartEnabled, h as isNativeCommandsExplicitlyDisabled, i as listChatCommands, l as parseCommandArgs, m as isCommandFlagEnabled, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices, v as resolveNativeSkillsEnabled } from "./commands-registry-
|
|
52
|
-
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-
|
|
49
|
+
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, o as fetchWithSsrFGuard, t as getAgentScopedMediaLocalRoots } from "./local-roots-C7OCYACU.js";
|
|
50
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-CbFUkv_T.js";
|
|
51
|
+
import { _ as resolveNativeCommandsEnabled, a as listChatCommandsForConfig, c as normalizeCommandBody, d as resolveCommandArgMenu, f as serializeCommandArgs, g as isRestartEnabled, h as isNativeCommandsExplicitlyDisabled, i as listChatCommands, l as parseCommandArgs, m as isCommandFlagEnabled, o as listNativeCommandSpecs, p as shouldHandleTextCommands, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as resolveCommandArgChoices, v as resolveNativeSkillsEnabled } from "./commands-registry-VSmULp-g.js";
|
|
52
|
+
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-D610IKhm.js";
|
|
53
53
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-BlHX0H3E.js";
|
|
54
|
-
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$1, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-
|
|
54
|
+
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$1, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-B_KP4voe.js";
|
|
55
55
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-Bso4i15F.js";
|
|
56
56
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-Bup9wS1y.js";
|
|
57
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
57
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-C9-gaquj.js";
|
|
58
58
|
import { n as normalizePollInput } from "./polls-CCuCaqgv.js";
|
|
59
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
60
|
-
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-
|
|
61
|
-
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-
|
|
62
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
59
|
+
import { t as convertMarkdownTables } from "./tables-BIWsCKXJ.js";
|
|
60
|
+
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-zSarozV2.js";
|
|
61
|
+
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-DbcLJb0P.js";
|
|
62
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-BVikmvWO.js";
|
|
63
63
|
import { t as makeProxyFetch } from "./proxy-CBJ1upuz.js";
|
|
64
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
65
|
-
import { t as getActiveWebListener } from "./active-listener-
|
|
64
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-DpPvWiGF.js";
|
|
65
|
+
import { t as getActiveWebListener } from "./active-listener-D6sXIjAg.js";
|
|
66
66
|
import { createRequire } from "node:module";
|
|
67
|
-
import * as fs$
|
|
67
|
+
import * as fs$1 from "node:fs/promises";
|
|
68
68
|
import fs from "node:fs/promises";
|
|
69
69
|
import os, { homedir } from "node:os";
|
|
70
70
|
import * as path$1 from "node:path";
|
|
71
71
|
import path from "node:path";
|
|
72
|
-
import
|
|
72
|
+
import fsSync, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
73
73
|
import JSON5 from "json5";
|
|
74
74
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
75
75
|
import { inspect, promisify } from "node:util";
|
|
@@ -3144,7 +3144,7 @@ async function resolveSymiDocsPath(params) {
|
|
|
3144
3144
|
const workspaceDir = params.workspaceDir?.trim();
|
|
3145
3145
|
if (workspaceDir) {
|
|
3146
3146
|
const workspaceDocs = path.join(workspaceDir, "docs");
|
|
3147
|
-
if (
|
|
3147
|
+
if (fsSync.existsSync(workspaceDocs)) return workspaceDocs;
|
|
3148
3148
|
}
|
|
3149
3149
|
const packageRoot = await resolveSymiPackageRoot({
|
|
3150
3150
|
cwd: params.cwd,
|
|
@@ -3153,7 +3153,7 @@ async function resolveSymiDocsPath(params) {
|
|
|
3153
3153
|
});
|
|
3154
3154
|
if (!packageRoot) return null;
|
|
3155
3155
|
const packageDocs = path.join(packageRoot, "docs");
|
|
3156
|
-
return
|
|
3156
|
+
return fsSync.existsSync(packageDocs) ? packageDocs : null;
|
|
3157
3157
|
}
|
|
3158
3158
|
|
|
3159
3159
|
//#endregion
|
|
@@ -3462,7 +3462,7 @@ async function getMemorySearchManager(params) {
|
|
|
3462
3462
|
if (cached) return { manager: cached };
|
|
3463
3463
|
}
|
|
3464
3464
|
try {
|
|
3465
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
3465
|
+
const { QmdMemoryManager } = await import("./qmd-manager-DdZh9PHs.js");
|
|
3466
3466
|
const primary = await QmdMemoryManager.create({
|
|
3467
3467
|
cfg: params.cfg,
|
|
3468
3468
|
agentId: params.agentId,
|
|
@@ -3474,7 +3474,7 @@ async function getMemorySearchManager(params) {
|
|
|
3474
3474
|
const wrapper = new FallbackMemoryManager({
|
|
3475
3475
|
primary,
|
|
3476
3476
|
fallbackFactory: async () => {
|
|
3477
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
3477
|
+
const { MemoryIndexManager } = await import("./manager-BoLr3xR_.js").then((n) => n.t);
|
|
3478
3478
|
return await MemoryIndexManager.get(params);
|
|
3479
3479
|
}
|
|
3480
3480
|
}, () => QMD_MANAGER_CACHE.delete(cacheKey));
|
|
@@ -3487,7 +3487,7 @@ async function getMemorySearchManager(params) {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
}
|
|
3489
3489
|
try {
|
|
3490
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
3490
|
+
const { MemoryIndexManager } = await import("./manager-BoLr3xR_.js").then((n) => n.t);
|
|
3491
3491
|
return { manager: await MemoryIndexManager.get(params) };
|
|
3492
3492
|
} catch (err) {
|
|
3493
3493
|
return {
|
|
@@ -4175,7 +4175,7 @@ function resolveDefaultIdentityPath() {
|
|
|
4175
4175
|
return path.join(resolveStateDir(), "identity", "device.json");
|
|
4176
4176
|
}
|
|
4177
4177
|
function ensureDir$2(filePath) {
|
|
4178
|
-
|
|
4178
|
+
fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
4179
4179
|
}
|
|
4180
4180
|
const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
|
|
4181
4181
|
function base64UrlEncode(buf) {
|
|
@@ -4211,8 +4211,8 @@ function generateIdentity() {
|
|
|
4211
4211
|
}
|
|
4212
4212
|
function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
4213
4213
|
try {
|
|
4214
|
-
if (
|
|
4215
|
-
const raw =
|
|
4214
|
+
if (fsSync.existsSync(filePath)) {
|
|
4215
|
+
const raw = fsSync.readFileSync(filePath, "utf8");
|
|
4216
4216
|
const parsed = JSON.parse(raw);
|
|
4217
4217
|
if (parsed?.version === 1 && typeof parsed.deviceId === "string" && typeof parsed.publicKeyPem === "string" && typeof parsed.privateKeyPem === "string") {
|
|
4218
4218
|
const derivedId = fingerprintPublicKey(parsed.publicKeyPem);
|
|
@@ -4221,9 +4221,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
4221
4221
|
...parsed,
|
|
4222
4222
|
deviceId: derivedId
|
|
4223
4223
|
};
|
|
4224
|
-
|
|
4224
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
|
|
4225
4225
|
try {
|
|
4226
|
-
|
|
4226
|
+
fsSync.chmodSync(filePath, 384);
|
|
4227
4227
|
} catch {}
|
|
4228
4228
|
return {
|
|
4229
4229
|
deviceId: derivedId,
|
|
@@ -4248,9 +4248,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
4248
4248
|
privateKeyPem: identity.privateKeyPem,
|
|
4249
4249
|
createdAtMs: Date.now()
|
|
4250
4250
|
};
|
|
4251
|
-
|
|
4251
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
|
|
4252
4252
|
try {
|
|
4253
|
-
|
|
4253
|
+
fsSync.chmodSync(filePath, 384);
|
|
4254
4254
|
} catch {}
|
|
4255
4255
|
return identity;
|
|
4256
4256
|
}
|
|
@@ -4400,8 +4400,8 @@ function resolveDeviceAuthPath(env = process.env) {
|
|
|
4400
4400
|
}
|
|
4401
4401
|
function readStore(filePath) {
|
|
4402
4402
|
try {
|
|
4403
|
-
if (!
|
|
4404
|
-
const raw =
|
|
4403
|
+
if (!fsSync.existsSync(filePath)) return null;
|
|
4404
|
+
const raw = fsSync.readFileSync(filePath, "utf8");
|
|
4405
4405
|
const parsed = JSON.parse(raw);
|
|
4406
4406
|
if (parsed?.version !== 1 || typeof parsed.deviceId !== "string") return null;
|
|
4407
4407
|
if (!parsed.tokens || typeof parsed.tokens !== "object") return null;
|
|
@@ -4411,10 +4411,10 @@ function readStore(filePath) {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
}
|
|
4413
4413
|
function writeStore(filePath, store) {
|
|
4414
|
-
|
|
4415
|
-
|
|
4414
|
+
fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
4415
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
|
|
4416
4416
|
try {
|
|
4417
|
-
|
|
4417
|
+
fsSync.chmodSync(filePath, 384);
|
|
4418
4418
|
} catch {}
|
|
4419
4419
|
}
|
|
4420
4420
|
function loadDeviceAuthToken(params) {
|
|
@@ -7201,7 +7201,7 @@ async function routeReply(params) {
|
|
|
7201
7201
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
7202
7202
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
7203
7203
|
try {
|
|
7204
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
7204
|
+
const { deliverOutboundPayloads } = await import("./deliver-BA7ZN3iM.js").then((n) => n.n);
|
|
7205
7205
|
return {
|
|
7206
7206
|
ok: true,
|
|
7207
7207
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -7597,7 +7597,7 @@ function normalizeSessionKey(value) {
|
|
|
7597
7597
|
}
|
|
7598
7598
|
function readSessionStore(storePath) {
|
|
7599
7599
|
try {
|
|
7600
|
-
const raw =
|
|
7600
|
+
const raw = fsSync.readFileSync(storePath, "utf-8");
|
|
7601
7601
|
const parsed = JSON5.parse(raw);
|
|
7602
7602
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
7603
7603
|
} catch {}
|
|
@@ -12656,7 +12656,7 @@ async function createModelSelectionState(params) {
|
|
|
12656
12656
|
}
|
|
12657
12657
|
}
|
|
12658
12658
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
12659
|
-
const { ensureAuthProfileStore } = await import("./model-auth-
|
|
12659
|
+
const { ensureAuthProfileStore } = await import("./model-auth-CwOuTuXl.js").then((n) => n.s);
|
|
12660
12660
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
12661
12661
|
const providerKey = normalizeProviderId(provider);
|
|
12662
12662
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -15029,8 +15029,8 @@ const DEFAULT_SAFE_BINS = [
|
|
|
15029
15029
|
];
|
|
15030
15030
|
function isExecutableFile(filePath) {
|
|
15031
15031
|
try {
|
|
15032
|
-
if (!
|
|
15033
|
-
if (process.platform !== "win32")
|
|
15032
|
+
if (!fsSync.statSync(filePath).isFile()) return false;
|
|
15033
|
+
if (process.platform !== "win32") fsSync.accessSync(filePath, fsSync.constants.X_OK);
|
|
15034
15034
|
return true;
|
|
15035
15035
|
} catch {
|
|
15036
15036
|
return false;
|
|
@@ -15068,7 +15068,7 @@ function normalizeMatchTarget(value) {
|
|
|
15068
15068
|
}
|
|
15069
15069
|
function tryRealpath(value) {
|
|
15070
15070
|
try {
|
|
15071
|
-
return
|
|
15071
|
+
return fsSync.realpathSync(value);
|
|
15072
15072
|
} catch {
|
|
15073
15073
|
return null;
|
|
15074
15074
|
}
|
|
@@ -16300,7 +16300,7 @@ function mergeLegacyAgent(current, legacy) {
|
|
|
16300
16300
|
}
|
|
16301
16301
|
function ensureDir$1(filePath) {
|
|
16302
16302
|
const dir = path.dirname(filePath);
|
|
16303
|
-
|
|
16303
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
16304
16304
|
}
|
|
16305
16305
|
function coerceAllowlistEntries(allowlist) {
|
|
16306
16306
|
if (!Array.isArray(allowlist) || allowlist.length === 0) return Array.isArray(allowlist) ? allowlist : void 0;
|
|
@@ -16370,11 +16370,11 @@ function generateToken() {
|
|
|
16370
16370
|
function loadExecApprovals() {
|
|
16371
16371
|
const filePath = resolveExecApprovalsPath();
|
|
16372
16372
|
try {
|
|
16373
|
-
if (!
|
|
16373
|
+
if (!fsSync.existsSync(filePath)) return normalizeExecApprovals({
|
|
16374
16374
|
version: 1,
|
|
16375
16375
|
agents: {}
|
|
16376
16376
|
});
|
|
16377
|
-
const raw =
|
|
16377
|
+
const raw = fsSync.readFileSync(filePath, "utf8");
|
|
16378
16378
|
const parsed = JSON.parse(raw);
|
|
16379
16379
|
if (parsed?.version !== 1) return normalizeExecApprovals({
|
|
16380
16380
|
version: 1,
|
|
@@ -16391,9 +16391,9 @@ function loadExecApprovals() {
|
|
|
16391
16391
|
function saveExecApprovals(file) {
|
|
16392
16392
|
const filePath = resolveExecApprovalsPath();
|
|
16393
16393
|
ensureDir$1(filePath);
|
|
16394
|
-
|
|
16394
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(file, null, 2)}\n`, { mode: 384 });
|
|
16395
16395
|
try {
|
|
16396
|
-
|
|
16396
|
+
fsSync.chmodSync(filePath, 384);
|
|
16397
16397
|
} catch {}
|
|
16398
16398
|
}
|
|
16399
16399
|
function ensureExecApprovals() {
|
|
@@ -16714,7 +16714,7 @@ function resolvePowerShellPath() {
|
|
|
16714
16714
|
const systemRoot = process.env.SystemRoot || process.env.WINDIR;
|
|
16715
16715
|
if (systemRoot) {
|
|
16716
16716
|
const candidate = path.join(systemRoot, "System32", "WindowsPowerShell", "v1.0", "powershell.exe");
|
|
16717
|
-
if (
|
|
16717
|
+
if (fsSync.existsSync(candidate)) return candidate;
|
|
16718
16718
|
}
|
|
16719
16719
|
return "powershell.exe";
|
|
16720
16720
|
}
|
|
@@ -16752,7 +16752,7 @@ function resolveShellFromPath(name) {
|
|
|
16752
16752
|
for (const entry of entries) {
|
|
16753
16753
|
const candidate = path.join(entry, name);
|
|
16754
16754
|
try {
|
|
16755
|
-
|
|
16755
|
+
fsSync.accessSync(candidate, fsSync.constants.X_OK);
|
|
16756
16756
|
return candidate;
|
|
16757
16757
|
} catch {}
|
|
16758
16758
|
}
|
|
@@ -19864,7 +19864,7 @@ function walkUpFrom(startDir, opts, resolveAtDir) {
|
|
|
19864
19864
|
function hasGitMarker(repoRoot) {
|
|
19865
19865
|
const gitPath = path.join(repoRoot, ".git");
|
|
19866
19866
|
try {
|
|
19867
|
-
const stat =
|
|
19867
|
+
const stat = fsSync.statSync(gitPath);
|
|
19868
19868
|
return stat.isDirectory() || stat.isFile();
|
|
19869
19869
|
} catch {
|
|
19870
19870
|
return false;
|
|
@@ -19876,10 +19876,10 @@ function findGitRoot(startDir, opts = {}) {
|
|
|
19876
19876
|
function resolveGitDirFromMarker(repoRoot) {
|
|
19877
19877
|
const gitPath = path.join(repoRoot, ".git");
|
|
19878
19878
|
try {
|
|
19879
|
-
const stat =
|
|
19879
|
+
const stat = fsSync.statSync(gitPath);
|
|
19880
19880
|
if (stat.isDirectory()) return gitPath;
|
|
19881
19881
|
if (!stat.isFile()) return null;
|
|
19882
|
-
const match =
|
|
19882
|
+
const match = fsSync.readFileSync(gitPath, "utf-8").match(/gitdir:\s*(.+)/i);
|
|
19883
19883
|
if (!match?.[1]) return null;
|
|
19884
19884
|
return path.resolve(repoRoot, match[1].trim());
|
|
19885
19885
|
} catch {
|
|
@@ -19946,7 +19946,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
19946
19946
|
cachedCommit = null;
|
|
19947
19947
|
return cachedCommit;
|
|
19948
19948
|
}
|
|
19949
|
-
const head =
|
|
19949
|
+
const head = fsSync.readFileSync(headPath, "utf-8").trim();
|
|
19950
19950
|
if (!head) {
|
|
19951
19951
|
cachedCommit = null;
|
|
19952
19952
|
return cachedCommit;
|
|
@@ -19954,7 +19954,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
19954
19954
|
if (head.startsWith("ref:")) {
|
|
19955
19955
|
const ref = head.replace(/^ref:\s*/i, "").trim();
|
|
19956
19956
|
const refPath = path.resolve(path.dirname(headPath), ref);
|
|
19957
|
-
cachedCommit = formatCommit(
|
|
19957
|
+
cachedCommit = formatCommit(fsSync.readFileSync(refPath, "utf-8").trim());
|
|
19958
19958
|
return cachedCommit;
|
|
19959
19959
|
}
|
|
19960
19960
|
cachedCommit = formatCommit(head);
|
|
@@ -20158,9 +20158,9 @@ const readUsageFromSessionLog = (sessionId, sessionEntry, agentId, sessionKey, s
|
|
|
20158
20158
|
} catch {
|
|
20159
20159
|
return;
|
|
20160
20160
|
}
|
|
20161
|
-
if (!
|
|
20161
|
+
if (!fsSync.existsSync(logPath)) return;
|
|
20162
20162
|
try {
|
|
20163
|
-
const lines =
|
|
20163
|
+
const lines = fsSync.readFileSync(logPath, "utf-8").split(/\n+/);
|
|
20164
20164
|
let input = 0;
|
|
20165
20165
|
let output = 0;
|
|
20166
20166
|
let promptTokens = 0;
|
|
@@ -21400,7 +21400,7 @@ function resolveRepoRoot(params) {
|
|
|
21400
21400
|
const configured = params.config?.agents?.defaults?.repoRoot?.trim();
|
|
21401
21401
|
if (configured) try {
|
|
21402
21402
|
const resolved = path.resolve(configured);
|
|
21403
|
-
if (
|
|
21403
|
+
if (fsSync.statSync(resolved).isDirectory()) return resolved;
|
|
21404
21404
|
} catch {}
|
|
21405
21405
|
const candidates = [params.workspaceDir, params.cwd].map((value) => value?.trim()).filter(Boolean);
|
|
21406
21406
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -22243,7 +22243,7 @@ async function buildContextReply(params) {
|
|
|
22243
22243
|
//#region src/auto-reply/reply/commands-export-session.ts
|
|
22244
22244
|
const EXPORT_HTML_DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "export-html");
|
|
22245
22245
|
function loadTemplate(fileName) {
|
|
22246
|
-
return
|
|
22246
|
+
return fsSync.readFileSync(path.join(EXPORT_HTML_DIR, fileName), "utf-8");
|
|
22247
22247
|
}
|
|
22248
22248
|
function generateHtml(sessionData) {
|
|
22249
22249
|
const template = loadTemplate("template.html");
|
|
@@ -22317,7 +22317,7 @@ async function buildExportSessionReply(params) {
|
|
|
22317
22317
|
} catch (err) {
|
|
22318
22318
|
return { text: `❌ Failed to resolve session file: ${err instanceof Error ? err.message : String(err)}` };
|
|
22319
22319
|
}
|
|
22320
|
-
if (!
|
|
22320
|
+
if (!fsSync.existsSync(sessionFile)) return { text: `❌ Session file not found: ${sessionFile}` };
|
|
22321
22321
|
const sessionManager = SessionManager.open(sessionFile);
|
|
22322
22322
|
const entries = sessionManager.getEntries();
|
|
22323
22323
|
const header = sessionManager.getHeader();
|
|
@@ -22338,8 +22338,8 @@ async function buildExportSessionReply(params) {
|
|
|
22338
22338
|
const defaultFileName = `symi-session-${entry.sessionId.slice(0, 8)}-${timestamp}.html`;
|
|
22339
22339
|
const outputPath = args.outputPath ? path.resolve(args.outputPath.startsWith("~") ? args.outputPath.replace("~", process.env.HOME ?? "") : args.outputPath) : path.join(params.workspaceDir, defaultFileName);
|
|
22340
22340
|
const outputDir = path.dirname(outputPath);
|
|
22341
|
-
if (!
|
|
22342
|
-
|
|
22341
|
+
if (!fsSync.existsSync(outputDir)) fsSync.mkdirSync(outputDir, { recursive: true });
|
|
22342
|
+
fsSync.writeFileSync(outputPath, html, "utf-8");
|
|
22343
22343
|
const relativePath = path.relative(params.workspaceDir, outputPath);
|
|
22344
22344
|
return { text: [
|
|
22345
22345
|
"✅ Session exported!",
|
|
@@ -22453,8 +22453,8 @@ function resolveZaiApiKey() {
|
|
|
22453
22453
|
}
|
|
22454
22454
|
try {
|
|
22455
22455
|
const authPath = path.join(os.homedir(), ".pi", "agent", "auth.json");
|
|
22456
|
-
if (!
|
|
22457
|
-
const data = JSON.parse(
|
|
22456
|
+
if (!fsSync.existsSync(authPath)) return;
|
|
22457
|
+
const data = JSON.parse(fsSync.readFileSync(authPath, "utf-8"));
|
|
22458
22458
|
return data["z-ai"]?.access || data.zai?.access;
|
|
22459
22459
|
} catch {
|
|
22460
22460
|
return;
|
|
@@ -24019,7 +24019,7 @@ function shouldPersistAnyBindingState() {
|
|
|
24019
24019
|
}
|
|
24020
24020
|
function shouldPersistBindingMutations() {
|
|
24021
24021
|
if (shouldPersistAnyBindingState()) return true;
|
|
24022
|
-
return
|
|
24022
|
+
return fsSync.existsSync(resolveThreadBindingsPath());
|
|
24023
24023
|
}
|
|
24024
24024
|
function saveBindingsToDisk(params = {}) {
|
|
24025
24025
|
if (!params.force && !shouldPersistAnyBindingState()) return;
|
|
@@ -25007,7 +25007,7 @@ const applyCostTotal = (totals, costTotal) => {
|
|
|
25007
25007
|
totals.totalCost += costTotal;
|
|
25008
25008
|
};
|
|
25009
25009
|
async function* readJsonlRecords(filePath) {
|
|
25010
|
-
const fileStream =
|
|
25010
|
+
const fileStream = fsSync.createReadStream(filePath, { encoding: "utf-8" });
|
|
25011
25011
|
const rl = readline.createInterface({
|
|
25012
25012
|
input: fileStream,
|
|
25013
25013
|
crlfDelay: Infinity
|
|
@@ -25079,10 +25079,10 @@ async function loadCostUsageSummary(params) {
|
|
|
25079
25079
|
const dailyMap = /* @__PURE__ */ new Map();
|
|
25080
25080
|
const totals = emptyTotals();
|
|
25081
25081
|
const sessionsDir = resolveSessionTranscriptsDirForAgent(params?.agentId);
|
|
25082
|
-
const entries = await
|
|
25082
|
+
const entries = await fsSync.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
25083
25083
|
const files = (await Promise.all(entries.filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).map(async (entry) => {
|
|
25084
25084
|
const filePath = path.join(sessionsDir, entry.name);
|
|
25085
|
-
const stats = await
|
|
25085
|
+
const stats = await fsSync.promises.stat(filePath).catch(() => null);
|
|
25086
25086
|
if (!stats) return null;
|
|
25087
25087
|
if (stats.mtimeMs < sinceTime) return null;
|
|
25088
25088
|
return filePath;
|
|
@@ -25115,7 +25115,7 @@ async function loadCostUsageSummary(params) {
|
|
|
25115
25115
|
}
|
|
25116
25116
|
async function loadSessionCostSummary(params) {
|
|
25117
25117
|
const sessionFile = params.sessionFile ?? (params.sessionId ? resolveSessionFilePath(params.sessionId, params.sessionEntry, { agentId: params.agentId }) : void 0);
|
|
25118
|
-
if (!sessionFile || !
|
|
25118
|
+
if (!sessionFile || !fsSync.existsSync(sessionFile)) return null;
|
|
25119
25119
|
const totals = emptyTotals();
|
|
25120
25120
|
let firstActivity;
|
|
25121
25121
|
let lastActivity;
|
|
@@ -29321,7 +29321,7 @@ function asBoolean(value) {
|
|
|
29321
29321
|
}
|
|
29322
29322
|
function resolveTempPathParts(opts) {
|
|
29323
29323
|
const tmpDir = opts.tmpDir ?? resolvePreferredSymiTmpDir();
|
|
29324
|
-
if (!opts.tmpDir)
|
|
29324
|
+
if (!opts.tmpDir) fsSync.mkdirSync(tmpDir, {
|
|
29325
29325
|
recursive: true,
|
|
29326
29326
|
mode: 448
|
|
29327
29327
|
});
|
|
@@ -29387,7 +29387,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
29387
29387
|
if (typeof contentLength === "number" && Number.isFinite(contentLength) && contentLength > MAX_CAMERA_URL_DOWNLOAD_BYTES) throw new Error(`writeUrlToFile: content-length ${contentLength} exceeds max ${MAX_CAMERA_URL_DOWNLOAD_BYTES}`);
|
|
29388
29388
|
const body = res.body;
|
|
29389
29389
|
if (!body) throw new Error(`failed to download ${url}: empty response body`);
|
|
29390
|
-
const fileHandle = await fs$
|
|
29390
|
+
const fileHandle = await fs$1.open(filePath, "w");
|
|
29391
29391
|
let bytes = 0;
|
|
29392
29392
|
let thrown;
|
|
29393
29393
|
try {
|
|
@@ -29406,7 +29406,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
29406
29406
|
await fileHandle.close();
|
|
29407
29407
|
}
|
|
29408
29408
|
if (thrown) {
|
|
29409
|
-
await fs$
|
|
29409
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
29410
29410
|
throw thrown;
|
|
29411
29411
|
}
|
|
29412
29412
|
return {
|
|
@@ -29416,7 +29416,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
29416
29416
|
}
|
|
29417
29417
|
async function writeBase64ToFile(filePath, base64) {
|
|
29418
29418
|
const buf = Buffer.from(base64, "base64");
|
|
29419
|
-
await fs$
|
|
29419
|
+
await fs$1.writeFile(filePath, buf);
|
|
29420
29420
|
return {
|
|
29421
29421
|
path: filePath,
|
|
29422
29422
|
bytes: buf.length
|
|
@@ -34781,7 +34781,7 @@ function listExistingAgentIdsFromDisk() {
|
|
|
34781
34781
|
const root = resolveStateDir();
|
|
34782
34782
|
const agentsDir = path.join(root, "agents");
|
|
34783
34783
|
try {
|
|
34784
|
-
return
|
|
34784
|
+
return fsSync.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
|
|
34785
34785
|
} catch {
|
|
34786
34786
|
return [];
|
|
34787
34787
|
}
|
|
@@ -39816,7 +39816,7 @@ async function runAgentTurnWithFallback(params) {
|
|
|
39816
39816
|
if (corruptedSessionId) {
|
|
39817
39817
|
const transcriptPath = resolveSessionTranscriptPath(corruptedSessionId);
|
|
39818
39818
|
try {
|
|
39819
|
-
|
|
39819
|
+
fsSync.unlinkSync(transcriptPath);
|
|
39820
39820
|
} catch {}
|
|
39821
39821
|
}
|
|
39822
39822
|
delete params.activeSessionStore[sessionKey];
|
|
@@ -40521,9 +40521,9 @@ function auditPostCompactionReads(readFilePaths, workspaceDir, requiredReads = D
|
|
|
40521
40521
|
* Returns messages from the last N lines (default 100).
|
|
40522
40522
|
*/
|
|
40523
40523
|
function readSessionMessages(sessionFile, maxLines = 100) {
|
|
40524
|
-
if (!
|
|
40524
|
+
if (!fsSync.existsSync(sessionFile)) return [];
|
|
40525
40525
|
try {
|
|
40526
|
-
const recentLines =
|
|
40526
|
+
const recentLines = fsSync.readFileSync(sessionFile, "utf-8").trim().split("\n").slice(-maxLines);
|
|
40527
40527
|
const messages = [];
|
|
40528
40528
|
for (const line of recentLines) try {
|
|
40529
40529
|
const entry = JSON.parse(line);
|
|
@@ -40564,8 +40564,8 @@ const MAX_CONTEXT_CHARS = 3e3;
|
|
|
40564
40564
|
async function readPostCompactionContext(workspaceDir) {
|
|
40565
40565
|
const agentsPath = path.join(workspaceDir, "AGENTS.md");
|
|
40566
40566
|
try {
|
|
40567
|
-
if (!
|
|
40568
|
-
const sections = extractSections(await
|
|
40567
|
+
if (!fsSync.existsSync(agentsPath)) return null;
|
|
40568
|
+
const sections = extractSections(await fsSync.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
|
|
40569
40569
|
if (sections.length === 0) return null;
|
|
40570
40570
|
const combined = sections.join("\n\n");
|
|
40571
40571
|
return "[Post-compaction context refresh]\n\nSession was just compacted. The conversation summary above is a hint, NOT a substitute for your startup sequence. Execute your Session Startup sequence now — read the required files before responding to the user.\n\nCritical rules from AGENTS.md:\n\n" + (combined.length > MAX_CONTEXT_CHARS ? combined.slice(0, MAX_CONTEXT_CHARS) + "\n...[truncated]..." : combined);
|
|
@@ -40769,7 +40769,7 @@ async function runReplyAgent(params) {
|
|
|
40769
40769
|
if (resolved) transcriptCandidates.add(resolved);
|
|
40770
40770
|
transcriptCandidates.add(resolveSessionTranscriptPath(prevSessionId, agentId));
|
|
40771
40771
|
for (const candidate of transcriptCandidates) try {
|
|
40772
|
-
|
|
40772
|
+
fsSync.unlinkSync(candidate);
|
|
40773
40773
|
} catch {}
|
|
40774
40774
|
}
|
|
40775
40775
|
return true;
|
|
@@ -41675,7 +41675,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
41675
41675
|
return;
|
|
41676
41676
|
}
|
|
41677
41677
|
try {
|
|
41678
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
41678
|
+
const { deliverOutboundPayloads } = await import("./deliver-BA7ZN3iM.js").then((n) => n.n);
|
|
41679
41679
|
await deliverOutboundPayloads({
|
|
41680
41680
|
cfg: params.cfg,
|
|
41681
41681
|
channel,
|
|
@@ -41701,7 +41701,7 @@ function forkSessionFromParent(params) {
|
|
|
41701
41701
|
agentId: params.agentId,
|
|
41702
41702
|
sessionsDir: params.sessionsDir
|
|
41703
41703
|
});
|
|
41704
|
-
if (!parentSessionFile || !
|
|
41704
|
+
if (!parentSessionFile || !fsSync.existsSync(parentSessionFile)) return null;
|
|
41705
41705
|
try {
|
|
41706
41706
|
const manager = SessionManager.open(parentSessionFile);
|
|
41707
41707
|
const leafId = manager.getLeafId();
|
|
@@ -41725,7 +41725,7 @@ function forkSessionFromParent(params) {
|
|
|
41725
41725
|
cwd: manager.getCwd(),
|
|
41726
41726
|
parentSession: parentSessionFile
|
|
41727
41727
|
};
|
|
41728
|
-
|
|
41728
|
+
fsSync.writeFileSync(sessionFile, `${JSON.stringify(header)}\n`, "utf-8");
|
|
41729
41729
|
return {
|
|
41730
41730
|
sessionId,
|
|
41731
41731
|
sessionFile
|
|
@@ -45121,7 +45121,7 @@ async function describeStickerImage(params) {
|
|
|
45121
45121
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
45122
45122
|
try {
|
|
45123
45123
|
const buffer = await fs.readFile(imagePath);
|
|
45124
|
-
const { describeImageWithModel } = await import("./image-
|
|
45124
|
+
const { describeImageWithModel } = await import("./image-BGmVDkkw.js").then((n) => n.n);
|
|
45125
45125
|
return (await describeImageWithModel({
|
|
45126
45126
|
buffer,
|
|
45127
45127
|
fileName: "sticker.webp",
|
|
@@ -45544,7 +45544,7 @@ function createWhatsAppLoginTool() {
|
|
|
45544
45544
|
force: Type.Optional(Type.Boolean())
|
|
45545
45545
|
}),
|
|
45546
45546
|
execute: async (_toolCallId, args) => {
|
|
45547
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
45547
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-CIZk8uKX.js");
|
|
45548
45548
|
if ((args?.action ?? "start") === "wait") {
|
|
45549
45549
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
45550
45550
|
return {
|
|
@@ -45826,7 +45826,7 @@ async function withMemoryManagerForAgent(params) {
|
|
|
45826
45826
|
}
|
|
45827
45827
|
async function checkReadableFile(pathname) {
|
|
45828
45828
|
try {
|
|
45829
|
-
await fs.access(pathname,
|
|
45829
|
+
await fs.access(pathname, fsSync.constants.R_OK);
|
|
45830
45830
|
return { exists: true };
|
|
45831
45831
|
} catch (err) {
|
|
45832
45832
|
const code = err.code;
|
|
@@ -45885,7 +45885,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
45885
45885
|
}
|
|
45886
45886
|
let dirReadable = null;
|
|
45887
45887
|
try {
|
|
45888
|
-
await fs.access(memoryDir,
|
|
45888
|
+
await fs.access(memoryDir, fsSync.constants.R_OK);
|
|
45889
45889
|
dirReadable = true;
|
|
45890
45890
|
} catch (err) {
|
|
45891
45891
|
const code = err.code;
|
|
@@ -47783,7 +47783,7 @@ async function preflightDiscordMessage(params) {
|
|
|
47783
47783
|
let preflightTranscript;
|
|
47784
47784
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
47785
47785
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
47786
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
47786
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BkIfnmpi.js");
|
|
47787
47787
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
47788
47788
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
47789
47789
|
ctx: {
|
|
@@ -48746,7 +48746,7 @@ function identityHasValues(identity) {
|
|
|
48746
48746
|
}
|
|
48747
48747
|
function loadIdentityFromFile(identityPath) {
|
|
48748
48748
|
try {
|
|
48749
|
-
const parsed = parseIdentityMarkdown(
|
|
48749
|
+
const parsed = parseIdentityMarkdown(fsSync.readFileSync(identityPath, "utf-8"));
|
|
48750
48750
|
if (!identityHasValues(parsed)) return null;
|
|
48751
48751
|
return parsed;
|
|
48752
48752
|
} catch {
|
|
@@ -48785,7 +48785,7 @@ function isDataAvatar(value) {
|
|
|
48785
48785
|
}
|
|
48786
48786
|
function resolveExistingPath(value) {
|
|
48787
48787
|
try {
|
|
48788
|
-
return
|
|
48788
|
+
return fsSync.realpathSync(value);
|
|
48789
48789
|
} catch {
|
|
48790
48790
|
return path.resolve(value);
|
|
48791
48791
|
}
|
|
@@ -48809,7 +48809,7 @@ function resolveLocalAvatarPath(params) {
|
|
|
48809
48809
|
reason: "unsupported_extension"
|
|
48810
48810
|
};
|
|
48811
48811
|
try {
|
|
48812
|
-
if (!
|
|
48812
|
+
if (!fsSync.statSync(realPath).isFile()) return {
|
|
48813
48813
|
ok: false,
|
|
48814
48814
|
reason: "missing"
|
|
48815
48815
|
};
|
|
@@ -49672,7 +49672,7 @@ function sanitizeRecentModels(models, limit) {
|
|
|
49672
49672
|
}
|
|
49673
49673
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
49674
49674
|
try {
|
|
49675
|
-
const raw = await
|
|
49675
|
+
const raw = await fsSync.promises.readFile(filePath, "utf-8");
|
|
49676
49676
|
return {
|
|
49677
49677
|
value: JSON.parse(raw),
|
|
49678
49678
|
exists: true
|
|
@@ -49690,14 +49690,14 @@ async function readJsonFileWithFallback(filePath, fallback) {
|
|
|
49690
49690
|
}
|
|
49691
49691
|
async function writeJsonFileAtomically(filePath, value) {
|
|
49692
49692
|
const dir = path.dirname(filePath);
|
|
49693
|
-
await
|
|
49693
|
+
await fsSync.promises.mkdir(dir, {
|
|
49694
49694
|
recursive: true,
|
|
49695
49695
|
mode: 448
|
|
49696
49696
|
});
|
|
49697
49697
|
const tmp = path.join(dir, `${path.basename(filePath)}.${crypto.randomUUID()}.tmp`);
|
|
49698
|
-
await
|
|
49699
|
-
await
|
|
49700
|
-
await
|
|
49698
|
+
await fsSync.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, "utf-8");
|
|
49699
|
+
await fsSync.promises.chmod(tmp, 384);
|
|
49700
|
+
await fsSync.promises.rename(tmp, filePath);
|
|
49701
49701
|
}
|
|
49702
49702
|
async function readPreferencesStore(filePath) {
|
|
49703
49703
|
const { value } = await readJsonFileWithFallback(filePath, {
|
|
@@ -51819,7 +51819,16 @@ const BUILTIN_PROFILES = [
|
|
|
51819
51819
|
suppressMonologue: true,
|
|
51820
51820
|
hasStructuredThinking: false
|
|
51821
51821
|
},
|
|
51822
|
-
promptAdditions: [
|
|
51822
|
+
promptAdditions: [
|
|
51823
|
+
"CRITICAL OUTPUT RULES:",
|
|
51824
|
+
"- Your response ends when you have delivered the answer. Do not append anything after.",
|
|
51825
|
+
"- Do not output raw control tokens, channel tags, or turn markers.",
|
|
51826
|
+
"- Do not begin any sentence with 'I have addressed' or 'I've reviewed'.",
|
|
51827
|
+
"- Do not write verification checklists, self-assessments, or numbered assessment lists after your answer.",
|
|
51828
|
+
"- Do not write 'Verification:', 'Requirements:', 'Status Check:', or 'Everything is correct'.",
|
|
51829
|
+
"- If you need to verify your work, do so before writing your response, not after.",
|
|
51830
|
+
"- Send brief progress updates on long tasks so the user knows you are active."
|
|
51831
|
+
],
|
|
51823
51832
|
ui: {
|
|
51824
51833
|
badge: "Local",
|
|
51825
51834
|
watchdogMs: 9e5,
|
|
@@ -51879,12 +51888,15 @@ const BUILTIN_PROFILES = [
|
|
|
51879
51888
|
hasStructuredThinking: false
|
|
51880
51889
|
},
|
|
51881
51890
|
promptAdditions: [
|
|
51882
|
-
"
|
|
51883
|
-
"-
|
|
51884
|
-
"-
|
|
51885
|
-
"-
|
|
51891
|
+
"CRITICAL OUTPUT RULES:",
|
|
51892
|
+
"- Your response ends when you have delivered the answer. Do not append anything after.",
|
|
51893
|
+
"- Do not output raw control tokens, channel tags, turn markers, or <|channel>thought syntax.",
|
|
51894
|
+
"- Do not begin any sentence with 'I have addressed' or 'I've reviewed'.",
|
|
51895
|
+
"- Do not write verification checklists, self-assessments, or numbered assessment lists after your answer.",
|
|
51896
|
+
"- Do not write 'Verification:', 'Requirements:', 'Status Check:', or 'Everything is correct'.",
|
|
51897
|
+
"- If you need to verify your work, do so before writing your response, not after.",
|
|
51886
51898
|
"- Keep planning and reasoning internal. Only speak when you have a result or need user input.",
|
|
51887
|
-
"-
|
|
51899
|
+
"- When working on multi-step tasks, send a brief one-line status update so the user knows you are active."
|
|
51888
51900
|
],
|
|
51889
51901
|
ui: {
|
|
51890
51902
|
badge: "CoreWeave",
|
|
@@ -53034,11 +53046,11 @@ function appendRawStream(payload) {
|
|
|
53034
53046
|
if (!rawStreamReady) {
|
|
53035
53047
|
rawStreamReady = true;
|
|
53036
53048
|
try {
|
|
53037
|
-
|
|
53049
|
+
fsSync.mkdirSync(path.dirname(RAW_STREAM_PATH), { recursive: true });
|
|
53038
53050
|
} catch {}
|
|
53039
53051
|
}
|
|
53040
53052
|
try {
|
|
53041
|
-
|
|
53053
|
+
fsSync.promises.appendFile(RAW_STREAM_PATH, `${JSON.stringify(payload)}\n`);
|
|
53042
53054
|
} catch {}
|
|
53043
53055
|
}
|
|
53044
53056
|
|
|
@@ -54498,7 +54510,7 @@ async function recordLoopOutcome(args) {
|
|
|
54498
54510
|
if (!args.ctx?.sessionKey) return;
|
|
54499
54511
|
try {
|
|
54500
54512
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Bxo4UHOL.js").then((n) => n.n);
|
|
54501
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
54513
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-Bbc9OPFR.js");
|
|
54502
54514
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
54503
54515
|
sessionKey: args.ctx.sessionKey,
|
|
54504
54516
|
sessionId: args.ctx?.agentId
|
|
@@ -54519,8 +54531,8 @@ async function runBeforeToolCallHook(args) {
|
|
|
54519
54531
|
const params = args.params;
|
|
54520
54532
|
if (args.ctx?.sessionKey) {
|
|
54521
54533
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Bxo4UHOL.js").then((n) => n.n);
|
|
54522
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
54523
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
54534
|
+
const { logToolLoopAction } = await import("./diagnostic-C3nsWaw3.js").then((n) => n.n);
|
|
54535
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-Bbc9OPFR.js");
|
|
54524
54536
|
const sessionState = getDiagnosticSessionState({
|
|
54525
54537
|
sessionKey: args.ctx.sessionKey,
|
|
54526
54538
|
sessionId: args.ctx?.agentId
|
|
@@ -55582,6 +55594,109 @@ function guardSessionManager(sessionManager, opts) {
|
|
|
55582
55594
|
return sessionManager;
|
|
55583
55595
|
}
|
|
55584
55596
|
|
|
55597
|
+
//#endregion
|
|
55598
|
+
//#region src/agents/session-version.ts
|
|
55599
|
+
/**
|
|
55600
|
+
* Session Versioning — version-based session migration.
|
|
55601
|
+
*
|
|
55602
|
+
* Each session gets a `symiVersion` field in its JSONL header.
|
|
55603
|
+
* On session load, if the session was created by a known-poison version
|
|
55604
|
+
* (2.3.0-2.3.4), it's archived and a fresh session starts.
|
|
55605
|
+
*
|
|
55606
|
+
* Sessions without `symiVersion` predate 2.3.0 and were created with Claude,
|
|
55607
|
+
* which does not produce corrupted tool args or looping output. Do NOT
|
|
55608
|
+
* archive unversioned sessions — they are safe. Only sessions with an
|
|
55609
|
+
* explicit symiVersion in the known-poison range are archived.
|
|
55610
|
+
*
|
|
55611
|
+
* @module
|
|
55612
|
+
*/
|
|
55613
|
+
/** Versions that produced corrupted sessions (tool arg garbage, looping). */
|
|
55614
|
+
const POISON_VERSION_MIN = [
|
|
55615
|
+
2,
|
|
55616
|
+
3,
|
|
55617
|
+
0
|
|
55618
|
+
];
|
|
55619
|
+
const POISON_VERSION_MAX = [
|
|
55620
|
+
2,
|
|
55621
|
+
3,
|
|
55622
|
+
4
|
|
55623
|
+
];
|
|
55624
|
+
function parseVersion(v) {
|
|
55625
|
+
return v.split(".").map((s) => parseInt(s, 10)).filter((n) => !Number.isNaN(n));
|
|
55626
|
+
}
|
|
55627
|
+
function compareVersions(a, b) {
|
|
55628
|
+
for (let i = 0; i < Math.max(a.length, b.length); i++) {
|
|
55629
|
+
const av = a[i] ?? 0;
|
|
55630
|
+
const bv = b[i] ?? 0;
|
|
55631
|
+
if (av < bv) return -1;
|
|
55632
|
+
if (av > bv) return 1;
|
|
55633
|
+
}
|
|
55634
|
+
return 0;
|
|
55635
|
+
}
|
|
55636
|
+
function isInPoisonRange(version) {
|
|
55637
|
+
const v = parseVersion(version);
|
|
55638
|
+
if (v.length < 3) return false;
|
|
55639
|
+
return compareVersions(v, POISON_VERSION_MIN) >= 0 && compareVersions(v, POISON_VERSION_MAX) <= 0;
|
|
55640
|
+
}
|
|
55641
|
+
/**
|
|
55642
|
+
* Check if a session file was created by a poisoned Symi version.
|
|
55643
|
+
* Returns the symiVersion if poisoned, null if safe.
|
|
55644
|
+
*/
|
|
55645
|
+
async function checkSessionPoison(sessionFile) {
|
|
55646
|
+
try {
|
|
55647
|
+
const firstLine = (await fs.readFile(sessionFile, "utf-8")).split("\n")[0];
|
|
55648
|
+
if (!firstLine) return null;
|
|
55649
|
+
const header = JSON.parse(firstLine);
|
|
55650
|
+
if (header.type !== "session") return null;
|
|
55651
|
+
const symiVersion = header.symiVersion;
|
|
55652
|
+
if (typeof symiVersion !== "string") return null;
|
|
55653
|
+
if (isInPoisonRange(symiVersion)) return symiVersion;
|
|
55654
|
+
return null;
|
|
55655
|
+
} catch {
|
|
55656
|
+
return null;
|
|
55657
|
+
}
|
|
55658
|
+
}
|
|
55659
|
+
/**
|
|
55660
|
+
* Archive a poisoned session file by renaming it.
|
|
55661
|
+
* The archived file can be inspected later but won't be loaded.
|
|
55662
|
+
*/
|
|
55663
|
+
async function archivePoisonedSession(sessionFile) {
|
|
55664
|
+
const archiveName = `${sessionFile}.archived-poison.${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}`;
|
|
55665
|
+
await fs.rename(sessionFile, archiveName);
|
|
55666
|
+
return archiveName;
|
|
55667
|
+
}
|
|
55668
|
+
/**
|
|
55669
|
+
* Stamp the current Symi version into a session file's header.
|
|
55670
|
+
* Reads the first line, adds/updates symiVersion, rewrites the line.
|
|
55671
|
+
*/
|
|
55672
|
+
async function stampSessionVersion(sessionFile) {
|
|
55673
|
+
try {
|
|
55674
|
+
const lines = (await fs.readFile(sessionFile, "utf-8")).split("\n");
|
|
55675
|
+
if (lines.length === 0) return;
|
|
55676
|
+
const header = JSON.parse(lines[0]);
|
|
55677
|
+
if (header.type !== "session") return;
|
|
55678
|
+
if (header.symiVersion === VERSION) return;
|
|
55679
|
+
header.symiVersion = VERSION;
|
|
55680
|
+
lines[0] = JSON.stringify(header);
|
|
55681
|
+
await fs.writeFile(sessionFile, lines.join("\n"), "utf-8");
|
|
55682
|
+
} catch {}
|
|
55683
|
+
}
|
|
55684
|
+
/**
|
|
55685
|
+
* Check and handle a session file before use.
|
|
55686
|
+
* If poisoned: archive it and return { archived: true }.
|
|
55687
|
+
* Otherwise: stamp the current version and return { archived: false }.
|
|
55688
|
+
*/
|
|
55689
|
+
async function handleSessionVersion(sessionFile) {
|
|
55690
|
+
const poison = await checkSessionPoison(sessionFile);
|
|
55691
|
+
if (poison) return {
|
|
55692
|
+
archived: true,
|
|
55693
|
+
archivePath: await archivePoisonedSession(sessionFile),
|
|
55694
|
+
poisonVersion: poison
|
|
55695
|
+
};
|
|
55696
|
+
await stampSessionVersion(sessionFile);
|
|
55697
|
+
return { archived: false };
|
|
55698
|
+
}
|
|
55699
|
+
|
|
55585
55700
|
//#endregion
|
|
55586
55701
|
//#region src/agents/stream-monitor.ts
|
|
55587
55702
|
/**
|
|
@@ -56125,8 +56240,8 @@ async function readWorkspaceContextForSummary() {
|
|
|
56125
56240
|
const workspaceDir = process.cwd();
|
|
56126
56241
|
const agentsPath = path.join(workspaceDir, "AGENTS.md");
|
|
56127
56242
|
try {
|
|
56128
|
-
if (!
|
|
56129
|
-
const sections = extractSections(await
|
|
56243
|
+
if (!fsSync.existsSync(agentsPath)) return "";
|
|
56244
|
+
const sections = extractSections(await fsSync.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
|
|
56130
56245
|
if (sections.length === 0) return "";
|
|
56131
56246
|
const combined = sections.join("\n\n");
|
|
56132
56247
|
return `\n\n<workspace-critical-rules>\n${combined.length > MAX_SUMMARY_CONTEXT_CHARS ? combined.slice(0, MAX_SUMMARY_CONTEXT_CHARS) + "\n...[truncated]..." : combined}\n</workspace-critical-rules>`;
|
|
@@ -58530,6 +58645,8 @@ async function runEmbeddedAttempt(params) {
|
|
|
58530
58645
|
provider: params.provider,
|
|
58531
58646
|
modelId: params.modelId
|
|
58532
58647
|
});
|
|
58648
|
+
const versionCheck = await handleSessionVersion(params.sessionFile);
|
|
58649
|
+
if (versionCheck.archived) log$4.warn(`session archived: created by ${versionCheck.poisonVersion}, known corruption range → ${versionCheck.archivePath}`);
|
|
58533
58650
|
await prewarmSessionFile(params.sessionFile);
|
|
58534
58651
|
sessionManager = guardSessionManager(SessionManager.open(params.sessionFile), {
|
|
58535
58652
|
agentId: sessionAgentId,
|
|
@@ -59491,7 +59608,7 @@ async function runEmbeddedPiAgent(params) {
|
|
|
59491
59608
|
return;
|
|
59492
59609
|
}
|
|
59493
59610
|
if (model.provider === "github-copilot") {
|
|
59494
|
-
const { resolveCopilotApiToken } = await import("./github-copilot-token-
|
|
59611
|
+
const { resolveCopilotApiToken } = await import("./github-copilot-token-DJqsJ2-r.js").then((n) => n.n);
|
|
59495
59612
|
const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
|
|
59496
59613
|
authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
|
|
59497
59614
|
} else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);
|
|
@@ -60201,27 +60318,27 @@ async function runAgentTurn(params) {
|
|
|
60201
60318
|
function createDefaultDeps() {
|
|
60202
60319
|
return {
|
|
60203
60320
|
sendMessageWhatsApp: async (...args) => {
|
|
60204
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
60321
|
+
const { sendMessageWhatsApp } = await import("./web-Nrl97JcY.js");
|
|
60205
60322
|
return await sendMessageWhatsApp(...args);
|
|
60206
60323
|
},
|
|
60207
60324
|
sendMessageTelegram: async (...args) => {
|
|
60208
|
-
const { sendMessageTelegram } = await import("./send-
|
|
60325
|
+
const { sendMessageTelegram } = await import("./send-DeEosX8F.js").then((n) => n.l);
|
|
60209
60326
|
return await sendMessageTelegram(...args);
|
|
60210
60327
|
},
|
|
60211
60328
|
sendMessageDiscord: async (...args) => {
|
|
60212
|
-
const { sendMessageDiscord } = await import("./send-
|
|
60329
|
+
const { sendMessageDiscord } = await import("./send-DwKJK3sM.js").then((n) => n.t);
|
|
60213
60330
|
return await sendMessageDiscord(...args);
|
|
60214
60331
|
},
|
|
60215
60332
|
sendMessageSlack: async (...args) => {
|
|
60216
|
-
const { sendMessageSlack } = await import("./send-
|
|
60333
|
+
const { sendMessageSlack } = await import("./send-CHEOWVc8.js").then((n) => n.n);
|
|
60217
60334
|
return await sendMessageSlack(...args);
|
|
60218
60335
|
},
|
|
60219
60336
|
sendMessageSignal: async (...args) => {
|
|
60220
|
-
const { sendMessageSignal } = await import("./send-
|
|
60337
|
+
const { sendMessageSignal } = await import("./send-zSarozV2.js").then((n) => n.i);
|
|
60221
60338
|
return await sendMessageSignal(...args);
|
|
60222
60339
|
},
|
|
60223
60340
|
sendMessageIMessage: async (...args) => {
|
|
60224
|
-
const { sendMessageIMessage } = await import("./send-
|
|
60341
|
+
const { sendMessageIMessage } = await import("./send-DbcLJb0P.js").then((n) => n.n);
|
|
60225
60342
|
return await sendMessageIMessage(...args);
|
|
60226
60343
|
}
|
|
60227
60344
|
};
|
|
@@ -65100,7 +65217,7 @@ async function monitorIMessageProvider(opts = {}) {
|
|
|
65100
65217
|
function readFileIfExists(filePath) {
|
|
65101
65218
|
if (!filePath) return;
|
|
65102
65219
|
try {
|
|
65103
|
-
return
|
|
65220
|
+
return fsSync.readFileSync(filePath, "utf-8").trim();
|
|
65104
65221
|
} catch {
|
|
65105
65222
|
return;
|
|
65106
65223
|
}
|
|
@@ -65661,7 +65778,7 @@ async function downloadLineMedia(messageId, channelAccessToken, maxBytes = 10 *
|
|
|
65661
65778
|
prefix: "line-media",
|
|
65662
65779
|
extension: getExtensionForContentType(contentType)
|
|
65663
65780
|
});
|
|
65664
|
-
await
|
|
65781
|
+
await fsSync.promises.writeFile(filePath, buffer);
|
|
65665
65782
|
logVerbose(`line: downloaded media ${messageId} to ${filePath} (${buffer.length} bytes)`);
|
|
65666
65783
|
return {
|
|
65667
65784
|
path: filePath,
|
|
@@ -70648,7 +70765,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
70648
70765
|
}
|
|
70649
70766
|
let commandsRegistry;
|
|
70650
70767
|
async function getCommandsRegistry() {
|
|
70651
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
70768
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-VSmULp-g.js").then((n) => n.n);
|
|
70652
70769
|
return commandsRegistry;
|
|
70653
70770
|
}
|
|
70654
70771
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -70990,11 +71107,11 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
70990
71107
|
const channelName = channelInfo?.name;
|
|
70991
71108
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
70992
71109
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
70993
|
-
import("./resolve-route-
|
|
71110
|
+
import("./resolve-route-BVikmvWO.js").then((n) => n.r),
|
|
70994
71111
|
import("./inbound-context-BlHX0H3E.js").then((n) => n.n),
|
|
70995
71112
|
Promise.resolve().then(() => provider_dispatcher_exports)
|
|
70996
71113
|
]);
|
|
70997
|
-
const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-DXUkoKcB.js").then((n) => n.t), import("./reply-prefix-
|
|
71114
|
+
const [{ resolveConversationLabel }, { createReplyPrefixOptions }] = await Promise.all([import("./conversation-label-DXUkoKcB.js").then((n) => n.t), import("./reply-prefix-CtL0omgM.js").then((n) => n.n)]);
|
|
70998
71115
|
const route = resolveAgentRoute({
|
|
70999
71116
|
cfg,
|
|
71000
71117
|
channel: "slack",
|
|
@@ -71051,9 +71168,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71051
71168
|
});
|
|
71052
71169
|
const deliverSlashPayloads = async (replies) => {
|
|
71053
71170
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
71054
|
-
import("./replies-
|
|
71055
|
-
import("./chunk-
|
|
71056
|
-
import("./markdown-tables-
|
|
71171
|
+
import("./replies-DpPvWiGF.js").then((n) => n.r),
|
|
71172
|
+
import("./chunk-ClbN9Pqy.js").then((n) => n.s),
|
|
71173
|
+
import("./markdown-tables-DSHvnTLx.js").then((n) => n.t)
|
|
71057
71174
|
]);
|
|
71058
71175
|
await deliverSlackSlashReplies({
|
|
71059
71176
|
replies,
|
|
@@ -71106,7 +71223,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71106
71223
|
let nativeCommands = [];
|
|
71107
71224
|
if (nativeEnabled) {
|
|
71108
71225
|
reg = await getCommandsRegistry();
|
|
71109
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
71226
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-D610IKhm.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
71110
71227
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
71111
71228
|
skillCommands,
|
|
71112
71229
|
provider: "slack"
|
|
@@ -73324,7 +73441,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, storeAllowFro
|
|
|
73324
73441
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
73325
73442
|
let preflightTranscript;
|
|
73326
73443
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
73327
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
73444
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BkIfnmpi.js");
|
|
73328
73445
|
preflightTranscript = await transcribeFirstAudio({
|
|
73329
73446
|
ctx: {
|
|
73330
73447
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -75469,23 +75586,23 @@ let webLoginQrPromise = null;
|
|
|
75469
75586
|
let webChannelPromise = null;
|
|
75470
75587
|
let whatsappActionsPromise = null;
|
|
75471
75588
|
function loadWebOutbound() {
|
|
75472
|
-
webOutboundPromise ??= import("./outbound-
|
|
75589
|
+
webOutboundPromise ??= import("./outbound-opDNxv-l.js").then((n) => n.t);
|
|
75473
75590
|
return webOutboundPromise;
|
|
75474
75591
|
}
|
|
75475
75592
|
function loadWebLogin() {
|
|
75476
|
-
webLoginPromise ??= import("./login-
|
|
75593
|
+
webLoginPromise ??= import("./login-B8uiUAnV.js").then((n) => n.n);
|
|
75477
75594
|
return webLoginPromise;
|
|
75478
75595
|
}
|
|
75479
75596
|
function loadWebLoginQr() {
|
|
75480
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
75597
|
+
webLoginQrPromise ??= import("./login-qr-CIZk8uKX.js");
|
|
75481
75598
|
return webLoginQrPromise;
|
|
75482
75599
|
}
|
|
75483
75600
|
function loadWebChannel() {
|
|
75484
|
-
webChannelPromise ??= import("./web-
|
|
75601
|
+
webChannelPromise ??= import("./web-Nrl97JcY.js");
|
|
75485
75602
|
return webChannelPromise;
|
|
75486
75603
|
}
|
|
75487
75604
|
function loadWhatsAppActions() {
|
|
75488
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
75605
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-oRQjcdQe.js");
|
|
75489
75606
|
return whatsappActionsPromise;
|
|
75490
75607
|
}
|
|
75491
75608
|
function createPluginRuntime() {
|
|
@@ -75706,7 +75823,7 @@ const resolvePluginSdkAliasFile = (params) => {
|
|
|
75706
75823
|
const srcCandidate = path.join(cursor, "src", "plugin-sdk", params.srcFile);
|
|
75707
75824
|
const distCandidate = path.join(cursor, "dist", "plugin-sdk", params.distFile);
|
|
75708
75825
|
const orderedCandidates = isTest ? [distCandidate, srcCandidate] : [distCandidate];
|
|
75709
|
-
for (const candidate of orderedCandidates) if (
|
|
75826
|
+
for (const candidate of orderedCandidates) if (fsSync.existsSync(candidate)) return candidate;
|
|
75710
75827
|
const parent = path.dirname(cursor);
|
|
75711
75828
|
if (parent === cursor) break;
|
|
75712
75829
|
cursor = parent;
|
|
@@ -77858,7 +77975,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
77858
77975
|
if (!apiKeyInfo.apiKey) {
|
|
77859
77976
|
if (apiKeyInfo.mode !== "aws-sdk") throw new Error(`No API key resolved for provider "${model.provider}" (auth mode: ${apiKeyInfo.mode}).`);
|
|
77860
77977
|
} else if (model.provider === "github-copilot") {
|
|
77861
|
-
const { resolveCopilotApiToken } = await import("./github-copilot-token-
|
|
77978
|
+
const { resolveCopilotApiToken } = await import("./github-copilot-token-DJqsJ2-r.js").then((n) => n.n);
|
|
77862
77979
|
const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
|
|
77863
77980
|
authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
|
|
77864
77981
|
} else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);
|