@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
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { p as normalizeSkillFilter } from "./agent-scope-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { K as resolvePreferredIdleHandsTmpDir, h as resolveUserPath, t as CONFIG_DIR } from "./utils-
|
|
4
|
-
import { h as resolveIdleHandsPackageRootSync, j as isPathInside } from "./workspace-
|
|
5
|
-
import { ct as loadPluginManifestRegistry, ht as resolveMemorySlotDecision, in as isDangerousHostEnvVarName, mt as resolveEffectiveEnableState, pt as normalizePluginsConfig } from "./model-selection-
|
|
6
|
-
import { a as resolveIdleHandsManifestBlock, c as resolveIdleHandsManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseIdleHandsManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveIdleHandsManifestInstall, r as parseFrontmatterBool, s as resolveIdleHandsManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-
|
|
7
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { p as normalizeSkillFilter } from "./agent-scope-Bxq1eWbA.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-D7ZepYT1.js";
|
|
3
|
+
import { K as resolvePreferredIdleHandsTmpDir, h as resolveUserPath, t as CONFIG_DIR } from "./utils-D9wGoiU9.js";
|
|
4
|
+
import { h as resolveIdleHandsPackageRootSync, j as isPathInside } from "./workspace-tAtkoD_r.js";
|
|
5
|
+
import { ct as loadPluginManifestRegistry, ht as resolveMemorySlotDecision, in as isDangerousHostEnvVarName, mt as resolveEffectiveEnableState, pt as normalizePluginsConfig } from "./model-selection-C5hI1dum.js";
|
|
6
|
+
import { a as resolveIdleHandsManifestBlock, c as resolveIdleHandsManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseIdleHandsManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveIdleHandsManifestInstall, r as parseFrontmatterBool, s as resolveIdleHandsManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-pTUG4Sx_.js";
|
|
7
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-BZmt6hFb.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fs from "node:fs";
|
|
11
11
|
import { URL, fileURLToPath } from "node:url";
|
|
12
12
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
13
13
|
|
|
@@ -463,13 +463,13 @@ function shortPath(value) {
|
|
|
463
463
|
//#region src/agents/skills/bundled-dir.ts
|
|
464
464
|
function looksLikeSkillsDir(dir) {
|
|
465
465
|
try {
|
|
466
|
-
const entries =
|
|
466
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
467
467
|
for (const entry of entries) {
|
|
468
468
|
if (entry.name.startsWith(".")) continue;
|
|
469
469
|
const fullPath = path.join(dir, entry.name);
|
|
470
470
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
471
471
|
if (entry.isDirectory()) {
|
|
472
|
-
if (
|
|
472
|
+
if (fs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
} catch {
|
|
@@ -484,7 +484,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
484
484
|
const execPath = opts.execPath ?? process.execPath;
|
|
485
485
|
const execDir = path.dirname(execPath);
|
|
486
486
|
const sibling = path.join(execDir, "skills");
|
|
487
|
-
if (
|
|
487
|
+
if (fs.existsSync(sibling)) return sibling;
|
|
488
488
|
} catch {}
|
|
489
489
|
try {
|
|
490
490
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -547,7 +547,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
547
547
|
const trimmed = raw.trim();
|
|
548
548
|
if (!trimmed) continue;
|
|
549
549
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
550
|
-
if (!
|
|
550
|
+
if (!fs.existsSync(candidate)) {
|
|
551
551
|
log.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
552
552
|
continue;
|
|
553
553
|
}
|
|
@@ -574,7 +574,7 @@ async function serializeByKey(key, task) {
|
|
|
574
574
|
|
|
575
575
|
//#endregion
|
|
576
576
|
//#region src/agents/skills/workspace.ts
|
|
577
|
-
const fsp =
|
|
577
|
+
const fsp = fs.promises;
|
|
578
578
|
const skillsLogger = createSubsystemLogger("skills");
|
|
579
579
|
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
580
580
|
/**
|
|
@@ -651,7 +651,7 @@ function resolveSkillsLimits(config) {
|
|
|
651
651
|
}
|
|
652
652
|
function listChildDirectories(dir) {
|
|
653
653
|
try {
|
|
654
|
-
const entries =
|
|
654
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
655
655
|
const dirs = [];
|
|
656
656
|
for (const entry of entries) {
|
|
657
657
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -662,7 +662,7 @@ function listChildDirectories(dir) {
|
|
|
662
662
|
continue;
|
|
663
663
|
}
|
|
664
664
|
if (entry.isSymbolicLink()) try {
|
|
665
|
-
if (
|
|
665
|
+
if (fs.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
666
666
|
} catch {}
|
|
667
667
|
}
|
|
668
668
|
return dirs;
|
|
@@ -673,7 +673,7 @@ function listChildDirectories(dir) {
|
|
|
673
673
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
674
674
|
const nested = path.join(dir, "skills");
|
|
675
675
|
try {
|
|
676
|
-
if (!
|
|
676
|
+
if (!fs.existsSync(nested) || !fs.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
677
677
|
} catch {
|
|
678
678
|
return { baseDir: dir };
|
|
679
679
|
}
|
|
@@ -682,7 +682,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
682
682
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
683
683
|
for (const name of toScan) {
|
|
684
684
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
685
|
-
if (
|
|
685
|
+
if (fs.existsSync(skillMd)) return {
|
|
686
686
|
baseDir: nested,
|
|
687
687
|
note: `Detected nested skills root at ${nested}`
|
|
688
688
|
};
|
|
@@ -702,9 +702,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
702
702
|
const loadSkills = (params) => {
|
|
703
703
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
704
704
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
705
|
-
if (
|
|
705
|
+
if (fs.existsSync(rootSkillMd)) {
|
|
706
706
|
try {
|
|
707
|
-
const size =
|
|
707
|
+
const size = fs.statSync(rootSkillMd).size;
|
|
708
708
|
if (size > limits.maxSkillFileBytes) {
|
|
709
709
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
710
710
|
dir: baseDir,
|
|
@@ -743,9 +743,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
743
743
|
for (const name of limitedChildren) {
|
|
744
744
|
const skillDir = path.join(baseDir, name);
|
|
745
745
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
746
|
-
if (!
|
|
746
|
+
if (!fs.existsSync(skillMd)) continue;
|
|
747
747
|
try {
|
|
748
|
-
const size =
|
|
748
|
+
const size = fs.statSync(skillMd).size;
|
|
749
749
|
if (size > limits.maxSkillFileBytes) {
|
|
750
750
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
751
751
|
skill: name,
|
|
@@ -813,7 +813,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
813
813
|
return Array.from(merged.values()).map((skill) => {
|
|
814
814
|
let frontmatter = {};
|
|
815
815
|
try {
|
|
816
|
-
frontmatter = parseFrontmatter(
|
|
816
|
+
frontmatter = parseFrontmatter(fs.readFileSync(skill.filePath, "utf-8"));
|
|
817
817
|
} catch {}
|
|
818
818
|
return {
|
|
819
819
|
skill,
|
|
@@ -10,7 +10,7 @@ import { r as VERSION } from "./env-vars-I4LX5XSX.js";
|
|
|
10
10
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-DEWCCZdI.js";
|
|
11
11
|
import { Z as resolveFreshSessionTotalTokens, c as loadSessionStore, nt as resolveMainSessionKey } from "./sessions-BoqJKVEs.js";
|
|
12
12
|
import { n as listChannelPlugins } from "./plugins-CCrfZ49T.js";
|
|
13
|
-
import { Cn as buildChannelAccountSnapshot, Dt as summarizeRestartSentinel, Et as readRestartSentinel, Sn as buildChannelSummary, gn as formatUsageReportLines, hn as loadProviderUsageSummary, kn as peekSystemEvents, wn as formatChannelAllowFrom } from "./subagent-registry-
|
|
13
|
+
import { Cn as buildChannelAccountSnapshot, Dt as summarizeRestartSentinel, Et as readRestartSentinel, Sn as buildChannelSummary, gn as formatUsageReportLines, hn as loadProviderUsageSummary, kn as peekSystemEvents, wn as formatChannelAllowFrom } from "./subagent-registry-D7Dwl-dH.js";
|
|
14
14
|
import { u as resolveStorePath } from "./paths-CC17i2eK.js";
|
|
15
15
|
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-C82rD2Wn.js";
|
|
16
16
|
import { o as getTailnetHostname, s as readTailscaleStatusJson } from "./tailscale-CQwGqfET.js";
|
|
@@ -30,7 +30,7 @@ import { t as formatRuntimeStatusWithDetails } from "./runtime-status-Om381vyM.j
|
|
|
30
30
|
import { t as readLastGatewayErrorLine } from "./diagnostics-BzCL1AMI.js";
|
|
31
31
|
import { t as renderTable } from "./table-aJzHv5Oe.js";
|
|
32
32
|
import { i as resolveGatewayProbeAuth$1, s as probeGateway, t as runSecurityAudit } from "./audit-C9PrbHng.js";
|
|
33
|
-
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-
|
|
33
|
+
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-CpPRbWHn.js";
|
|
34
34
|
import { _ as resolveUpdateChannelDisplay, a as formatGitInstallLabel, h as normalizeUpdateChannel, n as checkUpdateStatus, t as resolveDefaultChannelAccountContext } from "./channel-account-context-ofowt_yq.js";
|
|
35
35
|
import { t as resolveNodeService } from "./node-service-v7Nz7h4D.js";
|
|
36
36
|
import { n as redactSecrets, t as formatGatewayAuthUsed } from "./format-oh9Nicqr.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as resolveGatewayPort } from "./paths-Cn44w-EB.js";
|
|
2
2
|
import { B as theme, k as info, z as isRich } from "./utils-CXzXXV2o.js";
|
|
3
|
-
import { D as resolveSessionModelRef, Er as peekSystemEvents, G as readRestartSentinel, K as summarizeRestartSentinel, Zt as resolveContextTokensForModel, b as classifySessionKey, bt as formatUsageReportLines, c as buildChannelSummary, l as buildChannelAccountSnapshot, u as formatChannelAllowFrom, x as listAgentsForGateway, yt as loadProviderUsageSummary } from "./reply-
|
|
3
|
+
import { D as resolveSessionModelRef, Er as peekSystemEvents, G as readRestartSentinel, K as summarizeRestartSentinel, Zt as resolveContextTokensForModel, b as classifySessionKey, bt as formatUsageReportLines, c as buildChannelSummary, l as buildChannelAccountSnapshot, u as formatChannelAllowFrom, x as listAgentsForGateway, yt as loadProviderUsageSummary } from "./reply-AI4n5V-o.js";
|
|
4
4
|
import { u as resolveAgentWorkspaceDir } from "./agent-scope-RA0zXRpu.js";
|
|
5
5
|
import { w as parseAgentSessionKey } from "./session-key-Cuihcz_O.js";
|
|
6
6
|
import { t as resolveIdleHandsPackageRoot } from "./idlehands-root-B8cUs-5M.js";
|
|
@@ -29,7 +29,7 @@ import { t as formatRuntimeStatusWithDetails } from "./runtime-status-D7pLXkNs.j
|
|
|
29
29
|
import { t as readLastGatewayErrorLine } from "./diagnostics-DmZbQ8Nc.js";
|
|
30
30
|
import { t as renderTable } from "./table-B9AmL3M1.js";
|
|
31
31
|
import { i as resolveGatewayProbeAuth$1, s as probeGateway, t as runSecurityAudit } from "./audit-CKeZnjft.js";
|
|
32
|
-
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-
|
|
32
|
+
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-BFXk0LFk.js";
|
|
33
33
|
import { _ as resolveUpdateChannelDisplay, a as formatGitInstallLabel, h as normalizeUpdateChannel, n as checkUpdateStatus, t as resolveDefaultChannelAccountContext } from "./channel-account-context-CDbY5AIr.js";
|
|
34
34
|
import { t as resolveNodeService } from "./node-service-C3vyxHLA.js";
|
|
35
35
|
import { n as redactSecrets, t as formatGatewayAuthUsed } from "./format-BK5XIv_A.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as resolveConfigDir } from "./utils-
|
|
2
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
1
|
+
import { p as resolveConfigDir } from "./utils-D9wGoiU9.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-J8P5zOFm.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -109,7 +109,7 @@ import { a as resolveSubagentToolPolicy, c as readStoreAllowFromForDmPolicy, d a
|
|
|
109
109
|
import { t as makeProxyFetch } from "./proxy-GJkoUC6V.js";
|
|
110
110
|
import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-DhuP2lHs.js";
|
|
111
111
|
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-DSfpze17.js";
|
|
112
|
-
import { i as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-
|
|
112
|
+
import { i as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-C8gMsatU.js";
|
|
113
113
|
import { r as detectBinary } from "./onboard-helpers-DWivfzcc.js";
|
|
114
114
|
import { t as resolvePairingIdLabel } from "./pairing-labels-D7xcHkxi.js";
|
|
115
115
|
import { createRequire } from "node:module";
|
|
@@ -16870,7 +16870,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
16870
16870
|
};
|
|
16871
16871
|
const arg = body.slice(6).trim();
|
|
16872
16872
|
if (arg === "status" || arg === "") {
|
|
16873
|
-
const { antonStatus } = await import("./anton-
|
|
16873
|
+
const { antonStatus } = await import("./anton-0pF0zqOs.js").then((n) => n.r);
|
|
16874
16874
|
const lines = [];
|
|
16875
16875
|
await antonStatus({
|
|
16876
16876
|
log: (msg) => lines.push(msg),
|
|
@@ -16886,7 +16886,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
16886
16886
|
return { shouldContinue: false };
|
|
16887
16887
|
}
|
|
16888
16888
|
if (arg === "stop") {
|
|
16889
|
-
const { antonStop } = await import("./anton-
|
|
16889
|
+
const { antonStop } = await import("./anton-0pF0zqOs.js").then((n) => n.r);
|
|
16890
16890
|
const lines = [];
|
|
16891
16891
|
await antonStop({
|
|
16892
16892
|
log: (msg) => lines.push(msg),
|
|
@@ -16924,8 +16924,8 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
16924
16924
|
await sendProgress(replyCtx, text);
|
|
16925
16925
|
return { shouldContinue: false };
|
|
16926
16926
|
}
|
|
16927
|
-
const { runAnton, formatProgressMessage } = await import("./anton-
|
|
16928
|
-
const { createDefaultDeps } = await import("./deps-
|
|
16927
|
+
const { runAnton, formatProgressMessage } = await import("./anton-0pF0zqOs.js").then((n) => n.r);
|
|
16928
|
+
const { createDefaultDeps } = await import("./deps-C8gMsatU.js").then((n) => n.r);
|
|
16929
16929
|
const { createNonExitingRuntime } = await import("./runtime-CgcH_FLo.js").then((n) => n.r);
|
|
16930
16930
|
const runtime = createNonExitingRuntime();
|
|
16931
16931
|
const deps = createDefaultDeps();
|
|
@@ -49595,7 +49595,7 @@ function createDiscordMessageHandler(params) {
|
|
|
49595
49595
|
try {
|
|
49596
49596
|
const messageText = resolveDiscordMessageText(data.message)?.trim();
|
|
49597
49597
|
if (messageText) {
|
|
49598
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
49598
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-B1WGLPIl.js");
|
|
49599
49599
|
if (isAbortRequestText(messageText)) {
|
|
49600
49600
|
const { resolveAgentRoute } = await import("./resolve-route-VUTvr63H.js").then((n) => n.r);
|
|
49601
49601
|
const channelId = resolveDiscordMessageChannelId({
|
|
@@ -57068,7 +57068,7 @@ async function monitorIMessageProvider(opts = {}) {
|
|
|
57068
57068
|
}
|
|
57069
57069
|
const msgText = (message.text ?? "").trim();
|
|
57070
57070
|
if (msgText) {
|
|
57071
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
57071
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-B1WGLPIl.js");
|
|
57072
57072
|
if (isAbortRequestText(msgText)) {
|
|
57073
57073
|
const { resolveAgentRoute } = await import("./resolve-route-VUTvr63H.js").then((n) => n.r);
|
|
57074
57074
|
const route = resolveAgentRoute({
|
|
@@ -59673,7 +59673,7 @@ function createSignalEventHandler(deps) {
|
|
|
59673
59673
|
const senderName = envelope.sourceName ?? senderDisplay;
|
|
59674
59674
|
const messageId = typeof envelope.timestamp === "number" ? String(envelope.timestamp) : void 0;
|
|
59675
59675
|
if (bodyText) {
|
|
59676
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
59676
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-B1WGLPIl.js");
|
|
59677
59677
|
if (isAbortRequestText(bodyText)) {
|
|
59678
59678
|
const { resolveAgentRoute } = await import("./resolve-route-VUTvr63H.js").then((n) => n.r);
|
|
59679
59679
|
const route = resolveAgentRoute({
|
|
@@ -63062,7 +63062,7 @@ function createSlackMessageHandler(params) {
|
|
|
63062
63062
|
if (ctx.markMessageSeen(message.channel, message.ts)) return;
|
|
63063
63063
|
const rawText = (message.text ?? "").trim();
|
|
63064
63064
|
if (rawText) {
|
|
63065
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
63065
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-B1WGLPIl.js");
|
|
63066
63066
|
if (isAbortRequestText(rawText)) {
|
|
63067
63067
|
const { resolveAgentRoute } = await import("./resolve-route-VUTvr63H.js").then((n) => n.r);
|
|
63068
63068
|
const route = resolveAgentRoute({
|
|
@@ -65256,7 +65256,7 @@ const registerTelegramHandlers = ({ cfg, accountId, bot, opts, runtime, mediaMax
|
|
|
65256
65256
|
const { ctx, msg, chatId, resolvedThreadId, storeAllowFrom, sendOversizeWarning, oversizeLogMessage } = params;
|
|
65257
65257
|
const text = typeof msg.text === "string" ? msg.text : void 0;
|
|
65258
65258
|
if (text) {
|
|
65259
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
65259
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-B1WGLPIl.js");
|
|
65260
65260
|
if (isAbortRequestText(text)) {
|
|
65261
65261
|
const senderId = msg.from?.id ? String(msg.from.id) : "";
|
|
65262
65262
|
if (!senderId || !allowFrom?.length || allowFrom.includes(senderId)) {
|
|
@@ -68750,7 +68750,7 @@ function loadWebLoginQr() {
|
|
|
68750
68750
|
return webLoginQrPromise;
|
|
68751
68751
|
}
|
|
68752
68752
|
function loadWebChannel() {
|
|
68753
|
-
webChannelPromise ??= import("./web-
|
|
68753
|
+
webChannelPromise ??= import("./web-DhiwmDh8.js");
|
|
68754
68754
|
return webChannelPromise;
|
|
68755
68755
|
}
|
|
68756
68756
|
function loadWhatsAppActions() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as resolveNodeRequireFromMeta, D as logVerbose, E as isVerbose, G as readLoggingConfig, H as loggingState, I as getChildLogger, R as isFileLogLevelEnabled, U as levelToMinLevel, V as resolveEnvLogLevelOverride, W as normalizeLogLevel, h as resolveUserPath } from "./utils-
|
|
1
|
+
import { B as resolveNodeRequireFromMeta, D as logVerbose, E as isVerbose, G as readLoggingConfig, H as loggingState, I as getChildLogger, R as isFileLogLevelEnabled, U as levelToMinLevel, V as resolveEnvLogLevelOverride, W as normalizeLogLevel, h as resolveUserPath } from "./utils-D9wGoiU9.js";
|
|
2
2
|
import { i as clearActiveProgressLine } from "./runtime-8mi3mpYB.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { Chalk } from "chalk";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as detectMime } from "./image-ops-
|
|
2
|
-
import { r as sanitizeToolResultImages } from "./tool-images-
|
|
1
|
+
import { c as detectMime } from "./image-ops-J8P5zOFm.js";
|
|
2
|
+
import { r as sanitizeToolResultImages } from "./tool-images-Duuqr4bN.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/agents/tools/common.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-D7ZepYT1.js";
|
|
2
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-J8P5zOFm.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/base64.ts
|
|
5
5
|
function estimateBase64DecodedBytes(base64) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { C as isPlainObject } from "./utils-
|
|
1
|
+
import "./paths-DQpv9a3Q.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-D7ZepYT1.js";
|
|
3
|
+
import { C as isPlainObject } from "./utils-D9wGoiU9.js";
|
|
4
4
|
import "./runtime-8mi3mpYB.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as resolveStateDir, u as resolveGatewayPort } from "./paths-Cn44w-EB.js";
|
|
2
2
|
import { B as theme, h as pathExists } from "./utils-CXzXXV2o.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import { q as trimLogTail } from "./reply-
|
|
4
|
+
import { q as trimLogTail } from "./reply-AI4n5V-o.js";
|
|
5
5
|
import "./agent-scope-RA0zXRpu.js";
|
|
6
6
|
import "./subsystem-CGZX2PBV.js";
|
|
7
7
|
import { n as defaultRuntime } from "./runtime-44j_X4Y6.js";
|
|
@@ -104,7 +104,7 @@ import "./resolve-route-D_AbcmD6.js";
|
|
|
104
104
|
import "./replies-hSFVxL4h.js";
|
|
105
105
|
import "./skill-commands-BFzmZAfo.js";
|
|
106
106
|
import "./workspace-dirs-SsExQ3Bz.js";
|
|
107
|
-
import "./deps-
|
|
107
|
+
import "./deps-CC9rj6VE.js";
|
|
108
108
|
import "./plugin-auto-enable-7DUxMy6A.js";
|
|
109
109
|
import "./channel-selection-ZxRkxpuF.js";
|
|
110
110
|
import "./outbound-attachment-Bot3bRnK.js";
|
|
@@ -119,7 +119,7 @@ import "./stagger-rQoQSWkz.js";
|
|
|
119
119
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel, p as resolveGatewayWindowsTaskName } from "./constants-Z_TnY4pX.js";
|
|
120
120
|
import "./system-run-command-qJdgzxLp.js";
|
|
121
121
|
import { r as parseSemver } from "./runtime-guard-X6f4YmTM.js";
|
|
122
|
-
import "./program-context-
|
|
122
|
+
import "./program-context-lbXboD45.js";
|
|
123
123
|
import "./skills-status-qjQ8XP0h.js";
|
|
124
124
|
import { n as inheritOptionFromParent } from "./command-options-D4MmqoOd.js";
|
|
125
125
|
import "./note-69EfBEU-.js";
|
|
@@ -128,7 +128,7 @@ import "./npm-registry-spec-BCbbfIhX.js";
|
|
|
128
128
|
import "./skill-scanner-D7mzXRXd.js";
|
|
129
129
|
import "./installs-CNubze2L.js";
|
|
130
130
|
import "./channels-status-issues-CDpWjdI3.js";
|
|
131
|
-
import { r as installCompletion } from "./completion-cli-
|
|
131
|
+
import { r as installCompletion } from "./completion-cli-NMyMglwl.js";
|
|
132
132
|
import "./daemon-install-helpers-BZY9-jNW.js";
|
|
133
133
|
import "./systemd-CaCR5CyM.js";
|
|
134
134
|
import { t as resolveGatewayService } from "./service-C8NMS3m_.js";
|
|
@@ -137,18 +137,18 @@ import "./systemd-hints-DHu-HVFx.js";
|
|
|
137
137
|
import { a as terminateStaleGatewayPids, i as renderRestartDiagnostics, o as waitForGatewayHealthyRestart, r as runDaemonRestart, s as runDaemonInstall } from "./daemon-cli-DUg-s4LG.js";
|
|
138
138
|
import "./diagnostics-DmZbQ8Nc.js";
|
|
139
139
|
import { t as renderTable } from "./table-B9AmL3M1.js";
|
|
140
|
-
import "./health-
|
|
140
|
+
import "./health-BFXk0LFk.js";
|
|
141
141
|
import "./control-ui-assets-C7ZpN9hN.js";
|
|
142
142
|
import { _ as resolveUpdateChannelDisplay, c as DEFAULT_GIT_CHANNEL, d as channelToNpmTag, f as formatUpdateChannelLabel, g as resolveEffectiveUpdateChannel, h as normalizeUpdateChannel, i as fetchNpmTagVersion, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-CDbY5AIr.js";
|
|
143
143
|
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, t as formatUpdateAvailableHint } from "./status.update-CTi6vuWj.js";
|
|
144
|
-
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-
|
|
144
|
+
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-B9mGXrK4.js";
|
|
145
145
|
import "./logging-B0-9lotb.js";
|
|
146
146
|
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-D79ppbMQ.js";
|
|
147
147
|
import "./doctor-config-flow-Ck4oCjfl.js";
|
|
148
148
|
import "./systemd-linger-B7XlUHk_.js";
|
|
149
149
|
import "./health-format-Ba_hOaT2.js";
|
|
150
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
151
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
150
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-D1foahBO.js";
|
|
151
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-T65otQPW.js";
|
|
152
152
|
import os from "node:os";
|
|
153
153
|
import path from "node:path";
|
|
154
154
|
import fs from "node:fs/promises";
|
|
@@ -27,7 +27,7 @@ import "./logging-Bgrm4o7g.js";
|
|
|
27
27
|
import "./auth-store-D9BmR4S6.js";
|
|
28
28
|
import "./send-m4lQkQcY.js";
|
|
29
29
|
import "./send-CCiDIuX4.js";
|
|
30
|
-
import { Ot as trimLogTail } from "./subagent-registry-
|
|
30
|
+
import { Ot as trimLogTail } 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";
|
|
@@ -112,7 +112,7 @@ import "./cli-utils-BfsDuRZS.js";
|
|
|
112
112
|
import { t as formatHelpExamples } from "./help-format-CldHB7lS.js";
|
|
113
113
|
import "./progress-B76RkFx7.js";
|
|
114
114
|
import "./replies-DSfpze17.js";
|
|
115
|
-
import "./deps-
|
|
115
|
+
import "./deps-C8gMsatU.js";
|
|
116
116
|
import "./onboard-helpers-DWivfzcc.js";
|
|
117
117
|
import { n as stylePromptMessage } from "./prompt-style-XmK49QYK.js";
|
|
118
118
|
import "./pairing-labels-D7xcHkxi.js";
|
|
@@ -123,9 +123,9 @@ import "./npm-registry-spec-BlFqJFsA.js";
|
|
|
123
123
|
import "./skill-scanner-CdLElD51.js";
|
|
124
124
|
import "./installs-8aQVDSI0.js";
|
|
125
125
|
import "./channels-status-issues-Bi00z1aP.js";
|
|
126
|
-
import { r as installCompletion } from "./completion-cli-
|
|
127
|
-
import "./register.subclis-
|
|
128
|
-
import "./command-registry-
|
|
126
|
+
import { r as installCompletion } from "./completion-cli-DydUIkNr.js";
|
|
127
|
+
import "./register.subclis-Bh3Lakik.js";
|
|
128
|
+
import "./command-registry-DacWRRgz.js";
|
|
129
129
|
import "./program-context-BrqeiWcA.js";
|
|
130
130
|
import "./daemon-install-helpers-DUHqeg5Y.js";
|
|
131
131
|
import { r as parseSemver } from "./runtime-guard-DTSD0F6o.js";
|
|
@@ -136,18 +136,18 @@ import "./systemd-hints-D7r4FWhK.js";
|
|
|
136
136
|
import { a as terminateStaleGatewayPids, i as renderRestartDiagnostics, o as waitForGatewayHealthyRestart, r as runDaemonRestart, s as runDaemonInstall } from "./daemon-cli-DOG5Mivy.js";
|
|
137
137
|
import "./diagnostics-BzCL1AMI.js";
|
|
138
138
|
import { t as renderTable } from "./table-aJzHv5Oe.js";
|
|
139
|
-
import "./health-
|
|
139
|
+
import "./health-CpPRbWHn.js";
|
|
140
140
|
import "./control-ui-assets-B5haX6bT.js";
|
|
141
141
|
import { _ as resolveUpdateChannelDisplay, c as DEFAULT_GIT_CHANNEL, d as channelToNpmTag, f as formatUpdateChannelLabel, g as resolveEffectiveUpdateChannel, h as normalizeUpdateChannel, i as fetchNpmTagVersion, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channel-account-context-ofowt_yq.js";
|
|
142
142
|
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, t as formatUpdateAvailableHint } from "./status.update-BzUu2M5c.js";
|
|
143
|
-
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-
|
|
143
|
+
import { a as globalInstallArgs, c as readPackageVersion, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, s as readPackageName, t as runGatewayUpdate } from "./update-runner-4txNUERu.js";
|
|
144
144
|
import "./logging-MF6Thoxk.js";
|
|
145
145
|
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-If9iCjgB.js";
|
|
146
146
|
import "./doctor-config-flow-BvGvt5rT.js";
|
|
147
147
|
import "./systemd-linger-Dx928sEF.js";
|
|
148
148
|
import "./health-format-wax5NzZB.js";
|
|
149
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
150
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
149
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-C9ZBkTHU.js";
|
|
150
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-CtkKGYq1.js";
|
|
151
151
|
import { spawn, spawnSync } from "node:child_process";
|
|
152
152
|
import os from "node:os";
|
|
153
153
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Z as pathExists } from "./entry.js";
|
|
2
2
|
import { t as runCommandWithTimeout } from "./exec-BrP9AmCw.js";
|
|
3
|
-
import { Ot as trimLogTail } from "./subagent-registry-
|
|
3
|
+
import { Ot as trimLogTail } from "./subagent-registry-D7Dwl-dH.js";
|
|
4
4
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-B5haX6bT.js";
|
|
5
5
|
import { d as channelToNpmTag, l as DEFAULT_PACKAGE_CHANNEL, m as isStableTag, p as isBetaTag, r as compareSemverStrings, s as detectPackageManager$1, u as DEV_BRANCH } from "./channel-account-context-ofowt_yq.js";
|
|
6
6
|
import os from "node:os";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as pathExists } from "./utils-CXzXXV2o.js";
|
|
2
|
-
import { q as trimLogTail } from "./reply-
|
|
2
|
+
import { q as trimLogTail } from "./reply-AI4n5V-o.js";
|
|
3
3
|
import { t as runCommandWithTimeout } from "./exec-CKHMT0tZ.js";
|
|
4
4
|
import { n as resolveControlUiDistIndexHealth, r as resolveControlUiDistIndexPathForRoot } from "./control-ui-assets-C7ZpN9hN.js";
|
|
5
5
|
import { d as channelToNpmTag, l as DEFAULT_PACKAGE_CHANNEL, m as isStableTag, p as isBetaTag, r as compareSemverStrings, s as detectPackageManager$1, u as DEV_BRANCH } from "./channel-account-context-CDbY5AIr.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { f as expandHomePrefix, i as resolveConfigPath, l as resolveOAuthDir, m as resolveRequiredHomeDir, p as resolveEffectiveHomeDir } from "./paths-
|
|
1
|
+
import { f as expandHomePrefix, i as resolveConfigPath, l as resolveOAuthDir, m as resolveRequiredHomeDir, p as resolveEffectiveHomeDir } from "./paths-DQpv9a3Q.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import chalk, { Chalk } from "chalk";
|
|
6
6
|
import { Logger } from "tslog";
|
|
7
7
|
import JSON5 from "json5";
|
|
8
8
|
|
|
9
9
|
//#region src/infra/tmp-idlehands-dir.ts
|
|
10
10
|
const POSIX_IDLEHANDS_TMP_DIR = "/tmp/idlehands";
|
|
11
|
-
const TMP_DIR_ACCESS_MODE =
|
|
11
|
+
const TMP_DIR_ACCESS_MODE = fs.constants.W_OK | fs.constants.X_OK;
|
|
12
12
|
function isNodeErrorWithCode(err, code) {
|
|
13
13
|
return typeof err === "object" && err !== null && "code" in err && err.code === code;
|
|
14
14
|
}
|
|
15
15
|
function resolvePreferredIdleHandsTmpDir(options = {}) {
|
|
16
|
-
const accessSync = options.accessSync ??
|
|
17
|
-
const chmodSync = options.chmodSync ??
|
|
18
|
-
const lstatSync = options.lstatSync ??
|
|
19
|
-
const mkdirSync = options.mkdirSync ??
|
|
16
|
+
const accessSync = options.accessSync ?? fs.accessSync;
|
|
17
|
+
const chmodSync = options.chmodSync ?? fs.chmodSync;
|
|
18
|
+
const lstatSync = options.lstatSync ?? fs.lstatSync;
|
|
19
|
+
const mkdirSync = options.mkdirSync ?? fs.mkdirSync;
|
|
20
20
|
const warn = options.warn ?? ((message) => console.warn(message));
|
|
21
21
|
const getuid = options.getuid ?? (() => {
|
|
22
22
|
try {
|
|
@@ -109,8 +109,8 @@ function resolvePreferredIdleHandsTmpDir(options = {}) {
|
|
|
109
109
|
function readLoggingConfig() {
|
|
110
110
|
const configPath = resolveConfigPath();
|
|
111
111
|
try {
|
|
112
|
-
if (!
|
|
113
|
-
const raw =
|
|
112
|
+
if (!fs.existsSync(configPath)) return;
|
|
113
|
+
const raw = fs.readFileSync(configPath, "utf-8");
|
|
114
114
|
const logging = JSON5.parse(raw)?.logging;
|
|
115
115
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
116
116
|
return logging;
|
|
@@ -245,7 +245,7 @@ function isFileLogLevelEnabled(level) {
|
|
|
245
245
|
return levelToMinLevel(level) <= levelToMinLevel(settings.level);
|
|
246
246
|
}
|
|
247
247
|
function buildLogger(settings) {
|
|
248
|
-
|
|
248
|
+
fs.mkdirSync(path.dirname(settings.file), { recursive: true });
|
|
249
249
|
if (isRollingPath(settings.file)) pruneOldRollingLogs(path.dirname(settings.file));
|
|
250
250
|
let currentFileBytes = getCurrentLogFileBytes(settings.file);
|
|
251
251
|
let warnedAboutSizeCap = false;
|
|
@@ -289,14 +289,14 @@ function resolveMaxLogFileBytes(raw) {
|
|
|
289
289
|
}
|
|
290
290
|
function getCurrentLogFileBytes(file) {
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return fs.statSync(file).size;
|
|
293
293
|
} catch {
|
|
294
294
|
return 0;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
function appendLogLine(file, line) {
|
|
298
298
|
try {
|
|
299
|
-
|
|
299
|
+
fs.appendFileSync(file, line, { encoding: "utf8" });
|
|
300
300
|
return true;
|
|
301
301
|
} catch {
|
|
302
302
|
return false;
|
|
@@ -348,14 +348,14 @@ function isRollingPath(file) {
|
|
|
348
348
|
}
|
|
349
349
|
function pruneOldRollingLogs(dir) {
|
|
350
350
|
try {
|
|
351
|
-
const entries =
|
|
351
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
352
352
|
const cutoff = Date.now() - MAX_LOG_AGE_MS;
|
|
353
353
|
for (const entry of entries) {
|
|
354
354
|
if (!entry.isFile()) continue;
|
|
355
355
|
if (!entry.name.startsWith(`${LOG_PREFIX}-`) || !entry.name.endsWith(LOG_SUFFIX)) continue;
|
|
356
356
|
const fullPath = path.join(dir, entry.name);
|
|
357
357
|
try {
|
|
358
|
-
if (
|
|
358
|
+
if (fs.statSync(fullPath).mtimeMs < cutoff) fs.rmSync(fullPath, { force: true });
|
|
359
359
|
} catch {}
|
|
360
360
|
}
|
|
361
361
|
} catch {}
|
|
@@ -436,14 +436,14 @@ function isPlainObject(value) {
|
|
|
436
436
|
//#endregion
|
|
437
437
|
//#region src/utils.ts
|
|
438
438
|
async function ensureDir(dir) {
|
|
439
|
-
await
|
|
439
|
+
await fs.promises.mkdir(dir, { recursive: true });
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
442
442
|
* Check if a file or directory exists at the given path.
|
|
443
443
|
*/
|
|
444
444
|
async function pathExists(targetPath) {
|
|
445
445
|
try {
|
|
446
|
-
await
|
|
446
|
+
await fs.promises.access(targetPath);
|
|
447
447
|
return true;
|
|
448
448
|
} catch {
|
|
449
449
|
return false;
|
|
@@ -526,7 +526,7 @@ function readLidReverseMapping(lid, opts) {
|
|
|
526
526
|
for (const dir of mappingDirs) {
|
|
527
527
|
const mappingPath = path.join(dir, mappingFilename);
|
|
528
528
|
try {
|
|
529
|
-
const data =
|
|
529
|
+
const data = fs.readFileSync(mappingPath, "utf8");
|
|
530
530
|
const phone = JSON.parse(data);
|
|
531
531
|
if (phone === null || phone === void 0) continue;
|
|
532
532
|
return normalizeE164(String(phone));
|
|
@@ -611,7 +611,7 @@ function resolveConfigDir(env = process.env, homedir = os.homedir) {
|
|
|
611
611
|
if (override) return resolveUserPath(override);
|
|
612
612
|
const newDir = path.join(resolveRequiredHomeDir(env, homedir), ".idlehands");
|
|
613
613
|
try {
|
|
614
|
-
if (
|
|
614
|
+
if (fs.existsSync(newDir)) return newDir;
|
|
615
615
|
} catch {}
|
|
616
616
|
return newDir;
|
|
617
617
|
}
|
|
@@ -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 "./reply-
|
|
4
|
+
import "./reply-AI4n5V-o.js";
|
|
5
5
|
import "./agent-scope-RA0zXRpu.js";
|
|
6
6
|
import "./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";
|
|
@@ -115,7 +115,7 @@ import "./pairing-labels-ChQJzbS9.js";
|
|
|
115
115
|
import "./server-lifecycle-B5PlrlbG.js";
|
|
116
116
|
import "./stagger-rQoQSWkz.js";
|
|
117
117
|
import "./system-run-command-qJdgzxLp.js";
|
|
118
|
-
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-
|
|
118
|
+
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-C6dFy-1o.js";
|
|
119
119
|
import { n as sendMessageWhatsApp } from "./outbound-DPTxwchq.js";
|
|
120
120
|
import { i as waitForWaConnection, t as createWaSocket } from "./session-CdnrRhb4.js";
|
|
121
121
|
import { t as loginWeb } from "./login-CfUhrgWT.js";
|