winclaw 2026.4.12 → 2026.4.15
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-BpS-Awr5.js → accounts-CLKFSM00.js} +1 -1
- package/dist/{accounts-8qwgz384.js → accounts-CTJXIABG.js} +1 -1
- package/dist/{accounts-BrWJjaKS.js → accounts-cYG8442L.js} +7 -7
- package/dist/{acp-cli-DOyxCPhJ.js → acp-cli-BlB6CU93.js} +8 -8
- package/dist/{agent-scope-Dany4R2i.js → agent-scope-D-i-vMLS.js} +17 -17
- package/dist/{agents-Cn4qIPxc.js → agents-CX2txmqX.js} +14 -14
- package/dist/{agents.config-CE8hWkEz.js → agents.config-0vQu2i8L.js} +1 -1
- package/dist/{agents.config-B1nW2ubn.js → agents.config-DNCnFEsn.js} +2 -2
- package/dist/{api-key-rotation-DX8FQ-la.js → api-key-rotation-6yvrHUjY.js} +1 -1
- package/dist/{audio-preflight-D-fJAjmv.js → audio-preflight-BpK1Fpki.js} +34 -34
- package/dist/{audio-transcription-runner-CRSNM03k.js → audio-transcription-runner-UjPRrQgJ.js} +23 -23
- package/dist/{audit-CyNXGkn3.js → audit-DRPXorDm.js} +29 -29
- package/dist/{auth-CnAV77Sn.js → auth--KDo_E_4.js} +1 -1
- package/dist/{auth-choice-Blrth3cm.js → auth-choice-BjjEVgeA.js} +1 -1
- package/dist/{auth-choice-wYjoIIP3.js → auth-choice-BlWvyYXQ.js} +11 -11
- package/dist/{auth-choice-VaQfxfmJ.js → auth-choice-DM5Plhrj.js} +13 -13
- package/dist/{auth-choice.apply-helpers-DcSztsOH.js → auth-choice.apply-helpers-CJy8V2Xp.js} +1 -1
- package/dist/{auth-profiles-Ckp5jw_h.js → auth-profiles-C0_vbRBI.js} +16 -16
- package/dist/{auth-token-BxX2fAIF.js → auth-token-BsypkvZB.js} +1 -1
- package/dist/{banner-CLndcQom.js → banner-L3B6lMrk.js} +2 -2
- package/dist/{bonjour-discovery-TLpgifVr.js → bonjour-discovery-ZXskIxLW.js} +1 -1
- package/dist/{browser-cli-bFKY_VZG.js → browser-cli-DbIjFtFV.js} +12 -12
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/{call-yVj9RKC4.js → call-CmNNda8m.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-D4Yftz20.js → channel-account-context-B4ofKr9t.js} +5 -5
- package/dist/{channel-activity-D_GsFyli.js → channel-activity-aWOCqUEs.js} +1 -1
- package/dist/{channel-options-DTjT-LHl.js → channel-options-DmNFGvdK.js} +3 -3
- package/dist/{channel-options-Co1glnyC.js → channel-options-k5-C0c8X.js} +1 -1
- package/dist/{channel-selection-Bke39fer.js → channel-selection-5G2iw3CB.js} +1 -1
- package/dist/{channel-web-uGZCxCme.js → channel-web-BJijlGLi.js} +1 -1
- package/dist/{channel-web-Dzl_RoNM.js → channel-web-DMprT-KZ.js} +17 -17
- package/dist/{channels-cli-CQlZKxnb.js → channels-cli-BLtU1Eaf.js} +93 -93
- package/dist/{channels-cli-CsHOkpig.js → channels-cli-CTTfTJbm.js} +6 -6
- package/dist/{channels-status-issues-wCgCdUDu.js → channels-status-issues-DpfEWI4l.js} +1 -1
- package/dist/{chrome-MZdKzhd4.js → chrome-C3_fgvw4.js} +4 -4
- package/dist/{clawbot-cli-4S0Jk3Re.js → clawbot-cli-CiOmmnPO.js} +11 -11
- package/dist/{cli-DYX38IUY.js → cli-BhcDvKXU.js} +1 -1
- package/dist/cli-DVfR87ph.js +154 -0
- package/dist/{client-LzBGN2_q.js → client-BYyYW3K0.js} +2 -2
- package/dist/{command-registry-BTuVKcvm.js → command-registry-COoi0fz7.js} +11 -11
- package/dist/{command-secret-targets-mNBDbtq8.js → command-secret-targets-ObW6kBQd.js} +4 -4
- package/dist/{commands-DmBkhPD-.js → commands-4mnxaSoA.js} +1 -1
- package/dist/{commands-registry-BvyQQ61P.js → commands-registry-8CcrHp7D.js} +3 -3
- package/dist/{completion-cli-DGZkCveB.js → completion-cli-C0y0IigW.js} +13 -13
- package/dist/{completion-cli-DosZXKwQ.js → completion-cli-frbl2db7.js} +1 -1
- package/dist/{config-cli-CB2RHrX8.js → config-cli-CXbrJMym.js} +1 -1
- package/dist/{config-cli-ugle5M9p.js → config-cli-fXb0oUrl.js} +7 -7
- package/dist/{config-guard-DEisQhpy.js → config-guard-DMjkNbiG.js} +3 -3
- package/dist/{config-validation-BSCTo9Mn.js → config-validation-BVDib1S1.js} +3 -3
- package/dist/{configure-NXESvQyn.js → configure-BprsqHyj.js} +17 -17
- package/dist/{configure-D2I6ORGV.js → configure-CgwtVHTm.js} +3 -3
- package/dist/{control-ui-assets-5F0FEjfM.js → control-ui-assets-B0DdamQU.js} +1 -1
- package/dist/{cron-cli-Ba6hPFCZ.js → cron-cli-C79a_a9Q.js} +11 -11
- package/dist/{daemon-cli-lbUiDK1P.js → daemon-cli-DBMl1neJ.js} +16 -16
- package/dist/{daemon-install-DNhR8NtL.js → daemon-install-C029NlXk.js} +4 -4
- package/dist/{daemon-install-helpers-DWmF3oFP.js → daemon-install-helpers-D1YQ03lO.js} +11 -11
- package/dist/{deliver-DpjgvKXk.js → deliver-3G7ZHuBV.js} +7 -7
- package/dist/deliver-runtime-BiUf_p4s.js +57 -0
- package/dist/deps-send-discord.runtime-CaQ1knyQ.js +32 -0
- package/dist/deps-send-imessage.runtime-CZCKtTEA.js +31 -0
- package/dist/deps-send-signal.runtime-D3kLxuKz.js +30 -0
- package/dist/deps-send-slack.runtime-Mw-zSbtA.js +28 -0
- package/dist/deps-send-telegram.runtime-FIWepZsM.js +34 -0
- package/dist/{deps-send-whatsapp.runtime-DDQQmVsc.js → deps-send-whatsapp.runtime-BPQDtaQf.js} +2 -2
- package/dist/deps-send-whatsapp.runtime-Bd9UC03E.js +115 -0
- package/dist/{deps-send-whatsapp.runtime-BvMH3NBS.js → deps-send-whatsapp.runtime-D6g298km.js} +2 -2
- package/dist/{deps-send-whatsapp.runtime--HWPu9qY.js → deps-send-whatsapp.runtime-DuYlepH5.js} +3 -3
- package/dist/{devices-cli-Dcn9jgVF.js → devices-cli-CuREwwvN.js} +8 -8
- package/dist/{diagnostic-CxO1LgMH.js → diagnostic-Chwtt8I4.js} +1 -1
- package/dist/{diagnostics-BDjbQJxP.js → diagnostics-KfpqzhsS.js} +5 -5
- package/dist/{directory-cli-2NiA6lFd.js → directory-cli-CL4onMod.js} +7 -7
- package/dist/{dns-cli-DXcp-ZNe.js → dns-cli-CC9zZsXe.js} +5 -5
- package/dist/{dock-C-w5XvOS.js → dock-ClcGZ0LV.js} +4 -4
- package/dist/{docs-cli-BRob5CHm.js → docs-cli-DkQBHXw-.js} +4 -4
- package/dist/{doctor-completion-NtPr5pMv.js → doctor-completion-C081cGsd.js} +2 -2
- package/dist/{doctor-completion-FX15vkAR.js → doctor-completion-D-mJ54pZ.js} +1 -1
- package/dist/{doctor-config-flow-nsTC6y19.js → doctor-config-flow-DAKQgNc6.js} +15 -15
- package/dist/{enable-BQen2xUb.js → enable-DawrgAnk.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-BDxoD2pP.js → exec-approvals-allowlist-CgO3-iPu.js} +1 -1
- package/dist/{exec-approvals-cli-Cp3WmN1t.js → exec-approvals-cli-Ify8VLSY.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-C7sG8mhp.js → exec-safe-bin-runtime-policy-By-anRPS.js} +2 -2
- package/dist/extensionAPI.js +1 -1
- package/dist/{fetch-CVGiNhuf.js → fetch-DyoRWiT-.js} +3 -3
- package/dist/{fetch-guard-BdJ7lME2.js → fetch-guard-DF0_kLSc.js} +1 -1
- package/dist/fs-safe-Dha0DfFC.js +352 -0
- package/dist/{gateway-cli-Ps6UFSFL.js → gateway-cli-BK33V7bY.js} +192 -156
- package/dist/{gateway-cli-CMVHrQPq.js → gateway-cli-n7nAiuCb.js} +46 -10
- package/dist/{gateway-rpc-BdlE-Hja.js → gateway-rpc-CSeb8o-w.js} +1 -1
- package/dist/{health-hcLOMFbT.js → health-CWyTBdFi.js} +11 -11
- package/dist/{health-DzveG_zc.js → health-Crvt6pK2.js} +1 -1
- package/dist/{hooks-cli-C881S_4c.js → hooks-cli-Dj-LkGM9.js} +81 -81
- package/dist/{hooks-cli-BUbV0Uba.js → hooks-cli-guB2uw2a.js} +2 -2
- package/dist/{hooks-status-CQjtRM1s.js → hooks-status-Cjg5SLpX.js} +1 -1
- package/dist/{image-ops-DWGnyTvC.js → image-ops-eFMqXMDE.js} +10 -10
- package/dist/image-runtime-CsLPuRVE.js +51 -0
- package/dist/{image-COh2_3E2.js → image-zu8Q4gsy.js} +5 -5
- package/dist/index.js +6 -6
- package/dist/{inspect-DbVcDDi7.js → inspect-XmcWN97u.js} +4 -4
- package/dist/{install-safe-path-FR9r9Dmi.js → install-safe-path-DNotGe9T.js} +25 -25
- package/dist/{installs-7zsfIb7P.js → installs-zKF10nZF.js} +9 -9
- package/dist/{ipv4-D8H1uDoq.js → ipv4-xGA578zM.js} +1 -1
- package/dist/{ir-CYJ0KNbJ.js → ir-Dnquxoz8.js} +8 -8
- package/dist/{issue-format-rXDeQGUX.js → issue-format-DUrssptL.js} +1 -1
- package/dist/{json-files-D9ZHO8Ud.js → json-files-kWpauJWO.js} +8 -8
- package/dist/{lifecycle-core-H_Cd19GX.js → lifecycle-core-CyyViGlP.js} +5 -5
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{login-Btnmps3S.js → login-CS326UA-.js} +3 -3
- package/dist/{login-qr-DYZ9Y8Oi.js → login-qr-DODveeI1.js} +6 -6
- package/dist/{logs-cli-BciLawXU.js → logs-cli-CUbhAWk5.js} +9 -9
- package/dist/{manager-ClpMRt6c.js → manager-Itd8mwC6.js} +14 -14
- package/dist/manager-runtime-CGMfvBou.js +22 -0
- package/dist/{manifest-registry-_liSV_Vx.js → manifest-registry-CI-UuKUO.js} +1 -1
- package/dist/{memory-cli-CTjStkNK.js → memory-cli-BSjyoCME.js} +12 -12
- package/dist/{model-CJZD0FVc.js → model-FuEe2Ft9.js} +2 -2
- package/dist/{model-catalog-qN_RooIW.js → model-catalog-B-CI_Q76.js} +3 -3
- package/dist/{model-picker-DWShnz0q.js → model-picker-BZqbkINL.js} +4 -4
- package/dist/{models-DZrL5phR.js → models-6MkRVzy6.js} +17 -17
- package/dist/{models-cli-MoOf2uf6.js → models-cli-CoBt84T0.js} +78 -78
- package/dist/{models-cli-CbrmMDzq.js → models-cli-CzptLq5S.js} +2 -2
- package/dist/{models-config-Dp2QIxnd.js → models-config-tPZvlEX4.js} +6 -6
- package/dist/{net-Bj5kyhic.js → net-CXrvhn9o.js} +2 -2
- package/dist/{node-cli-Dl-3Kbvh.js → node-cli-DxuXZEka.js} +33 -33
- package/dist/{node-command-policy-CmGM0UDZ.js → node-command-policy-hSqGZL6Y.js} +1 -1
- package/dist/{node-service-L9-L8-7x.js → node-service-CLtiUeNO.js} +1 -1
- package/dist/{nodes-cli-DVOA51fF.js → nodes-cli-8GveHDsf.js} +16 -16
- package/dist/{nodes-screen-m-f8xnMf.js → nodes-screen-OQegsPOR.js} +7 -7
- package/dist/{npm-pack-install-B3VCcNWC.js → npm-pack-install-DZvYhRnM.js} +18 -18
- package/dist/{npm-resolution-Db9rnV6l.js → npm-resolution-Bfey8AGN.js} +4 -4
- package/dist/{npm-resolution-BAEjh9ck.js → npm-resolution-Bvk9i91o.js} +1 -1
- package/dist/{onboard-BVvmN6Qt.js → onboard-B4nIdd6M.js} +6 -6
- package/dist/{onboard-xImDF3t3.js → onboard-BihT0rZa.js} +2 -2
- package/dist/{onboard-channels-9cHMfEmc.js → onboard-channels-DlYFHy_w.js} +1 -1
- package/dist/{onboard-channels-gbEc34Ww.js → onboard-channels-JW7XvnNO.js} +21 -21
- package/dist/{onboard-custom-B_v0Ajog.js → onboard-custom-DW1WeR_n.js} +4 -4
- package/dist/{onboard-helpers-6Smrn-T1.js → onboard-helpers-b9T97_8S.js} +10 -10
- package/dist/{onboard-hooks-DRkLf5gL.js → onboard-hooks-BTD0YhRI.js} +4 -4
- package/dist/{onboard-remote-CjyKzrPA.js → onboard-remote-DflQ6_sf.js} +4 -4
- package/dist/{onboard-skills-ClayTs-N.js → onboard-skills-DF5OkxRl.js} +4 -4
- package/dist/{onboarding-DnkzTmfA.js → onboarding-2x-Z-GgO.js} +3 -3
- package/dist/{onboarding-B2v0JqoQ.js → onboarding-B9aZTYLr.js} +14 -14
- package/dist/{onboarding.finalize-ByFKRfW5.js → onboarding.finalize-C1fz4pba.js} +5 -5
- package/dist/{onboarding.finalize-BxarLhx-.js → onboarding.finalize-CO-I_1zf.js} +87 -87
- package/dist/{onboarding.gateway-config-hFKNYt9m.js → onboarding.gateway-config-Dqp44gBx.js} +18 -18
- package/dist/{onboarding.secret-input-DJOIi-zO.js → onboarding.secret-input-BqpyOfgu.js} +1 -1
- package/dist/{openai-model-default-WrjUZSLr.js → openai-model-default-Duce_n_s.js} +2 -2
- package/dist/{outbound-attachment-C6exYeCf.js → outbound-attachment-DEbgECRe.js} +2 -2
- package/dist/{outbound-Tv8tCXji.js → outbound-gb5XK6iG.js} +3 -3
- package/dist/{pairing-cli-9Xy08cjw.js → pairing-cli-Dm7rMKEY.js} +8 -8
- package/dist/{pairing-labels-DPcMglcJ.js → pairing-labels-BFRaTO20.js} +1 -1
- package/dist/{pairing-store-Dv0sC8Jz.js → pairing-store-Jfk6MAHv.js} +3 -3
- package/dist/path-alias-guards-9OJ1UBCd.js +43 -0
- package/dist/{path-safety-CSCsbd-j.js → path-safety-Cq9rwfZN.js} +1 -1
- package/dist/{paths-BVQ0udwc.js → paths-C5mR1YC-.js} +9 -9
- package/dist/{pi-embedded-Bmn4yfRv.js → pi-embedded-75nAz9hk.js} +15 -8
- package/dist/{pi-embedded-DOoz8kXI.js → pi-embedded-CXszAhIB.js} +15 -8
- package/dist/{pi-embedded-helpers-5DVpps9M.js → pi-embedded-helpers-xQd6fIj4.js} +6 -6
- package/dist/{pi-model-discovery-D0Rvs4r3.js → pi-model-discovery-Cd0pEB8d.js} +1 -1
- package/dist/{pi-model-discovery-runtime-BdvRmBNY.js → pi-model-discovery-runtime-Dpl9vq-K.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-DUKHYZ0f.js → pi-tools.before-tool-call.runtime-C36agKpr.js} +5 -5
- package/dist/{pi-tools.policy-UvhsU9iG.js → pi-tools.policy-bVlHvdWR.js} +5 -5
- package/dist/{plugin-auto-enable-BONFXc29.js → plugin-auto-enable-DaK3KSuE.js} +3 -3
- package/dist/{plugin-registry-C4R1g1Sn.js → plugin-registry-C0ERh2OC.js} +1 -1
- package/dist/{plugin-registry-BpLkHLov.js → plugin-registry-CvOQPnfx.js} +3 -3
- package/dist/plugin-sdk/accounts-1bzzEqCq.js +288 -0
- package/dist/plugin-sdk/accounts-D5Ytgn1j.js +35 -0
- package/dist/plugin-sdk/accounts-KQqup-wT.js +46 -0
- package/dist/plugin-sdk/active-listener-Cc-BM45w.js +50 -0
- package/dist/plugin-sdk/api-key-rotation-Cb3E9LBK.js +181 -0
- package/dist/plugin-sdk/audio-preflight-Dikq_pYB.js +69 -0
- package/dist/plugin-sdk/audio-transcription-runner-u3cAlUX5.js +2176 -0
- package/dist/plugin-sdk/audit-membership-runtime-Zn07K1la.js +58 -0
- package/dist/plugin-sdk/channel-activity-BN0W3tud.js +94 -0
- package/dist/plugin-sdk/{channel-web--vkj9C73.js → channel-web-BQN8YDS1.js} +1 -1
- package/dist/plugin-sdk/channel-web-Bjhf6Oqu.js +2256 -0
- package/dist/plugin-sdk/{channel-web-CmWlFwt_.js → channel-web-CJgKp11D.js} +1 -1
- package/dist/plugin-sdk/chrome-CtiAt3Zb.js +2415 -0
- package/dist/plugin-sdk/commands-registry-DlifF3We.js +1125 -0
- package/dist/plugin-sdk/compat.js +2 -2
- package/dist/plugin-sdk/config-B4-Hm0aM.js +17959 -0
- package/dist/plugin-sdk/deliver-mx2VtnYT.js +1719 -0
- package/dist/plugin-sdk/deliver-runtime-oGAUVVor.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-D1LGNWgt.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-mLkXTidY.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BKdi95iT.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-Ctx2XGy0.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-B5QfK_Jx.js +24 -0
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-1ir8PBXo.js → deps-send-whatsapp.runtime-BcB7okSM.js} +3 -3
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BzAk4g2n.js +57 -0
- package/dist/plugin-sdk/{deps-send-whatsapp.runtime-BQ4lsjtF.js → deps-send-whatsapp.runtime-D8auvsqw.js} +3 -3
- package/dist/plugin-sdk/diagnostic-CAKNuXMX.js +319 -0
- package/dist/plugin-sdk/errors-DAfLLw2G.js +54 -0
- package/dist/plugin-sdk/fetch-guard-8G2MckwA.js +156 -0
- package/dist/{fs-safe-B8J4dv27.js → plugin-sdk/fs-safe-Cn3EBd8y.js} +6 -6
- package/dist/plugin-sdk/googlechat.js +2 -2
- package/dist/plugin-sdk/image-CBt_FCcy.js +2314 -0
- package/dist/plugin-sdk/image-ops-CxVlbwRv.js +584 -0
- package/dist/plugin-sdk/image-runtime-Bw_agCNy.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/infra/grc-client.d.ts +6 -0
- package/dist/plugin-sdk/ir-XcAR7roj.js +1296 -0
- package/dist/plugin-sdk/irc.js +2 -2
- package/dist/plugin-sdk/local-roots-BY5Rqkq-.js +186 -0
- package/dist/plugin-sdk/logger-BHi7awW5.js +1168 -0
- package/dist/plugin-sdk/login-CzSCUeAF.js +57 -0
- package/dist/plugin-sdk/login-qr-EUI3Hbtb.js +320 -0
- package/dist/plugin-sdk/manager-Bl39FmYC.js +3929 -0
- package/dist/plugin-sdk/manager-runtime-BgGPHCst.js +15 -0
- package/dist/plugin-sdk/outbound-DaYy197W.js +212 -0
- package/dist/plugin-sdk/outbound-attachment-DEDdZu2S.js +19 -0
- package/dist/{path-alias-guards-BoydiaPL.js → plugin-sdk/path-alias-guards-BE5cXKeM.js} +1 -1
- package/dist/plugin-sdk/paths-QKxrPQAs.js +166 -0
- package/dist/plugin-sdk/pi-embedded-helpers-DyCBt4Rw.js +9630 -0
- package/dist/plugin-sdk/pi-model-discovery-BQvluBtf.js +134 -0
- package/dist/plugin-sdk/pi-model-discovery-runtime-D4Oj-MtR.js +8 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-B193V6BP.js +354 -0
- package/dist/plugin-sdk/plugins-OYo1J6HN.js +864 -0
- package/dist/plugin-sdk/proxy-fetch-Kqzg_jlJ.js +38 -0
- package/dist/plugin-sdk/pw-ai-v036me-h.js +1938 -0
- package/dist/{qmd-manager-COHJs6wn.js → plugin-sdk/qmd-manager-DXg30o7S.js} +11 -15
- package/dist/plugin-sdk/query-expansion-CQ_uOkGu.js +1011 -0
- package/dist/plugin-sdk/redact-z2L7o3IH.js +319 -0
- package/dist/plugin-sdk/reply-B261Yqf1.js +100515 -0
- package/dist/plugin-sdk/{reply-DdQ1v0Vz.js → reply-ClM37UNB.js} +15 -8
- package/dist/plugin-sdk/{reply-C3taBv3H.js → reply-DXY7ITcX.js} +15 -8
- package/dist/plugin-sdk/resolve-outbound-target-D5oEg9at.js +40 -0
- package/dist/plugin-sdk/run-with-concurrency-JUi6fZ2Z.js +1994 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-cYTZXZFn.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Qlry3PSb.js +19 -0
- package/dist/plugin-sdk/send-4n1llZdq.js +2587 -0
- package/dist/plugin-sdk/send-BArogNRA.js +414 -0
- package/dist/plugin-sdk/send-BlgyWftU.js +503 -0
- package/dist/plugin-sdk/send-CRgbJsRP.js +3135 -0
- package/dist/plugin-sdk/send-CfuoLePn.js +540 -0
- package/dist/plugin-sdk/session-CCGT3f2D.js +169 -0
- package/dist/plugin-sdk/skill-commands-CV-Axgrh.js +353 -0
- package/dist/plugin-sdk/skills-CmXOys3q.js +1428 -0
- package/dist/plugin-sdk/slack.js +2 -2
- package/dist/plugin-sdk/slash-commands.runtime-DKJL3uXI.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-C2HCM1O3.js +52 -0
- package/dist/plugin-sdk/{slash-dispatch.runtime-FLyWL6-v.js → slash-dispatch.runtime-DaYtFRWU.js} +1 -1
- package/dist/plugin-sdk/{slash-dispatch.runtime-EIcSjzV6.js → slash-dispatch.runtime-Dpv4eC9j.js} +1 -1
- package/dist/plugin-sdk/slash-skill-commands.runtime-D2QHo42_.js +16 -0
- package/dist/plugin-sdk/ssrf-CGW1yzyH.js +202 -0
- package/dist/plugin-sdk/store-CScKIKO6.js +81 -0
- package/dist/plugin-sdk/subagent-registry-runtime-BuGiqOro.js +52 -0
- package/dist/plugin-sdk/{subagent-registry-runtime-BZBszdV_.js → subagent-registry-runtime-CtoyibHO.js} +1 -1
- package/dist/plugin-sdk/{subagent-registry-runtime-BCLoDLV3.js → subagent-registry-runtime-JKJiu59Y.js} +1 -1
- package/dist/plugin-sdk/tables-OOlL_rlP.js +55 -0
- package/dist/{target-errors-Bd8kj4z9.js → plugin-sdk/target-errors-CcLN4iYc.js} +2 -2
- package/dist/plugin-sdk/telegram.js +2 -2
- package/dist/plugin-sdk/thinking-Dyp8-p1E.js +1206 -0
- package/dist/plugin-sdk/tokens-kIYqzGs4.js +52 -0
- package/dist/plugin-sdk/tool-images-DENWSk8t.js +274 -0
- package/dist/plugin-sdk/{web-vd10nwSl.js → web-BBn1-pYI.js} +2 -2
- package/dist/plugin-sdk/web-CBSn8sWT.js +56 -0
- package/dist/plugin-sdk/{web-CMWNFG7y.js → web-CSoomDTk.js} +2 -2
- package/dist/plugin-sdk/whatsapp-actions-CXIV2vRJ.js +80 -0
- package/dist/plugin-sdk/whatsapp.js +2 -2
- package/dist/{plugins-IFacUN_Q.js → plugins-C1OgLvb4.js} +2 -2
- package/dist/{plugins-cli-A6jkw2EF.js → plugins-cli-CEaQu5Ht.js} +83 -83
- package/dist/{plugins-cli-DGU0BLFG.js → plugins-cli-uh6Vq7sY.js} +2 -2
- package/dist/{ports-DqZBwUsy.js → ports-CfOim1GC.js} +2 -2
- package/dist/{ports-FLn4cVl7.js → ports-Dw-3Gxsb.js} +1 -1
- package/dist/{probe-BHa1tp-C.js → probe-DB96HNqH.js} +2 -2
- package/dist/{program-D52daU18.js → program-CKCmN_0Z.js} +81 -81
- package/dist/{program-context-vL9v5XPK.js → program-context-CRl12pm7.js} +17 -17
- package/dist/{prompt-select-styled-cwgaDSGh.js → prompt-select-styled-DULY98q4.js} +4 -4
- package/dist/{prompt-select-styled-fegMKdNU.js → prompt-select-styled-XIgXjwDs.js} +40 -40
- package/dist/{provider-auth-helpers-CrfQ_NTa.js → provider-auth-helpers-CSXy5mwV.js} +1 -1
- package/dist/{provider-auth-helpers-Dw15YdjG.js → provider-auth-helpers-DTqftLI_.js} +5 -5
- package/dist/{proxy-env-C0nYsvsi.js → proxy-env-CmJ7_jtU.js} +1 -1
- package/dist/{push-apns--UMclnmh.js → push-apns-BarXLxMo.js} +5 -5
- package/dist/{push-apns-C7wV7hoi.js → push-apns-KhdUmquK.js} +1 -1
- package/dist/{pw-ai-CPNq1DS5.js → pw-ai-CFIm6dB7.js} +18 -18
- package/dist/qmd-manager-oU4X85hj.js +1452 -0
- package/dist/{qr-cli-CRvrxPDx.js → qr-cli-geB0TD3J.js} +2 -2
- package/dist/{query-expansion-IQFdQdeu.js → query-expansion-Cja4xprw.js} +12 -12
- package/dist/{redact-snapshot-DNLo0954.js → redact-snapshot-CjRldBIQ.js} +1 -1
- package/dist/{register.agent-CBexnivh.js → register.agent-BFIsttfs.js} +6 -6
- package/dist/{register.agent-94GnVp6T.js → register.agent-b0CO-tvB.js} +94 -94
- package/dist/register.configure-CwkHZdyl.js +162 -0
- package/dist/{register.configure-BdRiSCKN.js → register.configure-HSzIccG7.js} +7 -7
- package/dist/{register.maintenance-CQfJvJKV.js → register.maintenance-BQGCpPrg.js} +7 -7
- package/dist/{register.maintenance-BlNm74nF.js → register.maintenance-CB86OrUs.js} +95 -95
- package/dist/{register.message-BTMhE3kC.js → register.message-BGPuSS6d.js} +74 -74
- package/dist/{register.message-BmUZcvvD.js → register.message-hF5qNLSi.js} +2 -2
- package/dist/{register.onboard-x6C905b1.js → register.onboard-BOt-dKmq.js} +18 -18
- package/dist/{register.onboard-CXfZac4u.js → register.onboard-ByWKzcpV.js} +2 -2
- package/dist/{register.setup-CUTXyoF5.js → register.setup-Cc0mwOQE.js} +2 -2
- package/dist/{register.setup-C3iW4NGH.js → register.setup-DdcxUm5_.js} +21 -21
- package/dist/{register.status-health-sessions-DzmHmC-Q.js → register.status-health-sessions-64fMFN_3.js} +3 -3
- package/dist/{register.status-health-sessions-wLex5oV4.js → register.status-health-sessions-UFH3kcPB.js} +89 -89
- package/dist/{register.subclis-5qJkj1QK.js → register.subclis-BAaiqXoZ.js} +31 -31
- package/dist/{reply-3fn9MsXU.js → reply-Dy5H3IeX.js} +15 -8
- package/dist/{rpc-C3SnXIiv.js → rpc-VRU7ai3o.js} +1 -1
- package/dist/{run-main-DgSgJ5-A.js → run-main-B6DJ4hXt.js} +92 -92
- package/dist/{runtime-CH5fohLt.js → runtime-BF8Olfsc.js} +3 -3
- package/dist/{runtime-config-collectors-B0UvQfrp.js → runtime-config-collectors-CX2DT22y.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-C5O_5Oac.js → runtime-whatsapp-login.runtime-0HUD3AWH.js} +7 -7
- package/dist/runtime-whatsapp-outbound.runtime-Z7JKVh88.js +28 -0
- package/dist/{sandbox-CBt528hA.js → sandbox-CHQOIPj9.js} +18 -18
- package/dist/{sandbox-cli-CMwwlijF.js → sandbox-cli-VRZ6h57q.js} +25 -25
- package/dist/{secrets-cli-e2Demg1k.js → secrets-cli-B73viEkt.js} +11 -11
- package/dist/{security-cli-FryW-V8n.js → security-cli-D6wU5KjD.js} +43 -43
- package/dist/{send-2xjAFnHO.js → send-B-Uy34-w.js} +4 -4
- package/dist/{send-C4M_d4By.js → send-C49MF69y.js} +5 -5
- package/dist/{send-CRlSWbm2.js → send-C7PqB4vs.js} +6 -6
- package/dist/{send-BUfGAwap.js → send-ExuAKrlR.js} +11 -11
- package/dist/{send-BQNX3KIc.js → send-Ta3D0GAH.js} +8 -8
- package/dist/{server-v5t12up6.js → server-YE6zCzOe.js} +20 -20
- package/dist/{server-context-05Fm5Kkz.js → server-context-CJiG1msd.js} +12 -12
- package/dist/{server-lifecycle-BrR-At7-.js → server-lifecycle-Bfo-0Zi5.js} +2 -2
- package/dist/{server-middleware-29IWly-I.js → server-middleware-B0GRmBkQ.js} +1 -1
- package/dist/{server-node-events-DuM23NpD.js → server-node-events-BMzdjzU7.js} +2 -2
- package/dist/{server-node-events-D_veocyh.js → server-node-events-DOhFJcoY.js} +74 -74
- package/dist/{service-B45ntxm9.js → service-Aratsspm.js} +15 -15
- package/dist/{session-BO7rj_9P.js → session-C4iQQHfw.js} +1 -1
- package/dist/{session-utils-lxnjm2Oj.js → session-utils-z-HrHk5J.js} +6 -6
- package/dist/{sessions-X3dplt-M.js → sessions-8T6PxYa7.js} +4 -4
- package/dist/{sessions-BFIOR30J.js → sessions-D7TKRSga.js} +15 -15
- package/dist/{shared-_43GPoqz.js → shared-CaXgHNH2.js} +3 -3
- package/dist/{shared-CpqkgNHp.js → shared-Cj-SPh02.js} +1 -1
- package/dist/{skill-commands-BTa_Ex3d.js → skill-commands-CUwo4YjF.js} +5 -5
- package/dist/{skill-scanner-DOOfjrYo.js → skill-scanner-DqqhF5of.js} +6 -6
- package/dist/{skills-CFYm0xdh.js → skills-BpN5EUZU.js} +3 -3
- package/dist/{skills-cli-nYjsj4Ma.js → skills-cli-DnH5WOma.js} +5 -5
- package/dist/{skills-install-DUTZBDD_.js → skills-install-JXf-PngU.js} +6 -6
- package/dist/{skills-status-CmWpjTMz.js → skills-status-Bu28FGtt.js} +1 -1
- package/dist/{slash-commands.runtime-BSt9lmeO.js → slash-commands.runtime-DO829aTF.js} +11 -11
- package/dist/slash-dispatch.runtime-DFp9fSuv.js +110 -0
- package/dist/{slash-dispatch.runtime-D4Bt7WUe.js → slash-dispatch.runtime-Dus0Ee0H.js} +1 -1
- package/dist/{slash-dispatch.runtime-C-x80bzR.js → slash-dispatch.runtime-qiJQc-pC.js} +1 -1
- package/dist/{slash-dispatch.runtime-DmHU2qMh.js → slash-dispatch.runtime-zuguP8ZG.js} +1 -1
- package/dist/slash-skill-commands.runtime-BxhuEjRa.js +29 -0
- package/dist/{status-CgZcrJBb.js → status-3aR0oz-M.js} +28 -28
- package/dist/{status-Ci0R3PZI.js → status-C-SZ9ACZ.js} +2 -2
- package/dist/{status.update-ZhDibzTU.js → status.update-CdaaXiD4.js} +2 -2
- package/dist/{store-Dgl-neCe.js → store-LSg8jeyh.js} +5 -5
- package/dist/{subagent-registry-B70QeTr-.js → subagent-registry-D7bo8Ikz.js} +160 -153
- package/dist/{subagent-registry-runtime-kZEc4AOo.js → subagent-registry-runtime-BJVNUjLT.js} +1 -1
- package/dist/{subagent-registry-runtime-B2YgXaKM.js → subagent-registry-runtime-BZmGqykx.js} +1 -1
- package/dist/{subagent-registry-runtime-Cl0yNuu8.js → subagent-registry-runtime-CiGEqzvC.js} +1 -1
- package/dist/subagent-registry-runtime-Cryx2OYF.js +110 -0
- package/dist/{system-cli-mnC_WWVA.js → system-cli-B_ueNaMP.js} +9 -9
- package/dist/{system-run-command-C8KITr2s.js → system-run-command-8RPNlCCc.js} +1 -1
- package/dist/{systemd-BNMfPHLS.js → systemd-CVY4-XuL.js} +9 -9
- package/dist/{systemd-hints-O9SJa5Ku.js → systemd-hints-GPX9Y1X7.js} +6 -6
- package/dist/{systemd-linger-CDgtOmPf.js → systemd-linger-CyioH9ho.js} +1 -1
- package/dist/{tables-BbyESbJo.js → tables-CPzrJtyj.js} +1 -1
- package/dist/{tailnet-D6miw7DJ.js → tailnet-BXTXJnWv.js} +1 -1
- package/dist/target-errors-HJQQHC3B.js +195 -0
- package/dist/{tool-images-DbchBdq5.js → tool-images-Cp3hNFNZ.js} +1 -1
- package/dist/{tui-DTvUykA5.js → tui-D8p-fGCf.js} +6 -6
- package/dist/{tui-cli-CCWcOp3j.js → tui-cli-Y2--Aslb.js} +32 -32
- package/dist/{update-cli-37CrhprZ.js → update-cli-BKzBTLin.js} +105 -105
- package/dist/{update-cli-BQdctS8H.js → update-cli-Bfc06x06.js} +7 -7
- package/dist/{update-runner-Ai2L-aIT.js → update-runner-COCvuTuA.js} +1 -1
- package/dist/{update-runner-CMrtk3wD.js → update-runner-DIKGFmYE.js} +16 -16
- package/dist/{update-DF240Zd0.js → update-u6OtnABh.js} +3 -3
- package/dist/{web-CDFgXr-O.js → web-B0_tdZP3.js} +2 -2
- package/dist/{web-C3zdCnqy.js → web-BB0adwFZ.js} +1 -1
- package/dist/web-BRZYBUTq.js +114 -0
- package/dist/{web-BrOTKB5V.js → web-ZLjAAMWI.js} +1 -1
- package/dist/{webhooks-cli-CVxq1L0o.js → webhooks-cli-CDKN5KjA.js} +6 -6
- package/dist/{whatsapp-actions-BLPiaPMM.js → whatsapp-actions-C8jlipv2.js} +17 -17
- package/dist/{winclaw-root-DEqOOeOw.js → winclaw-root-D0OUuGl7.js} +8 -8
- package/dist/{with-timeout--YIf-L5q.js → with-timeout-SqLxvn1K.js} +3 -3
- package/dist/{workspace-dirs-C5erYAob.js → workspace-dirs-C13vnqQQ.js} +1 -1
- package/dist/{workspace-Cx-f7PO5.js → workspace-vYy4qLQz.js} +1 -1
- package/dist/{wsl-BisEqrSr.js → wsl-C9d12M7y.js} +2 -2
- package/package.json +1 -1
- package/dist/cli-DpfIJaQR.js +0 -154
- package/dist/deliver-runtime-B2jvII84.js +0 -57
- package/dist/deps-send-discord.runtime-DEljxwZF.js +0 -32
- package/dist/deps-send-imessage.runtime-CDba1iXq.js +0 -31
- package/dist/deps-send-signal.runtime-BBSnJxIE.js +0 -30
- package/dist/deps-send-slack.runtime-Cg9DgNZd.js +0 -28
- package/dist/deps-send-telegram.runtime-BozbEmMc.js +0 -34
- package/dist/deps-send-whatsapp.runtime-B0hQKZfL.js +0 -115
- package/dist/image-runtime-BkMDCX_o.js +0 -51
- package/dist/manager-runtime-C3O7KVxT.js +0 -22
- package/dist/register.configure-CEOI3cT-.js +0 -162
- package/dist/runtime-whatsapp-outbound.runtime-Bd0Jz2if.js +0 -28
- package/dist/slash-dispatch.runtime-Bg52EEcI.js +0 -110
- package/dist/slash-skill-commands.runtime-CjCLdeBQ.js +0 -29
- package/dist/subagent-registry-runtime-p6z_DkgK.js +0 -110
- package/dist/web-BsyQ694z.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-cYG8442L.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -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-cYG8442L.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -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 fsPromises 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 fsPromises.access(resolvedAuthDir);
|
|
107
107
|
} catch {
|
|
108
108
|
return false;
|
|
109
109
|
}
|
|
110
110
|
try {
|
|
111
|
-
const stats = await
|
|
111
|
+
const stats = await fsPromises.stat(credsPath);
|
|
112
112
|
if (!stats.isFile() || stats.size <= 1) return false;
|
|
113
|
-
const raw = await
|
|
113
|
+
const raw = await fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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-C0_vbRBI.js";
|
|
3
|
+
import "./agent-scope-D-i-vMLS.js";
|
|
4
4
|
import { v as resolveUserPath, x as shortenHomePath } from "./utils-hiIKrqOK.js";
|
|
5
|
-
import "./winclaw-root-
|
|
5
|
+
import "./winclaw-root-D0OUuGl7.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-CI-UuKUO.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-BYyYW3K0.js";
|
|
16
|
+
import { s as resolveGatewayCredentialsWithSecretInputs, t as buildGatewayConnectionDetails } from "./call-CmNNda8m.js";
|
|
17
17
|
import "./pairing-token-CyhEb6Je.js";
|
|
18
|
-
import "./net-
|
|
19
|
-
import "./tailnet-
|
|
18
|
+
import "./net-CXrvhn9o.js";
|
|
19
|
+
import "./tailnet-BXTXJnWv.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-D0OUuGl7.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 fsPromises 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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
222
|
+
await fsPromises.rename(tmpPath, statePath);
|
|
223
223
|
} catch (err) {
|
|
224
|
-
await
|
|
224
|
+
await fsPromises.unlink(tmpPath).catch(() => {});
|
|
225
225
|
throw err;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
async function hasGitRepo(dir) {
|
|
229
229
|
try {
|
|
230
|
-
await
|
|
230
|
+
await fsPromises.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 fsPromises.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 fsPromises.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([fsPromises.readFile(identityPath, "utf-8"), fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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-C0_vbRBI.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-D-i-vMLS.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-C1OgLvb4.js";
|
|
9
|
+
import { U as parseIdentityMarkdown, V as identityHasValues } from "./subagent-registry-D7bo8Ikz.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-b9T97_8S.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-BVDib1S1.js";
|
|
16
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-DNCnFEsn.js";
|
|
17
|
+
import { r as setupChannels } from "./onboard-channels-JW7XvnNO.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-BlWvyYXQ.js";
|
|
21
21
|
import path from "node:path";
|
|
22
|
-
import
|
|
22
|
+
import fsPromises 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 fsPromises.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 fsPromises.mkdir(path.dirname(destAuthPath), { recursive: true });
|
|
412
|
+
await fsPromises.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 fsPromises.readFile(filePath, "utf-8"));
|
|
561
561
|
if (!identityHasValues(parsed)) return null;
|
|
562
562
|
return parsed;
|
|
563
563
|
} catch {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { in as loadAgentIdentityFromWorkspace, rn as identityHasValues } from "./reply-
|
|
1
|
+
import { in as loadAgentIdentityFromWorkspace, rn as identityHasValues } from "./reply-Dy5H3IeX.js";
|
|
2
2
|
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-DBU7-iEp.js";
|
|
3
3
|
import { c as normalizeAgentId } from "./session-key-CIXZm7v4.js";
|
|
4
4
|
|
|
@@ -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-D-i-vMLS.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-D7bo8Ikz.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-C0_vbRBI.js";
|
|
3
|
+
import "./agent-scope-D-i-vMLS.js";
|
|
4
4
|
import "./utils-hiIKrqOK.js";
|
|
5
|
-
import "./winclaw-root-
|
|
5
|
+
import "./winclaw-root-D0OUuGl7.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-CI-UuKUO.js";
|
|
14
|
+
import "./dock-ClcGZ0LV.js";
|
|
15
15
|
import "./frontmatter-BnXqzQr3.js";
|
|
16
|
-
import "./skills-
|
|
17
|
-
import "./path-alias-guards-
|
|
16
|
+
import "./skills-BpN5EUZU.js";
|
|
17
|
+
import "./path-alias-guards-9OJ1UBCd.js";
|
|
18
18
|
import "./message-channel-DINJBdD0.js";
|
|
19
|
-
import "./sessions-
|
|
20
|
-
import "./plugins-
|
|
21
|
-
import "./accounts-
|
|
22
|
-
import "./accounts-
|
|
19
|
+
import "./sessions-D7TKRSga.js";
|
|
20
|
+
import "./plugins-C1OgLvb4.js";
|
|
21
|
+
import "./accounts-cYG8442L.js";
|
|
22
|
+
import "./accounts-CTJXIABG.js";
|
|
23
23
|
import "./logging-CFvkxgcX.js";
|
|
24
|
-
import "./accounts-
|
|
24
|
+
import "./accounts-CLKFSM00.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-CXrvhn9o.js";
|
|
28
|
+
import "./tailnet-BXTXJnWv.js";
|
|
29
|
+
import "./image-ops-eFMqXMDE.js";
|
|
30
|
+
import "./pi-embedded-helpers-xQd6fIj4.js";
|
|
31
|
+
import "./sandbox-CHQOIPj9.js";
|
|
32
32
|
import "./tool-catalog-DN2kDDZk.js";
|
|
33
|
-
import "./chrome-
|
|
33
|
+
import "./chrome-C3_fgvw4.js";
|
|
34
34
|
import "./tailscale-CB_lUnsU.js";
|
|
35
|
-
import "./auth
|
|
36
|
-
import "./server-context-
|
|
37
|
-
import "./paths-
|
|
35
|
+
import "./auth--KDo_E_4.js";
|
|
36
|
+
import "./server-context-CJiG1msd.js";
|
|
37
|
+
import "./paths-C5mR1YC-.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-Dha0DfFC.js";
|
|
41
|
+
import "./proxy-env-CmJ7_jtU.js";
|
|
42
|
+
import "./store-LSg8jeyh.js";
|
|
43
|
+
import "./ports-CfOim1GC.js";
|
|
44
44
|
import "./trash-D9VuTy5D.js";
|
|
45
|
-
import "./server-middleware-
|
|
46
|
-
import "./tool-images-
|
|
45
|
+
import "./server-middleware-B0GRmBkQ.js";
|
|
46
|
+
import "./tool-images-Cp3hNFNZ.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-tPZvlEX4.js";
|
|
49
|
+
import "./model-catalog-B-CI_Q76.js";
|
|
50
|
+
import "./fetch-DyoRWiT-.js";
|
|
51
|
+
import { _ as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-UjPRrQgJ.js";
|
|
52
|
+
import "./fetch-guard-DF0_kLSc.js";
|
|
53
|
+
import "./image-zu8Q4gsy.js";
|
|
54
54
|
import "./tool-display-DRwMjyJE.js";
|
|
55
|
-
import "./api-key-rotation-
|
|
55
|
+
import "./api-key-rotation-6yvrHUjY.js";
|
|
56
56
|
import "./proxy-fetch-BqEHARvZ.js";
|
|
57
57
|
|
|
58
58
|
//#region src/media-understanding/audio-preflight.ts
|
package/dist/{audio-transcription-runner-CRSNM03k.js → audio-transcription-runner-UjPRrQgJ.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-C0_vbRBI.js";
|
|
3
|
+
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-D-i-vMLS.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-C1OgLvb4.js";
|
|
6
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-eFMqXMDE.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-B-CI_Q76.js";
|
|
9
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-DyoRWiT-.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-DF0_kLSc.js";
|
|
12
|
+
import { t as describeImageWithModel } from "./image-zu8Q4gsy.js";
|
|
13
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-6yvrHUjY.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 fsPromises 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 fsPromises.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 fsPromises.writeFile(tmpPath, bufferResult.buffer);
|
|
500
500
|
entry.tempPath = tmpPath;
|
|
501
501
|
entry.tempCleanup = async () => {
|
|
502
|
-
await
|
|
502
|
+
await fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.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 fsPromises.stat(pathResult.path)).size,
|
|
1550
1550
|
attachmentIndex: params.attachmentIndex
|
|
1551
1551
|
});
|
|
1552
|
-
const outputDir = await
|
|
1552
|
+
const outputDir = await fsPromises.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 fsPromises.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 fsPromises.stat(filePath)).isFile()) return false;
|
|
1631
1631
|
if (process.platform === "win32") return true;
|
|
1632
|
-
await
|
|
1632
|
+
await fsPromises.access(filePath, constants.X_OK);
|
|
1633
1633
|
return true;
|
|
1634
1634
|
} catch {
|
|
1635
1635
|
return false;
|