@visorcraft/idlehands 4.2.3 → 4.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-B4A5mL3Y.js → accounts-3HS_UAhJ.js} +1 -1
- package/dist/{accounts-B8cGzkjD.js → accounts-BDVs8LTu.js} +1 -1
- package/dist/{accounts-D5tB_lO0.js → accounts-CIvVRRHb.js} +1 -1
- package/dist/{accounts-CbaEMSlt.js → accounts-DLTODa_Z.js} +2 -2
- package/dist/{accounts-VbtNKne6.js → accounts-DgbTKQoW.js} +1 -1
- package/dist/{accounts-BQC_GRUB.js → accounts-Dk8mJIrQ.js} +6 -6
- package/dist/{acp-cli-BF3FD1qw.js → acp-cli-BEpWQbqb.js} +12 -12
- package/dist/{agent-scope-Bxq1eWbA.js → agent-scope-DyP_tr7s.js} +4 -4
- package/dist/{agent-scope-DbNnv10G.js → agent-scope-RA0zXRpu.js} +3 -3
- package/dist/{agent-via-gateway-BtMWCqx4.js → agent-via-gateway-Bhon8XVm.js} +7 -7
- package/dist/{agent-via-gateway-BN0HMYd7.js → agent-via-gateway-CS-8ChjV.js} +1 -1
- package/dist/{agent-via-gateway-BsTP4WyI.js → agent-via-gateway-DVTkXwmI.js} +60 -60
- package/dist/{agent-via-gateway-9aP1U_YQ.js → agent-via-gateway-Drygi4ty.js} +6 -6
- package/dist/{agents-Bitc3LDE.js → agents-dNuQ9qUa.js} +4 -4
- package/dist/{agents.config-DmFqh5v8.js → agents.config-B_6rOTVW.js} +1 -1
- package/dist/{agents.config-DLjDlH4M.js → agents.config-DCNsF8yj.js} +2 -2
- package/dist/{anton-C3Y_hYo3.js → anton-BmSsFmSP.js} +225 -41
- package/dist/{anton-Dn_Pc4P0.js → anton-Cw4-BgtA.js} +229 -45
- package/dist/{anton-CmB9XtGt.js → anton-D375-ufL.js} +226 -41
- package/dist/{anton-DqSQ27RK.js → anton-Di5VPZiI.js} +229 -44
- package/dist/{api-key-rotation-Bj8Q_8ST.js → api-key-rotation-B-FTJm5p.js} +2 -2
- package/dist/{audio-preflight-qkU2lsDn.js → audio-preflight-CW8IH1lU.js} +35 -35
- package/dist/{audio-preflight-BEe3Go6e.js → audio-preflight-Dl1TO10w.js} +41 -41
- package/dist/{audio-preflight-CSSlgO89.js → audio-preflight-vD3mDc6w.js} +4 -4
- package/dist/{audit-DjUOBxVB.js → audit-CKeZnjft.js} +21 -21
- package/dist/{auth-choice-BKDISagq.js → auth-choice-C8Tj46gd.js} +10 -10
- package/dist/{auth-choice-nFObMeHm.js → auth-choice-CYV4KLt7.js} +1 -1
- package/dist/{auth-choice-fHV4ZjtT.js → auth-choice-D12Wsf7w.js} +15 -15
- package/dist/{auth-choice.apply-helpers-fIm7h2DA.js → auth-choice.apply-helpers-CGcniL1T.js} +1 -1
- package/dist/{auth-DoNXQLDj.js → auth-heRVBxh2.js} +1 -1
- package/dist/{auth-store-Dqjgb5R1.js → auth-store-DDzIMy8_.js} +1 -1
- package/dist/{auth-store-Bb4aajHu.js → auth-store-DXT-l7fO.js} +12 -12
- package/dist/{auth-token-ChjRQYCt.js → auth-token-BJq87X3o.js} +2 -2
- package/dist/{banner-IB7Cylyq.js → banner-B7_rwm3P.js} +1 -1
- package/dist/{bindings-DorAphZu.js → bindings-B59Q7nsk.js} +2 -2
- package/dist/{bindings-CLZIJ0Eo.js → bindings-D3b5Fmc9.js} +2 -2
- package/dist/{bonjour-discovery-Yzgl5gfZ.js → bonjour-discovery-DMslm8Hx.js} +2 -2
- package/dist/{browser-cli-B8GEKR0p.js → browser-cli-Ci6DpTnS.js} +19 -19
- 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/{call-SK4sGwpN.js → call-BpWhjuOg.js} +4 -4
- package/dist/{channel-account-context-CBQ0TdW0.js → channel-account-context-CDbY5AIr.js} +1 -1
- package/dist/{channel-activity-D3e45uuU.js → channel-activity-D_TMOGQ0.js} +3 -3
- package/dist/{channel-activity-DdL3RAv_.js → channel-activity-DaCsrdWK.js} +3 -3
- package/dist/{channel-options-DcxOFxzU.js → channel-options-DTqGMcYU.js} +5 -5
- package/dist/{channel-options-B2LlZj0S.js → channel-options-Dxc1A5iC.js} +1 -1
- package/dist/{channel-selection-DLfBD-c0.js → channel-selection-ZxRkxpuF.js} +2 -2
- package/dist/{channel-web-XLD22Zzs.js → channel-web-BPlapQS3.js} +2 -2
- package/dist/{channel-web-Cu_AcYVB.js → channel-web-CgvDCMru.js} +26 -26
- package/dist/{channels-cli-DZWOS5d6.js → channels-cli-BfUIc52d.js} +7 -7
- package/dist/{channels-cli-BWMjEguK.js → channels-cli-k45uGu5k.js} +104 -104
- package/dist/{channels-status-issues-DMvYh1lV.js → channels-status-issues-CDpWjdI3.js} +1 -1
- package/dist/{chrome-Do5potHV.js → chrome-BcJB6PcM.js} +9 -9
- package/dist/{chrome-CT_a9OgI.js → chrome-DEnkfZ9p.js} +29 -29
- package/dist/{chrome-DeAzXWRb.js → chrome-VBsQfIrt.js} +4 -4
- package/dist/{chunk-Djk-9JeT.js → chunk-CMpX7Jaz.js} +1 -1
- package/dist/{chunk-DJjn34fF.js → chunk-ClMFHJu-.js} +1 -1
- package/dist/{clack-prompter-EMS8sO4h.js → clack-prompter-CvbZsmjW.js} +5 -5
- package/dist/{clawbot-cli-B8qqplom.js → clawbot-cli-uFgYrysW.js} +9 -9
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-BapK2rdH.js +162 -0
- package/dist/{cli-Bq5b8f58.js → cli-C6GCCnET.js} +2 -2
- package/dist/{client-Cagiy1nE.js → client-DtnD-ee9.js} +2 -2
- package/dist/{clipboard-BqjWohVl.js → clipboard-LsW7H0Y8.js} +1 -1
- package/dist/{command-registry-CeIfSw9l.js → command-registry-DJb9jSNL.js} +10 -10
- package/dist/{commands-5UqnjBKV.js → commands-Dj5LalLo.js} +2 -2
- package/dist/{commands-registry-C1lIoXkL.js → commands-registry-CURlRZQJ.js} +5 -5
- package/dist/{commands-registry-_TBHHpvt.js → commands-registry-j4vAzcF2.js} +5 -5
- package/dist/{completion-cli-Dh0MVQJ6.js → completion-cli-BXA0UZAn.js} +2 -2
- package/dist/{completion-cli-ClOKco1N.js → completion-cli-DqJEZMJt.js} +4 -4
- package/dist/{config-cli-BaNTuQ52.js → config-cli-97SkUuuT.js} +13 -13
- package/dist/{config-cli-CpgR8c8d.js → config-cli-BfaVUsj-.js} +1 -1
- package/dist/{config-guard-DwTygT00.js → config-guard-BdsOumqh.js} +23 -23
- package/dist/{config-validation-wUpXePGY.js → config-validation-BvKX6fPw.js} +2 -2
- package/dist/{configure-C4n13-o1.js → configure-CmTKkn3M.js} +21 -21
- package/dist/{configure-BfzLtTQH.js → configure-DpswIHZC.js} +3 -3
- package/dist/{control-ui-assets-CSrZ1shI.js → control-ui-assets-C7ZpN9hN.js} +1 -1
- package/dist/{cron-cli-Den58QGF.js → cron-cli-DQsnGQKs.js} +17 -17
- package/dist/{daemon-cli-CpCtUgS2.js → daemon-cli-DUg-s4LG.js} +14 -14
- package/dist/{daemon-install-BPEEr5XM.js → daemon-install-CYPo4M1M.js} +8 -8
- package/dist/{deliver-BqJFyWu7.js → deliver--kttnrER.js} +10 -10
- package/dist/{deliver-whAbSPLk.js → deliver-5FLCa6tB.js} +1 -1
- package/dist/{deliver-Db2xqgLg.js → deliver-BUiQ-9fE.js} +20 -20
- package/dist/{deps-BH4bzzRD.js → deps-BV_-fxNb.js} +1 -1
- package/dist/{deps-CnUuBleG.js → deps-Bc5yBM-U.js} +6 -6
- package/dist/{deps-c-x2UBbd.js → deps-CDLYb9a7.js} +1 -1
- package/dist/{deps-CjvmCq-K.js → deps-IpeS3x5O.js} +6 -6
- package/dist/{devices-cli-HTdRxjTf.js → devices-cli-DKK65S9Z.js} +12 -12
- package/dist/{diagnostic-BvlZ0Sot.js → diagnostic-4owMk4vH.js} +1 -1
- package/dist/{diagnostic-ztHDqZ1m.js → diagnostic-BECJfEvH.js} +3 -3
- package/dist/{diagnostic-BUKW2Q0G.js → diagnostic-ByHpt6q8.js} +1 -1
- package/dist/{diagnostics-C2vxSb6v.js → diagnostics-DmZbQ8Nc.js} +1 -1
- package/dist/{directory-cli-BQDn6Qin.js → directory-cli-Dz9iXeut.js} +16 -16
- package/dist/{dns-cli-lwfJKGdv.js → dns-cli-DD6hWsdc.js} +10 -10
- package/dist/{dock-ejUetwTC.js → dock-BgOmHcbh.js} +6 -6
- package/dist/{dock-DpA6CUDJ.js → dock-Y96MzKuM.js} +6 -6
- package/dist/{docs-cli-Jnv5gp25.js → docs-cli-cHkrTB2e.js} +9 -9
- package/dist/{doctor-completion-BUUL91Dy.js → doctor-completion-BkS6Phs6.js} +2 -2
- package/dist/{doctor-completion-IIzctUix.js → doctor-completion-WFEPRjgs.js} +1 -1
- package/dist/{doctor-config-flow-DcxVJJvh.js → doctor-config-flow-Ck4oCjfl.js} +13 -13
- package/dist/{emergency-stop-Bg9a1fXU.js → emergency-stop-DKLc7AmD.js} +7 -7
- package/dist/{emergency-stop-CjxNr2he.js → emergency-stop-DMTHxdvC.js} +2 -2
- package/dist/emergency-stop-Dxp2e3a9.js +113 -0
- package/dist/emergency-stop-zy54uJoE.js +162 -0
- package/dist/{enable-ztZSnOGv.js → enable-o_s6PBsC.js} +2 -2
- package/dist/entry.js +1 -1
- package/dist/{env-q-PhWbb_.js → env-B5G1qwGc.js} +1 -1
- package/dist/{env-dMo-pLSc.js → env-Bx-F45X5.js} +1 -1
- package/dist/{errors-C4SHjIZK.js → errors-C_0nm4TJ.js} +1 -1
- package/dist/{errors-BNr2qnai.js → errors-DZDuPc3M.js} +1 -1
- package/dist/{exec-B9xbr2pN.js → exec-CKHMT0tZ.js} +2 -2
- package/dist/{exec-approvals-allowlist-BzsyDGgt.js → exec-approvals-allowlist-Co2tJSEo.js} +1 -1
- package/dist/{exec-approvals-cli-2SjGVbIm.js → exec-approvals-cli-D6XUzs4j.js} +21 -21
- package/dist/{exec-safe-bin-runtime-policy-bEV0LvVh.js → exec-safe-bin-runtime-policy-DaoU9-ni.js} +2 -2
- package/dist/extensionAPI.js +7 -7
- package/dist/{fetch-guard-CcfDZXe9.js → fetch-guard-iuQsIjqN.js} +1 -1
- package/dist/{fetch-guard-C-IWepjW.js → fetch-guard-yUZu1Vzc.js} +1 -1
- package/dist/{frontmatter-pTUG4Sx_.js → frontmatter-BOudmHMS.js} +2 -2
- package/dist/{frontmatter-x0EBRtDF.js → frontmatter-D-sQ_Hqk.js} +2 -2
- package/dist/{fs-safe-2l05hI1Y.js → fs-safe-CYUaAFO9.js} +2 -2
- package/dist/{gateway-cli-Bcamqq7Z.js → gateway-cli-E6DUzxEX.js} +9 -9
- package/dist/{gateway-cli-C2jOWbsN.js → gateway-cli-FNbwxOiN.js} +123 -123
- package/dist/{gateway-rpc-C_He5poS.js → gateway-rpc-BBFG1T-M.js} +3 -3
- package/dist/{gemini-auth-DLSGffQK.js → gemini-auth-CIyaa44H.js} +2 -2
- package/dist/{github-copilot-token-BjmEQcmi.js → github-copilot-token-Dgt6cnsM.js} +7 -7
- package/dist/{gmail-setup-utils-D1VrLZhD.js → gmail-setup-utils-DRJTQOMM.js} +3 -3
- package/dist/{health-3B8ANLz5.js → health-CGW71CVV.js} +15 -15
- package/dist/{health-BTU1dGHH.js → health-D60h_a2w.js} +1 -1
- package/dist/{health-format-CWIquyOr.js → health-format-Ba_hOaT2.js} +1 -1
- package/dist/{help-format-D7QsjOW4.js → help-format-CMAqOikG.js} +1 -1
- package/dist/{hooks-cli-BOc85-37.js → hooks-cli-BnVSeWIo.js} +3 -3
- package/dist/{hooks-cli-CdEcbqPF.js → hooks-cli-DaWPRdgZ.js} +93 -93
- package/dist/{hooks-status-BBvzI_rQ.js → hooks-status-DNGo2G8Q.js} +3 -3
- package/dist/{image-BAsQlUqT.js → image-C_aN5P6-.js} +1 -1
- package/dist/{image-Dlu13Ebx.js → image-D8b_rlQC.js} +6 -6
- package/dist/{image-BkrcRFPe.js → image-DSDEbSiO.js} +7 -7
- package/dist/{image-ops-CGnAhRRV.js → image-ops-BU-VdLZu.js} +1 -1
- package/dist/{image-ops-J8P5zOFm.js → image-ops-D1KtygWz.js} +1 -1
- package/dist/index.js +99 -99
- package/dist/{inspect-BOW-hTlT.js → inspect-ISQZuNM5.js} +1 -1
- package/dist/{installs-DGfrRYWX.js → installs-CNubze2L.js} +4 -4
- package/dist/{ir-BT5aAdU9.js → ir-B7IBoKLy.js} +5 -5
- package/dist/{ir-DBqjL1SG.js → ir-VncGpwA1.js} +4 -4
- package/dist/{lifecycle-core-DOL5vqsF.js → lifecycle-core-B6UoqYTJ.js} +5 -5
- package/dist/{links-DIG3qrf5.js → links-15764jZB.js} +1 -1
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{local-roots-d4y0lvs2.js → local-roots-KN4Hp1yZ.js} +5 -5
- package/dist/{local-roots-B-lmQdZs.js → local-roots-q0xbefkf.js} +4 -4
- package/dist/{logging-BK2fjjMe.js → logging-B0-9lotb.js} +1 -1
- package/dist/{login-C2X0In6m.js → login-CFr5vJmR.js} +6 -6
- package/dist/{login-BVf_DBja.js → login-CfUhrgWT.js} +6 -6
- package/dist/{login-qr-C17PY0rr.js → login-qr-CFFFOjOl.js} +11 -11
- package/dist/{login-qr-V1EwcFLt.js → login-qr-DBMsUxgL.js} +10 -10
- package/dist/{logs-cli-BgrYblUE.js → logs-cli-4VQ9Iwiw.js} +13 -13
- package/dist/{manager-CgzA1hKo.js → manager-BE_76jWB.js} +15 -15
- package/dist/{manager-DayGME0K.js → manager-BMAFgXyU.js} +10 -10
- package/dist/{manifest-registry-cOeAg4W6.js → manifest-registry-Bak1x76G.js} +2 -2
- package/dist/{markdown-tables-R8VTpfE9.js → markdown-tables-CzsockiZ.js} +1 -1
- package/dist/{markdown-tables-BQ8czvs_.js → markdown-tables-DZClqsNo.js} +1 -1
- package/dist/{memory-cli-D_bFq_Q1.js → memory-cli-CUGwnVIY.js} +12 -12
- package/dist/{message-channel-ZdI1-uUh.js → message-channel-C8QtrwEU.js} +1 -1
- package/dist/{message-channel-CRSTffWx.js → message-channel-DVauVtrg.js} +1 -1
- package/dist/{model-Di6JkHyx.js → model-C-icShH2.js} +2 -2
- package/dist/{model-catalog-D_KsCB5j.js → model-catalog-D9no0CH2.js} +4 -4
- package/dist/{model-picker-CM_QFlL4.js → model-picker-BkXoTOiA.js} +4 -4
- package/dist/{model-selection-Df4-bBn3.js → model-selection-0dGxYGp8.js} +12 -12
- package/dist/{model-selection-C5hI1dum.js → model-selection-1MMYqY6M.js} +41 -41
- package/dist/{models-CIS_OcjC.js → models-C1ouQF8k.js} +2 -2
- package/dist/{models-cli-6njz6jJl.js → models-cli-BhFUh61j.js} +4 -4
- package/dist/{models-cli-BS7pagh1.js → models-cli-CxEFLoMt.js} +98 -98
- package/dist/{models-config-zq6L0fug.js → models-config-C5A1wDWh.js} +2 -2
- package/dist/{node-cli-PVcj1bnA.js → node-cli-BYzjxmUY.js} +33 -33
- package/dist/{node-service-IG3YtMJq.js → node-service-C3vyxHLA.js} +1 -1
- package/dist/{nodes-cli-DKj4NkKf.js → nodes-cli-kNOtp0U0.js} +21 -21
- package/dist/{nodes-screen-CK0vmyQx.js → nodes-screen-CcpPaFxa.js} +1 -1
- package/dist/{note--5AAjfvH.js → note-69EfBEU-.js} +2 -2
- package/dist/{npm-registry-spec-B81IsQOs.js → npm-registry-spec-BCbbfIhX.js} +2 -2
- package/dist/{npm-resolution-CkpVYF4z.js → npm-resolution-D30nzRfu.js} +4 -4
- package/dist/{npm-resolution-DWXTcpqo.js → npm-resolution-Ds0qg1EX.js} +1 -1
- package/dist/{onboard-BYOBc47n.js → onboard-Cv6q6Usf.js} +9 -9
- package/dist/{onboard-b_mYsSas.js → onboard-NcA_odSQ.js} +2 -2
- package/dist/{onboard-channels-sslbndju.js → onboard-channels-C1E5DpTR.js} +17 -17
- package/dist/{onboard-channels-CzB1oDsu.js → onboard-channels-bfoS7x6P.js} +1 -1
- package/dist/{onboard-custom-C_4nk_e8.js → onboard-custom-DUbzMMu7.js} +4 -4
- package/dist/{onboard-helpers-CXjQtadC.js → onboard-helpers-mzy38DiC.js} +7 -7
- package/dist/{onboard-hooks-CuOJrgfu.js → onboard-hooks-D9teGxfH.js} +7 -7
- package/dist/{onboard-remote-B-bN7EmV.js → onboard-remote-LCBHijVE.js} +3 -3
- package/dist/{onboard-skills-BVmcgCzz.js → onboard-skills-jFY9gaOu.js} +4 -4
- package/dist/{onboarding-qxSl79A_.js → onboarding-CX8a934a.js} +16 -16
- package/dist/{onboarding-BfDz8n6H.js → onboarding-CpGBbVTj.js} +3 -3
- package/dist/{onboarding.finalize-DeEXxkOU.js → onboarding.finalize-BnKQeFN8.js} +7 -7
- package/dist/{onboarding.finalize-DGZkcjrv.js → onboarding.finalize-CRgpFQIz.js} +99 -99
- package/dist/{onboarding.gateway-config-BinQe57V.js → onboarding.gateway-config-Btu2gzgr.js} +21 -21
- package/dist/{openai-model-default-CK1wUY3u.js → openai-model-default-7J6cw1rA.js} +2 -2
- package/dist/{outbound-CdY_AskB.js → outbound-BNh6PpQb.js} +6 -6
- package/dist/{outbound-DClHNQfl.js → outbound-DPTxwchq.js} +6 -6
- package/dist/{outbound-attachment-IfeZJAKk.js → outbound-attachment-3I6GzwDe.js} +2 -2
- package/dist/{outbound-attachment-Cz80loTd.js → outbound-attachment-Bot3bRnK.js} +2 -2
- package/dist/{pairing-cli-By_hykOY.js → pairing-cli-jwx6hMsM.js} +15 -15
- package/dist/{pairing-labels-Dm-DUGGI.js → pairing-labels-ChQJzbS9.js} +1 -1
- package/dist/{pairing-store-CPUUuW7M.js → pairing-store-CPpEEQJO.js} +3 -3
- package/dist/{path-alias-guards-BZmt6hFb.js → path-alias-guards-Cu1nXNMM.js} +1 -1
- package/dist/{path-env-CWIJihhd.js → path-env-CKSLQUS1.js} +1 -1
- package/dist/{paths-CBF9EBzh.js → paths-B-CLQ5RT.js} +1 -1
- package/dist/{paths-DQpv9a3Q.js → paths-BYNVLNi_.js} +5 -5
- package/dist/{paths-D3p7ZvM6.js → paths-D_qUel1T.js} +3 -3
- package/dist/{pi-embedded-E9CG0AZO.js → pi-embedded-0YMQWOc5.js} +32 -28
- package/dist/{pi-embedded-xW12sr9Q.js → pi-embedded-BO8wzB4O.js} +185 -181
- package/dist/{pi-embedded-helpers-D675DgwP.js → pi-embedded-helpers-BCsfqpDt.js} +4 -4
- package/dist/{pi-embedded-helpers-Ct2rwp-P.js → pi-embedded-helpers-C2j0LfJC.js} +4 -4
- package/dist/{pi-embedded-helpers-B3ceCcxm.js → pi-embedded-helpers-CghCLoPo.js} +24 -24
- package/dist/{pi-model-discovery-BEKzIGSg.js → pi-model-discovery-BIP3RjXl.js} +1 -1
- package/dist/{pi-model-discovery-Dlx4RLWo.js → pi-model-discovery-Bb__OY-j.js} +7 -7
- package/dist/{pi-tools.policy-GzRj_NVc.js → pi-tools.policy-DfITIKZj.js} +6 -6
- package/dist/{plugin-auto-enable-CU8IfpBV.js → plugin-auto-enable-7DUxMy6A.js} +5 -5
- package/dist/{plugin-registry-CY1u8bd9.js → plugin-registry-Cp2q0pVP.js} +1 -1
- package/dist/{plugin-registry-CJfl54B-.js → plugin-registry-DceNUcJc.js} +4 -4
- package/dist/plugin-sdk/{agent-via-gateway-NXyTgftN.js → agent-via-gateway-MuDsrNW6.js} +2 -2
- package/dist/plugin-sdk/{anton-8LTiJnvw.js → anton-CkJKOeKT.js} +225 -41
- package/dist/plugin-sdk/{channel-web-DEl6BZu6.js → channel-web-B6pGyJpM.js} +2 -2
- package/dist/plugin-sdk/commands/anton.d.ts +28 -4
- package/dist/plugin-sdk/{deps-CdRm6UCM.js → deps-FuyQakmK.js} +1 -1
- package/dist/plugin-sdk/{emergency-stop-vr_MLBH0.js → emergency-stop-Ci4JC4dU.js} +2 -2
- package/dist/plugin-sdk/index.js +3 -3
- package/dist/plugin-sdk/{reply-Cii_-apO.js → reply-BTVimsoK.js} +17 -13
- package/dist/plugin-sdk/{web-BrcYG4Cd.js → web-HiiN5NkP.js} +3 -3
- package/dist/{plugins-DYr-HHj0.js → plugins-CRB60mCJ.js} +10 -10
- package/dist/{plugins-Bj6rzE-9.js → plugins-D46VZh7u.js} +5 -5
- package/dist/{plugins-cli-BsCu9ZxX.js → plugins-cli-2wK7R85Y.js} +3 -3
- package/dist/{plugins-cli-rEURRyag.js → plugins-cli-BaQt7jqk.js} +95 -95
- package/dist/{ports-D3FuSfMU.js → ports-B2o0FSFD.js} +2 -2
- package/dist/{ports-BJ6Xu_G6.js → ports-SQy1d-RL.js} +3 -3
- package/dist/{program-CtFnQFId.js → program-CbwFv75G.js} +8 -8
- package/dist/{program-context-BsCSqznM.js → program-context-Ck-chzM_.js} +43 -43
- package/dist/{progress-BN8aygvh.js → progress-BQLz1r3L.js} +1 -1
- package/dist/{prompt-select-styled-BKPmN1HP.js → prompt-select-styled-DJ5ONfKl.js} +4 -4
- package/dist/{prompt-select-styled-BB8mtFS9.js → prompt-select-styled-DigZiJWM.js} +35 -35
- package/dist/{prompt-style-BRwf6dfp.js → prompt-style-kmKiCZnm.js} +1 -1
- package/dist/{provider-auth-helpers-ar7t02s1.js → provider-auth-helpers-Ci_EGvif.js} +7 -7
- package/dist/{provider-auth-helpers-486CLY6U.js → provider-auth-helpers-DGTDTeE5.js} +1 -1
- package/dist/{push-apns-AHniql5u.js → push-apns-BSYjGCn9.js} +5 -5
- package/dist/{push-apns-CJJ-O5fL.js → push-apns-Dz4hOY07.js} +1 -1
- package/dist/{pw-ai-DRVoaq_u.js → pw-ai-7i9eGnLh.js} +13 -13
- package/dist/{pw-ai-DIV4PcIo.js → pw-ai-CfYaR1K2.js} +13 -13
- package/dist/{pw-ai-yrIWfcWX.js → pw-ai-DjmrIQle.js} +1 -1
- package/dist/{qmd-manager-SkIM31ge.js → qmd-manager-B-qeywfQ.js} +6 -6
- package/dist/{qmd-manager-BRvg3Rx2.js → qmd-manager-B_GgyQQ0.js} +8 -8
- package/dist/{qr-cli-BsFvbHQy.js → qr-cli-CSt5ihwG.js} +4 -4
- package/dist/{query-expansion-BIsWftgR.js → query-expansion-Clts_AGz.js} +2 -2
- package/dist/{query-expansion-DHuNyU-_.js → query-expansion-DEq020GG.js} +5 -5
- package/dist/{redact-CIBM9Zli.js → redact-B_4KNlXs.js} +1 -1
- package/dist/{redact-1Y0KPNtr.js → redact-Bvpf-ATQ.js} +1 -1
- package/dist/{redact-snapshot-DQ_VN7gO.js → redact-snapshot-BbEVKv0k.js} +2 -2
- package/dist/{register.agent-DswuLYd8.js → register.agent-BZh3UWw3.js} +9 -9
- package/dist/{register.agent-TMXz7bwT.js → register.agent-CTPc2Q9m.js} +110 -110
- package/dist/{register.configure-BFWnHArB.js → register.configure-BzTxX7SG.js} +8 -8
- package/dist/register.configure-vVDARCph.js +168 -0
- package/dist/{register.maintenance-Dj8A9Hj7.js → register.maintenance-BNHEV-po.js} +9 -9
- package/dist/{register.maintenance-C2B-RPnI.js → register.maintenance-DTXn32on.js} +108 -108
- package/dist/{register.message-DWm_Lizi.js → register.message-BYWAEsKP.js} +3 -3
- package/dist/{register.message-CR569hCK.js → register.message-CHf51taw.js} +90 -90
- package/dist/{register.onboard-CBlF61-5.js → register.onboard-CxwDhXRS.js} +29 -29
- package/dist/{register.onboard-BjMv8Rc2.js → register.onboard-vruDRZdG.js} +2 -2
- package/dist/{register.orchestrator-anton-Cvw__ptb.js → register.orchestrator-anton-GSAFxzGa.js} +2 -2
- package/dist/{register.orchestrator-anton-CehFZHyG.js → register.orchestrator-anton-qBr2ZYrk.js} +7 -7
- package/dist/{register.setup-B8TX05TM.js → register.setup-B0zmlTXV.js} +2 -2
- package/dist/{register.setup-BrXOX1jn.js → register.setup-DlFQIXoR.js} +31 -31
- package/dist/{register.status-health-sessions-DexyefSU.js → register.status-health-sessions-16paRP9f.js} +101 -101
- package/dist/{register.status-health-sessions-C-3gl9qR.js → register.status-health-sessions-CtXhn9Dq.js} +4 -4
- package/dist/{register.subclis-CFcZU6Sc.js → register.subclis-lskGgus9.js} +9 -9
- package/dist/{replies-CWMglpIw.js → replies-6_GxvQYe.js} +3 -3
- package/dist/{replies-2C16fnBP.js → replies-hSFVxL4h.js} +3 -3
- package/dist/{reply-dLJYULbb.js → reply-DfRr_KdS.js} +120 -116
- package/dist/{reply-prefix-CXLm7TNq.js → reply-prefix-BUgeSN2R.js} +1 -1
- package/dist/{reply-prefix-DCljZiIB.js → reply-prefix-C3y4zpTl.js} +1 -1
- package/dist/{resolve-route-BrHTn_2g.js → resolve-route-D_AbcmD6.js} +4 -4
- package/dist/{resolve-route-ClcifpKn.js → resolve-route-DuttYY7A.js} +4 -4
- package/dist/{retry-CG6cMRDQ.js → retry-BeB9WenR.js} +1 -1
- package/dist/{retry-B7zUL1Mv.js → retry-Db05aSB8.js} +1 -1
- package/dist/{rpc-Dp_JZNAZ.js → rpc-Cf9OK5Yk.js} +3 -3
- package/dist/{run-main-xc_0T201.js → run-main-Bj-8MZGb.js} +15 -15
- package/dist/{runner-Bv_BA3vd.js → runner-CZW_eyf2.js} +1 -1
- package/dist/{runner-p3KLBBEt.js → runner-DzszLzI4.js} +11 -11
- package/dist/{runner-BkCU-kqs.js → runner-PgRFPYUj.js} +11 -11
- package/dist/{runtime-DELkrqga.js → runtime-XmXLaHNk.js} +3 -3
- package/dist/{sandbox-cEpEHVD-.js → sandbox-DcUw5h3p.js} +8 -8
- package/dist/{sandbox-cli-B7kOJiLh.js → sandbox-cli-DGvJ7Eeq.js} +32 -32
- package/dist/{secrets-cli-COGPFjdu.js → secrets-cli-CR3h2TBy.js} +14 -14
- package/dist/{security-cli-Db4ZYVER.js → security-cli-B9_LV2po.js} +42 -42
- package/dist/{send-DA-ryUJS.js → send--lzpNy4f.js} +14 -14
- package/dist/{send-DZa8fWSm.js → send-BeIZJuy4.js} +7 -7
- package/dist/{send-Y1hD4tQ1.js → send-C1hvd3bt.js} +6 -6
- package/dist/{send-D_ARyjSf.js → send-C4v0Leny.js} +6 -6
- package/dist/{send-BOxJ4QXF.js → send-D4bMycQu.js} +7 -7
- package/dist/{send-D-UmmCCj.js → send-DQiw_nGD.js} +7 -7
- package/dist/{send-FLdrx-oF.js → send-Dfa3sn6r.js} +24 -24
- package/dist/{send-IlPMLAH-.js → send-DmLC7aEF.js} +10 -10
- package/dist/{send-DnscWRVE.js → send-DuwdEkLw.js} +7 -7
- package/dist/{send-BhbOA8rP.js → send-DwdHiC7_.js} +10 -10
- package/dist/{server-DLOBjQtf.js → server-D6MltJIF.js} +21 -21
- package/dist/{server-context-CvZnSu9L.js → server-context-DI0W_H7R.js} +11 -11
- package/dist/{server-lifecycle-CfZbDiFe.js → server-lifecycle-B5PlrlbG.js} +2 -2
- package/dist/{server-node-events-CgSZVd8M.js → server-node-events-B_LUFrA_.js} +89 -89
- package/dist/{server-node-events-Dj5jYSln.js → server-node-events-Benu2lR2.js} +3 -3
- package/dist/{service-fKr0VnMd.js → service-C8NMS3m_.js} +1 -1
- package/dist/{session-BKdoiopW.js → session-CdnrRhb4.js} +2 -2
- package/dist/{session-nUPBXeEa.js → session-F_YDS_1V.js} +7 -7
- package/dist/{sessions-DRA4oaxz.js → sessions-3ioSeOA1.js} +41 -41
- package/dist/{sessions-uS8Ko6pU.js → sessions-BtPXimXQ.js} +6 -6
- package/dist/{shared-Cvf3nhuq.js → shared-CpDPo3hJ.js} +2 -2
- package/dist/{shared-pSfUCPxh.js → shared-DpLSpJIl.js} +1 -1
- package/dist/{skill-commands-BY4BNcfR.js → skill-commands-BFzmZAfo.js} +6 -6
- package/dist/{skill-commands-BHTBXXVn.js → skill-commands-Ck3flWX7.js} +9 -9
- package/dist/{skill-scanner-BFXxq_hZ.js → skill-scanner-D7mzXRXd.js} +1 -1
- package/dist/{skills-umlGvChF.js → skills-CnAPWfca.js} +22 -22
- package/dist/{skills-DuPZzvnK.js → skills-DlvDyK8L.js} +4 -4
- package/dist/{skills-cli-wSg-syqz.js → skills-cli-BhKGhjbO.js} +10 -10
- package/dist/{skills-install-CQihNd2n.js → skills-install-tr6wRWZj.js} +6 -6
- package/dist/{skills-status-D7aU-6Ob.js → skills-status-qjQ8XP0h.js} +4 -4
- package/dist/{status-CV7OIIGl.js → status-DxcdgCyX.js} +2 -2
- package/dist/{status-Bp-x4GJi.js → status-DzCllHYZ.js} +24 -24
- package/dist/{status.update-Cri65g-V.js → status.update-CTi6vuWj.js} +1 -1
- package/dist/{store-D-ZicQeo.js → store-CvMgrKWx.js} +2 -2
- package/dist/{store-CR1Ag5tw.js → store-kH9wHHbO.js} +2 -2
- package/dist/{subagent-registry-CJX_DOgh.js → subagent-registry-BcpHnckA.js} +17 -13
- package/dist/{subsystem-BTkYq-SM.js → subsystem-CGZX2PBV.js} +1 -1
- package/dist/{subsystem-D7ZepYT1.js → subsystem-tzu-rIAJ.js} +1 -1
- package/dist/{system-cli-DSF87U3I.js → system-cli-DyVZ5udc.js} +13 -13
- package/dist/{system-run-approval-context-DtT5msEN.js → system-run-approval-context-CISBXlNw.js} +1 -1
- package/dist/{system-run-command-CrHlKsQv.js → system-run-command-qJdgzxLp.js} +1 -1
- package/dist/{systemd-C9CCJ2y5.js → systemd-CaCR5CyM.js} +2 -2
- package/dist/{systemd-hints-D4_AmIA0.js → systemd-hints-DHu-HVFx.js} +2 -2
- package/dist/{systemd-linger-BRBtRm6O.js → systemd-linger-B7XlUHk_.js} +2 -2
- package/dist/{table-PG064F0C.js → table-B9AmL3M1.js} +2 -2
- package/dist/{tables-Co_R_WKs.js → tables-5k-zOZ-s.js} +1 -1
- package/dist/{tables-Ca5i1iM6.js → tables-g9xkflht.js} +1 -1
- package/dist/{tailscale-Dr3FvwTm.js → tailscale-B5Irc_Bi.js} +2 -2
- package/dist/{target-errors-B1mcM4WR.js → target-errors-BPfQrPim.js} +2 -2
- package/dist/{target-errors-BhRMVh6a.js → target-errors-bLIVFsbF.js} +2 -2
- package/dist/{tokens-DY5TC4xI.js → tokens-BRLyURxW.js} +1 -1
- package/dist/{tokens-DGajj8M9.js → tokens-Dg-QZ_pN.js} +1 -1
- package/dist/{tool-display-1HTlk4mF.js → tool-display-Dac7lHGW.js} +2 -2
- package/dist/{tool-images-Duuqr4bN.js → tool-images-CHqepyF_.js} +2 -2
- package/dist/{tool-images-ByP8vQ_u.js → tool-images-CcGZpzmq.js} +2 -2
- package/dist/{tool-loop-detection-CjWRg_4q.js → tool-loop-detection-BNGetx3Z.js} +3 -3
- package/dist/{tool-loop-detection-BxLycal4.js → tool-loop-detection-C5VjmhPJ.js} +2 -2
- package/dist/{trash-CHnKIQrP.js → trash-CUFiyQN5.js} +1 -1
- package/dist/{tui-BmvrLAnW.js → tui-Bne3YNiw.js} +9 -9
- package/dist/{tui-cli-Dm28GC4T.js → tui-cli-D0Z-rcUe.js} +39 -39
- package/dist/{update-D96LyJ5s.js → update-D79ppbMQ.js} +3 -3
- package/dist/{update-cli-Crq7aGUA.js → update-cli-B53rJqAV.js} +115 -115
- package/dist/{update-cli-z5fJRDU4.js → update-cli-CTETjvrF.js} +9 -9
- package/dist/{update-runner-BkSrWsKc.js → update-runner-BGAdvd0c.js} +1 -1
- package/dist/{update-runner-BLquhnrL.js → update-runner-BOGIWX18.js} +5 -5
- package/dist/{utils-D9wGoiU9.js → utils-CTFLl_ji.js} +18 -18
- package/dist/{utils-BfmeFj7S.js → utils-CXzXXV2o.js} +2 -2
- package/dist/{web-B267OUXc.js → web-3nv8mK11.js} +3 -3
- package/dist/{web-BKSxBqZw.js → web-C7HXffph.js} +8 -8
- package/dist/web-CqOVupWI.js +123 -0
- package/dist/{web-CNowaS6B.js → web-Dwj9igbL.js} +66 -66
- package/dist/{webhooks-cli-DLVMYO3R.js → webhooks-cli-2N03q0iY.js} +11 -11
- package/dist/{whatsapp-actions-De803Fwb.js → whatsapp-actions-Cms8wQM1.js} +22 -22
- package/dist/{whatsapp-actions-BJ6kVDXi.js → whatsapp-actions-DbPcN6JQ.js} +25 -25
- package/dist/{widearea-dns-DJVz6r4U.js → widearea-dns-FDdFH5E8.js} +1 -1
- package/dist/{with-timeout-Bz8F3xNq.js → with-timeout-DEdycYxq.js} +5 -5
- package/dist/{workspace-BHN1rb4L.js → workspace-D3pARwoB.js} +3 -3
- package/dist/{workspace-tAtkoD_r.js → workspace-DBFSzT6O.js} +18 -18
- package/dist/{workspace-dirs-C34pt6Pa.js → workspace-dirs-SsExQ3Bz.js} +1 -1
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/hand/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +4 -1
- package/dist/cli-BN8I3vTa.js +0 -162
- package/dist/emergency-stop-Chw8LiXP.js +0 -113
- package/dist/emergency-stop-HaFAEk9Z.js +0 -162
- package/dist/register.configure-DlxSU46q.js +0 -168
- package/dist/web-BKs38Jg4.js +0 -123
|
@@ -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 { A as createOutboundSendDeps, An as requestHeartbeatNow, E as agentCommand, En as enqueueSystemEvent, bn as buildOutboundSessionContext, ht as resolveOutboundTarget } from "./subagent-registry-
|
|
28
|
+
import { A as createOutboundSendDeps, An as requestHeartbeatNow, E as agentCommand, En as enqueueSystemEvent, bn as buildOutboundSessionContext, ht as resolveOutboundTarget } from "./subagent-registry-BcpHnckA.js";
|
|
29
29
|
import "./paths-CC17i2eK.js";
|
|
30
30
|
import "./chat-envelope-Dedaetiq.js";
|
|
31
31
|
import "./client-udFMSDes.js";
|
|
@@ -108,11 +108,11 @@ 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-BV_-fxNb.js";
|
|
112
112
|
import "./onboard-helpers-DWivfzcc.js";
|
|
113
113
|
import "./prompt-style-XmK49QYK.js";
|
|
114
114
|
import "./pairing-labels-D7xcHkxi.js";
|
|
115
|
-
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-
|
|
115
|
+
import { c as parseMessageWithAttachments, l as formatForLog, r as registerApnsToken, s as normalizeRpcAttachmentsToChatAttachments } from "./push-apns-Dz4hOY07.js";
|
|
116
116
|
import { randomUUID } from "node:crypto";
|
|
117
117
|
|
|
118
118
|
//#region src/gateway/server-node-events.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as resolveGatewayServiceDescription, l as resolveGatewayLaunchAgentLabel, m as resolveLegacyGatewayLaunchAgentLabels, p as resolveGatewayWindowsTaskName, t as GATEWAY_LAUNCH_AGENT_LABEL } from "./constants-Z_TnY4pX.js";
|
|
2
|
-
import { _ as formatLine, a as readSystemdServiceRuntime, b as execFileUtf8, c as stopSystemdService, g as resolveHomeDir, h as resolveGatewayStateDir, i as readSystemdServiceExecStart, m as parseKeyValueOutput, n as isSystemdServiceEnabled, p as splitArgsPreservingQuotes, s as restartSystemdService, t as installSystemdService, u as uninstallSystemdService, v as toPosixPath, y as writeFormattedLines } from "./systemd-
|
|
2
|
+
import { _ as formatLine, a as readSystemdServiceRuntime, b as execFileUtf8, c as stopSystemdService, g as resolveHomeDir, h as resolveGatewayStateDir, i as readSystemdServiceExecStart, m as parseKeyValueOutput, n as isSystemdServiceEnabled, p as splitArgsPreservingQuotes, s as restartSystemdService, t as installSystemdService, u as uninstallSystemdService, v as toPosixPath, y as writeFormattedLines } from "./systemd-CaCR5CyM.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as toPinoLikeLogger, I as success, O as danger, V as getChildLogger, c as ensureDir, y as resolveUserPath } from "./utils-
|
|
1
|
+
import { G as toPinoLikeLogger, I as success, O as danger, V as getChildLogger, c as ensureDir, y as resolveUserPath } from "./utils-CXzXXV2o.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-DInZLuZ8.js";
|
|
3
3
|
import { r as VERSION } from "./env-vars-sTMVGyld.js";
|
|
4
|
-
import { c as readCredsJsonRaw, d as resolveWebCredsBackupPath, f as resolveWebCredsPath, o as maybeRestoreCredsFromBackup, u as resolveDefaultWebAuthDir } from "./auth-store-
|
|
4
|
+
import { c as readCredsJsonRaw, d as resolveWebCredsBackupPath, f as resolveWebCredsPath, o as maybeRestoreCredsFromBackup, u as resolveDefaultWebAuthDir } from "./auth-store-DDzIMy8_.js";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as getChildLogger, a as ensureDir, h as resolveUserPath, j as success, w as danger, z as toPinoLikeLogger } from "./utils-
|
|
2
|
-
import { tn as VERSION } from "./model-selection-
|
|
1
|
+
import { I as getChildLogger, a as ensureDir, h as resolveUserPath, j as success, w as danger, z as toPinoLikeLogger } from "./utils-CTFLl_ji.js";
|
|
2
|
+
import { tn as VERSION } from "./model-selection-1MMYqY6M.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-BAxx4PW5.js";
|
|
4
|
-
import { c as readCredsJsonRaw, d as resolveWebCredsBackupPath, f as resolveWebCredsPath, o as maybeRestoreCredsFromBackup, u as resolveDefaultWebAuthDir } from "./auth-store-
|
|
5
|
-
import
|
|
4
|
+
import { c as readCredsJsonRaw, d as resolveWebCredsBackupPath, f as resolveWebCredsPath, o as maybeRestoreCredsFromBackup, u as resolveDefaultWebAuthDir } from "./auth-store-DXT-l7fO.js";
|
|
5
|
+
import syncFs from "node:fs";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
8
8
|
import qrcode from "qrcode-terminal";
|
|
@@ -21,16 +21,16 @@ async function safeSaveCreds(authDir, saveCreds, logger) {
|
|
|
21
21
|
const raw = readCredsJsonRaw(credsPath);
|
|
22
22
|
if (raw) try {
|
|
23
23
|
JSON.parse(raw);
|
|
24
|
-
|
|
24
|
+
syncFs.copyFileSync(credsPath, backupPath);
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
syncFs.chmodSync(backupPath, 384);
|
|
27
27
|
} catch {}
|
|
28
28
|
} catch {}
|
|
29
29
|
} catch {}
|
|
30
30
|
try {
|
|
31
31
|
await Promise.resolve(saveCreds());
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
syncFs.chmodSync(resolveWebCredsPath(authDir), 384);
|
|
34
34
|
} catch {}
|
|
35
35
|
} catch (err) {
|
|
36
36
|
logger.warn({ error: String(err) }, "failed saving WhatsApp creds");
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { m as resolveRequiredHomeDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { d as normalizeE164 } from "./utils-
|
|
2
|
+
import { m as resolveRequiredHomeDir } from "./paths-BYNVLNi_.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
|
|
4
|
+
import { d as normalizeE164 } from "./utils-CTFLl_ji.js";
|
|
5
5
|
import { c as normalizeMainKey, l as resolveAgentIdFromSessionKey, m as normalizeOptionalAccountId, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-CuLPSMu_.js";
|
|
6
|
-
import { R as loadConfig, et as parseDurationMs, mn as isPidAlive, pn as resolveProcessScopedMap, tt as parseByteSize } from "./model-selection-
|
|
7
|
-
import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-
|
|
8
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
6
|
+
import { R as loadConfig, et as parseDurationMs, mn as isPidAlive, pn as resolveProcessScopedMap, tt as parseByteSize } from "./model-selection-1MMYqY6M.js";
|
|
7
|
+
import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-BgOmHcbh.js";
|
|
8
|
+
import { r as normalizeChannelId } from "./plugins-CRB60mCJ.js";
|
|
9
9
|
import { t as normalizeChatType } from "./chat-type-BPBtOjer.js";
|
|
10
|
-
import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-
|
|
10
|
+
import { o as listDeliverableMessageChannels, s as normalizeMessageChannel } from "./message-channel-C8QtrwEU.js";
|
|
11
11
|
import { n as resolveConversationLabel } from "./conversation-label-1Wad2kXc.js";
|
|
12
|
-
import { a as resolveSessionFilePathOptions, c as resolveSessionTranscriptsDir, d as validateSessionId, i as resolveSessionFilePath, l as resolveSessionTranscriptsDirForAgent, o as resolveSessionTranscriptPath, r as resolveDefaultSessionStorePath, s as resolveSessionTranscriptPathInDir, t as SAFE_SESSION_ID_RE, u as resolveStorePath } from "./paths-
|
|
12
|
+
import { a as resolveSessionFilePathOptions, c as resolveSessionTranscriptsDir, d as validateSessionId, i as resolveSessionFilePath, l as resolveSessionTranscriptsDirForAgent, o as resolveSessionTranscriptPath, r as resolveDefaultSessionStorePath, s as resolveSessionTranscriptPathInDir, t as SAFE_SESSION_ID_RE, u as resolveStorePath } from "./paths-D_qUel1T.js";
|
|
13
13
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-_OimdA_2.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
17
|
-
import
|
|
17
|
+
import syncFs from "node:fs";
|
|
18
18
|
import crypto from "node:crypto";
|
|
19
19
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
20
20
|
|
|
@@ -100,7 +100,7 @@ function releaseAllLocksSync() {
|
|
|
100
100
|
if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
|
|
101
101
|
} catch {}
|
|
102
102
|
try {
|
|
103
|
-
|
|
103
|
+
syncFs.rmSync(held.lockPath, { force: true });
|
|
104
104
|
} catch {}
|
|
105
105
|
HELD_LOCKS.delete(sessionFile);
|
|
106
106
|
}
|
|
@@ -876,14 +876,14 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
|
|
|
876
876
|
function canonicalizePathForComparison$1(filePath) {
|
|
877
877
|
const resolved = path.resolve(filePath);
|
|
878
878
|
try {
|
|
879
|
-
return
|
|
879
|
+
return syncFs.realpathSync(resolved);
|
|
880
880
|
} catch {
|
|
881
881
|
return resolved;
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
function archiveFileOnDisk(filePath, reason) {
|
|
885
885
|
const archived = `${filePath}.${reason}.${formatSessionArchiveTimestamp()}`;
|
|
886
|
-
|
|
886
|
+
syncFs.renameSync(filePath, archived);
|
|
887
887
|
return archived;
|
|
888
888
|
}
|
|
889
889
|
/**
|
|
@@ -899,7 +899,7 @@ function archiveSessionTranscripts(opts) {
|
|
|
899
899
|
const relative = path.relative(storeDir, candidatePath);
|
|
900
900
|
if (!relative || relative.startsWith("..") || path.isAbsolute(relative)) continue;
|
|
901
901
|
}
|
|
902
|
-
if (!
|
|
902
|
+
if (!syncFs.existsSync(candidatePath)) continue;
|
|
903
903
|
try {
|
|
904
904
|
archived.push(archiveFileOnDisk(candidatePath, opts.reason));
|
|
905
905
|
} catch {}
|
|
@@ -917,15 +917,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
|
|
|
917
917
|
let removed = 0;
|
|
918
918
|
let scanned = 0;
|
|
919
919
|
for (const dir of directories) {
|
|
920
|
-
const entries = await
|
|
920
|
+
const entries = await syncFs.promises.readdir(dir).catch(() => []);
|
|
921
921
|
for (const entry of entries) {
|
|
922
922
|
const timestamp = parseSessionArchiveTimestamp(entry, reason);
|
|
923
923
|
if (timestamp == null) continue;
|
|
924
924
|
scanned += 1;
|
|
925
925
|
if (now - timestamp <= opts.olderThanMs) continue;
|
|
926
926
|
const fullPath = path.join(dir, entry);
|
|
927
|
-
if (!(await
|
|
928
|
-
await
|
|
927
|
+
if (!(await syncFs.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
|
|
928
|
+
await syncFs.promises.rm(fullPath).catch(() => void 0);
|
|
929
929
|
removed += 1;
|
|
930
930
|
}
|
|
931
931
|
}
|
|
@@ -1061,7 +1061,7 @@ function isCacheEnabled(ttlMs) {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
function getFileMtimeMs(filePath) {
|
|
1063
1063
|
try {
|
|
1064
|
-
return
|
|
1064
|
+
return syncFs.statSync(filePath).mtimeMs;
|
|
1065
1065
|
} catch {
|
|
1066
1066
|
return;
|
|
1067
1067
|
}
|
|
@@ -1076,7 +1076,7 @@ const NOOP_LOGGER = {
|
|
|
1076
1076
|
function canonicalizePathForComparison(filePath) {
|
|
1077
1077
|
const resolved = path.resolve(filePath);
|
|
1078
1078
|
try {
|
|
1079
|
-
return
|
|
1079
|
+
return syncFs.realpathSync(resolved);
|
|
1080
1080
|
} catch {
|
|
1081
1081
|
return resolved;
|
|
1082
1082
|
}
|
|
@@ -1134,12 +1134,12 @@ function resolveReferencedSessionTranscriptPaths(params) {
|
|
|
1134
1134
|
return referenced;
|
|
1135
1135
|
}
|
|
1136
1136
|
async function readSessionsDirFiles(sessionsDir) {
|
|
1137
|
-
const dirEntries = await
|
|
1137
|
+
const dirEntries = await syncFs.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
1138
1138
|
const files = [];
|
|
1139
1139
|
for (const dirent of dirEntries) {
|
|
1140
1140
|
if (!dirent.isFile()) continue;
|
|
1141
1141
|
const filePath = path.join(sessionsDir, dirent.name);
|
|
1142
|
-
const stat = await
|
|
1142
|
+
const stat = await syncFs.promises.stat(filePath).catch(() => null);
|
|
1143
1143
|
if (!stat?.isFile()) continue;
|
|
1144
1144
|
files.push({
|
|
1145
1145
|
path: filePath,
|
|
@@ -1152,9 +1152,9 @@ async function readSessionsDirFiles(sessionsDir) {
|
|
|
1152
1152
|
return files;
|
|
1153
1153
|
}
|
|
1154
1154
|
async function removeFileIfExists(filePath) {
|
|
1155
|
-
const stat = await
|
|
1155
|
+
const stat = await syncFs.promises.stat(filePath).catch(() => null);
|
|
1156
1156
|
if (!stat?.isFile()) return 0;
|
|
1157
|
-
await
|
|
1157
|
+
await syncFs.promises.rm(filePath, { force: true }).catch(() => void 0);
|
|
1158
1158
|
return stat.size;
|
|
1159
1159
|
}
|
|
1160
1160
|
async function removeFileForBudget(params) {
|
|
@@ -1438,7 +1438,7 @@ function loadSessionStore(storePath, opts = {}) {
|
|
|
1438
1438
|
const maxReadAttempts = process.platform === "win32" ? 3 : 1;
|
|
1439
1439
|
const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
|
|
1440
1440
|
for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
|
|
1441
|
-
const raw =
|
|
1441
|
+
const raw = syncFs.readFileSync(storePath, "utf-8");
|
|
1442
1442
|
if (raw.length === 0 && attempt < maxReadAttempts - 1) {
|
|
1443
1443
|
Atomics.wait(retryBuf, 0, 0, 50);
|
|
1444
1444
|
continue;
|
|
@@ -1641,7 +1641,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
async function getSessionFileSize(storePath) {
|
|
1643
1643
|
try {
|
|
1644
|
-
return (await
|
|
1644
|
+
return (await syncFs.promises.stat(storePath)).size;
|
|
1645
1645
|
} catch {
|
|
1646
1646
|
return null;
|
|
1647
1647
|
}
|
|
@@ -1658,7 +1658,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
1658
1658
|
if (fileSize <= maxBytes) return false;
|
|
1659
1659
|
const backupPath = `${storePath}.bak.${Date.now()}`;
|
|
1660
1660
|
try {
|
|
1661
|
-
await
|
|
1661
|
+
await syncFs.promises.rename(storePath, backupPath);
|
|
1662
1662
|
log.info("rotated session store file", {
|
|
1663
1663
|
backupPath: path.basename(backupPath),
|
|
1664
1664
|
sizeBytes: fileSize
|
|
@@ -1669,11 +1669,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
1669
1669
|
try {
|
|
1670
1670
|
const dir = path.dirname(storePath);
|
|
1671
1671
|
const baseName = path.basename(storePath);
|
|
1672
|
-
const backups = (await
|
|
1672
|
+
const backups = (await syncFs.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
|
|
1673
1673
|
const maxBackups = 3;
|
|
1674
1674
|
if (backups.length > maxBackups) {
|
|
1675
1675
|
const toDelete = backups.slice(maxBackups);
|
|
1676
|
-
for (const old of toDelete) await
|
|
1676
|
+
for (const old of toDelete) await syncFs.promises.unlink(path.join(dir, old)).catch(() => void 0);
|
|
1677
1677
|
log.info("cleaned up old session store backups", { deleted: toDelete.length });
|
|
1678
1678
|
}
|
|
1679
1679
|
} catch {}
|
|
@@ -1778,14 +1778,14 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
1778
1778
|
});
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
|
-
await
|
|
1781
|
+
await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
1782
1782
|
const json = JSON.stringify(store, null, 2);
|
|
1783
1783
|
if (process.platform === "win32") {
|
|
1784
1784
|
const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
|
|
1785
1785
|
try {
|
|
1786
|
-
await
|
|
1786
|
+
await syncFs.promises.writeFile(tmp, json, "utf-8");
|
|
1787
1787
|
for (let i = 0; i < 5; i++) try {
|
|
1788
|
-
await
|
|
1788
|
+
await syncFs.promises.rename(tmp, storePath);
|
|
1789
1789
|
break;
|
|
1790
1790
|
} catch {
|
|
1791
1791
|
if (i < 4) await new Promise((r) => setTimeout(r, 50 * (i + 1)));
|
|
@@ -1795,27 +1795,27 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
1795
1795
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") return;
|
|
1796
1796
|
throw err;
|
|
1797
1797
|
} finally {
|
|
1798
|
-
await
|
|
1798
|
+
await syncFs.promises.rm(tmp, { force: true }).catch(() => void 0);
|
|
1799
1799
|
}
|
|
1800
1800
|
return;
|
|
1801
1801
|
}
|
|
1802
1802
|
const tmp = `${storePath}.${process.pid}.${crypto.randomUUID()}.tmp`;
|
|
1803
1803
|
try {
|
|
1804
|
-
await
|
|
1804
|
+
await syncFs.promises.writeFile(tmp, json, {
|
|
1805
1805
|
mode: 384,
|
|
1806
1806
|
encoding: "utf-8"
|
|
1807
1807
|
});
|
|
1808
|
-
await
|
|
1809
|
-
await
|
|
1808
|
+
await syncFs.promises.rename(tmp, storePath);
|
|
1809
|
+
await syncFs.promises.chmod(storePath, 384);
|
|
1810
1810
|
} catch (err) {
|
|
1811
1811
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) === "ENOENT") {
|
|
1812
1812
|
try {
|
|
1813
|
-
await
|
|
1814
|
-
await
|
|
1813
|
+
await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
1814
|
+
await syncFs.promises.writeFile(storePath, json, {
|
|
1815
1815
|
mode: 384,
|
|
1816
1816
|
encoding: "utf-8"
|
|
1817
1817
|
});
|
|
1818
|
-
await
|
|
1818
|
+
await syncFs.promises.chmod(storePath, 384);
|
|
1819
1819
|
} catch (err2) {
|
|
1820
1820
|
if ((err2 && typeof err2 === "object" && "code" in err2 ? String(err2.code) : null) === "ENOENT") return;
|
|
1821
1821
|
throw err2;
|
|
@@ -1824,7 +1824,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
throw err;
|
|
1826
1826
|
} finally {
|
|
1827
|
-
await
|
|
1827
|
+
await syncFs.promises.rm(tmp, { force: true });
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
1830
|
async function saveSessionStore(storePath, store, opts) {
|
|
@@ -2095,8 +2095,8 @@ function resolveMirroredTranscriptText(params) {
|
|
|
2095
2095
|
return trimmed ? trimmed : null;
|
|
2096
2096
|
}
|
|
2097
2097
|
async function ensureSessionHeader(params) {
|
|
2098
|
-
if (
|
|
2099
|
-
await
|
|
2098
|
+
if (syncFs.existsSync(params.sessionFile)) return;
|
|
2099
|
+
await syncFs.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
|
|
2100
2100
|
const header = {
|
|
2101
2101
|
type: "session",
|
|
2102
2102
|
version: CURRENT_SESSION_VERSION,
|
|
@@ -2104,7 +2104,7 @@ async function ensureSessionHeader(params) {
|
|
|
2104
2104
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2105
2105
|
cwd: process.cwd()
|
|
2106
2106
|
};
|
|
2107
|
-
await
|
|
2107
|
+
await syncFs.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
|
|
2108
2108
|
encoding: "utf-8",
|
|
2109
2109
|
mode: 384
|
|
2110
2110
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { y as resolveRequiredHomeDir } from "./paths-Cn44w-EB.js";
|
|
3
|
-
import { m as normalizeE164 } from "./utils-
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
+
import { m as normalizeE164 } from "./utils-CXzXXV2o.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-CGZX2PBV.js";
|
|
5
5
|
import { c as normalizeMainKey, g as normalizeOptionalAccountId, l as resolveAgentIdFromSessionKey, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-Cuihcz_O.js";
|
|
6
|
-
import { It as loadConfig, Rr as resolveProcessScopedMap, cn as parseDurationMs, ln as parseByteSize, zr as isPidAlive } from "./model-selection-
|
|
7
|
-
import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-
|
|
8
|
-
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel } from "./message-channel-
|
|
6
|
+
import { It as loadConfig, Rr as resolveProcessScopedMap, cn as parseDurationMs, ln as parseByteSize, zr as isPidAlive } from "./model-selection-0dGxYGp8.js";
|
|
7
|
+
import { c as normalizeHyphenSlug, t as getChannelDock } from "./dock-Y96MzKuM.js";
|
|
8
|
+
import { c as listDeliverableMessageChannels, l as normalizeMessageChannel } from "./message-channel-DVauVtrg.js";
|
|
9
9
|
import { t as normalizeChatType } from "./chat-type-3FRbbjbq.js";
|
|
10
10
|
import { n as resolveConversationLabel } from "./conversation-label-Onz2hiJh.js";
|
|
11
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
11
|
+
import { r as normalizeChannelId } from "./plugins-D46VZh7u.js";
|
|
12
12
|
import { a as resolveSessionFilePathOptions, c as resolveSessionTranscriptsDir, d as validateSessionId, i as resolveSessionFilePath, l as resolveSessionTranscriptsDirForAgent, o as resolveSessionTranscriptPath, r as resolveDefaultSessionStorePath, s as resolveSessionTranscriptPathInDir, t as SAFE_SESSION_ID_RE, u as resolveStorePath } from "./paths-DRz46q00.js";
|
|
13
13
|
import { r as hasInterSessionUserProvenance } from "./input-provenance-CTnwu8Ge.js";
|
|
14
14
|
import { n as stripMessageIdHints, o as extractToolCallNames, r as stripInboundMetadata, s as hasToolCall, t as stripEnvelope } from "./chat-envelope-Bebo3vwl.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as toAgentModelListLike, r as listAgentIds } from "./agent-scope-
|
|
1
|
+
import { P as toAgentModelListLike, r as listAgentIds } from "./agent-scope-RA0zXRpu.js";
|
|
2
2
|
import { s as normalizeAgentId } from "./session-key-Cuihcz_O.js";
|
|
3
|
-
import { $r as DEFAULT_PROVIDER, Ht as writeConfigFile, Rt as readConfigFileSnapshot, _ as resolveModelRefFromString, c as modelKey, r as buildModelAliasIndex } from "./model-selection-
|
|
3
|
+
import { $r as DEFAULT_PROVIDER, Ht as writeConfigFile, Rt as readConfigFileSnapshot, _ as resolveModelRefFromString, c as modelKey, r as buildModelAliasIndex } from "./model-selection-0dGxYGp8.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-DInZLuZ8.js";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/models/shared.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as defaultRuntime } from "./runtime-44j_X4Y6.js";
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-DInZLuZ8.js";
|
|
3
3
|
import { f as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel, p as resolveGatewayWindowsTaskName } from "./constants-Z_TnY4pX.js";
|
|
4
|
-
import { t as resolveGatewayService } from "./service-
|
|
4
|
+
import { t as resolveGatewayService } from "./service-C8NMS3m_.js";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/gateway-cli/shared.ts
|
|
7
7
|
const toOptionString = (value) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as CONFIG_DIR, y as resolveUserPath } from "./utils-
|
|
3
|
-
import { r as listAgentIds, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { i as loadWorkspaceSkillEntries, n as buildWorkspaceSkillCommandSpecs, s as resolvePluginSkillDirs } from "./skills-
|
|
6
|
-
import { a as listChatCommands } from "./commands-registry-
|
|
2
|
+
import { t as CONFIG_DIR, y as resolveUserPath } from "./utils-CXzXXV2o.js";
|
|
3
|
+
import { r as listAgentIds, u as resolveAgentWorkspaceDir } from "./agent-scope-RA0zXRpu.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-CGZX2PBV.js";
|
|
5
|
+
import { i as loadWorkspaceSkillEntries, n as buildWorkspaceSkillCommandSpecs, s as resolvePluginSkillDirs } from "./skills-DlvDyK8L.js";
|
|
6
|
+
import { a as listChatCommands } from "./commands-registry-CURlRZQJ.js";
|
|
7
7
|
import { a as resolvePairingPaths, c as readJsonFile, i as pruneExpiredPending, l as writeJsonAtomic, n as verifyPairingToken, o as upsertPendingPairingRequest, r as rejectPendingPairingRequest, s as createAsyncLock, t as generatePairingToken } from "./pairing-token-lKXTMQ_M.js";
|
|
8
|
-
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-
|
|
8
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-SsExQ3Bz.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import path from "node:path";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as listAgentIds, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
3
|
-
import { d as resolveStateDir } from "./paths-
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-
|
|
6
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
7
|
-
import { a as listChatCommands } from "./commands-registry-
|
|
2
|
+
import { n as listAgentIds, s as resolveAgentWorkspaceDir } from "./agent-scope-DyP_tr7s.js";
|
|
3
|
+
import { d as resolveStateDir } from "./paths-BYNVLNi_.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
|
|
5
|
+
import { h as resolveUserPath, t as CONFIG_DIR } from "./utils-CTFLl_ji.js";
|
|
6
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-CnAPWfca.js";
|
|
7
|
+
import { a as listChatCommands } from "./commands-registry-j4vAzcF2.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import syncFs from "node:fs";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import chokidar from "chokidar";
|
|
14
14
|
|
|
@@ -283,8 +283,8 @@ function listSkillCommandsForAgents(params) {
|
|
|
283
283
|
const visitedDirs = /* @__PURE__ */ new Set();
|
|
284
284
|
for (const agentId of agentIds) {
|
|
285
285
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
286
|
-
if (!
|
|
287
|
-
const canonicalDir =
|
|
286
|
+
if (!syncFs.existsSync(workspaceDir)) continue;
|
|
287
|
+
const canonicalDir = syncFs.realpathSync(workspaceDir);
|
|
288
288
|
if (visitedDirs.has(canonicalDir)) continue;
|
|
289
289
|
visitedDirs.add(canonicalDir);
|
|
290
290
|
const commands = buildWorkspaceSkillCommandSpecs(workspaceDir, {
|
|
@@ -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-DyP_tr7s.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
|
|
3
|
+
import { K as resolvePreferredIdleHandsTmpDir, h as resolveUserPath, t as CONFIG_DIR } from "./utils-CTFLl_ji.js";
|
|
4
|
+
import { h as resolveIdleHandsPackageRootSync, j as isPathInside } from "./workspace-DBFSzT6O.js";
|
|
5
|
+
import { ct as loadPluginManifestRegistry, ht as resolveMemorySlotDecision, in as isDangerousHostEnvVarName, mt as resolveEffectiveEnableState, pt as normalizePluginsConfig } from "./model-selection-1MMYqY6M.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-BOudmHMS.js";
|
|
7
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-Cu1nXNMM.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import syncFs 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 = syncFs.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 (syncFs.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 (syncFs.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 (!syncFs.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 = syncFs.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 = syncFs.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 (syncFs.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 (!syncFs.existsSync(nested) || !syncFs.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 (syncFs.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 (syncFs.existsSync(rootSkillMd)) {
|
|
706
706
|
try {
|
|
707
|
-
const size =
|
|
707
|
+
const size = syncFs.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 (!syncFs.existsSync(skillMd)) continue;
|
|
747
747
|
try {
|
|
748
|
-
const size =
|
|
748
|
+
const size = syncFs.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(syncFs.readFileSync(skill.filePath, "utf-8"));
|
|
817
817
|
} catch {}
|
|
818
818
|
return {
|
|
819
819
|
skill,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { et as resolvePreferredIdleHandsTmpDir, t as CONFIG_DIR, y as resolveUserPath } from "./utils-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { et as resolvePreferredIdleHandsTmpDir, t as CONFIG_DIR, y as resolveUserPath } from "./utils-CXzXXV2o.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-CGZX2PBV.js";
|
|
3
3
|
import { f as isPathInside, h as normalizeSkillFilter, n as resolveIdleHandsPackageRootSync } from "./idlehands-root-B8cUs-5M.js";
|
|
4
4
|
import { n as isDangerousHostEnvVarName } from "./host-env-security-DkAVVuaw.js";
|
|
5
|
-
import { d as resolveEffectiveEnableState, f as resolveMemorySlotDecision, n as loadPluginManifestRegistry, u as normalizePluginsConfig } from "./manifest-registry-
|
|
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-
|
|
5
|
+
import { d as resolveEffectiveEnableState, f as resolveMemorySlotDecision, n as loadPluginManifestRegistry, u as normalizePluginsConfig } from "./manifest-registry-Bak1x76G.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-D-sQ_Hqk.js";
|
|
7
7
|
import { n as assertNoPathAliasEscape } from "./path-alias-guards-FXBVVTLw.js";
|
|
8
8
|
import { URL, fileURLToPath } from "node:url";
|
|
9
9
|
import fs from "node:fs";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "./paths-Cn44w-EB.js";
|
|
2
|
-
import { B as theme, S as shortenHomePath } from "./utils-
|
|
3
|
-
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
2
|
+
import { B as theme, S as shortenHomePath } from "./utils-CXzXXV2o.js";
|
|
3
|
+
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-RA0zXRpu.js";
|
|
4
|
+
import "./subsystem-CGZX2PBV.js";
|
|
5
5
|
import { n as defaultRuntime } from "./runtime-44j_X4Y6.js";
|
|
6
6
|
import "./idlehands-root-B8cUs-5M.js";
|
|
7
|
-
import "./exec-
|
|
8
|
-
import { It as loadConfig } from "./model-selection-
|
|
7
|
+
import "./exec-CKHMT0tZ.js";
|
|
8
|
+
import { It as loadConfig } from "./model-selection-0dGxYGp8.js";
|
|
9
9
|
import "./github-copilot-token-D7lpquOO.js";
|
|
10
10
|
import { t as formatCliCommand } from "./command-format-DInZLuZ8.js";
|
|
11
11
|
import "./boolean-BsqeuxE6.js";
|
|
12
|
-
import "./env-
|
|
12
|
+
import "./env-Bx-F45X5.js";
|
|
13
13
|
import "./host-env-security-DkAVVuaw.js";
|
|
14
14
|
import "./env-vars-sTMVGyld.js";
|
|
15
|
-
import "./manifest-registry-
|
|
16
|
-
import { t as formatDocsLink } from "./links-
|
|
17
|
-
import { t as renderTable } from "./table-
|
|
15
|
+
import "./manifest-registry-Bak1x76G.js";
|
|
16
|
+
import { t as formatDocsLink } from "./links-15764jZB.js";
|
|
17
|
+
import { t as renderTable } from "./table-B9AmL3M1.js";
|
|
18
18
|
|
|
19
19
|
//#region src/cli/skills-cli.format.ts
|
|
20
20
|
function appendClawHubHint(output, json) {
|
|
@@ -232,7 +232,7 @@ function formatSkillsCheck(report, opts) {
|
|
|
232
232
|
async function loadSkillsStatusReport() {
|
|
233
233
|
const config = loadConfig();
|
|
234
234
|
const workspaceDir = resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config));
|
|
235
|
-
const { buildWorkspaceSkillStatus } = await import("./skills-status-
|
|
235
|
+
const { buildWorkspaceSkillStatus } = await import("./skills-status-qjQ8XP0h.js").then((n) => n.n);
|
|
236
236
|
return buildWorkspaceSkillStatus(workspaceDir, { config });
|
|
237
237
|
}
|
|
238
238
|
async function runSkillsAction(render) {
|