wednesdayai 0.4.12-dev.711 → 0.4.12-dev.715
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/{acp-cli-DrXF9X9v.js → acp-cli-BYoOiK6T.js} +13 -13
- package/dist/{agent-scope-BAXIXdUR.js → agent-scope-CWTkr4pS.js} +20 -20
- package/dist/{agent-turn-enqueue-BQ4JOmUN.js → agent-turn-enqueue-Dwz_R_DW.js} +5 -5
- package/dist/{agent-turn-recovery-adapter-BRVxIXJY.js → agent-turn-recovery-adapter-DF3vdyE5.js} +3 -3
- package/dist/{agent-turn-runner-BGmkN_A8.js → agent-turn-runner-DFZxbjaC.js} +4 -4
- package/dist/{agents.config-BnEJCj-p.js → agents.config-C-pTu-0T.js} +2 -2
- package/dist/{api-key-rotation-BEJklVjh.js → api-key-rotation-BEt1ZchD.js} +1 -1
- package/dist/{audio-preflight-C3XXSW_q.js → audio-preflight-nrbQcAOS.js} +36 -36
- package/dist/{audio-transcription-runner-DbLu4y_x.js → audio-transcription-runner-D-d42kdt.js} +26 -26
- package/dist/{audit-DIH0DO00.js → audit-C_g-UVNn.js} +29 -29
- package/dist/{auth-CO4L12L5.js → auth-DeLQvx-N.js} +4 -4
- package/dist/{auth-choice-DvG3v5sy.js → auth-choice-Be8iuCdY.js} +16 -16
- package/dist/{auth-choice-pem6VE1T.js → auth-choice-ZsDU-57A.js} +13 -13
- package/dist/{auth-choice.apply-helpers-CLYswf6f.js → auth-choice.apply-helpers-CMHfbKNY.js} +1 -1
- package/dist/{auth-token-C4PqndxM.js → auth-token-DK8X73K5.js} +2 -2
- package/dist/{bonjour-discovery-BBOJN88F.js → bonjour-discovery-C517Q6gA.js} +3 -3
- package/dist/{browser-cli-BI1mfCKP.js → browser-cli-DvjIut0z.js} +20 -20
- package/dist/build-info.json +3 -3
- package/dist/{call-CMjUSitZ.js → call-Cl6Q0T5z.js} +12 -12
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-Dc7AMtZ7.js → channel-account-context-C9otZxLF.js} +6 -6
- package/dist/{channel-activity-etjAZzDh.js → channel-activity-CE3dhlxR.js} +2 -2
- package/dist/{channel-options-BrBZqoUe.js → channel-options-CdXOmeJN.js} +4 -4
- package/dist/{channel-selection-WlHA0Mjg.js → channel-selection-zg0Iqza4.js} +1 -1
- package/dist/{channels-cli-DldYF6sZ.js → channels-cli-CBBGSlVe.js} +114 -114
- package/dist/{channels-status-issues-CyJj51t4.js → channels-status-issues-C6LrjLpF.js} +1 -1
- package/dist/{chrome-CBrgxie9.js → chrome-DXHMnxHS.js} +6 -6
- package/dist/{chunk-BTTi6And.js → chunk-BDQQgsxn.js} +2 -2
- package/dist/{clack-prompter-CbMy5Zvz.js → clack-prompter-CcVX4jId.js} +5 -5
- package/dist/{clawbot-cli-B-d0ta-h.js → clawbot-cli-C-wEI2Wc.js} +16 -16
- package/dist/cli-BtY_juql.js +164 -0
- package/dist/{client-MNVuOIDb.js → client-BbpMX08n.js} +3 -3
- package/dist/{client-profiles-BAQWDfq6.js → client-profiles-BNQu4_Z_.js} +2 -2
- package/dist/{clipboard-q7q26OPS.js → clipboard-DcxpnFIc.js} +1 -1
- package/dist/{command-queue-Banup9vQ.js → command-queue-B1RxJ6bM.js} +1 -1
- package/dist/{command-secret-targets-84-Vq1Kn.js → command-secret-targets-DtDJB3vv.js} +4 -4
- package/dist/{commands-registry-DY2vMgw6.js → commands-registry-BMswme6t.js} +3 -3
- package/dist/{commands-CpMRpWle.js → commands-tFdLuF5k.js} +1 -1
- package/dist/{completion-cli-C0m7BZi2.js → completion-cli-Dbszfn8D.js} +15 -15
- package/dist/{config-cli-CLZB8EiO.js → config-cli-3a-9iNyI.js} +11 -11
- package/dist/{config-guard-a0CqCfhq.js → config-guard-BwLGp24P.js} +15 -15
- package/dist/{config-validation-D1W4dKAT.js → config-validation-DDtU1EJP.js} +2 -2
- package/dist/{configure-BoJEz3Lg.js → configure-Dld8IaT8.js} +25 -25
- package/dist/{control-ui-assets-D-_OfiOV.js → control-ui-assets-DonecnKL.js} +3 -3
- package/dist/{controller-Z7o2nxni.js → controller-0fS4uYcF.js} +1 -1
- package/dist/{credentials-DgZP7kxk.js → credentials-Hn2dA0oB.js} +1 -1
- package/dist/{cron-cli-BA4vsm3K.js → cron-cli-BuO3qskK.js} +14 -14
- package/dist/{daemon-cli-UPL01HBu.js → daemon-cli-C5cAb15Z.js} +19 -19
- package/dist/{daemon-install-btuIR9OH.js → daemon-install-CBIxgo4p.js} +11 -11
- package/dist/{daemon-install-helpers-CG4IZ_7L.js → daemon-install-helpers-C8mJ0UpL.js} +13 -13
- package/dist/{deliver-BpzzrBKl.js → deliver-Bhlx9VG9.js} +9 -9
- package/dist/{devices-cli-gtCGUgQz.js → devices-cli-HXNfviPB.js} +13 -13
- package/dist/{diagnostic-BRYj59Hw.js → diagnostic-BTSirPP0.js} +3 -3
- package/dist/{diagnostics-BTeays6z.js → diagnostics-FIcvxigK.js} +5 -5
- package/dist/{directory-cli-DtgQeMLi.js → directory-cli-A6e49xZw.js} +11 -11
- package/dist/{dns-cli-QXa894v2.js → dns-cli-BZvwwprO.js} +11 -11
- package/dist/{docs-cli-C5Q8gAsv.js → docs-cli-BQ8oTRz4.js} +10 -10
- package/dist/{doctor-completion-B19G-I8Y.js → doctor-completion-Ca_SREXp.js} +3 -3
- package/dist/{doctor-config-flow-BTbRx17L.js → doctor-config-flow-BSKd49U6.js} +14 -14
- package/dist/{enable-BF67ibhx.js → enable-BIAeEt0I.js} +2 -2
- package/dist/{env-DtoMyFfk.js → env-ESh4ZX9l.js} +1 -1
- package/dist/{exec-Cg_eKCg0.js → exec-CHq-p5L0.js} +2 -2
- package/dist/{exec-approvals-C-_jrhwb.js → exec-approvals-D8Tqfo34.js} +1 -1
- package/dist/{exec-approvals-allowlist-B2foVOBU.js → exec-approvals-allowlist-0xON2SZW.js} +1 -1
- package/dist/{exec-approvals-cli-CwwxNa7v.js → exec-approvals-cli-DsXabPF_.js} +23 -23
- package/dist/{exec-safe-bin-runtime-policy-CfsF46fx.js → exec-safe-bin-runtime-policy-KSPaR73B.js} +2 -2
- package/dist/{extension-relay-auth-IPIDjhZx.js → extension-relay-auth-C-1c9CZk.js} +10 -10
- package/dist/{fetch-guard-BCFGxdCb.js → fetch-guard-CjyGDRXN.js} +3 -3
- package/dist/{fs-safe-D3vN4fQ5.js → fs-safe-DD7KXuvI.js} +25 -25
- package/dist/{gateway-cli-BtV-wVjj.js → gateway-cli-BTuK5wC4.js} +210 -210
- package/dist/{gateway-rpc-CgAHXoCu.js → gateway-rpc-DNsG0xAN.js} +3 -3
- package/dist/{gmail-setup-utils-DWxTEPL5.js → gmail-setup-utils-CRvbl5q3.js} +2 -2
- package/dist/{health-CDGk5xDG.js → health-DFWpyp9O.js} +9 -9
- package/dist/{health-format-B9nTs2HW.js → health-format-_VGfj3fm.js} +1 -1
- package/dist/{heartbeat-tick-RHab8Aje.js → heartbeat-tick-CsyeD75h.js} +1 -1
- package/dist/{help-format-BC4GRIFN.js → help-format-DqpZruAs.js} +1 -1
- package/dist/{hooks-cli-BT0kyUWU.js → hooks-cli-DKZeKlmX.js} +105 -105
- package/dist/{hooks-status-Dv9XGWQ9.js → hooks-status-D20U_9R-.js} +2 -2
- package/dist/{plugin-sdk/image-ops-DY_SZfXk.js → image-ops-DcqCZEUY.js} +2 -2
- package/dist/{incident-install-BdXMiCuu.js → incident-install-cGBLZhud.js} +12 -12
- package/dist/index.js +104 -104
- package/dist/{inspect-CdQNUkBH.js → inspect-DVHAPbcZ.js} +4 -4
- package/dist/{install-safe-path-67wN9WdC.js → install-safe-path-DjFYmzeb.js} +25 -25
- package/dist/{installs-BlKgbSFc.js → installs-CnAcm0ba.js} +10 -10
- package/dist/{ipv4-m0FxF_em.js → ipv4-PE-rqUZG.js} +2 -2
- package/dist/{ir-D--2OWCl.js → ir-DDAVSgbQ.js} +8 -8
- package/dist/{issue-format-B1dmuNNd.js → issue-format-D0G927lb.js} +1 -1
- package/dist/{lifecycle-core-DfYD23X_.js → lifecycle-core-B3-ezmTx.js} +9 -9
- package/dist/{links-DZMDihQ-.js → links-BhLGjTwm.js} +1 -1
- package/dist/{live-repair-BGbr6jGR.js → live-repair-RXzcIxWc.js} +11 -11
- package/dist/{local-roots-DrpBY-AE.js → local-roots-_qt4-Ma5.js} +5 -5
- package/dist/{log-tail-COb9xmHL.js → log-tail-BAg8b5Wq.js} +7 -7
- package/dist/{logger-BCqJpXqF.js → logger-0VqfDbvM.js} +2 -2
- package/dist/{logging-CuKoRd0b.js → logging-DcZLtf7P.js} +1 -1
- package/dist/{logs-cli-BTCW2CK0.js → logs-cli-BdR6-Q3U.js} +19 -19
- package/dist/{manager-LX1QQ8aK.js → manager-DehDxi2A.js} +17 -17
- package/dist/{markdown-tables-pIjKFnaZ.js → markdown-tables-BEZ0s08w.js} +1 -1
- package/dist/{memory-cli-CFyBR_Pp.js → memory-cli-DZyEfnsr.js} +18 -18
- package/dist/{model-CR-oCFb_.js → model-BI6n6kVo.js} +2 -2
- package/dist/{model-catalog-C300CH2M.js → model-catalog-C7itJJDM.js} +4 -4
- package/dist/{model-picker-CFbPs-vi.js → model-picker-Bt7fcUKH.js} +4 -4
- package/dist/{model-selection-C8GCtGby.js → model-selection-k68XU4oS.js} +52 -52
- package/dist/{models-cli-D0T4sJZO.js → models-cli-C7bSvLGL.js} +109 -109
- package/dist/{models-config-CcPjsQTv.js → models-config-Burwt3mB.js} +7 -7
- package/dist/{node-cli-BAmgr8kO.js → node-cli-CPo0jR3t.js} +43 -43
- package/dist/{node-command-policy-CggBPF1a.js → node-command-policy-B9A0wAU6.js} +1 -1
- package/dist/{node-service-yxlqFzdT.js → node-service-BnwLXY5x.js} +1 -1
- package/dist/{nodes-cli-Tth7cV2w.js → nodes-cli-D9vz6Yaa.js} +25 -25
- package/dist/{nodes-screen-Bu5K5Iky.js → nodes-screen-BRZLdw3g.js} +8 -8
- package/dist/{note-xK3tzN__.js → note-DCbCarQS.js} +2 -2
- package/dist/{npm-pack-install-Cbcm8AtO.js → npm-pack-install-CFiN84Qw.js} +24 -24
- package/dist/{npm-resolution-CD79ResX.js → npm-resolution-B7regLLc.js} +5 -5
- package/dist/{oauth-tls-preflight-Ow3-5CVf.js → oauth-tls-preflight-B5akdNNh.js} +1 -1
- package/dist/{onboard-DUd7yo33.js → onboard-B_6H9HpS.js} +11 -11
- package/dist/{onboard-channels-CEercm9o.js → onboard-channels-CxiuviBR.js} +21 -21
- package/dist/{onboard-custom-Cu_HKMT1.js → onboard-custom-x_zbf7qu.js} +4 -4
- package/dist/{onboard-helpers-Dxgs6IKs.js → onboard-helpers-ziqfw3UR.js} +13 -13
- package/dist/{onboard-hooks-iOe4YWKj.js → onboard-hooks-BaZe-xl6.js} +7 -7
- package/dist/{onboard-remote-DEBKk92p.js → onboard-remote-BsnRgDQj.js} +5 -5
- package/dist/{onboard-skills-rEFqAB8T.js → onboard-skills-DwbAJ4nt.js} +4 -4
- package/dist/{onboarding-Bd05RKZ7.js → onboarding-D9VO9_5U.js} +18 -18
- package/dist/{onboarding.finalize-DPQPP-Aj.js → onboarding.finalize-DeJ35Prz.js} +112 -112
- package/dist/{onboarding.gateway-config-CgdJWu5V.js → onboarding.gateway-config-DOvEzkIo.js} +17 -17
- package/dist/{onboarding.secret-input-BOKPA83p.js → onboarding.secret-input-BCxy1JxD.js} +1 -1
- package/dist/{openai-model-default-C4QfTJob.js → openai-model-default-CpqJmHpI.js} +2 -2
- package/dist/{openclaw-root-B2l0kAM1.js → openclaw-root-BGUYWYDG.js} +2 -2
- package/dist/{operator-commands-B0t7kxcZ.js → operator-commands-BRKxpjt9.js} +5 -5
- package/dist/{outbound-attachment-BqIKnptw.js → outbound-attachment-Bg7WvYcG.js} +2 -2
- package/dist/{outbound-message-hooks-DOSD8zCU.js → outbound-message-hooks-t1DDjQX_.js} +4 -4
- package/dist/{pairing-cli-D9NWToyR.js → pairing-cli-Cmlyczsc.js} +11 -11
- package/dist/{pairing-labels-BCnxr7Pt.js → pairing-labels-CGUWaZ3f.js} +1 -1
- package/dist/{pairing-store-CL-UFd1J.js → pairing-store-CQ7fjFFo.js} +2 -2
- package/dist/{path-alias-guards-DaLVcmyn.js → path-alias-guards-BSmwo1rT.js} +3 -3
- package/dist/{path-env-CQ3HfD18.js → path-env-IcDKkMPr.js} +1 -1
- package/dist/{path-safety-DSl6BwW9.js → path-safety-DAKUyD-v.js} +1 -1
- package/dist/{pi-embedded-helpers-DxQslB8x.js → pi-embedded-helpers-DEHXX7Dr.js} +8 -8
- package/dist/{pi-embedded-recovery-adapter-DRzWCwVb.js → pi-embedded-recovery-adapter-MaU4SQ3X.js} +3 -3
- package/dist/pi-embedded-recovery-adapter-ZV9u5snz.js +61 -0
- package/dist/{pi-embedded-utils-39kuXd-l.js → pi-embedded-utils-BhOMYPQU.js} +2 -2
- package/dist/{pi-model-discovery-B9wn9y4o.js → pi-model-discovery-CfUi22Es.js} +1 -1
- package/dist/{pi-tools.policy-BViSZbge.js → pi-tools.policy-4GqIom7_.js} +4 -4
- package/dist/{plugin-owned-work-recovery-adapter-CnQZf19o.js → plugin-owned-work-recovery-adapter-DHYQi-Bq.js} +8 -8
- package/dist/{plugin-registry-DBsuekLm.js → plugin-registry-alYBvHFE.js} +4 -4
- package/dist/plugin-sdk/{agent-scope-BYp_CjdU.js → agent-scope-BLF4nZUv.js} +2 -2
- package/dist/plugin-sdk/agent-turn-execute-C4MQxaT2.js +61 -0
- package/dist/plugin-sdk/{agent-turn-runner-CeC9JbVM.js → agent-turn-runner-YBWX_qXk.js} +6 -6
- package/dist/plugin-sdk/agent-turn-runner-e_lJzDgA.js +11 -0
- package/dist/plugin-sdk/{api-key-rotation-CDNf_4cI.js → api-key-rotation-XDUKz2gd.js} +2 -2
- package/dist/plugin-sdk/{artifacts-BMLMg3MG.js → artifacts-HAYpGlG1.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-BmKL6FNP.js → audio-preflight-BS29OWk3.js} +2 -2
- package/dist/plugin-sdk/audio-preflight-DE04bi4M.js +28 -0
- package/dist/plugin-sdk/{audio-transcription-runner-TBjJv_mZ.js → audio-transcription-runner-BNafitZj.js} +10 -10
- package/dist/plugin-sdk/{auth-profiles-DHZjW8Vk.js → auth-profiles-CCJQoedi.js} +5 -5
- package/dist/plugin-sdk/{channel-activity-Dr4PYej7.js → channel-activity-BKwRzYJb.js} +3 -3
- package/dist/plugin-sdk/{chrome-BDy1zYAr.js → chrome-D0eLSqkP.js} +4 -4
- package/dist/plugin-sdk/{chunk-DGQdf0JN.js → chunk-CDvvv9SU.js} +3 -3
- package/dist/plugin-sdk/{chunk-BTSnO1wn.js → chunk-DI-5pBck.js} +6 -6
- package/dist/plugin-sdk/{command-detection-w_6bwXGh.js → command-detection-B3xgM_Na.js} +85 -85
- package/dist/plugin-sdk/{command-queue-CeaLVs8O.js → command-queue-BnJsJc_w.js} +8 -8
- package/dist/plugin-sdk/{command-queue-DFSOdqCK.js → command-queue-CHiQj9Ji.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-8sy0wsK_.js → commands-registry-Do_g2It_.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-N6f_lsxF.js → commands-registry-DpLk11E7.js} +2 -2
- package/dist/plugin-sdk/{config-Biusjzx-.js → config-CQNfmIC8.js} +7 -7
- package/dist/plugin-sdk/deliver-D4fWK65M.js +32 -0
- package/dist/plugin-sdk/{deliver-BgHA8c9F.js → deliver-L6eu6zyG.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-D6hSjxiv.js → diagnostic-C7lPoqyv.js} +5 -5
- package/dist/plugin-sdk/{diagnostic-Bni_8VyY.js → diagnostic-DfxuMWHd.js} +7 -7
- package/dist/plugin-sdk/{fetch-guard-C1a1KfEb.js → fetch-guard-CZT8FU1i.js} +3 -3
- package/dist/plugin-sdk/{fs-safe-CbZ6uRVv.js → fs-safe-B0JgGdXa.js} +3 -3
- package/dist/plugin-sdk/{hook-runner-global-BvxlnAyu.js → hook-runner-global-WRI53ibi.js} +3 -3
- package/dist/{image-ops-D-__yDh-.js → plugin-sdk/image-ops-kuILYHZv.js} +12 -12
- package/dist/plugin-sdk/index.js +54 -54
- package/dist/plugin-sdk/{ir-BNohi6ZW.js → ir-Bm7oqkwT.js} +5 -5
- package/dist/plugin-sdk/{local-roots-Bm7nDW20.js → local-roots-D-CHzVr1.js} +7 -7
- package/dist/plugin-sdk/{logger-D6KsqbNW.js → logger-BSK-0Yjx.js} +1 -1
- package/dist/plugin-sdk/manager-BlYRVNJI.js +16 -0
- package/dist/plugin-sdk/{manager-B_vK9MbM.js → manager-D2jffdjH.js} +8 -8
- package/dist/plugin-sdk/{markdown-tables-G4vK24xc.js → markdown-tables-DIWQQ2W1.js} +2 -2
- package/dist/plugin-sdk/markdown-tables-cZSKCBuW.js +10 -0
- package/dist/plugin-sdk/{outbound-attachment-Cw7T2Mrt.js → outbound-attachment-CtKKNyms.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-CVybi_GQ.js → path-alias-guards-CHfCMaeX.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-B_jgacW8.js → pi-embedded-helpers-BRymkO_1.js} +11 -11
- package/dist/plugin-sdk/{pi-embedded-utils-DOXEm_H8.js → pi-embedded-utils-BHmc3RVS.js} +3 -3
- package/dist/plugin-sdk/{pi-model-discovery-DWw1ReX-.js → pi-model-discovery-4X7_2_nP.js} +6 -6
- package/dist/plugin-sdk/{pi-model-discovery-DWUrLRLg.js → pi-model-discovery-6BBajZds.js} +1 -1
- package/dist/plugin-sdk/provider-dispatcher-D7bchiJq.js +61 -0
- package/dist/plugin-sdk/provider-image-CNlYbRab.js +22 -0
- package/dist/plugin-sdk/{provider-image-CEQrHWYz.js → provider-image-DBye3Ln5.js} +5 -5
- package/dist/plugin-sdk/proxy-D2uiu68M.js +7 -0
- package/dist/plugin-sdk/{proxy-BWc9guJs.js → proxy-DJ2nskkh.js} +1 -1
- package/dist/{proxy-fetch-k-wYHddO.js → plugin-sdk/proxy-fetch-CuQpjpkI.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-DQv6Xhce.js → pw-ai-BJrhPMHJ.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-CpV0SFnY.js → qmd-manager-DhW_frb3.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-CwmHvvV_.js → query-expansion-NpBeKA8F.js} +3 -3
- package/dist/plugin-sdk/{recorder-BXZMRSjO.js → recorder-DdbAQ2HO.js} +4 -4
- package/dist/plugin-sdk/{redact-C88Ryyfs.js → redact-CUjmZn2Y.js} +1 -1
- package/dist/plugin-sdk/{replies-l2hZAzbt.js → replies-Dw3jvqpR.js} +4 -4
- package/dist/plugin-sdk/replies-XUkqz_7S.js +25 -0
- package/dist/plugin-sdk/{reply-directives-BwxzQXmX.js → reply-directives-BS8Ge06Z.js} +2 -2
- package/dist/plugin-sdk/{reply-prefix-qLQRxqrf.js → reply-prefix-Dt1hESHJ.js} +1 -1
- package/dist/plugin-sdk/reply-prefix-MU3uY52y.js +7 -0
- package/dist/plugin-sdk/{resolve-route-50KoArP9.js → resolve-route-BpLuk-wC.js} +4 -4
- package/dist/plugin-sdk/{resolve-route-6v1HVvWk.js → resolve-route-DiQTL1qI.js} +6 -6
- package/dist/plugin-sdk/{runs-CiohhBb8.js → runs-D6fAvItC.js} +7 -7
- package/dist/plugin-sdk/runs-R28wdt7j.js +25 -0
- package/dist/plugin-sdk/{send-Cv2CGnsK.js → send-BDwTyH6I.js} +8 -8
- package/dist/plugin-sdk/{send-DM6RpDCL.js → send-CE_6VOiQ.js} +7 -7
- package/dist/plugin-sdk/{send-Cx6gHjnA.js → send-Ce2XBaKF.js} +6 -6
- package/dist/plugin-sdk/send-Cg2VXcO0.js +27 -0
- package/dist/plugin-sdk/{send-BMSqETcU.js → send-CpXGZgrS.js} +6 -6
- package/dist/plugin-sdk/send-DAs6FmWB.js +23 -0
- package/dist/plugin-sdk/{send-DO0C4Uva.js → send-GMYUhBtJ.js} +19 -19
- package/dist/plugin-sdk/{send-DG4MQPPm.js → send-R0HB1-l-.js} +13 -13
- package/dist/plugin-sdk/send-UIQH_kN6.js +25 -0
- package/dist/plugin-sdk/send-tASIQF-Q.js +24 -0
- package/dist/plugin-sdk/{session-meta-CiqJP0pO.js → session-meta-BU2WXD0N.js} +2 -2
- package/dist/plugin-sdk/session-meta-Dd1ZONel.js +10 -0
- package/dist/plugin-sdk/{skill-commands-CE_SkRQk.js → skill-commands-BYfWIPfV.js} +5 -5
- package/dist/plugin-sdk/skill-commands-C7ZE3rKj.js +14 -0
- package/dist/plugin-sdk/{skills-CjW6uGTa.js → skills-BuJjEYto.js} +6 -6
- package/dist/plugin-sdk/{ssrf-BUCEDxp5.js → ssrf-DiAz1Z_z.js} +2 -2
- package/dist/plugin-sdk/{store-yBNTHg3N.js → store-Bl3Yjf_w.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-2P8D5Trx.js +61 -0
- package/dist/plugin-sdk/{subsystem-CUUKL6Fr.js → subsystem-B2x33s9h.js} +4 -4
- package/dist/plugin-sdk/{tables-DKYi6grj.js → tables-CTmQQyfU.js} +1 -1
- package/dist/plugin-sdk/{tokens-ysZUkYZZ.js → tokens-DxJSOoJn.js} +1 -1
- package/dist/plugin-sdk/{tool-loop-detection-LsvZ1dIY.js → tool-loop-detection-Buouaxew.js} +1 -1
- package/dist/plugin-sdk/user-run-recording-BMikDBXR.js +11 -0
- package/dist/plugin-sdk/{user-run-recording-BMaK7jNR.js → user-run-recording-juCW_uQ-.js} +2 -2
- package/dist/{plugins-cli-Dr8MUuiG.js → plugins-cli-DnMc_Sn3.js} +108 -108
- package/dist/{polling-timeout-DQakFlgy.js → polling-timeout-lNYd7owP.js} +2 -2
- package/dist/{ports-D_uxJ7Lw.js → ports-BTxrPqTm.js} +2 -2
- package/dist/{ports-CmgxsJei.js → ports-CX4cOSom.js} +6 -6
- package/dist/{program-context-Bl-xFa6k.js → program-context-CJuzphrY.js} +47 -47
- package/dist/{progress-DVj1IfDI.js → progress-DRMfDm7h.js} +2 -2
- package/dist/{prompt-select-styled-BpNRj_0c.js → prompt-select-styled-C-FwsHQX.js} +48 -48
- package/dist/{prompt-style-DdJb0dOL.js → prompt-style-D0wRuIYC.js} +1 -1
- package/dist/{provider-auth-helpers-DUu-jv0m.js → provider-auth-helpers-DsfkAslg.js} +6 -6
- package/dist/{provider-image-GVjHOAmk.js → provider-image-RxbXQIow.js} +6 -6
- package/dist/{proxy-XUweXx3b.js → proxy-Df2WAHRA.js} +1 -1
- package/dist/{plugin-sdk/proxy-fetch-BYkGxQnh.js → proxy-fetch-Czv8kxaL.js} +1 -1
- package/dist/{push-apns--BFmn4qT.js → push-apns-Mp5OOpUH.js} +8 -8
- package/dist/{pw-ai-DcOIsodu.js → pw-ai-DmE1ofBV.js} +19 -19
- package/dist/{qmd-manager-Cl4D1wtV.js → qmd-manager-DvoTSplw.js} +23 -23
- package/dist/{qr-cli-DDaJ5f3a.js → qr-cli-BCIfpQUF.js} +8 -8
- package/dist/{query-expansion-DNw0oY0W.js → query-expansion-BD3CL_NZ.js} +13 -13
- package/dist/{reconcile-bundled-CoL_d96f.js → reconcile-bundled-BMWDZl32.js} +3 -3
- package/dist/{recorder-B9RfsO1r.js → recorder-BntUAL0_.js} +2 -2
- package/dist/{recovery-adapter-Bokfvz7s.js → recovery-adapter-BF5ESanQ.js} +2 -2
- package/dist/{recovery-adapter-B6QLivR9.js → recovery-adapter-BMqm3Nm4.js} +35 -35
- package/dist/{recovery-adapter-CMFB03AL.js → recovery-adapter-NtvPZ47M.js} +4 -4
- package/dist/{recovery-prompt-B1_BcmiM.js → recovery-prompt-SkkJ8aCp.js} +1 -1
- package/dist/{redact-snapshot-BtpCwP1X.js → redact-snapshot-Cm6wsMRx.js} +2 -2
- package/dist/{register.agent-Bv1bLbKG.js → register.agent-B5_L0CjL.js} +121 -121
- package/dist/register.configure-BbDac1C1.js +168 -0
- package/dist/{register.maintenance-C8FDl5FT.js → register.maintenance-Co2DeyQ1.js} +124 -124
- package/dist/{register.message-CAfCYwJP.js → register.message-BWeca9Pc.js} +98 -98
- package/dist/{register.onboard-cFRLSpET.js → register.onboard-4mSx6LtC.js} +22 -22
- package/dist/{register.setup-Bzi-36J6.js → register.setup-DCRrXbdT.js} +25 -25
- package/dist/{register.status-health-sessions-DV7xRpuM.js → register.status-health-sessions-DK12_BeX.js} +114 -114
- package/dist/{replay-DzQXXHrC.js → replay-BHfUVVHN.js} +1 -1
- package/dist/{replies-Bg8KJkdJ.js → replies-DoejQAqN.js} +4 -4
- package/dist/{reply-BsDGtY7Y.js → reply-BIZ2zaUq.js} +186 -186
- package/dist/{reply-directives-HkwESo_w.js → reply-directives-D5wW1el3.js} +2 -2
- package/dist/{reply-prefix-Cur1savb.js → reply-prefix-D0xrt6Z-.js} +1 -1
- package/dist/{resolve-route-C7CVSjFi.js → resolve-route-DnhX9nWr.js} +4 -4
- package/dist/{rpc-C1SlEDeI.js → rpc-B2GRFhpM.js} +3 -3
- package/dist/{runs-B3mLUDEo.js → runs-Yajg-SST.js} +7 -7
- package/dist/{runtime-Dp2vE941.js → runtime-Ch9itsH4.js} +4 -4
- package/dist/{runtime-config-collectors-CwBbdMqb.js → runtime-config-collectors-B4N79pBu.js} +1 -1
- package/dist/{runtime-guard-kynCEcXy.js → runtime-guard-DYUXYZIl.js} +1 -1
- package/dist/{sandbox-BnwxiNjx.js → sandbox-Ft7cM-PQ.js} +18 -18
- package/dist/{sandbox-cli-0Umoh6lR.js → sandbox-cli-DvMqiG0-.js} +26 -26
- package/dist/{secrets-cli-uctHYxxr.js → secrets-cli-mfGtyiPb.js} +16 -16
- package/dist/{security-cli-DgE-l1dY.js → security-cli-p_5UwabW.js} +43 -43
- package/dist/{send-BXSNB2Gu.js → send-26KAC8EW.js} +6 -6
- package/dist/{send-DkVvmrg9.js → send-9toI8d1j.js} +6 -6
- package/dist/{send-ZT3Ekuty.js → send-BA9PXvuC.js} +7 -7
- package/dist/{send-DweRAIgI.js → send-Cy2xiH02.js} +13 -13
- package/dist/{send-CgTUSkhw.js → send-DQQFc4N0.js} +14 -14
- package/dist/{server-context-qqDarnk8.js → server-context-Dezs5R_M.js} +12 -12
- package/dist/{server-BiyBJMEv.js → server-l9oy68N_.js} +25 -25
- package/dist/{server-lifecycle-E2HPe1NZ.js → server-lifecycle-DcVZS1ln.js} +3 -3
- package/dist/{server-middleware-CHvpqowx.js → server-middleware-BND1EkTO.js} +1 -1
- package/dist/{server-node-events-uGHyBXqP.js → server-node-events-BaFY8QcO.js} +97 -97
- package/dist/{service-CH9BWwSD.js → service-Hy5BSgmp.js} +15 -15
- package/dist/{session-consumer-agents-D_hiCJHw.js → session-consumer-agents-DWh7Mygv.js} +1 -1
- package/dist/{session-consumer-claim-sweep-aKULSjxA.js → session-consumer-claim-sweep-Bc4Qq0rB.js} +8 -8
- package/dist/{session-key-resolution-BlwVEVt_.js → session-key-resolution-DDJD1XYy.js} +4 -4
- package/dist/{session-meta-CXWLeYOC.js → session-meta-DzjDKcgW.js} +1 -1
- package/dist/{session-storage-DYSvotxA.js → session-storage-D3bntc9N.js} +7 -7
- package/dist/{sessions-C6bPQgaD.js → sessions-BQYQBpX0.js} +15 -15
- package/dist/{sessions-claims-status-DSufSy2u.js → sessions-claims-status-Bt9unG8h.js} +12 -12
- package/dist/{shared-CRF96lZH.js → shared-Bc-7t0_-.js} +2 -2
- package/dist/{shared-BFbMaMtM.js → shared-DyT9yMRI.js} +3 -3
- package/dist/{skill-commands-D0sJs3ds.js → skill-commands-Be2Bqqsm.js} +7 -7
- package/dist/{skill-scanner-D7Edx-Uz.js → skill-scanner-BA3h34y0.js} +7 -7
- package/dist/{skills-DT7dF3Z_.js → skills-Buc1RWDY.js} +6 -6
- package/dist/{skills-cli-CINDQ2Qe.js → skills-cli-DHvoBCEx.js} +10 -10
- package/dist/{skills-install-BUqzygk8.js → skills-install-DqCRPwE1.js} +9 -9
- package/dist/{skills-status-K-JYoR_J.js → skills-status-Dufi5_o3.js} +3 -3
- package/dist/{ssrf-BsWmJWfu.js → ssrf-B85AIIOO.js} +1 -1
- package/dist/{status-CYumLEox.js → status-BYesh62t.js} +34 -34
- package/dist/{status.update-CDd1OP3p.js → status.update-BOB92yBQ.js} +2 -2
- package/dist/{store-BKJfMltr.js → store-DoqX9VsZ.js} +7 -7
- package/dist/{subsystem-DRdkfGsB.js → subsystem-DDZBycwS.js} +1 -1
- package/dist/{supervisor-recovery-adapter-BxLO7wjD.js → supervisor-recovery-adapter-CTaDRl_d.js} +8 -8
- package/dist/{system-cli-DJd5Vz-h.js → system-cli-B-THY8xp.js} +14 -14
- package/dist/{system-run-command-uuNBjw5D.js → system-run-command-AF8TLlEl.js} +2 -2
- package/dist/{systemd-LaMffSwB.js → systemd-DsBMxUv1.js} +11 -11
- package/dist/{systemd-hints-Cq7MC9oh.js → systemd-hints-WHzM5Tf8.js} +7 -7
- package/dist/{systemd-linger-Cv1mTB1q.js → systemd-linger-EvpJ4ZxF.js} +2 -2
- package/dist/{table-BntrQEtu.js → table-DoIju7rh.js} +2 -2
- package/dist/{tables-CI3gYRvQ.js → tables-CzW-cMQN.js} +1 -1
- package/dist/{tailnet-CA8Lq90p.js → tailnet-G5phL2pY.js} +1 -1
- package/dist/{tailscale-C-_dOj1h.js → tailscale-DbsrfsUT.js} +3 -3
- package/dist/{task-pipeline-boot-nWDIjt5K.js → task-pipeline-boot-CaVeITev.js} +97 -97
- package/dist/{task-runlog-retention-BlMTtOsA.js → task-runlog-retention-BZrnJGL1.js} +3 -3
- package/dist/{tasks-NzeWQU_K.js → tasks-DXPXCFmn.js} +12 -12
- package/dist/{tokens-C6a47LiJ.js → tokens-BvecxQYg.js} +1 -1
- package/dist/{tool-display-CwPZlMoS.js → tool-display-D63I3y22.js} +1 -1
- package/dist/{tool-loop-detection-BUuXGw31.js → tool-loop-detection-3zBgQ3Bx.js} +2 -2
- package/dist/{trash-CYaie1Ci.js → trash-BcRk_NVC.js} +3 -3
- package/dist/{tui-CPb7mIZu.js → tui-Bo4LZvgz.js} +8 -8
- package/dist/{tui-cli-Csu-daF-.js → tui-cli-hVvCHoLU.js} +32 -32
- package/dist/{update-BqKLo08q.js → update-CXf5cJ0D.js} +3 -3
- package/dist/{update-cli-DjE99d_9.js → update-cli-BB7ybH-w.js} +134 -134
- package/dist/{update-runner-CrNSgmGV.js → update-runner-BYv_ec3N.js} +18 -18
- package/dist/{user-run-recording-DjkX5Mx3.js → user-run-recording-CTVI96gC.js} +2 -2
- package/dist/{utils-CmAaKeiM.js → utils-CMEUUHmM.js} +7 -7
- package/dist/{validation-cli-BRxfq9qy.js → validation-cli-CGimO4ZJ.js} +97 -97
- package/dist/{web-cli-DINMU0iQ.js → web-cli-KjTxS3h8.js} +3 -3
- package/dist/{web-client-assets-O1Zun47I.js → web-client-assets-CJyKwFRS.js} +1 -1
- package/dist/{webhooks-cli-YjIqpt4M.js → webhooks-cli-DJhGZcBz.js} +11 -11
- package/dist/{widearea-dns-DZj5625G.js → widearea-dns-DgeeMUtJ.js} +1 -1
- package/dist/{with-timeout-6n6HxT65.js → with-timeout-NhJMC1fC.js} +6 -6
- package/dist/{workspace-CgJWyvaY.js → workspace-CcKQx_l1.js} +2 -2
- package/dist/{workspace-dirs-B9yugPA_.js → workspace-dirs-_vJAsBIN.js} +1 -1
- package/dist/{ws-E-wJFDgg.js → ws-BuVK_u9S.js} +2 -2
- package/dist/{wsl-CMayUQxI.js → wsl-Baz9nyoY.js} +2 -2
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +3 -2
- package/dist/cli-BLPnNVZp.js +0 -164
- package/dist/pi-embedded-recovery-adapter-CB8bcT6A.js +0 -61
- package/dist/plugin-sdk/agent-turn-execute-DYtSZF3l.js +0 -61
- package/dist/plugin-sdk/agent-turn-runner-P-MKFb_i.js +0 -11
- package/dist/plugin-sdk/audio-preflight-DlGohKMs.js +0 -28
- package/dist/plugin-sdk/deliver-DBCz1GqU.js +0 -32
- package/dist/plugin-sdk/manager-ByaW_O4Y.js +0 -16
- package/dist/plugin-sdk/markdown-tables-J4hZ7eWU.js +0 -10
- package/dist/plugin-sdk/provider-dispatcher-Co_hyl4q.js +0 -61
- package/dist/plugin-sdk/provider-image-B_dJDOl5.js +0 -22
- package/dist/plugin-sdk/proxy-DwbYzxBy.js +0 -7
- package/dist/plugin-sdk/replies-B9uDLFOE.js +0 -25
- package/dist/plugin-sdk/reply-prefix-BQMEQam1.js +0 -7
- package/dist/plugin-sdk/runs-BQhYekhr.js +0 -25
- package/dist/plugin-sdk/send-CeWqZTK0.js +0 -23
- package/dist/plugin-sdk/send-CzcKgBBf.js +0 -25
- package/dist/plugin-sdk/send-Dvna5ey-.js +0 -27
- package/dist/plugin-sdk/send-xPV0QIjh.js +0 -24
- package/dist/plugin-sdk/session-meta-n4SCcAbJ.js +0 -10
- package/dist/plugin-sdk/skill-commands-BOV3NIbU.js +0 -14
- package/dist/plugin-sdk/subagent-registry-jIsL_HVh.js +0 -61
- package/dist/plugin-sdk/user-run-recording-DiKcNdjn.js +0 -11
- package/dist/register.configure-nGWw6mGM.js +0 -168
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as resolveGatewayLogPaths } from "./service-
|
|
2
|
-
import
|
|
1
|
+
import { s as resolveGatewayLogPaths } from "./service-Hy5BSgmp.js";
|
|
2
|
+
import fs from "node:fs/promises";
|
|
3
3
|
|
|
4
4
|
//#region src/daemon/diagnostics.ts
|
|
5
5
|
const GATEWAY_LOG_ERROR_PATTERNS = [
|
|
@@ -11,7 +11,7 @@ const GATEWAY_LOG_ERROR_PATTERNS = [
|
|
|
11
11
|
];
|
|
12
12
|
async function readLastLogLine(filePath) {
|
|
13
13
|
try {
|
|
14
|
-
const lines = (await
|
|
14
|
+
const lines = (await fs.readFile(filePath, "utf8")).split(/\r?\n/).map((line) => line.trim());
|
|
15
15
|
for (let i = lines.length - 1; i >= 0; i -= 1) if (lines[i]) return lines[i];
|
|
16
16
|
return null;
|
|
17
17
|
} catch {
|
|
@@ -20,8 +20,8 @@ async function readLastLogLine(filePath) {
|
|
|
20
20
|
}
|
|
21
21
|
async function readLastGatewayErrorLine(env) {
|
|
22
22
|
const { stdoutPath, stderrPath } = resolveGatewayLogPaths(env);
|
|
23
|
-
const stderrRaw = await
|
|
24
|
-
const stdoutRaw = await
|
|
23
|
+
const stderrRaw = await fs.readFile(stderrPath, "utf8").catch(() => "");
|
|
24
|
+
const stdoutRaw = await fs.readFile(stdoutPath, "utf8").catch(() => "");
|
|
25
25
|
const lines = [...stderrRaw.split(/\r?\n/), ...stdoutRaw.split(/\r?\n/)].map((line) => line.trim());
|
|
26
26
|
for (let i = lines.length - 1; i >= 0; i -= 1) {
|
|
27
27
|
const line = lines[i];
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import "./paths-BBP4yd-2.js";
|
|
2
|
-
import { I as theme, w as danger } from "./utils-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import { m as defaultRuntime } from "./subsystem-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./exec-
|
|
7
|
-
import { Nt as loadConfig, es as getChannelPlugin } from "./model-selection-
|
|
2
|
+
import { I as theme, w as danger } from "./utils-CMEUUHmM.js";
|
|
3
|
+
import "./agent-scope-CWTkr4pS.js";
|
|
4
|
+
import { m as defaultRuntime } from "./subsystem-DDZBycwS.js";
|
|
5
|
+
import "./logger-0VqfDbvM.js";
|
|
6
|
+
import "./exec-CHq-p5L0.js";
|
|
7
|
+
import { Nt as loadConfig, es as getChannelPlugin } from "./model-selection-k68XU4oS.js";
|
|
8
8
|
import "./github-copilot-token-D9l3eOWF.js";
|
|
9
9
|
import "./boolean-BsqeuxE6.js";
|
|
10
|
-
import "./env-
|
|
10
|
+
import "./env-ESh4ZX9l.js";
|
|
11
11
|
import "./version-D7fFgMO6.js";
|
|
12
12
|
import "./retry-policy-BIRWkDiU.js";
|
|
13
13
|
import "./artifacts-qv_OgPMd.js";
|
|
14
14
|
import "./chat-envelope-DOpfcKGq.js";
|
|
15
15
|
import "./task-run-types-B5uIC1Y7.js";
|
|
16
16
|
import "./static-server-C-iTMRyz.js";
|
|
17
|
-
import { n as resolveMessageChannelSelection } from "./channel-selection-
|
|
18
|
-
import { t as formatDocsLink } from "./links-
|
|
19
|
-
import { t as formatHelpExamples } from "./help-format-
|
|
17
|
+
import { n as resolveMessageChannelSelection } from "./channel-selection-zg0Iqza4.js";
|
|
18
|
+
import { t as formatDocsLink } from "./links-BhLGjTwm.js";
|
|
19
|
+
import { t as formatHelpExamples } from "./help-format-DqpZruAs.js";
|
|
20
20
|
import { t as resolveChannelDefaultAccountId } from "./helpers-CU6_xh9V.js";
|
|
21
|
-
import { t as renderTable } from "./table-
|
|
21
|
+
import { t as renderTable } from "./table-DoIju7rh.js";
|
|
22
22
|
|
|
23
23
|
//#region src/cli/directory-cli.ts
|
|
24
24
|
function parseLimit(value) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "./paths-BBP4yd-2.js";
|
|
2
|
-
import { I as theme } from "./utils-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import { m as defaultRuntime } from "./subsystem-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./exec-
|
|
7
|
-
import { Nt as loadConfig } from "./model-selection-
|
|
2
|
+
import { I as theme } from "./utils-CMEUUHmM.js";
|
|
3
|
+
import "./agent-scope-CWTkr4pS.js";
|
|
4
|
+
import { m as defaultRuntime } from "./subsystem-DDZBycwS.js";
|
|
5
|
+
import "./logger-0VqfDbvM.js";
|
|
6
|
+
import "./exec-CHq-p5L0.js";
|
|
7
|
+
import { Nt as loadConfig } from "./model-selection-k68XU4oS.js";
|
|
8
8
|
import "./github-copilot-token-D9l3eOWF.js";
|
|
9
9
|
import "./boolean-BsqeuxE6.js";
|
|
10
|
-
import "./env-
|
|
10
|
+
import "./env-ESh4ZX9l.js";
|
|
11
11
|
import "./version-D7fFgMO6.js";
|
|
12
12
|
import "./retry-policy-BIRWkDiU.js";
|
|
13
13
|
import "./artifacts-qv_OgPMd.js";
|
|
14
14
|
import "./chat-envelope-DOpfcKGq.js";
|
|
15
15
|
import "./task-run-types-B5uIC1Y7.js";
|
|
16
16
|
import "./static-server-C-iTMRyz.js";
|
|
17
|
-
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-
|
|
18
|
-
import { t as formatDocsLink } from "./links-
|
|
19
|
-
import { t as renderTable } from "./table-
|
|
20
|
-
import { n as resolveWideAreaDiscoveryDomain, t as getWideAreaZonePath } from "./widearea-dns-
|
|
17
|
+
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-G5phL2pY.js";
|
|
18
|
+
import { t as formatDocsLink } from "./links-BhLGjTwm.js";
|
|
19
|
+
import { t as renderTable } from "./table-DoIju7rh.js";
|
|
20
|
+
import { n as resolveWideAreaDiscoveryDomain, t as getWideAreaZonePath } from "./widearea-dns-DgeeMUtJ.js";
|
|
21
21
|
import fs from "node:fs";
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
import { spawnSync } from "node:child_process";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./paths-BBP4yd-2.js";
|
|
2
|
-
import { F as isRich, I as theme } from "./utils-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import { m as defaultRuntime } from "./subsystem-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import { t as runCommandWithTimeout } from "./exec-
|
|
7
|
-
import "./model-selection-
|
|
2
|
+
import { F as isRich, I as theme } from "./utils-CMEUUHmM.js";
|
|
3
|
+
import "./agent-scope-CWTkr4pS.js";
|
|
4
|
+
import { m as defaultRuntime } from "./subsystem-DDZBycwS.js";
|
|
5
|
+
import "./logger-0VqfDbvM.js";
|
|
6
|
+
import { t as runCommandWithTimeout } from "./exec-CHq-p5L0.js";
|
|
7
|
+
import "./model-selection-k68XU4oS.js";
|
|
8
8
|
import "./github-copilot-token-D9l3eOWF.js";
|
|
9
9
|
import "./boolean-BsqeuxE6.js";
|
|
10
|
-
import "./env-
|
|
10
|
+
import "./env-ESh4ZX9l.js";
|
|
11
11
|
import "./version-D7fFgMO6.js";
|
|
12
12
|
import "./retry-policy-BIRWkDiU.js";
|
|
13
13
|
import "./artifacts-qv_OgPMd.js";
|
|
@@ -15,13 +15,13 @@ import { t as formatCliCommand } from "./command-format-CGUNQYjt.js";
|
|
|
15
15
|
import "./chat-envelope-DOpfcKGq.js";
|
|
16
16
|
import "./task-run-types-B5uIC1Y7.js";
|
|
17
17
|
import "./static-server-C-iTMRyz.js";
|
|
18
|
-
import "./path-alias-guards-
|
|
18
|
+
import "./path-alias-guards-BSmwo1rT.js";
|
|
19
19
|
import "./redact-CQtYLB4a.js";
|
|
20
20
|
import "./errors-z_JCBnTo.js";
|
|
21
21
|
import { d as hasBinary } from "./frontmatter-B8Zb_8go.js";
|
|
22
|
-
import "./skills-
|
|
22
|
+
import "./skills-Buc1RWDY.js";
|
|
23
23
|
import { n as docsSiteUrl } from "./docs-site-CQKzDXJz.js";
|
|
24
|
-
import { t as formatDocsLink } from "./links-
|
|
24
|
+
import { t as formatDocsLink } from "./links-BhLGjTwm.js";
|
|
25
25
|
import { n as runCommandWithRuntime } from "./cli-utils-DWSfnwCw.js";
|
|
26
26
|
import MarkdownIt from "markdown-it";
|
|
27
27
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as resolveOpenClawPackageRoot } from "./openclaw-root-
|
|
1
|
+
import { n as resolveOpenClawPackageRoot } from "./openclaw-root-BGUYWYDG.js";
|
|
2
2
|
import { r as resolveCliName } from "./command-format-CGUNQYjt.js";
|
|
3
|
-
import { t as note } from "./note-
|
|
4
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
3
|
+
import { t as note } from "./note-DCbCarQS.js";
|
|
4
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-Dbszfn8D.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
7
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { f as resolveLegacyStateDirs, g as resolveStateDir, m as resolveOAuthDir, p as resolveNewStateDir, t as CONFIG_PATH } from "./paths-BBP4yd-2.js";
|
|
2
|
-
import { d as isRecord, h as resolveHomeDir } from "./utils-
|
|
3
|
-
import { d as resolveDefaultAgentId } from "./agent-scope-
|
|
2
|
+
import { d as isRecord, h as resolveHomeDir } from "./utils-CMEUUHmM.js";
|
|
3
|
+
import { d as resolveDefaultAgentId } from "./agent-scope-CWTkr4pS.js";
|
|
4
4
|
import { S as normalizeAccountId, d as normalizeAgentId, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, x as DEFAULT_ACCOUNT_ID } from "./session-key-B1wN38jV.js";
|
|
5
|
-
import { Al as resolveSlackNativeStreaming, Dl as formatSlackStreamingBooleanMigrationMessage, El as formatSlackStreamModeMigrationMessage, Ft as readConfigFileSnapshot, Hs as parseToolsBySenderTypedKey, Kc as normalizeTrustedSafeBinDirs, Kn as resolveEnableState, Ml as resolveTelegramPreviewStreamMode, Uc as getTrustedSafeBinDirs, Vt as OpenClawSchema, Wc as isTrustedSafeBinPath, Wn as normalizePluginsConfig, ds as resolveTelegramAccount, fr as normalizeChatChannelId, jl as resolveSlackStreamingMode, kl as resolveDiscordPreviewStreamMode, kt as migrateLegacyConfig, ls as listTelegramAccountIds, pi as saveSessionStore, qo as canonicalizeMainSessionAlias, rl as resolveCommandResolutionFromArgv } from "./model-selection-
|
|
5
|
+
import { Al as resolveSlackNativeStreaming, Dl as formatSlackStreamingBooleanMigrationMessage, El as formatSlackStreamModeMigrationMessage, Ft as readConfigFileSnapshot, Hs as parseToolsBySenderTypedKey, Kc as normalizeTrustedSafeBinDirs, Kn as resolveEnableState, Ml as resolveTelegramPreviewStreamMode, Uc as getTrustedSafeBinDirs, Vt as OpenClawSchema, Wc as isTrustedSafeBinPath, Wn as normalizePluginsConfig, ds as resolveTelegramAccount, fr as normalizeChatChannelId, jl as resolveSlackStreamingMode, kl as resolveDiscordPreviewStreamMode, kt as migrateLegacyConfig, ls as listTelegramAccountIds, pi as saveSessionStore, qo as canonicalizeMainSessionAlias, rl as resolveCommandResolutionFromArgv } from "./model-selection-k68XU4oS.js";
|
|
6
6
|
import { n as isPrimarySessionTranscriptFileName } from "./artifacts-qv_OgPMd.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-CGUNQYjt.js";
|
|
8
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
9
|
-
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-
|
|
10
|
-
import { i as applyPluginAutoEnable, n as collectUnsafeTelegramPollingTimeouts, t as applyTelegramPollingTimeoutRepair } from "./polling-timeout-
|
|
8
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-CQ7fjFFo.js";
|
|
9
|
+
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-KSPaR73B.js";
|
|
10
|
+
import { i as applyPluginAutoEnable, n as collectUnsafeTelegramPollingTimeouts, t as applyTelegramPollingTimeoutRepair } from "./polling-timeout-lNYd7owP.js";
|
|
11
11
|
import { t as collectProviderDangerousNameMatchingScopes } from "./dangerous-name-matching-BtJNZJcz.js";
|
|
12
12
|
import { r as shouldMoveSingleAccountChannelKey, t as fetchTelegramChatId } from "./api-BvPLZQBK.js";
|
|
13
|
-
import { t as note } from "./note-
|
|
14
|
-
import { t as isWithinDir } from "./path-safety-
|
|
15
|
-
import { n as formatConfigIssueLines } from "./issue-format-
|
|
13
|
+
import { t as note } from "./note-DCbCarQS.js";
|
|
14
|
+
import { t as isWithinDir } from "./path-safety-DAKUyD-v.js";
|
|
15
|
+
import { n as formatConfigIssueLines } from "./issue-format-D0G927lb.js";
|
|
16
16
|
import { a as isMattermostMutableAllowEntry, c as normalizeTelegramAllowFromEntry, i as isMSTeamsMutableAllowEntry, n as isGoogleChatMutableAllowEntry, o as isSlackMutableAllowEntry, r as isIrcMutableAllowEntry, s as isNumericTelegramUserId, t as isDiscordMutableAllowEntry } from "./mutable-allowlist-detectors-TCG6mnbz.js";
|
|
17
17
|
import fs from "node:fs";
|
|
18
18
|
import os from "node:os";
|
|
19
19
|
import path from "node:path";
|
|
20
20
|
import JSON5 from "json5";
|
|
21
|
-
import
|
|
21
|
+
import fs$1 from "node:fs/promises";
|
|
22
22
|
|
|
23
23
|
//#region src/commands/doctor-legacy-config.ts
|
|
24
24
|
function normalizeCompatibilityConfigValues(cfg) {
|
|
@@ -2259,7 +2259,7 @@ async function maybeMigrateLegacyConfig() {
|
|
|
2259
2259
|
const targetDir = path.join(home, ".openclaw");
|
|
2260
2260
|
const targetPath = path.join(targetDir, "openclaw.json");
|
|
2261
2261
|
try {
|
|
2262
|
-
await
|
|
2262
|
+
await fs$1.access(targetPath);
|
|
2263
2263
|
return changes;
|
|
2264
2264
|
} catch {}
|
|
2265
2265
|
const legacyCandidates = [
|
|
@@ -2269,14 +2269,14 @@ async function maybeMigrateLegacyConfig() {
|
|
|
2269
2269
|
];
|
|
2270
2270
|
let legacyPath = null;
|
|
2271
2271
|
for (const candidate of legacyCandidates) try {
|
|
2272
|
-
await
|
|
2272
|
+
await fs$1.access(candidate);
|
|
2273
2273
|
legacyPath = candidate;
|
|
2274
2274
|
break;
|
|
2275
2275
|
} catch {}
|
|
2276
2276
|
if (!legacyPath) return changes;
|
|
2277
|
-
await
|
|
2277
|
+
await fs$1.mkdir(targetDir, { recursive: true });
|
|
2278
2278
|
try {
|
|
2279
|
-
await
|
|
2279
|
+
await fs$1.copyFile(legacyPath, targetPath, fs$1.constants.COPYFILE_EXCL);
|
|
2280
2280
|
changes.push(`Migrated legacy config: ${legacyPath} -> ${targetPath}`);
|
|
2281
2281
|
} catch {}
|
|
2282
2282
|
return changes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fr as normalizeChatChannelId } from "./model-selection-
|
|
2
|
-
import { o as ensurePluginAllowlisted } from "./polling-timeout-
|
|
1
|
+
import { fr as normalizeChatChannelId } from "./model-selection-k68XU4oS.js";
|
|
2
|
+
import { o as ensurePluginAllowlisted } from "./polling-timeout-lNYd7owP.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/toggle-config.ts
|
|
5
5
|
function setPluginEnabledInConfig(config, pluginId, enabled) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as shouldLogVerbose, w as danger } from "./utils-
|
|
2
|
-
import { n as logError, t as logDebug } from "./logger-
|
|
1
|
+
import { j as shouldLogVerbose, w as danger } from "./utils-CMEUUHmM.js";
|
|
2
|
+
import { n as logError, t as logDebug } from "./logger-0VqfDbvM.js";
|
|
3
3
|
import process$1 from "node:process";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as expandHomePrefix } from "./paths-BBP4yd-2.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-DDZBycwS.js";
|
|
3
3
|
import { t as DEFAULT_AGENT_ID } from "./session-key-B1wN38jV.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path, { basename, dirname, join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $c as splitCommandChain, Wc as isTrustedSafeBinPath, Yc as analyzeShellCommand, Zc as isWindowsPlatform, el as DEFAULT_SAFE_BINS, ll as isDispatchWrapperExecutable, ml as unwrapKnownShellMultiplexerInvocation, nl as resolveAllowlistCandidatePath, pl as unwrapKnownDispatchWrapperInvocation, qc as validateSafeBinArgv, rl as resolveCommandResolutionFromArgv, sl as extractShellWrapperInlineCommand, tl as matchAllowlist, ul as isShellWrapperExecutable, yl as SAFE_BIN_PROFILES } from "./model-selection-
|
|
1
|
+
import { $c as splitCommandChain, Wc as isTrustedSafeBinPath, Yc as analyzeShellCommand, Zc as isWindowsPlatform, el as DEFAULT_SAFE_BINS, ll as isDispatchWrapperExecutable, ml as unwrapKnownShellMultiplexerInvocation, nl as resolveAllowlistCandidatePath, pl as unwrapKnownDispatchWrapperInvocation, qc as validateSafeBinArgv, rl as resolveCommandResolutionFromArgv, sl as extractShellWrapperInlineCommand, tl as matchAllowlist, ul as isShellWrapperExecutable, yl as SAFE_BIN_PROFILES } from "./model-selection-k68XU4oS.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/exec-approvals-allowlist.ts
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import "./paths-BBP4yd-2.js";
|
|
2
|
-
import { F as isRich, I as theme } from "./utils-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import { m as defaultRuntime } from "./subsystem-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./exec-
|
|
7
|
-
import "./model-selection-
|
|
2
|
+
import { F as isRich, I as theme } from "./utils-CMEUUHmM.js";
|
|
3
|
+
import "./agent-scope-CWTkr4pS.js";
|
|
4
|
+
import { m as defaultRuntime } from "./subsystem-DDZBycwS.js";
|
|
5
|
+
import "./logger-0VqfDbvM.js";
|
|
6
|
+
import "./exec-CHq-p5L0.js";
|
|
7
|
+
import "./model-selection-k68XU4oS.js";
|
|
8
8
|
import "./github-copilot-token-D9l3eOWF.js";
|
|
9
9
|
import "./boolean-BsqeuxE6.js";
|
|
10
|
-
import "./env-
|
|
10
|
+
import "./env-ESh4ZX9l.js";
|
|
11
11
|
import "./version-D7fFgMO6.js";
|
|
12
12
|
import "./retry-policy-BIRWkDiU.js";
|
|
13
13
|
import "./artifacts-qv_OgPMd.js";
|
|
14
14
|
import "./chat-envelope-DOpfcKGq.js";
|
|
15
15
|
import "./task-run-types-B5uIC1Y7.js";
|
|
16
16
|
import "./static-server-C-iTMRyz.js";
|
|
17
|
-
import "./tailnet-
|
|
18
|
-
import "./ws-
|
|
19
|
-
import "./client-
|
|
20
|
-
import "./call-
|
|
17
|
+
import "./tailnet-G5phL2pY.js";
|
|
18
|
+
import "./ws-BuVK_u9S.js";
|
|
19
|
+
import "./client-BbpMX08n.js";
|
|
20
|
+
import "./call-Cl6Q0T5z.js";
|
|
21
21
|
import "./pairing-token-A_0lRJCJ.js";
|
|
22
22
|
import { n as formatTimeAgo } from "./format-relative-cIsCN8mB.js";
|
|
23
|
-
import { h as saveExecApprovals, l as readExecApprovalsSnapshot } from "./exec-approvals-
|
|
24
|
-
import "./exec-approvals-allowlist-
|
|
25
|
-
import { t as formatDocsLink } from "./links-
|
|
26
|
-
import "./progress-
|
|
27
|
-
import { n as callGatewayFromCli } from "./gateway-rpc-
|
|
28
|
-
import "./service-
|
|
29
|
-
import "./systemd-
|
|
30
|
-
import { t as renderTable } from "./table-
|
|
31
|
-
import { t as describeUnknownError } from "./shared-
|
|
32
|
-
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-
|
|
23
|
+
import { h as saveExecApprovals, l as readExecApprovalsSnapshot } from "./exec-approvals-D8Tqfo34.js";
|
|
24
|
+
import "./exec-approvals-allowlist-0xON2SZW.js";
|
|
25
|
+
import { t as formatDocsLink } from "./links-BhLGjTwm.js";
|
|
26
|
+
import "./progress-DRMfDm7h.js";
|
|
27
|
+
import { n as callGatewayFromCli } from "./gateway-rpc-DNsG0xAN.js";
|
|
28
|
+
import "./service-Hy5BSgmp.js";
|
|
29
|
+
import "./systemd-DsBMxUv1.js";
|
|
30
|
+
import { t as renderTable } from "./table-DoIju7rh.js";
|
|
31
|
+
import { t as describeUnknownError } from "./shared-Bc-7t0_-.js";
|
|
32
|
+
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-B2GRFhpM.js";
|
|
33
33
|
import JSON5 from "json5";
|
|
34
|
-
import
|
|
34
|
+
import fs from "node:fs/promises";
|
|
35
35
|
|
|
36
36
|
//#region src/cli/exec-approvals-cli.ts
|
|
37
37
|
async function readStdin() {
|
|
@@ -328,7 +328,7 @@ function registerExecApprovalsCli(program) {
|
|
|
328
328
|
if (!opts.file && !opts.stdin) exitWithError("Provide --file or --stdin.");
|
|
329
329
|
if (opts.file && opts.stdin) exitWithError("Use either --file or --stdin (not both).");
|
|
330
330
|
const { source, nodeId, targetLabel, baseHash } = await loadWritableSnapshotTarget(opts);
|
|
331
|
-
const raw = opts.stdin ? await readStdin() : await
|
|
331
|
+
const raw = opts.stdin ? await readStdin() : await fs.readFile(String(opts.file), "utf8");
|
|
332
332
|
let file;
|
|
333
333
|
try {
|
|
334
334
|
file = JSON5.parse(raw);
|
package/dist/{exec-safe-bin-runtime-policy-CfsF46fx.js → exec-safe-bin-runtime-policy-KSPaR73B.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Gc as listWritableExplicitTrustedSafeBinDirs, Kc as normalizeTrustedSafeBinDirs, Uc as getTrustedSafeBinDirs, bl as normalizeSafeBinProfileFixtures, xl as resolveSafeBinProfiles } from "./model-selection-
|
|
2
|
-
import { i as resolveSafeBins } from "./exec-approvals-allowlist-
|
|
1
|
+
import { Gc as listWritableExplicitTrustedSafeBinDirs, Kc as normalizeTrustedSafeBinDirs, Uc as getTrustedSafeBinDirs, bl as normalizeSafeBinProfileFixtures, xl as resolveSafeBinProfiles } from "./model-selection-k68XU4oS.js";
|
|
2
|
+
import { i as resolveSafeBins } from "./exec-approvals-allowlist-0xON2SZW.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/exec-safe-bin-runtime-policy.ts
|
|
5
5
|
const INTERPRETER_LIKE_SAFE_BINS = new Set([
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { At as resolvePreferredOpenClawTmpDir, _t as isNotFoundPathError, vt as isPathInside } from "./utils-
|
|
2
|
-
import { Nt as loadConfig } from "./model-selection-
|
|
3
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
1
|
+
import { At as resolvePreferredOpenClawTmpDir, _t as isNotFoundPathError, vt as isPathInside } from "./utils-CMEUUHmM.js";
|
|
2
|
+
import { Nt as loadConfig } from "./model-selection-k68XU4oS.js";
|
|
3
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-DD7KXuvI.js";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fs from "node:fs/promises";
|
|
6
6
|
import { createHmac } from "node:crypto";
|
|
7
7
|
|
|
8
8
|
//#region src/browser/constants.ts
|
|
@@ -56,28 +56,28 @@ function invalidPath(scopeLabel) {
|
|
|
56
56
|
}
|
|
57
57
|
async function resolveRealPathIfExists(targetPath) {
|
|
58
58
|
try {
|
|
59
|
-
return await
|
|
59
|
+
return await fs.realpath(targetPath);
|
|
60
60
|
} catch {
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
async function resolveTrustedRootRealPath(rootDir) {
|
|
65
65
|
try {
|
|
66
|
-
const rootLstat = await
|
|
66
|
+
const rootLstat = await fs.lstat(rootDir);
|
|
67
67
|
if (!rootLstat.isDirectory() || rootLstat.isSymbolicLink()) return;
|
|
68
|
-
return await
|
|
68
|
+
return await fs.realpath(rootDir);
|
|
69
69
|
} catch {
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
async function validateCanonicalPathWithinRoot(params) {
|
|
74
74
|
try {
|
|
75
|
-
const candidateLstat = await
|
|
75
|
+
const candidateLstat = await fs.lstat(params.candidatePath);
|
|
76
76
|
if (candidateLstat.isSymbolicLink()) return "invalid";
|
|
77
77
|
if (params.expect === "directory" && !candidateLstat.isDirectory()) return "invalid";
|
|
78
78
|
if (params.expect === "file" && !candidateLstat.isFile()) return "invalid";
|
|
79
79
|
if (params.expect === "file" && candidateLstat.nlink > 1) return "invalid";
|
|
80
|
-
const candidateRealPath = await
|
|
80
|
+
const candidateRealPath = await fs.realpath(params.candidatePath);
|
|
81
81
|
return isPathInside(params.rootRealPath, candidateRealPath) ? "ok" : "invalid";
|
|
82
82
|
} catch (err) {
|
|
83
83
|
return isNotFoundPathError(err) ? "not-found" : "invalid";
|
|
@@ -155,7 +155,7 @@ async function resolveCheckedPathsWithinRoot(params) {
|
|
|
155
155
|
};
|
|
156
156
|
if (!rootRealPath || !raw || !path.isAbsolute(raw)) return lexicalPathResult;
|
|
157
157
|
try {
|
|
158
|
-
const resolvedExistingPath = await
|
|
158
|
+
const resolvedExistingPath = await fs.realpath(raw);
|
|
159
159
|
const relativePath = path.relative(rootRealPath, resolvedExistingPath);
|
|
160
160
|
if (!isInRoot(relativePath)) return lexicalPathResult;
|
|
161
161
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as logWarn, r as logInfo } from "./logger-
|
|
1
|
+
import { i as logWarn, r as logInfo } from "./logger-0VqfDbvM.js";
|
|
2
2
|
import { t as bindAbortRelay } from "./fetch-timeout-DwpMsAKA.js";
|
|
3
|
-
import { a as isPrivateIpAddress, l as hasProxyEnvConfigured, n as closeDispatcher, r as createPinnedDispatcher, s as resolvePinnedHostnameWithPolicy, t as SsrFBlockedError } from "./ssrf-
|
|
4
|
-
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-
|
|
3
|
+
import { a as isPrivateIpAddress, l as hasProxyEnvConfigured, n as closeDispatcher, r as createPinnedDispatcher, s as resolvePinnedHostnameWithPolicy, t as SsrFBlockedError } from "./ssrf-B85AIIOO.js";
|
|
4
|
+
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-Czv8kxaL.js";
|
|
5
5
|
import { EnvHttpProxyAgent, FormData, fetch } from "undici";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/net/form-data.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as expandHomePrefix } from "./paths-BBP4yd-2.js";
|
|
2
|
-
import { _t as isNotFoundPathError, ft as sameFileIdentity, gt as hasNodeErrorCode, vt as isPathInside, yt as isSymlinkOpenError } from "./utils-
|
|
3
|
-
import { i as logWarn } from "./logger-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
2
|
+
import { _t as isNotFoundPathError, ft as sameFileIdentity, gt as hasNodeErrorCode, vt as isPathInside, yt as isSymlinkOpenError } from "./utils-CMEUUHmM.js";
|
|
3
|
+
import { i as logWarn } from "./logger-0VqfDbvM.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-BSmwo1rT.js";
|
|
5
5
|
import { constants } from "node:fs";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fs$1 from "node:fs/promises";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { pipeline } from "node:stream/promises";
|
|
11
11
|
|
|
@@ -25,19 +25,19 @@ const ensureTrailingSep = (value) => value.endsWith(path.sep) ? value : value +
|
|
|
25
25
|
async function expandRelativePathWithHome(relativePath) {
|
|
26
26
|
let home = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
27
27
|
try {
|
|
28
|
-
home = await
|
|
28
|
+
home = await fs$1.realpath(home);
|
|
29
29
|
} catch {}
|
|
30
30
|
return expandHomePrefix(relativePath, { home });
|
|
31
31
|
}
|
|
32
32
|
async function openVerifiedLocalFile(filePath, options) {
|
|
33
33
|
try {
|
|
34
|
-
if ((await
|
|
34
|
+
if ((await fs$1.lstat(filePath)).isDirectory()) throw new SafeOpenError("not-file", "not a file");
|
|
35
35
|
} catch (err) {
|
|
36
36
|
if (err instanceof SafeOpenError) throw err;
|
|
37
37
|
}
|
|
38
38
|
let handle;
|
|
39
39
|
try {
|
|
40
|
-
handle = await
|
|
40
|
+
handle = await fs$1.open(filePath, OPEN_READ_FLAGS);
|
|
41
41
|
} catch (err) {
|
|
42
42
|
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "file not found");
|
|
43
43
|
if (isSymlinkOpenError(err)) throw new SafeOpenError("symlink", "symlink open blocked", { cause: err });
|
|
@@ -45,13 +45,13 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
45
45
|
throw err;
|
|
46
46
|
}
|
|
47
47
|
try {
|
|
48
|
-
const [stat, lstat] = await Promise.all([handle.stat(),
|
|
48
|
+
const [stat, lstat] = await Promise.all([handle.stat(), fs$1.lstat(filePath)]);
|
|
49
49
|
if (lstat.isSymbolicLink()) throw new SafeOpenError("symlink", "symlink not allowed");
|
|
50
50
|
if (!stat.isFile()) throw new SafeOpenError("not-file", "not a file");
|
|
51
51
|
if (options?.rejectHardlinks && stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
52
52
|
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during read");
|
|
53
|
-
const realPath = await
|
|
54
|
-
const realStat = await
|
|
53
|
+
const realPath = await fs$1.realpath(filePath);
|
|
54
|
+
const realStat = await fs$1.stat(realPath);
|
|
55
55
|
if (options?.rejectHardlinks && realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
56
56
|
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
57
57
|
return {
|
|
@@ -69,7 +69,7 @@ async function openVerifiedLocalFile(filePath, options) {
|
|
|
69
69
|
async function resolvePathWithinRoot(params) {
|
|
70
70
|
let rootReal;
|
|
71
71
|
try {
|
|
72
|
-
rootReal = await
|
|
72
|
+
rootReal = await fs$1.realpath(params.rootDir);
|
|
73
73
|
} catch (err) {
|
|
74
74
|
if (isNotFoundPathError(err)) throw new SafeOpenError("not-found", "root dir not found");
|
|
75
75
|
throw err;
|
|
@@ -170,7 +170,7 @@ function buildAtomicWriteTempPath(targetPath) {
|
|
|
170
170
|
return path.join(dir, `.${base}.${process.pid}.${randomUUID()}.tmp`);
|
|
171
171
|
}
|
|
172
172
|
async function writeTempFileForAtomicReplace(params) {
|
|
173
|
-
const tempHandle = await
|
|
173
|
+
const tempHandle = await fs$1.open(params.tempPath, OPEN_WRITE_CREATE_FLAGS, params.mode);
|
|
174
174
|
try {
|
|
175
175
|
if (typeof params.data === "string") await tempHandle.writeFile(params.data, params.encoding ?? "utf8");
|
|
176
176
|
else await tempHandle.writeFile(params.data);
|
|
@@ -180,7 +180,7 @@ async function writeTempFileForAtomicReplace(params) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
async function verifyAtomicWriteResult(params) {
|
|
183
|
-
const rootWithSep = ensureTrailingSep(await
|
|
183
|
+
const rootWithSep = ensureTrailingSep(await fs$1.realpath(params.rootDir));
|
|
184
184
|
const opened = await openVerifiedLocalFile(params.targetPath, { rejectHardlinks: true });
|
|
185
185
|
try {
|
|
186
186
|
if (!sameFileIdentity(opened.stat, params.expectedStat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
@@ -191,13 +191,13 @@ async function verifyAtomicWriteResult(params) {
|
|
|
191
191
|
}
|
|
192
192
|
async function resolveOpenedFileRealPathForHandle(handle, ioPath) {
|
|
193
193
|
try {
|
|
194
|
-
return await
|
|
194
|
+
return await fs$1.realpath(ioPath);
|
|
195
195
|
} catch (err) {
|
|
196
196
|
if (!isNotFoundPathError(err)) throw err;
|
|
197
197
|
}
|
|
198
198
|
const fdCandidates = process.platform === "linux" ? [`/proc/self/fd/${handle.fd}`, `/dev/fd/${handle.fd}`] : process.platform === "win32" ? [] : [`/dev/fd/${handle.fd}`];
|
|
199
199
|
for (const fdPath of fdCandidates) try {
|
|
200
|
-
return await
|
|
200
|
+
return await fs$1.realpath(fdPath);
|
|
201
201
|
} catch {}
|
|
202
202
|
throw new SafeOpenError("path-mismatch", "unable to resolve opened file path");
|
|
203
203
|
}
|
|
@@ -212,10 +212,10 @@ async function openWritableFileWithinRoot(params) {
|
|
|
212
212
|
} catch (err) {
|
|
213
213
|
throw new SafeOpenError("invalid-path", "path alias escape blocked", { cause: err });
|
|
214
214
|
}
|
|
215
|
-
if (params.mkdir !== false) await
|
|
215
|
+
if (params.mkdir !== false) await fs$1.mkdir(path.dirname(resolved), { recursive: true });
|
|
216
216
|
let ioPath = resolved;
|
|
217
217
|
try {
|
|
218
|
-
const resolvedRealPath = await
|
|
218
|
+
const resolvedRealPath = await fs$1.realpath(resolved);
|
|
219
219
|
if (!isPathInside(rootWithSep, resolvedRealPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
220
220
|
ioPath = resolvedRealPath;
|
|
221
221
|
} catch (err) {
|
|
@@ -227,10 +227,10 @@ async function openWritableFileWithinRoot(params) {
|
|
|
227
227
|
let createdForWrite = false;
|
|
228
228
|
try {
|
|
229
229
|
try {
|
|
230
|
-
handle = await
|
|
230
|
+
handle = await fs$1.open(ioPath, OPEN_WRITE_EXISTING_FLAGS, fileMode);
|
|
231
231
|
} catch (err) {
|
|
232
232
|
if (!isNotFoundPathError(err)) throw err;
|
|
233
|
-
handle = await
|
|
233
|
+
handle = await fs$1.open(ioPath, OPEN_WRITE_CREATE_FLAGS, fileMode);
|
|
234
234
|
createdForWrite = true;
|
|
235
235
|
}
|
|
236
236
|
} catch (err) {
|
|
@@ -244,7 +244,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
244
244
|
if (!stat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
245
245
|
if (stat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
246
246
|
try {
|
|
247
|
-
const lstat = await
|
|
247
|
+
const lstat = await fs$1.lstat(ioPath);
|
|
248
248
|
if (lstat.isSymbolicLink() || !lstat.isFile()) throw new SafeOpenError("invalid-path", "path is not a regular file under root");
|
|
249
249
|
if (!sameFileIdentity(stat, lstat)) throw new SafeOpenError("path-mismatch", "path changed during write");
|
|
250
250
|
} catch (err) {
|
|
@@ -252,7 +252,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
252
252
|
}
|
|
253
253
|
const realPath = await resolveOpenedFileRealPathForHandle(handle, ioPath);
|
|
254
254
|
openedRealPath = realPath;
|
|
255
|
-
const realStat = await
|
|
255
|
+
const realStat = await fs$1.stat(realPath);
|
|
256
256
|
if (!sameFileIdentity(stat, realStat)) throw new SafeOpenError("path-mismatch", "path mismatch");
|
|
257
257
|
if (realStat.nlink > 1) throw new SafeOpenError("invalid-path", "hardlinked path not allowed");
|
|
258
258
|
if (!isPathInside(rootWithSep, realPath)) throw new SafeOpenError("outside-workspace", "file is outside workspace root");
|
|
@@ -267,7 +267,7 @@ async function openWritableFileWithinRoot(params) {
|
|
|
267
267
|
const cleanupCreatedPath = createdForWrite && err instanceof SafeOpenError;
|
|
268
268
|
const cleanupPath = openedRealPath ?? ioPath;
|
|
269
269
|
await handle.close().catch(() => {});
|
|
270
|
-
if (cleanupCreatedPath) await
|
|
270
|
+
if (cleanupCreatedPath) await fs$1.rm(cleanupPath, { force: true }).catch(() => {});
|
|
271
271
|
throw err;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -290,7 +290,7 @@ async function writeFileWithinRoot(params) {
|
|
|
290
290
|
encoding: params.encoding,
|
|
291
291
|
mode: targetMode || 384
|
|
292
292
|
});
|
|
293
|
-
await
|
|
293
|
+
await fs$1.rename(tempPath, destinationPath);
|
|
294
294
|
tempPath = null;
|
|
295
295
|
try {
|
|
296
296
|
await verifyAtomicWriteResult({
|
|
@@ -303,7 +303,7 @@ async function writeFileWithinRoot(params) {
|
|
|
303
303
|
throw err;
|
|
304
304
|
}
|
|
305
305
|
} finally {
|
|
306
|
-
if (tempPath) await
|
|
306
|
+
if (tempPath) await fs$1.rm(tempPath, { force: true }).catch(() => {});
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
async function copyFileWithinRoot(params) {
|
|
@@ -331,7 +331,7 @@ async function copyFileWithinRoot(params) {
|
|
|
331
331
|
});
|
|
332
332
|
await pipeline(sourceStream, targetStream);
|
|
333
333
|
} catch (err) {
|
|
334
|
-
if (target?.createdForWrite) await
|
|
334
|
+
if (target?.createdForWrite) await fs$1.rm(target.openedRealPath, { force: true }).catch(() => {});
|
|
335
335
|
throw err;
|
|
336
336
|
} finally {
|
|
337
337
|
if (!sourceClosedByStream) await source.handle.close().catch(() => {});
|