@visorcraft/idlehands 4.2.5 → 4.2.6
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/README.md +1 -0
- package/dist/{accounts-BDVs8LTu.js → accounts-B8cGzkjD.js} +1 -1
- package/dist/{accounts-Dk8mJIrQ.js → accounts-BQC_GRUB.js} +6 -6
- package/dist/{accounts-CIvVRRHb.js → accounts-D5tB_lO0.js} +1 -1
- package/dist/{agent-scope-DyP_tr7s.js → agent-scope-Bxq1eWbA.js} +4 -4
- package/dist/{agent-via-gateway-DVTkXwmI.js → agent-via-gateway-BTaqOj5m.js} +60 -60
- package/dist/{agent-via-gateway-Bhon8XVm.js → agent-via-gateway-B_XqJoXa.js} +7 -7
- package/dist/{agent-via-gateway-CS-8ChjV.js → agent-via-gateway-CZLe7Ijx.js} +1 -1
- package/dist/{agent-via-gateway-Drygi4ty.js → agent-via-gateway-D8QBXTZL.js} +1 -1
- package/dist/{agents-dNuQ9qUa.js → agents-C1x5jDIo.js} +4 -4
- package/dist/{agents.config-B_6rOTVW.js → agents.config-4ilUlWts.js} +1 -1
- package/dist/{agents.config-DCNsF8yj.js → agents.config-B_McnvK1.js} +1 -1
- package/dist/{anton-D375-ufL.js → anton-0pF0zqOs.js} +88 -22
- package/dist/{anton-BmSsFmSP.js → anton-BvT9_aWG.js} +88 -22
- package/dist/{anton-Di5VPZiI.js → anton-D4a5lMjo.js} +88 -22
- package/dist/{plugin-sdk/anton-CkJKOeKT.js → anton-QvQ90n78.js} +93 -27
- package/dist/{audio-preflight-vD3mDc6w.js → audio-preflight-CSSlgO89.js} +4 -4
- package/dist/{audio-preflight-CW8IH1lU.js → audio-preflight-qkU2lsDn.js} +35 -35
- package/dist/{auth-choice-C8Tj46gd.js → auth-choice-BhfFkY6h.js} +1 -1
- package/dist/{auth-choice-CYV4KLt7.js → auth-choice-JcCIJBlD.js} +1 -1
- package/dist/{auth-store-DXT-l7fO.js → auth-store-Bb4aajHu.js} +12 -12
- package/dist/{banner-B7_rwm3P.js → banner-DfFhVf3q.js} +1 -1
- package/dist/{bindings-D3b5Fmc9.js → bindings-CLZIJ0Eo.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +60 -60
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +3 -3
- package/dist/bundled/session-memory/handler.js +60 -60
- package/dist/{plugin-sdk/channel-activity-loOg1DRw.js → channel-activity-DdL3RAv_.js} +3 -3
- package/dist/{channel-options-Dxc1A5iC.js → channel-options-9SPtt4MW.js} +1 -1
- package/dist/{channel-options-DTqGMcYU.js → channel-options-CUviKu-7.js} +1 -1
- package/dist/{channel-web-CgvDCMru.js → channel-web-C6dFy-1o.js} +2 -2
- package/dist/{channel-web-BPlapQS3.js → channel-web-CFn6Nsja.js} +2 -2
- package/dist/{channels-cli-BfUIc52d.js → channels-cli-B2da56zV.js} +7 -7
- package/dist/{channels-cli-k45uGu5k.js → channels-cli-DGfqgSUL.js} +7 -7
- package/dist/{chrome-DEnkfZ9p.js → chrome-CT_a9OgI.js} +29 -29
- package/dist/{chrome-BcJB6PcM.js → chrome-Do5potHV.js} +9 -9
- package/dist/{chunk-CMpX7Jaz.js → chunk-Djk-9JeT.js} +1 -1
- package/dist/{cli-C6GCCnET.js → cli-DmnwiKz9.js} +2 -2
- package/dist/{cli-BapK2rdH.js → cli-FOBK-XcZ.js} +2 -2
- package/dist/{command-registry-DJb9jSNL.js → command-registry-DacWRRgz.js} +10 -10
- package/dist/{commands-registry-j4vAzcF2.js → commands-registry-_TBHHpvt.js} +5 -5
- package/dist/{completion-cli-BXA0UZAn.js → completion-cli-DydUIkNr.js} +2 -2
- package/dist/{completion-cli-DqJEZMJt.js → completion-cli-NMyMglwl.js} +1 -1
- package/dist/{config-cli-BfaVUsj-.js → config-cli-B4fFlFK0.js} +1 -1
- package/dist/{config-cli-97SkUuuT.js → config-cli-C_DUmmo_.js} +1 -1
- package/dist/{configure-DpswIHZC.js → configure-BRK8DqNR.js} +3 -3
- package/dist/{configure-CmTKkn3M.js → configure-k0XQkt_5.js} +3 -3
- package/dist/{deliver-BUiQ-9fE.js → deliver-Db2xqgLg.js} +20 -20
- package/dist/{deliver-5FLCa6tB.js → deliver-whAbSPLk.js} +1 -1
- package/dist/{deps-CDLYb9a7.js → deps-BO1TSzg3.js} +1 -1
- package/dist/{plugin-sdk/deps-FuyQakmK.js → deps-BQsD8-_C.js} +6 -6
- package/dist/{deps-BV_-fxNb.js → deps-C8gMsatU.js} +1 -1
- package/dist/{deps-IpeS3x5O.js → deps-CC9rj6VE.js} +1 -1
- package/dist/{diagnostic-4owMk4vH.js → diagnostic-BvlZ0Sot.js} +1 -1
- package/dist/{dock-BgOmHcbh.js → dock-ejUetwTC.js} +6 -6
- package/dist/{doctor-completion-WFEPRjgs.js → doctor-completion-CtkKGYq1.js} +1 -1
- package/dist/{doctor-completion-BkS6Phs6.js → doctor-completion-T65otQPW.js} +1 -1
- package/dist/{emergency-stop-DMTHxdvC.js → emergency-stop-B1WGLPIl.js} +2 -2
- package/dist/{emergency-stop-zy54uJoE.js → emergency-stop-C0olMHR9.js} +2 -2
- package/dist/{emergency-stop-DKLc7AmD.js → emergency-stop-C_7XuwW8.js} +7 -7
- package/dist/emergency-stop-DVyGxgzf.js +113 -0
- package/dist/entry.js +1 -1
- package/dist/{env-B5G1qwGc.js → env-q-PhWbb_.js} +1 -1
- package/dist/{plugin-sdk/errors-CMcD8Lhh.js → errors-C4SHjIZK.js} +1 -1
- package/dist/extensionAPI.js +7 -7
- package/dist/{fetch-guard-iuQsIjqN.js → fetch-guard-CcfDZXe9.js} +1 -1
- package/dist/{frontmatter-BOudmHMS.js → frontmatter-pTUG4Sx_.js} +2 -2
- package/dist/{fs-safe-CYUaAFO9.js → fs-safe-2l05hI1Y.js} +2 -2
- package/dist/{gateway-cli-FNbwxOiN.js → gateway-cli-B4fOuxUC.js} +9 -9
- package/dist/{gateway-cli-E6DUzxEX.js → gateway-cli-LuvH-d8m.js} +9 -9
- package/dist/{gemini-auth-CIyaa44H.js → gemini-auth-DLSGffQK.js} +2 -2
- package/dist/{github-copilot-token-Dgt6cnsM.js → github-copilot-token-BjmEQcmi.js} +7 -7
- package/dist/{health-CGW71CVV.js → health-BFXk0LFk.js} +1 -1
- package/dist/{health-D60h_a2w.js → health-CpPRbWHn.js} +1 -1
- package/dist/{hooks-cli-BnVSeWIo.js → hooks-cli-RL3GbGUT.js} +3 -3
- package/dist/{hooks-cli-DaWPRdgZ.js → hooks-cli-q_ukCmeC.js} +3 -3
- package/dist/{image-C_aN5P6-.js → image-BAsQlUqT.js} +1 -1
- package/dist/{image-D8b_rlQC.js → image-Dlu13Ebx.js} +6 -6
- package/dist/{image-ops-D1KtygWz.js → image-ops-J8P5zOFm.js} +1 -1
- package/dist/index.js +7 -7
- package/dist/{plugin-sdk/ir-kdDGpPMq.js → ir-BT5aAdU9.js} +6 -6
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{local-roots-KN4Hp1yZ.js → local-roots-d4y0lvs2.js} +5 -5
- package/dist/{login-CFr5vJmR.js → login-C2X0In6m.js} +6 -6
- package/dist/{login-qr-CFFFOjOl.js → login-qr-C17PY0rr.js} +11 -11
- package/dist/{manager-BE_76jWB.js → manager-CgzA1hKo.js} +15 -15
- package/dist/{markdown-tables-CzsockiZ.js → markdown-tables-R8VTpfE9.js} +1 -1
- package/dist/{message-channel-C8QtrwEU.js → message-channel-ZdI1-uUh.js} +1 -1
- package/dist/{model-selection-1MMYqY6M.js → model-selection-C5hI1dum.js} +41 -41
- package/dist/{models-C1ouQF8k.js → models-DToiZ2jp.js} +2 -2
- package/dist/{models-cli-CxEFLoMt.js → models-cli-8wuQnOxc.js} +3 -3
- package/dist/{models-cli-BhFUh61j.js → models-cli-C8tnFvU6.js} +4 -4
- package/dist/{npm-resolution-Ds0qg1EX.js → npm-resolution-CPEoaDTw.js} +1 -1
- package/dist/{npm-resolution-D30nzRfu.js → npm-resolution-Dz95V6fj.js} +1 -1
- package/dist/{onboard-NcA_odSQ.js → onboard-DnGowokw.js} +2 -2
- package/dist/{onboard-Cv6q6Usf.js → onboard-Dx-J8Bes.js} +2 -2
- package/dist/{onboard-channels-C1E5DpTR.js → onboard-channels-CU5VwTMC.js} +1 -1
- package/dist/{onboard-channels-bfoS7x6P.js → onboard-channels-rnRb5koA.js} +1 -1
- package/dist/{onboarding-CX8a934a.js → onboarding-5FnIgrWy.js} +3 -3
- package/dist/{onboarding-CpGBbVTj.js → onboarding-ztl5snrV.js} +3 -3
- package/dist/{onboarding.finalize-CRgpFQIz.js → onboarding.finalize-CvJCdPZc.js} +6 -6
- package/dist/{onboarding.finalize-BnKQeFN8.js → onboarding.finalize-DpwZIBVH.js} +7 -7
- package/dist/{outbound-BNh6PpQb.js → outbound-CdY_AskB.js} +6 -6
- package/dist/{outbound-attachment-3I6GzwDe.js → outbound-attachment-IfeZJAKk.js} +2 -2
- package/dist/{path-alias-guards-Cu1nXNMM.js → path-alias-guards-BZmt6hFb.js} +1 -1
- package/dist/{paths-D_qUel1T.js → paths-D3p7ZvM6.js} +3 -3
- package/dist/{paths-BYNVLNi_.js → paths-DQpv9a3Q.js} +5 -5
- package/dist/{pi-embedded-BO8wzB4O.js → pi-embedded-CQoT3WaM.js} +179 -179
- package/dist/{pi-embedded-0YMQWOc5.js → pi-embedded-Cfe7sfXp.js} +26 -26
- package/dist/{pi-embedded-helpers-CghCLoPo.js → pi-embedded-helpers-B3ceCcxm.js} +24 -24
- package/dist/{pi-embedded-helpers-C2j0LfJC.js → pi-embedded-helpers-Ct2rwp-P.js} +4 -4
- package/dist/{pi-model-discovery-Bb__OY-j.js → pi-model-discovery-Dlx4RLWo.js} +7 -7
- package/dist/{plugin-registry-Cp2q0pVP.js → plugin-registry-BCBZDFZm.js} +1 -1
- package/dist/{plugin-registry-DceNUcJc.js → plugin-registry-CY9YBaxv.js} +1 -1
- package/dist/plugin-sdk/{accounts-CBVAw5_G.js → accounts-B9nfRzyn.js} +1 -1
- package/dist/plugin-sdk/{accounts-BLYMokxV.js → accounts-Kt6ygPsC.js} +2 -2
- package/dist/plugin-sdk/{accounts-C5tHm1UI.js → accounts-mjFAny5F.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-jl80I5G9.js → agent-scope-CU41EMlR.js} +2 -2
- package/dist/plugin-sdk/{agent-via-gateway-MuDsrNW6.js → agent-via-gateway-DgS1tFFD.js} +55 -55
- package/dist/{anton-Cw4-BgtA.js → plugin-sdk/anton-CNaMAyWx.js} +93 -27
- package/dist/plugin-sdk/{api-key-rotation-D6nK54XH.js → api-key-rotation-CZhCWd61.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-CKqqN8ty.js → audio-preflight-CRgDehfO.js} +30 -30
- package/dist/plugin-sdk/{auth-store-DaPWgQTx.js → auth-store-DycBvVqL.js} +1 -1
- package/dist/plugin-sdk/{bindings-xXgmJGxj.js → bindings-BDKKHGv-.js} +2 -2
- package/dist/{channel-activity-D_TMOGQ0.js → plugin-sdk/channel-activity-TcS_VfJk.js} +3 -3
- package/dist/plugin-sdk/{channel-web-B6pGyJpM.js → channel-web-DwpLcf95.js} +24 -24
- package/dist/plugin-sdk/{chrome-Cb9FgiCI.js → chrome-BCTizrZD.js} +6 -6
- package/dist/plugin-sdk/{chunk-PW4MBmaN.js → chunk-DZr5xuqv.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-B5m2EsHz.js → commands-registry-BqJLwZYh.js} +5 -5
- package/dist/plugin-sdk/{config-CEgzwk0J.js → config-BzPMtEKA.js} +10 -10
- package/dist/plugin-sdk/{deliver-BNfMF0Nb.js → deliver-Cfc1UCre.js} +10 -10
- package/dist/{deps-Bc5yBM-U.js → plugin-sdk/deps-DHns5FkJ.js} +6 -6
- package/dist/plugin-sdk/{diagnostic-ByA6zvzu.js → diagnostic-B8VzcqLf.js} +1 -1
- package/dist/plugin-sdk/{dock-DKQYtT6-.js → dock-CMURqoee.js} +6 -6
- package/dist/plugin-sdk/{emergency-stop-Ci4JC4dU.js → emergency-stop-BV2NiRit.js} +55 -55
- package/dist/plugin-sdk/{env-5XecRTLs.js → env-qurSiOO2.js} +1 -1
- package/dist/{errors-C_0nm4TJ.js → plugin-sdk/errors-UqLewZJL.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-DwdUEdmT.js → fetch-guard-C174s8ZV.js} +1 -1
- package/dist/plugin-sdk/{fs-safe-qsx2_8-o.js → fs-safe-CCXTOK7j.js} +2 -2
- package/dist/plugin-sdk/{image-C_1tftC8.js → image-DDuK8tyO.js} +6 -6
- package/dist/plugin-sdk/{image-ops-CXSUo-AM.js → image-ops-BRYGGDwL.js} +1 -1
- package/dist/plugin-sdk/index.js +60 -60
- package/dist/{ir-B7IBoKLy.js → plugin-sdk/ir-Bv0Zbp2E.js} +6 -6
- package/dist/plugin-sdk/{local-roots-DjB6DYeI.js → local-roots-bHCsSVt_.js} +4 -4
- package/dist/plugin-sdk/{login-DIwO5D5Y.js → login-CkQrnY2G.js} +6 -6
- package/dist/plugin-sdk/{login-qr-CpCAJuvT.js → login-qr-DAeHibH_.js} +8 -8
- package/dist/plugin-sdk/{manager-Dox9r7og.js → manager-CTC1S_c9.js} +10 -10
- package/dist/plugin-sdk/{markdown-tables-Drtwd4J5.js → markdown-tables-DfUQHRZY.js} +1 -1
- package/dist/plugin-sdk/{message-channel-CQ0qkGHj.js → message-channel-DiMXmQeQ.js} +1 -1
- package/dist/plugin-sdk/{outbound-Dx_q6JAI.js → outbound-B1twcfz5.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-BisU5Vji.js → outbound-attachment-Bs7fNaqv.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-C_uBEYb4.js → path-alias-guards-yyy61qHh.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-B68z4sHq.js → pi-embedded-helpers-BAm9cWol.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-Dt6899be.js → pi-model-discovery-Bt6JtUFr.js} +1 -1
- package/dist/plugin-sdk/{plugins-NTjIvHYk.js → plugins-DRPlVBr_.js} +5 -5
- package/dist/plugin-sdk/{pw-ai-Dk2PTZzq.js → pw-ai-CY0evCZ2.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-juzrnopq.js → qmd-manager-BckPBwZX.js} +5 -5
- package/dist/plugin-sdk/{query-expansion-xBXvzdkL.js → query-expansion-CPqK-tTR.js} +2 -2
- package/dist/plugin-sdk/{redact-B6VQH3UQ.js → redact-Ub8sMBBC.js} +1 -1
- package/dist/plugin-sdk/{replies-ZovJp-3F.js → replies-DwTNZJgi.js} +3 -3
- package/dist/plugin-sdk/{reply-BTVimsoK.js → reply-B_cEB9MH.js} +95 -95
- package/dist/plugin-sdk/{reply-prefix--mxmTL7A.js → reply-prefix-BqV0o7_7.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-CnUtsDch.js → resolve-outbound-target-DAdNGEqG.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-BZABUE4J.js → resolve-route-C5mAwY-o.js} +3 -3
- package/dist/plugin-sdk/{retry-Bh7jveNm.js → retry-2OVzZJMZ.js} +1 -1
- package/dist/plugin-sdk/{runner-CZz1tOIR.js → runner-Ck0w3rcz.js} +10 -10
- package/dist/plugin-sdk/{send-Cb5NIN8s.js → send-A4Lv5nrg.js} +7 -7
- package/dist/plugin-sdk/{send-0EVlThEG.js → send-BBD-m-nM.js} +10 -10
- package/dist/plugin-sdk/{send-BCjVQhp3.js → send-CPeuqOlq.js} +13 -13
- package/dist/plugin-sdk/{send-B26cNPqY.js → send-CaPoBwby.js} +6 -6
- package/dist/plugin-sdk/{send-CHUGIZs9.js → send-SsqudCMv.js} +7 -7
- package/dist/plugin-sdk/{session-DdJj6_DW.js → session-DpL4uk1J.js} +3 -3
- package/dist/plugin-sdk/{sessions-DNx9c2O2.js → sessions-CQ5iD4Uq.js} +6 -6
- package/dist/plugin-sdk/{skill-commands-DorIK8kn.js → skill-commands-C_O9I71g.js} +5 -5
- package/dist/plugin-sdk/{skills-Dh_Cf2PA.js → skills-DmiIiX4l.js} +8 -8
- package/dist/plugin-sdk/{store-CCCXwngh.js → store-BI3rLJdW.js} +2 -2
- package/dist/plugin-sdk/{subsystem-DWPzKeZ0.js → subsystem-lJo9gqAK.js} +1 -1
- package/dist/plugin-sdk/{tables-CF9W23Rd.js → tables-C4X_nAUQ.js} +1 -1
- package/dist/plugin-sdk/{target-errors-DaH0qYtL.js → target-errors-CXh6e9ZE.js} +2 -2
- package/dist/plugin-sdk/{tokens-Y97UKh4C.js → tokens-CU9S3S7t.js} +1 -1
- package/dist/{tool-images-CcGZpzmq.js → plugin-sdk/tool-images-Cf9aWlVu.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-Cv8wyfAi.js → tool-loop-detection-DuwkSqZL.js} +2 -2
- package/dist/plugin-sdk/{utils-Dyj2wV4e.js → utils-dP-FpIgu.js} +2 -2
- package/dist/plugin-sdk/web-B-hYOnMb.js +71 -0
- package/dist/plugin-sdk/{whatsapp-actions-B5g-Rywy.js → whatsapp-actions-Bcknq6EZ.js} +23 -23
- package/dist/{plugins-CRB60mCJ.js → plugins-DYr-HHj0.js} +10 -10
- package/dist/{plugins-cli-2wK7R85Y.js → plugins-cli-BLcXY9sR.js} +3 -3
- package/dist/{plugins-cli-BaQt7jqk.js → plugins-cli-c-YfMlpn.js} +3 -3
- package/dist/{program-CbwFv75G.js → program-IXAxx4y-.js} +8 -8
- package/dist/{program-context-Ck-chzM_.js → program-context-lbXboD45.js} +18 -18
- package/dist/{prompt-select-styled-DJ5ONfKl.js → prompt-select-styled-C9ZBkTHU.js} +4 -4
- package/dist/{prompt-select-styled-DigZiJWM.js → prompt-select-styled-D1foahBO.js} +4 -4
- package/dist/{provider-auth-helpers-DGTDTeE5.js → provider-auth-helpers-CKJG35W4.js} +1 -1
- package/dist/{provider-auth-helpers-Ci_EGvif.js → provider-auth-helpers-Q2ZCYpBX.js} +1 -1
- package/dist/{push-apns-Dz4hOY07.js → push-apns-DM5pSWEU.js} +1 -1
- package/dist/{push-apns-BSYjGCn9.js → push-apns-DbZAasNF.js} +1 -1
- package/dist/{pw-ai-CfYaR1K2.js → pw-ai-DIV4PcIo.js} +13 -13
- package/dist/{pw-ai-DjmrIQle.js → pw-ai-yrIWfcWX.js} +1 -1
- package/dist/{qmd-manager-B_GgyQQ0.js → qmd-manager-BRvg3Rx2.js} +8 -8
- package/dist/{query-expansion-DEq020GG.js → query-expansion-DHuNyU-_.js} +5 -5
- package/dist/{redact-Bvpf-ATQ.js → redact-1Y0KPNtr.js} +1 -1
- package/dist/{register.agent-CTPc2Q9m.js → register.agent-BObt1WS1.js} +8 -8
- package/dist/{register.agent-BZh3UWw3.js → register.agent-CMgUOruT.js} +9 -9
- package/dist/{register.configure-vVDARCph.js → register.configure-B3lElmGa.js} +8 -8
- package/dist/{register.configure-BzTxX7SG.js → register.configure-BSoAZhfz.js} +8 -8
- package/dist/{register.maintenance-DTXn32on.js → register.maintenance-0PNfXeOc.js} +8 -8
- package/dist/{register.maintenance-BNHEV-po.js → register.maintenance-mxkecZ9A.js} +9 -9
- package/dist/{register.message-BYWAEsKP.js → register.message-D7VHunA0.js} +3 -3
- package/dist/{register.message-CHf51taw.js → register.message-Dr4UBjNt.js} +3 -3
- package/dist/{register.onboard-CxwDhXRS.js → register.onboard-BvDwJMC5.js} +2 -2
- package/dist/{register.onboard-vruDRZdG.js → register.onboard-Xh9xW0hH.js} +2 -2
- package/dist/{register.orchestrator-anton-qBr2ZYrk.js → register.orchestrator-anton-CObXxmuY.js} +2 -2
- package/dist/{register.orchestrator-anton-GSAFxzGa.js → register.orchestrator-anton-DShH4ce_.js} +2 -2
- package/dist/{register.setup-DlFQIXoR.js → register.setup-BxsKZdfB.js} +2 -2
- package/dist/{register.setup-B0zmlTXV.js → register.setup-d2XyhTY9.js} +2 -2
- package/dist/{register.status-health-sessions-16paRP9f.js → register.status-health-sessions-CADZZQMe.js} +4 -4
- package/dist/{register.status-health-sessions-CtXhn9Dq.js → register.status-health-sessions-wyNUhSbK.js} +4 -4
- package/dist/{register.subclis-lskGgus9.js → register.subclis-Bh3Lakik.js} +9 -9
- package/dist/{replies-6_GxvQYe.js → replies-2C16fnBP.js} +3 -3
- package/dist/{reply-DfRr_KdS.js → reply-AI4n5V-o.js} +11 -11
- package/dist/{reply-prefix-BUgeSN2R.js → reply-prefix-DCljZiIB.js} +1 -1
- package/dist/{resolve-route-DuttYY7A.js → resolve-route-ClcifpKn.js} +4 -4
- package/dist/{retry-BeB9WenR.js → retry-CG6cMRDQ.js} +1 -1
- package/dist/{run-main-Bj-8MZGb.js → run-main-DNLZvSB0.js} +15 -15
- package/dist/{runner-PgRFPYUj.js → runner-BkCU-kqs.js} +11 -11
- package/dist/{runner-CZW_eyf2.js → runner-Bv_BA3vd.js} +1 -1
- package/dist/{send-D4bMycQu.js → send-BOxJ4QXF.js} +7 -7
- package/dist/{send-BeIZJuy4.js → send-DZa8fWSm.js} +7 -7
- package/dist/{send-Dfa3sn6r.js → send-FLdrx-oF.js} +24 -24
- package/dist/{send-DmLC7aEF.js → send-IlPMLAH-.js} +10 -10
- package/dist/{send-C1hvd3bt.js → send-Y1hD4tQ1.js} +6 -6
- package/dist/{server-node-events-Benu2lR2.js → server-node-events-B9rufyZR.js} +3 -3
- package/dist/{server-node-events-B_LUFrA_.js → server-node-events-DPeIs1oo.js} +3 -3
- package/dist/{session-F_YDS_1V.js → session-nUPBXeEa.js} +7 -7
- package/dist/{sessions-3ioSeOA1.js → sessions-DRA4oaxz.js} +41 -41
- package/dist/{skill-commands-Ck3flWX7.js → skill-commands-BHTBXXVn.js} +9 -9
- package/dist/{skills-CnAPWfca.js → skills-umlGvChF.js} +22 -22
- package/dist/{status-DxcdgCyX.js → status-CvtDDIW9.js} +2 -2
- package/dist/{status-DzCllHYZ.js → status-rvywYmZR.js} +2 -2
- package/dist/{store-CvMgrKWx.js → store-D-ZicQeo.js} +2 -2
- package/dist/{subagent-registry-BcpHnckA.js → subagent-registry-D7Dwl-dH.js} +11 -11
- package/dist/{subsystem-tzu-rIAJ.js → subsystem-D7ZepYT1.js} +1 -1
- package/dist/{tables-5k-zOZ-s.js → tables-Co_R_WKs.js} +1 -1
- package/dist/{target-errors-BPfQrPim.js → target-errors-B1mcM4WR.js} +2 -2
- package/dist/{tokens-BRLyURxW.js → tokens-DGajj8M9.js} +1 -1
- package/dist/{plugin-sdk/tool-images-BMRkn_yk.js → tool-images-Duuqr4bN.js} +2 -2
- package/dist/{tool-loop-detection-BNGetx3Z.js → tool-loop-detection-CjWRg_4q.js} +3 -3
- package/dist/{update-cli-B53rJqAV.js → update-cli-Bofvelva.js} +8 -8
- package/dist/{update-cli-CTETjvrF.js → update-cli-DaGTiqso.js} +9 -9
- package/dist/{update-runner-BGAdvd0c.js → update-runner-4txNUERu.js} +1 -1
- package/dist/{update-runner-BOGIWX18.js → update-runner-B9mGXrK4.js} +1 -1
- package/dist/{utils-CTFLl_ji.js → utils-D9wGoiU9.js} +18 -18
- package/dist/{web-CqOVupWI.js → web-D3gEaA39.js} +3 -3
- package/dist/{web-C7HXffph.js → web-D3gOCfby.js} +8 -8
- package/dist/{web-Dwj9igbL.js → web-D7J5iB9K.js} +66 -66
- package/dist/{web-3nv8mK11.js → web-DhiwmDh8.js} +3 -3
- package/dist/{whatsapp-actions-DbPcN6JQ.js → whatsapp-actions-BJ6kVDXi.js} +25 -25
- package/dist/{workspace-DBFSzT6O.js → workspace-tAtkoD_r.js} +18 -18
- package/package.json +1 -1
- package/dist/emergency-stop-Dxp2e3a9.js +0 -113
- package/dist/plugin-sdk/web-HiiN5NkP.js +0 -71
|
@@ -27,7 +27,7 @@ import "./logging-Bgrm4o7g.js";
|
|
|
27
27
|
import "./auth-store-D9BmR4S6.js";
|
|
28
28
|
import { i as createSlackWebClient } from "./send-m4lQkQcY.js";
|
|
29
29
|
import { $ as fetchChannelPermissionsDiscord, it as parseDiscordTarget } from "./send-CCiDIuX4.js";
|
|
30
|
-
import { gn as formatUsageReportLines, hn as loadProviderUsageSummary, v as deleteTelegramUpdateOffset } from "./subagent-registry-
|
|
30
|
+
import { gn as formatUsageReportLines, hn as loadProviderUsageSummary, v as deleteTelegramUpdateOffset } from "./subagent-registry-D7Dwl-dH.js";
|
|
31
31
|
import "./paths-CC17i2eK.js";
|
|
32
32
|
import "./chat-envelope-Dedaetiq.js";
|
|
33
33
|
import "./client-udFMSDes.js";
|
|
@@ -111,12 +111,12 @@ import { n as runCommandWithRuntime } from "./cli-utils-BfsDuRZS.js";
|
|
|
111
111
|
import { t as formatHelpExamples } from "./help-format-CldHB7lS.js";
|
|
112
112
|
import { n as withProgress } from "./progress-B76RkFx7.js";
|
|
113
113
|
import "./replies-DSfpze17.js";
|
|
114
|
-
import "./deps-
|
|
114
|
+
import "./deps-C8gMsatU.js";
|
|
115
115
|
import "./onboard-helpers-DWivfzcc.js";
|
|
116
116
|
import "./prompt-style-XmK49QYK.js";
|
|
117
117
|
import "./pairing-labels-D7xcHkxi.js";
|
|
118
118
|
import "./outbound-B8NhUGIW.js";
|
|
119
|
-
import "./channel-web-
|
|
119
|
+
import "./channel-web-CFn6Nsja.js";
|
|
120
120
|
import "./session-BVsrroox.js";
|
|
121
121
|
import "./login-BaXwiEpr.js";
|
|
122
122
|
import { t as hasExplicitOptions } from "./command-options-CK65DMbR.js";
|
|
@@ -125,18 +125,18 @@ import "./note-C2HHth6G.js";
|
|
|
125
125
|
import { t as createClackPrompter } from "./clack-prompter-Bo7vS5xP.js";
|
|
126
126
|
import { t as resolveChannelDefaultAccountId } from "./helpers-CIyuenBU.js";
|
|
127
127
|
import { i as describeBinding, n as applyAgentBindings, t as requireValidConfigSnapshot } from "./config-validation-BgKexeQb.js";
|
|
128
|
-
import { n as buildAgentSummaries } from "./agents.config-
|
|
128
|
+
import { n as buildAgentSummaries } from "./agents.config-4ilUlWts.js";
|
|
129
129
|
import "./enable-CMXupNXl.js";
|
|
130
130
|
import "./install-safe-path-C7y57-yb.js";
|
|
131
131
|
import "./npm-registry-spec-BlFqJFsA.js";
|
|
132
132
|
import "./skill-scanner-CdLElD51.js";
|
|
133
133
|
import "./installs-8aQVDSI0.js";
|
|
134
|
-
import { a as reloadOnboardingPluginRegistry, i as ensureOnboardingPluginInstalled, r as setupChannels } from "./onboard-channels-
|
|
134
|
+
import { a as reloadOnboardingPluginRegistry, i as ensureOnboardingPluginInstalled, r as setupChannels } from "./onboard-channels-rnRb5koA.js";
|
|
135
135
|
import { t as buildChannelAccountSnapshot } from "./status-CzZ2Nnqd.js";
|
|
136
136
|
import { t as parseLogLine } from "./parse-log-line-yhomxGjM.js";
|
|
137
137
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-Bi00z1aP.js";
|
|
138
|
-
import "./plugin-registry-
|
|
139
|
-
import { t as formatCliChannelOptions } from "./channel-options-
|
|
138
|
+
import "./plugin-registry-BCBZDFZm.js";
|
|
139
|
+
import { t as formatCliChannelOptions } from "./channel-options-9SPtt4MW.js";
|
|
140
140
|
import fs from "node:fs/promises";
|
|
141
141
|
|
|
142
142
|
//#region src/commands/channels/add-mutators.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./paths-Cn44w-EB.js";
|
|
2
2
|
import { B as theme, O as danger, P as setVerbose, U as getResolvedLoggerSettings, d as isRecord } from "./utils-CXzXXV2o.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import { bt as formatUsageReportLines, gt as deleteTelegramUpdateOffset, yt as loadProviderUsageSummary } from "./reply-
|
|
4
|
+
import { bt as formatUsageReportLines, gt as deleteTelegramUpdateOffset, yt as loadProviderUsageSummary } from "./reply-AI4n5V-o.js";
|
|
5
5
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-RA0zXRpu.js";
|
|
6
6
|
import "./subsystem-CGZX2PBV.js";
|
|
7
7
|
import { n as defaultRuntime } from "./runtime-44j_X4Y6.js";
|
|
@@ -105,7 +105,7 @@ import "./resolve-route-D_AbcmD6.js";
|
|
|
105
105
|
import "./replies-hSFVxL4h.js";
|
|
106
106
|
import "./skill-commands-BFzmZAfo.js";
|
|
107
107
|
import "./workspace-dirs-SsExQ3Bz.js";
|
|
108
|
-
import "./deps-
|
|
108
|
+
import "./deps-CC9rj6VE.js";
|
|
109
109
|
import { a as listChannelPluginCatalogEntries } from "./plugin-auto-enable-7DUxMy6A.js";
|
|
110
110
|
import { n as resolveMessageChannelSelection } from "./channel-selection-ZxRkxpuF.js";
|
|
111
111
|
import "./outbound-attachment-Bot3bRnK.js";
|
|
@@ -118,25 +118,25 @@ import "./pairing-labels-ChQJzbS9.js";
|
|
|
118
118
|
import "./server-lifecycle-B5PlrlbG.js";
|
|
119
119
|
import "./stagger-rQoQSWkz.js";
|
|
120
120
|
import "./system-run-command-qJdgzxLp.js";
|
|
121
|
-
import "./channel-web-
|
|
121
|
+
import "./channel-web-C6dFy-1o.js";
|
|
122
122
|
import "./outbound-DPTxwchq.js";
|
|
123
123
|
import "./session-CdnrRhb4.js";
|
|
124
124
|
import "./login-CfUhrgWT.js";
|
|
125
|
-
import "./plugin-registry-
|
|
126
|
-
import { t as formatCliChannelOptions } from "./channel-options-
|
|
125
|
+
import "./plugin-registry-CY9YBaxv.js";
|
|
126
|
+
import { t as formatCliChannelOptions } from "./channel-options-CUviKu-7.js";
|
|
127
127
|
import { t as hasExplicitOptions } from "./command-options-D4MmqoOd.js";
|
|
128
128
|
import { n as moveSingleAccountChannelSectionToDefaultAccount } from "./api-DK3_W0VC.js";
|
|
129
129
|
import "./note-69EfBEU-.js";
|
|
130
130
|
import { t as createClackPrompter } from "./clack-prompter-CvbZsmjW.js";
|
|
131
131
|
import { t as resolveChannelDefaultAccountId } from "./helpers-C6eW1WGZ.js";
|
|
132
132
|
import { i as describeBinding, n as applyAgentBindings, t as requireValidConfigSnapshot } from "./config-validation-BvKX6fPw.js";
|
|
133
|
-
import { n as buildAgentSummaries } from "./agents.config-
|
|
133
|
+
import { n as buildAgentSummaries } from "./agents.config-B_McnvK1.js";
|
|
134
134
|
import "./enable-o_s6PBsC.js";
|
|
135
135
|
import "./install-safe-path-ChNR9pl6.js";
|
|
136
136
|
import "./npm-registry-spec-BCbbfIhX.js";
|
|
137
137
|
import "./skill-scanner-D7mzXRXd.js";
|
|
138
138
|
import "./installs-CNubze2L.js";
|
|
139
|
-
import { a as reloadOnboardingPluginRegistry, i as ensureOnboardingPluginInstalled, r as setupChannels } from "./onboard-channels-
|
|
139
|
+
import { a as reloadOnboardingPluginRegistry, i as ensureOnboardingPluginInstalled, r as setupChannels } from "./onboard-channels-CU5VwTMC.js";
|
|
140
140
|
import { t as buildChannelAccountSnapshot } from "./status-D8Z2uvBM.js";
|
|
141
141
|
import { t as parseLogLine } from "./parse-log-line-Csn1jHbq.js";
|
|
142
142
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-CDpWjdI3.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as resolvePinnedHostnameWithPolicy, s as isLoopbackIpAddress } from "./ssrf-
|
|
6
|
-
import { i as isErrno } from "./errors-
|
|
7
|
-
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
8
|
-
import path from "node:path";
|
|
9
|
-
import syncFs from "node:fs";
|
|
10
|
-
import os from "node:os";
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-D7ZepYT1.js";
|
|
2
|
+
import { K as resolvePreferredIdleHandsTmpDir, t as CONFIG_DIR } from "./utils-D9wGoiU9.js";
|
|
3
|
+
import { A as isNotFoundPathError, j as isPathInside } from "./workspace-tAtkoD_r.js";
|
|
4
|
+
import { R as loadConfig } from "./model-selection-C5hI1dum.js";
|
|
5
|
+
import { a as resolvePinnedHostnameWithPolicy, s as isLoopbackIpAddress } from "./ssrf-CZeHDwVZ.js";
|
|
6
|
+
import { i as isErrno } from "./errors-C4SHjIZK.js";
|
|
7
|
+
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-2l05hI1Y.js";
|
|
11
8
|
import fs from "node:fs/promises";
|
|
9
|
+
import os from "node:os";
|
|
10
|
+
import path from "node:path";
|
|
11
|
+
import fs$1 from "node:fs";
|
|
12
12
|
import { execFileSync, spawn } from "node:child_process";
|
|
13
13
|
import { createHmac } from "node:crypto";
|
|
14
14
|
import net from "node:net";
|
|
15
15
|
import { createServer } from "node:http";
|
|
16
|
-
import WebSocket, { WebSocketServer } from "ws";
|
|
16
|
+
import WebSocket$1, { WebSocketServer } from "ws";
|
|
17
17
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
18
18
|
|
|
19
19
|
//#region src/browser/constants.ts
|
|
@@ -398,7 +398,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
398
398
|
let extensionWs = null;
|
|
399
399
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
400
400
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
401
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
401
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket$1.OPEN;
|
|
402
402
|
let extensionDisconnectCleanupTimer = null;
|
|
403
403
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
404
404
|
const flushExtensionReconnectWaiters = (connected) => {
|
|
@@ -449,7 +449,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
449
449
|
let nextExtensionId = 1;
|
|
450
450
|
const sendToExtension = async (payload) => {
|
|
451
451
|
const ws = extensionWs;
|
|
452
|
-
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
452
|
+
if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
|
|
453
453
|
ws.send(JSON.stringify(payload));
|
|
454
454
|
return await new Promise((resolve, reject) => {
|
|
455
455
|
const timer = setTimeout(() => {
|
|
@@ -466,12 +466,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
466
466
|
const broadcastToCdpClients = (evt) => {
|
|
467
467
|
const msg = JSON.stringify(evt);
|
|
468
468
|
for (const ws of cdpClients) {
|
|
469
|
-
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
469
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
470
470
|
ws.send(msg);
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
473
|
const sendResponseToCdp = (ws, res) => {
|
|
474
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
474
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
475
475
|
ws.send(JSON.stringify(res));
|
|
476
476
|
};
|
|
477
477
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -681,7 +681,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
681
681
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
682
682
|
return;
|
|
683
683
|
}
|
|
684
|
-
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
684
|
+
if (extensionWs && extensionWs.readyState !== WebSocket$1.OPEN) {
|
|
685
685
|
try {
|
|
686
686
|
extensionWs.terminate();
|
|
687
687
|
} catch {}
|
|
@@ -718,7 +718,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
718
718
|
clearExtensionDisconnectCleanupTimer();
|
|
719
719
|
flushExtensionReconnectWaiters(true);
|
|
720
720
|
const ping = setInterval(() => {
|
|
721
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
721
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
722
722
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
723
723
|
}, 5e3);
|
|
724
724
|
ws.on("message", (data) => {
|
|
@@ -1060,7 +1060,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
1062
1062
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
1063
|
-
const ws = new WebSocket(wsUrl, {
|
|
1063
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
1064
1064
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
1065
1065
|
...Object.keys(headers).length ? { headers } : {}
|
|
1066
1066
|
});
|
|
@@ -1340,7 +1340,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1340
1340
|
]);
|
|
1341
1341
|
function exists$1(filePath) {
|
|
1342
1342
|
try {
|
|
1343
|
-
return
|
|
1343
|
+
return fs$1.existsSync(filePath);
|
|
1344
1344
|
} catch {
|
|
1345
1345
|
return false;
|
|
1346
1346
|
}
|
|
@@ -1483,7 +1483,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
function readDesktopExecLine(desktopPath) {
|
|
1485
1485
|
try {
|
|
1486
|
-
const lines =
|
|
1486
|
+
const lines = fs$1.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1487
1487
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1488
1488
|
} catch {}
|
|
1489
1489
|
return null;
|
|
@@ -1741,7 +1741,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
|
|
|
1741
1741
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
1742
1742
|
function resolveLsofCommandSync() {
|
|
1743
1743
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
1744
|
-
|
|
1744
|
+
fs$1.accessSync(candidate, fs$1.constants.X_OK);
|
|
1745
1745
|
return candidate;
|
|
1746
1746
|
} catch {}
|
|
1747
1747
|
return "lsof";
|
|
@@ -1786,8 +1786,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
function safeReadJson(filePath) {
|
|
1788
1788
|
try {
|
|
1789
|
-
if (!
|
|
1790
|
-
const raw =
|
|
1789
|
+
if (!fs$1.existsSync(filePath)) return null;
|
|
1790
|
+
const raw = fs$1.readFileSync(filePath, "utf-8");
|
|
1791
1791
|
const parsed = JSON.parse(raw);
|
|
1792
1792
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
1793
1793
|
return parsed;
|
|
@@ -1796,8 +1796,8 @@ function safeReadJson(filePath) {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
function safeWriteJson(filePath, data) {
|
|
1799
|
-
|
|
1800
|
-
|
|
1799
|
+
fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
1800
|
+
fs$1.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
1801
1801
|
}
|
|
1802
1802
|
function setDeep(obj, keys, value) {
|
|
1803
1803
|
let node = obj;
|
|
@@ -1924,7 +1924,7 @@ function decorateIdleHandsProfile(userDataDir, opts) {
|
|
|
1924
1924
|
}
|
|
1925
1925
|
safeWriteJson(preferencesPath, prefs);
|
|
1926
1926
|
try {
|
|
1927
|
-
|
|
1927
|
+
fs$1.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
1928
1928
|
} catch {}
|
|
1929
1929
|
}
|
|
1930
1930
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -1940,7 +1940,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
1940
1940
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
1941
1941
|
function exists(filePath) {
|
|
1942
1942
|
try {
|
|
1943
|
-
return
|
|
1943
|
+
return fs$1.existsSync(filePath);
|
|
1944
1944
|
} catch {
|
|
1945
1945
|
return false;
|
|
1946
1946
|
}
|
|
@@ -1986,7 +1986,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1986
1986
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1987
1987
|
return await new Promise((resolve) => {
|
|
1988
1988
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1989
|
-
const ws = new WebSocket(wsUrl, {
|
|
1989
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
1990
1990
|
handshakeTimeout: timeoutMs,
|
|
1991
1991
|
...Object.keys(headers).length ? { headers } : {}
|
|
1992
1992
|
});
|
|
@@ -2020,7 +2020,7 @@ async function launchIdleHandsChrome(resolved, profile) {
|
|
|
2020
2020
|
const exe = resolveBrowserExecutable(resolved);
|
|
2021
2021
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
2022
2022
|
const userDataDir = resolveIdleHandsUserDataDir(profile.name);
|
|
2023
|
-
|
|
2023
|
+
fs$1.mkdirSync(userDataDir, { recursive: true });
|
|
2024
2024
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_IDLEHANDS_BROWSER_COLOR).toUpperCase());
|
|
2025
2025
|
const spawnOnce = () => {
|
|
2026
2026
|
const args = [
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as resolvePinnedHostnameWithPolicy, s as isLoopbackIpAddress } from "./ssrf-
|
|
6
|
-
import { i as isErrno } from "./errors-
|
|
7
|
-
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
8
|
-
import fs from "node:fs/promises";
|
|
9
|
-
import os from "node:os";
|
|
1
|
+
import { B as isNotFoundPathError, V as isPathInside } from "./agent-scope-Ris7qidd.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-Wj1RvjVE.js";
|
|
3
|
+
import { K as resolvePreferredIdleHandsTmpDir, t as CONFIG_DIR } from "./utils-DWJR1fcE.js";
|
|
4
|
+
import { L as loadConfig } from "./model-selection-D3Jhcvg-.js";
|
|
5
|
+
import { a as resolvePinnedHostnameWithPolicy, s as isLoopbackIpAddress } from "./ssrf-DappnhDp.js";
|
|
6
|
+
import { i as isErrno } from "./errors-DbJPTH0P.js";
|
|
7
|
+
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-B73rDX_T.js";
|
|
10
8
|
import path from "node:path";
|
|
11
9
|
import syncFs from "node:fs";
|
|
10
|
+
import os from "node:os";
|
|
11
|
+
import fs from "node:fs/promises";
|
|
12
12
|
import { execFileSync, spawn } from "node:child_process";
|
|
13
13
|
import { createHmac } from "node:crypto";
|
|
14
14
|
import net from "node:net";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { p as normalizeAccountId } from "./session-key-CuLPSMu_.js";
|
|
3
3
|
import { t as resolveAccountEntry } from "./account-lookup-DlMshWZ_.js";
|
|
4
|
-
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-
|
|
4
|
+
import { t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-ZdI1-uUh.js";
|
|
5
5
|
|
|
6
6
|
//#region src/markdown/fences.ts
|
|
7
7
|
function parseFenceSpans(buffer) {
|
|
@@ -25,7 +25,7 @@ import "./logging-Bgrm4o7g.js";
|
|
|
25
25
|
import "./auth-store-D9BmR4S6.js";
|
|
26
26
|
import "./send-m4lQkQcY.js";
|
|
27
27
|
import "./send-CCiDIuX4.js";
|
|
28
|
-
import { _ as loadIdleHandsPlugins } from "./subagent-registry-
|
|
28
|
+
import { _ as loadIdleHandsPlugins } from "./subagent-registry-D7Dwl-dH.js";
|
|
29
29
|
import "./paths-CC17i2eK.js";
|
|
30
30
|
import "./chat-envelope-Dedaetiq.js";
|
|
31
31
|
import "./client-udFMSDes.js";
|
|
@@ -108,7 +108,7 @@ import "./cli-utils-BfsDuRZS.js";
|
|
|
108
108
|
import "./help-format-CldHB7lS.js";
|
|
109
109
|
import "./progress-B76RkFx7.js";
|
|
110
110
|
import "./replies-DSfpze17.js";
|
|
111
|
-
import "./deps-
|
|
111
|
+
import "./deps-C8gMsatU.js";
|
|
112
112
|
import "./onboard-helpers-DWivfzcc.js";
|
|
113
113
|
import "./prompt-style-XmK49QYK.js";
|
|
114
114
|
import "./pairing-labels-D7xcHkxi.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./paths-Cn44w-EB.js";
|
|
2
2
|
import "./utils-CXzXXV2o.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import { ht as loadIdleHandsPlugins } from "./reply-
|
|
4
|
+
import { ht as loadIdleHandsPlugins } from "./reply-AI4n5V-o.js";
|
|
5
5
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-RA0zXRpu.js";
|
|
6
6
|
import { t as createSubsystemLogger } from "./subsystem-CGZX2PBV.js";
|
|
7
7
|
import "./runtime-44j_X4Y6.js";
|
|
@@ -102,7 +102,7 @@ import "./resolve-route-D_AbcmD6.js";
|
|
|
102
102
|
import "./replies-hSFVxL4h.js";
|
|
103
103
|
import "./skill-commands-BFzmZAfo.js";
|
|
104
104
|
import "./workspace-dirs-SsExQ3Bz.js";
|
|
105
|
-
import "./deps-
|
|
105
|
+
import "./deps-CC9rj6VE.js";
|
|
106
106
|
import "./plugin-auto-enable-7DUxMy6A.js";
|
|
107
107
|
import "./channel-selection-ZxRkxpuF.js";
|
|
108
108
|
import "./outbound-attachment-Bot3bRnK.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { on as hasHelpOrVersion, rn as getPrimaryCommand } from "./entry.js";
|
|
3
|
-
import { i as registerSubCliCommands, o as removeCommandByName, s as reparseProgramFromActionArgs } from "./register.subclis-
|
|
3
|
+
import { i as registerSubCliCommands, o as removeCommandByName, s as reparseProgramFromActionArgs } from "./register.subclis-Bh3Lakik.js";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/program/command-registry.ts
|
|
6
6
|
var command_registry_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -22,7 +22,7 @@ const coreEntries = [
|
|
|
22
22
|
hasSubcommands: false
|
|
23
23
|
}],
|
|
24
24
|
register: async ({ program }) => {
|
|
25
|
-
(await import("./register.setup-
|
|
25
|
+
(await import("./register.setup-d2XyhTY9.js")).registerSetupCommand(program);
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -32,7 +32,7 @@ const coreEntries = [
|
|
|
32
32
|
hasSubcommands: false
|
|
33
33
|
}],
|
|
34
34
|
register: async ({ program }) => {
|
|
35
|
-
(await import("./register.onboard-
|
|
35
|
+
(await import("./register.onboard-Xh9xW0hH.js")).registerOnboardCommand(program);
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -42,7 +42,7 @@ const coreEntries = [
|
|
|
42
42
|
hasSubcommands: false
|
|
43
43
|
}],
|
|
44
44
|
register: async ({ program }) => {
|
|
45
|
-
(await import("./register.configure-
|
|
45
|
+
(await import("./register.configure-BSoAZhfz.js")).registerConfigureCommand(program);
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -52,7 +52,7 @@ const coreEntries = [
|
|
|
52
52
|
hasSubcommands: true
|
|
53
53
|
}],
|
|
54
54
|
register: async ({ program }) => {
|
|
55
|
-
(await import("./config-cli-
|
|
55
|
+
(await import("./config-cli-B4fFlFK0.js")).registerConfigCli(program);
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
{
|
|
@@ -79,7 +79,7 @@ const coreEntries = [
|
|
|
79
79
|
}
|
|
80
80
|
],
|
|
81
81
|
register: async ({ program }) => {
|
|
82
|
-
(await import("./register.maintenance-
|
|
82
|
+
(await import("./register.maintenance-mxkecZ9A.js")).registerMaintenanceCommands(program);
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -89,7 +89,7 @@ const coreEntries = [
|
|
|
89
89
|
hasSubcommands: true
|
|
90
90
|
}],
|
|
91
91
|
register: async ({ program, ctx }) => {
|
|
92
|
-
(await import("./register.message-
|
|
92
|
+
(await import("./register.message-D7VHunA0.js")).registerMessageCommands(program, ctx);
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
{
|
|
@@ -113,7 +113,7 @@ const coreEntries = [
|
|
|
113
113
|
hasSubcommands: true
|
|
114
114
|
}],
|
|
115
115
|
register: async ({ program, ctx }) => {
|
|
116
|
-
(await import("./register.agent-
|
|
116
|
+
(await import("./register.agent-CMgUOruT.js")).registerAgentCommands(program, { agentChannelOptions: ctx.agentChannelOptions });
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
{
|
|
@@ -135,7 +135,7 @@ const coreEntries = [
|
|
|
135
135
|
}
|
|
136
136
|
],
|
|
137
137
|
register: async ({ program }) => {
|
|
138
|
-
(await import("./register.status-health-sessions-
|
|
138
|
+
(await import("./register.status-health-sessions-wyNUhSbK.js")).registerStatusHealthSessionsCommands(program);
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
{
|
|
@@ -159,7 +159,7 @@ const coreEntries = [
|
|
|
159
159
|
hasSubcommands: true
|
|
160
160
|
}],
|
|
161
161
|
register: async ({ program }) => {
|
|
162
|
-
(await import("./register.orchestrator-anton-
|
|
162
|
+
(await import("./register.orchestrator-anton-DShH4ce_.js")).registerOrchestratorAntonCommands(program);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { l as getActivePluginRegistry } from "./subsystem-
|
|
3
|
-
import { C as isPlainObject, o as escapeRegExp } from "./utils-
|
|
4
|
-
import { bn as DEFAULT_PROVIDER, u as resolveConfiguredModelRef, yn as DEFAULT_MODEL } from "./model-selection-
|
|
5
|
-
import { n as listChannelDocks } from "./dock-
|
|
6
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
2
|
+
import { l as getActivePluginRegistry } from "./subsystem-D7ZepYT1.js";
|
|
3
|
+
import { C as isPlainObject, o as escapeRegExp } from "./utils-D9wGoiU9.js";
|
|
4
|
+
import { bn as DEFAULT_PROVIDER, u as resolveConfiguredModelRef, yn as DEFAULT_MODEL } from "./model-selection-C5hI1dum.js";
|
|
5
|
+
import { n as listChannelDocks } from "./dock-ejUetwTC.js";
|
|
6
|
+
import { r as normalizeChannelId } from "./plugins-DYr-HHj0.js";
|
|
7
7
|
import { r as listThinkingLevels } from "./thinking-z4_linel.js";
|
|
8
8
|
|
|
9
9
|
//#region src/config/commands.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { St as theme, Z as pathExists, qt as resolveStateDir, u as routeLogsToStderr } from "./entry.js";
|
|
3
3
|
import { t as formatDocsLink } from "./links-fKzK3pnZ.js";
|
|
4
|
-
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-
|
|
5
|
-
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-
|
|
4
|
+
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-Bh3Lakik.js";
|
|
5
|
+
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-DacWRRgz.js";
|
|
6
6
|
import { t as getProgramContext } from "./program-context-BrqeiWcA.js";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
@@ -3,7 +3,7 @@ import { g as resolveStateDir } from "./paths-Cn44w-EB.js";
|
|
|
3
3
|
import { B as theme, h as pathExists } from "./utils-CXzXXV2o.js";
|
|
4
4
|
import { i as routeLogsToStderr } from "./subsystem-CGZX2PBV.js";
|
|
5
5
|
import { t as formatDocsLink } from "./links-15764jZB.js";
|
|
6
|
-
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-
|
|
6
|
+
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-lbXboD45.js";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
@@ -213,7 +213,7 @@ async function runConfigUnset(opts) {
|
|
|
213
213
|
}
|
|
214
214
|
function registerConfigCli(program) {
|
|
215
215
|
const cmd = program.command("config").description("Non-interactive config helpers (get/set/unset). Run without subcommand for the setup wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.idlehands.ai/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
216
|
-
const { configureCommandFromSectionsArg } = await import("./configure-
|
|
216
|
+
const { configureCommandFromSectionsArg } = await import("./configure-BRK8DqNR.js").then((n) => n.t);
|
|
217
217
|
await configureCommandFromSectionsArg(opts.section, defaultRuntime);
|
|
218
218
|
});
|
|
219
219
|
cmd.command("get").description("Get a config value by dot path").argument("<path>", "Config path (dot or bracket notation)").option("--json", "Output JSON", false).action(async (path, opts) => {
|
|
@@ -217,7 +217,7 @@ async function runConfigUnset(opts) {
|
|
|
217
217
|
}
|
|
218
218
|
function registerConfigCli(program) {
|
|
219
219
|
const cmd = program.command("config").description("Non-interactive config helpers (get/set/unset). Run without subcommand for the setup wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.idlehands.ai/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
220
|
-
const { configureCommandFromSectionsArg } = await import("./configure-
|
|
220
|
+
const { configureCommandFromSectionsArg } = await import("./configure-k0XQkt_5.js").then((n) => n.t);
|
|
221
221
|
await configureCommandFromSectionsArg(opts.section, defaultRuntime);
|
|
222
222
|
});
|
|
223
223
|
cmd.command("get").description("Get a config value by dot path").argument("<path>", "Config path (dot or bracket notation)").option("--json", "Output JSON", false).action(async (path, opts) => {
|
|
@@ -11,15 +11,15 @@ import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint }
|
|
|
11
11
|
import { t as note$1 } from "./note-C2HHth6G.js";
|
|
12
12
|
import { t as WizardCancelledError } from "./prompts-D3HHe1ZZ.js";
|
|
13
13
|
import { t as createClackPrompter } from "./clack-prompter-Bo7vS5xP.js";
|
|
14
|
-
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-
|
|
14
|
+
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-rnRb5koA.js";
|
|
15
15
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-DUHqeg5Y.js";
|
|
16
16
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CRT3STlu.js";
|
|
17
17
|
import { t as resolveGatewayService } from "./service-BzgRt9im.js";
|
|
18
|
-
import { r as healthCommand } from "./health-
|
|
18
|
+
import { r as healthCommand } from "./health-CpPRbWHn.js";
|
|
19
19
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-B5haX6bT.js";
|
|
20
20
|
import { n as logConfigUpdated } from "./logging-MF6Thoxk.js";
|
|
21
21
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-kycZqH8q.js";
|
|
22
|
-
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-
|
|
22
|
+
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-JcCIJBlD.js";
|
|
23
23
|
import { a as promptDefaultModel, n as applyModelFallbacksFromSelection, o as promptModelAllowlist, r as applyPrimaryModel, t as applyModelAllowlist } from "./model-picker-D_yngXMe.js";
|
|
24
24
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-Dx928sEF.js";
|
|
25
25
|
import { a as promptCustomApiConfig } from "./onboard-custom-BjUK6yP5.js";
|
|
@@ -12,15 +12,15 @@ import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint }
|
|
|
12
12
|
import { t as note$1 } from "./note-69EfBEU-.js";
|
|
13
13
|
import { t as WizardCancelledError } from "./prompts-9ZBCWbQB.js";
|
|
14
14
|
import { t as createClackPrompter } from "./clack-prompter-CvbZsmjW.js";
|
|
15
|
-
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-
|
|
15
|
+
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-CU5VwTMC.js";
|
|
16
16
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-BZY9-jNW.js";
|
|
17
17
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-BGXzfrm4.js";
|
|
18
18
|
import { t as resolveGatewayService } from "./service-C8NMS3m_.js";
|
|
19
|
-
import { r as healthCommand } from "./health-
|
|
19
|
+
import { r as healthCommand } from "./health-BFXk0LFk.js";
|
|
20
20
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-C7ZpN9hN.js";
|
|
21
21
|
import { n as logConfigUpdated } from "./logging-B0-9lotb.js";
|
|
22
22
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-CiRp6avH.js";
|
|
23
|
-
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-
|
|
23
|
+
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-BhfFkY6h.js";
|
|
24
24
|
import { a as promptDefaultModel, n as applyModelFallbacksFromSelection, o as promptModelAllowlist, r as applyPrimaryModel, t as applyModelAllowlist } from "./model-picker-BkXoTOiA.js";
|
|
25
25
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-B7XlUHk_.js";
|
|
26
26
|
import { a as promptCustomApiConfig } from "./onboard-custom-DUbzMMu7.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { d as resolveStateDir } from "./paths-
|
|
3
|
-
import { C as triggerInternalHook, b as createInternalHookEvent, l as getActivePluginRegistry, t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { d as resolveStateDir } from "./paths-DQpv9a3Q.js";
|
|
3
|
+
import { C as triggerInternalHook, b as createInternalHookEvent, l as getActivePluginRegistry, t as createSubsystemLogger } from "./subsystem-D7ZepYT1.js";
|
|
4
4
|
import { m as normalizeOptionalAccountId, p as normalizeAccountId } from "./session-key-CuLPSMu_.js";
|
|
5
|
-
import { t as getChannelDock } from "./dock-
|
|
6
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
7
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
5
|
+
import { t as getChannelDock } from "./dock-ejUetwTC.js";
|
|
6
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-DGajj8M9.js";
|
|
7
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-DYr-HHj0.js";
|
|
8
8
|
import { n as generateSecureUuid } from "./secure-random-B1N_MXT_.js";
|
|
9
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
10
|
-
import { E as parseInlineDirectives, a as resolveMirroredTranscriptText, i as appendAssistantMessageToSessionTranscript } from "./sessions-
|
|
11
|
-
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-
|
|
12
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
13
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
14
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
9
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-B3ceCcxm.js";
|
|
10
|
+
import { E as parseInlineDirectives, a as resolveMirroredTranscriptText, i as appendAssistantMessageToSessionTranscript } from "./sessions-DRA4oaxz.js";
|
|
11
|
+
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-Djk-9JeT.js";
|
|
12
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-R8VTpfE9.js";
|
|
13
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-d4y0lvs2.js";
|
|
14
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-Y1hD4tQ1.js";
|
|
15
15
|
import path from "node:path";
|
|
16
|
-
import
|
|
16
|
+
import fs from "node:fs";
|
|
17
17
|
|
|
18
18
|
//#region src/plugins/hooks.ts
|
|
19
19
|
/**
|
|
@@ -843,11 +843,11 @@ function resolveFailedDir(stateDir) {
|
|
|
843
843
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
844
844
|
async function ensureQueueDir(stateDir) {
|
|
845
845
|
const queueDir = resolveQueueDir(stateDir);
|
|
846
|
-
await
|
|
846
|
+
await fs.promises.mkdir(queueDir, {
|
|
847
847
|
recursive: true,
|
|
848
848
|
mode: 448
|
|
849
849
|
});
|
|
850
|
-
await
|
|
850
|
+
await fs.promises.mkdir(resolveFailedDir(stateDir), {
|
|
851
851
|
recursive: true,
|
|
852
852
|
mode: 448
|
|
853
853
|
});
|
|
@@ -874,18 +874,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
874
874
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
875
875
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
876
876
|
const json = JSON.stringify(entry, null, 2);
|
|
877
|
-
await
|
|
877
|
+
await fs.promises.writeFile(tmp, json, {
|
|
878
878
|
encoding: "utf-8",
|
|
879
879
|
mode: 384
|
|
880
880
|
});
|
|
881
|
-
await
|
|
881
|
+
await fs.promises.rename(tmp, filePath);
|
|
882
882
|
return id;
|
|
883
883
|
}
|
|
884
884
|
/** Remove a successfully delivered entry from the queue. */
|
|
885
885
|
async function ackDelivery(id, stateDir) {
|
|
886
886
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
887
887
|
try {
|
|
888
|
-
await
|
|
888
|
+
await fs.promises.unlink(filePath);
|
|
889
889
|
} catch (err) {
|
|
890
890
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
891
891
|
}
|
|
@@ -893,17 +893,17 @@ async function ackDelivery(id, stateDir) {
|
|
|
893
893
|
/** Update a queue entry after a failed delivery attempt. */
|
|
894
894
|
async function failDelivery(id, error, stateDir) {
|
|
895
895
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
896
|
-
const raw = await
|
|
896
|
+
const raw = await fs.promises.readFile(filePath, "utf-8");
|
|
897
897
|
const entry = JSON.parse(raw);
|
|
898
898
|
entry.retryCount += 1;
|
|
899
899
|
entry.lastAttemptAt = Date.now();
|
|
900
900
|
entry.lastError = error;
|
|
901
901
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
902
|
-
await
|
|
902
|
+
await fs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
903
903
|
encoding: "utf-8",
|
|
904
904
|
mode: 384
|
|
905
905
|
});
|
|
906
|
-
await
|
|
906
|
+
await fs.promises.rename(tmp, filePath);
|
|
907
907
|
}
|
|
908
908
|
|
|
909
909
|
//#endregion
|
|
@@ -6,7 +6,7 @@ import { t as getChannelDock } from "./dock-QcCdS4qA.js";
|
|
|
6
6
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-Cg4XNE3H.js";
|
|
7
7
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-D-_jp4FO.js";
|
|
8
8
|
import { n as generateSecureUuid } from "./secure-random-BvP4jdcV.js";
|
|
9
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
9
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-Ct2rwp-P.js";
|
|
10
10
|
import { D as parseInlineDirectives, a as resolveMirroredTranscriptText, i as appendAssistantMessageToSessionTranscript } from "./sessions-B7gFq6Ia.js";
|
|
11
11
|
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-CIkG0RpM.js";
|
|
12
12
|
import { n as resolveMarkdownTableMode } from "./markdown-tables-kLeuf1ZN.js";
|