winclaw 2026.3.21 → 2026.3.22
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-CTJXIABG.js → accounts-8qwgz384.js} +1 -1
- package/dist/{accounts-CLKFSM00.js → accounts-BpS-Awr5.js} +1 -1
- package/dist/{accounts-cYG8442L.js → accounts-BrWJjaKS.js} +7 -7
- package/dist/{acp-cli-BbN2vTHD.js → acp-cli-BMM5ssNE.js} +8 -8
- package/dist/{agent-scope-D-i-vMLS.js → agent-scope-Dany4R2i.js} +17 -17
- package/dist/{agents-_gcdm-kb.js → agents-AMH_Bmb6.js} +14 -14
- package/dist/{agents.config-BkgsJJng.js → agents.config-6n_jmCMa.js} +2 -2
- package/dist/{api-key-rotation-D_JdsLIl.js → api-key-rotation-C9ywPLG3.js} +1 -1
- package/dist/{audio-preflight-CdgtLVh2.js → audio-preflight-D7UvXGlQ.js} +34 -34
- package/dist/{audio-preflight-CBWXmKyj.js → audio-preflight-DHeEYciJ.js} +4 -4
- package/dist/{audio-transcription-runner-DpvjaNmr.js → audio-transcription-runner-1-9PFrzh.js} +1 -1
- package/dist/{audio-transcription-runner-DGZYB2Wq.js → audio-transcription-runner-nnwJufig.js} +23 -23
- package/dist/{audit-DdcsBl_-.js → audit-DV_kf1sd.js} +29 -29
- package/dist/{auth-CU4HqNch.js → auth-Ahj-1B5R.js} +1 -1
- package/dist/{auth-choice-CtzD_rrW.js → auth-choice-NjkwJsBG.js} +13 -13
- package/dist/{auth-choice-i771W71t.js → auth-choice-dFTD1hLR.js} +11 -11
- package/dist/{auth-choice.apply-helpers-Bmj9LZnO.js → auth-choice.apply-helpers-ClzwLPaB.js} +1 -1
- package/dist/{auth-profiles-CmoHF97e.js → auth-profiles-DF0cLC20.js} +16 -16
- package/dist/{auth-token-C_S_Uszj.js → auth-token-BXCBtI3p.js} +1 -1
- package/dist/{banner-C-01b-if.js → banner-BB4DFL8E.js} +2 -2
- package/dist/{bonjour-discovery-BxCVyJLG.js → bonjour-discovery-BVSpbdjs.js} +1 -1
- package/dist/{browser-cli-Rt_P1-M1.js → browser-cli-DAcccrxR.js} +12 -12
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/{call-BLyRfBMl.js → call-DEKH5GO9.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-B4ofKr9t.js → channel-account-context-D4Yftz20.js} +5 -5
- package/dist/{channel-activity-CPWF8YR5.js → channel-activity-D03SwGPA.js} +1 -1
- package/dist/{channel-options-it9Z3dNk.js → channel-options-C7dYNZsy.js} +3 -3
- package/dist/{channel-selection-5G2iw3CB.js → channel-selection-Bke39fer.js} +1 -1
- package/dist/{channel-web-CJ_jcZSw.js → channel-web-BOrAGcza.js} +17 -17
- package/dist/{channels-cli-miFqkj2-.js → channels-cli-4YLI7Ar_.js} +93 -93
- package/dist/{channels-status-issues-DpfEWI4l.js → channels-status-issues-wCgCdUDu.js} +1 -1
- package/dist/{chrome-RAfAR4xV.js → chrome-BDFA9lPV.js} +4 -4
- package/dist/{chrome-GsaZ074n.js → chrome-Cr8R7xl_.js} +8 -8
- package/dist/{clawbot-cli-HvFYYAc6.js → clawbot-cli-B96xAtzs.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-BozE7JCS.js +154 -0
- package/dist/{client-DCxDsURZ.js → client-jNFqrgw6.js} +2 -2
- package/dist/{command-registry-m8nfRV-J.js → command-registry-qDpes5Yr.js} +11 -11
- package/dist/{command-secret-targets-BfqkoJyp.js → command-secret-targets-Dd4qCPSg.js} +4 -4
- package/dist/{commands-4mnxaSoA.js → commands-DmBkhPD-.js} +1 -1
- package/dist/{commands-registry-h5KiQe_S.js → commands-registry-BB289Bg8.js} +3 -3
- package/dist/{completion-cli-B-8mTxbh.js → completion-cli-DzZieT3i.js} +13 -13
- package/dist/{config-cli-1ecjxVfC.js → config-cli-Dk1yc6M9.js} +7 -7
- package/dist/{config-guard-DlzKrdcR.js → config-guard-3fwTO4Mb.js} +3 -3
- package/dist/{config-validation-E-3Wz4C4.js → config-validation-5pIaju5U.js} +3 -3
- package/dist/{configure-B-tOY-wa.js → configure-CuqZCxTb.js} +17 -17
- package/dist/{control-ui-assets-B0DdamQU.js → control-ui-assets-5F0FEjfM.js} +1 -1
- package/dist/{cron-cli-DpVGzupl.js → cron-cli-BIa0VxDk.js} +11 -11
- package/dist/{daemon-cli-CqwUFobu.js → daemon-cli-BE11O7QX.js} +16 -16
- package/dist/{daemon-install-C029NlXk.js → daemon-install-DNhR8NtL.js} +4 -4
- package/dist/{daemon-install-helpers-D1YQ03lO.js → daemon-install-helpers-DWmF3oFP.js} +11 -11
- package/dist/{deliver-BX-UVg7x.js → deliver-CqiBzHnh.js} +7 -7
- package/dist/{deliver-CtyrAYix.js → deliver-r4_Yp7-C.js} +1 -1
- package/dist/{deliver-runtime-Bvh4te8E.js → deliver-runtime-CIXUsI5k.js} +3 -3
- package/dist/deliver-runtime-DJsAB9LW.js +57 -0
- package/dist/deps-send-discord.runtime-M8Cl0fms.js +32 -0
- package/dist/deps-send-imessage.runtime-Bing_Bvm.js +31 -0
- package/dist/deps-send-signal.runtime-CEnhoskG.js +30 -0
- package/dist/deps-send-slack.runtime-DeKWrOdA.js +28 -0
- package/dist/deps-send-telegram.runtime-K5LxxPog.js +34 -0
- package/dist/{deps-send-whatsapp.runtime-BJV7VcRP.js → deps-send-whatsapp.runtime-BXDQiU2D.js} +7 -7
- package/dist/deps-send-whatsapp.runtime-Cie2nrT8.js +115 -0
- package/dist/{devices-cli-Cpq_Gt1l.js → devices-cli-BJgUG9fc.js} +8 -8
- package/dist/{diagnostic-DIPYflOJ.js → diagnostic-BCcd-_zI.js} +1 -1
- package/dist/{diagnostics-KfpqzhsS.js → diagnostics-BDjbQJxP.js} +5 -5
- package/dist/{directory-cli-CPBPE8N1.js → directory-cli-CJ_l_BnF.js} +7 -7
- package/dist/{dns-cli-CI7HzCVI.js → dns-cli-CFau82Y7.js} +5 -5
- package/dist/{dock-ClcGZ0LV.js → dock-C-w5XvOS.js} +4 -4
- package/dist/{docs-cli-DkQBHXw-.js → docs-cli-BRob5CHm.js} +4 -4
- package/dist/{doctor-completion-DEdT-_9v.js → doctor-completion-DB39JNV7.js} +2 -2
- package/dist/{doctor-config-flow-D6rEqOwb.js → doctor-config-flow-BzYwmYwv.js} +15 -15
- package/dist/{enable-sRe0nI5a.js → enable-Qw-mz6ta.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-B5ZdMbz6.js → exec-approvals-allowlist-BkdJCc3F.js} +1 -1
- package/dist/{exec-approvals-cli-BFxdGk9c.js → exec-approvals-cli-DsDGgzyV.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-CB8atBLm.js → exec-safe-bin-runtime-policy-C5pAgyiz.js} +2 -2
- package/dist/{fetch-CdvuNDFE.js → fetch-BwrGQrFL.js} +3 -3
- package/dist/{fetch-guard-D-W6TRJN.js → fetch-guard-CHht1LfT.js} +1 -1
- package/dist/{plugin-sdk/fs-safe-DRACrdwg.js → fs-safe-B8J4dv27.js} +6 -6
- package/dist/{gateway-cli-C_4mlmOW.js → gateway-cli-BdyXCC2C.js} +154 -154
- package/dist/{gateway-rpc-Dg3CGljP.js → gateway-rpc-ICMh7-Qs.js} +1 -1
- package/dist/{health-C5a0wlfE.js → health-Boe965-L.js} +11 -11
- package/dist/{hooks-cli-C79J_WG7.js → hooks-cli-DI0sn396.js} +81 -81
- package/dist/{hooks-status-Cjg5SLpX.js → hooks-status-CQjtRM1s.js} +1 -1
- package/dist/{image-7s8Q2r40.js → image-DoOVDHql.js} +1 -1
- package/dist/{image-EjGWXbei.js → image-Dpt9TurJ.js} +5 -5
- package/dist/{image-ops-eFMqXMDE.js → image-ops-DWGnyTvC.js} +10 -10
- package/dist/image-runtime-HfAsK5X3.js +51 -0
- package/dist/{image-runtime-QNP_uABR.js → image-runtime-Wym8Keh3.js} +3 -3
- package/dist/{inspect-XmcWN97u.js → inspect-DbVcDDi7.js} +4 -4
- package/dist/{install-safe-path-DNotGe9T.js → install-safe-path-FR9r9Dmi.js} +25 -25
- package/dist/{installs-zKF10nZF.js → installs-7zsfIb7P.js} +9 -9
- package/dist/{ipv4-DIKCnoyz.js → ipv4-CfrDjvjo.js} +1 -1
- package/dist/{ir-CJPPU4LU.js → ir-B-FffSKU.js} +8 -8
- package/dist/{issue-format-DCF2SXK_.js → issue-format-NmLUfbBT.js} +1 -1
- package/dist/{json-files-kWpauJWO.js → json-files-D9ZHO8Ud.js} +8 -8
- package/dist/{lifecycle-core-BLhI5nRz.js → lifecycle-core-Di83_FGS.js} +5 -5
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{login-D26qK4NQ.js → login-BrdFlfV0.js} +3 -3
- package/dist/{login-qr-CMgMlRCI.js → login-qr-Ci3FVgS9.js} +6 -6
- package/dist/{logs-cli-Cn7bGSc7.js → logs-cli-DUl4D14l.js} +9 -9
- package/dist/{manager-f6tniCBN.js → manager-2Wice7pq.js} +14 -14
- package/dist/manager-runtime-BrpO8pJp.js +22 -0
- package/dist/{manifest-registry-CI-UuKUO.js → manifest-registry-_liSV_Vx.js} +1 -1
- package/dist/{memory-cli-C2Yq9ryD.js → memory-cli-BgZK6A-T.js} +12 -12
- package/dist/{model-CXGHDOeN.js → model-C4J88Gi3.js} +2 -2
- package/dist/{model-catalog-08ftNXDk.js → model-catalog-BYxSwIkt.js} +3 -3
- package/dist/{model-picker-CTRi5Yhj.js → model-picker-DAr8DpKu.js} +4 -4
- package/dist/{models-Do96D4zT.js → models-DqwqcGxg.js} +17 -17
- package/dist/{models-cli-pblTciC_.js → models-cli-BFfUYhHp.js} +78 -78
- package/dist/{models-config-DYJ-p9kt.js → models-config-CJq2ywhf.js} +6 -6
- package/dist/{net-DQYHvbkN.js → net-C7TXXUto.js} +2 -2
- package/dist/{node-cli-CsQwAHzH.js → node-cli-DMpZsjse.js} +33 -33
- package/dist/{node-command-policy-BHdicfMO.js → node-command-policy-DGMJi4xw.js} +1 -1
- package/dist/{node-service-CLtiUeNO.js → node-service-L9-L8-7x.js} +1 -1
- package/dist/{nodes-cli-Dlilj-Pf.js → nodes-cli-BcyY77Cc.js} +16 -16
- package/dist/{nodes-screen-CL-8raxt.js → nodes-screen-B6QVlwKO.js} +7 -7
- package/dist/{npm-pack-install-DZvYhRnM.js → npm-pack-install-B3VCcNWC.js} +18 -18
- package/dist/{npm-resolution-DE7xcGkg.js → npm-resolution-0-Scs5nn.js} +4 -4
- package/dist/{onboard-CReGZ3G9.js → onboard-C9gtA3_b.js} +6 -6
- package/dist/{onboard-channels-ljMkIe7O.js → onboard-channels-NBqfiIc3.js} +21 -21
- package/dist/{onboard-custom-DoJDTzAW.js → onboard-custom-Cv61U_sa.js} +4 -4
- package/dist/{onboard-helpers-7lOdCHhD.js → onboard-helpers-Djj9SkyR.js} +10 -10
- package/dist/{onboard-hooks-BTD0YhRI.js → onboard-hooks-DRkLf5gL.js} +4 -4
- package/dist/{onboard-remote-Bj9uk3zW.js → onboard-remote-o8XtWCa_.js} +4 -4
- package/dist/{onboard-skills-1KAA9UrK.js → onboard-skills-TATKa-gc.js} +4 -4
- package/dist/{onboarding-CoH1hPY0.js → onboarding-C_LQ6doG.js} +14 -14
- package/dist/{onboarding.finalize-DzRWtkmA.js → onboarding.finalize-uHWzNBrm.js} +87 -87
- package/dist/{onboarding.gateway-config-s11ZLxLE.js → onboarding.gateway-config-ByvXJY2k.js} +18 -18
- package/dist/{onboarding.secret-input-D5VKqHdN.js → onboarding.secret-input-Cw4uIgyl.js} +1 -1
- package/dist/{openai-model-default-sYh2slgj.js → openai-model-default-Db9joqm4.js} +2 -2
- package/dist/{outbound-D0KF3CHY.js → outbound-DgsIsXfj.js} +3 -3
- package/dist/{outbound-attachment-CEC4H3tX.js → outbound-attachment-CjhkSZBR.js} +2 -2
- package/dist/{pairing-cli-4Nrc-V_v.js → pairing-cli-D0KKynjI.js} +8 -8
- package/dist/{pairing-labels-e3Pnen1C.js → pairing-labels-Ev8O2qBX.js} +1 -1
- package/dist/{pairing-store-Kslw_Wa0.js → pairing-store-CI0hWzZk.js} +3 -3
- package/dist/{plugin-sdk/path-alias-guards-CaCBZRHc.js → path-alias-guards-BoydiaPL.js} +1 -1
- package/dist/{path-safety-Cq9rwfZN.js → path-safety-CSCsbd-j.js} +1 -1
- package/dist/{paths-C5mR1YC-.js → paths-BVQ0udwc.js} +9 -9
- package/dist/{pi-embedded-DUO1eQ_J.js → pi-embedded-CD3oPGOP.js} +24 -24
- package/dist/{pi-embedded-helpers-BWpzwT6B.js → pi-embedded-helpers-Be8qWeKb.js} +6 -6
- package/dist/{pi-embedded-helpers-BMGRFCuV.js → pi-embedded-helpers-BthBxPYi.js} +3 -3
- package/dist/{pi-model-discovery-CibSv4gC.js → pi-model-discovery-CgxnCHvU.js} +1 -1
- package/dist/{pi-model-discovery-runtime-DhBE8w94.js → pi-model-discovery-runtime-CqYOz48r.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-D6h4CmLs.js → pi-tools.before-tool-call.runtime-CPnt06zM.js} +5 -5
- package/dist/{pi-tools.policy-BqpmC_c4.js → pi-tools.policy-DGbCC2Ji.js} +5 -5
- package/dist/{plugin-auto-enable-DnSZLbIH.js → plugin-auto-enable-Crpu18wt.js} +3 -3
- package/dist/{plugin-registry-DckyegZB.js → plugin-registry-Dbu4pN4B.js} +3 -3
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/telegram.js +2 -2
- package/dist/{plugins-C1OgLvb4.js → plugins-IFacUN_Q.js} +2 -2
- package/dist/{plugins-cli-C6Oo9R6E.js → plugins-cli-CCpaWcyg.js} +83 -83
- package/dist/{ports-CfOim1GC.js → ports-DqZBwUsy.js} +2 -2
- package/dist/{ports-Dw-3Gxsb.js → ports-FLn4cVl7.js} +1 -1
- package/dist/{probe-D3f6QMfy.js → probe-CHRXpP2F.js} +2 -2
- package/dist/{program-CEJ6CsoR.js → program-Br4Re78f.js} +81 -81
- package/dist/{prompt-select-styled-D-f3R2mt.js → prompt-select-styled-w-CGGgrT.js} +40 -40
- package/dist/{provider-auth-helpers-CN4iPBfs.js → provider-auth-helpers-BVCos07y.js} +5 -5
- package/dist/{proxy-env-B7GwrH5p.js → proxy-env-Bx8OhutV.js} +1 -1
- package/dist/{push-apns-BEZdCQsM.js → push-apns-Cdl2nskU.js} +5 -5
- package/dist/{pw-ai-Ckb-165q.js → pw-ai-BpQw305H.js} +18 -18
- package/dist/{pw-ai-D6e8FGb0.js → pw-ai-CJfoHUhH.js} +1 -1
- package/dist/{plugin-sdk/qmd-manager-JiY1T3wh.js → qmd-manager-COHJs6wn.js} +15 -11
- package/dist/{qr-cli-BI54tdt3.js → qr-cli-Bzo00_vR.js} +2 -2
- package/dist/{query-expansion-Cja4xprw.js → query-expansion-IQFdQdeu.js} +12 -12
- package/dist/{redact-snapshot-YrAxVxTI.js → redact-snapshot-Bfefch_D.js} +1 -1
- package/dist/{register.agent-BjxrirHi.js → register.agent-CVpohSrc.js} +94 -94
- package/dist/register.configure-CiIuig3f.js +162 -0
- package/dist/{register.maintenance-BfdiJ7KX.js → register.maintenance-CpVfbR8z.js} +95 -95
- package/dist/{register.message-BszoJEBm.js → register.message-CJErVRcL.js} +74 -74
- package/dist/{register.onboard-CbJU4Y-3.js → register.onboard-Cm5fn9dF.js} +18 -18
- package/dist/{register.setup-BTTBsCT0.js → register.setup-DIBDbMN8.js} +21 -21
- package/dist/{register.status-health-sessions-C3Ji8sqv.js → register.status-health-sessions-Bu3abDYw.js} +89 -89
- package/dist/{register.subclis-2iN-TxPh.js → register.subclis-DTiQUgvr.js} +31 -31
- package/dist/{rpc-4GcuaLHq.js → rpc-CkwrblZ9.js} +1 -1
- package/dist/{run-main-BEtPk_9z.js → run-main-4p7ridqP.js} +92 -92
- package/dist/{runtime-4RU4PT-H.js → runtime-C-9xWVep.js} +3 -3
- package/dist/{runtime-config-collectors-Ca2llf68.js → runtime-config-collectors-vw9ITu9W.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-DOTrH3Wz.js → runtime-whatsapp-login.runtime-CrytFUOh.js} +7 -7
- package/dist/runtime-whatsapp-outbound.runtime-DOHkvY0R.js +28 -0
- package/dist/{sandbox-D19lOCVP.js → sandbox-CDjV0Crv.js} +18 -18
- package/dist/{sandbox-cli-DAZxiFQz.js → sandbox-cli-CyS9Kzp1.js} +25 -25
- package/dist/{secrets-cli-Bd2eDDOJ.js → secrets-cli-BPXW13bC.js} +11 -11
- package/dist/{security-cli-C6oO69to.js → security-cli-DfuX1PAw.js} +43 -43
- package/dist/{send-DR5zNR-6.js → send-BTQQeOIu.js} +6 -6
- package/dist/{send-3vnK2por.js → send-CFsJh6px.js} +11 -11
- package/dist/{send-DTvtOsK3.js → send-CM55Cnqy.js} +4 -4
- package/dist/{send-Bz5LPBFx.js → send-D7wKzeqg.js} +8 -8
- package/dist/{send-CEgqE2b1.js → send-DUJqLDEQ.js} +5 -5
- package/dist/{server-vPpafyBR.js → server-57rjxu9J.js} +20 -20
- package/dist/{server-context-FT_S05Zu.js → server-context-DdGwcBos.js} +12 -12
- package/dist/{server-lifecycle-YV61YmRr.js → server-lifecycle-TD7uRUJM.js} +2 -2
- package/dist/{server-middleware-BPI-0Duw.js → server-middleware-Dqzu_N47.js} +1 -1
- package/dist/{server-node-events-BozhXo6J.js → server-node-events-CstHr-4q.js} +74 -74
- package/dist/{service-Aratsspm.js → service-B45ntxm9.js} +15 -15
- package/dist/{session-C4iQQHfw.js → session-BO7rj_9P.js} +1 -1
- package/dist/{session-utils-CTpXGSxL.js → session-utils-DqzU9P2d.js} +6 -6
- package/dist/{sessions-CZvR93mC.js → sessions-BPbCt7hk.js} +4 -4
- package/dist/{sessions-Cvvux3S6.js → sessions-BUNwVEqF.js} +15 -15
- package/dist/{shared-ByZODVse.js → shared-CeHWQzSU.js} +3 -3
- package/dist/{shared-Cj-SPh02.js → shared-CpqkgNHp.js} +1 -1
- package/dist/{skill-commands-CzaT61kL.js → skill-commands-BlmjGaIe.js} +5 -5
- package/dist/{skill-scanner-DqqhF5of.js → skill-scanner-DOOfjrYo.js} +6 -6
- package/dist/{skills-BpN5EUZU.js → skills-CFYm0xdh.js} +3 -3
- package/dist/{skills-cli-Bk2WM5gn.js → skills-cli-Dmbm2-L8.js} +5 -5
- package/dist/{skills-install-0pjIZu1-.js → skills-install-DSB3T8VY.js} +6 -6
- package/dist/{skills-status-Bu28FGtt.js → skills-status-CmWpjTMz.js} +1 -1
- package/dist/{slash-commands.runtime-CU--cvcd.js → slash-commands.runtime-CTVGYo20.js} +11 -11
- package/dist/{slash-dispatch.runtime-DDLolsGY.js → slash-dispatch.runtime-CQmhrE1-.js} +6 -6
- package/dist/slash-dispatch.runtime-yKnwVCI5.js +110 -0
- package/dist/slash-skill-commands.runtime-BCG9eUm1.js +29 -0
- package/dist/{status-B5hylgEQ.js → status-DPFQHdBI.js} +28 -28
- package/dist/{status.update-CdaaXiD4.js → status.update-ZhDibzTU.js} +2 -2
- package/dist/{store-LSg8jeyh.js → store-Dgl-neCe.js} +5 -5
- package/dist/{subagent-registry-iD-ynHA9.js → subagent-registry-DPqc72Pw.js} +149 -149
- package/dist/{subagent-registry-runtime-DfMDVaOY.js → subagent-registry-runtime-BYxLgcCY.js} +6 -6
- package/dist/subagent-registry-runtime-DE-5902Y.js +110 -0
- package/dist/{system-cli-B8wmT3y0.js → system-cli-BiiO_z6k.js} +9 -9
- package/dist/{system-run-command-Ft0meR8i.js → system-run-command-CUMrwy8H.js} +1 -1
- package/dist/{systemd-CVY4-XuL.js → systemd-BNMfPHLS.js} +9 -9
- package/dist/{systemd-hints-GPX9Y1X7.js → systemd-hints-O9SJa5Ku.js} +6 -6
- package/dist/{systemd-linger-CyioH9ho.js → systemd-linger-CDgtOmPf.js} +1 -1
- package/dist/{tables-B6p8P9wY.js → tables-Bjpb4vEC.js} +1 -1
- package/dist/{tailnet-yScEfa2T.js → tailnet-C4yxhmDk.js} +1 -1
- package/dist/{plugin-sdk/target-errors-Hoj2qirZ.js → target-errors-Bd8kj4z9.js} +2 -2
- package/dist/{tool-images-Cp3hNFNZ.js → tool-images-DbchBdq5.js} +1 -1
- package/dist/{tui-BPqNtl51.js → tui-BVOPPCMP.js} +6 -6
- package/dist/{tui-cli-BZE2zssw.js → tui-cli-B2jmEXCo.js} +32 -32
- package/dist/{update-u6OtnABh.js → update-DF240Zd0.js} +3 -3
- package/dist/{update-cli-C1nysDmM.js → update-cli-PDG-KYWB.js} +105 -105
- package/dist/{update-runner-BpzbDTnQ.js → update-runner-BkpGT3AA.js} +16 -16
- package/dist/{web-CodV11ZY.js → web-0SOsmYmI.js} +6 -6
- package/dist/web-20qjCzeI.js +114 -0
- package/dist/{webhooks-cli-D4O_OfXU.js → webhooks-cli-N_vV0iXR.js} +6 -6
- package/dist/{whatsapp-actions-By2rV868.js → whatsapp-actions-X768ziyc.js} +17 -17
- package/dist/{winclaw-root-D0OUuGl7.js → winclaw-root-DEqOOeOw.js} +8 -8
- package/dist/{with-timeout-Cng0KnPd.js → with-timeout-DJb5ULbL.js} +3 -3
- package/dist/{workspace-vYy4qLQz.js → workspace-Cx-f7PO5.js} +1 -1
- package/dist/{workspace-dirs-C13vnqQQ.js → workspace-dirs-C5erYAob.js} +1 -1
- package/dist/{wsl-C9d12M7y.js → wsl-BisEqrSr.js} +2 -2
- package/package.json +1 -1
- package/dist/cli-Da0pNyXg.js +0 -154
- package/dist/deliver-runtime-Co5o7uv0.js +0 -57
- package/dist/deps-send-discord.runtime-D0BtA9iO.js +0 -32
- package/dist/deps-send-imessage.runtime-89fweiea.js +0 -31
- package/dist/deps-send-signal.runtime-BA3mNq_v.js +0 -30
- package/dist/deps-send-slack.runtime-DiA-Ieod.js +0 -28
- package/dist/deps-send-telegram.runtime-C9bLOnbt.js +0 -34
- package/dist/deps-send-whatsapp.runtime-Dflrvnq-.js +0 -115
- package/dist/fs-safe-Dha0DfFC.js +0 -352
- package/dist/image-runtime-CGAobfgI.js +0 -51
- package/dist/manager-runtime-BifbXCuI.js +0 -22
- package/dist/path-alias-guards-9OJ1UBCd.js +0 -43
- package/dist/plugin-sdk/accounts-B9lBByhz.js +0 -35
- package/dist/plugin-sdk/accounts-Bl6fp04N.js +0 -288
- package/dist/plugin-sdk/accounts-CQWq_42g.js +0 -46
- package/dist/plugin-sdk/active-listener-Dc-P7jeX.js +0 -50
- package/dist/plugin-sdk/api-key-rotation-DSOB99GV.js +0 -181
- package/dist/plugin-sdk/audio-preflight-DYTxAG0v.js +0 -69
- package/dist/plugin-sdk/audio-transcription-runner-Bndij5Q1.js +0 -2176
- package/dist/plugin-sdk/audit-membership-runtime-ZTTIhQhs.js +0 -58
- package/dist/plugin-sdk/channel-activity-ChRCQNSc.js +0 -94
- package/dist/plugin-sdk/channel-web-CfZNFYCV.js +0 -2256
- package/dist/plugin-sdk/chrome-DNpRdbZ1.js +0 -2415
- package/dist/plugin-sdk/commands-registry-Bq1HqcJU.js +0 -1125
- package/dist/plugin-sdk/config-Cyo0rHBx.js +0 -17959
- package/dist/plugin-sdk/deliver-mBruQPRt.js +0 -1719
- package/dist/plugin-sdk/deliver-runtime-ByVt0evu.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-C2fc3t93.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-D4m7X6j4.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-DwGJRjyX.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-7J491hID.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-DAKGyd6b.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BxQ5tZO2.js +0 -57
- package/dist/plugin-sdk/diagnostic-B3ZoSFoM.js +0 -319
- package/dist/plugin-sdk/errors-DdSHGcgi.js +0 -54
- package/dist/plugin-sdk/fetch-guard-Uhk4tySC.js +0 -156
- package/dist/plugin-sdk/image-CEBZ8sRh.js +0 -2314
- package/dist/plugin-sdk/image-ops-Dye2ozSZ.js +0 -584
- package/dist/plugin-sdk/image-runtime-CabQkSZn.js +0 -25
- package/dist/plugin-sdk/ir-CruONUHn.js +0 -1296
- package/dist/plugin-sdk/local-roots-BYSlR-at.js +0 -186
- package/dist/plugin-sdk/logger-C_vnHQg2.js +0 -1163
- package/dist/plugin-sdk/login-bdsdinOj.js +0 -57
- package/dist/plugin-sdk/login-qr-BYAvyop9.js +0 -320
- package/dist/plugin-sdk/manager-AOQxrU7P.js +0 -3929
- package/dist/plugin-sdk/manager-runtime-CijO5giX.js +0 -15
- package/dist/plugin-sdk/outbound-FdiP5J7H.js +0 -212
- package/dist/plugin-sdk/outbound-attachment-DZphVgq7.js +0 -19
- package/dist/plugin-sdk/paths-ICLB349I.js +0 -166
- package/dist/plugin-sdk/pi-embedded-helpers-tHjfJzH4.js +0 -9627
- package/dist/plugin-sdk/pi-model-discovery-DQV-B6bn.js +0 -134
- package/dist/plugin-sdk/pi-model-discovery-runtime-MJmZTIax.js +0 -8
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-7DPjo7Ey.js +0 -354
- package/dist/plugin-sdk/plugins-BQHnLb2v.js +0 -864
- package/dist/plugin-sdk/proxy-fetch-BpMu-RpD.js +0 -38
- package/dist/plugin-sdk/pw-ai-DAMRoo8O.js +0 -1938
- package/dist/plugin-sdk/query-expansion-CuaTloKx.js +0 -1011
- package/dist/plugin-sdk/redact-BznLQ6I5.js +0 -319
- package/dist/plugin-sdk/reply-Cx_4UtvJ.js +0 -100211
- package/dist/plugin-sdk/resolve-outbound-target-BDjhohcf.js +0 -40
- package/dist/plugin-sdk/run-with-concurrency-BcPenaKJ.js +0 -1994
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DqezqoLI.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Dgnv_x4o.js +0 -19
- package/dist/plugin-sdk/send-BWz-g7wE.js +0 -540
- package/dist/plugin-sdk/send-DB9pUM0k.js +0 -414
- package/dist/plugin-sdk/send-QPap4wBN.js +0 -503
- package/dist/plugin-sdk/send-gz4Lq5tL.js +0 -2587
- package/dist/plugin-sdk/send-tyEtWeMX.js +0 -3135
- package/dist/plugin-sdk/session-88GgvJcW.js +0 -169
- package/dist/plugin-sdk/skill-commands-ClwX3DoE.js +0 -353
- package/dist/plugin-sdk/skills-B2FPl9ca.js +0 -1428
- package/dist/plugin-sdk/slash-commands.runtime-CGAfyDkY.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DN7TWAWh.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-C4i9B-79.js +0 -16
- package/dist/plugin-sdk/ssrf-D3NQgatK.js +0 -202
- package/dist/plugin-sdk/store-CDmdRGxP.js +0 -81
- package/dist/plugin-sdk/subagent-registry-runtime-CprGCjIU.js +0 -52
- package/dist/plugin-sdk/tables-j2CMtAoX.js +0 -55
- package/dist/plugin-sdk/thinking-Dh6B0ZhB.js +0 -1206
- package/dist/plugin-sdk/tokens-PExiD061.js +0 -52
- package/dist/plugin-sdk/tool-images-D7ah30xm.js +0 -274
- package/dist/plugin-sdk/web-D9wJfMr_.js +0 -56
- package/dist/plugin-sdk/whatsapp-actions-BjarJorO.js +0 -80
- package/dist/qmd-manager-oU4X85hj.js +0 -1452
- package/dist/register.configure-MduIRRMt.js +0 -162
- package/dist/runtime-whatsapp-outbound.runtime-CNnM5MdE.js +0 -28
- package/dist/slash-dispatch.runtime-D5Cl7j1v.js +0 -110
- package/dist/slash-skill-commands.runtime-DnvHGcVS.js +0 -29
- package/dist/subagent-registry-runtime-LH0OBaWN.js +0 -110
- package/dist/target-errors-HJQQHC3B.js +0 -195
- package/dist/web-DxHq9RWt.js +0 -114
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as normalizeAccountId } from "./session-key-9-yI-GU_.js";
|
|
2
|
-
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-
|
|
2
|
+
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-BrWJjaKS.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as normalizeAccountId } from "./session-key-9-yI-GU_.js";
|
|
2
|
-
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-
|
|
2
|
+
import { v as createAccountListHelpers, y as resolveAccountEntry } from "./accounts-BrWJjaKS.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -4,7 +4,7 @@ import { _ as normalizeAccountId, g as DEFAULT_ACCOUNT_ID, v as normalizeOptiona
|
|
|
4
4
|
import { f as jidToE164, v as resolveUserPath } from "./utils-hiIKrqOK.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|
|
7
|
-
import
|
|
7
|
+
import fs$1 from "node:fs/promises";
|
|
8
8
|
|
|
9
9
|
//#region src/routing/account-lookup.ts
|
|
10
10
|
function resolveAccountEntry(accounts, accountId) {
|
|
@@ -103,14 +103,14 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
103
103
|
maybeRestoreCredsFromBackup(resolvedAuthDir);
|
|
104
104
|
const credsPath = resolveWebCredsPath(resolvedAuthDir);
|
|
105
105
|
try {
|
|
106
|
-
await
|
|
106
|
+
await fs$1.access(resolvedAuthDir);
|
|
107
107
|
} catch {
|
|
108
108
|
return false;
|
|
109
109
|
}
|
|
110
110
|
try {
|
|
111
|
-
const stats = await
|
|
111
|
+
const stats = await fs$1.stat(credsPath);
|
|
112
112
|
if (!stats.isFile() || stats.size <= 1) return false;
|
|
113
|
-
const raw = await
|
|
113
|
+
const raw = await fs$1.readFile(credsPath, "utf-8");
|
|
114
114
|
JSON.parse(raw);
|
|
115
115
|
return true;
|
|
116
116
|
} catch {
|
|
@@ -118,7 +118,7 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
async function clearLegacyBaileysAuthState(authDir) {
|
|
121
|
-
const entries = await
|
|
121
|
+
const entries = await fs$1.readdir(authDir, { withFileTypes: true });
|
|
122
122
|
const shouldDelete = (name) => {
|
|
123
123
|
if (name === "oauth.json") return false;
|
|
124
124
|
if (name === "creds.json" || name === "creds.json.bak") return true;
|
|
@@ -128,7 +128,7 @@ async function clearLegacyBaileysAuthState(authDir) {
|
|
|
128
128
|
await Promise.all(entries.map(async (entry) => {
|
|
129
129
|
if (!entry.isFile()) return;
|
|
130
130
|
if (!shouldDelete(entry.name)) return;
|
|
131
|
-
await
|
|
131
|
+
await fs$1.rm(path.join(authDir, entry.name), { force: true });
|
|
132
132
|
}));
|
|
133
133
|
}
|
|
134
134
|
async function logoutWeb(params) {
|
|
@@ -139,7 +139,7 @@ async function logoutWeb(params) {
|
|
|
139
139
|
return false;
|
|
140
140
|
}
|
|
141
141
|
if (params.isLegacyAuthDir) await clearLegacyBaileysAuthState(resolvedAuthDir);
|
|
142
|
-
else await
|
|
142
|
+
else await fs$1.rm(resolvedAuthDir, {
|
|
143
143
|
recursive: true,
|
|
144
144
|
force: true
|
|
145
145
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { P as theme, _ as defaultRuntime, n as isMainModule } from "./entry.js";
|
|
2
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
3
|
-
import "./agent-scope-
|
|
2
|
+
import { z as loadConfig } from "./auth-profiles-DF0cLC20.js";
|
|
3
|
+
import "./agent-scope-Dany4R2i.js";
|
|
4
4
|
import { v as resolveUserPath, x as shortenHomePath } from "./utils-hiIKrqOK.js";
|
|
5
|
-
import "./winclaw-root-
|
|
5
|
+
import "./winclaw-root-DEqOOeOw.js";
|
|
6
6
|
import "./logger-BcqRk323.js";
|
|
7
7
|
import "./exec-CaapFZaD.js";
|
|
8
8
|
import "./registry-BcRQUSsJ.js";
|
|
@@ -10,13 +10,13 @@ import "./github-copilot-token-DHTToceK.js";
|
|
|
10
10
|
import "./host-env-security-CIiLt2Mi.js";
|
|
11
11
|
import { t as VERSION } from "./version-TiOyTfO4.js";
|
|
12
12
|
import "./env-vars-CE3cUIrz.js";
|
|
13
|
-
import "./manifest-registry-
|
|
13
|
+
import "./manifest-registry-_liSV_Vx.js";
|
|
14
14
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-DINJBdD0.js";
|
|
15
|
-
import { t as GatewayClient } from "./client-
|
|
16
|
-
import { s as resolveGatewayCredentialsWithSecretInputs, t as buildGatewayConnectionDetails } from "./call-
|
|
15
|
+
import { t as GatewayClient } from "./client-jNFqrgw6.js";
|
|
16
|
+
import { s as resolveGatewayCredentialsWithSecretInputs, t as buildGatewayConnectionDetails } from "./call-DEKH5GO9.js";
|
|
17
17
|
import "./pairing-token-CyhEb6Je.js";
|
|
18
|
-
import "./net-
|
|
19
|
-
import "./tailnet-
|
|
18
|
+
import "./net-C7TXXUto.js";
|
|
19
|
+
import "./tailnet-C4yxhmDk.js";
|
|
20
20
|
import { r as isKnownCoreToolId } from "./tool-catalog-DN2kDDZk.js";
|
|
21
21
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-D0wwE7yg.js";
|
|
22
22
|
import { t as formatDocsLink } from "./links-Bcv6_maG.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { mt as resolveRequiredHomeDir, ot as resolveStateDir, s as createSubsystemLogger } from "./entry.js";
|
|
2
2
|
import { E as parseAgentSessionKey, T as isSubagentSessionKey, c as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveAgentIdFromSessionKey, w as isCronSessionKey } from "./session-key-9-yI-GU_.js";
|
|
3
3
|
import { m as pathExists, v as resolveUserPath } from "./utils-hiIKrqOK.js";
|
|
4
|
-
import { _ as normalizeSkillFilter, i as openBoundaryFile, t as resolveWinClawPackageRoot } from "./winclaw-root-
|
|
4
|
+
import { _ as normalizeSkillFilter, i as openBoundaryFile, t as resolveWinClawPackageRoot } from "./winclaw-root-DEqOOeOw.js";
|
|
5
5
|
import { t as runCommandWithTimeout } from "./exec-CaapFZaD.js";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs";
|
|
10
|
-
import
|
|
10
|
+
import fs$1 from "node:fs/promises";
|
|
11
11
|
|
|
12
12
|
//#region src/config/model-input.ts
|
|
13
13
|
function resolveAgentModelPrimaryValue(model) {
|
|
@@ -149,7 +149,7 @@ async function loadTemplate(name) {
|
|
|
149
149
|
const templateDir = await resolveWorkspaceTemplateDir();
|
|
150
150
|
const templatePath = path.join(templateDir, name);
|
|
151
151
|
try {
|
|
152
|
-
return stripFrontMatter(await
|
|
152
|
+
return stripFrontMatter(await fs$1.readFile(templatePath, "utf-8"));
|
|
153
153
|
} catch {
|
|
154
154
|
throw new Error(`Missing workspace template: ${name} (${templatePath}). Ensure docs/reference/templates are packaged.`);
|
|
155
155
|
}
|
|
@@ -164,7 +164,7 @@ async function loadTemplate(name) {
|
|
|
164
164
|
}
|
|
165
165
|
async function writeFileIfMissing(filePath, content) {
|
|
166
166
|
try {
|
|
167
|
-
await
|
|
167
|
+
await fs$1.writeFile(filePath, content, {
|
|
168
168
|
encoding: "utf-8",
|
|
169
169
|
flag: "wx"
|
|
170
170
|
});
|
|
@@ -176,7 +176,7 @@ async function writeFileIfMissing(filePath, content) {
|
|
|
176
176
|
}
|
|
177
177
|
async function fileExists(filePath) {
|
|
178
178
|
try {
|
|
179
|
-
await
|
|
179
|
+
await fs$1.access(filePath);
|
|
180
180
|
return true;
|
|
181
181
|
} catch {
|
|
182
182
|
return false;
|
|
@@ -200,7 +200,7 @@ function parseWorkspaceOnboardingState(raw) {
|
|
|
200
200
|
}
|
|
201
201
|
async function readWorkspaceOnboardingState(statePath) {
|
|
202
202
|
try {
|
|
203
|
-
return parseWorkspaceOnboardingState(await
|
|
203
|
+
return parseWorkspaceOnboardingState(await fs$1.readFile(statePath, "utf-8")) ?? { version: WORKSPACE_STATE_VERSION };
|
|
204
204
|
} catch (err) {
|
|
205
205
|
if (err.code !== "ENOENT") throw err;
|
|
206
206
|
return { version: WORKSPACE_STATE_VERSION };
|
|
@@ -214,20 +214,20 @@ async function isWorkspaceOnboardingCompleted(dir) {
|
|
|
214
214
|
return typeof state.onboardingCompletedAt === "string" && state.onboardingCompletedAt.trim().length > 0;
|
|
215
215
|
}
|
|
216
216
|
async function writeWorkspaceOnboardingState(statePath, state) {
|
|
217
|
-
await
|
|
217
|
+
await fs$1.mkdir(path.dirname(statePath), { recursive: true });
|
|
218
218
|
const payload = `${JSON.stringify(state, null, 2)}\n`;
|
|
219
219
|
const tmpPath = `${statePath}.tmp-${process.pid}-${Date.now().toString(36)}`;
|
|
220
220
|
try {
|
|
221
|
-
await
|
|
222
|
-
await
|
|
221
|
+
await fs$1.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
222
|
+
await fs$1.rename(tmpPath, statePath);
|
|
223
223
|
} catch (err) {
|
|
224
|
-
await
|
|
224
|
+
await fs$1.unlink(tmpPath).catch(() => {});
|
|
225
225
|
throw err;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
async function hasGitRepo(dir) {
|
|
229
229
|
try {
|
|
230
|
-
await
|
|
230
|
+
await fs$1.stat(path.join(dir, ".git"));
|
|
231
231
|
return true;
|
|
232
232
|
} catch {
|
|
233
233
|
return false;
|
|
@@ -257,7 +257,7 @@ async function ensureGitRepo(dir, isBrandNewWorkspace) {
|
|
|
257
257
|
}
|
|
258
258
|
async function ensureAgentWorkspace(params) {
|
|
259
259
|
const dir = resolveUserPath(params?.dir?.trim() ? params.dir.trim() : DEFAULT_AGENT_WORKSPACE_DIR);
|
|
260
|
-
await
|
|
260
|
+
await fs$1.mkdir(dir, { recursive: true });
|
|
261
261
|
if (!params?.ensureBootstrapFiles) return { dir };
|
|
262
262
|
const agentsPath = path.join(dir, DEFAULT_AGENTS_FILENAME);
|
|
263
263
|
const soulPath = path.join(dir, DEFAULT_SOUL_FILENAME);
|
|
@@ -284,7 +284,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
284
284
|
const paths = [...templatePaths, ...userContentPaths];
|
|
285
285
|
return (await Promise.all(paths.map(async (p) => {
|
|
286
286
|
try {
|
|
287
|
-
await
|
|
287
|
+
await fs$1.access(p);
|
|
288
288
|
return true;
|
|
289
289
|
} catch {
|
|
290
290
|
return false;
|
|
@@ -317,7 +317,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
317
317
|
if (!state.bootstrapSeededAt && bootstrapExists) markState({ bootstrapSeededAt: nowIso() });
|
|
318
318
|
if (!state.onboardingCompletedAt && state.bootstrapSeededAt && !bootstrapExists) markState({ onboardingCompletedAt: nowIso() });
|
|
319
319
|
if (!state.bootstrapSeededAt && !state.onboardingCompletedAt && !bootstrapExists) {
|
|
320
|
-
const [identityContent, userContent] = await Promise.all([
|
|
320
|
+
const [identityContent, userContent] = await Promise.all([fs$1.readFile(identityPath, "utf-8"), fs$1.readFile(userPath, "utf-8")]);
|
|
321
321
|
const hasUserContent = await (async () => {
|
|
322
322
|
const indicators = [
|
|
323
323
|
path.join(dir, "memory"),
|
|
@@ -325,7 +325,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
325
325
|
path.join(dir, ".git")
|
|
326
326
|
];
|
|
327
327
|
for (const indicator of indicators) try {
|
|
328
|
-
await
|
|
328
|
+
await fs$1.access(indicator);
|
|
329
329
|
return true;
|
|
330
330
|
} catch {}
|
|
331
331
|
return false;
|
|
@@ -356,7 +356,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
356
356
|
for (const name of candidates) {
|
|
357
357
|
const filePath = path.join(resolvedDir, name);
|
|
358
358
|
try {
|
|
359
|
-
await
|
|
359
|
+
await fs$1.access(filePath);
|
|
360
360
|
entries.push({
|
|
361
361
|
name,
|
|
362
362
|
filePath
|
|
@@ -369,7 +369,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
369
369
|
for (const entry of entries) {
|
|
370
370
|
let key = entry.filePath;
|
|
371
371
|
try {
|
|
372
|
-
key = await
|
|
372
|
+
key = await fs$1.realpath(entry.filePath);
|
|
373
373
|
} catch {}
|
|
374
374
|
if (seen.has(key)) continue;
|
|
375
375
|
seen.add(key);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { _ as defaultRuntime } from "./entry.js";
|
|
3
|
-
import { G as writeConfigFile, er as ensureAuthProfileStore, or as resolveAuthStorePath } from "./auth-profiles-
|
|
3
|
+
import { G as writeConfigFile, er as ensureAuthProfileStore, or as resolveAuthStorePath } from "./auth-profiles-DF0cLC20.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-C2YuTuPp.js";
|
|
5
|
-
import { a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
+
import { a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-Dany4R2i.js";
|
|
6
6
|
import { c as normalizeAgentId, g as DEFAULT_ACCOUNT_ID, t as DEFAULT_AGENT_ID } from "./session-key-9-yI-GU_.js";
|
|
7
7
|
import { v as resolveUserPath, x as shortenHomePath } from "./utils-hiIKrqOK.js";
|
|
8
|
-
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
9
|
-
import { U as parseIdentityMarkdown, V as identityHasValues } from "./subagent-registry-
|
|
8
|
+
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-IFacUN_Q.js";
|
|
9
|
+
import { U as parseIdentityMarkdown, V as identityHasValues } from "./subagent-registry-DPqc72Pw.js";
|
|
10
10
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-ByCv35uy.js";
|
|
11
|
-
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-
|
|
11
|
+
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-Djj9SkyR.js";
|
|
12
12
|
import { t as WizardCancelledError } from "./prompts-DomsZukd.js";
|
|
13
13
|
import { t as createClackPrompter } from "./clack-prompter-C88sE8nV.js";
|
|
14
14
|
import { t as resolveChannelDefaultAccountId } from "./helpers-dV2m_On0.js";
|
|
15
|
-
import { a as parseBindingSpecs, i as describeBinding, n as applyAgentBindings, o as removeAgentBindings, r as buildChannelBindings, t as requireValidConfigSnapshot } from "./config-validation-
|
|
16
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
17
|
-
import { r as setupChannels } from "./onboard-channels-
|
|
15
|
+
import { a as parseBindingSpecs, i as describeBinding, n as applyAgentBindings, o as removeAgentBindings, r as buildChannelBindings, t as requireValidConfigSnapshot } from "./config-validation-5pIaju5U.js";
|
|
16
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-6n_jmCMa.js";
|
|
17
|
+
import { r as setupChannels } from "./onboard-channels-NBqfiIc3.js";
|
|
18
18
|
import { n as logConfigUpdated } from "./logging-D6YjGDjQ.js";
|
|
19
19
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-CWXemmtw.js";
|
|
20
|
-
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-
|
|
20
|
+
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-dFTD1hLR.js";
|
|
21
21
|
import path from "node:path";
|
|
22
|
-
import
|
|
22
|
+
import fs from "node:fs/promises";
|
|
23
23
|
|
|
24
24
|
//#region src/commands/agents.command-shared.ts
|
|
25
25
|
function createQuietRuntime(runtime) {
|
|
@@ -266,7 +266,7 @@ async function agentsUnbindCommand(opts, runtime = defaultRuntime) {
|
|
|
266
266
|
//#region src/commands/agents.commands.add.ts
|
|
267
267
|
async function fileExists(pathname) {
|
|
268
268
|
try {
|
|
269
|
-
await
|
|
269
|
+
await fs.stat(pathname);
|
|
270
270
|
return true;
|
|
271
271
|
} catch {
|
|
272
272
|
return false;
|
|
@@ -408,8 +408,8 @@ async function agentsAddCommand(opts, runtime = defaultRuntime, params) {
|
|
|
408
408
|
message: `Copy auth profiles from "${defaultAgentId}"?`,
|
|
409
409
|
initialValue: false
|
|
410
410
|
})) {
|
|
411
|
-
await
|
|
412
|
-
await
|
|
411
|
+
await fs.mkdir(path.dirname(destAuthPath), { recursive: true });
|
|
412
|
+
await fs.copyFile(sourceAuthPath, destAuthPath);
|
|
413
413
|
await prompter.note(`Copied auth profiles from "${defaultAgentId}".`, "Auth profiles");
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -557,7 +557,7 @@ const coerceTrimmed = (value) => {
|
|
|
557
557
|
};
|
|
558
558
|
async function loadIdentityFromFile(filePath) {
|
|
559
559
|
try {
|
|
560
|
-
const parsed = parseIdentityMarkdown(await
|
|
560
|
+
const parsed = parseIdentityMarkdown(await fs.readFile(filePath, "utf-8"));
|
|
561
561
|
if (!identityHasValues(parsed)) return null;
|
|
562
562
|
return parsed;
|
|
563
563
|
} catch {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
1
|
+
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-Dany4R2i.js";
|
|
2
2
|
import { c as normalizeAgentId } from "./session-key-9-yI-GU_.js";
|
|
3
|
-
import { H as loadAgentIdentityFromWorkspace, V as identityHasValues } from "./subagent-registry-
|
|
3
|
+
import { H as loadAgentIdentityFromWorkspace, V as identityHasValues } from "./subagent-registry-DPqc72Pw.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/agents.config.ts
|
|
6
6
|
function findAgentEntryIndex(list, agentId) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { E as logVerbose, k as shouldLogVerbose } from "./entry.js";
|
|
2
|
-
import "./auth-profiles-
|
|
3
|
-
import "./agent-scope-
|
|
2
|
+
import "./auth-profiles-DF0cLC20.js";
|
|
3
|
+
import "./agent-scope-Dany4R2i.js";
|
|
4
4
|
import "./utils-hiIKrqOK.js";
|
|
5
|
-
import "./winclaw-root-
|
|
5
|
+
import "./winclaw-root-DEqOOeOw.js";
|
|
6
6
|
import "./logger-BcqRk323.js";
|
|
7
7
|
import "./exec-CaapFZaD.js";
|
|
8
8
|
import "./registry-BcRQUSsJ.js";
|
|
@@ -10,49 +10,49 @@ import "./github-copilot-token-DHTToceK.js";
|
|
|
10
10
|
import "./host-env-security-CIiLt2Mi.js";
|
|
11
11
|
import "./version-TiOyTfO4.js";
|
|
12
12
|
import "./env-vars-CE3cUIrz.js";
|
|
13
|
-
import "./manifest-registry-
|
|
14
|
-
import "./dock-
|
|
13
|
+
import "./manifest-registry-_liSV_Vx.js";
|
|
14
|
+
import "./dock-C-w5XvOS.js";
|
|
15
15
|
import "./frontmatter-BnXqzQr3.js";
|
|
16
|
-
import "./skills-
|
|
17
|
-
import "./path-alias-guards-
|
|
16
|
+
import "./skills-CFYm0xdh.js";
|
|
17
|
+
import "./path-alias-guards-BoydiaPL.js";
|
|
18
18
|
import "./message-channel-DINJBdD0.js";
|
|
19
|
-
import "./sessions-
|
|
20
|
-
import "./plugins-
|
|
21
|
-
import "./accounts-
|
|
22
|
-
import "./accounts-
|
|
19
|
+
import "./sessions-BUNwVEqF.js";
|
|
20
|
+
import "./plugins-IFacUN_Q.js";
|
|
21
|
+
import "./accounts-BrWJjaKS.js";
|
|
22
|
+
import "./accounts-8qwgz384.js";
|
|
23
23
|
import "./logging-CFvkxgcX.js";
|
|
24
|
-
import "./accounts-
|
|
24
|
+
import "./accounts-BpS-Awr5.js";
|
|
25
25
|
import "./paths-ByCv35uy.js";
|
|
26
26
|
import "./chat-envelope-DDCB7eZC.js";
|
|
27
|
-
import "./net-
|
|
28
|
-
import "./tailnet-
|
|
29
|
-
import "./image-ops-
|
|
30
|
-
import "./pi-embedded-helpers-
|
|
31
|
-
import "./sandbox-
|
|
27
|
+
import "./net-C7TXXUto.js";
|
|
28
|
+
import "./tailnet-C4yxhmDk.js";
|
|
29
|
+
import "./image-ops-DWGnyTvC.js";
|
|
30
|
+
import "./pi-embedded-helpers-Be8qWeKb.js";
|
|
31
|
+
import "./sandbox-CDjV0Crv.js";
|
|
32
32
|
import "./tool-catalog-DN2kDDZk.js";
|
|
33
|
-
import "./chrome-
|
|
33
|
+
import "./chrome-BDFA9lPV.js";
|
|
34
34
|
import "./tailscale-CB_lUnsU.js";
|
|
35
|
-
import "./auth-
|
|
36
|
-
import "./server-context-
|
|
37
|
-
import "./paths-
|
|
35
|
+
import "./auth-Ahj-1B5R.js";
|
|
36
|
+
import "./server-context-DdGwcBos.js";
|
|
37
|
+
import "./paths-BVQ0udwc.js";
|
|
38
38
|
import "./redact-D1OBirZT.js";
|
|
39
39
|
import "./errors-Dt_4okVn.js";
|
|
40
|
-
import "./fs-safe-
|
|
41
|
-
import "./proxy-env-
|
|
42
|
-
import "./store-
|
|
43
|
-
import "./ports-
|
|
40
|
+
import "./fs-safe-B8J4dv27.js";
|
|
41
|
+
import "./proxy-env-Bx8OhutV.js";
|
|
42
|
+
import "./store-Dgl-neCe.js";
|
|
43
|
+
import "./ports-DqZBwUsy.js";
|
|
44
44
|
import "./trash-D9VuTy5D.js";
|
|
45
|
-
import "./server-middleware-
|
|
46
|
-
import "./tool-images-
|
|
45
|
+
import "./server-middleware-Dqzu_N47.js";
|
|
46
|
+
import "./tool-images-DbchBdq5.js";
|
|
47
47
|
import "./thinking-BxCyPtl0.js";
|
|
48
|
-
import "./models-config-
|
|
49
|
-
import "./model-catalog-
|
|
50
|
-
import "./fetch-
|
|
51
|
-
import { _ as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
52
|
-
import "./fetch-guard-
|
|
53
|
-
import "./image-
|
|
48
|
+
import "./models-config-CJq2ywhf.js";
|
|
49
|
+
import "./model-catalog-BYxSwIkt.js";
|
|
50
|
+
import "./fetch-BwrGQrFL.js";
|
|
51
|
+
import { _ as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-nnwJufig.js";
|
|
52
|
+
import "./fetch-guard-CHht1LfT.js";
|
|
53
|
+
import "./image-Dpt9TurJ.js";
|
|
54
54
|
import "./tool-display-DRwMjyJE.js";
|
|
55
|
-
import "./api-key-rotation-
|
|
55
|
+
import "./api-key-rotation-C9ywPLG3.js";
|
|
56
56
|
import "./proxy-fetch-BqEHARvZ.js";
|
|
57
57
|
|
|
58
58
|
//#region src/media-understanding/audio-preflight.ts
|
|
@@ -11,8 +11,8 @@ import "./plugins-7rATz3L_.js";
|
|
|
11
11
|
import "./accounts-C4E8dXY5.js";
|
|
12
12
|
import "./accounts-erBd-vFQ.js";
|
|
13
13
|
import "./image-ops-B57kBDSi.js";
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import "./chrome-
|
|
14
|
+
import "./pi-embedded-helpers-BthBxPYi.js";
|
|
15
|
+
import "./chrome-Cr8R7xl_.js";
|
|
16
16
|
import "./frontmatter-Bd5ovog5.js";
|
|
17
17
|
import "./skills-RKUR-FBW.js";
|
|
18
18
|
import "./path-alias-guards-DQAZEPdU.js";
|
|
@@ -24,8 +24,8 @@ import "./store-TUglTWiC.js";
|
|
|
24
24
|
import "./accounts-B8tD_UsF.js";
|
|
25
25
|
import "./paths-ClcxBVEC.js";
|
|
26
26
|
import "./tool-images-vmtyKntM.js";
|
|
27
|
-
import "./image-
|
|
28
|
-
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
27
|
+
import "./image-DoOVDHql.js";
|
|
28
|
+
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-1-9PFrzh.js";
|
|
29
29
|
import "./fetch-DJPm89Bh.js";
|
|
30
30
|
import "./fetch-guard-B21Cix4W.js";
|
|
31
31
|
import "./api-key-rotation-KGcAmHdg.js";
|
package/dist/{audio-transcription-runner-DpvjaNmr.js → audio-transcription-runner-1-9PFrzh.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { _ as runExec } from "./workspace-CJZ00IJ6.js";
|
|
|
4
4
|
import { M as resolveApiKeyForProvider, X as loadConfig, at as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, c as normalizeProviderId, ct as resolveIMessageAttachmentRoots, g as normalizeGoogleModelId, ir as resolveWinClawAgentDir, j as requireApiKey, ot as isInboundPathAllowed, st as mergeInboundPathRoots } from "./model-selection-mj3P0Z9o.js";
|
|
5
5
|
import { _ as normalizeChatType } from "./plugins-7rATz3L_.js";
|
|
6
6
|
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-B57kBDSi.js";
|
|
7
|
-
import { t as describeImageWithModel, w as ensureWinClawModelsJson } from "./image-
|
|
7
|
+
import { t as describeImageWithModel, w as ensureWinClawModelsJson } from "./image-DoOVDHql.js";
|
|
8
8
|
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-DJPm89Bh.js";
|
|
9
9
|
import { n as fetchWithTimeout } from "./fetch-timeout-Bghlv-lk.js";
|
|
10
10
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-B21Cix4W.js";
|
package/dist/{audio-transcription-runner-DGZYB2Wq.js → audio-transcription-runner-nnwJufig.js}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { E as logVerbose, k as shouldLogVerbose, st as resolvePreferredWinClawTmpDir } from "./entry.js";
|
|
2
|
-
import { $ as mergeInboundPathRoots, Cr as normalizeProviderId, Hr as normalizeGoogleModelId, Q as isInboundPathAllowed, Z as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, et as resolveIMessageAttachmentRoots, hi as resolveApiKeyForProvider, mi as requireApiKey } from "./auth-profiles-
|
|
3
|
-
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-
|
|
2
|
+
import { $ as mergeInboundPathRoots, Cr as normalizeProviderId, Hr as normalizeGoogleModelId, Q as isInboundPathAllowed, Z as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, et as resolveIMessageAttachmentRoots, hi as resolveApiKeyForProvider, mi as requireApiKey } from "./auth-profiles-DF0cLC20.js";
|
|
3
|
+
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-Dany4R2i.js";
|
|
4
4
|
import { n as runExec } from "./exec-CaapFZaD.js";
|
|
5
|
-
import { j as normalizeChatType } from "./plugins-
|
|
6
|
-
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-
|
|
5
|
+
import { j as normalizeChatType } from "./plugins-IFacUN_Q.js";
|
|
6
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-DWGnyTvC.js";
|
|
7
7
|
import { i as formatUncaughtError, n as extractErrorCode, s as readErrorName, t as collectErrorGraphCandidates } from "./errors-Dt_4okVn.js";
|
|
8
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
9
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-
|
|
8
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-BYxSwIkt.js";
|
|
9
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-BwrGQrFL.js";
|
|
10
10
|
import { n as fetchWithTimeout } from "./fetch-timeout-B3GDS_vc.js";
|
|
11
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
12
|
-
import { t as describeImageWithModel } from "./image-
|
|
13
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
11
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-CHht1LfT.js";
|
|
12
|
+
import { t as describeImageWithModel } from "./image-Dpt9TurJ.js";
|
|
13
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-C9ywPLG3.js";
|
|
14
14
|
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-BqEHARvZ.js";
|
|
15
15
|
import process$1 from "node:process";
|
|
16
16
|
import { fileURLToPath } from "node:url";
|
|
17
17
|
import os from "node:os";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { constants } from "node:fs";
|
|
20
|
-
import
|
|
20
|
+
import fs$1 from "node:fs/promises";
|
|
21
21
|
import crypto from "node:crypto";
|
|
22
22
|
|
|
23
23
|
//#region src/media-understanding/attachments.normalize.ts
|
|
@@ -426,7 +426,7 @@ var MediaAttachmentCache = class {
|
|
|
426
426
|
const size = await this.ensureLocalStat(entry);
|
|
427
427
|
if (entry.resolvedPath) {
|
|
428
428
|
if (size !== void 0 && size > params.maxBytes) throw new MediaUnderstandingSkipError("maxBytes", `Attachment ${params.attachmentIndex + 1} exceeds maxBytes ${params.maxBytes}`);
|
|
429
|
-
const buffer = await
|
|
429
|
+
const buffer = await fs$1.readFile(entry.resolvedPath);
|
|
430
430
|
entry.buffer = buffer;
|
|
431
431
|
entry.bufferMime = entry.bufferMime ?? entry.attachment.mime ?? await detectMime({
|
|
432
432
|
buffer,
|
|
@@ -496,10 +496,10 @@ var MediaAttachmentCache = class {
|
|
|
496
496
|
prefix: "winclaw-media",
|
|
497
497
|
extension: path.extname(bufferResult.fileName || "") || ""
|
|
498
498
|
});
|
|
499
|
-
await
|
|
499
|
+
await fs$1.writeFile(tmpPath, bufferResult.buffer);
|
|
500
500
|
entry.tempPath = tmpPath;
|
|
501
501
|
entry.tempCleanup = async () => {
|
|
502
|
-
await
|
|
502
|
+
await fs$1.unlink(tmpPath).catch(() => {});
|
|
503
503
|
};
|
|
504
504
|
return {
|
|
505
505
|
path: tmpPath,
|
|
@@ -546,12 +546,12 @@ var MediaAttachmentCache = class {
|
|
|
546
546
|
if (entry.statSize !== void 0) return entry.statSize;
|
|
547
547
|
try {
|
|
548
548
|
const currentPath = entry.resolvedPath;
|
|
549
|
-
const stat = await
|
|
549
|
+
const stat = await fs$1.stat(currentPath);
|
|
550
550
|
if (!stat.isFile()) {
|
|
551
551
|
entry.resolvedPath = void 0;
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
|
-
const canonicalPath = await
|
|
554
|
+
const canonicalPath = await fs$1.realpath(currentPath).catch(() => currentPath);
|
|
555
555
|
if (!isInboundPathAllowed({
|
|
556
556
|
filePath: canonicalPath,
|
|
557
557
|
roots: await this.getCanonicalLocalPathRoots()
|
|
@@ -573,7 +573,7 @@ var MediaAttachmentCache = class {
|
|
|
573
573
|
if (this.canonicalLocalPathRoots) return await this.canonicalLocalPathRoots;
|
|
574
574
|
this.canonicalLocalPathRoots = (async () => mergeInboundPathRoots(this.localPathRoots, await Promise.all(this.localPathRoots.map(async (root) => {
|
|
575
575
|
if (root.includes("*")) return root;
|
|
576
|
-
return await
|
|
576
|
+
return await fs$1.realpath(root).catch(() => root);
|
|
577
577
|
}))))();
|
|
578
578
|
return await this.canonicalLocalPathRoots;
|
|
579
579
|
}
|
|
@@ -646,7 +646,7 @@ const MIN_AUDIO_FILE_BYTES = 1024;
|
|
|
646
646
|
async function fileExists(filePath) {
|
|
647
647
|
if (!filePath) return false;
|
|
648
648
|
try {
|
|
649
|
-
await
|
|
649
|
+
await fs$1.stat(filePath);
|
|
650
650
|
return true;
|
|
651
651
|
} catch {
|
|
652
652
|
return false;
|
|
@@ -1237,7 +1237,7 @@ async function resolveCliOutput(params) {
|
|
|
1237
1237
|
const commandId = commandBase(params.command);
|
|
1238
1238
|
const fileOutput = commandId === "whisper-cli" ? resolveWhisperCppOutputPath(params.args) : commandId === "whisper" ? resolveWhisperOutputPath(params.args, params.mediaPath) : commandId === "parakeet-mlx" ? resolveParakeetOutputPath(params.args, params.mediaPath) : null;
|
|
1239
1239
|
if (fileOutput && await fileExists(fileOutput)) try {
|
|
1240
|
-
const content = await
|
|
1240
|
+
const content = await fs$1.readFile(fileOutput, "utf8");
|
|
1241
1241
|
if (content.trim()) return content.trim();
|
|
1242
1242
|
} catch {}
|
|
1243
1243
|
if (commandId === "gemini") {
|
|
@@ -1546,10 +1546,10 @@ async function runCliEntry(params) {
|
|
|
1546
1546
|
timeoutMs
|
|
1547
1547
|
});
|
|
1548
1548
|
if (capability === "audio") assertMinAudioSize({
|
|
1549
|
-
size: (await
|
|
1549
|
+
size: (await fs$1.stat(pathResult.path)).size,
|
|
1550
1550
|
attachmentIndex: params.attachmentIndex
|
|
1551
1551
|
});
|
|
1552
|
-
const outputDir = await
|
|
1552
|
+
const outputDir = await fs$1.mkdtemp(path.join(resolvePreferredWinClawTmpDir(), "winclaw-media-cli-"));
|
|
1553
1553
|
const mediaPath = pathResult.path;
|
|
1554
1554
|
const outputBase = path.join(outputDir, path.parse(mediaPath).name);
|
|
1555
1555
|
const templCtx = {
|
|
@@ -1583,7 +1583,7 @@ async function runCliEntry(params) {
|
|
|
1583
1583
|
model: command
|
|
1584
1584
|
};
|
|
1585
1585
|
} finally {
|
|
1586
|
-
await
|
|
1586
|
+
await fs$1.rm(outputDir, {
|
|
1587
1587
|
recursive: true,
|
|
1588
1588
|
force: true
|
|
1589
1589
|
}).catch(() => {});
|
|
@@ -1627,9 +1627,9 @@ function candidateBinaryNames(name) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
async function isExecutable(filePath) {
|
|
1629
1629
|
try {
|
|
1630
|
-
if (!(await
|
|
1630
|
+
if (!(await fs$1.stat(filePath)).isFile()) return false;
|
|
1631
1631
|
if (process.platform === "win32") return true;
|
|
1632
|
-
await
|
|
1632
|
+
await fs$1.access(filePath, constants.X_OK);
|
|
1633
1633
|
return true;
|
|
1634
1634
|
} catch {
|
|
1635
1635
|
return false;
|