@termix-it/cryptoclaw 1.0.6 → 1.0.8
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/README.md +119 -116
- package/dist/{accounts-Bod7973i.js → accounts-CucAhPu5.js} +7 -7
- package/dist/{accounts-BSIXwC37.js → accounts-DarjcXFz.js} +1 -1
- package/dist/{accounts-D3YOECeq.js → accounts-DjUjM_0M.js} +1 -1
- package/dist/{acp-cli-CGC73qiP.js → acp-cli-BKEdLWJH.js} +8 -8
- package/dist/{agent-scope-BGsA4zEf.js → agent-scope-C5bklqr1.js} +17 -17
- package/dist/{agents-SpePW-me.js → agents-C26D9541.js} +14 -14
- package/dist/{agents.config-g0LyahNR.js → agents.config-BSkzwDQZ.js} +2 -2
- package/dist/{api-key-rotation-BoN0bfDN.js → api-key-rotation-DUAhkuoF.js} +1 -1
- package/dist/{audio-preflight-CN6L8zsG.js → audio-preflight-DFpELnh5.js} +34 -34
- package/dist/{audio-transcription-runner-D6NSiBUN.js → audio-transcription-runner-C1T1UDgG.js} +23 -23
- package/dist/{audit-C3kgCKKq.js → audit-BJ5b9jj6.js} +29 -29
- package/dist/{auth-BQOIUcK5.js → auth-CgV_wGar.js} +1 -1
- package/dist/{auth-choice-ClGYfSky.js → auth-choice-DG-39eTP.js} +13 -13
- package/dist/{auth-choice-pU5ch2o1.js → auth-choice-tnRPpsDE.js} +11 -11
- package/dist/{auth-choice.apply-helpers-BF8uDNAl.js → auth-choice.apply-helpers-DAj6Co-H.js} +1 -1
- package/dist/{auth-profiles-yB_p54Kf.js → auth-profiles-CtYlKXxI.js} +16 -16
- package/dist/{auth-token-C_wfhGFh.js → auth-token-Ijqjdh1h.js} +1 -1
- package/dist/{banner-C01HhkYN.js → banner-CY1oW10M.js} +2 -2
- package/dist/{bonjour-discovery-DRbbMuPV.js → bonjour-discovery-ttcR8uJV.js} +1 -1
- package/dist/{browser-cli-t5Ko46IP.js → browser-cli-DosaTN2z.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/{call-CeJbHmC5.js → call-BHrnZxI1.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-CZg6xYM_.js → channel-account-context-BjsJwBrl.js} +5 -5
- package/dist/{channel-activity-CtUzm0zi.js → channel-activity-CudRDPXk.js} +1 -1
- package/dist/{channel-options-DKP2et7c.js → channel-options-DRQo8X5b.js} +3 -3
- package/dist/{channel-selection-BGFLNPuZ.js → channel-selection-D2KncGab.js} +1 -1
- package/dist/{channel-web-CjBStv9j.js → channel-web-BxqW0jAU.js} +17 -17
- package/dist/{channels-cli-B7QQDJC8.js → channels-cli-BgpYg0HG.js} +93 -93
- package/dist/{channels-status-issues-UpBSKB6j.js → channels-status-issues-JgPH8x7b.js} +1 -1
- package/dist/{chrome-NrlBIdcn.js → chrome-m5f8q2YK.js} +4 -4
- package/dist/{clawbot-cli-fmA08wJd.js → clawbot-cli-CrkYNKVe.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-DO7xcifm.js → cli-2paqSkPz.js} +73 -73
- package/dist/{client-Kkj2aHgb.js → client-BqLxmdBY.js} +2 -2
- package/dist/{command-registry-Ckb_NblW.js → command-registry-C3IdEOLg.js} +11 -11
- package/dist/{command-secret-targets-CVAt80vu.js → command-secret-targets-_FGz0zdz.js} +4 -4
- package/dist/{commands-BYuioJO3.js → commands-CP-eujrx.js} +1 -1
- package/dist/{commands-registry-DCOqmmUF.js → commands-registry-BxWE_gts.js} +3 -3
- package/dist/{completion-cli-3DXayCwj.js → completion-cli-D_Hp6T_X.js} +13 -13
- package/dist/{config-cli-DDe7yEGq.js → config-cli-DLVXpjXN.js} +7 -7
- package/dist/{config-guard-DpzGAFpd.js → config-guard-D9yUiM86.js} +3 -3
- package/dist/{config-validation-BS6k_44h.js → config-validation-C-plaBVT.js} +3 -3
- package/dist/{configure-M4LELgRU.js → configure-idrmyczj.js} +17 -17
- package/dist/{control-ui-assets-CYQNSPY0.js → control-ui-assets-1CYoFkJQ.js} +1 -1
- package/dist/{cron-cli-C0tDGxo5.js → cron-cli-CxAxkYel.js} +11 -11
- package/dist/{daemon-cli-D7rQUQZq.js → daemon-cli-Bntp6emS.js} +15 -15
- package/dist/{daemon-install-C_ygPena.js → daemon-install-LNixC8Pb.js} +4 -4
- package/dist/{daemon-install-helpers-so86sfkZ.js → daemon-install-helpers-CyjpUUrm.js} +11 -11
- package/dist/{deliver-Bh8OdZ9H.js → deliver-HkPDAwY2.js} +7 -7
- package/dist/deliver-runtime-B5yIMxQR.js +61 -0
- package/dist/deps-send-discord.runtime-sLYAyx_-.js +36 -0
- package/dist/deps-send-imessage.runtime-2cWGJS5r.js +35 -0
- package/dist/deps-send-signal.runtime-kNxDQhbE.js +34 -0
- package/dist/deps-send-slack.runtime-D3QFxyKO.js +32 -0
- package/dist/{deps-send-telegram.runtime-DhLKcoGf.js → deps-send-telegram.runtime-DUo2GPb7.js} +16 -16
- package/dist/deps-send-whatsapp.runtime-CHgCReeR.js +119 -0
- package/dist/{devices-cli-DKERiq8E.js → devices-cli-DDu3iEJN.js} +8 -8
- package/dist/{diagnostic-Dp-KkeSq.js → diagnostic-3zN7XEY1.js} +1 -1
- package/dist/{diagnostics-Cuvdgf7E.js → diagnostics-Dys24A-s.js} +5 -5
- package/dist/{directory-cli-DFN_WTag.js → directory-cli-BgL_9wd5.js} +7 -7
- package/dist/{dns-cli-DO8cd5zZ.js → dns-cli-B0zPrZBi.js} +5 -5
- package/dist/{dock-DjC0vgOm.js → dock-BaM5oTqE.js} +4 -4
- package/dist/{docs-cli-GcB4tM-4.js → docs-cli-4R8XltvA.js} +4 -4
- package/dist/{doctor-completion-3P8WMHdK.js → doctor-completion-5TLzN3Se.js} +2 -2
- package/dist/{doctor-config-flow-WQpcISHd.js → doctor-config-flow-DWHPUDqY.js} +15 -15
- package/dist/{enable-Di6fjV84.js → enable-BP58hyxE.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-CSsG6lrG.js → exec-approvals-allowlist-CGQJSJfD.js} +1 -1
- package/dist/{exec-approvals-cli-BuZEm_3t.js → exec-approvals-cli-DmOSbNpe.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-ukabtnTn.js → exec-safe-bin-runtime-policy-nkIQWrRj.js} +2 -2
- package/dist/{fetch-guard-0V5i-cZz.js → fetch-guard-CS_3jTMA.js} +1 -1
- package/dist/{fetch-DmaNytop.js → fetch-qkXypRi6.js} +3 -3
- package/dist/{fs-safe-DTO6fZ7N.js → fs-safe-CYrszQI6.js} +24 -24
- package/dist/{gateway-cli-VJJtBtt2.js → gateway-cli-Ct4tgMMm.js} +153 -153
- package/dist/{gateway-rpc-BLIo1-nR.js → gateway-rpc-eEkc-oSq.js} +1 -1
- package/dist/{health-Ry4jLJFh.js → health-CWuNlSLA.js} +11 -11
- package/dist/{hooks-cli-CpYtmeh1.js → hooks-cli-DdEAtyWm.js} +81 -81
- package/dist/{hooks-status-C_u7irQ4.js → hooks-status-NIiTaX__.js} +1 -1
- package/dist/{image-5Dop2pwF.js → image-ktIANJRi.js} +5 -5
- package/dist/{image-ops-Ba5soKsa.js → image-ops-WJSAG5_7.js} +10 -10
- package/dist/image-runtime-C0VvqoAb.js +55 -0
- package/dist/{inspect-Bnp4NJm0.js → inspect-DWaajebj.js} +4 -4
- package/dist/{install-safe-path-DgGlNCpx.js → install-safe-path-BmAf3bF5.js} +25 -25
- package/dist/{installs-Bjh1q5wQ.js → installs-DMDJeMmr.js} +9 -9
- package/dist/{ipv4-BsIL6DPy.js → ipv4-DIovCoyM.js} +1 -1
- package/dist/{ir-SEi7gUP9.js → ir-xdB7409t.js} +8 -8
- package/dist/{issue-format-DEHEwGJB.js → issue-format-DaXc0Ssz.js} +1 -1
- package/dist/{json-files-rR19q30D.js → json-files-CuJjdF_0.js} +8 -8
- package/dist/{lifecycle-core-t2Q34Tiu.js → lifecycle-core-BinqEyma.js} +5 -5
- package/dist/{login-DKh_sv9q.js → login-62iNga_2.js} +3 -3
- package/dist/{login-qr-9Wvtlmqz.js → login-qr-DMWPhIpQ.js} +6 -6
- package/dist/{logs-cli-BQTvPOds.js → logs-cli-BN9aRZlE.js} +9 -9
- package/dist/{manager-DKcbmdLj.js → manager-DstlJwRR.js} +14 -14
- package/dist/{manager-runtime-CdY_4s56.js → manager-runtime-DktggQQ7.js} +9 -9
- package/dist/{manifest-registry-CzoQ4XAn.js → manifest-registry-DjbHJw7g.js} +1 -1
- package/dist/{memory-cli-CEZedlbs.js → memory-cli-B4tlY2Jz.js} +12 -12
- package/dist/{model-B2Sraf73.js → model-BLdajRK2.js} +2 -2
- package/dist/{model-catalog-B9Kd_iNy.js → model-catalog-DorZGOmy.js} +3 -3
- package/dist/{model-picker-DyLoTKdE.js → model-picker-Cn-yEB3e.js} +4 -4
- package/dist/{models-CZbq8HGI.js → models-B_vCWO9r.js} +17 -17
- package/dist/{models-cli-8aPPSLLl.js → models-cli-BBMBrNuk.js} +78 -78
- package/dist/{models-config-C7yYEUbY.js → models-config-VlzOga1W.js} +6 -6
- package/dist/{net-CfwQaj6f.js → net-DFijUFfS.js} +2 -2
- package/dist/{node-cli-BRIl5jr7.js → node-cli-BfSkX-wS.js} +33 -33
- package/dist/{node-command-policy-yJ_VpCHq.js → node-command-policy-BMgJ81FO.js} +1 -1
- package/dist/{node-service-9R10zILv.js → node-service-BeDB4avc.js} +1 -1
- package/dist/{nodes-cli-CARJm2ko.js → nodes-cli-D0etQIcH.js} +16 -16
- package/dist/{nodes-screen-DF7EBTLu.js → nodes-screen-DWVpmvMz.js} +7 -7
- package/dist/{npm-pack-install-DdqL1Mh1.js → npm-pack-install-BUyXXcPz.js} +18 -18
- package/dist/{npm-resolution-BaKXXkK7.js → npm-resolution-DSDaOY0G.js} +4 -4
- package/dist/{onboard-C7cwcgUt.js → onboard-BEv6XhMg.js} +6 -6
- package/dist/{onboard-channels-VhiLL846.js → onboard-channels-DAQmVNUf.js} +21 -21
- package/dist/{onboard-custom-2gc6FKvI.js → onboard-custom-BIY24QCh.js} +4 -4
- package/dist/{onboard-helpers-Mort99IL.js → onboard-helpers-CPO08jBg.js} +10 -10
- package/dist/{onboard-hooks-DPho1fkd.js → onboard-hooks-CK-gx645.js} +4 -4
- package/dist/{onboard-remote-BfScc2nM.js → onboard-remote-SQzkLmdW.js} +4 -4
- package/dist/{onboard-skills-CkZeXqxE.js → onboard-skills-B2UtgSDa.js} +4 -4
- package/dist/{onboarding-DyjqYKzZ.js → onboarding-CWdu0f2f.js} +14 -14
- package/dist/{onboarding.finalize-Rn8lrC90.js → onboarding.finalize-BD5_L4rw.js} +87 -87
- package/dist/{onboarding.gateway-config-D83188RW.js → onboarding.gateway-config-CBJgsZvM.js} +18 -18
- package/dist/{onboarding.secret-input-CG_ZOH5i.js → onboarding.secret-input-B_lhRVqi.js} +1 -1
- package/dist/{openai-model-default-D1kdZKT2.js → openai-model-default-OdIXYQox.js} +2 -2
- package/dist/{openclaw-root-BU3lu8pM.js → openclaw-root-BFfBQ6FD.js} +8 -8
- package/dist/{outbound-attachment-MWhTrPYa.js → outbound-attachment-BewsAqvJ.js} +2 -2
- package/dist/{outbound-BrhmfCk2.js → outbound-m-MM0HUr.js} +3 -3
- package/dist/{pairing-cli-BLxX0PoT.js → pairing-cli-CjrZxYPI.js} +8 -8
- package/dist/{pairing-labels-C1jblVNc.js → pairing-labels-BU1EH5qm.js} +1 -1
- package/dist/{pairing-store-B_UHGVGM.js → pairing-store-CrEzWjmd.js} +3 -3
- package/dist/{path-alias-guards-DhIwq92y.js → path-alias-guards-DbNvNQar.js} +3 -3
- package/dist/{path-safety-BjIM4N4t.js → path-safety-ClQO4BB6.js} +1 -1
- package/dist/{paths-CGf7Nrz-.js → paths-BaZIBy3U.js} +9 -9
- package/dist/{pi-embedded-helpers-D9bQLeoK.js → pi-embedded-helpers-CJZP0u_Y.js} +6 -6
- package/dist/{pi-model-discovery-BmqY0Fxk.js → pi-model-discovery-IzndsQh-.js} +1 -1
- package/dist/{pi-model-discovery-runtime-Ce9Tz7Qj.js → pi-model-discovery-runtime-Bc-2_ZlP.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-B3faxm6v.js → pi-tools.before-tool-call.runtime-D4tLWmkM.js} +5 -5
- package/dist/{pi-tools.policy-B1sTh_x1.js → pi-tools.policy-B72vqcZC.js} +5 -5
- package/dist/{plugin-auto-enable-DFhRs_Ha.js → plugin-auto-enable-BJfAN-kO.js} +3 -3
- package/dist/{plugin-registry-34ghMzQO.js → plugin-registry-Coex6Pjp.js} +3 -3
- package/dist/plugin-sdk/{accounts-UnMpt5N3.js → accounts-8MUKWeGv.js} +2 -2
- package/dist/plugin-sdk/{accounts-B9LsoWRN.js → accounts-C1nsQfAq.js} +3 -3
- package/dist/plugin-sdk/{accounts-raZ4ECkq.js → accounts-CPoohfrp.js} +2 -2
- package/dist/plugin-sdk/{active-listener-Eb16HTkk.js → active-listener-Degi0it3.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-CVee9nRS.js → api-key-rotation-CbsZTTUf.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-B82VQczF.js → audio-preflight-De3ToOLv.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-qZ6rKQHs.js → audio-transcription-runner-B99FfbzJ.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-Re50ULXH.js → audit-membership-runtime-DS34hPU6.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-DhjaEnHr.js → channel-activity-DdXRr2be.js} +3 -3
- package/dist/plugin-sdk/{channel-web-Cd9ofl4F.js → channel-web-DyO5wH-M.js} +18 -18
- package/dist/plugin-sdk/{chrome-DkRruWw9.js → chrome-D9S09VjY.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-DCIdoQuk.js → commands-registry-7sKgV6b6.js} +4 -4
- package/dist/plugin-sdk/{config-Dq7-4cgI.js → config-hSLjGMqo.js} +7 -7
- package/dist/plugin-sdk/{deliver-BFO3PdBy.js → deliver-CmBonhhr.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-DzqXq4YW.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-BWZWUTzd.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-BbcpP4Hy.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-DnuZ-6OX.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-C-K73-e_.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-B47VZANU.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CbVoeht-.js +57 -0
- package/dist/plugin-sdk/{diagnostic-DiXA_NOk.js → diagnostic-XZ76ECg1.js} +2 -2
- package/dist/plugin-sdk/{errors-x0EvNKYN.js → errors-C-TFeu_U.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-DHh-3Pq7.js → fetch-guard-BNChovQk.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-Obb1u_C-.js → fs-safe-B8jm0acc.js} +3 -3
- package/dist/plugin-sdk/{image-C2hwEt8m.js → image-BzikjBti.js} +6 -6
- package/dist/plugin-sdk/{image-ops-C7Kt1ryv.js → image-ops-DBR1x_FT.js} +2 -2
- package/dist/plugin-sdk/image-runtime-BfyyxB88.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-DEyFvrC3.js → ir-CvW_AaoY.js} +7 -7
- package/dist/plugin-sdk/{local-roots-BS6aNMOU.js → local-roots-CW4yjHjO.js} +4 -4
- package/dist/plugin-sdk/{logger-COmHOvdm.js → logger-z1vqlUc1.js} +2 -2
- package/dist/plugin-sdk/{login-C0QJfY7H.js → login-BzaOlpPR.js} +4 -4
- package/dist/plugin-sdk/{login-qr-0qmwdPb0.js → login-qr-C0z_KRnC.js} +5 -5
- package/dist/plugin-sdk/{manager-8RgL4Sdy.js → manager-DTf6k6ib.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-PlVcxBdF.js +15 -0
- package/dist/plugin-sdk/{outbound-r2idzBjf.js → outbound-DmES81b6.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-D2rmCK5Q.js → outbound-attachment-BYR_GvCl.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DlbgzmZl.js → path-alias-guards-CMpHLrQn.js} +1 -1
- package/dist/plugin-sdk/{paths-B2ytnsaB.js → paths-NcyWgkDa.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-xCyAR479.js → pi-embedded-helpers-6BaZvTwA.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-C31bQ9NT.js → pi-model-discovery-DYyEobhW.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-CF3YRFcs.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-BPpgalFg.js → pi-tools.before-tool-call.runtime-ocH9ttx6.js} +4 -4
- package/dist/plugin-sdk/{plugins-CRPN1AUk.js → plugins-B_UiQZHB.js} +4 -4
- package/dist/plugin-sdk/{proxy-fetch-BZAtM2fT.js → proxy-fetch-DxlXp4Yi.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-kU3tw4ws.js → pw-ai-B-yFpAtd.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-5TI5OD4_.js → qmd-manager-uz9PCVkw.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-miz9J0WR.js → query-expansion-D8bZEHLi.js} +4 -4
- package/dist/plugin-sdk/{redact-DZTeCKgA.js → redact-DIGZ7dEc.js} +1 -1
- package/dist/plugin-sdk/{reply-2zncCurP.js → reply-DHKovUx3.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-BZynpUy7.js → resolve-outbound-target-DAomg7DR.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-BdEQVn3N.js → run-with-concurrency-qFOkp49n.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-D6QQrKEg.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-C9sD41-7.js +19 -0
- package/dist/plugin-sdk/{send-DXAc8sNQ.js → send-AAxixxac.js} +6 -6
- package/dist/plugin-sdk/{send-srOsTG5v.js → send-BikqI3_Q.js} +5 -5
- package/dist/plugin-sdk/{send-DDxJMLW5.js → send-D7LHac9D.js} +7 -7
- package/dist/plugin-sdk/{send-BraCxR1K.js → send-DHx11WPi.js} +13 -13
- package/dist/plugin-sdk/{send-DGJD5miT.js → send-iL8NdxQL.js} +8 -8
- package/dist/plugin-sdk/{session-DPtviLOH.js → session-B8SERluE.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-9Q1xjzBv.js → skill-commands-BBiGcASQ.js} +4 -4
- package/dist/plugin-sdk/{skills-DibmdNLb.js → skills-uVCpkzHJ.js} +6 -6
- package/dist/plugin-sdk/slack.js +2 -2
- package/dist/plugin-sdk/slash-commands.runtime-UF19zDim.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-CSdhHD27.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-B9xCsuLJ.js +16 -0
- package/dist/plugin-sdk/{ssrf-C6DhX4-H.js → ssrf-BvmhOmnD.js} +1 -1
- package/dist/plugin-sdk/{store-ZIdTTfE4.js → store-CDD0KdbU.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-C4cuhBu-.js +52 -0
- package/dist/plugin-sdk/{tables-BssKNJPW.js → tables-DnzlEbCE.js} +1 -1
- package/dist/plugin-sdk/{target-errors-CXWbQSBp.js → target-errors-BInUjyyh.js} +2 -2
- package/dist/plugin-sdk/{thinking-DMfnE3HJ.js → thinking-CLc4CsZU.js} +7 -7
- package/dist/plugin-sdk/{tokens-XT-8y62w.js → tokens-DuRErjk3.js} +1 -1
- package/dist/plugin-sdk/{tool-images-DbDPeOjK.js → tool-images-h8wHgEL8.js} +2 -2
- package/dist/plugin-sdk/web-Btk9r9Ct.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-DKfas9MG.js → whatsapp-actions-BBLa4ciE.js} +17 -17
- package/dist/{plugins-DO_6iMZV.js → plugins-B4AetCpQ.js} +2 -2
- package/dist/{plugins-cli-CrVhFNFQ.js → plugins-cli-BC1OrfRZ.js} +83 -83
- package/dist/{ports-D7wHAklC.js → ports-BUQm2J6L.js} +1 -1
- package/dist/{ports-jknVhOJa.js → ports-BpZiRmiG.js} +2 -2
- package/dist/{program-DJShjgis.js → program-DP3cy7oT.js} +81 -81
- package/dist/{prompt-select-styled-BEQND6Pn.js → prompt-select-styled-doOKqwJk.js} +40 -40
- package/dist/{provider-auth-helpers-CHEChUx_.js → provider-auth-helpers-DcmZK4IP.js} +5 -5
- package/dist/{proxy-env-C61VbSzS.js → proxy-env-BEfRNPmW.js} +1 -1
- package/dist/{push-apns-BPEC7SVy.js → push-apns-Duv_LH_E.js} +5 -5
- package/dist/{pw-ai-BWsikzYD.js → pw-ai-Ds5f7Rvv.js} +18 -18
- package/dist/{qmd-manager-DefwbEao.js → qmd-manager-4HixPUdU.js} +20 -20
- package/dist/{qr-cli-CoXD6uPd.js → qr-cli-D4MiTFeD.js} +2 -2
- package/dist/{query-expansion-BlsKiJrV.js → query-expansion-DfWHFCTw.js} +12 -12
- package/dist/{redact-snapshot-M27Gs1s9.js → redact-snapshot-BE1hcZlN.js} +1 -1
- package/dist/{register.agent-t529UsnC.js → register.agent-DFd8-wLc.js} +94 -94
- package/dist/register.configure-Cu6y9WMa.js +165 -0
- package/dist/{register.maintenance-FmxcJgcW.js → register.maintenance-CouoMEPC.js} +95 -95
- package/dist/{register.message-BCoDh2cF.js → register.message-g4CdwiKD.js} +74 -74
- package/dist/{register.onboard-DZar0J8o.js → register.onboard-DlKw4xXK.js} +18 -18
- package/dist/{register.setup-D14CyWuc.js → register.setup-kxCLJtkA.js} +21 -21
- package/dist/{register.status-health-sessions-B6crPNF9.js → register.status-health-sessions-BakEjuIX.js} +88 -88
- package/dist/{register.subclis-BAATApi1.js → register.subclis-E3VXJcR8.js} +31 -31
- package/dist/{rpc-CA7yGckN.js → rpc-C9k7pLBW.js} +1 -1
- package/dist/{run-main-B19t_gLX.js → run-main-k4NWKRqz.js} +92 -92
- package/dist/{runtime-D_htBj_7.js → runtime-CagDsJFx.js} +3 -3
- package/dist/{runtime-config-collectors-mLMSoY2n.js → runtime-config-collectors-D0I8Qs4G.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-BtBGjvx6.js → runtime-whatsapp-login.runtime-BvfhsLJm.js} +7 -7
- package/dist/{runtime-whatsapp-outbound.runtime-D1d2rg_z.js → runtime-whatsapp-outbound.runtime-QL3Riu-B.js} +15 -15
- package/dist/{sandbox-C-8JxFW5.js → sandbox-CgTcwizP.js} +18 -18
- package/dist/{sandbox-cli-xIBSXLbp.js → sandbox-cli-56gCyo4f.js} +25 -25
- package/dist/{secrets-cli-DwpF8ldn.js → secrets-cli-BjzX5BIS.js} +11 -11
- package/dist/{security-cli-BjfOTh6K.js → security-cli-C8_7pezc.js} +42 -42
- package/dist/{send-NBLtGiEh.js → send-B1C9OCt2.js} +8 -8
- package/dist/{send-Cp2_MKSV.js → send-BCdpg1w2.js} +5 -5
- package/dist/{send-BzRMouwD.js → send-BhJJuiPi.js} +4 -4
- package/dist/{send-DrEo-BBc.js → send-CkFo9xha.js} +6 -6
- package/dist/{send-D2Kyg_GY.js → send-DDvvsvcJ.js} +11 -11
- package/dist/{server-Cz0R7Scf.js → server-EsF-rWXM.js} +20 -20
- package/dist/{server-context-vco06zxO.js → server-context-DAejIBKi.js} +12 -12
- package/dist/{server-lifecycle-BnUgXA5X.js → server-lifecycle-C0IxrwRk.js} +2 -2
- package/dist/{server-middleware-D5lrCTcL.js → server-middleware-B8_ZaIoM.js} +1 -1
- package/dist/{server-node-events-BTTa3-DI.js → server-node-events-1jnvsPrM.js} +74 -74
- package/dist/{service-B6Pm7AZA.js → service-T5lT7h-M.js} +15 -15
- package/dist/{session-CDSphrCx.js → session-XvQQBDSC.js} +1 -1
- package/dist/{session-utils-LerBXiBL.js → session-utils-CDs6jjz-.js} +6 -6
- package/dist/{sessions-UwbRBc7C.js → sessions-D4pBAOV-.js} +15 -15
- package/dist/{sessions-C7q1EhRK.js → sessions-JCqDw8Bf.js} +4 -4
- package/dist/{shared-BVq1q5D-.js → shared-BrmHcYtZ.js} +1 -1
- package/dist/{shared-sIizRbI9.js → shared-DaWK788E.js} +3 -3
- package/dist/{skill-commands-CeEZlRJj.js → skill-commands-DDRb6be1.js} +5 -5
- package/dist/{skill-scanner-DGx7tLvP.js → skill-scanner-BdA-XFky.js} +6 -6
- package/dist/{skills-B16i2mme.js → skills-Dde3dh7M.js} +3 -3
- package/dist/{skills-cli-COBPySVc.js → skills-cli-hPtKeBYo.js} +5 -5
- package/dist/{skills-install-CEgXF7D3.js → skills-install-BG5c8jOQ.js} +6 -6
- package/dist/{skills-status-BGvLXtop.js → skills-status-Cl0jR0kA.js} +1 -1
- package/dist/{slash-commands.runtime-BLl455Ha.js → slash-commands.runtime-WyW5W0r3.js} +11 -11
- package/dist/slash-dispatch.runtime-e_hnJMYz.js +114 -0
- package/dist/{slash-skill-commands.runtime-NP-EeAgb.js → slash-skill-commands.runtime-DCZQC-hJ.js} +15 -15
- package/dist/{status-4fmTPmZ8.js → status-KrF4yDJE.js} +27 -27
- package/dist/{status.update-BincwEhI.js → status.update-ovXdI8fy.js} +2 -2
- package/dist/{store-C4eyKOP_.js → store-OqcrqyHY.js} +5 -5
- package/dist/{subagent-registry-B29QoX6u.js → subagent-registry-CqQCPU35.js} +149 -149
- package/dist/subagent-registry-runtime-DZ2NcDAS.js +114 -0
- package/dist/{system-cli-DeCdNdxg.js → system-cli-C6XjjyMr.js} +9 -9
- package/dist/{system-run-command-DVel5yZQ.js → system-run-command-B1auaqvg.js} +1 -1
- package/dist/{systemd-BPu08aN2.js → systemd-CvSjUuUT.js} +9 -9
- package/dist/{systemd-hints-PEGoMeNi.js → systemd-hints-DPrvbOr-.js} +6 -6
- package/dist/{systemd-linger-ckxguBpS.js → systemd-linger-DWtUqeeE.js} +1 -1
- package/dist/{tables-CM4RCywz.js → tables-BSWzRw5b.js} +1 -1
- package/dist/{tailnet-D8ZmZFEq.js → tailnet-Bdvg29Ll.js} +1 -1
- package/dist/{target-errors-Dq-K3j_S.js → target-errors-D0aWoxbs.js} +4 -4
- package/dist/{tool-images-C96-GuZE.js → tool-images-J7V8AfTu.js} +1 -1
- package/dist/{tui-Cby-FNU6.js → tui-DlcwmY1x.js} +6 -6
- package/dist/{tui-cli-BpgQL5Pu.js → tui-cli-zm_Sa4E5.js} +32 -32
- package/dist/{update-DNmbn7VE.js → update-Gbhw9u0F.js} +3 -3
- package/dist/{update-cli-kVzXT8I-.js → update-cli-Co-CAt0w.js} +104 -104
- package/dist/{update-runner-C-d9Tjog.js → update-runner-kKiJKth8.js} +16 -16
- package/dist/web-Bx-fQR1C.js +118 -0
- package/dist/{webhooks-cli-BeC7vAYz.js → webhooks-cli-B-O0TVtX.js} +6 -6
- package/dist/{whatsapp-actions-oSO9PcWD.js → whatsapp-actions-DaNP01Yk.js} +17 -17
- package/dist/{with-timeout-YDfOtKvh.js → with-timeout-xp4bBUMy.js} +3 -3
- package/dist/{workspace-CZkOfauh.js → workspace-BXI1yRZ5.js} +1 -1
- package/dist/{workspace-dirs-BSD3q0pa.js → workspace-dirs-BY9k_sye.js} +1 -1
- package/dist/{wsl-CsGe5QCP.js → wsl-CvQfS6aU.js} +2 -2
- package/package.json +2 -2
- package/dist/deliver-runtime-DkDQPjmE.js +0 -61
- package/dist/deps-send-discord.runtime-DhhOEbEN.js +0 -36
- package/dist/deps-send-imessage.runtime-CeatZSyv.js +0 -35
- package/dist/deps-send-signal.runtime-xlqQXnR0.js +0 -34
- package/dist/deps-send-slack.runtime-m3yDRYug.js +0 -32
- package/dist/deps-send-whatsapp.runtime-DZR3Tix2.js +0 -119
- package/dist/image-runtime-vjBJe2FQ.js +0 -55
- package/dist/plugin-sdk/deliver-runtime-BWZ4MjCx.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-DOOrRWmj.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-B5w4Zb7g.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-NUsgzgnc.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-30nkLxsY.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-D2BsaDBJ.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-DMtrDoHb.js +0 -57
- package/dist/plugin-sdk/image-runtime-Vtwamfai.js +0 -25
- package/dist/plugin-sdk/manager-runtime-B7jfPrQb.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-C5Suk1AS.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BhSqT2c_.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DrZrtcgL.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-z1q_nPnV.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-CR4I_6w5.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-BzB0BO-7.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-UnNrLL2P.js +0 -52
- package/dist/plugin-sdk/web-D7S-5qkT.js +0 -56
- package/dist/register.configure-Dn11C-E_.js +0 -165
- package/dist/slash-dispatch.runtime-BtsEX-_Q.js +0 -114
- package/dist/subagent-registry-runtime-ChT29jt0.js +0 -114
- package/dist/web-CrLnsppN.js +0 -118
|
@@ -2,10 +2,10 @@ import { p as theme, t as danger } from "./globals-d3aR1MYC.js";
|
|
|
2
2
|
import "./paths-BMo6kTge.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-Cfn2Pryx.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import { z as loadConfig } from "./auth-profiles-CtYlKXxI.js";
|
|
6
|
+
import "./agent-scope-C5bklqr1.js";
|
|
7
7
|
import "./utils-cwpAMi-t.js";
|
|
8
|
-
import "./openclaw-root-
|
|
8
|
+
import "./openclaw-root-BFfBQ6FD.js";
|
|
9
9
|
import "./logger-DB-PHqB2.js";
|
|
10
10
|
import "./exec-B45rafWZ.js";
|
|
11
11
|
import "./registry-BrR1Dq5T.js";
|
|
@@ -13,12 +13,12 @@ import "./github-copilot-token-Byc_YVYE.js";
|
|
|
13
13
|
import "./host-env-security-lcjXF83D.js";
|
|
14
14
|
import "./version-DdJhsIqk.js";
|
|
15
15
|
import "./env-vars-mSSOl7Rv.js";
|
|
16
|
-
import "./manifest-registry-
|
|
16
|
+
import "./manifest-registry-DjbHJw7g.js";
|
|
17
17
|
import "./message-channel-CXgeX9no.js";
|
|
18
|
-
import { t as getChannelPlugin } from "./plugins-
|
|
19
|
-
import "./accounts-
|
|
18
|
+
import { t as getChannelPlugin } from "./plugins-B4AetCpQ.js";
|
|
19
|
+
import "./accounts-CucAhPu5.js";
|
|
20
20
|
import "./logging-CcxUDNcI.js";
|
|
21
|
-
import { n as resolveMessageChannelSelection } from "./channel-selection-
|
|
21
|
+
import { n as resolveMessageChannelSelection } from "./channel-selection-D2KncGab.js";
|
|
22
22
|
import { t as formatDocsLink } from "./links-BVDZVrXu.js";
|
|
23
23
|
import { t as formatHelpExamples } from "./help-format-CMlnk7BV.js";
|
|
24
24
|
import { t as resolveChannelDefaultAccountId } from "./helpers-D7MilaX-.js";
|
|
@@ -2,10 +2,10 @@ import { p as theme } from "./globals-d3aR1MYC.js";
|
|
|
2
2
|
import "./paths-BMo6kTge.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-Cfn2Pryx.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import { z as loadConfig } from "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import { z as loadConfig } from "./auth-profiles-CtYlKXxI.js";
|
|
6
|
+
import "./agent-scope-C5bklqr1.js";
|
|
7
7
|
import "./utils-cwpAMi-t.js";
|
|
8
|
-
import "./openclaw-root-
|
|
8
|
+
import "./openclaw-root-BFfBQ6FD.js";
|
|
9
9
|
import "./logger-DB-PHqB2.js";
|
|
10
10
|
import "./exec-B45rafWZ.js";
|
|
11
11
|
import "./registry-BrR1Dq5T.js";
|
|
@@ -13,8 +13,8 @@ import "./github-copilot-token-Byc_YVYE.js";
|
|
|
13
13
|
import "./host-env-security-lcjXF83D.js";
|
|
14
14
|
import "./version-DdJhsIqk.js";
|
|
15
15
|
import "./env-vars-mSSOl7Rv.js";
|
|
16
|
-
import "./manifest-registry-
|
|
17
|
-
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-
|
|
16
|
+
import "./manifest-registry-DjbHJw7g.js";
|
|
17
|
+
import { n as pickPrimaryTailnetIPv4, r as pickPrimaryTailnetIPv6 } from "./tailnet-Bdvg29Ll.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-BVDZVrXu.js";
|
|
19
19
|
import { t as renderTable } from "./table-BR-agoRi.js";
|
|
20
20
|
import { n as resolveWideAreaDiscoveryDomain, t as getWideAreaZonePath } from "./widearea-dns-CSYY8XGu.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as normalizeAccountId } from "./session-key-k6urs9r-.js";
|
|
2
2
|
import { c as escapeRegExp, p as normalizeE164 } from "./utils-cwpAMi-t.js";
|
|
3
3
|
import { a as getChatChannelMeta, n as CHAT_CHANNEL_ORDER, p as requireActivePluginRegistry } from "./registry-BrR1Dq5T.js";
|
|
4
|
-
import { b as resolveSlackReplyToMode, k as resolveDiscordAccount, l as resolveTelegramAccount, w as normalizeWhatsAppTarget, y as resolveSlackAccount } from "./plugins-
|
|
5
|
-
import { i as resolveWhatsAppAccount, y as resolveAccountEntry } from "./accounts-
|
|
6
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
7
|
-
import { i as resolveSignalAccount } from "./accounts-
|
|
4
|
+
import { b as resolveSlackReplyToMode, k as resolveDiscordAccount, l as resolveTelegramAccount, w as normalizeWhatsAppTarget, y as resolveSlackAccount } from "./plugins-B4AetCpQ.js";
|
|
5
|
+
import { i as resolveWhatsAppAccount, y as resolveAccountEntry } from "./accounts-CucAhPu5.js";
|
|
6
|
+
import { r as resolveIMessageAccount } from "./accounts-DarjcXFz.js";
|
|
7
|
+
import { i as resolveSignalAccount } from "./accounts-DjUjM_0M.js";
|
|
8
8
|
|
|
9
9
|
//#region src/config/types.tools.ts
|
|
10
10
|
const TOOLS_BY_SENDER_KEY_TYPES = [
|
|
@@ -4,15 +4,15 @@ import { d as defaultRuntime } from "./subsystem-Cfn2Pryx.js";
|
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-CLEQe4bk.js";
|
|
6
6
|
import "./utils-cwpAMi-t.js";
|
|
7
|
-
import "./openclaw-root-
|
|
7
|
+
import "./openclaw-root-BFfBQ6FD.js";
|
|
8
8
|
import "./logger-DB-PHqB2.js";
|
|
9
9
|
import { t as runCommandWithTimeout } from "./exec-B45rafWZ.js";
|
|
10
10
|
import "./registry-BrR1Dq5T.js";
|
|
11
11
|
import "./host-env-security-lcjXF83D.js";
|
|
12
|
-
import "./manifest-registry-
|
|
12
|
+
import "./manifest-registry-DjbHJw7g.js";
|
|
13
13
|
import { d as hasBinary } from "./frontmatter-D2o8_Jfu.js";
|
|
14
|
-
import "./skills-
|
|
15
|
-
import "./path-alias-guards-
|
|
14
|
+
import "./skills-Dde3dh7M.js";
|
|
15
|
+
import "./path-alias-guards-DbNvNQar.js";
|
|
16
16
|
import "./redact-DwuqxSL3.js";
|
|
17
17
|
import "./errors-CIvF1JsC.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-BVDZVrXu.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as resolveCliName } from "./command-format-CLEQe4bk.js";
|
|
2
|
-
import { t as resolveOpenClawPackageRoot } from "./openclaw-root-
|
|
2
|
+
import { t as resolveOpenClawPackageRoot } from "./openclaw-root-BFfBQ6FD.js";
|
|
3
3
|
import { t as note } from "./note-nDlrTKjH.js";
|
|
4
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
4
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-D_Hp6T_X.js";
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { f as resolveLegacyStateDirs, g as resolveStateDir, m as resolveOAuthDir, p as resolveNewStateDir, t as CONFIG_PATH } from "./paths-BMo6kTge.js";
|
|
2
|
-
import { Fn as resolveSlackNativeStreaming, I as migrateLegacyConfig, In as resolveSlackStreamingMode, Ln as resolveTelegramPreviewStreamMode, Mn as formatSlackStreamingBooleanMigrationMessage, Pn as resolveDiscordPreviewStreamMode, Qt as normalizeTrustedSafeBinDirs, V as readConfigFileSnapshot, Xt as isTrustedSafeBinPath, Yt as getTrustedSafeBinDirs, jn as formatSlackStreamModeMigrationMessage, ln as resolveCommandResolutionFromArgv, q as OpenClawSchema } from "./auth-profiles-
|
|
2
|
+
import { Fn as resolveSlackNativeStreaming, I as migrateLegacyConfig, In as resolveSlackStreamingMode, Ln as resolveTelegramPreviewStreamMode, Mn as formatSlackStreamingBooleanMigrationMessage, Pn as resolveDiscordPreviewStreamMode, Qt as normalizeTrustedSafeBinDirs, V as readConfigFileSnapshot, Xt as isTrustedSafeBinPath, Yt as getTrustedSafeBinDirs, jn as formatSlackStreamModeMigrationMessage, ln as resolveCommandResolutionFromArgv, q as OpenClawSchema } from "./auth-profiles-CtYlKXxI.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-CLEQe4bk.js";
|
|
4
|
-
import { d as resolveDefaultAgentId } from "./agent-scope-
|
|
4
|
+
import { d as resolveDefaultAgentId } from "./agent-scope-C5bklqr1.js";
|
|
5
5
|
import { _ as normalizeAccountId, c as normalizeAgentId, g as DEFAULT_ACCOUNT_ID, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, v as normalizeOptionalAccountId } from "./session-key-k6urs9r-.js";
|
|
6
6
|
import { g as resolveHomeDir, u as isRecord } from "./utils-cwpAMi-t.js";
|
|
7
7
|
import { l as normalizeChatChannelId } from "./registry-BrR1Dq5T.js";
|
|
8
|
-
import { f as parseToolsBySenderTypedKey } from "./dock-
|
|
9
|
-
import { Q as canonicalizeMainSessionAlias, l as saveSessionStore } from "./sessions-
|
|
10
|
-
import { d as formatChannelAccountsDefaultPath, f as formatSetExplicitDefaultInstruction, l as resolveTelegramAccount, p as formatSetExplicitDefaultToConfiguredInstruction, s as listTelegramAccountIds } from "./plugins-
|
|
11
|
-
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-
|
|
12
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
13
|
-
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-
|
|
8
|
+
import { f as parseToolsBySenderTypedKey } from "./dock-BaM5oTqE.js";
|
|
9
|
+
import { Q as canonicalizeMainSessionAlias, l as saveSessionStore } from "./sessions-D4pBAOV-.js";
|
|
10
|
+
import { d as formatChannelAccountsDefaultPath, f as formatSetExplicitDefaultInstruction, l as resolveTelegramAccount, p as formatSetExplicitDefaultToConfiguredInstruction, s as listTelegramAccountIds } from "./plugins-B4AetCpQ.js";
|
|
11
|
+
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-nkIQWrRj.js";
|
|
12
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-CrEzWjmd.js";
|
|
13
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-BJfAN-kO.js";
|
|
14
14
|
import { t as collectProviderDangerousNameMatchingScopes } from "./dangerous-name-matching-CXdnb6je.js";
|
|
15
15
|
import { r as shouldMoveSingleAccountChannelKey, t as fetchTelegramChatId } from "./api-D_ieZ9ip.js";
|
|
16
16
|
import { t as note } from "./note-nDlrTKjH.js";
|
|
17
|
-
import { t as isWithinDir } from "./path-safety-
|
|
18
|
-
import { n as formatConfigIssueLines } from "./issue-format-
|
|
17
|
+
import { t as isWithinDir } from "./path-safety-ClQO4BB6.js";
|
|
18
|
+
import { n as formatConfigIssueLines } from "./issue-format-DaXc0Ssz.js";
|
|
19
19
|
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-DHXBcz_e.js";
|
|
20
20
|
import os from "node:os";
|
|
21
21
|
import path from "node:path";
|
|
22
22
|
import fs from "node:fs";
|
|
23
23
|
import JSON5 from "json5";
|
|
24
|
-
import
|
|
24
|
+
import fs$1 from "node:fs/promises";
|
|
25
25
|
|
|
26
26
|
//#region src/commands/doctor-legacy-config.ts
|
|
27
27
|
function normalizeCompatibilityConfigValues(cfg) {
|
|
@@ -2134,7 +2134,7 @@ async function maybeMigrateLegacyConfig() {
|
|
|
2134
2134
|
const targetDir = path.join(home, ".openclaw");
|
|
2135
2135
|
const targetPath = path.join(targetDir, "openclaw.json");
|
|
2136
2136
|
try {
|
|
2137
|
-
await
|
|
2137
|
+
await fs$1.access(targetPath);
|
|
2138
2138
|
return changes;
|
|
2139
2139
|
} catch {}
|
|
2140
2140
|
const legacyCandidates = [
|
|
@@ -2144,14 +2144,14 @@ async function maybeMigrateLegacyConfig() {
|
|
|
2144
2144
|
];
|
|
2145
2145
|
let legacyPath = null;
|
|
2146
2146
|
for (const candidate of legacyCandidates) try {
|
|
2147
|
-
await
|
|
2147
|
+
await fs$1.access(candidate);
|
|
2148
2148
|
legacyPath = candidate;
|
|
2149
2149
|
break;
|
|
2150
2150
|
} catch {}
|
|
2151
2151
|
if (!legacyPath) return changes;
|
|
2152
|
-
await
|
|
2152
|
+
await fs$1.mkdir(targetDir, { recursive: true });
|
|
2153
2153
|
try {
|
|
2154
|
-
await
|
|
2154
|
+
await fs$1.copyFile(legacyPath, targetPath, fs$1.constants.COPYFILE_EXCL);
|
|
2155
2155
|
changes.push(`Migrated legacy config: ${legacyPath} -> ${targetPath}`);
|
|
2156
2156
|
} catch {}
|
|
2157
2157
|
return changes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as normalizeChatChannelId } from "./registry-BrR1Dq5T.js";
|
|
2
|
-
import { r as ensurePluginAllowlisted } from "./plugin-auto-enable-
|
|
2
|
+
import { r as ensurePluginAllowlisted } from "./plugin-auto-enable-BJfAN-kO.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/toggle-config.ts
|
|
5
5
|
function setPluginEnabledInConfig(config, pluginId, enabled) {
|
package/dist/entry.js
CHANGED
|
@@ -370,7 +370,7 @@ if (!isMainModule({
|
|
|
370
370
|
}
|
|
371
371
|
function tryHandleRootHelpFastPath(argv) {
|
|
372
372
|
if (!isRootHelpInvocation(argv)) return false;
|
|
373
|
-
import("./program-
|
|
373
|
+
import("./program-DP3cy7oT.js").then(({ buildProgram }) => {
|
|
374
374
|
buildProgram().outputHelp();
|
|
375
375
|
}).catch((error) => {
|
|
376
376
|
console.error("[openclaw] Failed to display help:", error instanceof Error ? error.stack ?? error.message : error);
|
|
@@ -389,7 +389,7 @@ if (!isMainModule({
|
|
|
389
389
|
applyCliProfileEnv({ profile: parsed.profile });
|
|
390
390
|
process$1.argv = parsed.argv;
|
|
391
391
|
}
|
|
392
|
-
if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-
|
|
392
|
+
if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-k4NWKRqz.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
|
|
393
393
|
console.error("[openclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
394
394
|
process$1.exitCode = 1;
|
|
395
395
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as validateSafeBinArgv, Xt as isTrustedSafeBinPath, an as splitCommandChain, cn as resolveAllowlistCandidatePath, fn as extractShellWrapperInlineCommand, hn as isShellWrapperExecutable, ln as resolveCommandResolutionFromArgv, mn as isDispatchWrapperExecutable, on as DEFAULT_SAFE_BINS, rn as isWindowsPlatform, sn as matchAllowlist, tn as analyzeShellCommand, vn as unwrapKnownDispatchWrapperInvocation, wn as SAFE_BIN_PROFILES, yn as unwrapKnownShellMultiplexerInvocation } from "./auth-profiles-
|
|
1
|
+
import { $t as validateSafeBinArgv, Xt as isTrustedSafeBinPath, an as splitCommandChain, cn as resolveAllowlistCandidatePath, fn as extractShellWrapperInlineCommand, hn as isShellWrapperExecutable, ln as resolveCommandResolutionFromArgv, mn as isDispatchWrapperExecutable, on as DEFAULT_SAFE_BINS, rn as isWindowsPlatform, sn as matchAllowlist, tn as analyzeShellCommand, vn as unwrapKnownDispatchWrapperInvocation, wn as SAFE_BIN_PROFILES, yn as unwrapKnownShellMultiplexerInvocation } from "./auth-profiles-CtYlKXxI.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/exec-approvals-allowlist.ts
|
|
@@ -2,10 +2,10 @@ import { f as isRich, p as theme } from "./globals-d3aR1MYC.js";
|
|
|
2
2
|
import "./paths-BMo6kTge.js";
|
|
3
3
|
import { d as defaultRuntime } from "./subsystem-Cfn2Pryx.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import "./auth-profiles-CtYlKXxI.js";
|
|
6
|
+
import "./agent-scope-C5bklqr1.js";
|
|
7
7
|
import "./utils-cwpAMi-t.js";
|
|
8
|
-
import "./openclaw-root-
|
|
8
|
+
import "./openclaw-root-BFfBQ6FD.js";
|
|
9
9
|
import "./logger-DB-PHqB2.js";
|
|
10
10
|
import "./exec-B45rafWZ.js";
|
|
11
11
|
import "./registry-BrR1Dq5T.js";
|
|
@@ -13,26 +13,26 @@ import "./github-copilot-token-Byc_YVYE.js";
|
|
|
13
13
|
import "./host-env-security-lcjXF83D.js";
|
|
14
14
|
import "./version-DdJhsIqk.js";
|
|
15
15
|
import "./env-vars-mSSOl7Rv.js";
|
|
16
|
-
import "./manifest-registry-
|
|
16
|
+
import "./manifest-registry-DjbHJw7g.js";
|
|
17
17
|
import "./message-channel-CXgeX9no.js";
|
|
18
|
-
import "./client-
|
|
19
|
-
import "./call-
|
|
18
|
+
import "./client-BqLxmdBY.js";
|
|
19
|
+
import "./call-BHrnZxI1.js";
|
|
20
20
|
import "./pairing-token-BXrId5bQ.js";
|
|
21
|
-
import "./net-
|
|
22
|
-
import "./tailnet-
|
|
23
|
-
import "./exec-approvals-allowlist-
|
|
21
|
+
import "./net-DFijUFfS.js";
|
|
22
|
+
import "./tailnet-Bdvg29Ll.js";
|
|
23
|
+
import "./exec-approvals-allowlist-CGQJSJfD.js";
|
|
24
24
|
import { n as formatTimeAgo } from "./format-relative-Czf5fUjn.js";
|
|
25
25
|
import { c as readExecApprovalsSnapshot, p as saveExecApprovals } from "./exec-approvals-BXpO0clf.js";
|
|
26
26
|
import { t as formatDocsLink } from "./links-BVDZVrXu.js";
|
|
27
27
|
import "./progress-BCOseYmX.js";
|
|
28
|
-
import { n as callGatewayFromCli } from "./gateway-rpc-
|
|
29
|
-
import "./systemd-
|
|
30
|
-
import "./service-
|
|
28
|
+
import { n as callGatewayFromCli } from "./gateway-rpc-eEkc-oSq.js";
|
|
29
|
+
import "./systemd-CvSjUuUT.js";
|
|
30
|
+
import "./service-T5lT7h-M.js";
|
|
31
31
|
import { t as renderTable } from "./table-BR-agoRi.js";
|
|
32
|
-
import { t as describeUnknownError } from "./shared-
|
|
33
|
-
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-
|
|
32
|
+
import { t as describeUnknownError } from "./shared-BrmHcYtZ.js";
|
|
33
|
+
import { a as resolveNodeId, r as nodesCallOpts } from "./rpc-C9k7pLBW.js";
|
|
34
34
|
import JSON5 from "json5";
|
|
35
|
-
import
|
|
35
|
+
import fs from "node:fs/promises";
|
|
36
36
|
|
|
37
37
|
//#region src/cli/exec-approvals-cli.ts
|
|
38
38
|
async function readStdin() {
|
|
@@ -329,7 +329,7 @@ function registerExecApprovalsCli(program) {
|
|
|
329
329
|
if (!opts.file && !opts.stdin) exitWithError("Provide --file or --stdin.");
|
|
330
330
|
if (opts.file && opts.stdin) exitWithError("Use either --file or --stdin (not both).");
|
|
331
331
|
const { source, nodeId, targetLabel, baseHash } = await loadWritableSnapshotTarget(opts);
|
|
332
|
-
const raw = opts.stdin ? await readStdin() : await
|
|
332
|
+
const raw = opts.stdin ? await readStdin() : await fs.readFile(String(opts.file), "utf8");
|
|
333
333
|
let file;
|
|
334
334
|
try {
|
|
335
335
|
file = JSON5.parse(raw);
|
package/dist/{exec-safe-bin-runtime-policy-ukabtnTn.js → exec-safe-bin-runtime-policy-nkIQWrRj.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { En as resolveSafeBinProfiles, Qt as normalizeTrustedSafeBinDirs, Tn as normalizeSafeBinProfileFixtures, Yt as getTrustedSafeBinDirs, Zt as listWritableExplicitTrustedSafeBinDirs } from "./auth-profiles-
|
|
2
|
-
import { i as resolveSafeBins } from "./exec-approvals-allowlist-
|
|
1
|
+
import { En as resolveSafeBinProfiles, Qt as normalizeTrustedSafeBinDirs, Tn as normalizeSafeBinProfileFixtures, Yt as getTrustedSafeBinDirs, Zt as listWritableExplicitTrustedSafeBinDirs } from "./auth-profiles-CtYlKXxI.js";
|
|
2
|
+
import { i as resolveSafeBins } from "./exec-approvals-allowlist-CGQJSJfD.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
1
|
import { i as logWarn } from "./logger-DB-PHqB2.js";
|
|
2
|
-
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
2
|
+
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-BEfRNPmW.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-Mawkd1Br.js";
|
|
4
4
|
import { EnvHttpProxyAgent } from "undici";
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { k as resolvePreferredOpenClawTmpDir } from "./globals-d3aR1MYC.js";
|
|
2
2
|
import { g as resolveStateDir } from "./paths-BMo6kTge.js";
|
|
3
|
-
import { u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
5
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
3
|
+
import { u as resolveAgentWorkspaceDir } from "./agent-scope-C5bklqr1.js";
|
|
4
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-WJSAG5_7.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CS_3jTMA.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/media/local-roots.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as expandHomePrefix } from "./paths-BMo6kTge.js";
|
|
2
|
-
import { d as hasNodeErrorCode, f as isNotFoundPathError, m as isSymlinkOpenError, p as isPathInside, s as sameFileIdentity } from "./openclaw-root-
|
|
2
|
+
import { d as hasNodeErrorCode, f as isNotFoundPathError, m as isSymlinkOpenError, p as isPathInside, s as sameFileIdentity } from "./openclaw-root-BFfBQ6FD.js";
|
|
3
3
|
import { i as logWarn } from "./logger-DB-PHqB2.js";
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-DbNvNQar.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(() => {});
|