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
package/dist/fs-safe-Dha0DfFC.js
DELETED
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import { ft as expandHomePrefix } from "./entry.js";
|
|
2
|
-
import { d as hasNodeErrorCode, f as isNotFoundPathError, m as isSymlinkOpenError, p as isPathInside, s as sameFileIdentity } from "./winclaw-root-D0OUuGl7.js";
|
|
3
|
-
import { i as logWarn } from "./logger-BcqRk323.js";
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-9OJ1UBCd.js";
|
|
5
|
-
import os from "node:os";
|
|
6
|
-
import path from "node:path";
|
|
7
|
-
import { constants } from "node:fs";
|
|
8
|
-
import fsPromises from "node:fs/promises";
|
|
9
|
-
import { randomUUID } from "node:crypto";
|
|
10
|
-
import { pipeline } from "node:stream/promises";
|
|
11
|
-
|
|
12
|
-
//#region src/infra/fs-safe.ts
|
|
13
|
-
var SafeOpenError = class extends Error {
|
|
14
|
-
constructor(code, message, options) {
|
|
15
|
-
super(message, options);
|
|
16
|
-
this.code = code;
|
|
17
|
-
this.name = "SafeOpenError";
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
const SUPPORTS_NOFOLLOW = process.platform !== "win32" && "O_NOFOLLOW" in constants;
|
|
21
|
-
const OPEN_READ_FLAGS = constants.O_RDONLY | (SUPPORTS_NOFOLLOW ? constants.O_NOFOLLOW : 0);
|
|
22
|
-
const OPEN_WRITE_EXISTING_FLAGS = constants.O_WRONLY | (SUPPORTS_NOFOLLOW ? constants.O_NOFOLLOW : 0);
|
|
23
|
-
const OPEN_WRITE_CREATE_FLAGS = constants.O_WRONLY | constants.O_CREAT | constants.O_EXCL | (SUPPORTS_NOFOLLOW ? constants.O_NOFOLLOW : 0);
|
|
24
|
-
const ensureTrailingSep = (value) => value.endsWith(path.sep) ? value : value + path.sep;
|
|
25
|
-
async function expandRelativePathWithHome(relativePath) {
|
|
26
|
-
let home = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
27
|
-
try {
|
|
28
|
-
home = await fsPromises.realpath(home);
|
|
29
|
-
} catch {}
|
|
30
|
-
return expandHomePrefix(relativePath, { home });
|
|
31
|
-
}
|
|
32
|
-
async function openVerifiedLocalFile(filePath, options) {
|
|
33
|
-
try {
|
|
34
|
-
if ((await fsPromises.lstat(filePath)).isDirectory()) throw new SafeOpenError("not-file", "not a file");
|
|
35
|
-
} catch (err) {
|
|
36
|
-
if (err instanceof SafeOpenError) throw err;
|
|
37
|
-
}
|
|
38
|
-
let handle;
|
|
39
|
-
try {
|
|
40
|
-
handle = await fsPromises.open(filePath, OPEN_READ_FLAGS);
|
|
41
|
-
} catch (err) {
|
|
42
|
-
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "file not found");
|
|
43
|
-
if (isSymlinkOpenError(err)) throw new SafeOpenError("symlink", "symlink open blocked", { cause: err });
|
|
44
|
-
if (hasNodeErrorCode(err, "EISDIR")) throw new SafeOpenError("not-file", "not a file");
|
|
45
|
-
throw err;
|
|
46
|
-
}
|
|
47
|
-
try {
|
|
48
|
-
const [stat, lstat] = await Promise.all([handle.stat(), fsPromises.lstat(filePath)]);
|
|
49
|
-
if (lstat.isSymbolicLink()) throw new SafeOpenError("symlink", "symlink not allowed");
|
|
50
|
-
if (!stat.isFile()) throw new SafeOpenError("not-file", "not a file");
|
|
51
|
-
if (options?.rejectHardlinks && stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
52
|
-
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during read");
|
|
53
|
-
const realPath = await fsPromises.realpath(filePath);
|
|
54
|
-
const realStat = await fsPromises.stat(realPath);
|
|
55
|
-
if (options?.rejectHardlinks && realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
56
|
-
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
57
|
-
return {
|
|
58
|
-
handle,
|
|
59
|
-
realPath,
|
|
60
|
-
stat
|
|
61
|
-
};
|
|
62
|
-
} catch (err) {
|
|
63
|
-
await handle.close().catch(() => {});
|
|
64
|
-
if (err instanceof SafeOpenError) throw err;
|
|
65
|
-
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "file not found");
|
|
66
|
-
throw err;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
async function resolvePathWithinRoot(params) {
|
|
70
|
-
let rootReal;
|
|
71
|
-
try {
|
|
72
|
-
rootReal = await fsPromises.realpath(params.rootDir);
|
|
73
|
-
} catch (err) {
|
|
74
|
-
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "root dir not found");
|
|
75
|
-
throw err;
|
|
76
|
-
}
|
|
77
|
-
const rootWithSep = ensureTrailingSep(rootReal);
|
|
78
|
-
const expanded = await expandRelativePathWithHome(params.relativePath);
|
|
79
|
-
const resolved = path.resolve(rootWithSep, expanded);
|
|
80
|
-
if (!isPathInside(rootWithSep, resolved)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
81
|
-
return {
|
|
82
|
-
rootReal,
|
|
83
|
-
rootWithSep,
|
|
84
|
-
resolved
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
async function openFileWithinRoot(params) {
|
|
88
|
-
const { rootWithSep, resolved } = await resolvePathWithinRoot(params);
|
|
89
|
-
let opened;
|
|
90
|
-
try {
|
|
91
|
-
opened = await openVerifiedLocalFile(resolved);
|
|
92
|
-
} catch (err) {
|
|
93
|
-
if (err instanceof SafeOpenError) {
|
|
94
|
-
if (err.code === "not-found") throw err;
|
|
95
|
-
throw new SafeOpenError("invalid-path", "path is not a regular file under root", { cause: err });
|
|
96
|
-
}
|
|
97
|
-
throw err;
|
|
98
|
-
}
|
|
99
|
-
if (params.rejectHardlinks !== false && opened.stat.nlink > 1) {
|
|
100
|
-
await opened.handle.close().catch(() => {});
|
|
101
|
-
throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
102
|
-
}
|
|
103
|
-
if (!isPathInside(rootWithSep, opened.realPath)) {
|
|
104
|
-
await opened.handle.close().catch(() => {});
|
|
105
|
-
throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
106
|
-
}
|
|
107
|
-
return opened;
|
|
108
|
-
}
|
|
109
|
-
async function readFileWithinRoot(params) {
|
|
110
|
-
const opened = await openFileWithinRoot({
|
|
111
|
-
rootDir: params.rootDir,
|
|
112
|
-
relativePath: params.relativePath,
|
|
113
|
-
rejectHardlinks: params.rejectHardlinks
|
|
114
|
-
});
|
|
115
|
-
try {
|
|
116
|
-
return await readOpenedFileSafely({
|
|
117
|
-
opened,
|
|
118
|
-
maxBytes: params.maxBytes
|
|
119
|
-
});
|
|
120
|
-
} finally {
|
|
121
|
-
await opened.handle.close().catch(() => {});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
async function readPathWithinRoot(params) {
|
|
125
|
-
const rootDir = path.resolve(params.rootDir);
|
|
126
|
-
const candidatePath = path.isAbsolute(params.filePath) ? path.resolve(params.filePath) : path.resolve(rootDir, params.filePath);
|
|
127
|
-
return await readFileWithinRoot({
|
|
128
|
-
rootDir,
|
|
129
|
-
relativePath: path.relative(rootDir, candidatePath),
|
|
130
|
-
rejectHardlinks: params.rejectHardlinks,
|
|
131
|
-
maxBytes: params.maxBytes
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
function createRootScopedReadFile(params) {
|
|
135
|
-
const rootDir = path.resolve(params.rootDir);
|
|
136
|
-
return async (filePath) => {
|
|
137
|
-
return (await readPathWithinRoot({
|
|
138
|
-
rootDir,
|
|
139
|
-
filePath,
|
|
140
|
-
rejectHardlinks: params.rejectHardlinks,
|
|
141
|
-
maxBytes: params.maxBytes
|
|
142
|
-
})).buffer;
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
async function readLocalFileSafely(params) {
|
|
146
|
-
const opened = await openVerifiedLocalFile(params.filePath);
|
|
147
|
-
try {
|
|
148
|
-
return await readOpenedFileSafely({
|
|
149
|
-
opened,
|
|
150
|
-
maxBytes: params.maxBytes
|
|
151
|
-
});
|
|
152
|
-
} finally {
|
|
153
|
-
await opened.handle.close().catch(() => {});
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
async function readOpenedFileSafely(params) {
|
|
157
|
-
if (params.maxBytes !== void 0 && params.opened.stat.size > params.maxBytes) throw new SafeOpenError("too-large", `file exceeds limit of ${params.maxBytes} bytes (got ${params.opened.stat.size})`);
|
|
158
|
-
return {
|
|
159
|
-
buffer: await params.opened.handle.readFile(),
|
|
160
|
-
realPath: params.opened.realPath,
|
|
161
|
-
stat: params.opened.stat
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
function emitWriteBoundaryWarning(reason) {
|
|
165
|
-
logWarn(`security: fs-safe write boundary warning (${reason})`);
|
|
166
|
-
}
|
|
167
|
-
function buildAtomicWriteTempPath(targetPath) {
|
|
168
|
-
const dir = path.dirname(targetPath);
|
|
169
|
-
const base = path.basename(targetPath);
|
|
170
|
-
return path.join(dir, `.${base}.${process.pid}.${randomUUID()}.tmp`);
|
|
171
|
-
}
|
|
172
|
-
async function writeTempFileForAtomicReplace(params) {
|
|
173
|
-
const tempHandle = await fsPromises.open(params.tempPath, OPEN_WRITE_CREATE_FLAGS, params.mode);
|
|
174
|
-
try {
|
|
175
|
-
if (typeof params.data === "string") await tempHandle.writeFile(params.data, params.encoding ?? "utf8");
|
|
176
|
-
else await tempHandle.writeFile(params.data);
|
|
177
|
-
return await tempHandle.stat();
|
|
178
|
-
} finally {
|
|
179
|
-
await tempHandle.close().catch(() => {});
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
async function verifyAtomicWriteResult(params) {
|
|
183
|
-
const rootWithSep = ensureTrailingSep(await fsPromises.realpath(params.rootDir));
|
|
184
|
-
const opened = await openVerifiedLocalFile(params.targetPath, { rejectHardlinks: true });
|
|
185
|
-
try {
|
|
186
|
-
if (!sameFileIdentity(opened.stat, params.expectedStat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
187
|
-
if (!isPathInside(rootWithSep, opened.realPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
188
|
-
} finally {
|
|
189
|
-
await opened.handle.close().catch(() => {});
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
async function resolveOpenedFileRealPathForHandle(handle, ioPath) {
|
|
193
|
-
try {
|
|
194
|
-
return await fsPromises.realpath(ioPath);
|
|
195
|
-
} catch (err) {
|
|
196
|
-
if (!isNotFoundPathError(err)) throw err;
|
|
197
|
-
}
|
|
198
|
-
const fdCandidates = process.platform === "linux" ? [`/proc/self/fd/${handle.fd}`, `/dev/fd/${handle.fd}`] : process.platform === "win32" ? [] : [`/dev/fd/${handle.fd}`];
|
|
199
|
-
for (const fdPath of fdCandidates) try {
|
|
200
|
-
return await fsPromises.realpath(fdPath);
|
|
201
|
-
} catch {}
|
|
202
|
-
throw new SafeOpenError("path-mismatch", "unable to resolve opened file path");
|
|
203
|
-
}
|
|
204
|
-
async function openWritableFileWithinRoot(params) {
|
|
205
|
-
const { rootReal, rootWithSep, resolved } = await resolvePathWithinRoot(params);
|
|
206
|
-
try {
|
|
207
|
-
await assertNoPathAliasEscape({
|
|
208
|
-
absolutePath: resolved,
|
|
209
|
-
rootPath: rootReal,
|
|
210
|
-
boundaryLabel: "root"
|
|
211
|
-
});
|
|
212
|
-
} catch (err) {
|
|
213
|
-
throw new SafeOpenError("invalid-path", "path alias escape blocked", { cause: err });
|
|
214
|
-
}
|
|
215
|
-
if (params.mkdir !== false) await fsPromises.mkdir(path.dirname(resolved), { recursive: true });
|
|
216
|
-
let ioPath = resolved;
|
|
217
|
-
try {
|
|
218
|
-
const resolvedRealPath = await fsPromises.realpath(resolved);
|
|
219
|
-
if (!isPathInside(rootWithSep, resolvedRealPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
220
|
-
ioPath = resolvedRealPath;
|
|
221
|
-
} catch (err) {
|
|
222
|
-
if (err instanceof SafeOpenError) throw err;
|
|
223
|
-
if (!isNotFoundPathError(err)) throw err;
|
|
224
|
-
}
|
|
225
|
-
const fileMode = params.mode ?? 384;
|
|
226
|
-
let handle;
|
|
227
|
-
let createdForWrite = false;
|
|
228
|
-
try {
|
|
229
|
-
try {
|
|
230
|
-
handle = await fsPromises.open(ioPath, OPEN_WRITE_EXISTING_FLAGS, fileMode);
|
|
231
|
-
} catch (err) {
|
|
232
|
-
if (!isNotFoundPathError(err)) throw err;
|
|
233
|
-
handle = await fsPromises.open(ioPath, OPEN_WRITE_CREATE_FLAGS, fileMode);
|
|
234
|
-
createdForWrite = true;
|
|
235
|
-
}
|
|
236
|
-
} catch (err) {
|
|
237
|
-
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "file not found");
|
|
238
|
-
if (isSymlinkOpenError(err)) throw new SafeOpenError("invalid-path", "symlink open blocked", { cause: err });
|
|
239
|
-
throw err;
|
|
240
|
-
}
|
|
241
|
-
let openedRealPath = null;
|
|
242
|
-
try {
|
|
243
|
-
const stat = await handle.stat();
|
|
244
|
-
if (!stat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
245
|
-
if (stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
246
|
-
try {
|
|
247
|
-
const lstat = await fsPromises.lstat(ioPath);
|
|
248
|
-
if (lstat.isSymbolicLink() || !lstat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
249
|
-
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
250
|
-
} catch (err) {
|
|
251
|
-
if (!isNotFoundPathError(err)) throw err;
|
|
252
|
-
}
|
|
253
|
-
const realPath = await resolveOpenedFileRealPathForHandle(handle, ioPath);
|
|
254
|
-
openedRealPath = realPath;
|
|
255
|
-
const realStat = await fsPromises.stat(realPath);
|
|
256
|
-
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
257
|
-
if (realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
258
|
-
if (!isPathInside(rootWithSep, realPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
259
|
-
if (params.truncateExisting !== false && !createdForWrite) await handle.truncate(0);
|
|
260
|
-
return {
|
|
261
|
-
handle,
|
|
262
|
-
createdForWrite,
|
|
263
|
-
openedRealPath: realPath,
|
|
264
|
-
openedStat: stat
|
|
265
|
-
};
|
|
266
|
-
} catch (err) {
|
|
267
|
-
const cleanupCreatedPath = createdForWrite && err instanceof SafeOpenError;
|
|
268
|
-
const cleanupPath = openedRealPath ?? ioPath;
|
|
269
|
-
await handle.close().catch(() => {});
|
|
270
|
-
if (cleanupCreatedPath) await fsPromises.rm(cleanupPath, { force: true }).catch(() => {});
|
|
271
|
-
throw err;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
async function writeFileWithinRoot(params) {
|
|
275
|
-
const target = await openWritableFileWithinRoot({
|
|
276
|
-
rootDir: params.rootDir,
|
|
277
|
-
relativePath: params.relativePath,
|
|
278
|
-
mkdir: params.mkdir,
|
|
279
|
-
truncateExisting: false
|
|
280
|
-
});
|
|
281
|
-
const destinationPath = target.openedRealPath;
|
|
282
|
-
const targetMode = target.openedStat.mode & 511;
|
|
283
|
-
await target.handle.close().catch(() => {});
|
|
284
|
-
let tempPath = null;
|
|
285
|
-
try {
|
|
286
|
-
tempPath = buildAtomicWriteTempPath(destinationPath);
|
|
287
|
-
const writtenStat = await writeTempFileForAtomicReplace({
|
|
288
|
-
tempPath,
|
|
289
|
-
data: params.data,
|
|
290
|
-
encoding: params.encoding,
|
|
291
|
-
mode: targetMode || 384
|
|
292
|
-
});
|
|
293
|
-
await fsPromises.rename(tempPath, destinationPath);
|
|
294
|
-
tempPath = null;
|
|
295
|
-
try {
|
|
296
|
-
await verifyAtomicWriteResult({
|
|
297
|
-
rootDir: params.rootDir,
|
|
298
|
-
targetPath: destinationPath,
|
|
299
|
-
expectedStat: writtenStat
|
|
300
|
-
});
|
|
301
|
-
} catch (err) {
|
|
302
|
-
emitWriteBoundaryWarning(`post-write verification failed: ${String(err)}`);
|
|
303
|
-
throw err;
|
|
304
|
-
}
|
|
305
|
-
} finally {
|
|
306
|
-
if (tempPath) await fsPromises.rm(tempPath, { force: true }).catch(() => {});
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
async function copyFileWithinRoot(params) {
|
|
310
|
-
const source = await openVerifiedLocalFile(params.sourcePath, { rejectHardlinks: params.rejectSourceHardlinks });
|
|
311
|
-
if (params.maxBytes !== void 0 && source.stat.size > params.maxBytes) {
|
|
312
|
-
await source.handle.close().catch(() => {});
|
|
313
|
-
throw new SafeOpenError("too-large", `file exceeds limit of ${params.maxBytes} bytes (got ${source.stat.size})`);
|
|
314
|
-
}
|
|
315
|
-
let target = null;
|
|
316
|
-
let sourceClosedByStream = false;
|
|
317
|
-
let targetClosedByStream = false;
|
|
318
|
-
try {
|
|
319
|
-
target = await openWritableFileWithinRoot({
|
|
320
|
-
rootDir: params.rootDir,
|
|
321
|
-
relativePath: params.relativePath,
|
|
322
|
-
mkdir: params.mkdir
|
|
323
|
-
});
|
|
324
|
-
const sourceStream = source.handle.createReadStream();
|
|
325
|
-
const targetStream = target.handle.createWriteStream();
|
|
326
|
-
sourceStream.once("close", () => {
|
|
327
|
-
sourceClosedByStream = true;
|
|
328
|
-
});
|
|
329
|
-
targetStream.once("close", () => {
|
|
330
|
-
targetClosedByStream = true;
|
|
331
|
-
});
|
|
332
|
-
await pipeline(sourceStream, targetStream);
|
|
333
|
-
} catch (err) {
|
|
334
|
-
if (target?.createdForWrite) await fsPromises.rm(target.openedRealPath, { force: true }).catch(() => {});
|
|
335
|
-
throw err;
|
|
336
|
-
} finally {
|
|
337
|
-
if (!sourceClosedByStream) await source.handle.close().catch(() => {});
|
|
338
|
-
if (target && !targetClosedByStream) await target.handle.close().catch(() => {});
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
async function writeFileFromPathWithinRoot(params) {
|
|
342
|
-
await copyFileWithinRoot({
|
|
343
|
-
sourcePath: params.sourcePath,
|
|
344
|
-
rootDir: params.rootDir,
|
|
345
|
-
relativePath: params.relativePath,
|
|
346
|
-
mkdir: params.mkdir,
|
|
347
|
-
rejectSourceHardlinks: true
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
//#endregion
|
|
352
|
-
export { openWritableFileWithinRoot as a, writeFileFromPathWithinRoot as c, openFileWithinRoot as i, writeFileWithinRoot as l, copyFileWithinRoot as n, readFileWithinRoot as o, createRootScopedReadFile as r, readLocalFileSafely as s, SafeOpenError as t };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import "./auth-profiles-CmoHF97e.js";
|
|
2
|
-
import "./agent-scope-D-i-vMLS.js";
|
|
3
|
-
import "./utils-hiIKrqOK.js";
|
|
4
|
-
import "./winclaw-root-D0OUuGl7.js";
|
|
5
|
-
import "./logger-BcqRk323.js";
|
|
6
|
-
import "./exec-CaapFZaD.js";
|
|
7
|
-
import "./registry-BcRQUSsJ.js";
|
|
8
|
-
import "./github-copilot-token-DHTToceK.js";
|
|
9
|
-
import "./host-env-security-CIiLt2Mi.js";
|
|
10
|
-
import "./version-TiOyTfO4.js";
|
|
11
|
-
import "./env-vars-CE3cUIrz.js";
|
|
12
|
-
import "./manifest-registry-CI-UuKUO.js";
|
|
13
|
-
import "./dock-ClcGZ0LV.js";
|
|
14
|
-
import "./frontmatter-BnXqzQr3.js";
|
|
15
|
-
import "./skills-BpN5EUZU.js";
|
|
16
|
-
import "./path-alias-guards-9OJ1UBCd.js";
|
|
17
|
-
import "./message-channel-DINJBdD0.js";
|
|
18
|
-
import "./sessions-Cvvux3S6.js";
|
|
19
|
-
import "./plugins-C1OgLvb4.js";
|
|
20
|
-
import "./accounts-cYG8442L.js";
|
|
21
|
-
import "./accounts-CTJXIABG.js";
|
|
22
|
-
import "./logging-CFvkxgcX.js";
|
|
23
|
-
import "./accounts-CLKFSM00.js";
|
|
24
|
-
import "./paths-ByCv35uy.js";
|
|
25
|
-
import "./chat-envelope-DDCB7eZC.js";
|
|
26
|
-
import "./net-DQYHvbkN.js";
|
|
27
|
-
import "./tailnet-yScEfa2T.js";
|
|
28
|
-
import "./image-ops-eFMqXMDE.js";
|
|
29
|
-
import "./pi-embedded-helpers-BWpzwT6B.js";
|
|
30
|
-
import "./sandbox-D19lOCVP.js";
|
|
31
|
-
import "./tool-catalog-DN2kDDZk.js";
|
|
32
|
-
import "./chrome-RAfAR4xV.js";
|
|
33
|
-
import "./tailscale-CB_lUnsU.js";
|
|
34
|
-
import "./auth-CU4HqNch.js";
|
|
35
|
-
import "./server-context-FT_S05Zu.js";
|
|
36
|
-
import "./paths-C5mR1YC-.js";
|
|
37
|
-
import "./redact-D1OBirZT.js";
|
|
38
|
-
import "./errors-Dt_4okVn.js";
|
|
39
|
-
import "./fs-safe-Dha0DfFC.js";
|
|
40
|
-
import "./proxy-env-B7GwrH5p.js";
|
|
41
|
-
import "./store-LSg8jeyh.js";
|
|
42
|
-
import "./ports-CfOim1GC.js";
|
|
43
|
-
import "./trash-D9VuTy5D.js";
|
|
44
|
-
import "./server-middleware-BPI-0Duw.js";
|
|
45
|
-
import "./tool-images-Cp3hNFNZ.js";
|
|
46
|
-
import "./thinking-BxCyPtl0.js";
|
|
47
|
-
import "./models-config-DYJ-p9kt.js";
|
|
48
|
-
import { t as describeImageWithModel } from "./image-EjGWXbei.js";
|
|
49
|
-
import "./tool-display-DRwMjyJE.js";
|
|
50
|
-
|
|
51
|
-
export { describeImageWithModel };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import "./auth-profiles-CmoHF97e.js";
|
|
2
|
-
import "./agent-scope-D-i-vMLS.js";
|
|
3
|
-
import "./utils-hiIKrqOK.js";
|
|
4
|
-
import "./winclaw-root-D0OUuGl7.js";
|
|
5
|
-
import "./logger-BcqRk323.js";
|
|
6
|
-
import "./exec-CaapFZaD.js";
|
|
7
|
-
import "./registry-BcRQUSsJ.js";
|
|
8
|
-
import "./github-copilot-token-DHTToceK.js";
|
|
9
|
-
import "./host-env-security-CIiLt2Mi.js";
|
|
10
|
-
import "./version-TiOyTfO4.js";
|
|
11
|
-
import "./env-vars-CE3cUIrz.js";
|
|
12
|
-
import "./manifest-registry-CI-UuKUO.js";
|
|
13
|
-
import "./paths-ByCv35uy.js";
|
|
14
|
-
import "./redact-D1OBirZT.js";
|
|
15
|
-
import "./errors-Dt_4okVn.js";
|
|
16
|
-
import "./proxy-env-B7GwrH5p.js";
|
|
17
|
-
import "./fetch-guard-D-W6TRJN.js";
|
|
18
|
-
import "./api-key-rotation-D_JdsLIl.js";
|
|
19
|
-
import { t as MemoryIndexManager } from "./manager-f6tniCBN.js";
|
|
20
|
-
import "./query-expansion-Cja4xprw.js";
|
|
21
|
-
|
|
22
|
-
export { MemoryIndexManager };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { c as BOUNDARY_PATH_ALIAS_POLICIES, f as isNotFoundPathError, l as resolveBoundaryPath } from "./winclaw-root-D0OUuGl7.js";
|
|
2
|
-
import os from "node:os";
|
|
3
|
-
import fsPromises from "node:fs/promises";
|
|
4
|
-
|
|
5
|
-
//#region src/infra/hardlink-guards.ts
|
|
6
|
-
async function assertNoHardlinkedFinalPath(params) {
|
|
7
|
-
if (params.allowFinalHardlinkForUnlink) return;
|
|
8
|
-
let stat;
|
|
9
|
-
try {
|
|
10
|
-
stat = await fsPromises.stat(params.filePath);
|
|
11
|
-
} catch (err) {
|
|
12
|
-
if (isNotFoundPathError(err)) return;
|
|
13
|
-
throw err;
|
|
14
|
-
}
|
|
15
|
-
if (!stat.isFile()) return;
|
|
16
|
-
if (stat.nlink > 1) throw new Error(`Hardlinked path is not allowed under ${params.boundaryLabel} (${shortPath(params.root)}): ${shortPath(params.filePath)}`);
|
|
17
|
-
}
|
|
18
|
-
function shortPath(value) {
|
|
19
|
-
if (value.startsWith(os.homedir())) return `~${value.slice(os.homedir().length)}`;
|
|
20
|
-
return value;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/infra/path-alias-guards.ts
|
|
25
|
-
const PATH_ALIAS_POLICIES = BOUNDARY_PATH_ALIAS_POLICIES;
|
|
26
|
-
async function assertNoPathAliasEscape(params) {
|
|
27
|
-
const resolved = await resolveBoundaryPath({
|
|
28
|
-
absolutePath: params.absolutePath,
|
|
29
|
-
rootPath: params.rootPath,
|
|
30
|
-
boundaryLabel: params.boundaryLabel,
|
|
31
|
-
policy: params.policy
|
|
32
|
-
});
|
|
33
|
-
if (params.policy?.allowFinalSymlinkForUnlink === true && resolved.kind === "symlink") return;
|
|
34
|
-
await assertNoHardlinkedFinalPath({
|
|
35
|
-
filePath: resolved.absolutePath,
|
|
36
|
-
root: resolved.rootPath,
|
|
37
|
-
boundaryLabel: params.boundaryLabel,
|
|
38
|
-
allowFinalHardlinkForUnlink: params.policy?.allowFinalHardlinkForUnlink
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
export { assertNoPathAliasEscape as n, PATH_ALIAS_POLICIES as t };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-BcPenaKJ.js";
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-Bl6fp04N.js";
|
|
3
|
-
|
|
4
|
-
//#region src/imessage/accounts.ts
|
|
5
|
-
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
6
|
-
const listIMessageAccountIds = listAccountIds;
|
|
7
|
-
const resolveDefaultIMessageAccountId = resolveDefaultAccountId;
|
|
8
|
-
function resolveAccountConfig(cfg, accountId) {
|
|
9
|
-
return resolveAccountEntry(cfg.channels?.imessage?.accounts, accountId);
|
|
10
|
-
}
|
|
11
|
-
function mergeIMessageAccountConfig(cfg, accountId) {
|
|
12
|
-
const { accounts: _ignored, ...base } = cfg.channels?.imessage ?? {};
|
|
13
|
-
const account = resolveAccountConfig(cfg, accountId) ?? {};
|
|
14
|
-
return {
|
|
15
|
-
...base,
|
|
16
|
-
...account
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
function resolveIMessageAccount(params) {
|
|
20
|
-
const accountId = normalizeAccountId(params.accountId);
|
|
21
|
-
const baseEnabled = params.cfg.channels?.imessage?.enabled !== false;
|
|
22
|
-
const merged = mergeIMessageAccountConfig(params.cfg, accountId);
|
|
23
|
-
const accountEnabled = merged.enabled !== false;
|
|
24
|
-
const configured = Boolean(merged.cliPath?.trim() || merged.dbPath?.trim() || merged.service || merged.region?.trim() || merged.allowFrom && merged.allowFrom.length > 0 || merged.groupAllowFrom && merged.groupAllowFrom.length > 0 || merged.dmPolicy || merged.groupPolicy || typeof merged.includeAttachments === "boolean" || merged.attachmentRoots && merged.attachmentRoots.length > 0 || merged.remoteAttachmentRoots && merged.remoteAttachmentRoots.length > 0 || typeof merged.mediaMaxMb === "number" || typeof merged.textChunkLimit === "number" || merged.groups && Object.keys(merged.groups).length > 0);
|
|
25
|
-
return {
|
|
26
|
-
accountId,
|
|
27
|
-
enabled: baseEnabled && accountEnabled,
|
|
28
|
-
name: merged.name?.trim() || void 0,
|
|
29
|
-
config: merged,
|
|
30
|
-
configured
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//#endregion
|
|
35
|
-
export { resolveDefaultIMessageAccountId as n, resolveIMessageAccount as r, listIMessageAccountIds as t };
|