wednesdayai 0.4.12-dev.720 → 0.4.12-dev.722
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-pyfXjm-X.js → acp-cli-DXVeP5by.js} +11 -11
- package/dist/{agent-scope-Dw728gHk.js → agent-scope-Dt0TVWFY.js} +20 -20
- package/dist/{agent-turn-enqueue-BNvNiMpq.js → agent-turn-enqueue-CsHMHVsf.js} +5 -5
- package/dist/{agent-turn-enqueue-Ca6nDySG.js → agent-turn-enqueue-QcHb-Wlq.js} +4 -4
- package/dist/{agent-turn-execute-DLS3hVZN.js → agent-turn-execute-pkDSwyuf.js} +186 -186
- package/dist/{agent-turn-recovery-adapter-D2yM42JV.js → agent-turn-recovery-adapter-CL4IrGUo.js} +1 -1
- package/dist/{agent-turn-recovery-adapter-BhqXEKaC.js → agent-turn-recovery-adapter-Dw5-XbMI.js} +3 -3
- package/dist/{agent-turn-runner-CNzxqAVO.js → agent-turn-runner-CUoz_Fkl.js} +1 -1
- package/dist/{agent-turn-runner-BDS9k--2.js → agent-turn-runner-DoHGgNPh.js} +4 -4
- package/dist/{agent-turn-runner-lDarvfDi.js → agent-turn-runner-LlrD6k2x.js} +3 -3
- package/dist/{agents-CCi5d3rh.js → agents-TOaKn6gk.js} +17 -17
- package/dist/{agents.config-D1RGbjKF.js → agents.config-96ueVlOH.js} +2 -2
- package/dist/{agents.config-BiZOgm5C.js → agents.config-DWMgN4qH.js} +1 -1
- package/dist/{api-key-rotation-BDa6RvrU.js → api-key-rotation-DiMQTef3.js} +1 -1
- package/dist/{audio-preflight-DvDzBaci.js → audio-preflight-B_5sTSyb.js} +5 -5
- package/dist/{audio-preflight-DxY7sUFD.js → audio-preflight-CO3ozqOb.js} +35 -35
- package/dist/{audio-preflight-DK8V6rCg.js → audio-preflight-p84ph4C7.js} +6 -6
- package/dist/{audio-transcription-runner-D-iXNE6Y.js → audio-transcription-runner-CsQR8LpS.js} +1 -1
- package/dist/{audio-transcription-runner-N8I-G4DN.js → audio-transcription-runner-Gr8vN3AS.js} +26 -26
- package/dist/{audio-transcription-runner-DFQtapUX.js → audio-transcription-runner-XFfvRPXl.js} +1 -1
- package/dist/{audit-3p1cCyN-.js → audit-8O6sjQPv.js} +29 -29
- package/dist/{audit-Dz2E9h1H.js → audit-CzREkjwC.js} +3 -3
- package/dist/{auth-BdqTyBRn.js → auth-Cx-Q9zgv.js} +4 -4
- package/dist/{auth-choice-Bn539iDJ.js → auth-choice-C0dQwQuu.js} +15 -15
- package/dist/{auth-choice-BjBu2HIJ.js → auth-choice-DtRePxUx.js} +13 -13
- package/dist/{auth-choice-CtjeyUxN.js → auth-choice-s0pWvSbn.js} +1 -1
- package/dist/{auth-choice.apply-helpers-BjbwkC61.js → auth-choice.apply-helpers-Bplvajjf.js} +1 -1
- package/dist/{auth-token-BhGJiF3k.js → auth-token-xxEJDMxh.js} +2 -2
- package/dist/{banner-DeTwUKJw.js → banner-BwICuMvl.js} +4 -4
- package/dist/{bonjour-discovery-Df2P-Q7o.js → bonjour-discovery-B1GbNHC3.js} +3 -3
- package/dist/{browser-cli-CM2fkqWj.js → browser-cli-NV-pdj3F.js} +19 -19
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +12 -12
- package/dist/bundled/session-journal/handler.js +12 -12
- package/dist/bundled/session-memory/handler.js +12 -12
- package/dist/{call-UfwN5rR7.js → call-PE59cW0J.js} +12 -12
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-BeP04lVU.js → channel-account-context-DM1npKXX.js} +6 -6
- package/dist/{channel-activity-DF1lamZi.js → channel-activity-SqK9nKf7.js} +2 -2
- package/dist/{channel-options-HOe8Wb7T.js → channel-options-BmfLwNE6.js} +3 -3
- package/dist/{channel-options-CPd94dTo.js → channel-options-CurDeT7Z.js} +1 -1
- package/dist/{channel-selection-CNMEexgg.js → channel-selection-DfNPCJXK.js} +1 -1
- package/dist/{channels-cli-CvJYuVVM.js → channels-cli-CZqlXMjZ.js} +114 -114
- package/dist/{channels-cli-BJlbTkJA.js → channels-cli-D2PB80Ed.js} +23 -23
- package/dist/{channels-status-issues-CdhIpbIH.js → channels-status-issues-B4p6AXBG.js} +1 -1
- package/dist/{chrome-Ch-PRzot.js → chrome-BsgpiutB.js} +6 -6
- package/dist/{chrome-nLlFTBUI.js → chrome-FHxGdLnd.js} +8 -8
- package/dist/{chunk-dZYOJUMQ.js → chunk-DiXpyRAz.js} +2 -2
- package/dist/{clack-prompter-DGDmJDVW.js → clack-prompter-fldgCPEr.js} +5 -5
- package/dist/{clawbot-cli-krI9B7O9.js → clawbot-cli-C91sysrP.js} +15 -15
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-DJUeQG1g.js +164 -0
- package/dist/{cli-Clb9hAIp.js → cli-YKA_HQlq.js} +17 -17
- package/dist/{client-BGqFY5o-.js → client-DN-SMVBn.js} +3 -3
- package/dist/{client-profiles-CRejJ0SL.js → client-profiles-DEoACLX5.js} +2 -2
- package/dist/{clipboard-DnrCtTv6.js → clipboard-DczD_L5d.js} +1 -1
- package/dist/{command-queue-BoBsMaob.js → command-queue-B3_VRNOr.js} +1 -1
- package/dist/{command-queue-CK20dQVc.js → command-queue-Bn2PHabT.js} +1 -1
- package/dist/{command-queue-DmPFhCm2.js → command-queue-CkNuNlmY.js} +1 -1
- package/dist/{command-registry-C7V01SL9.js → command-registry-Dok3-b8T.js} +14 -14
- package/dist/{command-secret-targets-DtnfBTvl.js → command-secret-targets-CJ1czw_Q.js} +4 -4
- package/dist/{commands-Byb21m-W.js → commands-Csxgimkc.js} +1 -1
- package/dist/{commands-registry-fXBoHxbT.js → commands-registry-Dx5QvNqH.js} +3 -3
- package/dist/{completion-cli-C1TbI3Nq.js → completion-cli-Ctg9QIDB.js} +16 -16
- package/dist/{completion-cli-Nhp2rZs6.js → completion-cli-DzgbSYNf.js} +1 -1
- package/dist/{config-CRFk9Bjq.js → config-BPACL-n5.js} +51 -51
- package/dist/{config-cli-BbSkPwpp.js → config-cli-BUrIABmo.js} +1 -1
- package/dist/{config-cli-BZACiXqP.js → config-cli-Bp3NVXJ8.js} +10 -10
- package/dist/{config-guard-D407qaoD.js → config-guard-CdfLkwSv.js} +4 -4
- package/dist/{config-validation-KuIoSFk6.js → config-validation-BdrPl8og.js} +2 -2
- package/dist/{configure-DPlcHPb2.js → configure-CAdfZJx3.js} +3 -3
- package/dist/{configure-Cqjr_du7.js → configure-CFjjPHas.js} +25 -25
- package/dist/{control-ui-assets-CZc_jZ5P.js → control-ui-assets-BXkk_vKO.js} +3 -3
- package/dist/{controller-DhhnKGZm.js → controller-CyFBTP5K.js} +1 -1
- package/dist/{credentials-QcQyEdJH.js → credentials-DVI9X-9y.js} +1 -1
- package/dist/{cron-cli-CaA0d8t9.js → cron-cli-BuVrA_FU.js} +13 -13
- package/dist/{daemon-cli-BHHTg_VA.js → daemon-cli-D874Hxry.js} +19 -19
- package/dist/daemon-cli.js +7 -7
- package/dist/{daemon-install-E2_ktpUO.js → daemon-install-BuETscSF.js} +11 -11
- package/dist/{daemon-install-helpers-Di-kgTCh.js → daemon-install-helpers-CKbnFsNZ.js} +13 -13
- package/dist/{deliver-CaBp0YZL.js → deliver-BLp1Q7uO.js} +9 -9
- package/dist/{deliver-DFUO2CfJ.js → deliver-CXqNQ8yi.js} +1 -1
- package/dist/{deliver-DZG38ZGm.js → deliver-rLn-23ud.js} +1 -1
- package/dist/{devices-cli-CyO1xf6G.js → devices-cli-PIMtgiCQ.js} +12 -12
- package/dist/{diagnostic-DBbvGWxf.js → diagnostic-85mWzvQi.js} +1 -1
- package/dist/{diagnostic-DgDaUn7q.js → diagnostic-Bbg-zObh.js} +1 -1
- package/dist/{diagnostic-CyH49cpU.js → diagnostic-u64kcpDQ.js} +3 -3
- package/dist/{diagnostics-BMCo9z-e.js → diagnostics-C6ntZHc3.js} +5 -5
- package/dist/{directory-cli-Bp8CPJAj.js → directory-cli-ByC5Q1X3.js} +10 -10
- package/dist/{dm-policy-shared-DFPi7Zr2.js → dm-policy-shared-CV1uWhMc.js} +4 -4
- package/dist/{dns-cli-BIvl-4eO.js → dns-cli-BlEBJkZs.js} +10 -10
- package/dist/{docs-cli-C96pCTO9.js → docs-cli-DC1z-BLX.js} +9 -9
- package/dist/{doctor-completion-aQBy29mi.js → doctor-completion-Cfe2nTpN.js} +1 -1
- package/dist/{doctor-completion-BeQ5D1_M.js → doctor-completion-CpGKbe63.js} +3 -3
- package/dist/{doctor-config-flow-C2Gtj2Ld.js → doctor-config-flow-gOmD0dFV.js} +14 -14
- package/dist/{enable-DW_1rt5K.js → enable-p_l_FcJp.js} +2 -2
- package/dist/entry.js +4 -4
- package/dist/{exec-approvals-BL3RknaU.js → exec-approvals-C3o7bTbp.js} +1 -1
- package/dist/{exec-approvals-allowlist-UZiLlQZY.js → exec-approvals-allowlist-CNWI56tZ.js} +1 -1
- package/dist/{exec-approvals-cli-vu_X-YzH.js → exec-approvals-cli-BShAvkW4.js} +22 -22
- package/dist/{exec-safe-bin-runtime-policy-kCGsE7iL.js → exec-safe-bin-runtime-policy-C3eU8CKJ.js} +2 -2
- package/dist/{exec-DirIo9VQ.js → exec-vJi_ETQy.js} +2 -2
- package/dist/{extension-relay-auth-BE4YupGc.js → extension-relay-auth-DD-U9VUc.js} +10 -10
- package/dist/{fetch-cHZPcwpd.js → fetch-ByEEe-Yd.js} +5 -5
- package/dist/{fetch-guard-Dp0XbWAV.js → fetch-guard-BzXFjlMV.js} +3 -3
- package/dist/{fs-safe-D7SLKk8k.js → fs-safe-CByGgR59.js} +25 -25
- package/dist/{gateway-cli-k85i40XY.js → gateway-cli-3YUOWIal.js} +524 -283
- package/dist/{gateway-cli-DO1ZdC57.js → gateway-cli-CDCwUJ0Z.js} +356 -115
- package/dist/{gateway-rpc-DU3hSTzG.js → gateway-rpc-DOfMq6W1.js} +3 -3
- package/dist/{globals-BvFc3LRQ.js → globals-ZyVsnNcg.js} +7 -7
- package/dist/{gmail-setup-utils-DxQW0vvG.js → gmail-setup-utils-BzuIKryU.js} +2 -2
- package/dist/{health-joZ3P32_.js → health-B5jHSu9i.js} +8 -8
- package/dist/{health-yflM7Rsw.js → health-BEgp6PEF.js} +2 -2
- package/dist/{health-format-DxSGV0xs.js → health-format-DX1WwWnG.js} +1 -1
- package/dist/{heartbeat-tick-D26lWjWr.js → heartbeat-tick-By0WI8YD.js} +1 -1
- package/dist/{help-format-BuYYzCrK.js → help-format-DuL_Y84f.js} +1 -1
- package/dist/{hooks-cli-Bqx4BeE7.js → hooks-cli-D1_UuIh4.js} +19 -19
- package/dist/{hooks-cli-HMujIPDt.js → hooks-cli-Dy5LfGKt.js} +105 -105
- package/dist/{hooks-status-BIpoTNG2.js → hooks-status-C6mtKL68.js} +2 -2
- package/dist/{image-ops-BH5tZFXZ.js → image-ops-Cq6SZYWW.js} +11 -11
- package/dist/{incident-install-BVVufsbF.js → incident-install-B626HvYY.js} +11 -11
- package/dist/index.js +21 -21
- package/dist/{inspect-ALwqX-AP.js → inspect-LfUprDjx.js} +4 -4
- package/dist/{install-safe-path-B8ogENI2.js → install-safe-path-4YfMRsxN.js} +25 -25
- package/dist/{installs-BZc_r32M.js → installs-4lGALZOo.js} +10 -10
- package/dist/{installs-DhvxSfA2.js → installs-puN7yKHH.js} +1 -1
- package/dist/{ipv4-BQfY4Nz0.js → ipv4-BA1qFtVZ.js} +2 -2
- package/dist/{ir-Bphccx2x.js → ir-B3r0eIJW.js} +8 -8
- package/dist/{issue-format-eKDAjB9C.js → issue-format-BG8o87sf.js} +1 -1
- package/dist/{lifecycle-core-CIW7Nndu.js → lifecycle-core-CuMY0U_8.js} +9 -9
- package/dist/{links-oxBAdiT5.js → links-BZDTcdHU.js} +1 -1
- package/dist/{live-repair-CK2uu1bb.js → live-repair-BF2elTcB.js} +10 -10
- package/dist/llm-slug-generator.js +12 -12
- package/dist/{log-tail-Cu_iMzte.js → log-tail-Dg2oYTZ6.js} +7 -7
- package/dist/{logger-DygiqHXJ.js → logger-B1oXl7GT.js} +2 -2
- package/dist/{logging-DT83g6VT.js → logging-DgKdQHpc.js} +1 -1
- package/dist/{logs-cli-OJbjnEG9.js → logs-cli-CrUZySOS.js} +18 -18
- package/dist/{manager-DbUdXsY9.js → manager-PSj0t5kg.js} +16 -16
- package/dist/{markdown-tables-DBBxKcll.js → markdown-tables-BcUNsqVQ.js} +1 -1
- package/dist/{memory-cli-OhwCkNE-.js → memory-cli-DVqLwNhN.js} +18 -18
- package/dist/{model-D56FsZ1w.js → model-BbeosLtF.js} +2 -2
- package/dist/{model-catalog-CLFSsgfj.js → model-catalog-Bjfzg68Q.js} +4 -4
- package/dist/{model-picker-DBwSCw_9.js → model-picker-JQM5rw_w.js} +4 -4
- package/dist/{models-m1jUnKvs.js → models-Kq9m-LfF.js} +23 -23
- package/dist/{models-cli-BWXMokU_.js → models-cli-B4wVcMjJ.js} +105 -105
- package/dist/{models-cli-CC42HgJD.js → models-cli-dyUiDMqX.js} +17 -17
- package/dist/{models-config-BDhVodK4.js → models-config-BMgEFu57.js} +7 -7
- package/dist/{node-cli-Cd6_BySw.js → node-cli-DGi3DELS.js} +41 -41
- package/dist/{node-cli-CR7U5VZ3.js → node-cli-Dm9lnwVF.js} +3 -3
- package/dist/{node-command-policy-B4-mf1hM.js → node-command-policy-C1Fy9dcA.js} +1 -1
- package/dist/{node-service-DlskRE2h.js → node-service-Ys7JZFz-.js} +1 -1
- package/dist/{nodes-cli-B_iLcTCz.js → nodes-cli-Bp2RePXd.js} +24 -24
- package/dist/{nodes-screen-DGsjKglY.js → nodes-screen-DANf1hC-.js} +8 -8
- package/dist/{note-QFI8C-0H.js → note-CWaaN_Hi.js} +2 -2
- package/dist/{npm-pack-install-BNQ7dpDL.js → npm-pack-install-BgBpeTJk.js} +1 -1
- package/dist/{npm-pack-install-DrAALuzR.js → npm-pack-install-Dlm0MIZy.js} +24 -24
- package/dist/{npm-resolution-DWT08Jg9.js → npm-resolution-DWE5khjC.js} +2 -2
- package/dist/{npm-resolution-CznyJdS_.js → npm-resolution-Ey8dK3VI.js} +5 -5
- package/dist/{oauth-tls-preflight-iGljnxA8.js → oauth-tls-preflight-DJESrRid.js} +1 -1
- package/dist/{onboard-DprdwW6T.js → onboard-CneU0GqJ.js} +11 -11
- package/dist/{onboard-channels-eDRUfcgC.js → onboard-channels-B1oC1rop.js} +2 -2
- package/dist/{onboard-channels-BN5zmpQb.js → onboard-channels-Bm2XVN3C.js} +21 -21
- package/dist/{onboard-custom-rapGXTfP.js → onboard-custom-Bz-7TT12.js} +4 -4
- package/dist/{onboard-helpers-BlOvn-As.js → onboard-helpers-DNbkQX5v.js} +13 -13
- package/dist/{onboard-hooks-C2X1aAwg.js → onboard-hooks-CCtE4bqF.js} +7 -7
- package/dist/{onboard-remote-CmifKZ42.js → onboard-remote-DsBkNMeO.js} +5 -5
- package/dist/{onboard-skills-Cbv5AZ8C.js → onboard-skills-DX_x-MfC.js} +4 -4
- package/dist/{onboard-DRGIVMAs.js → onboard-trNO818c.js} +2 -2
- package/dist/{onboarding-1IkfvnYe.js → onboarding-BKoaWOxQ.js} +3 -3
- package/dist/{onboarding-DjLzxd2p.js → onboarding-R2m4j7Dp.js} +18 -18
- package/dist/{onboarding.finalize-CCnljJ0b.js → onboarding.finalize-B6K3hYJZ.js} +113 -113
- package/dist/{onboarding.finalize-xkxyNe63.js → onboarding.finalize-C0X_xaHh.js} +22 -22
- package/dist/{onboarding.gateway-config-DOTfpREQ.js → onboarding.gateway-config-DKLUe3Ul.js} +16 -16
- package/dist/{onboarding.secret-input-DH2Ce8GL.js → onboarding.secret-input-YvW1rg1V.js} +1 -1
- package/dist/{openai-model-default-DsBVhW_k.js → openai-model-default-CuWReftl.js} +2 -2
- package/dist/{openclaw-root-CvJ5CJns.js → openclaw-root-B6Tk0FH8.js} +2 -2
- package/dist/{operator-commands-JUXdOhQX.js → operator-commands-BmGo9Ngv.js} +5 -5
- package/dist/{operator-commands-DX-cb3Ye.js → operator-commands-EsKoI4yV.js} +2 -2
- package/dist/{outbound-attachment-DXvNKE87.js → outbound-attachment-DJ3uYvUI.js} +2 -2
- package/dist/{outbound-message-hooks-C0BAHo6-.js → outbound-message-hooks-BBtH97ZV.js} +4 -4
- package/dist/{pairing-cli-Cl5sMYgP.js → pairing-cli-CzdmBLwS.js} +10 -10
- package/dist/{pairing-labels-BMQWK5UC.js → pairing-labels-DYgJqxe0.js} +1 -1
- package/dist/{pairing-store-CVHmKK9w.js → pairing-store-BZFrD-fJ.js} +2 -2
- package/dist/{path-alias-guards-Dwpja4Ts.js → path-alias-guards-CHFrrzxZ.js} +3 -3
- package/dist/{path-safety-tNRAPoSe.js → path-safety-CCSB65fm.js} +1 -1
- package/dist/{pi-embedded-CZ0PhG7T.js → pi-embedded-COs_yO7U.js} +28 -28
- package/dist/{pi-embedded-helpers-CcG8tJG8.js → pi-embedded-helpers-BYLOFsUc.js} +3 -3
- package/dist/{pi-embedded-helpers-C6VayjB1.js → pi-embedded-helpers-C9XqX-Jq.js} +8 -8
- package/dist/{pi-embedded-helpers-D__rRuFh.js → pi-embedded-helpers-DIUrv2Ua.js} +1 -1
- package/dist/pi-embedded-recovery-adapter-8xq2SINa.js +60 -0
- package/dist/{pi-embedded-recovery-adapter-BJvKUFHn.js → pi-embedded-recovery-adapter-BHTdeEKa.js} +8 -8
- package/dist/{pi-embedded-recovery-adapter-BtqhGYD7.js → pi-embedded-recovery-adapter-DPjgp8q4.js} +3 -3
- package/dist/{pi-embedded-recovery-adapter-DS_uqVd7.js → pi-embedded-recovery-adapter-DytV4fjp.js} +2 -2
- package/dist/{pi-embedded-utils-CBwHE9Fa.js → pi-embedded-utils-BV_Dtzrw.js} +2 -2
- package/dist/{pi-embedded-utils-BOgoLC6a.js → pi-embedded-utils-BetZbS6i.js} +1 -1
- package/dist/{pi-embedded-utils-Wab6FAbw.js → pi-embedded-utils-DOtaZ7KV.js} +1 -1
- package/dist/{pi-model-discovery-dD_F5Zs_.js → pi-model-discovery-CZ9wxcE8.js} +1 -1
- package/dist/{pi-tools.policy-D-HUyDCX.js → pi-tools.policy-B7YiM0PW.js} +1 -1
- package/dist/{plugin-owned-work-recovery-adapter-DSTbgdf1.js → plugin-owned-work-recovery-adapter-CCMhA7pp.js} +7 -7
- package/dist/{plugin-registry-NO8bBmB-.js → plugin-registry-AEemJBCl.js} +1 -1
- package/dist/{plugin-registry-D1W5p4FN.js → plugin-registry-BjZ0q-dW.js} +4 -4
- package/dist/plugin-sdk/{agent-turn-execute-rfDl5JIk.js → agent-turn-execute-DoRgVKVO.js} +12 -12
- package/dist/plugin-sdk/{agent-turn-runner-CWFiK-TQ.js → agent-turn-runner-pU0RGvg6.js} +3 -3
- package/dist/plugin-sdk/{audio-preflight-Ch7wu2kR.js → audio-preflight-8hRbl8Io.js} +5 -5
- package/dist/plugin-sdk/{audio-transcription-runner-PQrzjXaP.js → audio-transcription-runner-CUsZFiEA.js} +1 -1
- package/dist/plugin-sdk/{chrome-nvzkZjx1.js → chrome-VZ0Zuu2w.js} +8 -8
- package/dist/plugin-sdk/{command-queue-Ctf3I4mj.js → command-queue-CbgNIrv6.js} +1 -1
- package/dist/plugin-sdk/{deliver-CvAny_u3.js → deliver-B7W4NNsR.js} +1 -1
- package/dist/plugin-sdk/{deliver-CLdBSfw5.js → deliver-CJP9TznW.js} +3 -3
- package/dist/plugin-sdk/{diagnostic-HwC2DvTv.js → diagnostic-BRUM6uNI.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-Cgger0dQ.js → pi-embedded-helpers-B-OOYT64.js} +3 -3
- package/dist/plugin-sdk/{pi-embedded-utils-BSR4yhc7.js → pi-embedded-utils-BoSGTbYO.js} +1 -1
- package/dist/plugin-sdk/{provider-dispatcher-UGV7dmN-.js → provider-dispatcher-CNLIHg-v.js} +12 -12
- package/dist/plugin-sdk/{provider-image-DWx_4D5v.js → provider-image-L_SRDPHU.js} +4 -4
- package/dist/plugin-sdk/{provider-image-CHcGL0EF.js → provider-image-zNa1Cccq.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-D0hna1cK.js → pw-ai-JJrE-B1e.js} +1 -1
- package/dist/plugin-sdk/{runs-BW0cihzp.js → runs-CPA1-H-2.js} +5 -5
- package/dist/plugin-sdk/{runs-CljUZhIq.js → runs-H2FY7UEk.js} +3 -3
- package/dist/plugin-sdk/{send-BBYSrSTF.js → send-CF3PEjRy.js} +1 -1
- package/dist/plugin-sdk/{send-DXmuCfmg.js → send-CzxwgKvR.js} +2 -2
- package/dist/plugin-sdk/src/gateway/storage-startup-gate.d.ts +28 -8
- package/dist/plugin-sdk/{subagent-registry-C-Vy-p1q.js → subagent-registry-CAdT47aY.js} +12 -12
- package/dist/plugin-sdk/testing.js +12 -12
- package/dist/plugin-sdk/{tools--CF9HsHp.js → tools-3raTfdu5.js} +32 -32
- package/dist/{plugins-cli-DJJuzULB.js → plugins-cli-CjgLVUxJ.js} +108 -108
- package/dist/{plugins-cli-6f208X2l.js → plugins-cli-Di9VhU7J.js} +22 -22
- package/dist/{polling-timeout-L7Tp4szs.js → polling-timeout-DoMlNx_D.js} +2 -2
- package/dist/{ports-CwKtoFkm.js → ports-BxjQwKMc.js} +2 -2
- package/dist/{ports-J_cZ4_9V.js → ports-QWAeZ9Is.js} +3 -3
- package/dist/{program-P3xjiqt2.js → program-Dus5j4vB.js} +104 -104
- package/dist/{program-context-BnUPq4h0.js → program-context-CQrxOpXH.js} +22 -22
- package/dist/{progress-DFaFyDmB.js → progress-Dc4ihErK.js} +2 -2
- package/dist/{prompt-select-styled-BqvHWNWF.js → prompt-select-styled-D1Kc5Amb.js} +47 -47
- package/dist/{prompt-select-styled-zQtF-vV8.js → prompt-select-styled-D3Li9uy2.js} +6 -6
- package/dist/{prompt-style-CO6JkEel.js → prompt-style-XoPngT10.js} +1 -1
- package/dist/{provider-auth-helpers-BYuzSj8t.js → provider-auth-helpers-B5HQVptJ.js} +6 -6
- package/dist/{provider-image-DysCwCWi.js → provider-image-BICZzOki.js} +1 -1
- package/dist/{provider-image-NyTXaEL4.js → provider-image-BllyLBJM.js} +1 -1
- package/dist/{provider-image-BVRCttNV.js → provider-image-Bsivqxw8.js} +6 -6
- package/dist/{proxy-m4Mv3Vy0.js → proxy-Ba9wFNmC.js} +1 -1
- package/dist/{proxy-env-BVlcuMzr.js → proxy-env-DzG6q8Hh.js} +1 -1
- package/dist/{proxy-fetch-D1upsMhs.js → proxy-fetch-BqVhGKFd.js} +1 -1
- package/dist/{push-apns-RSo8eOEB.js → push-apns-BcZzA03X.js} +8 -8
- package/dist/{push-apns-D356cj0x.js → push-apns-qUm5cL9P.js} +2 -2
- package/dist/{pw-ai-B8pA3baY.js → pw-ai-CXSJw34w.js} +1 -1
- package/dist/{pw-ai-DAv_QGa9.js → pw-ai-Ci1kADkJ.js} +18 -18
- package/dist/{pw-ai-BXBbuCbh.js → pw-ai-DT3fj2Kt.js} +1 -1
- package/dist/{qmd-manager-qYKR5h5G.js → qmd-manager-IztYub3L.js} +23 -23
- package/dist/{qr-cli-BauN15DE.js → qr-cli-DhJ37DZK.js} +8 -8
- package/dist/{query-expansion-Bf7wd2Iw.js → query-expansion-BydaUlRH.js} +13 -13
- package/dist/{reconcile-bundled-DyXp6UFb.js → reconcile-bundled-CAKTvY-C.js} +3 -3
- package/dist/{reconcile-bundled-CYRLOXKB.js → reconcile-bundled-DJKaKSgk.js} +1 -1
- package/dist/{recorder-CMNhAFwu.js → recorder-Ca_njjjH.js} +2 -2
- package/dist/{recovery-adapter-DcDYSG4s.js → recovery-adapter-BT12fVyO.js} +8 -8
- package/dist/{recovery-adapter-Dp82nx48.js → recovery-adapter-CPQ9-014.js} +2 -2
- package/dist/{recovery-adapter-Cd74qcsK.js → recovery-adapter-DF25-zSH.js} +1 -1
- package/dist/{recovery-adapter-eslk30An.js → recovery-adapter-Df87xZQp.js} +34 -34
- package/dist/{recovery-adapter-ClfDS4Ov.js → recovery-adapter-okaOo6tO.js} +4 -4
- package/dist/{recovery-prompt-TVvxel5J.js → recovery-prompt-CRcPgKcT.js} +1 -1
- package/dist/{redact-snapshot-D7BZusrG.js → redact-snapshot--nD7TrF-.js} +2 -2
- package/dist/{register.agent-DHl47XYk.js → register.agent-BCNYDn8G.js} +22 -22
- package/dist/{register.agent-9DDYWINr.js → register.agent-CqGVQ2N1.js} +117 -117
- package/dist/{register.configure-CndtmXxY.js → register.configure-CPTDt8eL.js} +23 -23
- package/dist/register.configure-DxdNTBIk.js +168 -0
- package/dist/{register.maintenance-BWVbf3vi.js → register.maintenance-BOCv2N1t.js} +23 -23
- package/dist/{register.maintenance-B0m4vFl_.js → register.maintenance-CFjB31Z5.js} +125 -125
- package/dist/{register.message-BTvJee4k.js → register.message-CiT53tgD.js} +98 -98
- package/dist/{register.message-D_XRcga3.js → register.message-dqrK9EsG.js} +18 -18
- package/dist/{register.onboard-C9pmJhys.js → register.onboard-BKoeYDAF.js} +21 -21
- package/dist/{register.onboard-BOHf4ODS.js → register.onboard-xtBBqce9.js} +2 -2
- package/dist/{register.setup-Dc4c4RwB.js → register.setup-qHCNX6LC.js} +2 -2
- package/dist/{register.setup-CmChnAXy.js → register.setup-xIVMlLYx.js} +24 -24
- package/dist/{register.status-health-sessions-DcfcD5-d.js → register.status-health-sessions-CaxJw1rr.js} +20 -20
- package/dist/{register.status-health-sessions-HmPpPcsK.js → register.status-health-sessions-D4hMq0I7.js} +115 -115
- package/dist/{register.subclis-BlaRgswl.js → register.subclis-srwCZnD0.js} +34 -34
- package/dist/{replay-C9MQSD5C.js → replay-B9P8F4Td.js} +1 -1
- package/dist/{replies-aExjMxzn.js → replies-BNP-F_lm.js} +4 -4
- package/dist/{reply-C9VXFn4R.js → reply-B_SiN91-.js} +24 -24
- package/dist/{reply-directives-B3iuHT4J.js → reply-directives-Bc2RQAcJ.js} +2 -2
- package/dist/{reply-prefix-V-IxyeUB.js → reply-prefix-B8M4IWrd.js} +1 -1
- package/dist/{resolve-route-D0rmcC0-.js → resolve-route-KBL5oj6U.js} +4 -4
- package/dist/{rpc-DpE8vp-c.js → rpc-htgXg_yf.js} +3 -3
- package/dist/{run-main-BZA73lMf.js → run-main-BzfK-GcH.js} +117 -117
- package/dist/{runs-RYsbIfCS.js → runs-BW5fW5nB.js} +3 -3
- package/dist/{runs-BAm5mg_D.js → runs-BjLs5ozo.js} +6 -6
- package/dist/{runs-CHfKOgl6.js → runs-DGWNXyKA.js} +3 -3
- package/dist/{runtime-CK9AbML9.js → runtime-ACR3KU8j.js} +4 -4
- package/dist/{runtime-config-collectors-Q9nEWUTc.js → runtime-config-collectors-BVWO6FhK.js} +1 -1
- package/dist/{runtime-guard-fIvyv07S.js → runtime-guard-DchtXvGj.js} +1 -1
- package/dist/{sandbox-BqX3VN9w.js → sandbox-7YCCMJoM.js} +1 -1
- package/dist/{sandbox-DzgYdBHo.js → sandbox-BpdiWabc.js} +18 -18
- package/dist/{sandbox-cli-DS0rOY-2.js → sandbox-cli-Dv0Viev8.js} +2 -2
- package/dist/{sandbox-cli-Bdiy-JBA.js → sandbox-cli-UfXu5kvh.js} +25 -25
- package/dist/{secrets-cli-BgSYbUnm.js → secrets-cli-DD5pd5lU.js} +15 -15
- package/dist/{security-cli-DmfWrKBb.js → security-cli-DCKCspHc.js} +42 -42
- package/dist/{security-cli-BmLzna2E.js → security-cli-DRALCMFL.js} +4 -4
- package/dist/{send-DVTzquty.js → send-BBFfvgK9.js} +14 -14
- package/dist/{send-o7L9XTU3.js → send-BVisLSq7.js} +6 -6
- package/dist/{send-DVEBYs7q.js → send-B_t3X0hK.js} +7 -7
- package/dist/{send-CDuS9tHa.js → send-CZsC4D3G.js} +12 -12
- package/dist/{send-DSEM68Bg.js → send-CwCEyog7.js} +6 -6
- package/dist/{send-BFS-Gw56.js → send-DEFcgo-1.js} +1 -1
- package/dist/{send-PUOLKFU6.js → send-s0RNLFLX.js} +1 -1
- package/dist/{server-Cxvaq-2t.js → server-DWJmtex3.js} +4 -4
- package/dist/{server-context-RkR0AfjN.js → server-context-BEjWhzMi.js} +12 -12
- package/dist/{server-context-Ckaq9jDj.js → server-context-CQQ6Q5Kp.js} +2 -2
- package/dist/{server-lifecycle-nFfq19cU.js → server-lifecycle-B9IQKSom.js} +1 -1
- package/dist/{server-lifecycle-B8yCvRvX.js → server-lifecycle-C3hCCbXm.js} +3 -3
- package/dist/{server-middleware-B6bN1rYO.js → server-middleware-CrJMxxfQ.js} +1 -1
- package/dist/{server-node-events-CgVi6hsa.js → server-node-events-8k0OLCvW.js} +97 -97
- package/dist/{server-node-events-BYL12z2h.js → server-node-events-BYTgaAay.js} +18 -18
- package/dist/{server-CtXro2Oa.js → server-y8WhCQvu.js} +24 -24
- package/dist/{service-BVB5AQS4.js → service-Dkcqg-rd.js} +15 -15
- package/dist/{session-consumer-agents-WuG2FJYp.js → session-consumer-agents-5ORspv9c.js} +1 -1
- package/dist/{session-consumer-claim-sweep-BcfThIOH.js → session-consumer-claim-sweep-eBEe4crh.js} +7 -7
- package/dist/{session-key-resolution-D__Pd_mB.js → session-key-resolution-CvnTXaSw.js} +4 -4
- package/dist/{session-meta-YzxyVCeI.js → session-meta-Bd0mS7MT.js} +1 -1
- package/dist/{session-storage-DFsXIZwp.js → session-storage-Pnf4SMXY.js} +6 -6
- package/dist/{session-utils-B2PSRqVy.js → session-utils-CrCJ-7yK.js} +5 -5
- package/dist/{sessions-CJHCMakP.js → sessions-BlXxa7bM.js} +4 -4
- package/dist/{sessions-Q3WrKAAg.js → sessions-DFDrcshi.js} +16 -16
- package/dist/{sessions-CfKrfL19.js → sessions-ck0v65PE.js} +4 -4
- package/dist/{sessions-claims-status-k3n7GnFf.js → sessions-claims-status-BWkOZDb1.js} +11 -11
- package/dist/{shared-D__JxAlY.js → shared-BZXtBEEK.js} +3 -3
- package/dist/{shared-DerjPYzv.js → shared-Cj18nzyW.js} +2 -2
- package/dist/{skill-commands-DbmH_7xm.js → skill-commands-uhWJKPrM.js} +7 -7
- package/dist/{skill-scanner-CZhas7UB.js → skill-scanner-BrEkff8K.js} +7 -7
- package/dist/{skills-ZklHNqsc.js → skills-D3kpiNaJ.js} +6 -6
- package/dist/{skills-cli-Dj4NTcCE.js → skills-cli-DAJDC2x2.js} +9 -9
- package/dist/{skills-install-B7k9HIIw.js → skills-install-B23U6yk5.js} +9 -9
- package/dist/{skills-status-BEsBhRkz.js → skills-status-DEdp3c6y.js} +3 -3
- package/dist/{status-CbJxUaE5.js → status-BacPIpt6.js} +35 -35
- package/dist/{status-BBq1TMwB.js → status-BsGjriqM.js} +4 -4
- package/dist/{status.update-Dhleef_a.js → status.update-C4YRQzqD.js} +2 -2
- package/dist/{store-AQt3mu5T.js → store-BFf8dvdk.js} +7 -7
- package/dist/{subsystem-CXwk-lx3.js → subsystem-DLKs6VzZ.js} +1 -1
- package/dist/{supervisor-recovery-adapter-DVA_i7Fv.js → supervisor-recovery-adapter-BIN1RCIY.js} +7 -7
- package/dist/{system-cli-Dja3Rqeg.js → system-cli-LSxX4WjX.js} +13 -13
- package/dist/{system-run-command-Cv1h27tf.js → system-run-command-Dl8UC6hO.js} +2 -2
- package/dist/{systemd-Cjr55Dzl.js → systemd-BJqlwupF.js} +11 -11
- package/dist/{systemd-hints-Dd6VtLsV.js → systemd-hints-Cp0IfOPD.js} +9 -9
- package/dist/{systemd-linger-CoejU-0l.js → systemd-linger-Dk1GWduD.js} +2 -2
- package/dist/{table-CuH5YX2S.js → table-H366JkfJ.js} +2 -2
- package/dist/{tables-BBiYzs81.js → tables-CCEXTXTG.js} +1 -1
- package/dist/{tailnet-cZK3OCUB.js → tailnet-BSKE3pk_.js} +1 -1
- package/dist/{tailscale-DVz4yfpc.js → tailscale-BrZL_MiW.js} +2 -2
- package/dist/{task-pipeline-boot-yTQaBch8.js → task-pipeline-boot-CM-3tH09.js} +97 -97
- package/dist/{task-pipeline-boot-CUdpZ3t3.js → task-pipeline-boot-Dihxq0Tg.js} +18 -18
- package/dist/{task-runlog-retention-BdL6aGzZ.js → task-runlog-retention-DCbMK2T8.js} +67 -12
- package/dist/{task-runlog-retention-DhORDPYJ.js → task-runlog-retention-GZu-QuBY.js} +64 -9
- package/dist/{tasks-DKKuqmaV.js → tasks-Dm1ljmuN.js} +11 -11
- package/dist/{tokens-x3WbTUiR.js → tokens-B6PaaeVv.js} +1 -1
- package/dist/{tool-display-CO_Gj1t5.js → tool-display-DiZGbhL2.js} +1 -1
- package/dist/{tool-loop-detection-CGxEpEyN.js → tool-loop-detection-DHQv318m.js} +2 -2
- package/dist/{trash-BDCU6Fb2.js → trash-DNkuLhfz.js} +3 -3
- package/dist/{tui-DgQvXSe6.js → tui-DQwfx20_.js} +1 -1
- package/dist/{tui-wtR2jl1B.js → tui-X8LP2ykY.js} +8 -8
- package/dist/{tui-cli-CNz7Mg8b.js → tui-cli-DFen3XYb.js} +4 -4
- package/dist/{tui-cli-D4GLKISY.js → tui-cli-Dhj11694.js} +31 -31
- package/dist/{update-BEgLahg5.js → update-CYcHPlAS.js} +3 -3
- package/dist/{update-CVYwBE80.js → update-VuewNwzn.js} +1 -1
- package/dist/{update-cli-DhfSepno.js → update-cli-DE0ttohR.js} +26 -26
- package/dist/{update-cli-D-GilQk7.js → update-cli-DECVfh7L.js} +135 -135
- package/dist/{update-runner-ha2YJZBG.js → update-runner-C8NxlRy7.js} +18 -18
- package/dist/{update-runner-BTMpYRTQ.js → update-runner-CBbs-iN_.js} +1 -1
- package/dist/{user-run-recording-BR_U9osf.js → user-run-recording-DXNyfjMq.js} +2 -2
- package/dist/{validation-cli-hVAwTijW.js → validation-cli-D8dTZ830.js} +18 -18
- package/dist/{validation-cli-BwvVf8tp.js → validation-cli-Di7B-mhn.js} +97 -97
- package/dist/{web-cli-BtQrD08h.js → web-cli-B0hbvEsp.js} +3 -3
- package/dist/{web-client-assets-COSve3Rq.js → web-client-assets-nkeo2cLh.js} +1 -1
- package/dist/{webhooks-cli-B7OIieVk.js → webhooks-cli-Rne_IilT.js} +10 -10
- package/dist/{widearea-dns-B9lNb6ro.js → widearea-dns-B1ALOpPn.js} +1 -1
- package/dist/{with-timeout-CuFl-tDg.js → with-timeout-BfG7k9-4.js} +2 -2
- package/dist/{with-timeout-DIENRALL.js → with-timeout-CpZZ4mMw.js} +6 -6
- package/dist/{workspace-Dt30ZPzK.js → workspace-DkkkJ4GX.js} +2 -2
- package/dist/{workspace-dirs-CCmfLlPy.js → workspace-dirs-mzsfTPed.js} +1 -1
- package/dist/{ws-CBDMKFAM.js → ws-DESjYW7M.js} +2 -2
- package/dist/{wsl-C9d12M7y.js → wsl-BisEqrSr.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/elevenlabs/src/streaming-speech-provider-faults.test.ts +2 -2
- package/extensions/elevenlabs/src/streaming-speech-provider.test.ts +19 -5
- package/extensions/elevenlabs/src/streaming-speech-provider.ts +3 -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 +1 -1
- package/dist/cli-CAr3GVB1.js +0 -164
- package/dist/pi-embedded-recovery-adapter-CpGvtObS.js +0 -60
- package/dist/register.configure-C2X-xBB6.js +0 -168
package/dist/entry.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Bt as isRootHelpInvocation, Lt as hasHelpOrVersion, Vt as isRootVersionInvocation } from "./globals-
|
|
2
|
+
import { Bt as isRootHelpInvocation, Lt as hasHelpOrVersion, Vt as isRootVersionInvocation } from "./globals-ZyVsnNcg.js";
|
|
3
3
|
import { y as resolveRequiredHomeDir } from "./paths-BMo6kTge.js";
|
|
4
4
|
import { t as isValidProfileName } from "./profile-utils-DMZjJPo2.js";
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-DLKs6VzZ.js";
|
|
6
6
|
import { t as parseBooleanValue } from "./boolean-Bb19hm9Y.js";
|
|
7
7
|
import { enableCompileCache } from "node:module";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
@@ -380,7 +380,7 @@ if (!isMainModule({
|
|
|
380
380
|
}
|
|
381
381
|
function tryHandleRootHelpFastPath(argv) {
|
|
382
382
|
if (!isRootHelpInvocation(argv)) return false;
|
|
383
|
-
import("./program-
|
|
383
|
+
import("./program-Dus5j4vB.js").then(({ buildProgram }) => {
|
|
384
384
|
buildProgram().outputHelp();
|
|
385
385
|
}).catch((error) => {
|
|
386
386
|
console.error("[openclaw] Failed to display help:", error instanceof Error ? error.stack ?? error.message : error);
|
|
@@ -399,7 +399,7 @@ if (!isMainModule({
|
|
|
399
399
|
applyCliProfileEnv({ profile: parsed.profile });
|
|
400
400
|
process$1.argv = parsed.argv;
|
|
401
401
|
}
|
|
402
|
-
if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-
|
|
402
|
+
if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-BzfK-GcH.js").then(({ runCli }) => runCli(process$1.argv)).then(() => flushStdio()).then(() => process$1.exit(process$1.exitCode ?? 0)).catch(async (error) => {
|
|
403
403
|
console.error("[openclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
404
404
|
await flushStdio();
|
|
405
405
|
process$1.exit(process$1.exitCode ?? 1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as expandHomePrefix } from "./paths-BMo6kTge.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-DLKs6VzZ.js";
|
|
3
3
|
import { t as DEFAULT_AGENT_ID } from "./session-key-D4YLCjDF.js";
|
|
4
4
|
import path, { basename, dirname, join } from "node:path";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bs as unwrapKnownShellMultiplexerInvocation, Cs as isWindowsPlatform, Ds as matchAllowlist, Es as DEFAULT_SAFE_BINS, Fs as isDispatchWrapperExecutable, Gs as SAFE_BIN_PROFILES, Is as isShellWrapperExecutable, Ns as extractShellWrapperInlineCommand, Os as resolveAllowlistCandidatePath, Ts as splitCommandChain, gs as isTrustedSafeBinPath, ks as resolveCommandResolutionFromArgv, xs as analyzeShellCommand, ys as validateSafeBinArgv, zs as unwrapKnownDispatchWrapperInvocation } from "./config-
|
|
1
|
+
import { Bs as unwrapKnownShellMultiplexerInvocation, Cs as isWindowsPlatform, Ds as matchAllowlist, Es as DEFAULT_SAFE_BINS, Fs as isDispatchWrapperExecutable, Gs as SAFE_BIN_PROFILES, Is as isShellWrapperExecutable, Ns as extractShellWrapperInlineCommand, Os as resolveAllowlistCandidatePath, Ts as splitCommandChain, gs as isTrustedSafeBinPath, ks as resolveCommandResolutionFromArgv, xs as analyzeShellCommand, ys as validateSafeBinArgv, zs as unwrapKnownDispatchWrapperInvocation } from "./config-BPACL-n5.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/exec-approvals-allowlist.ts
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { f as isRich, p as theme } from "./globals-
|
|
1
|
+
import { f as isRich, p as theme } from "./globals-ZyVsnNcg.js";
|
|
2
2
|
import "./paths-BMo6kTge.js";
|
|
3
|
-
import { m as defaultRuntime } from "./subsystem-
|
|
3
|
+
import { m as defaultRuntime } from "./subsystem-DLKs6VzZ.js";
|
|
4
4
|
import "./boolean-Bb19hm9Y.js";
|
|
5
|
-
import "./config-
|
|
5
|
+
import "./config-BPACL-n5.js";
|
|
6
6
|
import "./version-D_9__Xw6.js";
|
|
7
|
-
import "./agent-scope-
|
|
8
|
-
import "./logger-
|
|
9
|
-
import "./exec-
|
|
7
|
+
import "./agent-scope-Dt0TVWFY.js";
|
|
8
|
+
import "./logger-B1oXl7GT.js";
|
|
9
|
+
import "./exec-vJi_ETQy.js";
|
|
10
10
|
import "./github-copilot-token-CvN6iidT.js";
|
|
11
11
|
import "./retry-policy-BdHwnvOa.js";
|
|
12
12
|
import "./artifacts-C9Cr_S5Y.js";
|
|
13
13
|
import "./chat-envelope-DfuAGxmg.js";
|
|
14
14
|
import "./task-run-types-B6n0W8Rb.js";
|
|
15
15
|
import "./static-server-CRGPIP-a.js";
|
|
16
|
-
import "./tailnet-
|
|
17
|
-
import "./ws-
|
|
18
|
-
import "./exec-approvals-allowlist-
|
|
19
|
-
import "./client-
|
|
20
|
-
import "./call-
|
|
16
|
+
import "./tailnet-BSKE3pk_.js";
|
|
17
|
+
import "./ws-DESjYW7M.js";
|
|
18
|
+
import "./exec-approvals-allowlist-CNWI56tZ.js";
|
|
19
|
+
import "./client-DN-SMVBn.js";
|
|
20
|
+
import "./call-PE59cW0J.js";
|
|
21
21
|
import "./pairing-token-BfRB0jVM.js";
|
|
22
22
|
import { n as formatTimeAgo } from "./format-relative-BDwAggS5.js";
|
|
23
|
-
import { h as saveExecApprovals, l as readExecApprovalsSnapshot } from "./exec-approvals-
|
|
24
|
-
import { t as formatDocsLink } from "./links-
|
|
25
|
-
import "./progress-
|
|
26
|
-
import { n as callGatewayFromCli } from "./gateway-rpc-
|
|
27
|
-
import "./service-
|
|
28
|
-
import "./systemd-
|
|
29
|
-
import { t as renderTable } from "./table-
|
|
30
|
-
import { t as describeUnknownError } from "./shared-
|
|
31
|
-
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-
|
|
23
|
+
import { h as saveExecApprovals, l as readExecApprovalsSnapshot } from "./exec-approvals-C3o7bTbp.js";
|
|
24
|
+
import { t as formatDocsLink } from "./links-BZDTcdHU.js";
|
|
25
|
+
import "./progress-Dc4ihErK.js";
|
|
26
|
+
import { n as callGatewayFromCli } from "./gateway-rpc-DOfMq6W1.js";
|
|
27
|
+
import "./service-Dkcqg-rd.js";
|
|
28
|
+
import "./systemd-BJqlwupF.js";
|
|
29
|
+
import { t as renderTable } from "./table-H366JkfJ.js";
|
|
30
|
+
import { t as describeUnknownError } from "./shared-Cj18nzyW.js";
|
|
31
|
+
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-htgXg_yf.js";
|
|
32
32
|
import JSON5 from "json5";
|
|
33
|
-
import
|
|
33
|
+
import fs from "node:fs/promises";
|
|
34
34
|
|
|
35
35
|
//#region src/cli/exec-approvals-cli.ts
|
|
36
36
|
async function readStdin() {
|
|
@@ -327,7 +327,7 @@ function registerExecApprovalsCli(program) {
|
|
|
327
327
|
if (!opts.file && !opts.stdin) exitWithError("Provide --file or --stdin.");
|
|
328
328
|
if (opts.file && opts.stdin) exitWithError("Use either --file or --stdin (not both).");
|
|
329
329
|
const { source, nodeId, targetLabel, baseHash } = await loadWritableSnapshotTarget(opts);
|
|
330
|
-
const raw = opts.stdin ? await readStdin() : await
|
|
330
|
+
const raw = opts.stdin ? await readStdin() : await fs.readFile(String(opts.file), "utf8");
|
|
331
331
|
let file;
|
|
332
332
|
try {
|
|
333
333
|
file = JSON5.parse(raw);
|
package/dist/{exec-safe-bin-runtime-policy-kCGsE7iL.js → exec-safe-bin-runtime-policy-C3eU8CKJ.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ks as normalizeSafeBinProfileFixtures, _s as listWritableExplicitTrustedSafeBinDirs, hs as getTrustedSafeBinDirs, qs as resolveSafeBinProfiles, vs as normalizeTrustedSafeBinDirs } from "./config-
|
|
2
|
-
import { i as resolveSafeBins } from "./exec-approvals-allowlist-
|
|
1
|
+
import { Ks as normalizeSafeBinProfileFixtures, _s as listWritableExplicitTrustedSafeBinDirs, hs as getTrustedSafeBinDirs, qs as resolveSafeBinProfiles, vs as normalizeTrustedSafeBinDirs } from "./config-BPACL-n5.js";
|
|
2
|
+
import { i as resolveSafeBins } from "./exec-approvals-allowlist-CNWI56tZ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/exec-safe-bin-runtime-policy.ts
|
|
5
5
|
const INTERPRETER_LIKE_SAFE_BINS = new Set([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as shouldLogVerbose, t as danger } from "./globals-
|
|
2
|
-
import { n as logError, t as logDebug } from "./logger-
|
|
1
|
+
import { c as shouldLogVerbose, t as danger } from "./globals-ZyVsnNcg.js";
|
|
2
|
+
import { n as logError, t as logDebug } from "./logger-B1oXl7GT.js";
|
|
3
3
|
import { execFile, spawn } from "node:child_process";
|
|
4
4
|
import process$1 from "node:process";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { J as isNotFoundPathError, Ot as resolvePreferredOpenClawTmpDir, Y as isPathInside } from "./globals-
|
|
2
|
-
import { o as loadConfig } from "./config-
|
|
3
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
1
|
+
import { J as isNotFoundPathError, Ot as resolvePreferredOpenClawTmpDir, Y as isPathInside } from "./globals-ZyVsnNcg.js";
|
|
2
|
+
import { o as loadConfig } from "./config-BPACL-n5.js";
|
|
3
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-CByGgR59.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,12 +1,12 @@
|
|
|
1
|
-
import { Ot as resolvePreferredOpenClawTmpDir } from "./globals-
|
|
1
|
+
import { Ot as resolvePreferredOpenClawTmpDir } from "./globals-ZyVsnNcg.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-BMo6kTge.js";
|
|
3
|
-
import { o as loadConfig } from "./config-
|
|
4
|
-
import { u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
3
|
+
import { o as loadConfig } from "./config-BPACL-n5.js";
|
|
4
|
+
import { u as resolveAgentWorkspaceDir } from "./agent-scope-Dt0TVWFY.js";
|
|
5
5
|
import { n as redactSensitiveText } from "./redact-BWPFahWo.js";
|
|
6
6
|
import { r as formatErrorChainMessage } from "./errors-Bf0TUXNT.js";
|
|
7
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
7
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-Cq6SZYWW.js";
|
|
8
8
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-C60x4trY.js";
|
|
9
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BzXFjlMV.js";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
|
|
12
12
|
//#region src/media/local-roots.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as logWarn, r as logInfo } from "./logger-
|
|
2
|
-
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { i as logWarn, r as logInfo } from "./logger-B1oXl7GT.js";
|
|
2
|
+
import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-DzG6q8Hh.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-Wg2M0G8N.js";
|
|
4
|
-
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-
|
|
4
|
+
import { t as isNpmUndiciDispatchingFetch } from "./proxy-fetch-BqVhGKFd.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
|
-
import { J as isNotFoundPathError, U as sameFileIdentity, X as isSymlinkOpenError, Y as isPathInside, q as hasNodeErrorCode } from "./globals-
|
|
1
|
+
import { J as isNotFoundPathError, U as sameFileIdentity, X as isSymlinkOpenError, Y as isPathInside, q as hasNodeErrorCode } from "./globals-ZyVsnNcg.js";
|
|
2
2
|
import { _ as expandHomePrefix } from "./paths-BMo6kTge.js";
|
|
3
|
-
import { i as logWarn } from "./logger-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
3
|
+
import { i as logWarn } from "./logger-B1oXl7GT.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-CHFrrzxZ.js";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { constants } from "node:fs";
|
|
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(() => {});
|