@noxsoft/anima 2.1.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -1
- package/dist/{accounts-CGzuQdAx.js → accounts-ZMhj636e.js} +38 -38
- package/dist/{acp-cli-B91vBbbX.js → acp-cli-CcOE2A2i.js} +4 -4
- package/dist/{acp-cli-C2nYnQx-.js → acp-cli-PhWp41mc.js} +5 -5
- package/dist/{agent-Bd6Zpqnq.js → agent-CT2PCft4.js} +9 -9
- package/dist/{agent-CoxwYg20.js → agent-DvWSUuKy.js} +8 -8
- package/dist/{agent-events-BVc91Gjk.js → agent-events-iR_gRjZA.js} +2 -2
- package/dist/{agent-scope-BoQtElEh.js → agent-scope-DWKQJUUZ.js} +3 -3
- package/dist/{agent-scope-CuAaArMB.js → agent-scope-M302b8FW.js} +3 -1
- package/dist/{agent-scope-kT_pK2eJ.js → agent-scope-vpVhWds3.js} +3 -1
- package/dist/{agents-ERV83c8T.js → agents-DAg3VWr9.js} +9 -9
- package/dist/{agents.config-Bar8RHWv.js → agents.config-Dqcq7hEy.js} +1 -1
- package/dist/{agents.config-CvQgWymp.js → agents.config-M3p4E9Vk.js} +1 -1
- package/dist/{audit-C4pngOZo.js → audit-BDXqNA5J.js} +6 -6
- package/dist/{audit-94c4PKy2.js → audit-Cm50mcVm.js} +7 -7
- package/dist/{auth-choice-RnqXSEZo.js → auth-choice-CPDNhDPT.js} +145 -7
- package/dist/{auth-health-C2V2unOG.js → auth-health-C0g38cq2.js} +1 -1
- package/dist/{auth-profiles-DNpEm389.js → auth-profiles-BYETsqKc.js} +1 -1
- package/dist/{auth-profiles-DxPI9Swi.js → auth-profiles-BqrAPweI.js} +9 -9
- package/dist/{auth-profiles-CzyebTC0.js → auth-profiles-DZS4PC_i.js} +1 -1
- package/dist/{auth-store-vxi4ZPnZ.js → auth-store-eNVxoq_h.js} +13 -13
- package/dist/{auto-update-CFjmeMj2.js → auto-update-D5cnVgXE.js} +10 -4
- package/dist/{auto-update-Ct6OO4xu.js → auto-update-DYjBYplz.js} +10 -4
- package/dist/{banner-D3viiyMP.js → banner-CcUSTTQw.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +22 -22
- 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 +6 -6
- package/dist/{call-CItRp_pr.js → call-C0Yk2qNb.js} +2 -2
- package/dist/{call-DxImJH07.js → call-LugHQWOF.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-web-DbqT9emt.js → channel-web-Co4IvTdB.js} +10 -10
- package/dist/{chrome-CVfcErE4.js → chrome-_87P03u5.js} +7 -7
- package/dist/{chrome-C1KpzLwu.js → chrome-s7nTgmbn.js} +12 -12
- package/dist/{chunk-B7HJmFUg.js → chunk-lDG_8LI5.js} +2 -2
- package/dist/{clack-prompter-DzyUpdYc.js → clack-prompter-1d_RjjVW.js} +1 -1
- package/dist/{clack-prompter-DGILBk0Q.js → clack-prompter-DXovYg0Q.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-CIqM2CiL.js → cli-4D3JIGFt.js} +21 -21
- package/dist/{cli-D3fgTPqQ.js → cli-BkI8EYn3.js} +22 -22
- package/dist/{cli-session-C5q6Uryq.js → cli-session-CIhvoVRb.js} +55 -7
- package/dist/{cli-session-DQ9kepDS.js → cli-session-CJ4_a3AU.js} +56 -8
- package/dist/{client-oEG5cM5Q.js → client-BM5PkIwQ.js} +3 -3
- package/dist/{command-registry-S2ZqFzVe.js → command-registry-Cl3Z-qsS.js} +10 -10
- package/dist/{commands-C8xFlkZx.js → commands-BsZdF-6N.js} +1 -1
- package/dist/{commands-Cd2w9dmK.js → commands-quS1zRPr.js} +1 -1
- package/dist/{common-DgcMt-pi.js → common-DbouukNi.js} +2 -2
- package/dist/{completion-cli-BHlamZC3.js → completion-cli-BB3_g8w5.js} +1 -1
- package/dist/{completion-cli-CC0KmaZL.js → completion-cli-DcTEhrAe.js} +2 -2
- package/dist/{config-CaE6v09P.js → config-6zE4ZkSF.js} +2 -2
- package/dist/{config-Bda-8Rdh.js → config-9JRRXykP.js} +2 -2
- package/dist/{config-BEiShGVB.js → config-H_VHtPeY.js} +27 -27
- package/dist/{config-cli-DtJe8KPs.js → config-cli-DCNRWoyW.js} +4 -4
- package/dist/{config-cli-CEU2oLOH.js → config-cli-VB37XAkf.js} +4 -4
- package/dist/{config-guard-CQWaFJGt.js → config-guard-BUrJR68X.js} +2 -2
- package/dist/{config-guard-a6BWW0DS.js → config-guard-DJ_IK05w.js} +6 -6
- package/dist/{config-sync-DtK8vF0a.js → config-sync-B6XNCiWO.js} +4 -2
- package/dist/{config-sync-DHZT44We.js → config-sync-CVNJhO-W.js} +4 -2
- package/dist/{configure-BwR-MQg6.js → configure-CkmVabju.js} +9 -9
- package/dist/{configure-BiIaL4NZ.js → configure-Du07BFtQ.js} +10 -10
- package/dist/{context-Nk3BLa3u.js → context-CsnIPzGP.js} +1 -1
- package/dist/{control-service-CJ2uXWYM.js → control-service-BpEnt1xS.js} +4 -4
- package/dist/{control-service-9uTsix_O.js → control-service-dAtxFV2S.js} +2 -2
- package/dist/control-ui/assets/index-CEuStzNh.js +18 -0
- package/dist/control-ui/assets/index-CEuStzNh.js.map +1 -0
- package/dist/control-ui/assets/index-CbNrH7Wu.css +1 -0
- package/dist/control-ui/index.html +20 -0
- package/dist/{cron-cli-Diyg0pr6.js → cron-cli-BT0i4_jA.js} +6 -6
- package/dist/{cron-cli-BoB3GX76.js → cron-cli-DUVPrjk1.js} +5 -5
- package/dist/{daemon-cli-CR7yHMws.js → daemon-cli-DlHFi5Gm.js} +5 -5
- package/dist/{daemon-cli-CXnpU1lw.js → daemon-cli-tZXFDpZX.js} +5 -5
- package/dist/{daemon-runtime-C-xevhQ5.js → daemon-runtime-Cbi2Ox6g.js} +1 -1
- package/dist/{daemon-runtime-DP9zI3um.js → daemon-runtime-DOk9qM0y.js} +1 -1
- package/dist/{deliver-ZUV32EzH.js → deliver-CkrMkcOx.js} +1 -1
- package/dist/{deliver-BJ1xFt2X.js → deliver-DyQtnfXd.js} +14 -14
- package/dist/{deliver-TokuvSTy.js → deliver-tQREYhAr.js} +1 -1
- package/dist/{deps-CV9EwaiA.js → deps-DoPMG4GI.js} +1 -1
- package/dist/{dispatcher-DT5y2bRx.js → dispatcher-BhzRMibw.js} +1 -1
- package/dist/{dispatcher-DnyO_pzZ.js → dispatcher-wmQlHNsm.js} +1 -1
- package/dist/{dns-cli-Cw0G6u5i.js → dns-cli-B6bcA4-G.js} +3 -3
- package/dist/{dns-cli-CTpT3A5j.js → dns-cli-BvKJGCxL.js} +3 -3
- package/dist/{doctor-BRbtvinF.js → doctor-BxzkshQH.js} +20 -20
- package/dist/{doctor-a5nLQGbD.js → doctor-C3foAiuj.js} +19 -19
- package/dist/{doctor-completion-DpxcKMA5.js → doctor-completion-CZgNNZVd.js} +1 -1
- package/dist/{doctor-completion-Dnj6NNct.js → doctor-completion-VtjYTwcS.js} +1 -1
- package/dist/{doctor-config-flow-D80QIcc-.js → doctor-config-flow-BAntaUow.js} +4 -4
- package/dist/{doctor-config-flow-BZOFJuDW.js → doctor-config-flow-d6ocIX0r.js} +4 -4
- package/dist/{engine-Df9mQ7es.js → engine-C6iz-qEe.js} +5 -3
- package/dist/{engine-BqAGzYXO.js → engine-CIid6j5k.js} +5 -3
- package/dist/entry.js +1 -1
- package/dist/{exec-DJTRaYS6.js → exec-CK8CHr7j.js} +7 -7
- package/dist/{exec-approvals-cli-C5OuptCV.js → exec-approvals-cli-CAwe3fFV.js} +6 -6
- package/dist/{exec-approvals-cli-BWeKuHMf.js → exec-approvals-cli-COqsRheN.js} +5 -5
- package/dist/extensionAPI.js +3 -1
- package/dist/{frontmatter-DDYuWuK5.js → frontmatter-BBFYH_d2.js} +2 -2
- package/dist/{gateway-cli-DpikYazv.js → gateway-cli-BKmCrkp2.js} +47 -47
- package/dist/{gateway-cli-CLhlz_uA.js → gateway-cli-D0mD_UV8.js} +48 -48
- package/dist/{gateway-rpc-B30vCjdB.js → gateway-rpc-2MG1-jz-.js} +1 -1
- package/dist/{gateway-rpc-CeSf5jMa.js → gateway-rpc-elmeRwyu.js} +1 -1
- package/dist/{health-1JahEOfG.js → health-27WiwNrh.js} +9 -9
- package/dist/{health-BLxSP-s_.js → health-Cb_2WS_Z.js} +9 -9
- package/dist/{heartbeat-visibility-CS0wp8uu.js → heartbeat-visibility-Blrqxom1.js} +1 -1
- package/dist/{heartbeat-visibility-DgxM3da_.js → heartbeat-visibility-CDRbkOeP.js} +1 -1
- package/dist/{hooks-cli-Bb1UXfXv.js → hooks-cli-BkaD_Vnq.js} +23 -23
- package/dist/{hooks-cli-B-PZNrq5.js → hooks-cli-C7hx3yOv.js} +22 -22
- package/dist/{image-ops-ZMEg1-kE.js → image-ops-DJjERl7d.js} +2 -2
- package/dist/index.js +32 -32
- package/dist/{ipv4-BXko1df7.js → ipv4-sll41DXC.js} +4 -4
- package/dist/{ipv4-BmsAjDnB.js → ipv4-yUiIU5CD.js} +5 -5
- package/dist/json-file-Dvrir7_o.js +25 -0
- package/dist/llm-slug-generator.js +5 -5
- package/dist/{login-DIm-BAka.js → login-CBsXoiD_.js} +2 -2
- package/dist/{login-jV3UWUGr.js → login-CdRss5_H.js} +5 -5
- package/dist/{login-DQALESNM.js → login-DcBFdgol.js} +2 -2
- package/dist/{login-qr-BMMUazkr.js → login-qr-CEarfn5e.js} +4 -4
- package/dist/{login-qr-CJXqxq1y.js → login-qr-DoNanonP.js} +10 -10
- package/dist/{login-qr-BzS8xa3D.js → login-qr-aHN20jEV.js} +4 -4
- package/dist/{logs-cli-yKcOyM8n.js → logs-cli-DbdMIph-.js} +6 -6
- package/dist/{logs-cli-DHjyZjyi.js → logs-cli-O9Vm67Ps.js} +5 -5
- package/dist/{manager-eyHWQVGS.js → manager-1ZMunRXe.js} +2 -2
- package/dist/{manager-I5MlcYXv.js → manager-BVhxScwx.js} +2 -2
- package/dist/{manager-BssWfixS.js → manager-BlXVqzLP.js} +14 -14
- package/dist/{memory-cli-hyoQVF7L.js → memory-cli-CDMb58Y3.js} +5 -5
- package/dist/{memory-cli-DQm_Q8ks.js → memory-cli-DEnGCMk0.js} +5 -5
- package/dist/{model-auth-CQNrcIIT.js → model-auth-B3BPcnwt.js} +2 -2
- package/dist/{model-auth-BbZzb3IY.js → model-auth-ChSwMwh7.js} +3 -3
- package/dist/{model-auth-Cyx2Xoz0.js → model-auth-DUHamQTz.js} +2 -2
- package/dist/{model-selection-MwLHFnAb.js → model-selection-C2dz3AhV.js} +1 -1
- package/dist/{model-selection-BjcyTJyU.js → model-selection-DJcZ82uR.js} +1 -1
- package/dist/{model-selection-CtPzqKKJ.js → model-selection-DPoLkg_t.js} +1 -1
- package/dist/{models-Ca4_dCTC.js → models-B8eCDKpA.js} +26 -26
- package/dist/{node-cli-gop9c9Qq.js → node-cli-Bcrlhaq3.js} +10 -10
- package/dist/{node-cli-CJ-oQ5U6.js → node-cli-CXUIMB7W.js} +8 -8
- package/dist/{onboard-Dyr-G4cr.js → onboard-5GREpC8E.js} +48 -13
- package/dist/{onboard-DbCuaHlU.js → onboard-D8Khq7CJ.js} +49 -13
- package/dist/{onboard-channels-h35eneL1.js → onboard-channels-CuDv5j-L.js} +3 -3
- package/dist/{onboard-channels-D_jRjSPh.js → onboard-channels-DUklZSXY.js} +3 -3
- package/dist/{onboard-helpers-DVbPW8Cs.js → onboard-helpers-CMW6MSXA.js} +5 -4
- package/dist/{onboard-helpers-CAxb1eBy.js → onboard-helpers-DKu_2enh.js} +5 -4
- package/dist/{onboarding-ifLjX4Oc.js → onboarding-B_Gs5W53.js} +34 -15
- package/dist/{onboarding-Djv0NsZi.js → onboarding-CGG6jZ0y.js} +35 -16
- package/dist/{orchestrator-DeKyZfHL.js → orchestrator-CZ5SiD5l.js} +4 -2
- package/dist/{orchestrator-DAY2aHzl.js → orchestrator-KqoQDkvl.js} +4 -2
- package/dist/{outbound-_KURrkN3.js → outbound-Cf_1Utlz.js} +1 -1
- package/dist/{outbound-DptF-A0k.js → outbound-CwCRq4Cg.js} +1 -1
- package/dist/{outbound-ChmdbJju.js → outbound-DK71dddk.js} +6 -6
- package/dist/{parse-timeout-ByYuFf-D.js → parse-timeout-DhqvtdXz.js} +1 -1
- package/dist/{parse-timeout-PImvLfCF.js → parse-timeout-qnHqZvCW.js} +1 -1
- package/dist/{paths-BzTTzuSa.js → paths-CmZenvlb.js} +2 -2
- package/dist/{paths-B-AkG5FD.js → paths-D2eokayo.js} +3 -3
- package/dist/{pi-auth-json-Ct4FUjxN.js → pi-auth-json-BYN-DI5a.js} +7 -7
- package/dist/{pi-auth-json-QVWbBbGs.js → pi-auth-json-Crkmg439.js} +3 -3
- package/dist/{pi-auth-json-BvGZollA.js → pi-auth-json-PEKcHBMl.js} +3 -3
- package/dist/{pi-embedded-helpers-BS_VM3j4.js → pi-embedded-helpers-CvYnWzAn.js} +44 -44
- package/dist/{pi-tools.policy-BntNhXqZ.js → pi-tools.policy-BoWzLBtH.js} +3 -3
- package/dist/{pi-tools.policy-pvzE9Rfa.js → pi-tools.policy-ClzqRWic.js} +3 -3
- package/dist/{plugin-auto-enable-j_zHeVf1.js → plugin-auto-enable-BlyqT33k.js} +1 -1
- package/dist/{plugin-auto-enable-BvCuJgmb.js → plugin-auto-enable-Df0BKZyz.js} +1 -1
- package/dist/{plugin-registry-BgzrHeH3.js → plugin-registry-CIluPn2C.js} +3 -3
- package/dist/{plugin-registry-DurMOI5P.js → plugin-registry-k-cSnXEV.js} +3 -3
- package/dist/plugin-sdk/agents/workspace.d.ts +1 -0
- package/dist/plugin-sdk/index.js +6 -6
- package/dist/{plugins-cli-DJKbvRtd.js → plugins-cli-CXap4R64.js} +22 -22
- package/dist/{plugins-cli-BFJqs061.js → plugins-cli-CgSDRx-C.js} +23 -23
- package/dist/{program-8-GzSO81.js → program-Dk1iylK1.js} +27 -27
- package/dist/{program-context-CC-g5UxM.js → program-context-r2WimvLs.js} +29 -29
- package/dist/{prompts-BWkFLWEk.js → prompts-BT5ztuUd.js} +144 -6
- package/dist/{prompts-CAgrJeru.js → prompts-vr_Njtil.js} +1 -1
- package/dist/{pw-ai-DVQKx_ca.js → pw-ai-q5Enhcu7.js} +4 -4
- package/dist/{pw-ai-Rz1I4vvf.js → pw-ai-ycVS073z.js} +1 -1
- package/dist/{qmd-manager-TUpRgiFa.js → qmd-manager-BD0uCIzM.js} +1 -1
- package/dist/{qmd-manager-NwDwG7DY.js → qmd-manager-CaNCfJK6.js} +1 -1
- package/dist/{qmd-manager-B5wbKcWC.js → qmd-manager-D_lZFetA.js} +7 -7
- package/dist/{queue-9vTUxVNg.js → queue-CRtO6LOL.js} +3 -1
- package/dist/{queue-R94Bcxk5.js → queue-DMVbLSSW.js} +3 -1
- package/dist/{register.agent-BcxdwhFz.js → register.agent-BCbrZgZT.js} +30 -30
- package/dist/{register.agent-BWl6JYHL.js → register.agent-sq78vQTz.js} +30 -30
- package/dist/{register.anima-D9CE9aVh.js → register.anima-B0tWw_hC.js} +13 -13
- package/dist/{register.anima-D8cnU8Zq.js → register.anima-CObVi7FQ.js} +13 -13
- package/dist/{register.configure-BQ7viIFW.js → register.configure-CM8ScF9N.js} +31 -31
- package/dist/{register.configure-CWWSJ12h.js → register.configure-w6Ptx3C9.js} +32 -32
- package/dist/{register.maintenance-BUkkCBQa.js → register.maintenance-B15nWIhc.js} +33 -33
- package/dist/{register.maintenance-BS36METc.js → register.maintenance-Chm2rk_s.js} +34 -34
- package/dist/{register.onboard-CxktbTOi.js → register.onboard-B7Ozkx53.js} +41 -37
- package/dist/{register.onboard-ks3BprXH.js → register.onboard-k9Rd9qzS.js} +39 -35
- package/dist/register.setup-BId1QGzk.js +270 -0
- package/dist/register.setup-CN1yxMOl.js +267 -0
- package/dist/{register.status-health-sessions-Bmgu0PWs.js → register.status-health-sessions-CNUs9w8v.js} +27 -27
- package/dist/{register.status-health-sessions-Cfhab3ds.js → register.status-health-sessions-CP9VvjA9.js} +27 -27
- package/dist/{register.subclis-Cp2R1dTl.js → register.subclis-N7uAMRX_.js} +20 -20
- package/dist/{reply-F1NR0Mmi.js → reply-BJ3jrefM.js} +29 -29
- package/dist/{reply-BWWaNSoB.js → reply-LaOwllAB.js} +28 -28
- package/dist/{reply-prefix-Cd1ryhL4.js → reply-prefix-DBJU0o4f.js} +2 -2
- package/dist/{reply-prefix-ByFTwsu6.js → reply-prefix-Dl_Gro6x.js} +2 -2
- package/dist/{routes-DdssPiMt.js → routes-Bifu4ATk.js} +2 -2
- package/dist/{routes-TJ5bwx27.js → routes-CNqS9gOj.js} +3 -3
- package/dist/{run-main-Br6uQWzH.js → run-main-DA4rt9qc.js} +40 -40
- package/dist/{sandbox-BIZzFPco.js → sandbox-CR2AIW2N.js} +3 -3
- package/dist/{sandbox-cli-DjALBAAV.js → sandbox-cli-BsMjNBFN.js} +8 -8
- package/dist/{sandbox-cli-DMBBlMK-.js → sandbox-cli-c_HPZNmf.js} +7 -7
- package/dist/{sandbox-hOY3muxh.js → sandbox-wL61f1WP.js} +3 -3
- package/dist/{security-cli-CsDWYPNG.js → security-cli-DTAzTIiZ.js} +10 -10
- package/dist/{security-cli-GXZAU0Ax.js → security-cli-pupt3tx1.js} +12 -12
- package/dist/{semantic-BTp-RtM8.js → semantic-BcioSN1d.js} +1 -1
- package/dist/{server-context-BW5BY88Y.js → server-context-C2TNamEJ.js} +1 -1
- package/dist/{server-context-C0YSbjOv.js → server-context-CcPmRFx_.js} +5 -5
- package/dist/{server-node-events-DM3CCYrf.js → server-node-events-DNDwVJH_.js} +14 -14
- package/dist/{server-node-events-Byy-Is6v.js → server-node-events-DsfvuRBK.js} +13 -13
- package/dist/{service-audit-u3qzhhqv.js → service-audit-BG0tcSCo.js} +1 -1
- package/dist/{service-audit-CGmQWccK.js → service-audit-DLV93I95.js} +1 -1
- package/dist/{session-BQzzYRDO.js → session-D53RZP3i.js} +7 -7
- package/dist/{session-CzBccNiw.js → session-DTRcP2Sj.js} +1 -1
- package/dist/{session-ititeJ0j.js → session-ygzMc3r1.js} +4 -4
- package/dist/{sessions-DiW7DuJO.js → sessions-0J_pFd44.js} +1 -1
- package/dist/{sessions-wzfE85C2.js → sessions-C7jYs5Sc.js} +1 -1
- package/dist/{sessions-Bxpm8P5t.js → sessions-CbUTEpMF.js} +4 -4
- package/dist/{shared-DynkOTFs.js → shared-B9kttsme.js} +1 -1
- package/dist/{shell-env-5vFwNQcz.js → shell-env-BBHdjHEl.js} +1 -1
- package/dist/{skills-cli-Dttyzhqz.js → skills-cli-CrB84lEO.js} +3 -3
- package/dist/{skills-cli-DA18YLo4.js → skills-cli-DC6nGiOg.js} +3 -3
- package/dist/{soul-D4rF0iXu.js → soul-CXGTzaKZ.js} +1 -1
- package/dist/{sqlite-Dx5ydniE.js → sqlite-B-dYyac7.js} +4 -4
- package/dist/{start-BNGlbbt9.js → start-BLi_X68Y.js} +36 -13
- package/dist/{start-DSZJq_zz.js → start-BQfR8aBZ.js} +36 -13
- package/dist/{status-DVYPFs7b.js → status-CzCmUbgr.js} +13 -13
- package/dist/{status-BCbWWHdA.js → status-D5zPydam.js} +3 -3
- package/dist/{status-BToHtmWf.js → status-DNUP2mgR.js} +12 -12
- package/dist/{status-QWb0sx59.js → status-DYGeQK4c.js} +3 -3
- package/dist/{status.update-CwIUq3Bq.js → status.update-_DOVm6Tr.js} +1 -1
- package/dist/{status.update-CJR_Zlvb.js → status.update-s92nCoGl.js} +1 -1
- package/dist/{subagent-registry-BOsyxABV.js → subagent-registry-D4idxv3D.js} +5 -5
- package/dist/{subagent-registry-DEjp4eYh.js → subagent-registry-DQzBrh1E.js} +5 -5
- package/dist/{subagent-registry-DXy6WsnY.js → subagent-registry-DjB3VS5s.js} +27 -27
- package/dist/{subsystem-BlEuMJjX.js → subsystem-CJTCKTwb.js} +13 -13
- package/dist/{system-cli-CtYpaf1K.js → system-cli-BNhplLHn.js} +6 -6
- package/dist/{system-cli-BYJicBL3.js → system-cli-CTN9NSfv.js} +5 -5
- package/dist/{tool-images-2qKyjXUj.js → tool-images-DBOSl4NL.js} +2 -2
- package/dist/{tui-Bx6Ty5e9.js → tui--uEeSnES.js} +4 -4
- package/dist/{tui-cli-BcqM-1Iu.js → tui-cli-ByERfWnP.js} +12 -12
- package/dist/{tui-cli-DM2-e45Y.js → tui-cli-De0zVM4-.js} +10 -10
- package/dist/{tui-BbS56NwI.js → tui-dHcni7fC.js} +5 -5
- package/dist/{update-cli-CzrELkox.js → update-cli-CGVsahIi.js} +41 -41
- package/dist/{update-cli-DHCu3Tw_.js → update-cli-D7SyNIoQ.js} +40 -40
- package/dist/{update-runner-CBoHuDWR.js → update-runner-DeNUEGyr.js} +1 -1
- package/dist/{update-runner-OvETClW6.js → update-runner-O0kK_BAP.js} +1 -1
- package/dist/{usage-ClLnsNuk.js → usage-DSZ_juox.js} +68 -20
- package/dist/{web-B-hsbig8.js → web-DNoikQbD.js} +25 -25
- package/dist/{web-DNwUI_-o.js → web-DY2TrPoD.js} +86 -86
- package/dist/{web-Ci2DZCF7.js → web-DyUoZrMO.js} +27 -27
- package/dist/{webhooks-cli-CK3Ooqxg.js → webhooks-cli-BqeMvo07.js} +3 -3
- package/dist/{webhooks-cli-BGo97Z-y.js → webhooks-cli-Cq3eb3vw.js} +3 -3
- package/dist/{whatsapp-actions-DBSx3VSP.js → whatsapp-actions-B_fglZZt.js} +13 -13
- package/dist/{whatsapp-actions-C-cAzSXs.js → whatsapp-actions-BkSSHLwM.js} +4 -4
- package/dist/{whatsapp-actions-CFQjbIXn.js → whatsapp-actions-j-5lmC5M.js} +4 -4
- package/dist/{workspace-BSBhp-B5.js → workspace-xzxJwPTB.js} +8 -6
- package/package.json +2 -1
- package/templates/SOUL.md +16 -0
- package/dist/json-file-CZ3ssFR9.js +0 -25
- package/dist/register.setup-CP--HKWT.js +0 -180
- package/dist/register.setup-TUHZSkwM.js +0 -177
- /package/dist/{budget-1SoJncof.js → budget-OJQ-m-_V.js} +0 -0
- /package/dist/{budget-DYeweLNW.js → budget-XH9_9WRg.js} +0 -0
- /package/dist/{registry-Dw31-Q3z.js → registry-6ARhh9Nh.js} +0 -0
- /package/dist/{registry-Bkdrbxa5.js → registry-E-bcMZe2.js} +0 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { a as resolveOAuthDir, i as resolveGatewayPort, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-
|
|
2
|
-
import { C as normalizeAccountId$1, D as resolveThreadSessionKeys, E as resolveAgentIdFromSessionKey, M as parseAgentSessionKey, N as resolveThreadParentSessionKey, O as sanitizeAgentId, T as normalizeMainKey, _ as DEFAULT_AGENT_ID, b as buildAgentPeerSessionKey, g as DEFAULT_ACCOUNT_ID, j as isSubagentSessionKey, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, v as DEFAULT_MAIN_KEY, w as normalizeAgentId, x as buildGroupHistoryKey, y as buildAgentMainSessionKey } from "./workspace-
|
|
3
|
-
import { A as normalizeLogLevel, D as getChildLogger, E as theme, T as isRich, a as unregisterActiveProgressLine, b as setVerbose, d as normalizeChannelId, h as setActivePluginRegistry, i as registerActiveProgressLine, n as defaultRuntime, p as getActivePluginRegistry, r as clearActiveProgressLine, s as CHAT_CHANNEL_ORDER, t as createSubsystemLogger, u as normalizeAnyChannelId, v as logVerbose, w as colorize, x as shouldLogVerbose } from "./subsystem-
|
|
4
|
-
import { A as toWhatsappJid, C as resolveJidToE164, D as shortenHomePath, E as shortenHomeInString, O as sleep, T as safeParseJson, _ as isRecord, a as logDebug, b as normalizeE164, c as logWarn, d as clampInt, g as isPlainObject, h as formatTerminalLink, i as spawnWithFallback, j as truncateUtf16Safe, k as sliceUtf16Safe, l as CONFIG_DIR, m as escapeRegExp, n as runExec, r as formatSpawnError, s as logInfo, t as runCommandWithTimeout, u as clamp, v as isSelfChatMode, w as resolveUserPath, y as jidToE164 } from "./exec-
|
|
5
|
-
import { c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, l as resolveSessionAgentId, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentIds } from "./agent-scope-
|
|
1
|
+
import { a as resolveOAuthDir, i as resolveGatewayPort, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-D2eokayo.js";
|
|
2
|
+
import { C as normalizeAccountId$1, D as resolveThreadSessionKeys, E as resolveAgentIdFromSessionKey, M as parseAgentSessionKey, N as resolveThreadParentSessionKey, O as sanitizeAgentId, T as normalizeMainKey, _ as DEFAULT_AGENT_ID, b as buildAgentPeerSessionKey, g as DEFAULT_ACCOUNT_ID, j as isSubagentSessionKey, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, v as DEFAULT_MAIN_KEY, w as normalizeAgentId, x as buildGroupHistoryKey, y as buildAgentMainSessionKey } from "./workspace-xzxJwPTB.js";
|
|
3
|
+
import { A as normalizeLogLevel, D as getChildLogger, E as theme, T as isRich, a as unregisterActiveProgressLine, b as setVerbose, d as normalizeChannelId, h as setActivePluginRegistry, i as registerActiveProgressLine, n as defaultRuntime, p as getActivePluginRegistry, r as clearActiveProgressLine, s as CHAT_CHANNEL_ORDER, t as createSubsystemLogger, u as normalizeAnyChannelId, v as logVerbose, w as colorize, x as shouldLogVerbose } from "./subsystem-CJTCKTwb.js";
|
|
4
|
+
import { A as toWhatsappJid, C as resolveJidToE164, D as shortenHomePath, E as shortenHomeInString, O as sleep, T as safeParseJson, _ as isRecord, a as logDebug, b as normalizeE164, c as logWarn, d as clampInt, g as isPlainObject, h as formatTerminalLink, i as spawnWithFallback, j as truncateUtf16Safe, k as sliceUtf16Safe, l as CONFIG_DIR, m as escapeRegExp, n as runExec, r as formatSpawnError, s as logInfo, t as runCommandWithTimeout, u as clamp, v as isSelfChatMode, w as resolveUserPath, y as jidToE164 } from "./exec-CK8CHr7j.js";
|
|
5
|
+
import { c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, l as resolveSessionAgentId, n as resolveAgentConfig, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, u as resolveSessionAgentIds } from "./agent-scope-DWKQJUUZ.js";
|
|
6
6
|
import { a as queueEmbeddedPiMessage, c as waitForEmbeddedPiRunEnd, i as isEmbeddedPiRunStreaming, n as compactEmbeddedPiSession, o as resolveEmbeddedSessionLane, r as isEmbeddedPiRunActive, s as runEmbeddedPiAgent, t as abortEmbeddedPiRun } from "./pi-embedded-CVojjlMb.js";
|
|
7
7
|
import { n as resolveCliName, t as formatCliCommand } from "./command-format-CZk1W3UP.js";
|
|
8
|
-
import { d as webAuthExists, i as logoutWeb, n as getWebAuthAgeMs, o as pickWebChannel, r as logWebSelfId, s as readWebSelfId, t as WA_WEB_AUTH_DIR } from "./auth-store-
|
|
9
|
-
import { $ as appendAssistantMessageToSessionTranscript, A as buildWorkspaceSkillCommandSpecs, B as buildPluginToolGroups, C as resolveBrowserConfig, Ct as resolveMainSessionKey, D as DEFAULT_UPLOAD_DIR, Dt as resolveConversationLabel, E as saveMediaBuffer, Et as listChannelDocks, F as resolveSandboxedMediaSource, G as resolveToolProfilePolicy, H as expandPolicyWithPluginGroups, I as ensureBrowserControlAuth, J as matchesAnyGlobPattern, K as stripPluginOnlyAllowlist, L as resolveBrowserControlAuth, Mt as isSilentReplyText, N as assertMediaNotDataUrl, O as resolvePathsWithinRoot, Ot as normalizeChatType, P as assertSandboxPath, Q as extractDeliveryInfo, R as resolveSandboxConfigForAgent, S as registerBrowserRoutes, T as getMediaDir, Tt as getChannelDock, U as expandToolGroups, V as collectExplicitAllowlist, W as normalizeToolName, X as resolveBootstrapMaxChars, _ as isTransientHttpError, _t as resolveSessionResetType, a as normalizeReasoningLevel, at as updateSessionStore, b as resolveSandboxRuntimeStatus, bt as resolveFreshSessionTotalTokens, c as normalizeVerboseLevel, dt as normalizeSessionDeliveryFields, g as isLikelyContextOverflowError, gt as resolveSessionResetPolicy, ht as resolveChannelResetConfig, i as normalizeElevatedLevel, it as updateLastRoute, j as buildWorkspaceSkillSnapshot, jt as SILENT_REPLY_TOKEN, k as getBridgeAuthForPort, kt as resolveGroupSessionKey, l as resolveResponseUsageMode, m as isContextOverflowError, mt as evaluateSessionFreshness, n as formatXHighModelHint, nt as readSessionUpdatedAt, o as normalizeThinkLevel, ot as updateSessionStoreEntry, p as isCompactionFailureError, pt as resolveSessionKey, q as compileGlobPatterns, r as listThinkingLevels, rt as recordSessionMetaFromInbound, s as normalizeUsageDisplay, t as formatThinkingLevels, tt as loadSessionStore, u as supportsXHighThinking, ut as normalizeDeliveryContext, v as sanitizeUserFacingText, vt as resolveThreadFlag, w as resolveProfile, wt as deriveSessionMetaPatch, x as createBrowserRouteContext, xt as canonicalizeMainSessionAlias, y as ensureSandboxWorkspaceForSession, yt as DEFAULT_RESET_TRIGGERS, z as applyOwnerOnlyToolPolicy } from "./pi-embedded-helpers-
|
|
10
|
-
import { a as listProfilesForProvider, d as normalizeSecretInput, f as resolveAuthProfileDisplayLabel, i as resolveApiKeyForProfile, l as withFileLock$1, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, r as isProfileInCooldown, s as resolveAuthStorePathForDisplay } from "./auth-profiles-
|
|
11
|
-
import { a as modelKey, d as resolveModelRefFromString, f as resolveThinkingDefault, h as DEFAULT_PROVIDER, i as isCliProvider, l as resolveConfiguredModelRef, m as DEFAULT_MODEL, p as DEFAULT_CONTEXT_TOKENS, r as buildModelAliasIndex, s as normalizeProviderId, t as buildAllowedModelSet, u as resolveDefaultModelForAgent } from "./model-selection-
|
|
12
|
-
import { A as normalizeMessageChannel, C as normalizeChannelId$1, D as isInternalMessageChannel, F as GATEWAY_CLIENT_NAMES, M as resolveMessageChannel, N as GATEWAY_CLIENT_IDS, O as isMarkdownCapableMessageChannel, P as GATEWAY_CLIENT_MODES, S as listChannelPlugins, T as isDeliverableMessageChannel, a as resizeToJpeg, c as getFileExtension, d as kindFromMime, h as SsrFBlockedError, j as resolveGatewayMessageChannel, k as listDeliverableMessageChannels, l as imageMimeFromFormat, m as mediaKindFromMime, n as getImageMetadata, o as detectMime, s as extensionForMime, u as isAudioFileName, v as isBlockedHostname, w as INTERNAL_MESSAGE_CHANNEL, x as getChannelPlugin, y as isPrivateIpAddress } from "./image-ops-
|
|
13
|
-
import { C as unsetConfigValueAtPath, S as setConfigValueAtPath, _ as resetConfigOverrides, a as writeConfigFile, b as getConfigValueAtPath, c as parseDurationMs, d as discoverAnimaPlugins, f as applyTestPluginDefaults, g as getConfigOverrides, h as resolveMemorySlotDecision, i as resolveConfigSnapshotHash, l as validateJsonSchemaValue, m as resolveEnableState, n as loadConfig, o as validateConfigObjectWithPlugins, p as normalizePluginsConfig, r as readConfigFileSnapshot, u as loadPluginManifestRegistry, v as setConfigOverride, w as VERSION, x as parseConfigPath, y as unsetConfigOverride } from "./config-
|
|
8
|
+
import { d as webAuthExists, i as logoutWeb, n as getWebAuthAgeMs, o as pickWebChannel, r as logWebSelfId, s as readWebSelfId, t as WA_WEB_AUTH_DIR } from "./auth-store-eNVxoq_h.js";
|
|
9
|
+
import { $ as appendAssistantMessageToSessionTranscript, A as buildWorkspaceSkillCommandSpecs, B as buildPluginToolGroups, C as resolveBrowserConfig, Ct as resolveMainSessionKey, D as DEFAULT_UPLOAD_DIR, Dt as resolveConversationLabel, E as saveMediaBuffer, Et as listChannelDocks, F as resolveSandboxedMediaSource, G as resolveToolProfilePolicy, H as expandPolicyWithPluginGroups, I as ensureBrowserControlAuth, J as matchesAnyGlobPattern, K as stripPluginOnlyAllowlist, L as resolveBrowserControlAuth, Mt as isSilentReplyText, N as assertMediaNotDataUrl, O as resolvePathsWithinRoot, Ot as normalizeChatType, P as assertSandboxPath, Q as extractDeliveryInfo, R as resolveSandboxConfigForAgent, S as registerBrowserRoutes, T as getMediaDir, Tt as getChannelDock, U as expandToolGroups, V as collectExplicitAllowlist, W as normalizeToolName, X as resolveBootstrapMaxChars, _ as isTransientHttpError, _t as resolveSessionResetType, a as normalizeReasoningLevel, at as updateSessionStore, b as resolveSandboxRuntimeStatus, bt as resolveFreshSessionTotalTokens, c as normalizeVerboseLevel, dt as normalizeSessionDeliveryFields, g as isLikelyContextOverflowError, gt as resolveSessionResetPolicy, ht as resolveChannelResetConfig, i as normalizeElevatedLevel, it as updateLastRoute, j as buildWorkspaceSkillSnapshot, jt as SILENT_REPLY_TOKEN, k as getBridgeAuthForPort, kt as resolveGroupSessionKey, l as resolveResponseUsageMode, m as isContextOverflowError, mt as evaluateSessionFreshness, n as formatXHighModelHint, nt as readSessionUpdatedAt, o as normalizeThinkLevel, ot as updateSessionStoreEntry, p as isCompactionFailureError, pt as resolveSessionKey, q as compileGlobPatterns, r as listThinkingLevels, rt as recordSessionMetaFromInbound, s as normalizeUsageDisplay, t as formatThinkingLevels, tt as loadSessionStore, u as supportsXHighThinking, ut as normalizeDeliveryContext, v as sanitizeUserFacingText, vt as resolveThreadFlag, w as resolveProfile, wt as deriveSessionMetaPatch, x as createBrowserRouteContext, xt as canonicalizeMainSessionAlias, y as ensureSandboxWorkspaceForSession, yt as DEFAULT_RESET_TRIGGERS, z as applyOwnerOnlyToolPolicy } from "./pi-embedded-helpers-CvYnWzAn.js";
|
|
10
|
+
import { a as listProfilesForProvider, d as normalizeSecretInput, f as resolveAuthProfileDisplayLabel, i as resolveApiKeyForProfile, l as withFileLock$1, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, r as isProfileInCooldown, s as resolveAuthStorePathForDisplay } from "./auth-profiles-BqrAPweI.js";
|
|
11
|
+
import { a as modelKey, d as resolveModelRefFromString, f as resolveThinkingDefault, h as DEFAULT_PROVIDER, i as isCliProvider, l as resolveConfiguredModelRef, m as DEFAULT_MODEL, p as DEFAULT_CONTEXT_TOKENS, r as buildModelAliasIndex, s as normalizeProviderId, t as buildAllowedModelSet, u as resolveDefaultModelForAgent } from "./model-selection-DPoLkg_t.js";
|
|
12
|
+
import { A as normalizeMessageChannel, C as normalizeChannelId$1, D as isInternalMessageChannel, F as GATEWAY_CLIENT_NAMES, M as resolveMessageChannel, N as GATEWAY_CLIENT_IDS, O as isMarkdownCapableMessageChannel, P as GATEWAY_CLIENT_MODES, S as listChannelPlugins, T as isDeliverableMessageChannel, a as resizeToJpeg, c as getFileExtension, d as kindFromMime, h as SsrFBlockedError, j as resolveGatewayMessageChannel, k as listDeliverableMessageChannels, l as imageMimeFromFormat, m as mediaKindFromMime, n as getImageMetadata, o as detectMime, s as extensionForMime, u as isAudioFileName, v as isBlockedHostname, w as INTERNAL_MESSAGE_CHANNEL, x as getChannelPlugin, y as isPrivateIpAddress } from "./image-ops-DJjERl7d.js";
|
|
13
|
+
import { C as unsetConfigValueAtPath, S as setConfigValueAtPath, _ as resetConfigOverrides, a as writeConfigFile, b as getConfigValueAtPath, c as parseDurationMs, d as discoverAnimaPlugins, f as applyTestPluginDefaults, g as getConfigOverrides, h as resolveMemorySlotDecision, i as resolveConfigSnapshotHash, l as validateJsonSchemaValue, m as resolveEnableState, n as loadConfig, o as validateConfigObjectWithPlugins, p as normalizePluginsConfig, r as readConfigFileSnapshot, u as loadPluginManifestRegistry, v as setConfigOverride, w as VERSION, x as parseConfigPath, y as unsetConfigOverride } from "./config-H_VHtPeY.js";
|
|
14
14
|
import "./boolean-BsqeuxE6.js";
|
|
15
|
-
import { i as resolveShellEnvFallbackTimeoutMs, n as getShellPathFromLoginShell } from "./shell-env-
|
|
16
|
-
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath } from "./paths-
|
|
17
|
-
import { $ as isVoiceCompatibleAudio, A as getShellConfig, B as maybeApplyTtsToPayload, C as setCliSessionId, D as formatUserTime, E as buildSystemPromptParams, F as getTtsMaxLength, G as resolveTtsPrefsPath, H as resolveTtsApiKey, I as getTtsProvider, J as setTtsEnabled, K as setLastTtsAttempt, L as isSummarizationEnabled, M as sanitizeBinaryOutput, N as buildTtsSystemPromptHint, O as resolveUserTimeFormat, P as getLastTtsAttempt, Q as textToSpeechTelephony, R as isTtsEnabled, S as getCliSessionId, T as buildAgentSystemPrompt, U as resolveTtsAutoMode, V as normalizeTtsAutoMode, W as resolveTtsConfig, X as setTtsProvider, Y as setTtsMaxLength, Z as textToSpeech, _ as runWithModelFallback, a as lookupContextTokens, b as modelSupportsVision, c as ambiguousTargetError, d as applyModelOverrideToSessionEntry, et as resolveBootstrapContextForRun, f as applyVerboseOverride, g as runWithImageModelFallback, h as getSkillsSnapshotVersion, i as normalizeUsage, j as killProcessTree, k as resolveUserTimezone, l as unknownTargetError, m as ensureSkillsWatcher, n as deriveSessionTotalTokens, nt as resolveSessionAuthProfileOverride, o as resolveOutboundTarget, p as getRemoteSkillEligibility, q as setSummarizationEnabled, r as hasNonzeroUsage, s as resolveSessionDeliveryTarget, t as derivePromptTokens, tt as clearSessionAuthProfileOverride, u as resolveSendPolicy, v as findModelInCatalog, w as runCliAgent, x as ensureAnimaModelsJson, y as loadModelCatalog, z as isTtsProviderConfigured } from "./usage-
|
|
18
|
-
import { a as resolveAgentTimeoutMs, i as registerAgentRunContext, n as emitAgentEvent, o as AGENT_LANE_NESTED, s as AGENT_LANE_SUBAGENT, u as stripHeartbeatToken } from "./agent-events-
|
|
15
|
+
import { i as resolveShellEnvFallbackTimeoutMs, n as getShellPathFromLoginShell } from "./shell-env-BBHdjHEl.js";
|
|
16
|
+
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath } from "./paths-CmZenvlb.js";
|
|
17
|
+
import { $ as isVoiceCompatibleAudio, A as getShellConfig, B as maybeApplyTtsToPayload, C as setCliSessionId, D as formatUserTime, E as buildSystemPromptParams, F as getTtsMaxLength, G as resolveTtsPrefsPath, H as resolveTtsApiKey, I as getTtsProvider, J as setTtsEnabled, K as setLastTtsAttempt, L as isSummarizationEnabled, M as sanitizeBinaryOutput, N as buildTtsSystemPromptHint, O as resolveUserTimeFormat, P as getLastTtsAttempt, Q as textToSpeechTelephony, R as isTtsEnabled, S as getCliSessionId, T as buildAgentSystemPrompt, U as resolveTtsAutoMode, V as normalizeTtsAutoMode, W as resolveTtsConfig, X as setTtsProvider, Y as setTtsMaxLength, Z as textToSpeech, _ as runWithModelFallback, a as lookupContextTokens, b as modelSupportsVision, c as ambiguousTargetError, d as applyModelOverrideToSessionEntry, et as resolveBootstrapContextForRun, f as applyVerboseOverride, g as runWithImageModelFallback, h as getSkillsSnapshotVersion, i as normalizeUsage, j as killProcessTree, k as resolveUserTimezone, l as unknownTargetError, m as ensureSkillsWatcher, n as deriveSessionTotalTokens, nt as resolveSessionAuthProfileOverride, o as resolveOutboundTarget, p as getRemoteSkillEligibility, q as setSummarizationEnabled, r as hasNonzeroUsage, s as resolveSessionDeliveryTarget, t as derivePromptTokens, tt as clearSessionAuthProfileOverride, u as resolveSendPolicy, v as findModelInCatalog, w as runCliAgent, x as ensureAnimaModelsJson, y as loadModelCatalog, z as isTtsProviderConfigured } from "./usage-DSZ_juox.js";
|
|
18
|
+
import { a as resolveAgentTimeoutMs, i as registerAgentRunContext, n as emitAgentEvent, o as AGENT_LANE_NESTED, s as AGENT_LANE_SUBAGENT, u as stripHeartbeatToken } from "./agent-events-iR_gRjZA.js";
|
|
19
19
|
import { i as triggerInternalHook, r as registerInternalHook, t as createInternalHookEvent } from "./internal-hooks-CmG29WRF.js";
|
|
20
|
-
import { T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer } from "./chrome-
|
|
21
|
-
import "./frontmatter-
|
|
20
|
+
import { T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer } from "./chrome-s7nTgmbn.js";
|
|
21
|
+
import "./frontmatter-BBFYH_d2.js";
|
|
22
22
|
import { n as formatErrorMessage } from "./errors-DzK5Mvu0.js";
|
|
23
|
-
import { t as sanitizeToolResultImages } from "./tool-images-
|
|
24
|
-
import { a as resolveEnvApiKey, i as resolveApiKeyForProvider, n as getCustomProviderApiKey, o as resolveModelAuthMode, r as requireApiKey, t as getApiKeyForModel } from "./model-auth-
|
|
25
|
-
import { a as chunkText, c as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, o as chunkTextWithMode, r as chunkMarkdownText, s as resolveChunkMode, t as chunkByNewline } from "./chunk-
|
|
26
|
-
import { _ as parseReplyDirectives, b as initializeGlobalHookRunner, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as normalizeTargetForProvider, h as normalizeChannelTargetInput, l as filterMessagingToolDuplicates, m as buildTargetResolverSignature, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as throwIfAborted, y as getGlobalHookRunner } from "./deliver-
|
|
23
|
+
import { t as sanitizeToolResultImages } from "./tool-images-DBOSl4NL.js";
|
|
24
|
+
import { a as resolveEnvApiKey, i as resolveApiKeyForProvider, n as getCustomProviderApiKey, o as resolveModelAuthMode, r as requireApiKey, t as getApiKeyForModel } from "./model-auth-ChSwMwh7.js";
|
|
25
|
+
import { a as chunkText, c as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, o as chunkTextWithMode, r as chunkMarkdownText, s as resolveChunkMode, t as chunkByNewline } from "./chunk-lDG_8LI5.js";
|
|
26
|
+
import { _ as parseReplyDirectives, b as initializeGlobalHookRunner, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as normalizeTargetForProvider, h as normalizeChannelTargetInput, l as filterMessagingToolDuplicates, m as buildTargetResolverSignature, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as throwIfAborted, y as getGlobalHookRunner } from "./deliver-DyQtnfXd.js";
|
|
27
27
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-C0F42S0T.js";
|
|
28
|
-
import { A as routeReply, B as getQueueSize, C as extractAssistantText, D as getFollowupQueueDepth, E as enqueueFollowupRun, F as resolveIdentityName, G as isDiagnosticsEnabled, H as logMessageQueued, I as resolveIdentityNamePrefix, J as takeDirectiveToken, K as extractQueueDirective, L as resolveMessagePrefix, M as extractShortModelName, N as resolveEffectiveMessagesConfig, O as scheduleFollowupDrain, P as resolveHumanDelayConfig, R as clearSessionQueues, S as stripToolMessages, T as resolveQueueSettings, U as logSessionStateChange, V as logMessageProcessed, W as emitDiagnosticEvent, X as randomIdempotencyKey, Y as callGateway, Z as SESSION_LABEL_MAX_LENGTH, _ as resolveInternalSessionKey, a as markSubagentRunTerminated, b as sanitizeTextContent, d as runAgentStep, f as classifySessionKind, g as resolveDisplaySessionKey, h as extractAssistantText$1, i as markSubagentRunForSteerRestart, j as normalizeReplyPayload, k as isRoutableChannel, l as buildSubagentSystemPrompt, m as deriveChannel, n as countActiveRunsForSession, o as registerSubagentRun, p as createAgentToAgentPolicy, q as skipDirectiveArgPrefix, r as listSubagentRunsForRequester, s as replaceSubagentRunAfterSteer, t as clearSubagentRunSteerRestart, u as readLatestAssistantReply, v as resolveMainSessionAlias, w as getSubagentDepthFromSessionStore, x as shouldResolveSessionIdInput, y as resolveSessionReference, z as clearCommandLane } from "./subagent-registry-
|
|
29
|
-
import { _ as resolveMarkdownTableMode, a as loadWebMedia, c as readResponseWithLimit, d as fetchWithTimeout, f as getActiveWebListener, g as convertMarkdownTables, h as markdownToWhatsApp, i as getDefaultLocalRoots, l as fetchWithSsrFGuard, m as normalizePollInput, n as sendMessageWhatsApp, o as MediaFetchError, p as setActiveWebListener, r as sendReactionWhatsApp, s as fetchRemoteMedia, u as bindAbortRelay } from "./outbound-
|
|
30
|
-
import { a as readNumberParam, c as readStringParam, i as jsonResult, n as imageResult, r as imageResultFromFile, s as readStringArrayParam } from "./common-
|
|
31
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
32
|
-
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-
|
|
33
|
-
import "./session-
|
|
34
|
-
import "./semantic-
|
|
35
|
-
import "./soul-
|
|
36
|
-
import { a as waitForWaConnection, c as getContentType, d as DisconnectReason, i as getStatusCode, l as normalizeMessageContent, n as createWaSocket, o as downloadMediaMessage, r as formatError, s as extractMessageContent, t as resolveWhatsAppAccount, u as isJidGroup } from "./accounts-
|
|
37
|
-
import { t as loginWeb } from "./login-
|
|
28
|
+
import { A as routeReply, B as getQueueSize, C as extractAssistantText, D as getFollowupQueueDepth, E as enqueueFollowupRun, F as resolveIdentityName, G as isDiagnosticsEnabled, H as logMessageQueued, I as resolveIdentityNamePrefix, J as takeDirectiveToken, K as extractQueueDirective, L as resolveMessagePrefix, M as extractShortModelName, N as resolveEffectiveMessagesConfig, O as scheduleFollowupDrain, P as resolveHumanDelayConfig, R as clearSessionQueues, S as stripToolMessages, T as resolveQueueSettings, U as logSessionStateChange, V as logMessageProcessed, W as emitDiagnosticEvent, X as randomIdempotencyKey, Y as callGateway, Z as SESSION_LABEL_MAX_LENGTH, _ as resolveInternalSessionKey, a as markSubagentRunTerminated, b as sanitizeTextContent, d as runAgentStep, f as classifySessionKind, g as resolveDisplaySessionKey, h as extractAssistantText$1, i as markSubagentRunForSteerRestart, j as normalizeReplyPayload, k as isRoutableChannel, l as buildSubagentSystemPrompt, m as deriveChannel, n as countActiveRunsForSession, o as registerSubagentRun, p as createAgentToAgentPolicy, q as skipDirectiveArgPrefix, r as listSubagentRunsForRequester, s as replaceSubagentRunAfterSteer, t as clearSubagentRunSteerRestart, u as readLatestAssistantReply, v as resolveMainSessionAlias, w as getSubagentDepthFromSessionStore, x as shouldResolveSessionIdInput, y as resolveSessionReference, z as clearCommandLane } from "./subagent-registry-DjB3VS5s.js";
|
|
29
|
+
import { _ as resolveMarkdownTableMode, a as loadWebMedia, c as readResponseWithLimit, d as fetchWithTimeout, f as getActiveWebListener, g as convertMarkdownTables, h as markdownToWhatsApp, i as getDefaultLocalRoots, l as fetchWithSsrFGuard, m as normalizePollInput, n as sendMessageWhatsApp, o as MediaFetchError, p as setActiveWebListener, r as sendReactionWhatsApp, s as fetchRemoteMedia, u as bindAbortRelay } from "./outbound-DK71dddk.js";
|
|
30
|
+
import { a as readNumberParam, c as readStringParam, i as jsonResult, n as imageResult, r as imageResultFromFile, s as readStringArrayParam } from "./common-DbouukNi.js";
|
|
31
|
+
import { n as resolveMemorySearchConfig } from "./manager-BlXVqzLP.js";
|
|
32
|
+
import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-B-dYyac7.js";
|
|
33
|
+
import "./session-DTRcP2Sj.js";
|
|
34
|
+
import "./semantic-BcioSN1d.js";
|
|
35
|
+
import "./soul-CXGTzaKZ.js";
|
|
36
|
+
import { a as waitForWaConnection, c as getContentType, d as DisconnectReason, i as getStatusCode, l as normalizeMessageContent, n as createWaSocket, o as downloadMediaMessage, r as formatError, s as extractMessageContent, t as resolveWhatsAppAccount, u as isJidGroup } from "./accounts-ZMhj636e.js";
|
|
37
|
+
import { t as loginWeb } from "./login-CdRss5_H.js";
|
|
38
38
|
import { createRequire } from "node:module";
|
|
39
|
-
import * as fs$
|
|
39
|
+
import * as fs$1 from "node:fs/promises";
|
|
40
40
|
import fs from "node:fs/promises";
|
|
41
41
|
import * as os$1 from "node:os";
|
|
42
42
|
import os, { homedir } from "node:os";
|
|
43
43
|
import * as path$1 from "node:path";
|
|
44
44
|
import path from "node:path";
|
|
45
|
-
import
|
|
45
|
+
import fsSync, { constants, existsSync, statSync } from "node:fs";
|
|
46
46
|
import { spawn, spawnSync } from "node:child_process";
|
|
47
47
|
import { fileURLToPath } from "node:url";
|
|
48
48
|
import crypto, { randomUUID } from "node:crypto";
|
|
@@ -3402,7 +3402,7 @@ async function createModelSelectionState(params) {
|
|
|
3402
3402
|
}
|
|
3403
3403
|
}
|
|
3404
3404
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
3405
|
-
const { ensureAuthProfileStore } = await import("./auth-profiles-
|
|
3405
|
+
const { ensureAuthProfileStore } = await import("./auth-profiles-BqrAPweI.js").then((n) => n.t);
|
|
3406
3406
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
3407
3407
|
const providerKey = normalizeProviderId(provider);
|
|
3408
3408
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -5199,8 +5199,8 @@ function listSkillCommandsForAgents(params) {
|
|
|
5199
5199
|
const visitedDirs = /* @__PURE__ */ new Set();
|
|
5200
5200
|
for (const agentId of agentIds) {
|
|
5201
5201
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
5202
|
-
if (!
|
|
5203
|
-
const canonicalDir =
|
|
5202
|
+
if (!fsSync.existsSync(workspaceDir)) continue;
|
|
5203
|
+
const canonicalDir = fsSync.realpathSync(workspaceDir);
|
|
5204
5204
|
if (visitedDirs.has(canonicalDir)) continue;
|
|
5205
5205
|
visitedDirs.add(canonicalDir);
|
|
5206
5206
|
const commands = buildWorkspaceSkillCommandSpecs(workspaceDir, {
|
|
@@ -5411,7 +5411,7 @@ function resolveAllowFromPath(channel, env = process.env) {
|
|
|
5411
5411
|
}
|
|
5412
5412
|
async function readJsonFile(filePath, fallback) {
|
|
5413
5413
|
try {
|
|
5414
|
-
const parsed = safeParseJson(await
|
|
5414
|
+
const parsed = safeParseJson(await fsSync.promises.readFile(filePath, "utf-8"));
|
|
5415
5415
|
if (parsed == null) return {
|
|
5416
5416
|
value: fallback,
|
|
5417
5417
|
exists: true
|
|
@@ -5433,18 +5433,18 @@ async function readJsonFile(filePath, fallback) {
|
|
|
5433
5433
|
}
|
|
5434
5434
|
async function writeJsonFile(filePath, value) {
|
|
5435
5435
|
const dir = path.dirname(filePath);
|
|
5436
|
-
await
|
|
5436
|
+
await fsSync.promises.mkdir(dir, {
|
|
5437
5437
|
recursive: true,
|
|
5438
5438
|
mode: 448
|
|
5439
5439
|
});
|
|
5440
5440
|
const tmp = path.join(dir, `${path.basename(filePath)}.${crypto.randomUUID()}.tmp`);
|
|
5441
|
-
await
|
|
5442
|
-
await
|
|
5443
|
-
await
|
|
5441
|
+
await fsSync.promises.writeFile(tmp, `${JSON.stringify(value, null, 2)}\n`, { encoding: "utf-8" });
|
|
5442
|
+
await fsSync.promises.chmod(tmp, 384);
|
|
5443
|
+
await fsSync.promises.rename(tmp, filePath);
|
|
5444
5444
|
}
|
|
5445
5445
|
async function ensureJsonFile(filePath, fallback) {
|
|
5446
5446
|
try {
|
|
5447
|
-
await
|
|
5447
|
+
await fsSync.promises.access(filePath);
|
|
5448
5448
|
} catch {
|
|
5449
5449
|
await writeJsonFile(filePath, fallback);
|
|
5450
5450
|
}
|
|
@@ -6558,8 +6558,8 @@ function expandHome$1(value) {
|
|
|
6558
6558
|
}
|
|
6559
6559
|
function isExecutableFile(filePath) {
|
|
6560
6560
|
try {
|
|
6561
|
-
if (!
|
|
6562
|
-
if (process.platform !== "win32")
|
|
6561
|
+
if (!fsSync.statSync(filePath).isFile()) return false;
|
|
6562
|
+
if (process.platform !== "win32") fsSync.accessSync(filePath, fsSync.constants.X_OK);
|
|
6563
6563
|
return true;
|
|
6564
6564
|
} catch {
|
|
6565
6565
|
return false;
|
|
@@ -6597,7 +6597,7 @@ function normalizeMatchTarget(value) {
|
|
|
6597
6597
|
}
|
|
6598
6598
|
function tryRealpath(value) {
|
|
6599
6599
|
try {
|
|
6600
|
-
return
|
|
6600
|
+
return fsSync.realpathSync(value);
|
|
6601
6601
|
} catch {
|
|
6602
6602
|
return null;
|
|
6603
6603
|
}
|
|
@@ -7235,7 +7235,7 @@ function isPathLikeToken(value) {
|
|
|
7235
7235
|
}
|
|
7236
7236
|
function defaultFileExists(filePath) {
|
|
7237
7237
|
try {
|
|
7238
|
-
return
|
|
7238
|
+
return fsSync.existsSync(filePath);
|
|
7239
7239
|
} catch {
|
|
7240
7240
|
return false;
|
|
7241
7241
|
}
|
|
@@ -7479,7 +7479,7 @@ function mergeLegacyAgent(current, legacy) {
|
|
|
7479
7479
|
}
|
|
7480
7480
|
function ensureDir$1(filePath) {
|
|
7481
7481
|
const dir = path.dirname(filePath);
|
|
7482
|
-
|
|
7482
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
7483
7483
|
}
|
|
7484
7484
|
function coerceAllowlistEntries(allowlist) {
|
|
7485
7485
|
if (!Array.isArray(allowlist) || allowlist.length === 0) return Array.isArray(allowlist) ? allowlist : void 0;
|
|
@@ -7549,11 +7549,11 @@ function generateToken() {
|
|
|
7549
7549
|
function loadExecApprovals() {
|
|
7550
7550
|
const filePath = resolveExecApprovalsPath();
|
|
7551
7551
|
try {
|
|
7552
|
-
if (!
|
|
7552
|
+
if (!fsSync.existsSync(filePath)) return normalizeExecApprovals({
|
|
7553
7553
|
version: 1,
|
|
7554
7554
|
agents: {}
|
|
7555
7555
|
});
|
|
7556
|
-
const raw =
|
|
7556
|
+
const raw = fsSync.readFileSync(filePath, "utf8");
|
|
7557
7557
|
const parsed = JSON.parse(raw);
|
|
7558
7558
|
if (parsed?.version !== 1) return normalizeExecApprovals({
|
|
7559
7559
|
version: 1,
|
|
@@ -7570,9 +7570,9 @@ function loadExecApprovals() {
|
|
|
7570
7570
|
function saveExecApprovals(file) {
|
|
7571
7571
|
const filePath = resolveExecApprovalsPath();
|
|
7572
7572
|
ensureDir$1(filePath);
|
|
7573
|
-
|
|
7573
|
+
fsSync.writeFileSync(filePath, `${JSON.stringify(file, null, 2)}\n`, { mode: 384 });
|
|
7574
7574
|
try {
|
|
7575
|
-
|
|
7575
|
+
fsSync.chmodSync(filePath, 384);
|
|
7576
7576
|
} catch {}
|
|
7577
7577
|
}
|
|
7578
7578
|
function ensureExecApprovals() {
|
|
@@ -10134,10 +10134,10 @@ const resolveGitHead = (startDir) => {
|
|
|
10134
10134
|
for (let i = 0; i < 12; i += 1) {
|
|
10135
10135
|
const gitPath = path.join(current, ".git");
|
|
10136
10136
|
try {
|
|
10137
|
-
const stat =
|
|
10137
|
+
const stat = fsSync.statSync(gitPath);
|
|
10138
10138
|
if (stat.isDirectory()) return path.join(gitPath, "HEAD");
|
|
10139
10139
|
if (stat.isFile()) {
|
|
10140
|
-
const match =
|
|
10140
|
+
const match = fsSync.readFileSync(gitPath, "utf-8").match(/gitdir:\s*(.+)/i);
|
|
10141
10141
|
if (match?.[1]) {
|
|
10142
10142
|
const resolved = path.resolve(current, match[1].trim());
|
|
10143
10143
|
return path.join(resolved, "HEAD");
|
|
@@ -10195,7 +10195,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
10195
10195
|
cachedCommit = null;
|
|
10196
10196
|
return cachedCommit;
|
|
10197
10197
|
}
|
|
10198
|
-
const head =
|
|
10198
|
+
const head = fsSync.readFileSync(headPath, "utf-8").trim();
|
|
10199
10199
|
if (!head) {
|
|
10200
10200
|
cachedCommit = null;
|
|
10201
10201
|
return cachedCommit;
|
|
@@ -10203,7 +10203,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
10203
10203
|
if (head.startsWith("ref:")) {
|
|
10204
10204
|
const ref = head.replace(/^ref:\s*/i, "").trim();
|
|
10205
10205
|
const refPath = path.resolve(path.dirname(headPath), ref);
|
|
10206
|
-
cachedCommit = formatCommit(
|
|
10206
|
+
cachedCommit = formatCommit(fsSync.readFileSync(refPath, "utf-8").trim());
|
|
10207
10207
|
return cachedCommit;
|
|
10208
10208
|
}
|
|
10209
10209
|
cachedCommit = formatCommit(head);
|
|
@@ -10488,9 +10488,9 @@ const readUsageFromSessionLog = (sessionId, sessionEntry, agentId, sessionKey, s
|
|
|
10488
10488
|
} catch {
|
|
10489
10489
|
return;
|
|
10490
10490
|
}
|
|
10491
|
-
if (!
|
|
10491
|
+
if (!fsSync.existsSync(logPath)) return;
|
|
10492
10492
|
try {
|
|
10493
|
-
const lines =
|
|
10493
|
+
const lines = fsSync.readFileSync(logPath, "utf-8").split(/\n+/);
|
|
10494
10494
|
let input = 0;
|
|
10495
10495
|
let output = 0;
|
|
10496
10496
|
let promptTokens = 0;
|
|
@@ -12049,7 +12049,7 @@ async function getMemorySearchManager(params) {
|
|
|
12049
12049
|
if (cached) return { manager: cached };
|
|
12050
12050
|
}
|
|
12051
12051
|
try {
|
|
12052
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
12052
|
+
const { QmdMemoryManager } = await import("./qmd-manager-D_lZFetA.js");
|
|
12053
12053
|
const primary = await QmdMemoryManager.create({
|
|
12054
12054
|
cfg: params.cfg,
|
|
12055
12055
|
agentId: params.agentId,
|
|
@@ -12061,7 +12061,7 @@ async function getMemorySearchManager(params) {
|
|
|
12061
12061
|
const wrapper = new FallbackMemoryManager({
|
|
12062
12062
|
primary,
|
|
12063
12063
|
fallbackFactory: async () => {
|
|
12064
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
12064
|
+
const { MemoryIndexManager } = await import("./manager-BlXVqzLP.js").then((n) => n.t);
|
|
12065
12065
|
return await MemoryIndexManager.get(params);
|
|
12066
12066
|
}
|
|
12067
12067
|
}, () => QMD_MANAGER_CACHE.delete(cacheKey));
|
|
@@ -12074,7 +12074,7 @@ async function getMemorySearchManager(params) {
|
|
|
12074
12074
|
}
|
|
12075
12075
|
}
|
|
12076
12076
|
try {
|
|
12077
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
12077
|
+
const { MemoryIndexManager } = await import("./manager-BlXVqzLP.js").then((n) => n.t);
|
|
12078
12078
|
return { manager: await MemoryIndexManager.get(params) };
|
|
12079
12079
|
} catch (err) {
|
|
12080
12080
|
return {
|
|
@@ -13434,7 +13434,7 @@ function createWhatsAppLoginTool() {
|
|
|
13434
13434
|
force: Type.Optional(Type.Boolean())
|
|
13435
13435
|
}),
|
|
13436
13436
|
execute: async (_toolCallId, args) => {
|
|
13437
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
13437
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-DoNanonP.js");
|
|
13438
13438
|
if ((args?.action ?? "start") === "wait") {
|
|
13439
13439
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
13440
13440
|
return {
|
|
@@ -13686,7 +13686,7 @@ function formatExtraPaths(workspaceDir, extraPaths) {
|
|
|
13686
13686
|
}
|
|
13687
13687
|
async function checkReadableFile(pathname) {
|
|
13688
13688
|
try {
|
|
13689
|
-
await fs.access(pathname,
|
|
13689
|
+
await fs.access(pathname, fsSync.constants.R_OK);
|
|
13690
13690
|
return { exists: true };
|
|
13691
13691
|
} catch (err) {
|
|
13692
13692
|
const code = err.code;
|
|
@@ -13745,7 +13745,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
13745
13745
|
}
|
|
13746
13746
|
let dirReadable = null;
|
|
13747
13747
|
try {
|
|
13748
|
-
await fs.access(memoryDir,
|
|
13748
|
+
await fs.access(memoryDir, fsSync.constants.R_OK);
|
|
13749
13749
|
dirReadable = true;
|
|
13750
13750
|
} catch (err) {
|
|
13751
13751
|
const code = err.code;
|
|
@@ -14606,23 +14606,23 @@ let webLoginQrPromise = null;
|
|
|
14606
14606
|
let webChannelPromise = null;
|
|
14607
14607
|
let whatsappActionsPromise = null;
|
|
14608
14608
|
function loadWebOutbound() {
|
|
14609
|
-
webOutboundPromise ??= import("./outbound-
|
|
14609
|
+
webOutboundPromise ??= import("./outbound-DK71dddk.js").then((n) => n.t);
|
|
14610
14610
|
return webOutboundPromise;
|
|
14611
14611
|
}
|
|
14612
14612
|
function loadWebLogin() {
|
|
14613
|
-
webLoginPromise ??= import("./login-
|
|
14613
|
+
webLoginPromise ??= import("./login-CdRss5_H.js").then((n) => n.n);
|
|
14614
14614
|
return webLoginPromise;
|
|
14615
14615
|
}
|
|
14616
14616
|
function loadWebLoginQr() {
|
|
14617
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
14617
|
+
webLoginQrPromise ??= import("./login-qr-DoNanonP.js");
|
|
14618
14618
|
return webLoginQrPromise;
|
|
14619
14619
|
}
|
|
14620
14620
|
function loadWebChannel() {
|
|
14621
|
-
webChannelPromise ??= import("./web-
|
|
14621
|
+
webChannelPromise ??= import("./web-DY2TrPoD.js");
|
|
14622
14622
|
return webChannelPromise;
|
|
14623
14623
|
}
|
|
14624
14624
|
function loadWhatsAppActions() {
|
|
14625
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
14625
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-B_fglZZt.js");
|
|
14626
14626
|
return whatsappActionsPromise;
|
|
14627
14627
|
}
|
|
14628
14628
|
function createPluginRuntime() {
|
|
@@ -14765,7 +14765,7 @@ const resolvePluginSdkAliasFile = (params) => {
|
|
|
14765
14765
|
const srcCandidate = path.join(cursor, "src", "plugin-sdk", params.srcFile);
|
|
14766
14766
|
const distCandidate = path.join(cursor, "dist", "plugin-sdk", params.distFile);
|
|
14767
14767
|
const orderedCandidates = isTest ? [distCandidate, srcCandidate] : [distCandidate];
|
|
14768
|
-
for (const candidate of orderedCandidates) if (
|
|
14768
|
+
for (const candidate of orderedCandidates) if (fsSync.existsSync(candidate)) return candidate;
|
|
14769
14769
|
const parent = path.dirname(cursor);
|
|
14770
14770
|
if (parent === cursor) break;
|
|
14771
14771
|
cursor = parent;
|
|
@@ -17256,7 +17256,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
17256
17256
|
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}`);
|
|
17257
17257
|
const body = res.body;
|
|
17258
17258
|
if (!body) throw new Error(`failed to download ${url}: empty response body`);
|
|
17259
|
-
const fileHandle = await fs$
|
|
17259
|
+
const fileHandle = await fs$1.open(filePath, "w");
|
|
17260
17260
|
let bytes = 0;
|
|
17261
17261
|
let thrown;
|
|
17262
17262
|
try {
|
|
@@ -17275,7 +17275,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
17275
17275
|
await fileHandle.close();
|
|
17276
17276
|
}
|
|
17277
17277
|
if (thrown) {
|
|
17278
|
-
await fs$
|
|
17278
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
17279
17279
|
throw thrown;
|
|
17280
17280
|
}
|
|
17281
17281
|
return {
|
|
@@ -17285,7 +17285,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
17285
17285
|
}
|
|
17286
17286
|
async function writeBase64ToFile(filePath, base64) {
|
|
17287
17287
|
const buf = Buffer.from(base64, "base64");
|
|
17288
|
-
await fs$
|
|
17288
|
+
await fs$1.writeFile(filePath, buf);
|
|
17289
17289
|
return {
|
|
17290
17290
|
path: filePath,
|
|
17291
17291
|
bytes: buf.length
|
|
@@ -21776,7 +21776,7 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
|
|
|
21776
21776
|
}
|
|
21777
21777
|
function archiveFileOnDisk(filePath, reason) {
|
|
21778
21778
|
const archived = `${filePath}.${reason}.${(/* @__PURE__ */ new Date()).toISOString().replaceAll(":", "-")}`;
|
|
21779
|
-
|
|
21779
|
+
fsSync.renameSync(filePath, archived);
|
|
21780
21780
|
return archived;
|
|
21781
21781
|
}
|
|
21782
21782
|
/**
|
|
@@ -21786,7 +21786,7 @@ function archiveFileOnDisk(filePath, reason) {
|
|
|
21786
21786
|
function archiveSessionTranscripts(opts) {
|
|
21787
21787
|
const archived = [];
|
|
21788
21788
|
for (const candidate of resolveSessionTranscriptCandidates(opts.sessionId, opts.storePath, opts.sessionFile, opts.agentId)) {
|
|
21789
|
-
if (!
|
|
21789
|
+
if (!fsSync.existsSync(candidate)) continue;
|
|
21790
21790
|
try {
|
|
21791
21791
|
archived.push(archiveFileOnDisk(candidate, opts.reason));
|
|
21792
21792
|
} catch {}
|
|
@@ -21833,7 +21833,7 @@ function listExistingAgentIdsFromDisk() {
|
|
|
21833
21833
|
const root = resolveStateDir();
|
|
21834
21834
|
const agentsDir = path.join(root, "agents");
|
|
21835
21835
|
try {
|
|
21836
|
-
return
|
|
21836
|
+
return fsSync.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
|
|
21837
21837
|
} catch {
|
|
21838
21838
|
return [];
|
|
21839
21839
|
}
|
|
@@ -22078,8 +22078,8 @@ function resolveZaiApiKey() {
|
|
|
22078
22078
|
}
|
|
22079
22079
|
try {
|
|
22080
22080
|
const authPath = path.join(os.homedir(), ".pi", "agent", "auth.json");
|
|
22081
|
-
if (!
|
|
22082
|
-
const data = JSON.parse(
|
|
22081
|
+
if (!fsSync.existsSync(authPath)) return;
|
|
22082
|
+
const data = JSON.parse(fsSync.readFileSync(authPath, "utf-8"));
|
|
22083
22083
|
return data["z-ai"]?.access || data.zai?.access;
|
|
22084
22084
|
} catch {
|
|
22085
22085
|
return;
|
|
@@ -28368,7 +28368,7 @@ const applyCostTotal = (totals, costTotal) => {
|
|
|
28368
28368
|
totals.totalCost += costTotal;
|
|
28369
28369
|
};
|
|
28370
28370
|
async function scanTranscriptFile(params) {
|
|
28371
|
-
const fileStream =
|
|
28371
|
+
const fileStream = fsSync.createReadStream(params.filePath, { encoding: "utf-8" });
|
|
28372
28372
|
const rl = readline.createInterface({
|
|
28373
28373
|
input: fileStream,
|
|
28374
28374
|
crlfDelay: Infinity
|
|
@@ -28428,10 +28428,10 @@ async function loadCostUsageSummary(params) {
|
|
|
28428
28428
|
const dailyMap = /* @__PURE__ */ new Map();
|
|
28429
28429
|
const totals = emptyTotals();
|
|
28430
28430
|
const sessionsDir = resolveSessionTranscriptsDirForAgent(params?.agentId);
|
|
28431
|
-
const entries = await
|
|
28431
|
+
const entries = await fsSync.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
28432
28432
|
const files = (await Promise.all(entries.filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).map(async (entry) => {
|
|
28433
28433
|
const filePath = path.join(sessionsDir, entry.name);
|
|
28434
|
-
const stats = await
|
|
28434
|
+
const stats = await fsSync.promises.stat(filePath).catch(() => null);
|
|
28435
28435
|
if (!stats) return null;
|
|
28436
28436
|
if (stats.mtimeMs < sinceTime) return null;
|
|
28437
28437
|
return filePath;
|
|
@@ -28464,7 +28464,7 @@ async function loadCostUsageSummary(params) {
|
|
|
28464
28464
|
}
|
|
28465
28465
|
async function loadSessionCostSummary(params) {
|
|
28466
28466
|
const sessionFile = params.sessionFile ?? (params.sessionId ? resolveSessionFilePath(params.sessionId, params.sessionEntry, { agentId: params.agentId }) : void 0);
|
|
28467
|
-
if (!sessionFile || !
|
|
28467
|
+
if (!sessionFile || !fsSync.existsSync(sessionFile)) return null;
|
|
28468
28468
|
const totals = emptyTotals();
|
|
28469
28469
|
let firstActivity;
|
|
28470
28470
|
let lastActivity;
|
|
@@ -31434,7 +31434,7 @@ async function runAgentTurnWithFallback(params) {
|
|
|
31434
31434
|
if (corruptedSessionId) {
|
|
31435
31435
|
const transcriptPath = resolveSessionTranscriptPath(corruptedSessionId);
|
|
31436
31436
|
try {
|
|
31437
|
-
|
|
31437
|
+
fsSync.unlinkSync(transcriptPath);
|
|
31438
31438
|
} catch {}
|
|
31439
31439
|
}
|
|
31440
31440
|
delete params.activeSessionStore[sessionKey];
|
|
@@ -32235,7 +32235,7 @@ async function runReplyAgent(params) {
|
|
|
32235
32235
|
if (resolved) transcriptCandidates.add(resolved);
|
|
32236
32236
|
transcriptCandidates.add(resolveSessionTranscriptPath(prevSessionId, agentId));
|
|
32237
32237
|
for (const candidate of transcriptCandidates) try {
|
|
32238
|
-
|
|
32238
|
+
fsSync.unlinkSync(candidate);
|
|
32239
32239
|
} catch {}
|
|
32240
32240
|
}
|
|
32241
32241
|
return true;
|
|
@@ -33001,7 +33001,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
33001
33001
|
return;
|
|
33002
33002
|
}
|
|
33003
33003
|
try {
|
|
33004
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
33004
|
+
const { deliverOutboundPayloads } = await import("./deliver-DyQtnfXd.js").then((n) => n.n);
|
|
33005
33005
|
await deliverOutboundPayloads({
|
|
33006
33006
|
cfg: params.cfg,
|
|
33007
33007
|
channel,
|
|
@@ -33023,7 +33023,7 @@ function forkSessionFromParent(params) {
|
|
|
33023
33023
|
agentId: params.agentId,
|
|
33024
33024
|
sessionsDir: params.sessionsDir
|
|
33025
33025
|
});
|
|
33026
|
-
if (!parentSessionFile || !
|
|
33026
|
+
if (!parentSessionFile || !fsSync.existsSync(parentSessionFile)) return null;
|
|
33027
33027
|
try {
|
|
33028
33028
|
const manager = SessionManager.open(parentSessionFile);
|
|
33029
33029
|
const leafId = manager.getLeafId();
|
|
@@ -33047,7 +33047,7 @@ function forkSessionFromParent(params) {
|
|
|
33047
33047
|
cwd: manager.getCwd(),
|
|
33048
33048
|
parentSession: parentSessionFile
|
|
33049
33049
|
};
|
|
33050
|
-
|
|
33050
|
+
fsSync.writeFileSync(sessionFile, `${JSON.stringify(header)}\n`, "utf-8");
|
|
33051
33051
|
return {
|
|
33052
33052
|
sessionId,
|
|
33053
33053
|
sessionFile
|
|
@@ -2,44 +2,44 @@ import "./paths-zhVksOvm.js";
|
|
|
2
2
|
import "./subsystem-BaJ-PqmA.js";
|
|
3
3
|
import "./utils-RdHkpqQp.js";
|
|
4
4
|
import "./pi-embedded-helpers-6Tb87sgU.js";
|
|
5
|
-
import "./subagent-registry-
|
|
6
|
-
import "./reply-
|
|
5
|
+
import "./subagent-registry-D4idxv3D.js";
|
|
6
|
+
import "./reply-BJ3jrefM.js";
|
|
7
7
|
import "./exec-Bsq6vlwp.js";
|
|
8
|
-
import "./agent-scope-
|
|
9
|
-
import "./model-selection-
|
|
8
|
+
import "./agent-scope-vpVhWds3.js";
|
|
9
|
+
import "./model-selection-C2dz3AhV.js";
|
|
10
10
|
import "./lanes-CjLEc1h9.js";
|
|
11
|
-
import "./config-
|
|
11
|
+
import "./config-9JRRXykP.js";
|
|
12
12
|
import "./boolean-Wzu0-e0P.js";
|
|
13
13
|
import "./env-CYcXAarB.js";
|
|
14
14
|
import "./shell-env-SbFYz02H.js";
|
|
15
15
|
import "./manifest-registry-DLouWVJe.js";
|
|
16
|
-
import "./sessions-
|
|
16
|
+
import "./sessions-0J_pFd44.js";
|
|
17
17
|
import "./image-ops-CVabMYiY.js";
|
|
18
18
|
import "./polls-vAdf9owY.js";
|
|
19
|
-
import "./auth-profiles-
|
|
19
|
+
import "./auth-profiles-DZS4PC_i.js";
|
|
20
20
|
import "./file-lock-BRW4LeL0.js";
|
|
21
|
-
import "./model-auth-
|
|
22
|
-
import "./cli-session-
|
|
21
|
+
import "./model-auth-DUHamQTz.js";
|
|
22
|
+
import "./cli-session-CIhvoVRb.js";
|
|
23
23
|
import "./tokens-BLOye_TP.js";
|
|
24
|
-
import "./sandbox-
|
|
25
|
-
import "./chrome-
|
|
24
|
+
import "./sandbox-wL61f1WP.js";
|
|
25
|
+
import "./chrome-_87P03u5.js";
|
|
26
26
|
import "./auth-B8ry4GB_.js";
|
|
27
|
-
import "./server-context-
|
|
27
|
+
import "./server-context-CcPmRFx_.js";
|
|
28
28
|
import "./skills-DsdcfeyV.js";
|
|
29
|
-
import "./routes-
|
|
29
|
+
import "./routes-CNqS9gOj.js";
|
|
30
30
|
import "./ports-CmAt9mb6.js";
|
|
31
31
|
import "./message-channel-BbkwF58_.js";
|
|
32
32
|
import "./plugins-CFb1gJ4N.js";
|
|
33
33
|
import "./paths-CqMZNi-M.js";
|
|
34
34
|
import "./tool-images-C4cophRS.js";
|
|
35
|
-
import "./parse-timeout-
|
|
35
|
+
import "./parse-timeout-qnHqZvCW.js";
|
|
36
36
|
import "./chunk-DprzQA5H.js";
|
|
37
|
-
import "./deliver-
|
|
38
|
-
import "./pi-tools.policy-
|
|
39
|
-
import "./client-
|
|
40
|
-
import "./call-
|
|
41
|
-
import "./memory-cli-
|
|
42
|
-
import "./manager-
|
|
37
|
+
import "./deliver-tQREYhAr.js";
|
|
38
|
+
import "./pi-tools.policy-BoWzLBtH.js";
|
|
39
|
+
import "./client-BM5PkIwQ.js";
|
|
40
|
+
import "./call-C0Yk2qNb.js";
|
|
41
|
+
import "./memory-cli-CDMb58Y3.js";
|
|
42
|
+
import "./manager-1ZMunRXe.js";
|
|
43
43
|
import "./sqlite-EkbWHNXu.js";
|
|
44
44
|
import "./redact-BICFkpn7.js";
|
|
45
45
|
import "./session-DmKXXA8P.js";
|
|
@@ -51,16 +51,16 @@ import "./links-NgE0SEVZ.js";
|
|
|
51
51
|
import "./progress-gdB4V88Q.js";
|
|
52
52
|
import "./logging-1vypRz8h.js";
|
|
53
53
|
import { f as webAuthExists, i as logWebSelfId, s as pickWebChannel, t as WA_WEB_AUTH_DIR } from "./auth-store-DWgI4Vj8.js";
|
|
54
|
-
import "./control-service-
|
|
55
|
-
import "./dispatcher-
|
|
54
|
+
import "./control-service-BpEnt1xS.js";
|
|
55
|
+
import "./dispatcher-wmQlHNsm.js";
|
|
56
56
|
import "./pi-model-discovery-HH8RvApN.js";
|
|
57
57
|
import "./delivery-queue-CdUtwMZr.js";
|
|
58
58
|
import "./session-cost-usage-CYdqhmt6.js";
|
|
59
|
-
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-
|
|
60
|
-
import { n as sendMessageWhatsApp } from "./outbound-
|
|
61
|
-
import { i as waitForWaConnection, t as createWaSocket } from "./session-
|
|
62
|
-
import "./reply-prefix-
|
|
59
|
+
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-Co4IvTdB.js";
|
|
60
|
+
import { n as sendMessageWhatsApp } from "./outbound-CwCRq4Cg.js";
|
|
61
|
+
import { i as waitForWaConnection, t as createWaSocket } from "./session-D53RZP3i.js";
|
|
62
|
+
import "./reply-prefix-DBJU0o4f.js";
|
|
63
63
|
import "./accounts-C9dcy8Gp.js";
|
|
64
|
-
import { t as loginWeb } from "./login-
|
|
64
|
+
import { t as loginWeb } from "./login-CBsXoiD_.js";
|
|
65
65
|
|
|
66
66
|
export { WA_WEB_AUTH_DIR, createWaSocket, logWebSelfId, loginWeb, monitorWebChannel, monitorWebInbox, pickWebChannel, sendMessageWhatsApp, waitForWaConnection, webAuthExists };
|
|
@@ -2,9 +2,9 @@ import { t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-zhVksOvm.js";
|
|
|
2
2
|
import { B as theme, O as danger, u as defaultRuntime } from "./subsystem-BaJ-PqmA.js";
|
|
3
3
|
import { o as displayPath } from "./utils-RdHkpqQp.js";
|
|
4
4
|
import { t as runCommandWithTimeout } from "./exec-Bsq6vlwp.js";
|
|
5
|
-
import "./agent-scope-
|
|
6
|
-
import "./model-selection-
|
|
7
|
-
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-
|
|
5
|
+
import "./agent-scope-vpVhWds3.js";
|
|
6
|
+
import "./model-selection-C2dz3AhV.js";
|
|
7
|
+
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-9JRRXykP.js";
|
|
8
8
|
import "./boolean-Wzu0-e0P.js";
|
|
9
9
|
import "./env-CYcXAarB.js";
|
|
10
10
|
import "./shell-env-SbFYz02H.js";
|
|
@@ -2,11 +2,11 @@ import { M as theme, R as CONFIG_PATH, b as danger, h as defaultRuntime, q as re
|
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-B9HGdNTg.js";
|
|
3
3
|
import { a as displayPath } from "./utils-DwcweD55.js";
|
|
4
4
|
import { t as runCommandWithTimeout } from "./exec-DRQWu5Xi.js";
|
|
5
|
-
import "./agent-scope-
|
|
6
|
-
import "./model-selection-
|
|
5
|
+
import "./agent-scope-M302b8FW.js";
|
|
6
|
+
import "./model-selection-DJcZ82uR.js";
|
|
7
7
|
import "./skills-CG8iI6v6.js";
|
|
8
8
|
import "./manifest-registry-BHcAJo9u.js";
|
|
9
|
-
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-
|
|
9
|
+
import { i as loadConfig, l as writeConfigFile, o as readConfigFileSnapshot, u as validateConfigObjectWithPlugins } from "./config-6zE4ZkSF.js";
|
|
10
10
|
import "./shell-env-DAw9qXji.js";
|
|
11
11
|
import { t as formatDocsLink } from "./links-CyFLSgkY.js";
|
|
12
12
|
import { C as normalizeServePath, S as normalizeHooksPath, T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, a as ensureTopic, b as generateHookToken, c as DEFAULT_GMAIL_LABEL, d as DEFAULT_GMAIL_SERVE_BIND, f as DEFAULT_GMAIL_SERVE_PATH, g as buildDefaultHookUrl, h as DEFAULT_GMAIL_TOPIC, i as ensureTailscaleEndpoint, l as DEFAULT_GMAIL_MAX_BYTES, m as DEFAULT_GMAIL_SUBSCRIPTION, n as ensureGcloudAuth, o as resolveProjectIdFromGogCredentials, p as DEFAULT_GMAIL_SERVE_PORT, r as ensureSubscription, s as runGcloud, t as ensureDependency, u as DEFAULT_GMAIL_RENEW_MINUTES, v as buildGogWatchStartArgs, w as parseTopicPath, x as mergeHookPresets, y as buildTopicPath } from "./gmail-setup-utils-BRieiYe_.js";
|