@termix-it/cryptoclaw 1.0.4 → 1.0.6
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 +276 -38
- package/dist/{accounts-DarjcXFz.js → accounts-BSIXwC37.js} +1 -1
- package/dist/{accounts-CucAhPu5.js → accounts-Bod7973i.js} +7 -7
- package/dist/{accounts-DjUjM_0M.js → accounts-D3YOECeq.js} +1 -1
- package/dist/{acp-cli-BKEdLWJH.js → acp-cli-CGC73qiP.js} +8 -8
- package/dist/{agent-scope-C5bklqr1.js → agent-scope-BGsA4zEf.js} +17 -17
- package/dist/{agents-C26D9541.js → agents-SpePW-me.js} +14 -14
- package/dist/{agents.config-BSkzwDQZ.js → agents.config-g0LyahNR.js} +2 -2
- package/dist/{api-key-rotation-DUAhkuoF.js → api-key-rotation-BoN0bfDN.js} +1 -1
- package/dist/{audio-preflight-DFpELnh5.js → audio-preflight-CN6L8zsG.js} +34 -34
- package/dist/{audio-transcription-runner-C1T1UDgG.js → audio-transcription-runner-D6NSiBUN.js} +23 -23
- package/dist/{audit-BJ5b9jj6.js → audit-C3kgCKKq.js} +29 -29
- package/dist/{auth-CgV_wGar.js → auth-BQOIUcK5.js} +1 -1
- package/dist/{auth-choice-DG-39eTP.js → auth-choice-ClGYfSky.js} +13 -13
- package/dist/{auth-choice-tnRPpsDE.js → auth-choice-pU5ch2o1.js} +11 -11
- package/dist/{auth-choice.apply-helpers-DAj6Co-H.js → auth-choice.apply-helpers-BF8uDNAl.js} +1 -1
- package/dist/{auth-profiles-CtYlKXxI.js → auth-profiles-yB_p54Kf.js} +16 -16
- package/dist/{auth-token-Ijqjdh1h.js → auth-token-C_wfhGFh.js} +1 -1
- package/dist/{banner-CY1oW10M.js → banner-C01HhkYN.js} +2 -2
- package/dist/{bonjour-discovery-ttcR8uJV.js → bonjour-discovery-DRbbMuPV.js} +1 -1
- package/dist/{browser-cli-DosaTN2z.js → browser-cli-t5Ko46IP.js} +12 -12
- package/dist/build-info.json +3 -3
- package/dist/{call-BHrnZxI1.js → call-CeJbHmC5.js} +10 -10
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-account-context-BjsJwBrl.js → channel-account-context-CZg6xYM_.js} +5 -5
- package/dist/{channel-activity-CudRDPXk.js → channel-activity-CtUzm0zi.js} +1 -1
- package/dist/{channel-options-DRQo8X5b.js → channel-options-DKP2et7c.js} +3 -3
- package/dist/{channel-selection-D2KncGab.js → channel-selection-BGFLNPuZ.js} +1 -1
- package/dist/{channel-web-BxqW0jAU.js → channel-web-CjBStv9j.js} +17 -17
- package/dist/{channels-cli-BgpYg0HG.js → channels-cli-B7QQDJC8.js} +93 -93
- package/dist/{channels-status-issues-JgPH8x7b.js → channels-status-issues-UpBSKB6j.js} +1 -1
- package/dist/{chrome-m5f8q2YK.js → chrome-NrlBIdcn.js} +4 -4
- package/dist/{clawbot-cli-CrkYNKVe.js → clawbot-cli-fmA08wJd.js} +11 -11
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-2paqSkPz.js → cli-DO7xcifm.js} +73 -73
- package/dist/{client-BqLxmdBY.js → client-Kkj2aHgb.js} +2 -2
- package/dist/{command-registry-C3IdEOLg.js → command-registry-Ckb_NblW.js} +11 -11
- package/dist/{command-secret-targets-_FGz0zdz.js → command-secret-targets-CVAt80vu.js} +4 -4
- package/dist/{commands-CP-eujrx.js → commands-BYuioJO3.js} +1 -1
- package/dist/{commands-registry-BxWE_gts.js → commands-registry-DCOqmmUF.js} +3 -3
- package/dist/{completion-cli-D_Hp6T_X.js → completion-cli-3DXayCwj.js} +13 -13
- package/dist/{config-cli-DLVXpjXN.js → config-cli-DDe7yEGq.js} +7 -7
- package/dist/{config-guard-D9yUiM86.js → config-guard-DpzGAFpd.js} +3 -3
- package/dist/{config-validation-C-plaBVT.js → config-validation-BS6k_44h.js} +3 -3
- package/dist/{configure-idrmyczj.js → configure-M4LELgRU.js} +17 -17
- package/dist/{control-ui-assets-1CYoFkJQ.js → control-ui-assets-CYQNSPY0.js} +1 -1
- package/dist/{cron-cli-CxAxkYel.js → cron-cli-C0tDGxo5.js} +11 -11
- package/dist/{daemon-cli-Bntp6emS.js → daemon-cli-D7rQUQZq.js} +15 -15
- package/dist/{daemon-install-LNixC8Pb.js → daemon-install-C_ygPena.js} +4 -4
- package/dist/{daemon-install-helpers-CyjpUUrm.js → daemon-install-helpers-so86sfkZ.js} +11 -11
- package/dist/{deliver-HkPDAwY2.js → deliver-Bh8OdZ9H.js} +7 -7
- package/dist/deliver-runtime-DkDQPjmE.js +61 -0
- package/dist/deps-send-discord.runtime-DhhOEbEN.js +36 -0
- package/dist/deps-send-imessage.runtime-CeatZSyv.js +35 -0
- package/dist/deps-send-signal.runtime-xlqQXnR0.js +34 -0
- package/dist/deps-send-slack.runtime-m3yDRYug.js +32 -0
- package/dist/{deps-send-telegram.runtime-DUo2GPb7.js → deps-send-telegram.runtime-DhLKcoGf.js} +16 -16
- package/dist/deps-send-whatsapp.runtime-DZR3Tix2.js +119 -0
- package/dist/{devices-cli-DDu3iEJN.js → devices-cli-DKERiq8E.js} +8 -8
- package/dist/{diagnostic-3zN7XEY1.js → diagnostic-Dp-KkeSq.js} +1 -1
- package/dist/{diagnostics-Dys24A-s.js → diagnostics-Cuvdgf7E.js} +5 -5
- package/dist/{directory-cli-BgL_9wd5.js → directory-cli-DFN_WTag.js} +7 -7
- package/dist/{dns-cli-B0zPrZBi.js → dns-cli-DO8cd5zZ.js} +5 -5
- package/dist/{dock-BaM5oTqE.js → dock-DjC0vgOm.js} +4 -4
- package/dist/{docs-cli-4R8XltvA.js → docs-cli-GcB4tM-4.js} +4 -4
- package/dist/{doctor-completion-5TLzN3Se.js → doctor-completion-3P8WMHdK.js} +2 -2
- package/dist/{doctor-config-flow-DWHPUDqY.js → doctor-config-flow-WQpcISHd.js} +15 -15
- package/dist/{enable-BP58hyxE.js → enable-Di6fjV84.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{exec-approvals-allowlist-CGQJSJfD.js → exec-approvals-allowlist-CSsG6lrG.js} +1 -1
- package/dist/{exec-approvals-cli-DmOSbNpe.js → exec-approvals-cli-BuZEm_3t.js} +16 -16
- package/dist/{exec-safe-bin-runtime-policy-nkIQWrRj.js → exec-safe-bin-runtime-policy-ukabtnTn.js} +2 -2
- package/dist/{fetch-qkXypRi6.js → fetch-DmaNytop.js} +3 -3
- package/dist/{fetch-guard-CS_3jTMA.js → fetch-guard-0V5i-cZz.js} +1 -1
- package/dist/{fs-safe-CYrszQI6.js → fs-safe-DTO6fZ7N.js} +24 -24
- package/dist/{gateway-cli-Ct4tgMMm.js → gateway-cli-VJJtBtt2.js} +153 -153
- package/dist/{gateway-rpc-eEkc-oSq.js → gateway-rpc-BLIo1-nR.js} +1 -1
- package/dist/{health-CWuNlSLA.js → health-Ry4jLJFh.js} +11 -11
- package/dist/{hooks-cli-DdEAtyWm.js → hooks-cli-CpYtmeh1.js} +81 -81
- package/dist/{hooks-status-NIiTaX__.js → hooks-status-C_u7irQ4.js} +1 -1
- package/dist/{image-ktIANJRi.js → image-5Dop2pwF.js} +5 -5
- package/dist/{image-ops-WJSAG5_7.js → image-ops-Ba5soKsa.js} +10 -10
- package/dist/image-runtime-vjBJe2FQ.js +55 -0
- package/dist/{inspect-DWaajebj.js → inspect-Bnp4NJm0.js} +4 -4
- package/dist/{install-safe-path-BmAf3bF5.js → install-safe-path-DgGlNCpx.js} +25 -25
- package/dist/{installs-DMDJeMmr.js → installs-Bjh1q5wQ.js} +9 -9
- package/dist/{ipv4-DIovCoyM.js → ipv4-BsIL6DPy.js} +1 -1
- package/dist/{ir-xdB7409t.js → ir-SEi7gUP9.js} +8 -8
- package/dist/{issue-format-DaXc0Ssz.js → issue-format-DEHEwGJB.js} +1 -1
- package/dist/{json-files-CuJjdF_0.js → json-files-rR19q30D.js} +8 -8
- package/dist/{lifecycle-core-BinqEyma.js → lifecycle-core-t2Q34Tiu.js} +5 -5
- package/dist/{login-62iNga_2.js → login-DKh_sv9q.js} +3 -3
- package/dist/{login-qr-DMWPhIpQ.js → login-qr-9Wvtlmqz.js} +6 -6
- package/dist/{logs-cli-BN9aRZlE.js → logs-cli-BQTvPOds.js} +9 -9
- package/dist/{manager-DstlJwRR.js → manager-DKcbmdLj.js} +14 -14
- package/dist/{manager-runtime-DktggQQ7.js → manager-runtime-CdY_4s56.js} +9 -9
- package/dist/{manifest-registry-DjbHJw7g.js → manifest-registry-CzoQ4XAn.js} +1 -1
- package/dist/{memory-cli-B4tlY2Jz.js → memory-cli-CEZedlbs.js} +12 -12
- package/dist/{model-BLdajRK2.js → model-B2Sraf73.js} +2 -2
- package/dist/{model-catalog-DorZGOmy.js → model-catalog-B9Kd_iNy.js} +3 -3
- package/dist/{model-picker-Cn-yEB3e.js → model-picker-DyLoTKdE.js} +4 -4
- package/dist/{models-B_vCWO9r.js → models-CZbq8HGI.js} +17 -17
- package/dist/{models-cli-BBMBrNuk.js → models-cli-8aPPSLLl.js} +78 -78
- package/dist/{models-config-VlzOga1W.js → models-config-C7yYEUbY.js} +6 -6
- package/dist/{net-DFijUFfS.js → net-CfwQaj6f.js} +2 -2
- package/dist/{node-cli-BfSkX-wS.js → node-cli-BRIl5jr7.js} +33 -33
- package/dist/{node-command-policy-BMgJ81FO.js → node-command-policy-yJ_VpCHq.js} +1 -1
- package/dist/{node-service-BeDB4avc.js → node-service-9R10zILv.js} +1 -1
- package/dist/{nodes-cli-D0etQIcH.js → nodes-cli-CARJm2ko.js} +16 -16
- package/dist/{nodes-screen-DWVpmvMz.js → nodes-screen-DF7EBTLu.js} +7 -7
- package/dist/{npm-pack-install-BUyXXcPz.js → npm-pack-install-DdqL1Mh1.js} +18 -18
- package/dist/{npm-resolution-DSDaOY0G.js → npm-resolution-BaKXXkK7.js} +4 -4
- package/dist/{onboard-BEv6XhMg.js → onboard-C7cwcgUt.js} +6 -6
- package/dist/{onboard-channels-DAQmVNUf.js → onboard-channels-VhiLL846.js} +21 -21
- package/dist/{onboard-custom-BIY24QCh.js → onboard-custom-2gc6FKvI.js} +4 -4
- package/dist/{onboard-helpers-CPO08jBg.js → onboard-helpers-Mort99IL.js} +10 -10
- package/dist/{onboard-hooks-CK-gx645.js → onboard-hooks-DPho1fkd.js} +4 -4
- package/dist/{onboard-remote-SQzkLmdW.js → onboard-remote-BfScc2nM.js} +4 -4
- package/dist/{onboard-skills-B2UtgSDa.js → onboard-skills-CkZeXqxE.js} +4 -4
- package/dist/{onboarding-CWdu0f2f.js → onboarding-DyjqYKzZ.js} +14 -14
- package/dist/{onboarding.finalize-BD5_L4rw.js → onboarding.finalize-Rn8lrC90.js} +87 -87
- package/dist/{onboarding.gateway-config-CBJgsZvM.js → onboarding.gateway-config-D83188RW.js} +18 -18
- package/dist/{onboarding.secret-input-B_lhRVqi.js → onboarding.secret-input-CG_ZOH5i.js} +1 -1
- package/dist/{openai-model-default-OdIXYQox.js → openai-model-default-D1kdZKT2.js} +2 -2
- package/dist/{openclaw-root-BFfBQ6FD.js → openclaw-root-BU3lu8pM.js} +8 -8
- package/dist/{outbound-m-MM0HUr.js → outbound-BrhmfCk2.js} +3 -3
- package/dist/{outbound-attachment-BewsAqvJ.js → outbound-attachment-MWhTrPYa.js} +2 -2
- package/dist/{pairing-cli-CjrZxYPI.js → pairing-cli-BLxX0PoT.js} +8 -8
- package/dist/{pairing-labels-BU1EH5qm.js → pairing-labels-C1jblVNc.js} +1 -1
- package/dist/{pairing-store-CrEzWjmd.js → pairing-store-B_UHGVGM.js} +3 -3
- package/dist/{path-alias-guards-DbNvNQar.js → path-alias-guards-DhIwq92y.js} +3 -3
- package/dist/{path-safety-ClQO4BB6.js → path-safety-BjIM4N4t.js} +1 -1
- package/dist/{paths-BaZIBy3U.js → paths-CGf7Nrz-.js} +9 -9
- package/dist/{pi-embedded-helpers-CJZP0u_Y.js → pi-embedded-helpers-D9bQLeoK.js} +6 -6
- package/dist/{pi-model-discovery-IzndsQh-.js → pi-model-discovery-BmqY0Fxk.js} +1 -1
- package/dist/{pi-model-discovery-runtime-Bc-2_ZlP.js → pi-model-discovery-runtime-Ce9Tz7Qj.js} +5 -5
- package/dist/{pi-tools.before-tool-call.runtime-D4tLWmkM.js → pi-tools.before-tool-call.runtime-B3faxm6v.js} +5 -5
- package/dist/{pi-tools.policy-B72vqcZC.js → pi-tools.policy-B1sTh_x1.js} +5 -5
- package/dist/{plugin-auto-enable-BJfAN-kO.js → plugin-auto-enable-DFhRs_Ha.js} +3 -3
- package/dist/{plugin-registry-Coex6Pjp.js → plugin-registry-34ghMzQO.js} +3 -3
- package/dist/plugin-sdk/{accounts-C1nsQfAq.js → accounts-B9LsoWRN.js} +3 -3
- package/dist/plugin-sdk/{accounts-8MUKWeGv.js → accounts-UnMpt5N3.js} +2 -2
- package/dist/plugin-sdk/{accounts-CPoohfrp.js → accounts-raZ4ECkq.js} +2 -2
- package/dist/plugin-sdk/{active-listener-Degi0it3.js → active-listener-Eb16HTkk.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-CbsZTTUf.js → api-key-rotation-CVee9nRS.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-De3ToOLv.js → audio-preflight-B82VQczF.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-B99FfbzJ.js → audio-transcription-runner-qZ6rKQHs.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-DS34hPU6.js → audit-membership-runtime-Re50ULXH.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-DdXRr2be.js → channel-activity-DhjaEnHr.js} +3 -3
- package/dist/plugin-sdk/{channel-web-DyO5wH-M.js → channel-web-Cd9ofl4F.js} +18 -18
- package/dist/plugin-sdk/{chrome-D9S09VjY.js → chrome-DkRruWw9.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-7sKgV6b6.js → commands-registry-DCIdoQuk.js} +4 -4
- package/dist/plugin-sdk/{config-hSLjGMqo.js → config-Dq7-4cgI.js} +7 -7
- package/dist/plugin-sdk/{deliver-CmBonhhr.js → deliver-BFO3PdBy.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-BWZ4MjCx.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-DOOrRWmj.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-B5w4Zb7g.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-NUsgzgnc.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-30nkLxsY.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-D2BsaDBJ.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-DMtrDoHb.js +57 -0
- package/dist/plugin-sdk/{diagnostic-XZ76ECg1.js → diagnostic-DiXA_NOk.js} +2 -2
- package/dist/plugin-sdk/{errors-C-TFeu_U.js → errors-x0EvNKYN.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-BNChovQk.js → fetch-guard-DHh-3Pq7.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-B8jm0acc.js → fs-safe-Obb1u_C-.js} +3 -3
- package/dist/plugin-sdk/{image-BzikjBti.js → image-C2hwEt8m.js} +6 -6
- package/dist/plugin-sdk/{image-ops-DBR1x_FT.js → image-ops-C7Kt1ryv.js} +2 -2
- package/dist/plugin-sdk/image-runtime-Vtwamfai.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-CvW_AaoY.js → ir-DEyFvrC3.js} +7 -7
- package/dist/plugin-sdk/{local-roots-CW4yjHjO.js → local-roots-BS6aNMOU.js} +4 -4
- package/dist/plugin-sdk/{logger-z1vqlUc1.js → logger-COmHOvdm.js} +2 -2
- package/dist/plugin-sdk/{login-BzaOlpPR.js → login-C0QJfY7H.js} +4 -4
- package/dist/plugin-sdk/{login-qr-C0z_KRnC.js → login-qr-0qmwdPb0.js} +5 -5
- package/dist/plugin-sdk/{manager-DTf6k6ib.js → manager-8RgL4Sdy.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-B7jfPrQb.js +15 -0
- package/dist/plugin-sdk/{outbound-attachment-BYR_GvCl.js → outbound-attachment-D2rmCK5Q.js} +2 -2
- package/dist/plugin-sdk/{outbound-DmES81b6.js → outbound-r2idzBjf.js} +5 -5
- package/dist/plugin-sdk/{path-alias-guards-CMpHLrQn.js → path-alias-guards-DlbgzmZl.js} +1 -1
- package/dist/plugin-sdk/{paths-NcyWgkDa.js → paths-B2ytnsaB.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-6BaZvTwA.js → pi-embedded-helpers-xCyAR479.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-DYyEobhW.js → pi-model-discovery-C31bQ9NT.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-C5Suk1AS.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-ocH9ttx6.js → pi-tools.before-tool-call.runtime-BPpgalFg.js} +4 -4
- package/dist/plugin-sdk/{plugins-B_UiQZHB.js → plugins-CRPN1AUk.js} +4 -4
- package/dist/plugin-sdk/{proxy-fetch-DxlXp4Yi.js → proxy-fetch-BZAtM2fT.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-B-yFpAtd.js → pw-ai-kU3tw4ws.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-uz9PCVkw.js → qmd-manager-5TI5OD4_.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-D8bZEHLi.js → query-expansion-miz9J0WR.js} +4 -4
- package/dist/plugin-sdk/{redact-DIGZ7dEc.js → redact-DZTeCKgA.js} +1 -1
- package/dist/plugin-sdk/{reply-DHKovUx3.js → reply-2zncCurP.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-DAomg7DR.js → resolve-outbound-target-BZynpUy7.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-qFOkp49n.js → run-with-concurrency-BdEQVn3N.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BhSqT2c_.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DrZrtcgL.js +19 -0
- package/dist/plugin-sdk/{send-DHx11WPi.js → send-BraCxR1K.js} +13 -13
- package/dist/plugin-sdk/{send-D7LHac9D.js → send-DDxJMLW5.js} +7 -7
- package/dist/plugin-sdk/{send-iL8NdxQL.js → send-DGJD5miT.js} +8 -8
- package/dist/plugin-sdk/{send-AAxixxac.js → send-DXAc8sNQ.js} +6 -6
- package/dist/plugin-sdk/{send-BikqI3_Q.js → send-srOsTG5v.js} +5 -5
- package/dist/plugin-sdk/{session-B8SERluE.js → session-DPtviLOH.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-BBiGcASQ.js → skill-commands-9Q1xjzBv.js} +4 -4
- package/dist/plugin-sdk/{skills-uVCpkzHJ.js → skills-DibmdNLb.js} +6 -6
- package/dist/plugin-sdk/slack.js +2 -2
- package/dist/plugin-sdk/slash-commands.runtime-z1q_nPnV.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-CR4I_6w5.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-BzB0BO-7.js +16 -0
- package/dist/plugin-sdk/{ssrf-BvmhOmnD.js → ssrf-C6DhX4-H.js} +1 -1
- package/dist/plugin-sdk/{store-CDD0KdbU.js → store-ZIdTTfE4.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-UnNrLL2P.js +52 -0
- package/dist/plugin-sdk/{tables-DnzlEbCE.js → tables-BssKNJPW.js} +1 -1
- package/dist/plugin-sdk/{target-errors-BInUjyyh.js → target-errors-CXWbQSBp.js} +2 -2
- package/dist/plugin-sdk/{thinking-CLc4CsZU.js → thinking-DMfnE3HJ.js} +7 -7
- package/dist/plugin-sdk/{tokens-DuRErjk3.js → tokens-XT-8y62w.js} +1 -1
- package/dist/plugin-sdk/{tool-images-h8wHgEL8.js → tool-images-DbDPeOjK.js} +2 -2
- package/dist/plugin-sdk/web-D7S-5qkT.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-BBLa4ciE.js → whatsapp-actions-DKfas9MG.js} +17 -17
- package/dist/{plugins-B4AetCpQ.js → plugins-DO_6iMZV.js} +2 -2
- package/dist/{plugins-cli-BC1OrfRZ.js → plugins-cli-CrVhFNFQ.js} +83 -83
- package/dist/{ports-BUQm2J6L.js → ports-D7wHAklC.js} +1 -1
- package/dist/{ports-BpZiRmiG.js → ports-jknVhOJa.js} +2 -2
- package/dist/{program-DP3cy7oT.js → program-DJShjgis.js} +81 -81
- package/dist/{prompt-select-styled-doOKqwJk.js → prompt-select-styled-BEQND6Pn.js} +40 -40
- package/dist/{provider-auth-helpers-DcmZK4IP.js → provider-auth-helpers-CHEChUx_.js} +5 -5
- package/dist/{proxy-env-BEfRNPmW.js → proxy-env-C61VbSzS.js} +1 -1
- package/dist/{push-apns-Duv_LH_E.js → push-apns-BPEC7SVy.js} +5 -5
- package/dist/{pw-ai-Ds5f7Rvv.js → pw-ai-BWsikzYD.js} +18 -18
- package/dist/{qmd-manager-4HixPUdU.js → qmd-manager-DefwbEao.js} +20 -20
- package/dist/{qr-cli-D4MiTFeD.js → qr-cli-CoXD6uPd.js} +2 -2
- package/dist/{query-expansion-DfWHFCTw.js → query-expansion-BlsKiJrV.js} +12 -12
- package/dist/{redact-snapshot-BE1hcZlN.js → redact-snapshot-M27Gs1s9.js} +1 -1
- package/dist/{register.agent-DFd8-wLc.js → register.agent-t529UsnC.js} +94 -94
- package/dist/register.configure-Dn11C-E_.js +165 -0
- package/dist/{register.maintenance-CouoMEPC.js → register.maintenance-FmxcJgcW.js} +95 -95
- package/dist/{register.message-g4CdwiKD.js → register.message-BCoDh2cF.js} +74 -74
- package/dist/{register.onboard-DlKw4xXK.js → register.onboard-DZar0J8o.js} +18 -18
- package/dist/{register.setup-kxCLJtkA.js → register.setup-D14CyWuc.js} +21 -21
- package/dist/{register.status-health-sessions-BakEjuIX.js → register.status-health-sessions-B6crPNF9.js} +88 -88
- package/dist/{register.subclis-E3VXJcR8.js → register.subclis-BAATApi1.js} +31 -31
- package/dist/{rpc-C9k7pLBW.js → rpc-CA7yGckN.js} +1 -1
- package/dist/{run-main-k4NWKRqz.js → run-main-B19t_gLX.js} +92 -92
- package/dist/{runtime-CagDsJFx.js → runtime-D_htBj_7.js} +3 -3
- package/dist/{runtime-config-collectors-D0I8Qs4G.js → runtime-config-collectors-mLMSoY2n.js} +1 -1
- package/dist/{runtime-whatsapp-login.runtime-BvfhsLJm.js → runtime-whatsapp-login.runtime-BtBGjvx6.js} +7 -7
- package/dist/{runtime-whatsapp-outbound.runtime-QL3Riu-B.js → runtime-whatsapp-outbound.runtime-D1d2rg_z.js} +15 -15
- package/dist/{sandbox-CgTcwizP.js → sandbox-C-8JxFW5.js} +18 -18
- package/dist/{sandbox-cli-56gCyo4f.js → sandbox-cli-xIBSXLbp.js} +25 -25
- package/dist/{secrets-cli-BjzX5BIS.js → secrets-cli-DwpF8ldn.js} +11 -11
- package/dist/{security-cli-C8_7pezc.js → security-cli-BjfOTh6K.js} +42 -42
- package/dist/{send-BhJJuiPi.js → send-BzRMouwD.js} +4 -4
- package/dist/{send-BCdpg1w2.js → send-Cp2_MKSV.js} +5 -5
- package/dist/{send-DDvvsvcJ.js → send-D2Kyg_GY.js} +11 -11
- package/dist/{send-CkFo9xha.js → send-DrEo-BBc.js} +6 -6
- package/dist/{send-B1C9OCt2.js → send-NBLtGiEh.js} +8 -8
- package/dist/{server-EsF-rWXM.js → server-Cz0R7Scf.js} +20 -20
- package/dist/{server-context-DAejIBKi.js → server-context-vco06zxO.js} +12 -12
- package/dist/{server-lifecycle-C0IxrwRk.js → server-lifecycle-BnUgXA5X.js} +2 -2
- package/dist/{server-middleware-B8_ZaIoM.js → server-middleware-D5lrCTcL.js} +1 -1
- package/dist/{server-node-events-1jnvsPrM.js → server-node-events-BTTa3-DI.js} +74 -74
- package/dist/{service-T5lT7h-M.js → service-B6Pm7AZA.js} +15 -15
- package/dist/{session-XvQQBDSC.js → session-CDSphrCx.js} +1 -1
- package/dist/{session-utils-CDs6jjz-.js → session-utils-LerBXiBL.js} +6 -6
- package/dist/{sessions-JCqDw8Bf.js → sessions-C7q1EhRK.js} +4 -4
- package/dist/{sessions-D4pBAOV-.js → sessions-UwbRBc7C.js} +15 -15
- package/dist/{shared-BrmHcYtZ.js → shared-BVq1q5D-.js} +1 -1
- package/dist/{shared-DaWK788E.js → shared-sIizRbI9.js} +3 -3
- package/dist/{skill-commands-DDRb6be1.js → skill-commands-CeEZlRJj.js} +5 -5
- package/dist/{skill-scanner-BdA-XFky.js → skill-scanner-DGx7tLvP.js} +6 -6
- package/dist/{skills-Dde3dh7M.js → skills-B16i2mme.js} +3 -3
- package/dist/{skills-cli-hPtKeBYo.js → skills-cli-COBPySVc.js} +5 -5
- package/dist/{skills-install-BG5c8jOQ.js → skills-install-CEgXF7D3.js} +6 -6
- package/dist/{skills-status-Cl0jR0kA.js → skills-status-BGvLXtop.js} +1 -1
- package/dist/{slash-commands.runtime-WyW5W0r3.js → slash-commands.runtime-BLl455Ha.js} +11 -11
- package/dist/slash-dispatch.runtime-BtsEX-_Q.js +114 -0
- package/dist/{slash-skill-commands.runtime-DCZQC-hJ.js → slash-skill-commands.runtime-NP-EeAgb.js} +15 -15
- package/dist/{status-KrF4yDJE.js → status-4fmTPmZ8.js} +27 -27
- package/dist/{status.update-ovXdI8fy.js → status.update-BincwEhI.js} +2 -2
- package/dist/{store-OqcrqyHY.js → store-C4eyKOP_.js} +5 -5
- package/dist/{subagent-registry-CqQCPU35.js → subagent-registry-B29QoX6u.js} +149 -149
- package/dist/subagent-registry-runtime-ChT29jt0.js +114 -0
- package/dist/{system-cli-C6XjjyMr.js → system-cli-DeCdNdxg.js} +9 -9
- package/dist/{system-run-command-B1auaqvg.js → system-run-command-DVel5yZQ.js} +1 -1
- package/dist/{systemd-CvSjUuUT.js → systemd-BPu08aN2.js} +9 -9
- package/dist/{systemd-hints-DPrvbOr-.js → systemd-hints-PEGoMeNi.js} +6 -6
- package/dist/{systemd-linger-DWtUqeeE.js → systemd-linger-ckxguBpS.js} +1 -1
- package/dist/{tables-BSWzRw5b.js → tables-CM4RCywz.js} +1 -1
- package/dist/{tailnet-Bdvg29Ll.js → tailnet-D8ZmZFEq.js} +1 -1
- package/dist/{target-errors-D0aWoxbs.js → target-errors-Dq-K3j_S.js} +4 -4
- package/dist/{tool-images-J7V8AfTu.js → tool-images-C96-GuZE.js} +1 -1
- package/dist/{tui-DlcwmY1x.js → tui-Cby-FNU6.js} +6 -6
- package/dist/{tui-cli-zm_Sa4E5.js → tui-cli-BpgQL5Pu.js} +32 -32
- package/dist/{update-Gbhw9u0F.js → update-DNmbn7VE.js} +3 -3
- package/dist/{update-cli-Co-CAt0w.js → update-cli-kVzXT8I-.js} +104 -104
- package/dist/{update-runner-kKiJKth8.js → update-runner-C-d9Tjog.js} +16 -16
- package/dist/web-CrLnsppN.js +118 -0
- package/dist/{webhooks-cli-B-O0TVtX.js → webhooks-cli-BeC7vAYz.js} +6 -6
- package/dist/{whatsapp-actions-DaNP01Yk.js → whatsapp-actions-oSO9PcWD.js} +17 -17
- package/dist/{with-timeout-xp4bBUMy.js → with-timeout-YDfOtKvh.js} +3 -3
- package/dist/{workspace-BXI1yRZ5.js → workspace-CZkOfauh.js} +1 -1
- package/dist/{workspace-dirs-BY9k_sye.js → workspace-dirs-BSD3q0pa.js} +1 -1
- package/dist/{wsl-CvQfS6aU.js → wsl-CsGe5QCP.js} +2 -2
- package/package.json +9 -9
- package/skills/binance-address-info/SKILL.md +76 -0
- package/skills/binance-market-rank/SKILL.md +122 -0
- package/skills/binance-meme-rush/SKILL.md +111 -0
- package/skills/binance-spot/SKILL.md +175 -0
- package/skills/binance-token-audit/SKILL.md +82 -0
- package/skills/binance-token-info/SKILL.md +115 -0
- package/skills/binance-trading-signal/SKILL.md +84 -0
- package/dist/deliver-runtime-B5yIMxQR.js +0 -61
- package/dist/deps-send-discord.runtime-sLYAyx_-.js +0 -36
- package/dist/deps-send-imessage.runtime-2cWGJS5r.js +0 -35
- package/dist/deps-send-signal.runtime-kNxDQhbE.js +0 -34
- package/dist/deps-send-slack.runtime-D3QFxyKO.js +0 -32
- package/dist/deps-send-whatsapp.runtime-CHgCReeR.js +0 -119
- package/dist/image-runtime-C0VvqoAb.js +0 -55
- package/dist/plugin-sdk/deliver-runtime-DzqXq4YW.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-BWZWUTzd.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-BbcpP4Hy.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-DnuZ-6OX.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-C-K73-e_.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-B47VZANU.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CbVoeht-.js +0 -57
- package/dist/plugin-sdk/image-runtime-BfyyxB88.js +0 -25
- package/dist/plugin-sdk/manager-runtime-PlVcxBdF.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-CF3YRFcs.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-D6QQrKEg.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-C9sD41-7.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-UF19zDim.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-CSdhHD27.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-B9xCsuLJ.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-C4cuhBu-.js +0 -52
- package/dist/plugin-sdk/web-Btk9r9Ct.js +0 -56
- package/dist/register.configure-Cu6y9WMa.js +0 -165
- package/dist/slash-dispatch.runtime-e_hnJMYz.js +0 -114
- package/dist/subagent-registry-runtime-DZ2NcDAS.js +0 -114
- package/dist/web-Bx-fQR1C.js +0 -118
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
1
|
+
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-BGsA4zEf.js";
|
|
2
2
|
import { c as normalizeAgentId } from "./session-key-k6urs9r-.js";
|
|
3
|
-
import { H as loadAgentIdentityFromWorkspace, V as identityHasValues } from "./subagent-registry-
|
|
3
|
+
import { H as loadAgentIdentityFromWorkspace, V as identityHasValues } from "./subagent-registry-B29QoX6u.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/agents.config.ts
|
|
6
6
|
function findAgentEntryIndex(list, agentId) {
|
|
@@ -2,10 +2,10 @@ import { a as logVerbose, c as shouldLogVerbose } from "./globals-d3aR1MYC.js";
|
|
|
2
2
|
import "./paths-BMo6kTge.js";
|
|
3
3
|
import "./subsystem-Cfn2Pryx.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import "./auth-profiles-yB_p54Kf.js";
|
|
6
|
+
import "./agent-scope-BGsA4zEf.js";
|
|
7
7
|
import "./utils-cwpAMi-t.js";
|
|
8
|
-
import "./openclaw-root-
|
|
8
|
+
import "./openclaw-root-BU3lu8pM.js";
|
|
9
9
|
import "./logger-DB-PHqB2.js";
|
|
10
10
|
import "./exec-B45rafWZ.js";
|
|
11
11
|
import "./registry-BrR1Dq5T.js";
|
|
@@ -13,49 +13,49 @@ 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 "./dock-
|
|
16
|
+
import "./manifest-registry-CzoQ4XAn.js";
|
|
17
|
+
import "./dock-DjC0vgOm.js";
|
|
18
18
|
import "./frontmatter-D2o8_Jfu.js";
|
|
19
|
-
import "./skills-
|
|
20
|
-
import "./path-alias-guards-
|
|
19
|
+
import "./skills-B16i2mme.js";
|
|
20
|
+
import "./path-alias-guards-DhIwq92y.js";
|
|
21
21
|
import "./message-channel-CXgeX9no.js";
|
|
22
|
-
import "./sessions-
|
|
23
|
-
import "./plugins-
|
|
24
|
-
import "./accounts-
|
|
25
|
-
import "./accounts-
|
|
22
|
+
import "./sessions-UwbRBc7C.js";
|
|
23
|
+
import "./plugins-DO_6iMZV.js";
|
|
24
|
+
import "./accounts-Bod7973i.js";
|
|
25
|
+
import "./accounts-BSIXwC37.js";
|
|
26
26
|
import "./logging-CcxUDNcI.js";
|
|
27
|
-
import "./accounts-
|
|
27
|
+
import "./accounts-D3YOECeq.js";
|
|
28
28
|
import "./paths-DvFmz0MB.js";
|
|
29
29
|
import "./chat-envelope-D3RSz140.js";
|
|
30
|
-
import "./net-
|
|
31
|
-
import "./tailnet-
|
|
32
|
-
import "./image-ops-
|
|
33
|
-
import "./pi-embedded-helpers-
|
|
34
|
-
import "./sandbox-
|
|
30
|
+
import "./net-CfwQaj6f.js";
|
|
31
|
+
import "./tailnet-D8ZmZFEq.js";
|
|
32
|
+
import "./image-ops-Ba5soKsa.js";
|
|
33
|
+
import "./pi-embedded-helpers-D9bQLeoK.js";
|
|
34
|
+
import "./sandbox-C-8JxFW5.js";
|
|
35
35
|
import "./tool-catalog-C04U7H3F.js";
|
|
36
|
-
import "./chrome-
|
|
36
|
+
import "./chrome-NrlBIdcn.js";
|
|
37
37
|
import "./tailscale-D4zNU-0Q.js";
|
|
38
|
-
import "./auth-
|
|
39
|
-
import "./server-context-
|
|
40
|
-
import "./paths-
|
|
38
|
+
import "./auth-BQOIUcK5.js";
|
|
39
|
+
import "./server-context-vco06zxO.js";
|
|
40
|
+
import "./paths-CGf7Nrz-.js";
|
|
41
41
|
import "./redact-DwuqxSL3.js";
|
|
42
42
|
import "./errors-CIvF1JsC.js";
|
|
43
|
-
import "./fs-safe-
|
|
44
|
-
import "./proxy-env-
|
|
45
|
-
import "./store-
|
|
46
|
-
import "./ports-
|
|
43
|
+
import "./fs-safe-DTO6fZ7N.js";
|
|
44
|
+
import "./proxy-env-C61VbSzS.js";
|
|
45
|
+
import "./store-C4eyKOP_.js";
|
|
46
|
+
import "./ports-jknVhOJa.js";
|
|
47
47
|
import "./trash-Dq9t9uID.js";
|
|
48
|
-
import "./server-middleware-
|
|
49
|
-
import "./tool-images-
|
|
48
|
+
import "./server-middleware-D5lrCTcL.js";
|
|
49
|
+
import "./tool-images-C96-GuZE.js";
|
|
50
50
|
import "./thinking-CrcT589P.js";
|
|
51
|
-
import "./models-config-
|
|
52
|
-
import "./model-catalog-
|
|
53
|
-
import "./fetch-
|
|
54
|
-
import { _ as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
55
|
-
import "./fetch-guard-
|
|
56
|
-
import "./image-
|
|
51
|
+
import "./models-config-C7yYEUbY.js";
|
|
52
|
+
import "./model-catalog-B9Kd_iNy.js";
|
|
53
|
+
import "./fetch-DmaNytop.js";
|
|
54
|
+
import { _ as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-D6NSiBUN.js";
|
|
55
|
+
import "./fetch-guard-0V5i-cZz.js";
|
|
56
|
+
import "./image-5Dop2pwF.js";
|
|
57
57
|
import "./tool-display-DJA6wQza.js";
|
|
58
|
-
import "./api-key-rotation-
|
|
58
|
+
import "./api-key-rotation-BoN0bfDN.js";
|
|
59
59
|
import "./proxy-fetch-BSCpx7Yz.js";
|
|
60
60
|
|
|
61
61
|
//#region src/media-understanding/audio-preflight.ts
|
package/dist/{audio-transcription-runner-C1T1UDgG.js → audio-transcription-runner-D6NSiBUN.js}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { a as logVerbose, c as shouldLogVerbose, k as resolvePreferredOpenClawTmpDir } from "./globals-d3aR1MYC.js";
|
|
2
|
-
import { $ as mergeInboundPathRoots, Q as isInboundPathAllowed, Sr as normalizeProviderId, Vr as normalizeGoogleModelId, Z as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, et as resolveIMessageAttachmentRoots, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-
|
|
3
|
-
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-
|
|
2
|
+
import { $ as mergeInboundPathRoots, Q as isInboundPathAllowed, Sr as normalizeProviderId, Vr as normalizeGoogleModelId, Z as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, et as resolveIMessageAttachmentRoots, mi as resolveApiKeyForProvider, pi as requireApiKey } from "./auth-profiles-yB_p54Kf.js";
|
|
3
|
+
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue } from "./agent-scope-BGsA4zEf.js";
|
|
4
4
|
import { n as runExec } from "./exec-B45rafWZ.js";
|
|
5
|
-
import { j as normalizeChatType } from "./plugins-
|
|
6
|
-
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-
|
|
5
|
+
import { j as normalizeChatType } from "./plugins-DO_6iMZV.js";
|
|
6
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-Ba5soKsa.js";
|
|
7
7
|
import { i as formatUncaughtError, n as extractErrorCode, s as readErrorName, t as collectErrorGraphCandidates } from "./errors-CIvF1JsC.js";
|
|
8
|
-
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-
|
|
9
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-
|
|
8
|
+
import { n as loadModelCatalog, r as modelSupportsVision, t as findModelInCatalog } from "./model-catalog-B9Kd_iNy.js";
|
|
9
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-DmaNytop.js";
|
|
10
10
|
import { n as fetchWithTimeout } from "./fetch-timeout-Mawkd1Br.js";
|
|
11
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
12
|
-
import { t as describeImageWithModel } from "./image-
|
|
13
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
11
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-0V5i-cZz.js";
|
|
12
|
+
import { t as describeImageWithModel } from "./image-5Dop2pwF.js";
|
|
13
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-BoN0bfDN.js";
|
|
14
14
|
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-BSCpx7Yz.js";
|
|
15
15
|
import process$1 from "node:process";
|
|
16
16
|
import { fileURLToPath } from "node:url";
|
|
17
17
|
import os from "node:os";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { constants } from "node:fs";
|
|
20
|
-
import
|
|
20
|
+
import fsPromises from "node:fs/promises";
|
|
21
21
|
import crypto from "node:crypto";
|
|
22
22
|
|
|
23
23
|
//#region src/media-understanding/attachments.normalize.ts
|
|
@@ -426,7 +426,7 @@ var MediaAttachmentCache = class {
|
|
|
426
426
|
const size = await this.ensureLocalStat(entry);
|
|
427
427
|
if (entry.resolvedPath) {
|
|
428
428
|
if (size !== void 0 && size > params.maxBytes) throw new MediaUnderstandingSkipError("maxBytes", `Attachment ${params.attachmentIndex + 1} exceeds maxBytes ${params.maxBytes}`);
|
|
429
|
-
const buffer = await
|
|
429
|
+
const buffer = await fsPromises.readFile(entry.resolvedPath);
|
|
430
430
|
entry.buffer = buffer;
|
|
431
431
|
entry.bufferMime = entry.bufferMime ?? entry.attachment.mime ?? await detectMime({
|
|
432
432
|
buffer,
|
|
@@ -496,10 +496,10 @@ var MediaAttachmentCache = class {
|
|
|
496
496
|
prefix: "openclaw-media",
|
|
497
497
|
extension: path.extname(bufferResult.fileName || "") || ""
|
|
498
498
|
});
|
|
499
|
-
await
|
|
499
|
+
await fsPromises.writeFile(tmpPath, bufferResult.buffer);
|
|
500
500
|
entry.tempPath = tmpPath;
|
|
501
501
|
entry.tempCleanup = async () => {
|
|
502
|
-
await
|
|
502
|
+
await fsPromises.unlink(tmpPath).catch(() => {});
|
|
503
503
|
};
|
|
504
504
|
return {
|
|
505
505
|
path: tmpPath,
|
|
@@ -546,12 +546,12 @@ var MediaAttachmentCache = class {
|
|
|
546
546
|
if (entry.statSize !== void 0) return entry.statSize;
|
|
547
547
|
try {
|
|
548
548
|
const currentPath = entry.resolvedPath;
|
|
549
|
-
const stat = await
|
|
549
|
+
const stat = await fsPromises.stat(currentPath);
|
|
550
550
|
if (!stat.isFile()) {
|
|
551
551
|
entry.resolvedPath = void 0;
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
|
-
const canonicalPath = await
|
|
554
|
+
const canonicalPath = await fsPromises.realpath(currentPath).catch(() => currentPath);
|
|
555
555
|
if (!isInboundPathAllowed({
|
|
556
556
|
filePath: canonicalPath,
|
|
557
557
|
roots: await this.getCanonicalLocalPathRoots()
|
|
@@ -573,7 +573,7 @@ var MediaAttachmentCache = class {
|
|
|
573
573
|
if (this.canonicalLocalPathRoots) return await this.canonicalLocalPathRoots;
|
|
574
574
|
this.canonicalLocalPathRoots = (async () => mergeInboundPathRoots(this.localPathRoots, await Promise.all(this.localPathRoots.map(async (root) => {
|
|
575
575
|
if (root.includes("*")) return root;
|
|
576
|
-
return await
|
|
576
|
+
return await fsPromises.realpath(root).catch(() => root);
|
|
577
577
|
}))))();
|
|
578
578
|
return await this.canonicalLocalPathRoots;
|
|
579
579
|
}
|
|
@@ -646,7 +646,7 @@ const MIN_AUDIO_FILE_BYTES = 1024;
|
|
|
646
646
|
async function fileExists(filePath) {
|
|
647
647
|
if (!filePath) return false;
|
|
648
648
|
try {
|
|
649
|
-
await
|
|
649
|
+
await fsPromises.stat(filePath);
|
|
650
650
|
return true;
|
|
651
651
|
} catch {
|
|
652
652
|
return false;
|
|
@@ -1237,7 +1237,7 @@ async function resolveCliOutput(params) {
|
|
|
1237
1237
|
const commandId = commandBase(params.command);
|
|
1238
1238
|
const fileOutput = commandId === "whisper-cli" ? resolveWhisperCppOutputPath(params.args) : commandId === "whisper" ? resolveWhisperOutputPath(params.args, params.mediaPath) : commandId === "parakeet-mlx" ? resolveParakeetOutputPath(params.args, params.mediaPath) : null;
|
|
1239
1239
|
if (fileOutput && await fileExists(fileOutput)) try {
|
|
1240
|
-
const content = await
|
|
1240
|
+
const content = await fsPromises.readFile(fileOutput, "utf8");
|
|
1241
1241
|
if (content.trim()) return content.trim();
|
|
1242
1242
|
} catch {}
|
|
1243
1243
|
if (commandId === "gemini") {
|
|
@@ -1546,10 +1546,10 @@ async function runCliEntry(params) {
|
|
|
1546
1546
|
timeoutMs
|
|
1547
1547
|
});
|
|
1548
1548
|
if (capability === "audio") assertMinAudioSize({
|
|
1549
|
-
size: (await
|
|
1549
|
+
size: (await fsPromises.stat(pathResult.path)).size,
|
|
1550
1550
|
attachmentIndex: params.attachmentIndex
|
|
1551
1551
|
});
|
|
1552
|
-
const outputDir = await
|
|
1552
|
+
const outputDir = await fsPromises.mkdtemp(path.join(resolvePreferredOpenClawTmpDir(), "openclaw-media-cli-"));
|
|
1553
1553
|
const mediaPath = pathResult.path;
|
|
1554
1554
|
const outputBase = path.join(outputDir, path.parse(mediaPath).name);
|
|
1555
1555
|
const templCtx = {
|
|
@@ -1583,7 +1583,7 @@ async function runCliEntry(params) {
|
|
|
1583
1583
|
model: command
|
|
1584
1584
|
};
|
|
1585
1585
|
} finally {
|
|
1586
|
-
await
|
|
1586
|
+
await fsPromises.rm(outputDir, {
|
|
1587
1587
|
recursive: true,
|
|
1588
1588
|
force: true
|
|
1589
1589
|
}).catch(() => {});
|
|
@@ -1627,9 +1627,9 @@ function candidateBinaryNames(name) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
async function isExecutable(filePath) {
|
|
1629
1629
|
try {
|
|
1630
|
-
if (!(await
|
|
1630
|
+
if (!(await fsPromises.stat(filePath)).isFile()) return false;
|
|
1631
1631
|
if (process.platform === "win32") return true;
|
|
1632
|
-
await
|
|
1632
|
+
await fsPromises.access(filePath, constants.X_OK);
|
|
1633
1633
|
return true;
|
|
1634
1634
|
} catch {
|
|
1635
1635
|
return false;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { g as resolveStateDir, m as resolveOAuthDir, o as resolveConfigPath } from "./paths-BMo6kTge.js";
|
|
2
|
-
import { A as formatPermissionRemediation, M as safeStat, Qt as normalizeTrustedSafeBinDirs, R as createConfigIO, Rn as INCLUDE_KEY, dt as isDangerousNetworkMode, ft as normalizeNetworkMode, j as inspectPathPermissions, k as formatPermissionDetail, zn as MAX_INCLUDE_DEPTH } from "./auth-profiles-
|
|
2
|
+
import { A as formatPermissionRemediation, M as safeStat, Qt as normalizeTrustedSafeBinDirs, R as createConfigIO, Rn as INCLUDE_KEY, dt as isDangerousNetworkMode, ft as normalizeNetworkMode, j as inspectPathPermissions, k as formatPermissionDetail, zn as MAX_INCLUDE_DEPTH } from "./auth-profiles-yB_p54Kf.js";
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-CLEQe4bk.js";
|
|
4
|
-
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, d as resolveDefaultAgentId } from "./agent-scope-
|
|
4
|
+
import { M as resolveAgentModelFallbackValues, N as resolveAgentModelPrimaryValue, d as resolveDefaultAgentId } from "./agent-scope-BGsA4zEf.js";
|
|
5
5
|
import { c as normalizeAgentId } from "./session-key-k6urs9r-.js";
|
|
6
6
|
import { A as hasConfiguredSecretInput } from "./registry-BrR1Dq5T.js";
|
|
7
7
|
import { i as isPathInside, n as MANIFEST_KEY, r as extensionUsesSkippedScannerPath } from "./legacy-names-DswREgBV.js";
|
|
8
|
-
import { d as normalizePluginsConfig } from "./manifest-registry-
|
|
9
|
-
import { l as normalizeStringEntries } from "./dock-
|
|
10
|
-
import { i as loadWorkspaceSkillEntries } from "./skills-
|
|
8
|
+
import { d as normalizePluginsConfig } from "./manifest-registry-CzoQ4XAn.js";
|
|
9
|
+
import { l as normalizeStringEntries } from "./dock-DjC0vgOm.js";
|
|
10
|
+
import { i as loadWorkspaceSkillEntries } from "./skills-B16i2mme.js";
|
|
11
11
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-CXgeX9no.js";
|
|
12
|
-
import { n as listChannelPlugins } from "./plugins-
|
|
13
|
-
import { t as GatewayClient } from "./client-
|
|
14
|
-
import { l as READ_SCOPE, t as buildGatewayConnectionDetails } from "./call-
|
|
12
|
+
import { n as listChannelPlugins } from "./plugins-DO_6iMZV.js";
|
|
13
|
+
import { t as GatewayClient } from "./client-Kkj2aHgb.js";
|
|
14
|
+
import { l as READ_SCOPE, t as buildGatewayConnectionDetails } from "./call-CeJbHmC5.js";
|
|
15
15
|
import { t as resolveGatewayCredentialsFromConfig } from "./credentials-B1L0upy1.js";
|
|
16
|
-
import { C as resolveToolProfilePolicy, f as resolveSandboxConfigForAgent, k as SANDBOX_BROWSER_SECURITY_HASH_EPOCH, l as execDockerRaw, m as resolveSandboxToolPolicyForAgent, u as getBlockedBindReason } from "./sandbox-
|
|
17
|
-
import { a as resolveGatewayAuth } from "./auth-
|
|
18
|
-
import { a as resolveProfile, c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-
|
|
16
|
+
import { C as resolveToolProfilePolicy, f as resolveSandboxConfigForAgent, k as SANDBOX_BROWSER_SECURITY_HASH_EPOCH, l as execDockerRaw, m as resolveSandboxToolPolicyForAgent, u as getBlockedBindReason } from "./sandbox-C-8JxFW5.js";
|
|
17
|
+
import { a as resolveGatewayAuth } from "./auth-BQOIUcK5.js";
|
|
18
|
+
import { a as resolveProfile, c as resolveBrowserControlAuth, i as resolveBrowserConfig } from "./server-context-vco06zxO.js";
|
|
19
19
|
import { r as formatErrorMessage } from "./errors-CIvF1JsC.js";
|
|
20
|
-
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-
|
|
21
|
-
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled } from "./commands-
|
|
22
|
-
import { i as readChannelAllowFromStore } from "./pairing-store-
|
|
23
|
-
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-
|
|
24
|
-
import { l as resolveDmAllowState, n as isToolAllowedByPolicies, o as pickSandboxToolPolicy } from "./pi-tools.policy-
|
|
20
|
+
import { r as resolveMergedSafeBinProfileFixtures, t as listInterpreterLikeSafeBins } from "./exec-safe-bin-runtime-policy-ukabtnTn.js";
|
|
21
|
+
import { a as resolveNativeSkillsEnabled, i as resolveNativeCommandsEnabled } from "./commands-BYuioJO3.js";
|
|
22
|
+
import { i as readChannelAllowFromStore } from "./pairing-store-B_UHGVGM.js";
|
|
23
|
+
import { t as listAgentWorkspaceDirs } from "./workspace-dirs-BSD3q0pa.js";
|
|
24
|
+
import { l as resolveDmAllowState, n as isToolAllowedByPolicies, o as pickSandboxToolPolicy } from "./pi-tools.policy-B1sTh_x1.js";
|
|
25
25
|
import { n as isDangerousNameMatchingEnabled } from "./dangerous-name-matching-CXdnb6je.js";
|
|
26
26
|
import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-Dpi4An5r.js";
|
|
27
27
|
import { t as resolveChannelDefaultAccountId } from "./helpers-D7MilaX-.js";
|
|
28
|
-
import { t as scanDirectoryWithSummary } from "./skill-scanner-
|
|
29
|
-
import { r as resolveNodeCommandAllowlist, t as DEFAULT_DANGEROUS_NODE_COMMANDS } from "./node-command-policy-
|
|
28
|
+
import { t as scanDirectoryWithSummary } from "./skill-scanner-DGx7tLvP.js";
|
|
29
|
+
import { r as resolveNodeCommandAllowlist, t as DEFAULT_DANGEROUS_NODE_COMMANDS } from "./node-command-policy-yJ_VpCHq.js";
|
|
30
30
|
import { c as normalizeTelegramAllowFromEntry, s as isNumericTelegramUserId, t as isDiscordMutableAllowEntry } from "./mutable-allowlist-detectors-DHXBcz_e.js";
|
|
31
31
|
import { t as inferParamBFromIdOrName } from "./model-param-b-scvX_s5g.js";
|
|
32
32
|
import path from "node:path";
|
|
33
33
|
import JSON5 from "json5";
|
|
34
|
-
import * as fs
|
|
35
|
-
import
|
|
34
|
+
import * as fs from "node:fs/promises";
|
|
35
|
+
import fsPromises from "node:fs/promises";
|
|
36
36
|
import { randomUUID } from "node:crypto";
|
|
37
37
|
import { isIP } from "node:net";
|
|
38
38
|
|
|
@@ -1342,7 +1342,7 @@ async function collectIncludePathsRecursive(params) {
|
|
|
1342
1342
|
if (visited.has(resolved)) continue;
|
|
1343
1343
|
visited.add(resolved);
|
|
1344
1344
|
result.push(resolved);
|
|
1345
|
-
const rawText = await fs
|
|
1345
|
+
const rawText = await fs.readFile(resolved, "utf-8").catch(() => null);
|
|
1346
1346
|
if (!rawText) continue;
|
|
1347
1347
|
const nestedParsed = (() => {
|
|
1348
1348
|
try {
|
|
@@ -1377,7 +1377,7 @@ function expandTilde(p, env) {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
async function readPluginManifestExtensions(pluginPath) {
|
|
1379
1379
|
const manifestPath = path.join(pluginPath, "package.json");
|
|
1380
|
-
const raw = await
|
|
1380
|
+
const raw = await fsPromises.readFile(manifestPath, "utf-8").catch(() => "");
|
|
1381
1381
|
if (!raw.trim()) return [];
|
|
1382
1382
|
const extensions = JSON.parse(raw)?.[MANIFEST_KEY]?.extensions;
|
|
1383
1383
|
if (!Array.isArray(extensions)) return [];
|
|
@@ -1399,7 +1399,7 @@ async function listInstalledPluginDirs(params) {
|
|
|
1399
1399
|
};
|
|
1400
1400
|
return {
|
|
1401
1401
|
extensionsDir,
|
|
1402
|
-
pluginDirs: (await
|
|
1402
|
+
pluginDirs: (await fsPromises.readdir(extensionsDir, { withFileTypes: true }).catch((err) => {
|
|
1403
1403
|
params.onReadError?.(err);
|
|
1404
1404
|
return [];
|
|
1405
1405
|
})).filter((entry) => entry.isDirectory()).map((entry) => entry.name).filter(Boolean)
|
|
@@ -1462,7 +1462,7 @@ function isPinnedRegistrySpec(spec) {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
async function readInstalledPackageVersion(dir) {
|
|
1464
1464
|
try {
|
|
1465
|
-
const raw = await
|
|
1465
|
+
const raw = await fsPromises.readFile(path.join(dir, "package.json"), "utf-8");
|
|
1466
1466
|
const parsed = JSON.parse(raw);
|
|
1467
1467
|
return typeof parsed.version === "string" ? parsed.version : void 0;
|
|
1468
1468
|
} catch {
|
|
@@ -1498,10 +1498,10 @@ async function listWorkspaceSkillMarkdownFiles(workspaceDir) {
|
|
|
1498
1498
|
const visitedDirs = /* @__PURE__ */ new Set();
|
|
1499
1499
|
while (queue.length > 0 && skillFiles.length < MAX_WORKSPACE_SKILL_SCAN_FILES_PER_WORKSPACE) {
|
|
1500
1500
|
const dir = queue.shift();
|
|
1501
|
-
const dirRealPath = await
|
|
1501
|
+
const dirRealPath = await fsPromises.realpath(dir).catch(() => path.resolve(dir));
|
|
1502
1502
|
if (visitedDirs.has(dirRealPath)) continue;
|
|
1503
1503
|
visitedDirs.add(dirRealPath);
|
|
1504
|
-
const entries = await
|
|
1504
|
+
const entries = await fsPromises.readdir(dir, { withFileTypes: true }).catch(() => []);
|
|
1505
1505
|
for (const entry of entries) {
|
|
1506
1506
|
if (entry.name.startsWith(".") || entry.name === "node_modules") continue;
|
|
1507
1507
|
const fullPath = path.join(dir, entry.name);
|
|
@@ -1510,7 +1510,7 @@ async function listWorkspaceSkillMarkdownFiles(workspaceDir) {
|
|
|
1510
1510
|
continue;
|
|
1511
1511
|
}
|
|
1512
1512
|
if (entry.isSymbolicLink()) {
|
|
1513
|
-
const stat = await
|
|
1513
|
+
const stat = await fsPromises.stat(fullPath).catch(() => null);
|
|
1514
1514
|
if (!stat) continue;
|
|
1515
1515
|
if (stat.isDirectory()) {
|
|
1516
1516
|
queue.push(fullPath);
|
|
@@ -1800,13 +1800,13 @@ async function collectWorkspaceSkillSymlinkEscapeFindings(params) {
|
|
|
1800
1800
|
const seenSkillPaths = /* @__PURE__ */ new Set();
|
|
1801
1801
|
for (const workspaceDir of workspaceDirs) {
|
|
1802
1802
|
const workspacePath = path.resolve(workspaceDir);
|
|
1803
|
-
const workspaceRealPath = await
|
|
1803
|
+
const workspaceRealPath = await fsPromises.realpath(workspacePath).catch(() => workspacePath);
|
|
1804
1804
|
const skillFilePaths = await listWorkspaceSkillMarkdownFiles(workspacePath);
|
|
1805
1805
|
for (const skillFilePath of skillFilePaths) {
|
|
1806
1806
|
const canonicalSkillPath = path.resolve(skillFilePath);
|
|
1807
1807
|
if (seenSkillPaths.has(canonicalSkillPath)) continue;
|
|
1808
1808
|
seenSkillPaths.add(canonicalSkillPath);
|
|
1809
|
-
const skillRealPath = await
|
|
1809
|
+
const skillRealPath = await fsPromises.realpath(canonicalSkillPath).catch(() => null);
|
|
1810
1810
|
if (!skillRealPath) continue;
|
|
1811
1811
|
if (isPathInside(workspaceRealPath, skillRealPath)) continue;
|
|
1812
1812
|
escapedSkillFiles.push({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as safeEqualSecret } from "./secret-equal-Gla36CGi.js";
|
|
2
|
-
import { a as isTrustedProxyAddress, l as resolveClientIp, n as isLoopbackAddress, t as isLocalishHost } from "./net-
|
|
2
|
+
import { a as isTrustedProxyAddress, l as resolveClientIp, n as isLoopbackAddress, t as isLocalishHost } from "./net-CfwQaj6f.js";
|
|
3
3
|
import { n as resolveGatewayCredentialsFromValues } from "./credentials-B1L0upy1.js";
|
|
4
4
|
import { c as readTailscaleWhoisIdentity } from "./tailscale-D4zNU-0Q.js";
|
|
5
5
|
|
|
@@ -2,10 +2,10 @@ import "./globals-d3aR1MYC.js";
|
|
|
2
2
|
import "./paths-BMo6kTge.js";
|
|
3
3
|
import "./subsystem-Cfn2Pryx.js";
|
|
4
4
|
import "./boolean-DtWR5bt3.js";
|
|
5
|
-
import { Ai as normalizeOptionalSecretInput, Sr as normalizeProviderId, Zn as upsertAuthProfile, ct as resolveDefaultSecretProviderAlias, d as resolveApiKeyForProfile, er as ensureAuthProfileStore, gi as resolveEnvApiKey, ji as normalizeSecretInput, pt as parseDurationMs, r as resolveAuthProfileOrder } from "./auth-profiles-
|
|
6
|
-
import "./agent-scope-
|
|
5
|
+
import { Ai as normalizeOptionalSecretInput, Sr as normalizeProviderId, Zn as upsertAuthProfile, ct as resolveDefaultSecretProviderAlias, d as resolveApiKeyForProfile, er as ensureAuthProfileStore, gi as resolveEnvApiKey, ji as normalizeSecretInput, pt as parseDurationMs, r as resolveAuthProfileOrder } from "./auth-profiles-yB_p54Kf.js";
|
|
6
|
+
import "./agent-scope-BGsA4zEf.js";
|
|
7
7
|
import "./utils-cwpAMi-t.js";
|
|
8
|
-
import "./openclaw-root-
|
|
8
|
+
import "./openclaw-root-BU3lu8pM.js";
|
|
9
9
|
import "./logger-DB-PHqB2.js";
|
|
10
10
|
import "./exec-B45rafWZ.js";
|
|
11
11
|
import "./registry-BrR1Dq5T.js";
|
|
@@ -13,16 +13,16 @@ 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 "./models-config-
|
|
18
|
-
import "./model-catalog-
|
|
19
|
-
import { a as normalizeSecretInputModeInput } from "./auth-choice.apply-helpers-
|
|
20
|
-
import "./issue-format-
|
|
21
|
-
import "./shared-
|
|
22
|
-
import { A as applyTogetherConfig, B as applyLitellmConfig, E as applyQianfanConfig, H as applyCloudflareAiGatewayConfig, I as applyXiaomiConfig, M as applyVeniceConfig, O as applySyntheticConfig, P as applyXaiConfig, R as applyZaiConfig, St as setZaiApiKey, W as applyVercelAiGatewayConfig, _t as setVeniceApiKey, a as applyMinimaxApiConfig, at as setKilocodeApiKey, b as applyMoonshotConfig, bt as setXaiApiKey, ct as setMinimaxApiKey, d as applyAuthProfileConfig, dt as setOpenaiApiKey, et as setAnthropicApiKey, f as applyHuggingfaceConfig, ft as setOpencodeZenApiKey, g as applyKimiCodeConfig, gt as setTogetherApiKey, ht as setSyntheticApiKey, it as setHuggingfaceApiKey, l as applyMinimaxConfig, lt as setMistralApiKey, m as applyKilocodeConfig, mt as setQianfanApiKey, n as validateAnthropicSetupToken, nt as setCloudflareAiGatewayConfig, o as applyMinimaxApiConfigCn, ot as setKimiCodingApiKey, pt as setOpenrouterApiKey, r as applyOpencodeZenConfig, rt as setGeminiApiKey, st as setLitellmApiKey, t as buildTokenProfileId, tt as setByteplusApiKey, ut as setMoonshotApiKey, v as applyMistralConfig, vt as setVercelAiGatewayApiKey, w as applyOpenrouterConfig, x as applyMoonshotConfigCn, xt as setXiaomiApiKey, yt as setVolcengineApiKey } from "./auth-token-
|
|
23
|
-
import { i as detectZaiEndpoint, n as applyOpenAIConfig, o as applyGoogleGeminiModelDefault } from "./openai-model-default-
|
|
24
|
-
import { r as applyPrimaryModel } from "./model-picker-
|
|
25
|
-
import { i as parseNonInteractiveCustomApiFlags, n as applyCustomApiConfig, o as resolveCustomProviderId, t as CustomApiError } from "./onboard-custom-
|
|
16
|
+
import "./manifest-registry-CzoQ4XAn.js";
|
|
17
|
+
import "./models-config-C7yYEUbY.js";
|
|
18
|
+
import "./model-catalog-B9Kd_iNy.js";
|
|
19
|
+
import { a as normalizeSecretInputModeInput } from "./auth-choice.apply-helpers-BF8uDNAl.js";
|
|
20
|
+
import "./issue-format-DEHEwGJB.js";
|
|
21
|
+
import "./shared-sIizRbI9.js";
|
|
22
|
+
import { A as applyTogetherConfig, B as applyLitellmConfig, E as applyQianfanConfig, H as applyCloudflareAiGatewayConfig, I as applyXiaomiConfig, M as applyVeniceConfig, O as applySyntheticConfig, P as applyXaiConfig, R as applyZaiConfig, St as setZaiApiKey, W as applyVercelAiGatewayConfig, _t as setVeniceApiKey, a as applyMinimaxApiConfig, at as setKilocodeApiKey, b as applyMoonshotConfig, bt as setXaiApiKey, ct as setMinimaxApiKey, d as applyAuthProfileConfig, dt as setOpenaiApiKey, et as setAnthropicApiKey, f as applyHuggingfaceConfig, ft as setOpencodeZenApiKey, g as applyKimiCodeConfig, gt as setTogetherApiKey, ht as setSyntheticApiKey, it as setHuggingfaceApiKey, l as applyMinimaxConfig, lt as setMistralApiKey, m as applyKilocodeConfig, mt as setQianfanApiKey, n as validateAnthropicSetupToken, nt as setCloudflareAiGatewayConfig, o as applyMinimaxApiConfigCn, ot as setKimiCodingApiKey, pt as setOpenrouterApiKey, r as applyOpencodeZenConfig, rt as setGeminiApiKey, st as setLitellmApiKey, t as buildTokenProfileId, tt as setByteplusApiKey, ut as setMoonshotApiKey, v as applyMistralConfig, vt as setVercelAiGatewayApiKey, w as applyOpenrouterConfig, x as applyMoonshotConfigCn, xt as setXiaomiApiKey, yt as setVolcengineApiKey } from "./auth-token-C_wfhGFh.js";
|
|
23
|
+
import { i as detectZaiEndpoint, n as applyOpenAIConfig, o as applyGoogleGeminiModelDefault } from "./openai-model-default-D1kdZKT2.js";
|
|
24
|
+
import { r as applyPrimaryModel } from "./model-picker-DyLoTKdE.js";
|
|
25
|
+
import { i as parseNonInteractiveCustomApiFlags, n as applyCustomApiConfig, o as resolveCustomProviderId, t as CustomApiError } from "./onboard-custom-2gc6FKvI.js";
|
|
26
26
|
|
|
27
27
|
//#region src/commands/onboard-non-interactive/api-keys.ts
|
|
28
28
|
function parseEnvVarNameFromSourceLabel(source) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Di as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, Dr as resolveDefaultModelForAgent, Ei as isHuggingfacePolicyLocked, Jn as listProfilesForProvider, Ni as KILOCODE_DEFAULT_MODEL_REF, Ti as discoverHuggingfaceModels, Zn as upsertAuthProfile, _ as parseOAuthCallbackInput, er as ensureAuthProfileStore, fi as getCustomProviderApiKey, g as generateChutesPkce, gi as resolveEnvApiKey, h as exchangeChutesCodeForTokens, m as CHUTES_AUTHORIZE_ENDPOINT, ni as SYNTHETIC_DEFAULT_MODEL_REF, qr as VENICE_DEFAULT_MODEL_REF, r as resolveAuthProfileOrder, sr as resolveOpenClawAgentDir } from "./auth-profiles-
|
|
3
|
-
import { A as resolveDefaultAgentWorkspaceDir, P as toAgentModelListLike, a as resolveAgentDir, d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { r as isLoopbackHost } from "./net-
|
|
5
|
-
import { n as loadModelCatalog } from "./model-catalog-
|
|
6
|
-
import { f as openUrl } from "./onboard-helpers-
|
|
7
|
-
import { t as enablePluginInConfig } from "./enable-
|
|
8
|
-
import { a as normalizeSecretInputModeInput, c as resolveSecretInputModeForEnvSelection, d as normalizeApiKeyInput, f as validateApiKeyInput, i as ensureApiKeyFromOptionEnvOrPrompt, l as applyDefaultModelChoice, n as createAuthChoiceDefaultModelApplierForMutableState, o as normalizeTokenProviderInput, s as promptSecretRefForOnboarding, t as createAuthChoiceAgentModelNoter, u as ensureModelAllowlistEntry } from "./auth-choice.apply-helpers-
|
|
9
|
-
import { $ as ZAI_DEFAULT_MODEL_REF, A as applyTogetherConfig, B as applyLitellmConfig, C as applyMoonshotProviderConfigCn, Ct as writeOAuthCredentials, D as applyQianfanProviderConfig, Dt as QIANFAN_DEFAULT_MODEL_REF, E as applyQianfanConfig, Et as MOONSHOT_DEFAULT_MODEL_REF, F as applyXaiProviderConfig, G as applyVercelAiGatewayProviderConfig, H as applyCloudflareAiGatewayConfig, I as applyXiaomiConfig, J as LITELLM_DEFAULT_MODEL_REF, K as applyAgentDefaultModelPrimary, L as applyXiaomiProviderConfig, M as applyVeniceConfig, N as applyVeniceProviderConfig, O as applySyntheticConfig, Ot as XAI_DEFAULT_MODEL_REF, P as applyXaiConfig, Q as XIAOMI_DEFAULT_MODEL_REF, R as applyZaiConfig, S as applyMoonshotProviderConfig, St as setZaiApiKey, T as applyOpenrouterProviderConfig, Tt as MISTRAL_DEFAULT_MODEL_REF, U as applyCloudflareAiGatewayProviderConfig, V as applyLitellmProviderConfig, W as applyVercelAiGatewayConfig, X as TOGETHER_DEFAULT_MODEL_REF, Y as OPENROUTER_DEFAULT_MODEL_REF, Z as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, _ as applyKimiCodeProviderConfig, _t as setVeniceApiKey, a as applyMinimaxApiConfig, at as setKilocodeApiKey, b as applyMoonshotConfig, bt as setXaiApiKey, c as applyMinimaxApiProviderConfigCn, ct as setMinimaxApiKey, d as applyAuthProfileConfig, dt as setOpenaiApiKey, et as setAnthropicApiKey, ft as setOpencodeZenApiKey, g as applyKimiCodeConfig, gt as setTogetherApiKey, h as applyKilocodeProviderConfig, ht as setSyntheticApiKey, i as applyOpencodeZenProviderConfig, it as setHuggingfaceApiKey, j as applyTogetherProviderConfig, k as applySyntheticProviderConfig, l as applyMinimaxConfig, lt as setMistralApiKey, m as applyKilocodeConfig, mt as setQianfanApiKey, n as validateAnthropicSetupToken, nt as setCloudflareAiGatewayConfig, o as applyMinimaxApiConfigCn, ot as setKimiCodingApiKey, p as applyHuggingfaceProviderConfig, pt as setOpenrouterApiKey, q as HUGGINGFACE_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setGeminiApiKey, s as applyMinimaxApiProviderConfig, st as setLitellmApiKey, t as buildTokenProfileId, tt as setByteplusApiKey, u as applyMinimaxProviderConfig, ut as setMoonshotApiKey, v as applyMistralConfig, vt as setVercelAiGatewayApiKey, w as applyOpenrouterConfig, wt as KIMI_CODING_MODEL_REF, x as applyMoonshotConfigCn, xt as setXiaomiApiKey, y as applyMistralProviderConfig, yt as setVolcengineApiKey, z as applyZaiProviderConfig } from "./auth-token-
|
|
10
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
11
|
-
import { a as GOOGLE_GEMINI_DEFAULT_MODEL, i as detectZaiEndpoint, n as applyOpenAIConfig, o as applyGoogleGeminiModelDefault, r as applyOpenAIProviderConfig, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-
|
|
12
|
-
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-
|
|
2
|
+
import { Di as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, Dr as resolveDefaultModelForAgent, Ei as isHuggingfacePolicyLocked, Jn as listProfilesForProvider, Ni as KILOCODE_DEFAULT_MODEL_REF, Ti as discoverHuggingfaceModels, Zn as upsertAuthProfile, _ as parseOAuthCallbackInput, er as ensureAuthProfileStore, fi as getCustomProviderApiKey, g as generateChutesPkce, gi as resolveEnvApiKey, h as exchangeChutesCodeForTokens, m as CHUTES_AUTHORIZE_ENDPOINT, ni as SYNTHETIC_DEFAULT_MODEL_REF, qr as VENICE_DEFAULT_MODEL_REF, r as resolveAuthProfileOrder, sr as resolveOpenClawAgentDir } from "./auth-profiles-yB_p54Kf.js";
|
|
3
|
+
import { A as resolveDefaultAgentWorkspaceDir, P as toAgentModelListLike, a as resolveAgentDir, d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-BGsA4zEf.js";
|
|
4
|
+
import { r as isLoopbackHost } from "./net-CfwQaj6f.js";
|
|
5
|
+
import { n as loadModelCatalog } from "./model-catalog-B9Kd_iNy.js";
|
|
6
|
+
import { f as openUrl } from "./onboard-helpers-Mort99IL.js";
|
|
7
|
+
import { t as enablePluginInConfig } from "./enable-Di6fjV84.js";
|
|
8
|
+
import { a as normalizeSecretInputModeInput, c as resolveSecretInputModeForEnvSelection, d as normalizeApiKeyInput, f as validateApiKeyInput, i as ensureApiKeyFromOptionEnvOrPrompt, l as applyDefaultModelChoice, n as createAuthChoiceDefaultModelApplierForMutableState, o as normalizeTokenProviderInput, s as promptSecretRefForOnboarding, t as createAuthChoiceAgentModelNoter, u as ensureModelAllowlistEntry } from "./auth-choice.apply-helpers-BF8uDNAl.js";
|
|
9
|
+
import { $ as ZAI_DEFAULT_MODEL_REF, A as applyTogetherConfig, B as applyLitellmConfig, C as applyMoonshotProviderConfigCn, Ct as writeOAuthCredentials, D as applyQianfanProviderConfig, Dt as QIANFAN_DEFAULT_MODEL_REF, E as applyQianfanConfig, Et as MOONSHOT_DEFAULT_MODEL_REF, F as applyXaiProviderConfig, G as applyVercelAiGatewayProviderConfig, H as applyCloudflareAiGatewayConfig, I as applyXiaomiConfig, J as LITELLM_DEFAULT_MODEL_REF, K as applyAgentDefaultModelPrimary, L as applyXiaomiProviderConfig, M as applyVeniceConfig, N as applyVeniceProviderConfig, O as applySyntheticConfig, Ot as XAI_DEFAULT_MODEL_REF, P as applyXaiConfig, Q as XIAOMI_DEFAULT_MODEL_REF, R as applyZaiConfig, S as applyMoonshotProviderConfig, St as setZaiApiKey, T as applyOpenrouterProviderConfig, Tt as MISTRAL_DEFAULT_MODEL_REF, U as applyCloudflareAiGatewayProviderConfig, V as applyLitellmProviderConfig, W as applyVercelAiGatewayConfig, X as TOGETHER_DEFAULT_MODEL_REF, Y as OPENROUTER_DEFAULT_MODEL_REF, Z as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, _ as applyKimiCodeProviderConfig, _t as setVeniceApiKey, a as applyMinimaxApiConfig, at as setKilocodeApiKey, b as applyMoonshotConfig, bt as setXaiApiKey, c as applyMinimaxApiProviderConfigCn, ct as setMinimaxApiKey, d as applyAuthProfileConfig, dt as setOpenaiApiKey, et as setAnthropicApiKey, ft as setOpencodeZenApiKey, g as applyKimiCodeConfig, gt as setTogetherApiKey, h as applyKilocodeProviderConfig, ht as setSyntheticApiKey, i as applyOpencodeZenProviderConfig, it as setHuggingfaceApiKey, j as applyTogetherProviderConfig, k as applySyntheticProviderConfig, l as applyMinimaxConfig, lt as setMistralApiKey, m as applyKilocodeConfig, mt as setQianfanApiKey, n as validateAnthropicSetupToken, nt as setCloudflareAiGatewayConfig, o as applyMinimaxApiConfigCn, ot as setKimiCodingApiKey, p as applyHuggingfaceProviderConfig, pt as setOpenrouterApiKey, q as HUGGINGFACE_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setGeminiApiKey, s as applyMinimaxApiProviderConfig, st as setLitellmApiKey, t as buildTokenProfileId, tt as setByteplusApiKey, u as applyMinimaxProviderConfig, ut as setMoonshotApiKey, v as applyMistralConfig, vt as setVercelAiGatewayApiKey, w as applyOpenrouterConfig, wt as KIMI_CODING_MODEL_REF, x as applyMoonshotConfigCn, xt as setXiaomiApiKey, y as applyMistralProviderConfig, yt as setVolcengineApiKey, z as applyZaiProviderConfig } from "./auth-token-C_wfhGFh.js";
|
|
10
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-CHEChUx_.js";
|
|
11
|
+
import { a as GOOGLE_GEMINI_DEFAULT_MODEL, i as detectZaiEndpoint, n as applyOpenAIConfig, o as applyGoogleGeminiModelDefault, r as applyOpenAIProviderConfig, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-D1kdZKT2.js";
|
|
12
|
+
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-DyLoTKdE.js";
|
|
13
13
|
import { r as runOpenAIOAuthTlsPreflight, t as formatOpenAIOAuthTlsPreflightFix } from "./oauth-tls-preflight-BmQzvHr_.js";
|
|
14
14
|
import { loginOpenAICodex } from "@mariozechner/pi-ai";
|
|
15
15
|
import { randomBytes } from "node:crypto";
|
package/dist/{auth-choice.apply-helpers-DAj6Co-H.js → auth-choice.apply-helpers-BF8uDNAl.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Li as DEFAULT_PROVIDER, O as encodeJsonPointerToken, Tr as resolveAllowlistModelKey, ct as resolveDefaultSecretProviderAlias, gi as resolveEnvApiKey, ot as isValidFileSecretRefId, y as resolveSecretRefString } from "./auth-profiles-
|
|
1
|
+
import { Li as DEFAULT_PROVIDER, O as encodeJsonPointerToken, Tr as resolveAllowlistModelKey, ct as resolveDefaultSecretProviderAlias, gi as resolveEnvApiKey, ot as isValidFileSecretRefId, y as resolveSecretRefString } from "./auth-profiles-yB_p54Kf.js";
|
|
2
2
|
import { t as PROVIDER_ENV_VARS } from "./provider-env-vars-CDLIEZFR.js";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/auth-choice.api-key.ts
|
|
@@ -3,10 +3,10 @@ import { _ as expandHomePrefix, a as resolveCanonicalConfigPath, c as resolveDef
|
|
|
3
3
|
import { c as stripAnsi, t as createSubsystemLogger } from "./subsystem-Cfn2Pryx.js";
|
|
4
4
|
import { r as isTruthyEnvValue } from "./entry.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-CLEQe4bk.js";
|
|
6
|
-
import { N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, d as resolveDefaultAgentId, i as resolveAgentConfig, o as resolveAgentEffectiveModelPrimary, u as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
6
|
+
import { N as resolveAgentModelPrimaryValue, P as toAgentModelListLike, d as resolveDefaultAgentId, i as resolveAgentConfig, o as resolveAgentEffectiveModelPrimary, u as resolveAgentWorkspaceDir } from "./agent-scope-BGsA4zEf.js";
|
|
7
7
|
import { c as normalizeAgentId, t as DEFAULT_AGENT_ID, y as isBlockedObjectKey } from "./session-key-k6urs9r-.js";
|
|
8
8
|
import { E as isPlainObject$2, S as sleep, h as resolveConfigDir, u as isRecord$2, v as resolveUserPath } from "./utils-cwpAMi-t.js";
|
|
9
|
-
import { a as openBoundaryFileSync, r as canUseBoundaryFileOpen } from "./openclaw-root-
|
|
9
|
+
import { a as openBoundaryFileSync, r as canUseBoundaryFileOpen } from "./openclaw-root-BU3lu8pM.js";
|
|
10
10
|
import { n as runExec } from "./exec-B45rafWZ.js";
|
|
11
11
|
import { A as hasConfiguredSecretInput, D as DEFAULT_SECRET_PROVIDER_ALIAS, F as resolveSecretInputRef, M as normalizeResolvedSecretInputString, N as normalizeSecretInputString, O as assertSecretInputResolved, P as parseEnvTemplateSecretRef, j as isSecretRef, k as coerceSecretRef, l as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-BrR1Dq5T.js";
|
|
12
12
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-Byc_YVYE.js";
|
|
@@ -14,8 +14,8 @@ import { i as sanitizeHostExecEnv } from "./host-env-security-lcjXF83D.js";
|
|
|
14
14
|
import { t as VERSION } from "./version-DdJhsIqk.js";
|
|
15
15
|
import { t as applyConfigEnvVars } from "./env-vars-mSSOl7Rv.js";
|
|
16
16
|
import { i as isPathInside } from "./legacy-names-DswREgBV.js";
|
|
17
|
-
import { d as normalizePluginsConfig, f as resolveEffectiveEnableState, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision } from "./manifest-registry-
|
|
18
|
-
import { d as TOOLS_BY_SENDER_KEY_TYPES, f as parseToolsBySenderTypedKey } from "./dock-
|
|
17
|
+
import { d as normalizePluginsConfig, f as resolveEffectiveEnableState, n as loadPluginManifestRegistry, p as resolveMemorySlotDecision } from "./manifest-registry-CzoQ4XAn.js";
|
|
18
|
+
import { d as TOOLS_BY_SENDER_KEY_TYPES, f as parseToolsBySenderTypedKey } from "./dock-DjC0vgOm.js";
|
|
19
19
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-kzSMVKJz.js";
|
|
20
20
|
import { createRequire } from "node:module";
|
|
21
21
|
import { execFileSync, spawn } from "node:child_process";
|
|
@@ -24,7 +24,7 @@ import path from "node:path";
|
|
|
24
24
|
import fs from "node:fs";
|
|
25
25
|
import JSON5 from "json5";
|
|
26
26
|
import { isDeepStrictEqual } from "node:util";
|
|
27
|
-
import
|
|
27
|
+
import fsPromises from "node:fs/promises";
|
|
28
28
|
import { BedrockClient, ListFoundationModelsCommand } from "@aws-sdk/client-bedrock";
|
|
29
29
|
import { createAssistantMessageEventStream, getEnvApiKey, getOAuthApiKey, getOAuthProviders } from "@mariozechner/pi-ai";
|
|
30
30
|
import crypto, { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -3559,7 +3559,7 @@ function computeDelayMs(retries, attempt) {
|
|
|
3559
3559
|
}
|
|
3560
3560
|
async function readLockPayload(lockPath) {
|
|
3561
3561
|
try {
|
|
3562
|
-
const raw = await
|
|
3562
|
+
const raw = await fsPromises.readFile(lockPath, "utf8");
|
|
3563
3563
|
const parsed = JSON.parse(raw);
|
|
3564
3564
|
if (typeof parsed.pid !== "number" || typeof parsed.createdAt !== "string") return null;
|
|
3565
3565
|
return {
|
|
@@ -3573,9 +3573,9 @@ async function readLockPayload(lockPath) {
|
|
|
3573
3573
|
async function resolveNormalizedFilePath(filePath) {
|
|
3574
3574
|
const resolved = path.resolve(filePath);
|
|
3575
3575
|
const dir = path.dirname(resolved);
|
|
3576
|
-
await
|
|
3576
|
+
await fsPromises.mkdir(dir, { recursive: true });
|
|
3577
3577
|
try {
|
|
3578
|
-
const realDir = await
|
|
3578
|
+
const realDir = await fsPromises.realpath(dir);
|
|
3579
3579
|
return path.join(realDir, path.basename(resolved));
|
|
3580
3580
|
} catch {
|
|
3581
3581
|
return resolved;
|
|
@@ -3589,7 +3589,7 @@ async function isStaleLock(lockPath, staleMs) {
|
|
|
3589
3589
|
if (!Number.isFinite(createdAt) || Date.now() - createdAt > staleMs) return true;
|
|
3590
3590
|
}
|
|
3591
3591
|
try {
|
|
3592
|
-
const stat = await
|
|
3592
|
+
const stat = await fsPromises.stat(lockPath);
|
|
3593
3593
|
return Date.now() - stat.mtimeMs > staleMs;
|
|
3594
3594
|
} catch {
|
|
3595
3595
|
return true;
|
|
@@ -3602,7 +3602,7 @@ async function releaseHeldLock(normalizedFile) {
|
|
|
3602
3602
|
if (current.count > 0) return;
|
|
3603
3603
|
HELD_LOCKS.delete(normalizedFile);
|
|
3604
3604
|
await current.handle.close().catch(() => void 0);
|
|
3605
|
-
await
|
|
3605
|
+
await fsPromises.rm(current.lockPath, { force: true }).catch(() => void 0);
|
|
3606
3606
|
}
|
|
3607
3607
|
async function acquireFileLock(filePath, options) {
|
|
3608
3608
|
const normalizedFile = await resolveNormalizedFilePath(filePath);
|
|
@@ -3617,7 +3617,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
3617
3617
|
}
|
|
3618
3618
|
const attempts = Math.max(1, options.retries.retries + 1);
|
|
3619
3619
|
for (let attempt = 0; attempt < attempts; attempt += 1) try {
|
|
3620
|
-
const handle = await
|
|
3620
|
+
const handle = await fsPromises.open(lockPath, "wx");
|
|
3621
3621
|
await handle.writeFile(JSON.stringify({
|
|
3622
3622
|
pid: process.pid,
|
|
3623
3623
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -3634,7 +3634,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
3634
3634
|
} catch (err) {
|
|
3635
3635
|
if (err.code !== "EEXIST") throw err;
|
|
3636
3636
|
if (await isStaleLock(lockPath, options.stale)) {
|
|
3637
|
-
await
|
|
3637
|
+
await fsPromises.rm(lockPath, { force: true }).catch(() => void 0);
|
|
3638
3638
|
continue;
|
|
3639
3639
|
}
|
|
3640
3640
|
if (attempt >= attempts - 1) break;
|
|
@@ -14786,7 +14786,7 @@ function createIcaclsResetCommand(targetPath, opts) {
|
|
|
14786
14786
|
//#region src/security/audit-fs.ts
|
|
14787
14787
|
async function safeStat(targetPath) {
|
|
14788
14788
|
try {
|
|
14789
|
-
const lst = await
|
|
14789
|
+
const lst = await fsPromises.lstat(targetPath);
|
|
14790
14790
|
return {
|
|
14791
14791
|
ok: true,
|
|
14792
14792
|
isSymlink: lst.isSymbolicLink(),
|
|
@@ -14825,7 +14825,7 @@ async function inspectPathPermissions(targetPath, opts) {
|
|
|
14825
14825
|
let effectiveMode = st.mode;
|
|
14826
14826
|
let effectiveIsDir = st.isDir;
|
|
14827
14827
|
if (st.isSymlink) try {
|
|
14828
|
-
const target = await
|
|
14828
|
+
const target = await fsPromises.stat(targetPath);
|
|
14829
14829
|
effectiveMode = typeof target.mode === "number" ? target.mode : st.mode;
|
|
14830
14830
|
effectiveIsDir = target.isDirectory();
|
|
14831
14831
|
} catch {}
|
|
@@ -15079,7 +15079,7 @@ async function assertSecurePath(params) {
|
|
|
15079
15079
|
if (stat.isSymlink) {
|
|
15080
15080
|
if (!params.allowSymlinkPath) throw new Error(`${params.label} must not be a symlink: ${effectivePath}`);
|
|
15081
15081
|
try {
|
|
15082
|
-
effectivePath = await
|
|
15082
|
+
effectivePath = await fsPromises.realpath(effectivePath);
|
|
15083
15083
|
} catch {
|
|
15084
15084
|
throw new Error(`${params.label} symlink target is not readable: ${params.targetPath}`);
|
|
15085
15085
|
}
|
|
@@ -15127,7 +15127,7 @@ async function readFileProviderPayload(params) {
|
|
|
15127
15127
|
}, timeoutMs);
|
|
15128
15128
|
});
|
|
15129
15129
|
try {
|
|
15130
|
-
const payload = await Promise.race([
|
|
15130
|
+
const payload = await Promise.race([fsPromises.readFile(secureFilePath, { signal: abortController.signal }), timeoutPromise]);
|
|
15131
15131
|
if (payload.byteLength > maxBytes) throw new Error(`File provider "${params.providerName}" exceeded maxBytes (${maxBytes}).`);
|
|
15132
15132
|
const text = payload.toString("utf8");
|
|
15133
15133
|
if (params.providerConfig.mode === "singleValue") return text.replace(/\r?\n$/, "");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as resolveStateDir } from "./paths-BMo6kTge.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-Cfn2Pryx.js";
|
|
3
|
-
import { $r as TOGETHER_MODEL_CATALOG, Br as buildXiaomiProvider, Ci as HUGGINGFACE_MODEL_CATALOG, Di as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, Fr as QIANFAN_DEFAULT_MODEL_ID, Ir as XIAOMI_DEFAULT_MODEL_ID, Jr as VENICE_MODEL_CATALOG, Kr as VENICE_BASE_URL, Lr as buildKilocodeProvider, Mi as KILOCODE_BASE_URL, Ni as KILOCODE_DEFAULT_MODEL_REF, Oi as buildCloudflareAiGatewayModelDefinition, Pr as QIANFAN_BASE_URL, Qr as TOGETHER_BASE_URL, Rr as buildKimiCodingProvider, Si as HUGGINGFACE_BASE_URL, Sr as normalizeProviderId, Yr as buildVeniceModelDefinition, Zn as upsertAuthProfile, ei as buildTogetherModelDefinition, ii as buildSyntheticModelDefinition, ji as normalizeSecretInput, ki as resolveCloudflareAiGatewayBaseUrl, ni as SYNTHETIC_DEFAULT_MODEL_REF, qr as VENICE_DEFAULT_MODEL_REF, ri as SYNTHETIC_MODEL_CATALOG, sr as resolveOpenClawAgentDir, ti as SYNTHETIC_BASE_URL, wi as buildHuggingfaceModelDefinition, zr as buildQianfanProvider } from "./auth-profiles-
|
|
3
|
+
import { $r as TOGETHER_MODEL_CATALOG, Br as buildXiaomiProvider, Ci as HUGGINGFACE_MODEL_CATALOG, Di as CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, Fr as QIANFAN_DEFAULT_MODEL_ID, Ir as XIAOMI_DEFAULT_MODEL_ID, Jr as VENICE_MODEL_CATALOG, Kr as VENICE_BASE_URL, Lr as buildKilocodeProvider, Mi as KILOCODE_BASE_URL, Ni as KILOCODE_DEFAULT_MODEL_REF, Oi as buildCloudflareAiGatewayModelDefinition, Pr as QIANFAN_BASE_URL, Qr as TOGETHER_BASE_URL, Rr as buildKimiCodingProvider, Si as HUGGINGFACE_BASE_URL, Sr as normalizeProviderId, Yr as buildVeniceModelDefinition, Zn as upsertAuthProfile, ei as buildTogetherModelDefinition, ii as buildSyntheticModelDefinition, ji as normalizeSecretInput, ki as resolveCloudflareAiGatewayBaseUrl, ni as SYNTHETIC_DEFAULT_MODEL_REF, qr as VENICE_DEFAULT_MODEL_REF, ri as SYNTHETIC_MODEL_CATALOG, sr as resolveOpenClawAgentDir, ti as SYNTHETIC_BASE_URL, wi as buildHuggingfaceModelDefinition, zr as buildQianfanProvider } from "./auth-profiles-yB_p54Kf.js";
|
|
4
4
|
import { D as DEFAULT_SECRET_PROVIDER_ALIAS, k as coerceSecretRef } from "./registry-BrR1Dq5T.js";
|
|
5
5
|
import { t as PROVIDER_ENV_VARS } from "./provider-env-vars-CDLIEZFR.js";
|
|
6
6
|
import path from "node:path";
|