@qqbrowser/openclaw-qbot 0.0.148 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-lookup-CW-_CL7y.js +0 -1
- package/dist/acp-cli-BHsTg1ac.js +0 -1
- package/dist/acp-cli-D_WC9SZX.js +0 -1
- package/dist/active-listener-1MJXk3Iq.js +0 -1
- package/dist/active-listener-D8VOdVx3.js +0 -1
- package/dist/active-listener-D8uP0H5W.js +0 -1
- package/dist/active-listener-DeKRt_UV.js +0 -1
- package/dist/agent-scope-DAWJwFfl.js +0 -1
- package/dist/agent-scope-DXZc3eNT.js +0 -1
- package/dist/agents-Cd1yL8fG.js +0 -1
- package/dist/agents.config-CaRMmWS8.js +0 -1
- package/dist/agents.config-DSCcdYtv.js +0 -1
- package/dist/allow-from-B6dI7oz8.js +0 -1
- package/dist/allow-from-DEeVIPKS.js +0 -1
- package/dist/api-BeG0ObSq.js +0 -1
- package/dist/api-Dx8x1KTs.js +0 -1
- package/dist/api-key-rotation-BLt5E2Cw.js +0 -1
- package/dist/api-key-rotation-BpEL4aeX.js +0 -1
- package/dist/api-key-rotation-DayEfYpa.js +0 -1
- package/dist/api-key-rotation-Rz2ESQSA.js +0 -1
- package/dist/arg-split-BOqSMBuf.js +0 -1
- package/dist/arg-split-DE5RqDHq.js +0 -1
- package/dist/audio-preflight-8WB1LJBS.js +0 -1
- package/dist/audio-preflight-BcPHPfr_.js +0 -1
- package/dist/audio-preflight-DTO631Yb.js +0 -1
- package/dist/audio-preflight-O-0lDeKh.js +0 -1
- package/dist/audio-transcription-runner-9H9eUZ1D.js +0 -1
- package/dist/audio-transcription-runner-BIKj1CBU.js +0 -1
- package/dist/audio-transcription-runner-BwjMhAUa.js +0 -1
- package/dist/audio-transcription-runner-CQ7rq0d_.js +0 -1
- package/dist/audit-9I53EvMQ.js +0 -1
- package/dist/audit-BGsUfJzD.js +0 -1
- package/dist/audit-membership-runtime-BpRsMj5-.js +0 -1
- package/dist/audit-membership-runtime-BsfLZNBj.js +0 -1
- package/dist/audit-membership-runtime-DRHirRmx.js +0 -1
- package/dist/audit-membership-runtime-g0dEWJTp.js +0 -1
- package/dist/audit-membership-runtime-kdyToskD.js +0 -1
- package/dist/auth-choice-BmI4sIGs.js +0 -1
- package/dist/auth-choice-DDsPJF6F.js +0 -1
- package/dist/auth-choice-Dy0jIOLV.js +0 -1
- package/dist/auth-choice-MqcWuVyu.js +0 -1
- package/dist/auth-choice-options-B3WQyS7I.js +0 -1
- package/dist/auth-choice-options-Dw14noox.js +0 -1
- package/dist/auth-choice-prompt-uegl56cf.js +0 -1
- package/dist/auth-choice-prompt-xYj13czb.js +0 -1
- package/dist/auth-choice.apply-helpers-D911bYcw.js +0 -1
- package/dist/auth-choice.apply-helpers-pJ4CPZCk.js +0 -1
- package/dist/auth-profiles-C8rZRS0X.js +0 -1
- package/dist/auth-token-DZLZ3d_I.js +0 -1
- package/dist/auth-token-Dp6bxT29.js +0 -1
- package/dist/banner-CAtilyXr.js +0 -1
- package/dist/bonjour-discovery-ClTijpMw.js +0 -1
- package/dist/bonjour-discovery-DMB6yrOF.js +0 -1
- package/dist/boolean-Ch3DfXPy.js +0 -1
- package/dist/boolean-D15s2V33.js +0 -1
- package/dist/boolean-DypnRoRK.js +0 -1
- package/dist/brew-COcDl8CB.js +0 -1
- package/dist/brew-DDPm_HfE.js +0 -1
- package/dist/browser-cli-Bf-Pzjxs.js +0 -1
- package/dist/browser-cli-DkrBCfYg.js +0 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +0 -1
- package/dist/bundled/bootstrap-extra-files/handler.js +0 -1
- package/dist/bundled/command-logger/handler.js +0 -1
- package/dist/bundled/session-memory/handler.js +0 -1
- package/dist/call-BWx7hNtl.js +0 -1
- package/dist/call-JB-cGR9n.js +0 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/channel-account-context-BMPAMZEv.js +0 -1
- package/dist/channel-account-context-DAcarnqW.js +0 -1
- package/dist/channel-activity-B04WbrrK.js +0 -1
- package/dist/channel-activity-BhiLsKvM.js +0 -1
- package/dist/channel-activity-DmgWmSAG.js +0 -1
- package/dist/channel-activity-Dw6F-ehJ.js +0 -1
- package/dist/channel-activity-htoVXTET.js +0 -1
- package/dist/channel-options-CCqtIYCc.js +0 -1
- package/dist/channel-options-CKoyPq8p.js +0 -1
- package/dist/channel-selection-BPxE8JR7.js +0 -1
- package/dist/channel-selection-si1OzWyQ.js +0 -1
- package/dist/channel-web-CCSMlUux.js +0 -1
- package/dist/channel-web-CwUfYqjg.js +0 -1
- package/dist/channels/plugins/actions/discord.js +0 -1
- package/dist/channels/plugins/actions/signal.js +0 -1
- package/dist/channels/plugins/actions/telegram.js +0 -1
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +0 -1
- package/dist/channels-cli-BfgVv5jH.js +0 -1
- package/dist/channels-cli-BvGXgERj.js +0 -1
- package/dist/channels-status-issues-8eFrGKyf.js +0 -1
- package/dist/channels-status-issues-PRgOT90w.js +0 -1
- package/dist/chat-envelope-Bznn2SoS.js +0 -1
- package/dist/chat-envelope-HVpKusFc.js +0 -1
- package/dist/clack-prompter-DBPdGdqp.js +0 -1
- package/dist/clack-prompter-Dq0aY6iM.js +0 -1
- package/dist/clawbot-cli-B0iTJ-pm.js +0 -1
- package/dist/clawbot-cli-BcEtQbFY.js +0 -1
- package/dist/cleanup-utils-BWm70DoD.js +0 -1
- package/dist/cleanup-utils-D-RhEX6F.js +0 -1
- package/dist/cli-Bt--1dhL.js +0 -1
- package/dist/cli-CBg8KhmQ.js +0 -1
- package/dist/cli-utils-BY7dLMFy.js +0 -1
- package/dist/cli-utils-BleB1eys.js +0 -1
- package/dist/clipboard-Bk8cviBt.js +0 -1
- package/dist/clipboard-CKT_VIkG.js +0 -1
- package/dist/cmd-argv-BBT5l8AV.js +0 -1
- package/dist/cmd-argv-Bh-KpaZ0.js +0 -1
- package/dist/command-format-BbDT1tlm.js +0 -1
- package/dist/command-format-CLxIPuLR.js +0 -1
- package/dist/command-options-BpOUDl2S.js +0 -1
- package/dist/command-options-Bq5nQxz6.js +0 -1
- package/dist/command-poll-backoff-BZLHYB2k.js +0 -1
- package/dist/command-poll-backoff-Cww_r-24.js +0 -1
- package/dist/command-poll-backoff-Df6cOQrX.js +0 -1
- package/dist/command-poll-backoff-endAPdwn.js +0 -1
- package/dist/{command-registry-BxNiXs5w.js → command-registry-D_jtBegA.js} +1 -2
- package/dist/command-secret-targets-BEjtBf5Z.js +0 -1
- package/dist/command-secret-targets-CfXtLkLF.js +0 -1
- package/dist/commands-CGpM84iR.js +0 -1
- package/dist/commands-Dy7duWlt.js +0 -1
- package/dist/commands-registry-C5Hg7gyk.js +0 -1
- package/dist/commands-registry-DT6FDUev.js +0 -1
- package/dist/commands-registry-DlvNUkXz.js +0 -1
- package/dist/commands-registry-gvMK7Pw9.js +0 -1
- package/dist/compact-CYbPi7_-.js +0 -1
- package/dist/{completion-cli-Yg5BF97F.js → completion-cli-BVbT_aR2.js} +1 -2
- package/dist/{completion-cli-BRE0F8Tu.js → completion-cli-Bw_hBrlA.js} +1 -2
- package/dist/config-BqW5S1xL.js +0 -1
- package/dist/config-Cji73to5.js +0 -1
- package/dist/config-cli-CwW76_j_.js +0 -1
- package/dist/config-cli-F-lkPjjz.js +0 -1
- package/dist/config-guard-0_afzaJz.js +0 -1
- package/dist/config-guard-CqUJ8uaF.js +0 -1
- package/dist/config-validation-6hk_fxD8.js +0 -1
- package/dist/config-validation-BAmmD9p4.js +0 -1
- package/dist/configure--c4tTVPz.js +0 -1
- package/dist/configure-DFlnM_zh.js +0 -1
- package/dist/connection-auth-CjaeEu5D.js +0 -1
- package/dist/connection-auth-smZlFWxD.js +0 -1
- package/dist/context-window-guard-7crlatf9.js +0 -1
- package/dist/context-window-guard-CPChk363.js +0 -1
- package/dist/control-ui-assets-BIa0GGDg.js +0 -1
- package/dist/control-ui-assets-CTHGGgaX.js +0 -1
- package/dist/cron-cli-BKS4L-uW.js +0 -1
- package/dist/cron-cli-L9wLLocl.js +0 -1
- package/dist/daemon-cli-BdDHNRqp.js +0 -1
- package/dist/daemon-cli-CEHkT-54.js +0 -1
- package/dist/daemon-cli.js +0 -1
- package/dist/daemon-install-CMNtsW5o.js +0 -1
- package/dist/daemon-install-D2gMiA0p.js +0 -1
- package/dist/daemon-install-plan.shared-BkwZgIAY.js +0 -1
- package/dist/daemon-install-plan.shared-Dx3DBXCG.js +0 -1
- package/dist/daemon-runtime-DHiDbRuC.js +0 -1
- package/dist/daemon-runtime-VcpeBRJV.js +0 -1
- package/dist/dangerous-name-matching-BOmvAibz.js +0 -1
- package/dist/dangerous-name-matching-DtllRqBD.js +0 -1
- package/dist/dangerous-tools-CFRYQJ6V.js +0 -1
- package/dist/dangerous-tools-oYCu5wfC.js +0 -1
- package/dist/deliver-AM3FP5rj.js +0 -1
- package/dist/deliver-BhWhLvQO.js +0 -1
- package/dist/deliver-DUNkj4hy.js +0 -1
- package/dist/deliver-SqSusZP3.js +0 -1
- package/dist/delivery-queue-CKbauSFq.js +0 -1
- package/dist/delivery-queue-nkPJu0fY.js +0 -1
- package/dist/device-pairing-DAzYy3vX.js +0 -1
- package/dist/device-pairing-DknI3IDo.js +0 -1
- package/dist/devices-cli-BYD6Sq88.js +0 -1
- package/dist/devices-cli-Dl-0fQmR.js +0 -1
- package/dist/diagnostic-BEZszppF.js +0 -1
- package/dist/diagnostic-D1H7_8QG.js +0 -1
- package/dist/diagnostic-DtuQPRbp.js +0 -1
- package/dist/diagnostic-VBPCgF9l.js +0 -1
- package/dist/diagnostics-BgbeL9KE.js +0 -1
- package/dist/diagnostics-Cdctg9K_.js +0 -1
- package/dist/directory-cli-CpMjutQb.js +0 -1
- package/dist/directory-cli-b_l3qJI_.js +0 -1
- package/dist/dns-cli-C7L4RYOm.js +0 -1
- package/dist/dns-cli-wKg6nn6f.js +0 -1
- package/dist/docs-cli-CwW4sqbC.js +0 -1
- package/dist/docs-cli-DnLLU7eX.js +0 -1
- package/dist/{doctor-completion-II0Wb435.js → doctor-completion-C9CPhCor.js} +1 -2
- package/dist/{doctor-completion-Bu-98ocm.js → doctor-completion-DI7mGC3D.js} +1 -2
- package/dist/doctor-config-flow-BVpr8-q9.js +0 -1
- package/dist/doctor-config-flow-Dio3s4x6.js +0 -1
- package/dist/enable-CjFPAUgo.js +0 -1
- package/dist/enable-PO3qN4Lf.js +0 -1
- package/dist/entry-status-CCwwKO43.js +0 -1
- package/dist/entry-status-CoXkbJcX.js +0 -1
- package/dist/entry.js +1 -2
- package/dist/env-D7wNuBx1.js +0 -1
- package/dist/env-overrides-DHtB4kK3.js +0 -1
- package/dist/env-overrides-DXJbFrwI.js +0 -1
- package/dist/errors-6SQWM9dj.js +0 -1
- package/dist/errors-Bunti32V.js +0 -1
- package/dist/exec-B3eleY5O.js +0 -1
- package/dist/exec-DHqLtFYt.js +0 -1
- package/dist/exec-approvals-BXO9Cezj.js +0 -1
- package/dist/exec-approvals-BpBNEy6i.js +0 -1
- package/dist/exec-approvals-allowlist-B-Yf6RsU.js +0 -1
- package/dist/exec-approvals-allowlist-CGjRWREs.js +0 -1
- package/dist/exec-approvals-cli-BokGzWFo.js +0 -1
- package/dist/exec-approvals-cli-CsUGu6m3.js +0 -1
- package/dist/exec-safe-bin-runtime-policy-CRPHdPbF.js +0 -1
- package/dist/exec-safe-bin-runtime-policy-v44u39fl.js +0 -1
- package/dist/fetch-B4bz67_N.js +0 -1
- package/dist/fetch-BJT3BrkJ.js +0 -1
- package/dist/fetch-Bn0mWg6a.js +0 -1
- package/dist/fetch-Ce-scEU-.js +0 -1
- package/dist/fetch-D0rZDHKO.js +0 -1
- package/dist/fetch-D5wrJ0AX.js +0 -1
- package/dist/fetch-DBat25iG.js +0 -1
- package/dist/fetch-DHo17YmK.js +0 -1
- package/dist/fetch-Dh-apy46.js +0 -1
- package/dist/fetch-Dikjvc5M.js +0 -1
- package/dist/fetch-DsjPfQlp.js +0 -1
- package/dist/fetch-_g8lZ8K8.js +0 -1
- package/dist/fetch-guard-7BAwnP4a.js +0 -1
- package/dist/fetch-guard-DaZmvp-L.js +0 -1
- package/dist/fetch-guard-DvaNcypz.js +0 -1
- package/dist/fetch-guard-oWKGrwV4.js +0 -1
- package/dist/fetch-hy0JKSsm.js +0 -1
- package/dist/fetch-timeout-CdYxWG9w.js +0 -1
- package/dist/fetch-timeout-Cj8_oAls.js +0 -1
- package/dist/fetch-timeout-DoOI_izT.js +0 -1
- package/dist/fetch-timeout-u8g99Ax0.js +0 -1
- package/dist/format-Bn1bwJKX.js +0 -1
- package/dist/format-Ce7I7s-k.js +0 -1
- package/dist/format-duration-C8AzNqKh.js +0 -1
- package/dist/format-duration-D5AMtmHa.js +0 -1
- package/dist/format-relative-B9pSIdGe.js +0 -1
- package/dist/format-relative-DkMjYy7z.js +0 -1
- package/dist/frontmatter-BkZkwkVO.js +0 -1
- package/dist/frontmatter-C7mzDNxd.js +0 -1
- package/dist/frontmatter-CzpfPBFl.js +0 -1
- package/dist/{gateway-cli-DBjTjdhJ.js → gateway-cli-BMmU2dsG.js} +1 -2
- package/dist/{gateway-cli-B-AX4-uD.js → gateway-cli-Kp-caOwI.js} +1 -2
- package/dist/gateway-install-token-Dt7hDXoR.js +0 -1
- package/dist/gateway-install-token-cSJrfU_1.js +0 -1
- package/dist/gateway-rpc-C78PzdZR.js +0 -1
- package/dist/gateway-rpc-CecloWA1.js +0 -1
- package/dist/github-copilot-token-C79yeDKS.js +0 -1
- package/dist/github-copilot-token-DGYAlOmV.js +0 -1
- package/dist/github-copilot-token-DePP-lIf.js +0 -1
- package/dist/github-copilot-token-wm6mbypz.js +0 -1
- package/dist/gmail-setup-utils-CYOH3zzx.js +0 -1
- package/dist/gmail-setup-utils-S-MyEGuj.js +0 -1
- package/dist/group-access-BHKVOhrj.js +0 -1
- package/dist/group-access-D2DOYMfr.js +0 -1
- package/dist/health-B_-ZE5FK.js +0 -1
- package/dist/health-CIZFVJEG.js +0 -1
- package/dist/health-format-B1nj3Wfn.js +0 -1
- package/dist/health-format-VBr6LEpt.js +0 -1
- package/dist/heartbeat-visibility-BQ_esv2m.js +0 -1
- package/dist/heartbeat-visibility-q74UdY8O.js +0 -1
- package/dist/help-format-B4aEI7V9.js +0 -1
- package/dist/help-format-BRbF_INg.js +0 -1
- package/dist/helpers-COz1ghcB.js +0 -1
- package/dist/helpers-Cp8gcO6u.js +0 -1
- package/dist/hooks-cli-BoxAnC-E.js +0 -1
- package/dist/hooks-cli-CnCOjVv0.js +0 -1
- package/dist/hooks-status-BHt-Xvh4.js +0 -1
- package/dist/hooks-status-CRJ4J0ZW.js +0 -1
- package/dist/image-BBO-0uLG.js +0 -1
- package/dist/image-BP1cfEh1.js +0 -1
- package/dist/image-BVbOr9yV.js +0 -1
- package/dist/image-CcsuUB1B.js +0 -1
- package/dist/index.js +1 -2
- package/dist/inspect-BKV-I1UE.js +0 -1
- package/dist/inspect-z59cgmYc.js +0 -1
- package/dist/install-safe-path-C6kc_8NW.js +0 -1
- package/dist/install-safe-path-iesxijn2.js +0 -1
- package/dist/installs-CKzq-YqL.js +0 -1
- package/dist/installs-DzSskdtJ.js +0 -1
- package/dist/ipv4-B05QVStj.js +0 -1
- package/dist/ipv4-SeeyR-DH.js +0 -1
- package/dist/ir-B7mdG27k.js +0 -1
- package/dist/ir-BTfsA9Dd.js +0 -1
- package/dist/ir-CNTx85qV.js +0 -1
- package/dist/ir-DdjufzKF.js +0 -1
- package/dist/is-main-DG5ueqhF.js +0 -1
- package/dist/issue-format-BtMzMXtZ.js +0 -1
- package/dist/issue-format-CN9PHzXY.js +0 -1
- package/dist/kill-tree-D6nPx1_o.js +0 -1
- package/dist/lifecycle-core-B1nrgJCw.js +0 -1
- package/dist/lifecycle-core-D_LWJeD_.js +0 -1
- package/dist/line/accounts.js +0 -1
- package/dist/line/send.js +0 -1
- package/dist/line/template-messages.js +0 -1
- package/dist/links-CBnmRP9D.js +0 -1
- package/dist/links-CySwdMcF.js +0 -1
- package/dist/llm-slug-generator.js +0 -1
- package/dist/load-options-BsOW74dp.js +0 -1
- package/dist/load-options-C7dLuybp.js +0 -1
- package/dist/load-options-DV4j6Aqb.js +0 -1
- package/dist/load-options-Dwt0CeEg.js +0 -1
- package/dist/local-roots-aA-4ohTq.js +0 -1
- package/dist/logger-5W0OocJW.js +0 -1
- package/dist/logger-Bl8URnrW.js +0 -1
- package/dist/logger-DwWqfo66.js +0 -1
- package/dist/logger-kQAOe3qp.js +0 -1
- package/dist/logging-B7XHbCNn.js +0 -1
- package/dist/logging-CbMVr2MA.js +0 -1
- package/dist/login-BGLWiksP.js +0 -1
- package/dist/login-CcYeF5T_.js +0 -1
- package/dist/login-DSZdCiDx.js +0 -1
- package/dist/login-DWZzj-P1.js +0 -1
- package/dist/login-qr-BGpGVMES.js +0 -1
- package/dist/login-qr-BUdgvi3v.js +0 -1
- package/dist/login-qr-Bx8skPB-.js +0 -1
- package/dist/login-qr-DYUCmP-W.js +0 -1
- package/dist/login-qr-_79eoRb4.js +0 -1
- package/dist/logs-cli-C52caOop.js +0 -1
- package/dist/logs-cli-Ch50TE-J.js +0 -1
- package/dist/manager-CI6O4QH6.js +0 -1
- package/dist/manager-CN_rQm1L.js +0 -1
- package/dist/manager-CxZRoQkE.js +0 -1
- package/dist/manager-iFi--Fru.js +0 -1
- package/dist/memory-cli-BouV_wyL.js +0 -1
- package/dist/memory-cli-C8fBBPgv.js +0 -1
- package/dist/model-catalog-D-hkNWin.js +0 -1
- package/dist/model-catalog-mt0IcDfR.js +0 -1
- package/dist/model-param-b-B0r2cPDw.js +0 -1
- package/dist/model-param-b-BqIr5rY5.js +0 -1
- package/dist/model-picker-BB0Zdvyu.js +0 -1
- package/dist/model-picker-DeiWyW0N.js +0 -1
- package/dist/model-selection-BLbnMb5E.js +0 -1
- package/dist/model-selection-D7mdJmGK.js +0 -1
- package/dist/model-selection-DvekK9rZ.js +0 -1
- package/dist/models-BBYqej07.js +0 -1
- package/dist/models-cli-CMMhnlHo.js +0 -1
- package/dist/models-cli-CqbDyDn2.js +0 -1
- package/dist/models-config-BlQ39qlq.js +0 -1
- package/dist/models-config-DZzS67GS.js +0 -1
- package/dist/mutable-allowlist-detectors-C4rNVag8.js +0 -1
- package/dist/mutable-allowlist-detectors-CL0qe54J.js +0 -1
- package/dist/node-cli-Bzu1efMB.js +0 -1
- package/dist/node-cli-Dv-Eib4o.js +0 -1
- package/dist/node-command-policy-D9yZu9zq.js +0 -1
- package/dist/node-command-policy-DyWp3Bjz.js +0 -1
- package/dist/node-commands-8GBOiktk.js +0 -1
- package/dist/node-commands-DdkziOTx.js +0 -1
- package/dist/node-resolve-B3BJbmQX.js +0 -1
- package/dist/node-resolve-DLZf3-1V.js +0 -1
- package/dist/node-service-BRfrNp8l.js +0 -1
- package/dist/node-service-C0bl7jcZ.js +0 -1
- package/dist/node-shell-BVZylVP6.js +0 -1
- package/dist/nodes-cli-B3aNQG30.js +0 -1
- package/dist/nodes-cli-DzO6PSFw.js +0 -1
- package/dist/nodes-screen-8nRBsfID.js +0 -1
- package/dist/note-D4GAwgha.js +0 -1
- package/dist/note-Dp-d_utk.js +0 -1
- package/dist/npm-pack-install-B23L-AtF.js +0 -1
- package/dist/npm-pack-install-C0te3Oap.js +0 -1
- package/dist/npm-resolution--_-0q2ks.js +0 -1
- package/dist/npm-resolution-CBlwQq3a.js +0 -1
- package/dist/oauth-env-DAamJ1oz.js +0 -1
- package/dist/oauth-env-DSLBTWb1.js +0 -1
- package/dist/oauth-tls-preflight-BSBRDIfC.js +0 -1
- package/dist/oauth-tls-preflight-ByNjbUR5.js +0 -1
- package/dist/ollama-setup-CGuyH3Ey.js +0 -1
- package/dist/ollama-setup-LVRPefmV.js +0 -1
- package/dist/{onboard-DMmLqys5.js → onboard-DZG0HnuP.js} +1 -2
- package/dist/{onboard-C2Ofvb_A.js → onboard-DlCEww7K.js} +1 -2
- package/dist/onboard-channels-BDMtq3ex.js +0 -1
- package/dist/onboard-channels-BO3AN_eA.js +0 -1
- package/dist/onboard-config-B7U20YRw.js +0 -1
- package/dist/onboard-config-DS9dUv8M.js +0 -1
- package/dist/onboard-custom--OylwoHQ.js +0 -1
- package/dist/onboard-custom-_Df_ciX2.js +0 -1
- package/dist/onboard-helpers-D90u4wVK.js +0 -1
- package/dist/onboard-helpers-DOlI17Ac.js +0 -1
- package/dist/onboard-hooks-CERzXObm.js +0 -1
- package/dist/onboard-hooks-gQ3sxBNi.js +0 -1
- package/dist/onboard-provider-auth-flags-CqbipO7D.js +0 -1
- package/dist/onboard-provider-auth-flags-Dvwzdz37.js +0 -1
- package/dist/onboard-remote-B1-SlmUN.js +0 -1
- package/dist/onboard-remote-C7Eg49Uf.js +0 -1
- package/dist/onboard-search-f2tJD4hg.js +0 -1
- package/dist/onboard-search-fslKKhyg.js +0 -1
- package/dist/onboard-skills-DCgTr6hW.js +0 -1
- package/dist/onboard-skills-_TBzISd2.js +0 -1
- package/dist/{onboarding-C82cKKNI.js → onboarding-CxRTJCBM.js} +1 -2
- package/dist/{onboarding-M80apW9t.js → onboarding-m-m__16h.js} +1 -2
- package/dist/{onboarding.finalize-D9nrrI1J.js → onboarding.finalize-BJxMhYUa.js} +1 -2
- package/dist/{onboarding.finalize-CVvwI1Qg.js → onboarding.finalize-UiX3YmbI.js} +1 -2
- package/dist/onboarding.gateway-config-CXjzrfwL.js +0 -1
- package/dist/onboarding.gateway-config-TSq70E-S.js +0 -1
- package/dist/onboarding.secret-input-BSmFS1Px.js +0 -1
- package/dist/onboarding.secret-input-CUD0t7Pk.js +0 -1
- package/dist/openai-codex-model-default-Bx8i3bOg.js +0 -1
- package/dist/openai-codex-model-default-DuRfnfUm.js +0 -1
- package/dist/openai-model-default-Bm9b0oR0.js +0 -1
- package/dist/openai-model-default-KMCphvoO.js +0 -1
- package/dist/openclaw-exec-env-BWbOu_YC.js +0 -1
- package/dist/openclaw-root-CnsBf6ZU.js +0 -1
- package/dist/openclaw-root-D_0Q6--h.js +0 -1
- package/dist/outbound-BevYwvMh.js +0 -1
- package/dist/outbound-CqDxMWLZ.js +0 -1
- package/dist/outbound-DmwQEFu0.js +0 -1
- package/dist/outbound-attachment-9-8VNvRG.js +0 -1
- package/dist/outbound-attachment-Bah4dvuM.js +0 -1
- package/dist/outbound-attachment-CVcDBkAD.js +0 -1
- package/dist/outbound-attachment-E89zumcH.js +0 -1
- package/dist/outbound-xlG_RqEu.js +0 -1
- package/dist/pairing-cli-ByPhOBWo.js +0 -1
- package/dist/pairing-cli-CxJy8LPo.js +0 -1
- package/dist/pairing-labels-CZ-aX-up.js +0 -1
- package/dist/pairing-labels-PIuZfthz.js +0 -1
- package/dist/pairing-store-BaaVy1zB.js +0 -1
- package/dist/pairing-store-EmfFQVcs.js +0 -1
- package/dist/pairing-token-B8RdfK2y.js +0 -1
- package/dist/pairing-token-zdbQ951y.js +0 -1
- package/dist/parse-duration-XTjMKl8s.js +0 -1
- package/dist/parse-finite-number-DqzUM-_s.js +0 -1
- package/dist/parse-finite-number-dBmDLLKL.js +0 -1
- package/dist/parse-log-line-CsYLg7Qu.js +0 -1
- package/dist/parse-log-line-NV-cipB_.js +0 -1
- package/dist/parse-port-Bv1Y9Wk5.js +0 -1
- package/dist/parse-port-JVwkxcZ8.js +0 -1
- package/dist/parse-timeout-DWSGfCkQ.js +0 -1
- package/dist/parse-timeout-Dx4QnVzo.js +0 -1
- package/dist/path-alias-guards-kY_ZbWs-.js +0 -1
- package/dist/path-alias-guards-mvyLCPlN.js +0 -1
- package/dist/path-env-BPd1Yd-i.js +0 -1
- package/dist/path-env-emdAQejM.js +0 -1
- package/dist/path-safety-BukYK8Kd.js +0 -1
- package/dist/path-safety-DaaMJFdt.js +0 -1
- package/dist/paths-B4IRk3wi.js +0 -1
- package/dist/paths-BfjJY2VL.js +0 -1
- package/dist/paths-BjD3T_xq.js +0 -1
- package/dist/paths-BpQOWYiT.js +0 -1
- package/dist/paths-CChBdtE8.js +0 -1
- package/dist/paths-CrCoPIVK.js +0 -1
- package/dist/paths-piJASC5k.js +0 -1
- package/dist/paths-yLEk_25I.js +0 -1
- package/dist/pi-embedded-6yGEd2xd.js +0 -1
- package/dist/pi-embedded-X_Svd4Wi.js +0 -1
- package/dist/pi-model-discovery-BPkhPDMr.js +0 -1
- package/dist/pi-model-discovery-BonZ1N3x.js +0 -1
- package/dist/pi-model-discovery-DVKXkQTR.js +0 -1
- package/dist/pi-model-discovery-DnJkNRc-.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-2-IJ8xox.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-CNesNgq0.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-CmtITCPP.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-VUjwIYJ7.js +0 -1
- package/dist/pi-tools.policy-B6q8YOfg.js +0 -1
- package/dist/plugin-auto-enable-CTgkkJK7.js +0 -1
- package/dist/plugin-auto-enable-adba5Evb.js +0 -1
- package/dist/plugin-install-plan-BmyB3dR1.js +0 -1
- package/dist/plugin-install-plan-sIOiMBS1.js +0 -1
- package/dist/plugin-registry-CN2aCPP7.js +0 -1
- package/dist/plugin-registry-DYwEy5eM.js +0 -1
- package/dist/plugin-sdk/account-id.cjs +0 -1
- package/dist/plugin-sdk/account-id.js +0 -1
- package/dist/plugin-sdk/acpx.cjs +0 -1
- package/dist/plugin-sdk/acpx.js +0 -1
- package/dist/plugin-sdk/active-listener-B1sd5Yrr.cjs +0 -1
- package/dist/plugin-sdk/active-listener-CVvtj4nc.cjs +0 -1
- package/dist/plugin-sdk/active-listener-D0Pag-jN.js +0 -1
- package/dist/plugin-sdk/active-listener-DIzG1nGC.js +0 -1
- package/dist/plugin-sdk/active-listener-DUT4_v5r.cjs +0 -1
- package/dist/plugin-sdk/active-listener-D_Cq4Tuy.cjs +0 -1
- package/dist/plugin-sdk/active-listener-HBuXCjdG.js +0 -1
- package/dist/plugin-sdk/active-listener-V7whA3d_.js +0 -1
- package/dist/plugin-sdk/active-listener-YOWDFFGG.js +0 -1
- package/dist/plugin-sdk/active-listener-kJidH-KZ.js +0 -1
- package/dist/plugin-sdk/active-listener-kmJHqUWY.cjs +0 -1
- package/dist/plugin-sdk/active-listener-vpxSd-kW.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-BEhJdmXN.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-BcDAQISn.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-Bua813IH.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-C7_ooC3N.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-CiFfWYgL.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-CrVpqlS6.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-D-zSLAf_.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-DInDOH-A.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-DKp72Rw4.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-YRRtbk9Y.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-tVSHRH8D.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-ta953lKF.js +0 -1
- package/dist/plugin-sdk/audio-preflight-5ZbcO1qy.js +0 -1
- package/dist/plugin-sdk/audio-preflight-BrAX9j6r.js +0 -1
- package/dist/plugin-sdk/audio-preflight-C2NpU5hR.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-CtWGsCje.js +0 -1
- package/dist/plugin-sdk/audio-preflight-CwjNHDro.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-D22cCCmn.js +0 -1
- package/dist/plugin-sdk/audio-preflight-DyK2q8OQ.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-F7lfchEO.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-ItHD-3bi.js +0 -1
- package/dist/plugin-sdk/audio-preflight-QWsN9gcK.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-k7Qt2rDs.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-wcMT_iUA.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-B3bLoVvU.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-BDfW3xeJ.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-BZLASCWO.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-CiRKTRED.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-Cxs7u0B3.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-D2IxJCfd.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DA6TwXrV.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DZIEX1Rl.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DZRGn6-f.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-Dc-WF6zu.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DuBgVmcT.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-nKI1rQ0R.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +0 -1
- package/dist/plugin-sdk/bluebubbles.cjs +0 -1
- package/dist/plugin-sdk/bluebubbles.js +0 -1
- package/dist/plugin-sdk/channel-activity--Ax2m0qQ.js +0 -1
- package/dist/plugin-sdk/channel-activity-BCsNxxNa.js +0 -1
- package/dist/plugin-sdk/channel-activity-BUieXBdg.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-BXffAklf.js +0 -1
- package/dist/plugin-sdk/channel-activity-BlYTUiU4.js +0 -1
- package/dist/plugin-sdk/channel-activity-Bm-pvlXw.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-Bnai3H2M.js +0 -1
- package/dist/plugin-sdk/channel-activity-CC3JLAxD.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-CTmfXwYn.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-D98aY9ZF.js +0 -1
- package/dist/plugin-sdk/channel-activity-DymcGybX.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-gZBQEyOK.cjs +0 -1
- package/dist/plugin-sdk/channel-web-B795Ild9.cjs +0 -1
- package/dist/plugin-sdk/channel-web-Bg8DNyeb.js +0 -1
- package/dist/plugin-sdk/channel-web-CW42ALB5.cjs +0 -1
- package/dist/plugin-sdk/channel-web-D5zxPW-x.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +0 -1
- package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +0 -1
- package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-BIGWymiv.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-Bnadsir-.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-C1Gb98lg.js +0 -1
- package/dist/plugin-sdk/commands-registry-CZcNTwNs.js +0 -1
- package/dist/plugin-sdk/commands-registry-CeJQPXIR.js +0 -1
- package/dist/plugin-sdk/commands-registry-CehvtLBA.js +0 -1
- package/dist/plugin-sdk/commands-registry-Cf8DaBmw.js +0 -1
- package/dist/plugin-sdk/commands-registry-Cfv6gDoQ.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-D734s8r7.js +0 -1
- package/dist/plugin-sdk/commands-registry-DWx89vtR.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-DviWu8J8.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-wA0CkHGk.cjs +0 -1
- package/dist/plugin-sdk/common-BJ0tHoNJ.cjs +0 -1
- package/dist/plugin-sdk/common-CxLmdAIn.js +0 -1
- package/dist/plugin-sdk/compat.cjs +0 -1
- package/dist/plugin-sdk/compat.js +0 -1
- package/dist/plugin-sdk/config-C2-9m5-M.cjs +0 -1
- package/dist/plugin-sdk/config-Cx3SFBFW.js +0 -1
- package/dist/plugin-sdk/copilot-proxy.cjs +0 -1
- package/dist/plugin-sdk/copilot-proxy.js +0 -1
- package/dist/plugin-sdk/core.cjs +0 -1
- package/dist/plugin-sdk/core.js +0 -1
- package/dist/plugin-sdk/deliver--pOntbRC.cjs +0 -1
- package/dist/plugin-sdk/deliver-BLMe2eBS.js +0 -1
- package/dist/plugin-sdk/deliver-BcHzZPc2.js +0 -1
- package/dist/plugin-sdk/deliver-CSGTRHt1.js +0 -1
- package/dist/plugin-sdk/deliver-Cm8yUsWK.cjs +0 -1
- package/dist/plugin-sdk/deliver-DQDZRjZ0.js +0 -1
- package/dist/plugin-sdk/deliver-DRintVMn.js +0 -1
- package/dist/plugin-sdk/deliver-DehGdLxT.js +0 -1
- package/dist/plugin-sdk/deliver-EThzALwn.cjs +0 -1
- package/dist/plugin-sdk/deliver-d7VfVmTa.cjs +0 -1
- package/dist/plugin-sdk/deliver-rACJj8E9.cjs +0 -1
- package/dist/plugin-sdk/deliver-wteCze09.cjs +0 -1
- package/dist/plugin-sdk/device-pair.cjs +0 -1
- package/dist/plugin-sdk/device-pair.js +0 -1
- package/dist/plugin-sdk/diagnostic-BcBlExSy.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-Bmp3zWQp.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-BvrdTMl3.js +0 -1
- package/dist/plugin-sdk/diagnostic-C2jKFixS.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-CSfBcIOI.js +0 -1
- package/dist/plugin-sdk/diagnostic-CYR5dxDE.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-CdNZNyNv.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-DE5k6C1E.js +0 -1
- package/dist/plugin-sdk/diagnostic-DMpxa640.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-DSgf5Z4H.js +0 -1
- package/dist/plugin-sdk/diagnostic-DbRdunVt.js +0 -1
- package/dist/plugin-sdk/diagnostic-zCrcFAbJ.js +0 -1
- package/dist/plugin-sdk/diagnostics-otel.cjs +0 -1
- package/dist/plugin-sdk/diagnostics-otel.js +0 -1
- package/dist/plugin-sdk/diffs.cjs +0 -1
- package/dist/plugin-sdk/diffs.js +0 -1
- package/dist/plugin-sdk/discord.cjs +0 -1
- package/dist/plugin-sdk/discord.js +0 -1
- package/dist/plugin-sdk/dispatch-B13B2T1k.js +0 -1
- package/dist/plugin-sdk/dispatch-BaBcLOry.js +0 -1
- package/dist/plugin-sdk/dispatch-BlOkbw2U.js +0 -1
- package/dist/plugin-sdk/dispatch-D2Km7gvG.cjs +0 -1
- package/dist/plugin-sdk/dispatch-DAaOM5c1.cjs +0 -1
- package/dist/plugin-sdk/dispatch-DYRrW05S.js +0 -1
- package/dist/plugin-sdk/dispatch-Dap2ZPC9.js +0 -1
- package/dist/plugin-sdk/dispatch-Dl0eaYcY.cjs +0 -1
- package/dist/plugin-sdk/dispatch-_tJF5hSh.cjs +0 -1
- package/dist/plugin-sdk/dispatch-cPg1rBWu.cjs +0 -1
- package/dist/plugin-sdk/feishu.cjs +0 -1
- package/dist/plugin-sdk/feishu.js +0 -1
- package/dist/plugin-sdk/fetch-7Iq9POda.js +0 -1
- package/dist/plugin-sdk/fetch-B1GR6-u4.js +0 -1
- package/dist/plugin-sdk/fetch-B27H-XCf.js +0 -1
- package/dist/plugin-sdk/fetch-BMYDLRWo.js +0 -1
- package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +0 -1
- package/dist/plugin-sdk/fetch-BVEVk5YF.js +0 -1
- package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +0 -1
- package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +0 -1
- package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +0 -1
- package/dist/plugin-sdk/fetch-BtZY623f.js +0 -1
- package/dist/plugin-sdk/fetch-C-HRWp5R.js +0 -1
- package/dist/plugin-sdk/fetch-C3LEMysf.js +0 -1
- package/dist/plugin-sdk/fetch-CCLWsYaQ.js +0 -1
- package/dist/plugin-sdk/fetch-CZewCAvu.cjs +0 -1
- package/dist/plugin-sdk/fetch-ClKErpni.cjs +0 -1
- package/dist/plugin-sdk/fetch-DBRI0sKI.js +0 -1
- package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +0 -1
- package/dist/plugin-sdk/fetch-DUMEaqum.cjs +0 -1
- package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +0 -1
- package/dist/plugin-sdk/fetch-J0IzopiJ.js +0 -1
- package/dist/plugin-sdk/fetch-guard-7tObWdgY.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-ACKeLHgB.js +0 -1
- package/dist/plugin-sdk/fetch-guard-BI5z5sCg.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-BUOtcki7.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-BZi5e63X.js +0 -1
- package/dist/plugin-sdk/fetch-guard-CVnIQ0nI.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-DKS4LY4o.js +0 -1
- package/dist/plugin-sdk/fetch-guard-DcAQBHbg.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-Dj-DlPBS.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-Dm1nAvhl.js +0 -1
- package/dist/plugin-sdk/fetch-guard-GfhPo1Fa.js +0 -1
- package/dist/plugin-sdk/fetch-guard-nFWUH1s9.js +0 -1
- package/dist/plugin-sdk/fetch-lw-aF17e.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +0 -1
- package/dist/plugin-sdk/google-gemini-cli-auth.cjs +0 -1
- package/dist/plugin-sdk/google-gemini-cli-auth.js +0 -1
- package/dist/plugin-sdk/googlechat.cjs +0 -1
- package/dist/plugin-sdk/googlechat.js +0 -1
- package/dist/plugin-sdk/image-BLG2OrjE.cjs +0 -1
- package/dist/plugin-sdk/image-BPUmI-kx.cjs +0 -1
- package/dist/plugin-sdk/image-Bt_w0o87.js +0 -1
- package/dist/plugin-sdk/image-CMeyJO2-.js +0 -1
- package/dist/plugin-sdk/image-CMiT6Fvk.cjs +0 -1
- package/dist/plugin-sdk/image-CNMuTe0Z.js +0 -1
- package/dist/plugin-sdk/image-CO9zxV0G.js +0 -1
- package/dist/plugin-sdk/image-CjVyB61p.cjs +0 -1
- package/dist/plugin-sdk/image-CkWikcPf.cjs +0 -1
- package/dist/plugin-sdk/image-Dk2gzO1U.js +0 -1
- package/dist/plugin-sdk/image-Jmj-a1pv.js +0 -1
- package/dist/plugin-sdk/image-UKq4Bn2r.cjs +0 -1
- package/dist/plugin-sdk/imessage.cjs +0 -1
- package/dist/plugin-sdk/imessage.js +0 -1
- package/dist/plugin-sdk/index.cjs +0 -1
- package/dist/plugin-sdk/index.js +0 -1
- package/dist/plugin-sdk/ir-Bg_avpt0.cjs +0 -1
- package/dist/plugin-sdk/ir-BiiaNbB9.cjs +0 -1
- package/dist/plugin-sdk/ir-CYJPM1_I.cjs +0 -1
- package/dist/plugin-sdk/ir-Ca3EdqFl.js +0 -1
- package/dist/plugin-sdk/ir-Cl_S_VBR.cjs +0 -1
- package/dist/plugin-sdk/ir-Cq7b_9v8.cjs +0 -1
- package/dist/plugin-sdk/ir-DcWa7gsX.cjs +0 -1
- package/dist/plugin-sdk/ir-DdA08iXJ.js +0 -1
- package/dist/plugin-sdk/ir-DqBwrJJd.js +0 -1
- package/dist/plugin-sdk/ir-EUD0qDem.js +0 -1
- package/dist/plugin-sdk/ir-c1MS26Ci.js +0 -1
- package/dist/plugin-sdk/ir-vhCxHELh.js +0 -1
- package/dist/plugin-sdk/irc.cjs +0 -1
- package/dist/plugin-sdk/irc.js +0 -1
- package/dist/plugin-sdk/keyed-async-queue.cjs +0 -1
- package/dist/plugin-sdk/keyed-async-queue.js +0 -1
- package/dist/plugin-sdk/line.cjs +0 -1
- package/dist/plugin-sdk/line.js +0 -1
- package/dist/plugin-sdk/llm-task.cjs +0 -1
- package/dist/plugin-sdk/llm-task.js +0 -1
- package/dist/plugin-sdk/load-options-B9Ss5YOO.js +0 -1
- package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +0 -1
- package/dist/plugin-sdk/load-options-BXvm8HVv.js +0 -1
- package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +0 -1
- package/dist/plugin-sdk/load-options-BcSg1ODN.js +0 -1
- package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +0 -1
- package/dist/plugin-sdk/lobster.cjs +0 -1
- package/dist/plugin-sdk/lobster.js +0 -1
- package/dist/plugin-sdk/local-roots-2OcKjfzk.js +0 -1
- package/dist/plugin-sdk/local-roots-ByrRvVBc.cjs +0 -1
- package/dist/plugin-sdk/local-roots-CXPxvx0J.js +0 -1
- package/dist/plugin-sdk/local-roots-CzbssMW1.cjs +0 -1
- package/dist/plugin-sdk/local-roots-DIijr8mK.cjs +0 -1
- package/dist/plugin-sdk/local-roots-DRv9Y_41.cjs +0 -1
- package/dist/plugin-sdk/local-roots-DTC7BJct.js +0 -1
- package/dist/plugin-sdk/local-roots-DU8RuiRi.js +0 -1
- package/dist/plugin-sdk/local-roots-DprQ5M3b.js +0 -1
- package/dist/plugin-sdk/local-roots-GqNj3vMl.cjs +0 -1
- package/dist/plugin-sdk/local-roots-I2icTm2P.cjs +0 -1
- package/dist/plugin-sdk/local-roots-qEhx-D42.js +0 -1
- package/dist/plugin-sdk/logger-6O6OsYBL.cjs +0 -1
- package/dist/plugin-sdk/logger-BlddiV_d.cjs +0 -1
- package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +0 -1
- package/dist/plugin-sdk/logger-BtrWb0dj.js +0 -1
- package/dist/plugin-sdk/logger-C210xuWx.js +0 -1
- package/dist/plugin-sdk/logger-DJGHvDbX.js +0 -1
- package/dist/plugin-sdk/logger-DPlqYkRm.cjs +0 -1
- package/dist/plugin-sdk/logger-DUYnS-W3.cjs +0 -1
- package/dist/plugin-sdk/logger-DwWqfo66.js +0 -1
- package/dist/plugin-sdk/logger-vBDTZWl3.js +0 -1
- package/dist/plugin-sdk/login-0ui1gfZM.cjs +0 -1
- package/dist/plugin-sdk/login-B0lIdwss.cjs +0 -1
- package/dist/plugin-sdk/login-B43p990Y.cjs +0 -1
- package/dist/plugin-sdk/login-DHBcWg4R.cjs +0 -1
- package/dist/plugin-sdk/login-DUCNg4lV.js +0 -1
- package/dist/plugin-sdk/login-DqVo92p1.js +0 -1
- package/dist/plugin-sdk/login-Dt4KiLgP.js +0 -1
- package/dist/plugin-sdk/login-IVBk3GwG.cjs +0 -1
- package/dist/plugin-sdk/login-T6tSC1Xl.js +0 -1
- package/dist/plugin-sdk/login-XruRHZe5.js +0 -1
- package/dist/plugin-sdk/login-p9hWVYO6.cjs +0 -1
- package/dist/plugin-sdk/login-qr-B4wf-15u.js +0 -1
- package/dist/plugin-sdk/login-qr-BQMm3yV_.cjs +0 -1
- package/dist/plugin-sdk/login-qr-BreyhXFQ.cjs +0 -1
- package/dist/plugin-sdk/login-qr-C6RPK8ld.js +0 -1
- package/dist/plugin-sdk/login-qr-C6cQueYq.js +0 -1
- package/dist/plugin-sdk/login-qr-CxznBK7s.cjs +0 -1
- package/dist/plugin-sdk/login-qr-D0dmb3Gr.js +0 -1
- package/dist/plugin-sdk/login-qr-DWW1FC-n.cjs +0 -1
- package/dist/plugin-sdk/login-qr-DjC-P7Vy.cjs +0 -1
- package/dist/plugin-sdk/login-qr-KeBTY1Mb.js +0 -1
- package/dist/plugin-sdk/login-qr-gQsVZ8en.js +0 -1
- package/dist/plugin-sdk/login-qr-xkqmSKC8.cjs +0 -1
- package/dist/plugin-sdk/login-x9vN5UnR.js +0 -1
- package/dist/plugin-sdk/manager-B38IH03I.cjs +0 -1
- package/dist/plugin-sdk/manager-BZVFXygg.cjs +0 -1
- package/dist/plugin-sdk/manager-BuNveORY.cjs +0 -1
- package/dist/plugin-sdk/manager-C4FEmxjq.cjs +0 -1
- package/dist/plugin-sdk/manager-CHnzSMNG.js +0 -1
- package/dist/plugin-sdk/manager-CN4wiVFz.js +0 -1
- package/dist/plugin-sdk/manager-D9RwKYCX.js +0 -1
- package/dist/plugin-sdk/manager-DAmjm61U.cjs +0 -1
- package/dist/plugin-sdk/manager-DJSpJkev.js +0 -1
- package/dist/plugin-sdk/manager-EO7deQzm.js +0 -1
- package/dist/plugin-sdk/manager-vyHAgafh.cjs +0 -1
- package/dist/plugin-sdk/manager-zyDhj7B-.js +0 -1
- package/dist/plugin-sdk/matrix.cjs +0 -1
- package/dist/plugin-sdk/matrix.js +0 -1
- package/dist/plugin-sdk/mattermost.cjs +0 -1
- package/dist/plugin-sdk/mattermost.js +0 -1
- package/dist/plugin-sdk/memory-core.cjs +0 -1
- package/dist/plugin-sdk/memory-core.js +0 -1
- package/dist/plugin-sdk/minimax-portal-auth.cjs +0 -1
- package/dist/plugin-sdk/minimax-portal-auth.js +0 -1
- package/dist/plugin-sdk/model-auth-1RA9nkQH.js +0 -1
- package/dist/plugin-sdk/model-auth-Cgqd2_sP.cjs +0 -1
- package/dist/plugin-sdk/model-auth-Cp2GSJwZ.js +0 -1
- package/dist/plugin-sdk/model-auth-Lv74A-Si.cjs +0 -1
- package/dist/plugin-sdk/model-auth-RI6NYvTO.js +0 -1
- package/dist/plugin-sdk/model-auth-exDkzEDR.js +0 -1
- package/dist/plugin-sdk/model-auth-igOM3blS.cjs +0 -1
- package/dist/plugin-sdk/model-auth-sjKLUCCz.cjs +0 -1
- package/dist/plugin-sdk/model-selection-C9HlFaXF.js +0 -1
- package/dist/plugin-sdk/model-selection-DpGE9eNM.cjs +0 -1
- package/dist/plugin-sdk/msteams.cjs +0 -1
- package/dist/plugin-sdk/msteams.js +0 -1
- package/dist/plugin-sdk/nextcloud-talk.cjs +0 -1
- package/dist/plugin-sdk/nextcloud-talk.js +0 -1
- package/dist/plugin-sdk/nostr.cjs +0 -1
- package/dist/plugin-sdk/nostr.js +0 -1
- package/dist/plugin-sdk/outbound-BO0tyeUH.js +0 -1
- package/dist/plugin-sdk/outbound-BYU5HTrX.js +0 -1
- package/dist/plugin-sdk/outbound-CBVlxGRf.cjs +0 -1
- package/dist/plugin-sdk/outbound-CTyu_gZh.js +0 -1
- package/dist/plugin-sdk/outbound-CwWXHNwp.cjs +0 -1
- package/dist/plugin-sdk/outbound-CySyQcmE.js +0 -1
- package/dist/plugin-sdk/outbound-DDPxEpHH.cjs +0 -1
- package/dist/plugin-sdk/outbound-DZhl7sHt.cjs +0 -1
- package/dist/plugin-sdk/outbound-DmeUAXdA.js +0 -1
- package/dist/plugin-sdk/outbound-DvFQ_6wQ.cjs +0 -1
- package/dist/plugin-sdk/outbound-Dy87UlCV.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-5H1iYkTb.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-BAHrn3r7.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-BBJPbiLF.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-BIGvZREF.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-B_OTB3A8.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-C94-r948.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CJatgPbm.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CLUVyl5e.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CTR1-VEH.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CmQ0SNgK.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-Dbja7LQF.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-DwzJ2l3T.cjs +0 -1
- package/dist/plugin-sdk/outbound-xMr8Xsxe.js +0 -1
- package/dist/plugin-sdk/paths-BPlgbwrb.cjs +0 -1
- package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +0 -1
- package/dist/plugin-sdk/paths-BpQOWYiT.js +0 -1
- package/dist/plugin-sdk/paths-BvlJvmRS.cjs +0 -1
- package/dist/plugin-sdk/paths-CIcxeNL-.cjs +0 -1
- package/dist/plugin-sdk/paths-CXgWvWAM.js +0 -1
- package/dist/plugin-sdk/paths-Chp3zwtq.cjs +0 -1
- package/dist/plugin-sdk/paths-CnHSNSeR.js +0 -1
- package/dist/plugin-sdk/paths-Cqca1YmF.cjs +0 -1
- package/dist/plugin-sdk/paths-CtrEseGU.js +0 -1
- package/dist/plugin-sdk/paths-D55o_j8-.js +0 -1
- package/dist/plugin-sdk/paths-D90l3h_o.cjs +0 -1
- package/dist/plugin-sdk/paths-DaRoqzBQ.js +0 -1
- package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +0 -1
- package/dist/plugin-sdk/paths-DhSjTRMz.js +0 -1
- package/dist/plugin-sdk/paths-Do0djuaj.js +0 -1
- package/dist/plugin-sdk/paths-J4JUiRsa.js +0 -1
- package/dist/plugin-sdk/paths-cBAF6Bj0.js +0 -1
- package/dist/plugin-sdk/paths-piJASC5k.js +0 -1
- package/dist/plugin-sdk/paths-rO4ehkyU.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-5wc5qlmB.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BQiHbl8F.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BZZVGcJl.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-Ba70onAm.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BfuqD_Rv.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BsdlRK-w.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-CAYSx-Lw.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-CyBFRafV.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-D1WW5m-Q.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DRYpUnOa.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DUbDLlc7.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DcUDwgMg.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DrZsxLaJ.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-gaVoL7I2.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BWmteuHS.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BmznXclG.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BzTifHML.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CEPsGtJk.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CYleOK1-.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Ctbk1Pq8.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D-hwiLUl.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DDuUTLh8.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DLfogXKU.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dd-VFim_.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dvmcwf-j.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-i-IGFbqI.js +0 -1
- package/dist/plugin-sdk/polls-BuaJuIpV.cjs +0 -1
- package/dist/plugin-sdk/polls-CBAGZuJ6.js +0 -1
- package/dist/plugin-sdk/polls-CSKMbBIS.js +0 -1
- package/dist/plugin-sdk/polls-D0wY0FvT.cjs +0 -1
- package/dist/plugin-sdk/polls-PGxiE05J.js +0 -1
- package/dist/plugin-sdk/polls-yWqSCEP0.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-B765haXA.js +0 -1
- package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +0 -1
- package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +0 -1
- package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +0 -1
- package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +0 -1
- package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-Del551nu.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-B9PkuA_R.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-BMJV0Hqt.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-BRasSDsB.js +0 -1
- package/dist/plugin-sdk/pw-ai-BY57aH_o.js +0 -1
- package/dist/plugin-sdk/pw-ai-BbpImC35.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-D7d16RB-.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-DF7TX5Lc.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-DHN1pktj.js +0 -1
- package/dist/plugin-sdk/pw-ai-QzImh8G0.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-V1CVJi48.js +0 -1
- package/dist/plugin-sdk/pw-ai-mvXkpTxf.js +0 -1
- package/dist/plugin-sdk/pw-ai-tdgA-KlG.js +0 -1
- package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +0 -1
- package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +0 -1
- package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +0 -1
- package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +0 -1
- package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +0 -1
- package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +0 -1
- package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-CAboqtWr.js +0 -1
- package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +0 -1
- package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +0 -1
- package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +0 -1
- package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +0 -1
- package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +0 -1
- package/dist/plugin-sdk/qwen-portal-auth.cjs +0 -1
- package/dist/plugin-sdk/qwen-portal-auth.js +0 -1
- package/dist/plugin-sdk/render-6fCdtAr6.cjs +0 -1
- package/dist/plugin-sdk/render-CBsnn-2A.js +0 -1
- package/dist/plugin-sdk/render-CzHaQB0d.cjs +0 -1
- package/dist/plugin-sdk/render-DGmfCIRG.js +0 -1
- package/dist/plugin-sdk/render-DhTJXP1U.js +0 -1
- package/dist/plugin-sdk/render-Djx15dPh.js +0 -1
- package/dist/plugin-sdk/render-DxBO2Blp.cjs +0 -1
- package/dist/plugin-sdk/render-g5VlmgpF.cjs +0 -1
- package/dist/plugin-sdk/reply-73PF8kN_.js +0 -1
- package/dist/plugin-sdk/reply-JD6VIW5N.cjs +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-BNv_T3Bk.js +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-CDM7_xfU.cjs +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-CvKfootv.js +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-Fq8une1d.cjs +0 -1
- package/dist/plugin-sdk/send-0TzQg7Eo.js +0 -1
- package/dist/plugin-sdk/send-AyV5r86J.js +0 -1
- package/dist/plugin-sdk/send-B-GqqrNy.js +0 -1
- package/dist/plugin-sdk/send-B03So6fs.cjs +0 -1
- package/dist/plugin-sdk/send-B0oV0qgS.js +0 -1
- package/dist/plugin-sdk/send-B31Tjl_I.cjs +0 -1
- package/dist/plugin-sdk/send-B4LTVhTd.cjs +0 -1
- package/dist/plugin-sdk/send-BGXPpAqy.cjs +0 -1
- package/dist/plugin-sdk/send-BJ957TYU.js +0 -1
- package/dist/plugin-sdk/send-BJmf3HVn.cjs +0 -1
- package/dist/plugin-sdk/send-BW3UECzm.js +0 -1
- package/dist/plugin-sdk/send-BWEZ_8nL.cjs +0 -1
- package/dist/plugin-sdk/send-BXrh73qh.cjs +0 -1
- package/dist/plugin-sdk/send-BbudHjUi.cjs +0 -1
- package/dist/plugin-sdk/send-BkjnUdWv.cjs +0 -1
- package/dist/plugin-sdk/send-BxIt-s7G.cjs +0 -1
- package/dist/plugin-sdk/send-ByKNfU2S.js +0 -1
- package/dist/plugin-sdk/send-Bz2Loz_Q.cjs +0 -1
- package/dist/plugin-sdk/send-CAreQYLU.cjs +0 -1
- package/dist/plugin-sdk/send-CGMqeSaY.cjs +0 -1
- package/dist/plugin-sdk/send-CJmor6eC.js +0 -1
- package/dist/plugin-sdk/send-CL2pl8br.cjs +0 -1
- package/dist/plugin-sdk/send-CMeGMLko.js +0 -1
- package/dist/plugin-sdk/send-CceHBxiK.js +0 -1
- package/dist/plugin-sdk/send-Cdx_KGYb.js +0 -1
- package/dist/plugin-sdk/send-Cer1bA2g.cjs +0 -1
- package/dist/plugin-sdk/send-CimU95QQ.cjs +0 -1
- package/dist/plugin-sdk/send-CoEAieJt.cjs +0 -1
- package/dist/plugin-sdk/send-Cob_bnT32.js +0 -1
- package/dist/plugin-sdk/send-Cyp5hOpt.js +0 -1
- package/dist/plugin-sdk/send-CzEFjTpi.js +0 -1
- package/dist/plugin-sdk/send-D2LjU2py.js +0 -1
- package/dist/plugin-sdk/send-D9Gbseeh.cjs +0 -1
- package/dist/plugin-sdk/send-DIjQ2vB4.js +0 -1
- package/dist/plugin-sdk/send-DJ419AIX.cjs +0 -1
- package/dist/plugin-sdk/send-DLtYxO1e.cjs +0 -1
- package/dist/plugin-sdk/send-DMk529J8.js +0 -1
- package/dist/plugin-sdk/send-DMxohaL_.cjs +0 -1
- package/dist/plugin-sdk/send-DQlKz6Bj.js +0 -1
- package/dist/plugin-sdk/send-DTUW-YBy.js +0 -1
- package/dist/plugin-sdk/send-Dc43nN-I.js +0 -1
- package/dist/plugin-sdk/send-DcRj8DUU.cjs +0 -1
- package/dist/plugin-sdk/send-DmxxJFZd.cjs +0 -1
- package/dist/plugin-sdk/send-DnwN1vBU.cjs +0 -1
- package/dist/plugin-sdk/send-DogBiU4n.cjs +0 -1
- package/dist/plugin-sdk/send-MEvv6c7w.js +0 -1
- package/dist/plugin-sdk/send-TRwokuAm.cjs +0 -1
- package/dist/plugin-sdk/send-VUSa_wkg.js +0 -1
- package/dist/plugin-sdk/send-X1b7Cj9U.cjs +0 -1
- package/dist/plugin-sdk/send-XX5rP5bI.js +0 -1
- package/dist/plugin-sdk/send-_ZGBA2sz.js +0 -1
- package/dist/plugin-sdk/send-d5RoIkxA.js +0 -1
- package/dist/plugin-sdk/send-dCbQnCLx.js +0 -1
- package/dist/plugin-sdk/send-gSV6SR6F.cjs +0 -1
- package/dist/plugin-sdk/send-pC6ctwfQ.cjs +0 -1
- package/dist/plugin-sdk/send-pq2hNOwv.cjs +0 -1
- package/dist/plugin-sdk/send-q6C-1cdJ.js +0 -1
- package/dist/plugin-sdk/send-vnIJSD5l.js +0 -1
- package/dist/plugin-sdk/send-vtYROJNd.js +0 -1
- package/dist/plugin-sdk/send-wk_Y38Eq.js +0 -1
- package/dist/plugin-sdk/session-BSLJWzVk.cjs +0 -1
- package/dist/plugin-sdk/session-BfWC0c92.js +0 -1
- package/dist/plugin-sdk/session-BjsaXe-G.js +0 -1
- package/dist/plugin-sdk/session-C20nSfk5.cjs +0 -1
- package/dist/plugin-sdk/session-CR8fsPgs.js +0 -1
- package/dist/plugin-sdk/session-CwinrWG4.cjs +0 -1
- package/dist/plugin-sdk/session-DAtRSLdw.cjs +0 -1
- package/dist/plugin-sdk/session-Djo63EGV.cjs +0 -1
- package/dist/plugin-sdk/session-EJZkCm6l.js +0 -1
- package/dist/plugin-sdk/session-UIRgeq02.cjs +0 -1
- package/dist/plugin-sdk/session-aOZKTEyZ.js +0 -1
- package/dist/plugin-sdk/session-nUw21fi0.js +0 -1
- package/dist/plugin-sdk/sessions-B06a3AKE.js +0 -1
- package/dist/plugin-sdk/sessions-BmhjMXlm.cjs +0 -1
- package/dist/plugin-sdk/signal.cjs +0 -1
- package/dist/plugin-sdk/signal.js +0 -1
- package/dist/plugin-sdk/skill-commands-2LXH0aZR.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-B4AbCkKe.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-B_xNpuH_.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-BbAfKA1R.js +0 -1
- package/dist/plugin-sdk/skill-commands-BcKIgHAP.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-C9g2UiKr.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-CPZ9Jvbj.js +0 -1
- package/dist/plugin-sdk/skill-commands-CgDUjb3J.js +0 -1
- package/dist/plugin-sdk/skill-commands-D83BLBEG.js +0 -1
- package/dist/plugin-sdk/skill-commands-DI1TMUxQ.js +0 -1
- package/dist/plugin-sdk/skill-commands-DldIiKD1.js +0 -1
- package/dist/plugin-sdk/skill-commands-LCW6nWWC.cjs +0 -1
- package/dist/plugin-sdk/slack.cjs +0 -1
- package/dist/plugin-sdk/slack.js +0 -1
- package/dist/plugin-sdk/synology-chat.cjs +0 -1
- package/dist/plugin-sdk/synology-chat.js +0 -1
- package/dist/plugin-sdk/tables-BXY1ms0X.js +0 -1
- package/dist/plugin-sdk/tables-BlhpY72l.cjs +0 -1
- package/dist/plugin-sdk/tables-BltHUi44.cjs +0 -1
- package/dist/plugin-sdk/tables-Bp6t_Jkb.js +0 -1
- package/dist/plugin-sdk/tables-BszYJkqX.cjs +0 -1
- package/dist/plugin-sdk/tables-CAZJt5bp.js +0 -1
- package/dist/plugin-sdk/tables-CcuiVH-P.cjs +0 -1
- package/dist/plugin-sdk/tables-CuSMtUxt.cjs +0 -1
- package/dist/plugin-sdk/tables-DOLEnfD6.js +0 -1
- package/dist/plugin-sdk/tables-DiiF7bbj.cjs +0 -1
- package/dist/plugin-sdk/tables-aSJP6Sef.js +0 -1
- package/dist/plugin-sdk/tables-ib4GZqYB.js +0 -1
- package/dist/plugin-sdk/target-errors--anbEDnm.js +0 -1
- package/dist/plugin-sdk/target-errors-4q9SUsM_.js +0 -1
- package/dist/plugin-sdk/target-errors-BFOTHcjO.js +0 -1
- package/dist/plugin-sdk/target-errors-Bw4tI2Lc.cjs +0 -1
- package/dist/plugin-sdk/target-errors-CAgwWHUv.js +0 -1
- package/dist/plugin-sdk/target-errors-CUDKM0z-.js +0 -1
- package/dist/plugin-sdk/target-errors-DIOJ6Eun.cjs +0 -1
- package/dist/plugin-sdk/target-errors-DnZq9h4B.cjs +0 -1
- package/dist/plugin-sdk/target-errors-DwAKh8KU.cjs +0 -1
- package/dist/plugin-sdk/target-errors-QGzfLvuU.cjs +0 -1
- package/dist/plugin-sdk/targets-BSc11Uk8.cjs +0 -1
- package/dist/plugin-sdk/targets-BSkiizml.js +0 -1
- package/dist/plugin-sdk/targets-CBI0xqve.cjs +0 -1
- package/dist/plugin-sdk/targets-CL5fYQi7.js +0 -1
- package/dist/plugin-sdk/targets-CUZWrFrm.cjs +0 -1
- package/dist/plugin-sdk/targets-CVEYTFPQ.js +0 -1
- package/dist/plugin-sdk/targets-Co2R6K14.cjs +0 -1
- package/dist/plugin-sdk/targets-CrkJkzil.js +0 -1
- package/dist/plugin-sdk/targets-D-m7SV9x.cjs +0 -1
- package/dist/plugin-sdk/targets-D8HTxbo4.js +0 -1
- package/dist/plugin-sdk/targets-DcGNB9nk.cjs +0 -1
- package/dist/plugin-sdk/targets-Dn9gDiEw.js +0 -1
- package/dist/plugin-sdk/targets-X28mff4s.cjs +0 -1
- package/dist/plugin-sdk/targets-uycXZ8vQ.js +0 -1
- package/dist/plugin-sdk/telegram.cjs +0 -1
- package/dist/plugin-sdk/telegram.js +0 -1
- package/dist/plugin-sdk/test-utils.cjs +0 -1
- package/dist/plugin-sdk/test-utils.js +0 -1
- package/dist/plugin-sdk/tlon.cjs +0 -1
- package/dist/plugin-sdk/tlon.js +0 -1
- package/dist/plugin-sdk/tokens-AAdZjj0M.js +0 -1
- package/dist/plugin-sdk/tokens-B20KNIDD.js +0 -1
- package/dist/plugin-sdk/tokens-B8ys7Q2e.js +0 -1
- package/dist/plugin-sdk/tokens-BPc1fcZ3.js +0 -1
- package/dist/plugin-sdk/tokens-BqABmXSe.js +0 -1
- package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +0 -1
- package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +0 -1
- package/dist/plugin-sdk/tokens-CytSl1X8.cjs +0 -1
- package/dist/plugin-sdk/tokens-DgPZk2Uu.js +0 -1
- package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +0 -1
- package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +0 -1
- package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +0 -1
- package/dist/plugin-sdk/twitch.cjs +0 -1
- package/dist/plugin-sdk/twitch.js +0 -1
- package/dist/plugin-sdk/utils-BJtJR72k.js +0 -1
- package/dist/plugin-sdk/utils-PPIvU9qw.cjs +0 -1
- package/dist/plugin-sdk/voice-call.cjs +0 -1
- package/dist/plugin-sdk/voice-call.js +0 -1
- package/dist/plugin-sdk/web--8MBOleK.js +0 -1
- package/dist/plugin-sdk/web-B7d3p3kx.cjs +0 -1
- package/dist/plugin-sdk/web-BEuW8Yqw.js +0 -1
- package/dist/plugin-sdk/web-Bg2LIMdb.cjs +0 -1
- package/dist/plugin-sdk/web-DFDao2So.cjs +0 -1
- package/dist/plugin-sdk/web-DjbeDvyv.js +0 -1
- package/dist/plugin-sdk/web-JciOW43P.js +0 -1
- package/dist/plugin-sdk/web-vSFigMHz.cjs +0 -1
- package/dist/plugin-sdk/weixin.cjs +0 -1
- package/dist/plugin-sdk/weixin.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-B67oFfeq.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-BB0eACkf.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-BIgrB0j5.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CFve14ju.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CdRkPw-b.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CtIBOGpJ.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CwAU7FuE.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-DQ1t5QTc.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-DkrN4BcG.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-DnkKzVrU.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-YcBsDZ88.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-wk1U2IVU.cjs +0 -1
- package/dist/plugin-sdk/whatsapp.cjs +0 -1
- package/dist/plugin-sdk/whatsapp.js +0 -1
- package/dist/plugin-sdk/zalo.cjs +0 -1
- package/dist/plugin-sdk/zalo.js +0 -1
- package/dist/plugin-sdk/zalouser.cjs +0 -1
- package/dist/plugin-sdk/zalouser.js +0 -1
- package/dist/plugins-CYLrFT4h.js +0 -1
- package/dist/plugins-DNlgeTTc.js +0 -1
- package/dist/plugins-cli-CnXgwZzI.js +0 -1
- package/dist/plugins-cli-PVHBZeb8.js +0 -1
- package/dist/polls-BIVz6a4F.js +0 -1
- package/dist/polls-Bh5wc9-6.js +0 -1
- package/dist/polls-C_XSFz3d.js +0 -1
- package/dist/polls-DKJOFSzJ.js +0 -1
- package/dist/ports-BAaLOkJp.js +2 -0
- package/dist/ports-DDWP1p0X.js +2 -0
- package/dist/probe-auth-C5nWfMS9.js +0 -1
- package/dist/probe-auth-x4OHS_wa.js +0 -1
- package/dist/profile-utils-CWmra1aY.js +0 -1
- package/dist/{program-ppBAyCNf.js → program-D53eGuSf.js} +1 -2
- package/dist/program-context-CH9p6anW.js +0 -1
- package/dist/{program-context-BXNpM3b4.js → program-context-n-ovYq69.js} +1 -2
- package/dist/progress-LNttnI-y.js +0 -1
- package/dist/progress-d1m2sqR1.js +0 -1
- package/dist/{prompt-select-styled-947JghKF.js → prompt-select-styled-DZnefcrY.js} +1 -2
- package/dist/{prompt-select-styled-1abs2MvK.js → prompt-select-styled-DolCW-_j.js} +1 -2
- package/dist/prompt-style-BThRSQJR.js +0 -1
- package/dist/prompt-style-CXKekIBY.js +0 -1
- package/dist/prompts-CMzglboN.js +0 -1
- package/dist/prompts-wv-lfVrJ.js +0 -1
- package/dist/provider-auth-helpers-BLm2bdp5.js +0 -1
- package/dist/provider-auth-helpers-DPz0vN_c.js +0 -1
- package/dist/provider-env-vars-D8p6Ohpj.js +0 -1
- package/dist/provider-env-vars-Dt0Q29Su.js +0 -1
- package/dist/proxy-env-BNhTHkd_.js +0 -1
- package/dist/proxy-env-DcmW_urA.js +0 -1
- package/dist/proxy-env-DrC3TIGh.js +0 -1
- package/dist/proxy-env-FJr5nlvs.js +0 -1
- package/dist/proxy-fetch-BADsUK4d.js +0 -1
- package/dist/proxy-fetch-BZ9O8Dvj.js +0 -1
- package/dist/proxy-fetch-DnjU1fEB.js +0 -1
- package/dist/proxy-fetch-gWETR3cl.js +0 -1
- package/dist/push-apns-BBv62ncV.js +0 -1
- package/dist/push-apns-DIV5dBPP.js +0 -1
- package/dist/pw-ai-C0gM3d-6.js +0 -1
- package/dist/pw-ai-CQd14BQa.js +0 -1
- package/dist/pw-ai-DiQuOf4W.js +0 -1
- package/dist/pw-ai-jlhIn-aA.js +0 -1
- package/dist/qmd-manager-C_e04BNg.js +0 -1
- package/dist/qmd-manager-DSQ_mDCl.js +0 -1
- package/dist/qmd-manager-DcBYbt_V.js +0 -1
- package/dist/qmd-manager-NLI0R6kp.js +0 -1
- package/dist/qr-cli-D06YZurm.js +0 -1
- package/dist/qr-cli-ZtDsXyLO.js +0 -1
- package/dist/query-expansion-0OxEb1Io.js +0 -1
- package/dist/query-expansion-BUUx_oWg.js +0 -1
- package/dist/query-expansion-r_iXkNzt.js +0 -1
- package/dist/reaction-level-DVPHL14p.js +0 -1
- package/dist/reaction-message-id-BEEe7X3D.js +0 -1
- package/dist/read-only-account-inspect-B0cm8yrv.js +0 -1
- package/dist/redact-3_CiXMY6.js +0 -1
- package/dist/redact-CnRxK70G.js +0 -1
- package/dist/register.agent-DHOTtB8X.js +0 -1
- package/dist/register.agent-DQdoMfmw.js +0 -1
- package/dist/register.backup-BDO3V0so.js +0 -1
- package/dist/register.backup-Vh8RK6fp.js +0 -1
- package/dist/register.configure-C2N82brC.js +0 -1
- package/dist/register.configure-C6zjzaEo.js +0 -1
- package/dist/{register.maintenance-Br9uoFKo.js → register.maintenance-CStaPxaB.js} +1 -2
- package/dist/{register.maintenance-Cm3wq9bt.js → register.maintenance-aKBTd9Zp.js} +1 -2
- package/dist/register.message-DHDcOA8X.js +0 -1
- package/dist/register.message-Dh72QHKA.js +0 -1
- package/dist/{register.onboard-AjrSlfCb.js → register.onboard-Bu9gpFlA.js} +1 -2
- package/dist/{register.onboard-zCG1PNWc.js → register.onboard-DB9FWAKT.js} +1 -2
- package/dist/{register.setup-DN0y_pth.js → register.setup-CeG2ETmr.js} +1 -2
- package/dist/{register.setup-Blyl_QsK.js → register.setup-D76IRs4s.js} +1 -2
- package/dist/register.status-health-sessions-Dtpd1P2M.js +0 -1
- package/dist/register.status-health-sessions-mPGKFjIz.js +0 -1
- package/dist/{register.subclis-5Pb-uEHk.js → register.subclis-Drp2dGBe.js} +1 -2
- package/dist/registry-BptzrW8D.js +0 -1
- package/dist/registry-hFAtCSWG.js +0 -1
- package/dist/render-BXEUPIHe.js +0 -1
- package/dist/render-CBsnn-2A.js +0 -1
- package/dist/render-D8OWO2hT.js +0 -1
- package/dist/render-DrrPmnMI.js +0 -1
- package/dist/reply-DwfVhea1.js +0 -1
- package/dist/restart-BeJuoXCx.js +0 -1
- package/dist/rpc-BBdeIvn0.js +0 -1
- package/dist/rpc-f85A4Ib_.js +0 -1
- package/dist/{run-main-DGwq5DIc.js → run-main-CjwjyWA6.js} +1 -2
- package/dist/runtime-CK7gqwEF.js +0 -1
- package/dist/runtime-DYttInEE.js +0 -1
- package/dist/runtime-guard-DFYBaYZS.js +0 -1
- package/dist/runtime-guard-DX2Ie4ri.js +0 -1
- package/dist/runtime-status-CqFBmdRd.js +0 -1
- package/dist/runtime-status-DszMjvJK.js +0 -1
- package/dist/runtime-web-tools-BYhCkBV8.js +0 -1
- package/dist/runtime-web-tools-C4F6aaRh.js +0 -1
- package/dist/sandbox-cli-BR0Lsru-.js +0 -1
- package/dist/sandbox-cli-Jo5nYeug.js +0 -1
- package/dist/scan-paths-C13EseXp.js +0 -1
- package/dist/scan-paths-CWtvWW40.js +0 -1
- package/dist/search-manager-CV2YsAym.js +0 -1
- package/dist/secret-file-C7JffiM_.js +0 -1
- package/dist/secret-file-D60EFEOe.js +0 -1
- package/dist/secret-file-DuWm26jS.js +0 -1
- package/dist/secrets-cli-B8kwyZFo.js +0 -1
- package/dist/secrets-cli-BstBe0UA.js +0 -1
- package/dist/secure-random-D7JQgiK-.js +0 -1
- package/dist/security-cli-C6t8OxaE.js +0 -1
- package/dist/security-cli-Cuc8IQKB.js +0 -1
- package/dist/send--9G8eXo4.js +0 -1
- package/dist/send-4h1tQwX3.js +0 -1
- package/dist/send-7qgAI0ap.js +0 -1
- package/dist/send-AQ3CJLpI.js +0 -1
- package/dist/send-BjrfjBn9.js +0 -1
- package/dist/send-BwblpWbK.js +0 -1
- package/dist/send-C4Lm4nmt.js +0 -1
- package/dist/send-C7rOdjPO.js +0 -1
- package/dist/send-COpehmAB.js +0 -1
- package/dist/send-CWVTcDAW.js +0 -1
- package/dist/send-CciNyaWL.js +0 -1
- package/dist/send-ChILboDj.js +0 -1
- package/dist/send-CyarIb2w.js +0 -1
- package/dist/send-DiHS8tKf.js +0 -1
- package/dist/send-Dj7NBAWg.js +0 -1
- package/dist/send-DmHpf5Fz.js +0 -1
- package/dist/send-NbU9-scF2.js +0 -1
- package/dist/send-hlES-kRl2.js +0 -1
- package/dist/send-swTiQAeK2.js +0 -1
- package/dist/send-vNcod64S.js +0 -1
- package/dist/server-C-lb98FO.js +0 -1
- package/dist/server-DwSkpKgC.js +0 -1
- package/dist/server-node-events-CL0pWoMa.js +0 -1
- package/dist/server-node-events-ChPQ984b.js +0 -1
- package/dist/service-BtB9epJk.js +0 -1
- package/dist/service-DZ9EbS15.js +0 -1
- package/dist/session-BSRnpwSq.js +0 -1
- package/dist/session-CfHCnrXh.js +0 -1
- package/dist/session-JqCxWBM8.js +0 -1
- package/dist/session-bk3gFwO4.js +0 -1
- package/dist/session-cost-usage-BgqKixv0.js +0 -1
- package/dist/session-cost-usage-CHtVgnE8.js +0 -1
- package/dist/session-key-C7F_iqYg.js +0 -1
- package/dist/session-key-D3P0tf5P.js +0 -1
- package/dist/session-utils-Bpdyx2A2.js +0 -1
- package/dist/sessions-Ca6ozRCQ.js +0 -1
- package/dist/shared-9x5sqYRb.js +0 -1
- package/dist/shared-BKWhOp64.js +0 -1
- package/dist/shared-Ca5BFwta.js +0 -1
- package/dist/skill-commands-CPZcaV8-.js +0 -1
- package/dist/skill-commands-CtprBvm0.js +0 -1
- package/dist/skill-commands-DCqPy_Aa.js +0 -1
- package/dist/skill-commands-DlHVddAk.js +0 -1
- package/dist/skill-scanner-CUUF3Fvo.js +0 -1
- package/dist/skill-scanner-CkxXNioD.js +0 -1
- package/dist/skills-Bz_S4lPh.js +0 -1
- package/dist/skills-CzUpDbU-.js +0 -1
- package/dist/skills-cli-DK0QDfln.js +0 -1
- package/dist/skills-cli-DLmqhAB-.js +0 -1
- package/dist/skills-install-D3YB2C-S.js +0 -1
- package/dist/skills-install-cEcqzaX8.js +0 -1
- package/dist/skills-status-D4Y1BJYL.js +0 -1
- package/dist/skills-status-DpSboPY1.js +0 -1
- package/dist/sqlite-CILF3z9U.js +0 -1
- package/dist/stagger-DmFYysrJ.js +0 -1
- package/dist/stagger-DxzgG2jd.js +0 -1
- package/dist/status-BAat65xo.js +0 -1
- package/dist/status-BSHWBrg0.js +0 -1
- package/dist/status-o3Gfr-6l.js +0 -1
- package/dist/status-w4NsjW2R.js +0 -1
- package/dist/status.update-B_8Gumuc.js +0 -1
- package/dist/status.update-_2r0S6Re.js +0 -1
- package/dist/string-normalization-BrUPaXaM.js +0 -1
- package/dist/string-normalization-DJT5zuUF.js +0 -1
- package/dist/subsystem-BLbY429l.js +0 -1
- package/dist/subsystem-Bc2XrjUz.js +0 -1
- package/dist/subsystem-C5XF2Fy5.js +0 -1
- package/dist/system-cli-Ddixb0SQ.js +0 -1
- package/dist/system-cli-NAH97F2s.js +0 -1
- package/dist/system-run-command-DsWBVvSK.js +0 -1
- package/dist/system-run-command-E8ymBXHh.js +0 -1
- package/dist/systemd-D7odsu4K.js +0 -1
- package/dist/systemd-DbevZh65.js +0 -1
- package/dist/systemd-hints-CEQj6yrs.js +0 -1
- package/dist/systemd-hints-lXpMy-kY.js +0 -1
- package/dist/systemd-linger-C2MJD6KG.js +0 -1
- package/dist/systemd-linger-cWKbFNpu.js +0 -1
- package/dist/table-CR7TFMew.js +0 -1
- package/dist/table-CY440fI1.js +0 -1
- package/dist/tables-D6J-isob.js +0 -1
- package/dist/tables-DENKrP-W.js +0 -1
- package/dist/tables-_t5V36m9.js +0 -1
- package/dist/tables-fl9iXahm.js +0 -1
- package/dist/target-errors-CoEHv_2r.js +0 -1
- package/dist/target-errors-D6wejRd6.js +0 -1
- package/dist/target-errors-Dnkqss9y.js +0 -1
- package/dist/target-errors-sMFXKeAY.js +0 -1
- package/dist/targets-4EaxWBal.js +0 -1
- package/dist/targets-BJTo7bqu.js +0 -1
- package/dist/targets-BYVMrXDf.js +0 -1
- package/dist/targets-Bq6rS6-Z.js +0 -1
- package/dist/targets-CL5fYQi7.js +0 -1
- package/dist/targets-fozeWOOg.js +0 -1
- package/dist/targets-m_41k_Mv.js +0 -1
- package/dist/telegram/audit.js +0 -1
- package/dist/text-format-CvrvBBre.js +0 -1
- package/dist/text-format-DEWK6oCT.js +0 -1
- package/dist/token-DnTmiyJu.js +0 -1
- package/dist/tokens-B2fq-rL6.js +0 -1
- package/dist/tokens-CL2fSjGl.js +0 -1
- package/dist/tokens-DRM8vzJx.js +0 -1
- package/dist/tokens-XGbQGn67.js +0 -1
- package/dist/tool-display-DJDtttQg.js +0 -1
- package/dist/tool-display-DjuSUUbH.js +0 -1
- package/dist/tui-5Znjl2Rb.js +0 -1
- package/dist/tui-Tlww_AcE.js +0 -1
- package/dist/tui-cli-C9QPsw50.js +0 -1
- package/dist/tui-cli-FxvETbln.js +0 -1
- package/dist/types.secrets-C-5U96pc.js +0 -1
- package/dist/types.secrets-D4tbc3Wq.js +0 -1
- package/dist/update-CMneH_48.js +0 -1
- package/dist/update-D9EwPybG.js +0 -1
- package/dist/{update-cli-BQGwMpHe.js → update-cli-CL_cUjuq.js} +1 -2
- package/dist/{update-cli-C7pZTXS8.js → update-cli-DU5tRH3c.js} +1 -2
- package/dist/update-runner-DABdlxfN.js +0 -1
- package/dist/update-runner-DG-1TYYc.js +0 -1
- package/dist/usage-format-BWD8FJFL.js +0 -1
- package/dist/usage-format-yPwal8Iz.js +0 -1
- package/dist/utils-CGdo13HV.js +0 -1
- package/dist/utils-D3t-vPka.js +0 -1
- package/dist/utils-R-mFyVJi.js +0 -1
- package/dist/utils-UGOV_184.js +0 -1
- package/dist/version-q3SkUw2K.js +0 -1
- package/dist/warning-filter.js +0 -1
- package/dist/web-Dfi2WjvN.js +0 -1
- package/dist/web-u71NbOpT.js +0 -1
- package/dist/webhooks-cli-DMTzhfTv.js +0 -1
- package/dist/webhooks-cli-ICOwBPSv.js +0 -1
- package/dist/whatsapp-actions-Bdf-3-ne.js +0 -1
- package/dist/whatsapp-actions-D2qMOK3a.js +0 -1
- package/dist/whatsapp-actions-f5CsM5EM.js +0 -1
- package/dist/whatsapp-actions-t88tyNUT.js +0 -1
- package/dist/widearea-dns-BDx7vkV2.js +0 -1
- package/dist/widearea-dns-BFjqKXu_.js +0 -1
- package/dist/windows-spawn-7oINn5ao.js +0 -1
- package/dist/windows-spawn-AB7ItGAE.js +0 -1
- package/dist/with-timeout-WveKxvFV.js +0 -1
- package/dist/with-timeout-c1CzdShT.js +0 -1
- package/dist/workspace-B0ZQeHXg.js +0 -1
- package/dist/workspace-C45T1Cxg.js +0 -1
- package/dist/workspace-dirs-A8Vib9_B.js +0 -1
- package/dist/workspace-dirs-BhF1Dzxt.js +0 -1
- package/dist/workspace-xNEpaJvu.js +0 -1
- package/dist/wsl-DHxB2Ew_.js +0 -1
- package/dist/wsl-Ok7GaSJ6.js +0 -1
- package/extensions/qqbrowser-skill-control/index.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +1 -1
- package/node_modules/@google/genai/dist/index.cjs +341 -180
- package/node_modules/@google/genai/dist/index.mjs +341 -180
- package/node_modules/@google/genai/dist/node/index.cjs +341 -180
- package/node_modules/@google/genai/dist/node/index.mjs +341 -180
- package/node_modules/@google/genai/dist/tokenizer/node.cjs +100 -0
- package/node_modules/@google/genai/dist/tokenizer/node.mjs +100 -0
- package/node_modules/@google/genai/dist/vertex_internal/index.cjs +103 -2
- package/node_modules/@google/genai/dist/vertex_internal/index.js +103 -2
- package/node_modules/@google/genai/dist/web/index.mjs +342 -180
- package/node_modules/@google/genai/package.json +1 -1
- package/node_modules/@slack/web-api/dist/instrument.js +13 -1
- package/node_modules/@slack/web-api/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +154 -61
- package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
- package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +41 -0
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +20 -5
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
- package/node_modules/@smithy/util-endpoints/package.json +1 -1
- package/node_modules/discord-api-types/package.json +1 -1
- package/node_modules/discord-api-types/payloads/index.mjs +3 -0
- package/node_modules/discord-api-types/payloads/v10/index.mjs +3 -0
- package/node_modules/discord-api-types/payloads/v10/message.js +55 -2
- package/node_modules/discord-api-types/payloads/v10/user.js +2 -0
- package/node_modules/discord-api-types/payloads/v9/index.mjs +3 -0
- package/node_modules/discord-api-types/payloads/v9/message.js +55 -2
- package/node_modules/discord-api-types/payloads/v9/user.js +2 -0
- package/node_modules/discord-api-types/rest/v10/channel.js +6 -0
- package/node_modules/discord-api-types/rest/v9/channel.js +6 -0
- package/node_modules/discord-api-types/v10.mjs +3 -0
- package/node_modules/discord-api-types/v9.mjs +3 -0
- package/node_modules/undici/package.json +1 -1
- package/package.json +2 -1
- package/dist/ports-Dylc6TrH.js +0 -3
- package/dist/ports-hkqQXSus.js +0 -3
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/LICENSE +0 -22
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/Readme.md +0 -1157
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/LICENSE +0 -21
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/README.md +0 -208
- package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +0 -3
- package/node_modules/@anthropic-ai/sdk/src/core/README.md +0 -3
- package/node_modules/@anthropic-ai/sdk/src/internal/README.md +0 -3
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +0 -201
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +0 -62
- package/node_modules/@buape/carbon/node_modules/@discordjs/voice/LICENSE +0 -191
- package/node_modules/@buape/carbon/node_modules/@discordjs/voice/README.md +0 -112
- package/node_modules/@buape/carbon/node_modules/discord-api-types/LICENSE +0 -21
- package/node_modules/@buape/carbon/node_modules/discord-api-types/README.md +0 -102
- package/node_modules/@buape/carbon/node_modules/ws/LICENSE +0 -20
- package/node_modules/@buape/carbon/node_modules/ws/README.md +0 -548
- package/node_modules/@line/bot-sdk/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +0 -15
- package/node_modules/@line/bot-sdk/node_modules/undici-types/LICENSE +0 -21
- package/node_modules/@line/bot-sdk/node_modules/undici-types/README.md +0 -6
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@sinclair/typebox/license +0 -25
- package/node_modules/@sinclair/typebox/readme.md +0 -1865
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/license +0 -9
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/readme.md +0 -1077
- package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/license +0 -9
- package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/readme.md +0 -192
- package/node_modules/ansi-regex/license +0 -9
- package/node_modules/ansi-regex/readme.md +0 -66
- package/node_modules/ansi-styles/license +0 -9
- package/node_modules/ansi-styles/readme.md +0 -152
- package/node_modules/atomic-sleep/readme.md +0 -58
- package/node_modules/axios/lib/adapters/README.md +0 -36
- package/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/bytes/History.md +0 -97
- package/node_modules/bytes/Readme.md +0 -152
- package/node_modules/chalk/license +0 -9
- package/node_modules/chalk/readme.md +0 -297
- package/node_modules/cli-highlight/node_modules/chalk/license +0 -9
- package/node_modules/cli-highlight/node_modules/chalk/readme.md +0 -341
- package/node_modules/cliui/node_modules/ansi-regex/license +0 -9
- package/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/cliui/node_modules/strip-ansi/license +0 -9
- package/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/combined-stream/License +0 -19
- package/node_modules/combined-stream/Readme.md +0 -138
- package/node_modules/commander/Readme.md +0 -1176
- package/node_modules/cookie-signature/History.md +0 -70
- package/node_modules/cookie-signature/Readme.md +0 -23
- package/node_modules/css-what/readme.md +0 -69
- package/node_modules/delayed-stream/License +0 -19
- package/node_modules/delayed-stream/Readme.md +0 -141
- package/node_modules/depd/History.md +0 -103
- package/node_modules/depd/Readme.md +0 -280
- package/node_modules/domelementtype/readme.md +0 -1
- package/node_modules/domhandler/readme.md +0 -92
- package/node_modules/domutils/readme.md +0 -31
- package/node_modules/entities/readme.md +0 -122
- package/node_modules/escalade/license +0 -9
- package/node_modules/escalade/readme.md +0 -211
- package/node_modules/escape-html/Readme.md +0 -43
- package/node_modules/express/Readme.md +0 -276
- package/node_modules/express-rate-limit/license.md +0 -20
- package/node_modules/express-rate-limit/readme.md +0 -136
- package/node_modules/extract-zip/readme.md +0 -57
- package/node_modules/fast-string-truncated-width/license +0 -21
- package/node_modules/fast-string-truncated-width/readme.md +0 -60
- package/node_modules/fast-string-width/license +0 -21
- package/node_modules/fast-string-width/readme.md +0 -45
- package/node_modules/file-type/license +0 -9
- package/node_modules/file-type/readme.md +0 -667
- package/node_modules/form-data/License +0 -19
- package/node_modules/form-data/node_modules/mime-db/HISTORY.md +0 -507
- package/node_modules/form-data/node_modules/mime-db/LICENSE +0 -23
- package/node_modules/form-data/node_modules/mime-db/README.md +0 -100
- package/node_modules/form-data/node_modules/mime-types/HISTORY.md +0 -397
- package/node_modules/form-data/node_modules/mime-types/LICENSE +0 -23
- package/node_modules/form-data/node_modules/mime-types/README.md +0 -113
- package/node_modules/gaxios/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/gaxios/node_modules/agent-base/README.md +0 -69
- package/node_modules/gaxios/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/gaxios/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/get-east-asian-width/license +0 -9
- package/node_modules/get-east-asian-width/readme.md +0 -65
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/readme.md +0 -124
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/LICENSE +0 -22
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/README.md +0 -61
- package/node_modules/grammy/node_modules/node-fetch/LICENSE.md +0 -22
- package/node_modules/grammy/node_modules/node-fetch/README.md +0 -634
- package/node_modules/has-flag/license +0 -9
- package/node_modules/has-flag/readme.md +0 -89
- package/node_modules/htmlparser2/node_modules/entities/LICENSE +0 -11
- package/node_modules/htmlparser2/node_modules/entities/readme.md +0 -143
- package/node_modules/http-proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/http-proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/is-stream/license +0 -9
- package/node_modules/is-stream/readme.md +0 -60
- package/node_modules/jws/readme.md +0 -255
- package/node_modules/libsignal/native/ed25519/sha512/LICENSE.txt +0 -20
- package/node_modules/libsignal/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/libsignal/node_modules/@types/node/README.md +0 -16
- package/node_modules/libsignal/node_modules/long/LICENSE +0 -202
- package/node_modules/libsignal/node_modules/long/README.md +0 -246
- package/node_modules/libsignal/node_modules/protobufjs/LICENSE +0 -39
- package/node_modules/libsignal/node_modules/protobufjs/README.md +0 -879
- package/node_modules/libsignal/node_modules/protobufjs/cli/LICENSE +0 -33
- package/node_modules/libsignal/node_modules/protobufjs/cli/README.md +0 -11
- package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +0 -21
- package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +0 -23
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/license +0 -21
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/readme.md +0 -32
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/LICENSE +0 -21
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/README.md +0 -314
- package/node_modules/libsignal/node_modules/protobufjs/dist/README.md +0 -31
- package/node_modules/libsignal/node_modules/protobufjs/dist/light/README.md +0 -31
- package/node_modules/libsignal/node_modules/protobufjs/dist/minimal/README.md +0 -31
- package/node_modules/libsignal/node_modules/protobufjs/ext/debug/README.md +0 -4
- package/node_modules/libsignal/node_modules/protobufjs/ext/descriptor/README.md +0 -72
- package/node_modules/libsignal/node_modules/protobufjs/google/LICENSE +0 -27
- package/node_modules/libsignal/node_modules/protobufjs/google/README.md +0 -1
- package/node_modules/lie/license.md +0 -7
- package/node_modules/linkedom/node_modules/html-escaper/LICENSE.txt +0 -19
- package/node_modules/linkedom/node_modules/html-escaper/README.md +0 -110
- package/node_modules/merge-descriptors/license +0 -11
- package/node_modules/merge-descriptors/readme.md +0 -55
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/node-edge-tts/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/node-edge-tts/node_modules/agent-base/README.md +0 -69
- package/node_modules/node-edge-tts/node_modules/ansi-regex/license +0 -9
- package/node_modules/node-edge-tts/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/node-edge-tts/node_modules/cliui/LICENSE.txt +0 -14
- package/node_modules/node-edge-tts/node_modules/cliui/README.md +0 -141
- package/node_modules/node-edge-tts/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/node-edge-tts/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/node-edge-tts/node_modules/strip-ansi/license +0 -9
- package/node_modules/node-edge-tts/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/node-edge-tts/node_modules/yargs/LICENSE +0 -21
- package/node_modules/node-edge-tts/node_modules/yargs/README.md +0 -204
- package/node_modules/node-edge-tts/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/node_modules/node-edge-tts/node_modules/yargs-parser/README.md +0 -518
- package/node_modules/object-assign/license +0 -21
- package/node_modules/object-assign/readme.md +0 -61
- package/node_modules/object-inspect/readme.markdown +0 -84
- package/node_modules/openai/src/_vendor/partial-json-parser/README.md +0 -3
- package/node_modules/openai/src/_vendor/zod-to-json-schema/LICENSE +0 -15
- package/node_modules/openai/src/_vendor/zod-to-json-schema/README.md +0 -3
- package/node_modules/openai/src/core/README.md +0 -3
- package/node_modules/openai/src/internal/README.md +0 -3
- package/node_modules/openai/src/internal/qs/LICENSE.md +0 -13
- package/node_modules/openai/src/internal/qs/README.md +0 -3
- package/node_modules/p-finally/license +0 -21
- package/node_modules/p-finally/readme.md +0 -47
- package/node_modules/p-queue/license +0 -9
- package/node_modules/p-queue/node_modules/eventemitter3/LICENSE +0 -21
- package/node_modules/p-queue/node_modules/eventemitter3/README.md +0 -94
- package/node_modules/p-queue/readme.md +0 -400
- package/node_modules/p-retry/license +0 -9
- package/node_modules/p-retry/readme.md +0 -148
- package/node_modules/p-timeout/license +0 -9
- package/node_modules/p-timeout/readme.md +0 -87
- package/node_modules/pac-proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/pac-proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/pako/lib/zlib/README +0 -59
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/LICENSE +0 -19
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/README.md +0 -38
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/path-to-regexp/Readme.md +0 -224
- package/node_modules/pino-std-serializers/Readme.md +0 -182
- package/node_modules/process-nextick-args/license.md +0 -19
- package/node_modules/process-nextick-args/readme.md +0 -18
- package/node_modules/proper-lockfile/node_modules/retry/License +0 -21
- package/node_modules/proper-lockfile/node_modules/retry/README.md +0 -227
- package/node_modules/protobufjs/ext/debug/README.md +0 -4
- package/node_modules/protobufjs/ext/descriptor/README.md +0 -72
- package/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE +0 -19
- package/node_modules/proxy-addr/node_modules/ipaddr.js/README.md +0 -233
- package/node_modules/proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/proxy-agent/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/proxy-agent/node_modules/lru-cache/README.md +0 -1117
- package/node_modules/proxy-agent/node_modules/proxy-from-env/LICENSE +0 -20
- package/node_modules/proxy-agent/node_modules/proxy-from-env/README.md +0 -131
- package/node_modules/qified/node_modules/hookified/LICENSE +0 -19
- package/node_modules/qified/node_modules/hookified/README.md +0 -1682
- package/node_modules/quick-format-unescaped/readme.md +0 -66
- package/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/readable-stream/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/require-from-string/license +0 -21
- package/node_modules/require-from-string/readme.md +0 -56
- package/node_modules/retry/License +0 -21
- package/node_modules/router/node_modules/is-promise/LICENSE +0 -19
- package/node_modules/router/node_modules/is-promise/readme.md +0 -33
- package/node_modules/safe-stable-stringify/readme.md +0 -179
- package/node_modules/safer-buffer/Readme.md +0 -156
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/sisteransi/license +0 -21
- package/node_modules/sisteransi/readme.md +0 -113
- package/node_modules/socks-proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/socks-proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/string-width/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/string-width/node_modules/strip-ansi/license +0 -9
- package/node_modules/string-width/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/string-width/readme.md +0 -50
- package/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/string_decoder/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/strip-ansi/license +0 -9
- package/node_modules/strip-ansi/readme.md +0 -37
- package/node_modules/supports-color/license +0 -9
- package/node_modules/supports-color/readme.md +0 -76
- package/node_modules/uint8array-extras/license +0 -9
- package/node_modules/uint8array-extras/readme.md +0 -318
- package/node_modules/undici/lib/web/fetch/LICENSE +0 -21
- package/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/wrap-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/yoctocolors/license +0 -9
- package/node_modules/yoctocolors/readme.md +0 -138
- package/node_modules/zod-to-json-schema/changelog.md +0 -83
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import{_ as e}from"./paths-B4IRk3wi.js";import{t}from"./session-key-D3P0tf5P.js";import n from"node:fs";import r from"node:path";import i from"node:crypto";import a from"node:net";async function o(e){let{socketPath:t,payload:n,timeoutMs:r,accept:i}=e;return await new Promise(e=>{let o=new a.Socket,s=!1,c=``,l=t=>{if(!s){s=!0;try{o.destroy()}catch{}e(t)}},u=setTimeout(()=>l(null),r);o.on(`error`,()=>l(null)),o.connect(t,()=>{o.write(`${n}\n`)}),o.on(`data`,e=>{c+=e.toString(`utf8`);let t=c.indexOf(`
|
|
2
2
|
`);for(;t!==-1;){let e=c.slice(0,t).trim();if(c=c.slice(t+1),t=c.indexOf(`
|
|
3
3
|
`),e)try{let t=i(JSON.parse(e));if(t===void 0)continue;clearTimeout(u),l(t);return}catch{}}})})}function s(e){let t=e?.trim().toLowerCase();return t===`sandbox`||t===`gateway`||t===`node`?t:null}function c(e){let t=e?.trim().toLowerCase();return t===`deny`||t===`allowlist`||t===`full`?t:null}function l(e){let t=e?.trim().toLowerCase();return t===`off`||t===`on-miss`||t===`always`?t:null}const u=12e4;function d(e){return i.createHash(`sha256`).update(e??``).digest(`hex`)}function f(){return e(`~/.qbotclaw/exec-approvals.json`)}function p(){return e(`~/.qbotclaw/exec-approvals.sock`)}function m(e){let t=e?.trim()??``;return t?t.toLowerCase():null}function h(e,t){let n=[],r=new Set,i=e=>{let t=m(e.pattern);!t||r.has(t)||(r.add(t),n.push(e))};for(let t of e.allowlist??[])i(t);for(let e of t.allowlist??[])i(e);return{security:e.security??t.security,ask:e.ask??t.ask,askFallback:e.askFallback??t.askFallback,autoAllowSkills:e.autoAllowSkills??t.autoAllowSkills,allowlist:n.length>0?n:void 0}}function g(e){let t=r.dirname(e);n.mkdirSync(t,{recursive:!0})}function _(e){if(!Array.isArray(e)||e.length===0)return Array.isArray(e)?e:void 0;let t=!1,n=[];for(let r of e)if(typeof r==`string`){let e=r.trim();e&&n.push({pattern:e}),t=!0}else if(r&&typeof r==`object`&&!Array.isArray(r)){let e=r.pattern;typeof e==`string`&&e.trim().length>0?n.push(r):t=!0}else t=!0;return t?n.length>0?n:void 0:e}function v(e){if(!Array.isArray(e)||e.length===0)return e;let t=!1,n=e.map(e=>e.id?e:(t=!0,{...e,id:i.randomUUID()}));return t?n:e}function y(e){let n=e.socket?.path?.trim(),r=e.socket?.token?.trim(),i={...e.agents},a=i.default;if(a){let e=i[t];i[t]=e?h(e,a):a,delete i.default}for(let[e,t]of Object.entries(i)){let n=v(_(t.allowlist));n!==t.allowlist&&(i[e]={...t,allowlist:n})}return{version:1,socket:{path:n&&n.length>0?n:void 0,token:r&&r.length>0?r:void 0},defaults:{security:e.defaults?.security,ask:e.defaults?.ask,askFallback:e.defaults?.askFallback,autoAllowSkills:e.defaults?.autoAllowSkills},agents:i}}function b(e){let t=e.current?.socket?.path?.trim(),n=e.current?.socket?.token?.trim(),r=e.normalized.socket?.path?.trim()??t??p(),i=e.normalized.socket?.token?.trim()??n??``;return{...e.normalized,socket:{path:r,token:i}}}function x(){return i.randomBytes(24).toString(`base64url`)}function S(){let e=f();if(!n.existsSync(e))return{path:e,exists:!1,raw:null,file:y({version:1,agents:{}}),hash:d(null)};let t=n.readFileSync(e,`utf8`),r=null;try{r=JSON.parse(t)}catch{r=null}return{path:e,exists:!0,raw:t,file:r?.version===1?y(r):y({version:1,agents:{}}),hash:d(t)}}function C(){let e=f();try{if(!n.existsSync(e))return y({version:1,agents:{}});let t=n.readFileSync(e,`utf8`),r=JSON.parse(t);return r?.version===1?y(r):y({version:1,agents:{}})}catch{return y({version:1,agents:{}})}}function w(e){let t=f();g(t),n.writeFileSync(t,`${JSON.stringify(e,null,2)}\n`,{mode:384});try{n.chmodSync(t,384)}catch{}}function T(){let e=y(C()),t=e.socket?.path?.trim(),n=e.socket?.token?.trim(),r={...e,socket:{path:t&&t.length>0?t:p(),token:n&&n.length>0?n:x()}};return w(r),r}function E(e,t){return e===`allowlist`||e===`full`||e===`deny`?e:t}function D(e,t){return e===`always`||e===`off`||e===`on-miss`?e:t}function O(t,n){let r=T();return k({file:r,agentId:t,overrides:n,path:f(),socketPath:e(r.socket?.path??p()),token:r.socket?.token??``})}function k(t){let n=y(t.file),r=n.defaults??{},i=t.agentId??`main`,a=n.agents?.[i]??{},o=n.agents?.[`*`]??{},s=t.overrides?.security??`deny`,c=t.overrides?.ask??`on-miss`,l=t.overrides?.askFallback??`deny`,u=t.overrides?.autoAllowSkills??!1,d={security:E(r.security,s),ask:D(r.ask,c),askFallback:E(r.askFallback??l,l),autoAllowSkills:!!(r.autoAllowSkills??u)},m={security:E(a.security??o.security??d.security,d.security),ask:D(a.ask??o.ask??d.ask,d.ask),askFallback:E(a.askFallback??o.askFallback??d.askFallback,d.askFallback),autoAllowSkills:!!(a.autoAllowSkills??o.autoAllowSkills??d.autoAllowSkills)},h=[...Array.isArray(o.allowlist)?o.allowlist:[],...Array.isArray(a.allowlist)?a.allowlist:[]];return{path:t.path??f(),socketPath:e(t.socketPath??n.socket?.path??p()),token:t.token??n.socket?.token??``,defaults:d,agent:m,allowlist:h,file:n}}function A(e){return e.ask===`always`||e.ask===`on-miss`&&e.security===`allowlist`&&(!e.analysisOk||!e.allowlistSatisfied)}function j(e,t,n,r,a){let o=t??`main`,s=e.agents??{},c=s[o]??{},l=(Array.isArray(c.allowlist)?c.allowlist:[]).map(e=>e.pattern===n.pattern?{...e,id:e.id??i.randomUUID(),lastUsedAt:Date.now(),lastUsedCommand:r,lastResolvedPath:a}:e);s[o]={...c,allowlist:l},e.agents=s,w(e)}function M(e,t,n){let r=t??`main`,a=e.agents??{},o=a[r]??{},s=Array.isArray(o.allowlist)?o.allowlist:[],c=n.trim();c&&(s.some(e=>e.pattern===c)||(s.push({id:i.randomUUID(),pattern:c,lastUsedAt:Date.now()}),a[r]={...o,allowlist:s},e.agents=a,w(e)))}function N(e,t){let n={deny:0,allowlist:1,full:2};return n[e]<=n[t]?e:t}function P(e,t){let n={off:0,"on-miss":1,always:2};return n[e]>=n[t]?e:t}export{w as _,P as a,y as c,c as d,S as f,k as g,O as h,C as i,l,A as m,M as n,b as o,j as p,T as r,N as s,u as t,s as u,o as v};
|
|
4
|
-
//# sourceMappingURL=exec-approvals-BpBNEy6i.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{_ as e}from"./paths-B4IRk3wi.js";import{Bc as t,Hc as n,Jc as r,Kc as i,Lc as a,Wc as o,Xc as s,Yc as c,el as l,fl as u,nl as d,ol as f,qc as p,rl as m,sl as h}from"./model-selection-BLbnMb5E.js";import g from"node:path";function _(e){return/\\(?:\r\n|\n|\r)/.test(e)}function v(e){if(!Array.isArray(e))return new Set;let t=e.map(e=>e.trim().toLowerCase()).filter(e=>e.length>0);return new Set(t)}function y(e){return v(e===void 0?p:e??[])}function b(e){if(o(e.platform??process.platform)||e.safeBins.size===0)return!1;let n=e.resolution,r=n?.executableName?.toLowerCase();if(!r||!e.safeBins.has(r)||!n?.resolvedPath||!(e.isTrustedSafeBinPathFn??a)({resolvedPath:n.resolvedPath,trustedDirs:e.trustedSafeBinDirs}))return!1;let i=e.argv.slice(1),s=(e.safeBinProfiles??u)[r];return s?t(i,s):!1}function x(e){return e.includes(`/`)||e.includes(`\\`)}function S(e){return{allowlist:e.allowlist,safeBins:e.safeBins,safeBinProfiles:e.safeBinProfiles,cwd:e.cwd,platform:e.platform,trustedSafeBinDirs:e.trustedSafeBinDirs,skillBins:e.skillBins,autoAllowSkills:e.autoAllowSkills}}function C(e){let t=e?.trim().toLowerCase();return t&&t.length>0?t:null}function w(e){let t=e?.trim();if(!t)return null;let n=g.resolve(t);return process.platform===`win32`?n.replace(/\\/g,`/`).toLowerCase():n}function T(e){let t=new Map;if(!e||e.length===0)return t;for(let n of e){let e=C(n.name),r=w(n.resolvedPath);if(!e||!r)continue;let i=t.get(e)??new Set;i.add(r),t.set(e,i)}return t}function E(e){if(!e.allowSkills)return!1;let t=e.segment.resolution;if(!t?.resolvedPath)return!1;let n=t.rawExecutable?.trim()??``;if(!n||x(n))return!1;let r=C(t.executableName),i=w(t.resolvedPath);return!r||!i?!1:!!e.skillBinTrust.get(r)?.has(i)}function D(e,t){let n=[],i=T(t.skillBins),a=t.autoAllowSkills===!0&&i.size>0,o=[];return{satisfied:e.every(e=>{if(e.resolution?.policyBlocked===!0)return o.push(null),!1;let s=e.resolution?.effectiveArgv&&e.resolution.effectiveArgv.length>0?e.resolution.effectiveArgv:e.argv,u=s===e.argv?e:{...e,argv:s},d=c(e.resolution,t.cwd),f=d&&e.resolution?{...e.resolution,resolvedPath:d}:e.resolution,p=r(t.allowlist,f),m=l(u.argv)===null?P({segment:u,cwd:t.cwd}):void 0,h=m?r(t.allowlist,{rawExecutable:m,resolvedPath:m,executableName:g.basename(m)}):null,_=p??h;_&&n.push(_);let v=b({argv:s,resolution:e.resolution,safeBins:t.safeBins,safeBinProfiles:t.safeBinProfiles,platform:t.platform,trustedSafeBinDirs:t.trustedSafeBinDirs}),y=E({segment:e,allowSkills:a,skillBinTrust:i}),x=_?`allowlist`:v?`safeBins`:y?`skills`:null;return o.push(x),!!x}),matches:n,segmentSatisfiedBy:o}}function O(e){return e.chains?e.chains:[e.segments]}function k(e){let t=[],n=[];if(!e.analysis.ok||e.analysis.segments.length===0)return{allowlistSatisfied:!1,allowlistMatches:t,segmentSatisfiedBy:n};let r=S(e),i=!!e.analysis.chains;for(let a of O(e.analysis)){let e=D(a,r);if(!e.satisfied)return i?{allowlistSatisfied:!1,allowlistMatches:[],segmentSatisfiedBy:[]}:{allowlistSatisfied:!1,allowlistMatches:e.matches,segmentSatisfiedBy:e.segmentSatisfiedBy};t.push(...e.matches),n.push(...e.segmentSatisfiedBy)}return{allowlistSatisfied:!0,allowlistMatches:t,segmentSatisfiedBy:n}}function A(e,t){let n=[e.resolution?.executableName,e.resolution?.rawExecutable,e.argv[0]];for(let e of n){let n=e?.trim();if(n&&t(n))return!0}return!1}function j(e){return A(e,m)}function M(e){return A(e,d)}const N=new Set([`-c`,`--command`,`-o`,`-O`,`+O`,`--rcfile`,`--init-file`,`--startup-file`]);function P(t){if(!j(t.segment))return;let n=t.segment.argv;if(!Array.isArray(n)||n.length<2)return;let r=1;for(;r<n.length;){let e=n[r]?.trim()??``;if(!e){r+=1;continue}if(e===`--`){r+=1;break}if(e===`-c`||e===`--command`||/^-[^-]*c[^-]*$/i.test(e)||e===`-s`||/^-[^-]*s[^-]*$/i.test(e))return;if(N.has(e)){r+=2;continue}if(e.startsWith(`-`)||e.startsWith(`+`)){r+=1;continue}break}let i=n[r]?.trim();if(!i)return;if(g.isAbsolute(i))return i;let a=i.startsWith(`~`)?e(i):i,o=t.cwd&&t.cwd.trim().length>0?t.cwd:process.cwd();return g.resolve(o,a)}function F(e){if(e.depth>=3)return;let t=t=>{F({segment:{raw:t.join(` `),argv:t,resolution:s(t,e.cwd,e.env)},cwd:e.cwd,env:e.env,platform:e.platform,depth:e.depth+1,out:e.out})};if(M(e.segment)){let n=f(e.segment.argv);if(n.kind!==`unwrapped`||n.argv.length===0)return;t(n.argv);return}let r=h(e.segment.argv);if(r.kind===`blocked`)return;if(r.kind===`unwrapped`){t(r.argv);return}let i=c(e.segment.resolution,e.cwd);if(!i)return;if(!j(e.segment)){e.out.add(i);return}let a=l(e.segment.argv);if(!a){let t=P({segment:e.segment,cwd:e.cwd});t&&e.out.add(t);return}let o=n({command:a,cwd:e.cwd,env:e.env,platform:e.platform});if(o.ok)for(let t of o.segments)F({segment:t,cwd:e.cwd,env:e.env,platform:e.platform,depth:e.depth+1,out:e.out})}function I(e){let t=new Set;for(let n of e.segments)F({segment:n,cwd:e.cwd,env:e.env,platform:e.platform,depth:0,out:t});return Array.from(t)}function L(e){let t=S(e),r=()=>({analysisOk:!1,allowlistSatisfied:!1,allowlistMatches:[],segments:[],segmentSatisfiedBy:[]});if(_(e.command))return r();let a=o(e.platform)?null:i(e.command);if(!a){let i=n({command:e.command,cwd:e.cwd,env:e.env,platform:e.platform});if(!i.ok)return r();let a=k({analysis:i,...t});return{analysisOk:!0,allowlistSatisfied:a.allowlistSatisfied,allowlistMatches:a.allowlistMatches,segments:i.segments,segmentSatisfiedBy:a.segmentSatisfiedBy}}let s=[],c=[],l=[];for(let i of a){let a=n({command:i,cwd:e.cwd,env:e.env,platform:e.platform});if(!a.ok)return r();c.push(...a.segments);let o=k({analysis:a,...t});if(s.push(...o.allowlistMatches),l.push(...o.segmentSatisfiedBy),!o.allowlistSatisfied)return{analysisOk:!0,allowlistSatisfied:!1,allowlistMatches:s,segments:c,segmentSatisfiedBy:l}}return{analysisOk:!0,allowlistSatisfied:!0,allowlistMatches:s,segments:c,segmentSatisfiedBy:l}}export{y as i,L as n,I as r,k as t};
|
|
2
|
-
//# sourceMappingURL=exec-approvals-allowlist-B-Yf6RsU.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{_ as e}from"./paths-BjD3T_xq.js";import{As as t,Bs as n,Cs as r,Ds as i,Js as a,Ls as o,Ms as s,Ns as c,Ts as l,Us as u,Ws as d,bs as f,js as p,ks as m,zs as h}from"./auth-profiles-C8rZRS0X.js";import g from"node:path";function _(e){return/\\(?:\r\n|\n|\r)/.test(e)}function v(e){if(!Array.isArray(e))return new Set;let t=e.map(e=>e.trim().toLowerCase()).filter(e=>e.length>0);return new Set(t)}function y(e){return v(e===void 0?t:e??[])}function b(e){if(i(e.platform??process.platform)||e.safeBins.size===0)return!1;let t=e.resolution,n=t?.executableName?.toLowerCase();if(!n||!e.safeBins.has(n)||!t?.resolvedPath||!(e.isTrustedSafeBinPathFn??f)({resolvedPath:t.resolvedPath,trustedDirs:e.trustedSafeBinDirs}))return!1;let o=e.argv.slice(1),s=(e.safeBinProfiles??a)[n];return s?r(o,s):!1}function x(e){return e.includes(`/`)||e.includes(`\\`)}function S(e){return{allowlist:e.allowlist,safeBins:e.safeBins,safeBinProfiles:e.safeBinProfiles,cwd:e.cwd,platform:e.platform,trustedSafeBinDirs:e.trustedSafeBinDirs,skillBins:e.skillBins,autoAllowSkills:e.autoAllowSkills}}function C(e){let t=e?.trim().toLowerCase();return t&&t.length>0?t:null}function w(e){let t=e?.trim();if(!t)return null;let n=g.resolve(t);return process.platform===`win32`?n.replace(/\\/g,`/`).toLowerCase():n}function T(e){let t=new Map;if(!e||e.length===0)return t;for(let n of e){let e=C(n.name),r=w(n.resolvedPath);if(!e||!r)continue;let i=t.get(e)??new Set;i.add(r),t.set(e,i)}return t}function E(e){if(!e.allowSkills)return!1;let t=e.segment.resolution;if(!t?.resolvedPath)return!1;let n=t.rawExecutable?.trim()??``;if(!n||x(n))return!1;let r=C(t.executableName),i=w(t.resolvedPath);return!r||!i?!1:!!e.skillBinTrust.get(r)?.has(i)}function D(e,t){let n=[],r=T(t.skillBins),i=t.autoAllowSkills===!0&&r.size>0,a=[];return{satisfied:e.every(e=>{if(e.resolution?.policyBlocked===!0)return a.push(null),!1;let c=e.resolution?.effectiveArgv&&e.resolution.effectiveArgv.length>0?e.resolution.effectiveArgv:e.argv,l=c===e.argv?e:{...e,argv:c},u=s(e.resolution,t.cwd),d=u&&e.resolution?{...e.resolution,resolvedPath:u}:e.resolution,f=p(t.allowlist,d),m=o(l.argv)===null?P({segment:l,cwd:t.cwd}):void 0,h=m?p(t.allowlist,{rawExecutable:m,resolvedPath:m,executableName:g.basename(m)}):null,_=f??h;_&&n.push(_);let v=b({argv:c,resolution:e.resolution,safeBins:t.safeBins,safeBinProfiles:t.safeBinProfiles,platform:t.platform,trustedSafeBinDirs:t.trustedSafeBinDirs}),y=E({segment:e,allowSkills:i,skillBinTrust:r}),x=_?`allowlist`:v?`safeBins`:y?`skills`:null;return a.push(x),!!x}),matches:n,segmentSatisfiedBy:a}}function O(e){return e.chains?e.chains:[e.segments]}function k(e){let t=[],n=[];if(!e.analysis.ok||e.analysis.segments.length===0)return{allowlistSatisfied:!1,allowlistMatches:t,segmentSatisfiedBy:n};let r=S(e),i=!!e.analysis.chains;for(let a of O(e.analysis)){let e=D(a,r);if(!e.satisfied)return i?{allowlistSatisfied:!1,allowlistMatches:[],segmentSatisfiedBy:[]}:{allowlistSatisfied:!1,allowlistMatches:e.matches,segmentSatisfiedBy:e.segmentSatisfiedBy};t.push(...e.matches),n.push(...e.segmentSatisfiedBy)}return{allowlistSatisfied:!0,allowlistMatches:t,segmentSatisfiedBy:n}}function A(e,t){let n=[e.resolution?.executableName,e.resolution?.rawExecutable,e.argv[0]];for(let e of n){let n=e?.trim();if(n&&t(n))return!0}return!1}function j(e){return A(e,n)}function M(e){return A(e,h)}const N=new Set([`-c`,`--command`,`-o`,`-O`,`+O`,`--rcfile`,`--init-file`,`--startup-file`]);function P(t){if(!j(t.segment))return;let n=t.segment.argv;if(!Array.isArray(n)||n.length<2)return;let r=1;for(;r<n.length;){let e=n[r]?.trim()??``;if(!e){r+=1;continue}if(e===`--`){r+=1;break}if(e===`-c`||e===`--command`||/^-[^-]*c[^-]*$/i.test(e)||e===`-s`||/^-[^-]*s[^-]*$/i.test(e))return;if(N.has(e)){r+=2;continue}if(e.startsWith(`-`)||e.startsWith(`+`)){r+=1;continue}break}let i=n[r]?.trim();if(!i)return;if(g.isAbsolute(i))return i;let a=i.startsWith(`~`)?e(i):i,o=t.cwd&&t.cwd.trim().length>0?t.cwd:process.cwd();return g.resolve(o,a)}function F(e){if(e.depth>=3)return;let t=t=>{F({segment:{raw:t.join(` `),argv:t,resolution:c(t,e.cwd,e.env)},cwd:e.cwd,env:e.env,platform:e.platform,depth:e.depth+1,out:e.out})};if(M(e.segment)){let n=u(e.segment.argv);if(n.kind!==`unwrapped`||n.argv.length===0)return;t(n.argv);return}let n=d(e.segment.argv);if(n.kind===`blocked`)return;if(n.kind===`unwrapped`){t(n.argv);return}let r=s(e.segment.resolution,e.cwd);if(!r)return;if(!j(e.segment)){e.out.add(r);return}let i=o(e.segment.argv);if(!i){let t=P({segment:e.segment,cwd:e.cwd});t&&e.out.add(t);return}let a=l({command:i,cwd:e.cwd,env:e.env,platform:e.platform});if(a.ok)for(let t of a.segments)F({segment:t,cwd:e.cwd,env:e.env,platform:e.platform,depth:e.depth+1,out:e.out})}function I(e){let t=new Set;for(let n of e.segments)F({segment:n,cwd:e.cwd,env:e.env,platform:e.platform,depth:0,out:t});return Array.from(t)}function L(e){let t=S(e),n=()=>({analysisOk:!1,allowlistSatisfied:!1,allowlistMatches:[],segments:[],segmentSatisfiedBy:[]});if(_(e.command))return n();let r=i(e.platform)?null:m(e.command);if(!r){let r=l({command:e.command,cwd:e.cwd,env:e.env,platform:e.platform});if(!r.ok)return n();let i=k({analysis:r,...t});return{analysisOk:!0,allowlistSatisfied:i.allowlistSatisfied,allowlistMatches:i.allowlistMatches,segments:r.segments,segmentSatisfiedBy:i.segmentSatisfiedBy}}let a=[],o=[],s=[];for(let i of r){let r=l({command:i,cwd:e.cwd,env:e.env,platform:e.platform});if(!r.ok)return n();o.push(...r.segments);let c=k({analysis:r,...t});if(a.push(...c.allowlistMatches),s.push(...c.segmentSatisfiedBy),!c.allowlistSatisfied)return{analysisOk:!0,allowlistSatisfied:!1,allowlistMatches:a,segments:o,segmentSatisfiedBy:s}}return{analysisOk:!0,allowlistSatisfied:!0,allowlistMatches:a,segments:o,segmentSatisfiedBy:s}}export{y as i,L as n,I as r,k as t};
|
|
2
|
-
//# sourceMappingURL=exec-approvals-allowlist-CGjRWREs.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import{A as e,k as t,p as n}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import"./auth-profiles-C8rZRS0X.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-Bz_S4lPh.js";import"./frontmatter-C7mzDNxd.js";import"./plugins-DNlgeTTc.js";import"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./call-BWx7hNtl.js";import{n as r}from"./format-relative-DkMjYy7z.js";import{t as i}from"./links-CBnmRP9D.js";import"./progress-d1m2sqR1.js";import{_ as a,f as o}from"./exec-approvals-BXO9Cezj.js";import{n as s}from"./gateway-rpc-C78PzdZR.js";import"./systemd-DbevZh65.js";import"./service-DZ9EbS15.js";import{n as c,t as l}from"./table-CR7TFMew.js";import{t as u}from"./shared-BKWhOp64.js";import{a as d,r as f}from"./rpc-f85A4Ib_.js";import p from"json5";import m from"node:fs/promises";async function h(){let e=[];for await(let t of process.stdin)e.push(Buffer.isBuffer(t)?t:Buffer.from(String(t)));return Buffer.concat(e).toString(`utf8`)}async function g(e){if(e.gateway)return null;let t=e.node?.trim()??``;return t?await d(e,t):null}async function _(e,t){return await s(t?`exec.approvals.node.get`:`exec.approvals.get`,e,t?{nodeId:t}:{})}function v(){let e=o();return{path:e.path,exists:e.exists,hash:e.hash,file:e.file}}function y(e){return a(e),v()}async function b(e){if(!e.gateway&&!e.node)return{snapshot:v(),nodeId:null,source:`local`};let t=await g(e);return{snapshot:await _(e,t),nodeId:t,source:t?`node`:`gateway`}}function x(e){throw n.error(e),n.exit(1),Error(e)}function S(e,t){let n=e.trim();return n||x(t),n}async function C(t){let{snapshot:r,nodeId:i,source:a}=await b(t);a===`local`&&n.log(e.muted(`Writing local approvals.`));let o=a===`local`?`local`:i?`node:${i}`:`gateway`,s=r.hash;return s||x(`Exec approvals hash missing; reload and retry.`),{snapshot:r,nodeId:i,source:a,targetLabel:o,baseHash:s}}async function w(t){let r=t.source===`local`?y(t.file):await D(t.opts,t.nodeId,t.file,t.baseHash);if(t.opts.json){n.log(JSON.stringify(r));return}n.log(e.muted(`Target: ${t.targetLabel}`)),E(r,t.targetLabel)}function T(e){let t=u(e);return t.includes(`
|
|
2
2
|
`)?t.split(`
|
|
3
3
|
`)[0]:t}function E(i,a){let o=t(),s=t=>o?e.heading(t):t,u=t=>o?e.muted(t):t,d=l(),f=i.file??{version:1},p=f.defaults??{},m=[p.security?`security=${p.security}`:null,p.ask?`ask=${p.ask}`:null,p.askFallback?`askFallback=${p.askFallback}`:null,typeof p.autoAllowSkills==`boolean`?`autoAllowSkills=${p.autoAllowSkills?`on`:`off`}`:null].filter(Boolean),h=f.agents??{},g=[],_=Date.now();for(let[e,t]of Object.entries(h)){let n=Array.isArray(t.allowlist)?t.allowlist:[];for(let t of n){let n=t?.pattern?.trim()??``;if(!n)continue;let i=typeof t.lastUsedAt==`number`?t.lastUsedAt:null;g.push({Target:a,Agent:e,Pattern:n,LastUsed:i?r(Math.max(0,_-i)):u(`unknown`)})}}let v=[{Field:`Target`,Value:a},{Field:`Path`,Value:i.path},{Field:`Exists`,Value:i.exists?`yes`:`no`},{Field:`Hash`,Value:i.hash},{Field:`Version`,Value:String(f.version??1)},{Field:`Socket`,Value:f.socket?.path??`default`},{Field:`Defaults`,Value:m.length>0?m.join(`, `):`none`},{Field:`Agents`,Value:String(Object.keys(h).length)},{Field:`Allowlist`,Value:String(g.length)}];if(n.log(s(`Approvals`)),n.log(c({width:d,columns:[{key:`Field`,header:`Field`,minWidth:8},{key:`Value`,header:`Value`,minWidth:24,flex:!0}],rows:v}).trimEnd()),g.length===0){n.log(``),n.log(u(`No allowlist entries.`));return}n.log(``),n.log(s(`Allowlist`)),n.log(c({width:d,columns:[{key:`Target`,header:`Target`,minWidth:10},{key:`Agent`,header:`Agent`,minWidth:8},{key:`Pattern`,header:`Pattern`,minWidth:20,flex:!0},{key:`LastUsed`,header:`Last Used`,minWidth:10}],rows:g}).trimEnd())}async function D(e,t,n,r){return await s(t?`exec.approvals.node.set`:`exec.approvals.set`,e,t?{nodeId:t,file:n,baseHash:r}:{file:n,baseHash:r})}function O(e){return(e?.trim()??``)||`*`}function k(e){return(e?.pattern?.trim()??``)||null}function A(e,t){let n=e.agents??{},r=n[t]??{};return e.agents=n,r}function j(e){let t=Array.isArray(e.allowlist)?e.allowlist:[];return!e.security&&!e.ask&&!e.askFallback&&e.autoAllowSkills===void 0&&t.length===0}async function M(e){let{snapshot:t,nodeId:n,source:r,targetLabel:i,baseHash:a}=await C(e),o=t.file??{version:1};o.version=1;let s=O(e.agent),c=A(o,s);return{nodeId:n,source:r,targetLabel:i,baseHash:a,file:o,agentKey:s,agent:c,allowlistEntries:Array.isArray(c.allowlist)?c.allowlist:[]}}async function N(e,t,r){try{let n=S(e,`Pattern required.`),i=await M(t);if(!await r({...i,trimmedPattern:n}))return;await w({opts:t,source:i.source,nodeId:i.nodeId,file:i.file,baseHash:i.baseHash,targetLabel:i.targetLabel})}catch(e){n.error(T(e)),n.exit(1)}}function P(e){let t=e.allowlist.command(`${e.name} <pattern>`).description(e.description).option(`--node <node>`,`Target node id/name/IP`).option(`--gateway`,`Force gateway approvals`,!1).option(`--agent <id>`,`Agent id (defaults to "*")`).action(async(t,n)=>{await N(t,n,e.mutate)});return f(t),t}function F(r){let a=(t,n)=>` ${e.command(t)}\n ${e.muted(n)}`,o=r.command(`approvals`).alias(`exec-approvals`).description(`Manage exec approvals (gateway or node host)`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${i(`/cli/approvals`,`docs.openclaw.ai/cli/approvals`)}\n`);f(o.command(`get`).description(`Fetch exec approvals snapshot`).option(`--node <node>`,`Target node id/name/IP`).option(`--gateway`,`Force gateway approvals`,!1).action(async r=>{try{let{snapshot:i,nodeId:a,source:o}=await b(r);if(r.json){n.log(JSON.stringify(i));return}o===`local`&&(n.log((n=>t()?e.muted(n):n)(`Showing local approvals.`)),n.log(``)),E(i,o===`local`?`local`:a?`node:${a}`:`gateway`)}catch(e){n.error(T(e)),n.exit(1)}})),f(o.command(`set`).description(`Replace exec approvals with a JSON file`).option(`--node <node>`,`Target node id/name/IP`).option(`--gateway`,`Force gateway approvals`,!1).option(`--file <path>`,`Path to JSON file to upload`).option(`--stdin`,`Read JSON from stdin`,!1).action(async e=>{try{!e.file&&!e.stdin&&x(`Provide --file or --stdin.`),e.file&&e.stdin&&x(`Use either --file or --stdin (not both).`);let{source:t,nodeId:n,targetLabel:r,baseHash:i}=await C(e),a=e.stdin?await h():await m.readFile(String(e.file),`utf8`),o;try{o=p.parse(a)}catch(e){x(`Failed to parse approvals JSON: ${String(e)}`)}o.version=1,await w({opts:e,source:t,nodeId:n,file:o,baseHash:i,targetLabel:r})}catch(e){n.error(T(e)),n.exit(1)}}));let s=o.command(`allowlist`).description(`Edit the per-agent allowlist`).addHelpText(`after`,()=>`\n${e.heading(`Examples:`)}\n${a(`openclaw approvals allowlist add "~/Projects/**/bin/rg"`,`Allowlist a local binary pattern for the main agent.`)}\n${a(`openclaw approvals allowlist add --agent main --node <id|name|ip> "/usr/bin/uptime"`,`Allowlist on a specific node/agent.`)}\n${a(`openclaw approvals allowlist add --agent "*" "/usr/bin/uname"`,`Allowlist for all agents (wildcard).`)}\n${a(`openclaw approvals allowlist remove "~/Projects/**/bin/rg"`,`Remove an allowlist pattern.`)}\n\n${e.muted(`Docs:`)} ${i(`/cli/approvals`,`docs.openclaw.ai/cli/approvals`)}\n`);P({allowlist:s,name:`add`,description:`Add a glob pattern to an allowlist`,mutate:({trimmedPattern:e,file:t,agent:r,agentKey:i,allowlistEntries:a})=>a.some(t=>k(t)===e)?(n.log(`Already allowlisted.`),!1):(a.push({pattern:e,lastUsedAt:Date.now()}),r.allowlist=a,t.agents={...t.agents,[i]:r},!0)}),P({allowlist:s,name:`remove`,description:`Remove a glob pattern from an allowlist`,mutate:({trimmedPattern:e,file:t,agent:r,agentKey:i,allowlistEntries:a})=>{let o=a.filter(t=>k(t)!==e);if(o.length===a.length)return n.log(`Pattern not found.`),!1;if(o.length===0?delete r.allowlist:r.allowlist=o,j(r)){let e={...t.agents};delete e[i],t.agents=Object.keys(e).length>0?e:void 0}else t.agents={...t.agents,[i]:r};return!0}})}export{F as registerExecApprovalsCli};
|
|
4
|
-
//# sourceMappingURL=exec-approvals-cli-BokGzWFo.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import"./paths-B4IRk3wi.js";import{A as e,k as t,p as n}from"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-BLbnMb5E.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-CzUpDbU-.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import"./call-JB-cGR9n.js";import"./exec-approvals-allowlist-B-Yf6RsU.js";import{n as r}from"./format-relative-B9pSIdGe.js";import{t as i}from"./links-CySwdMcF.js";import"./progress-LNttnI-y.js";import{_ as a,f as o}from"./exec-approvals-BpBNEy6i.js";import{n as s}from"./gateway-rpc-CecloWA1.js";import"./systemd-D7odsu4K.js";import"./service-BtB9epJk.js";import{n as c,t as l}from"./table-CY440fI1.js";import{t as u}from"./shared-9x5sqYRb.js";import{a as d,r as f}from"./rpc-BBdeIvn0.js";import p from"json5";import m from"node:fs/promises";async function h(){let e=[];for await(let t of process.stdin)e.push(Buffer.isBuffer(t)?t:Buffer.from(String(t)));return Buffer.concat(e).toString(`utf8`)}async function g(e){if(e.gateway)return null;let t=e.node?.trim()??``;return t?await d(e,t):null}async function _(e,t){return await s(t?`exec.approvals.node.get`:`exec.approvals.get`,e,t?{nodeId:t}:{})}function v(){let e=o();return{path:e.path,exists:e.exists,hash:e.hash,file:e.file}}function y(e){return a(e),v()}async function b(e){if(!e.gateway&&!e.node)return{snapshot:v(),nodeId:null,source:`local`};let t=await g(e);return{snapshot:await _(e,t),nodeId:t,source:t?`node`:`gateway`}}function x(e){throw n.error(e),n.exit(1),Error(e)}function S(e,t){let n=e.trim();return n||x(t),n}async function C(t){let{snapshot:r,nodeId:i,source:a}=await b(t);a===`local`&&n.log(e.muted(`Writing local approvals.`));let o=a===`local`?`local`:i?`node:${i}`:`gateway`,s=r.hash;return s||x(`Exec approvals hash missing; reload and retry.`),{snapshot:r,nodeId:i,source:a,targetLabel:o,baseHash:s}}async function w(t){let r=t.source===`local`?y(t.file):await D(t.opts,t.nodeId,t.file,t.baseHash);if(t.opts.json){n.log(JSON.stringify(r));return}n.log(e.muted(`Target: ${t.targetLabel}`)),E(r,t.targetLabel)}function T(e){let t=u(e);return t.includes(`
|
|
2
2
|
`)?t.split(`
|
|
3
3
|
`)[0]:t}function E(i,a){let o=t(),s=t=>o?e.heading(t):t,u=t=>o?e.muted(t):t,d=l(),f=i.file??{version:1},p=f.defaults??{},m=[p.security?`security=${p.security}`:null,p.ask?`ask=${p.ask}`:null,p.askFallback?`askFallback=${p.askFallback}`:null,typeof p.autoAllowSkills==`boolean`?`autoAllowSkills=${p.autoAllowSkills?`on`:`off`}`:null].filter(Boolean),h=f.agents??{},g=[],_=Date.now();for(let[e,t]of Object.entries(h)){let n=Array.isArray(t.allowlist)?t.allowlist:[];for(let t of n){let n=t?.pattern?.trim()??``;if(!n)continue;let i=typeof t.lastUsedAt==`number`?t.lastUsedAt:null;g.push({Target:a,Agent:e,Pattern:n,LastUsed:i?r(Math.max(0,_-i)):u(`unknown`)})}}let v=[{Field:`Target`,Value:a},{Field:`Path`,Value:i.path},{Field:`Exists`,Value:i.exists?`yes`:`no`},{Field:`Hash`,Value:i.hash},{Field:`Version`,Value:String(f.version??1)},{Field:`Socket`,Value:f.socket?.path??`default`},{Field:`Defaults`,Value:m.length>0?m.join(`, `):`none`},{Field:`Agents`,Value:String(Object.keys(h).length)},{Field:`Allowlist`,Value:String(g.length)}];if(n.log(s(`Approvals`)),n.log(c({width:d,columns:[{key:`Field`,header:`Field`,minWidth:8},{key:`Value`,header:`Value`,minWidth:24,flex:!0}],rows:v}).trimEnd()),g.length===0){n.log(``),n.log(u(`No allowlist entries.`));return}n.log(``),n.log(s(`Allowlist`)),n.log(c({width:d,columns:[{key:`Target`,header:`Target`,minWidth:10},{key:`Agent`,header:`Agent`,minWidth:8},{key:`Pattern`,header:`Pattern`,minWidth:20,flex:!0},{key:`LastUsed`,header:`Last Used`,minWidth:10}],rows:g}).trimEnd())}async function D(e,t,n,r){return await s(t?`exec.approvals.node.set`:`exec.approvals.set`,e,t?{nodeId:t,file:n,baseHash:r}:{file:n,baseHash:r})}function O(e){return(e?.trim()??``)||`*`}function k(e){return(e?.pattern?.trim()??``)||null}function A(e,t){let n=e.agents??{},r=n[t]??{};return e.agents=n,r}function j(e){let t=Array.isArray(e.allowlist)?e.allowlist:[];return!e.security&&!e.ask&&!e.askFallback&&e.autoAllowSkills===void 0&&t.length===0}async function M(e){let{snapshot:t,nodeId:n,source:r,targetLabel:i,baseHash:a}=await C(e),o=t.file??{version:1};o.version=1;let s=O(e.agent),c=A(o,s);return{nodeId:n,source:r,targetLabel:i,baseHash:a,file:o,agentKey:s,agent:c,allowlistEntries:Array.isArray(c.allowlist)?c.allowlist:[]}}async function N(e,t,r){try{let n=S(e,`Pattern required.`),i=await M(t);if(!await r({...i,trimmedPattern:n}))return;await w({opts:t,source:i.source,nodeId:i.nodeId,file:i.file,baseHash:i.baseHash,targetLabel:i.targetLabel})}catch(e){n.error(T(e)),n.exit(1)}}function P(e){let t=e.allowlist.command(`${e.name} <pattern>`).description(e.description).option(`--node <node>`,`Target node id/name/IP`).option(`--gateway`,`Force gateway approvals`,!1).option(`--agent <id>`,`Agent id (defaults to "*")`).action(async(t,n)=>{await N(t,n,e.mutate)});return f(t),t}function F(r){let a=(t,n)=>` ${e.command(t)}\n ${e.muted(n)}`,o=r.command(`approvals`).alias(`exec-approvals`).description(`Manage exec approvals (gateway or node host)`).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${i(`/cli/approvals`,`docs.openclaw.ai/cli/approvals`)}\n`);f(o.command(`get`).description(`Fetch exec approvals snapshot`).option(`--node <node>`,`Target node id/name/IP`).option(`--gateway`,`Force gateway approvals`,!1).action(async r=>{try{let{snapshot:i,nodeId:a,source:o}=await b(r);if(r.json){n.log(JSON.stringify(i));return}o===`local`&&(n.log((n=>t()?e.muted(n):n)(`Showing local approvals.`)),n.log(``)),E(i,o===`local`?`local`:a?`node:${a}`:`gateway`)}catch(e){n.error(T(e)),n.exit(1)}})),f(o.command(`set`).description(`Replace exec approvals with a JSON file`).option(`--node <node>`,`Target node id/name/IP`).option(`--gateway`,`Force gateway approvals`,!1).option(`--file <path>`,`Path to JSON file to upload`).option(`--stdin`,`Read JSON from stdin`,!1).action(async e=>{try{!e.file&&!e.stdin&&x(`Provide --file or --stdin.`),e.file&&e.stdin&&x(`Use either --file or --stdin (not both).`);let{source:t,nodeId:n,targetLabel:r,baseHash:i}=await C(e),a=e.stdin?await h():await m.readFile(String(e.file),`utf8`),o;try{o=p.parse(a)}catch(e){x(`Failed to parse approvals JSON: ${String(e)}`)}o.version=1,await w({opts:e,source:t,nodeId:n,file:o,baseHash:i,targetLabel:r})}catch(e){n.error(T(e)),n.exit(1)}}));let s=o.command(`allowlist`).description(`Edit the per-agent allowlist`).addHelpText(`after`,()=>`\n${e.heading(`Examples:`)}\n${a(`openclaw approvals allowlist add "~/Projects/**/bin/rg"`,`Allowlist a local binary pattern for the main agent.`)}\n${a(`openclaw approvals allowlist add --agent main --node <id|name|ip> "/usr/bin/uptime"`,`Allowlist on a specific node/agent.`)}\n${a(`openclaw approvals allowlist add --agent "*" "/usr/bin/uname"`,`Allowlist for all agents (wildcard).`)}\n${a(`openclaw approvals allowlist remove "~/Projects/**/bin/rg"`,`Remove an allowlist pattern.`)}\n\n${e.muted(`Docs:`)} ${i(`/cli/approvals`,`docs.openclaw.ai/cli/approvals`)}\n`);P({allowlist:s,name:`add`,description:`Add a glob pattern to an allowlist`,mutate:({trimmedPattern:e,file:t,agent:r,agentKey:i,allowlistEntries:a})=>a.some(t=>k(t)===e)?(n.log(`Already allowlisted.`),!1):(a.push({pattern:e,lastUsedAt:Date.now()}),r.allowlist=a,t.agents={...t.agents,[i]:r},!0)}),P({allowlist:s,name:`remove`,description:`Remove a glob pattern from an allowlist`,mutate:({trimmedPattern:e,file:t,agent:r,agentKey:i,allowlistEntries:a})=>{let o=a.filter(t=>k(t)!==e);if(o.length===a.length)return n.log(`Pattern not found.`),!1;if(o.length===0?delete r.allowlist:r.allowlist=o,j(r)){let e={...t.agents};delete e[i],t.agents=Object.keys(e).length>0?e:void 0}else t.agents={...t.agents,[i]:r};return!0}})}export{F as registerExecApprovalsCli};
|
|
4
|
-
//# sourceMappingURL=exec-approvals-cli-CsUGu6m3.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{Ic as e,Rc as t,ml as n,pl as r,zc as i}from"./model-selection-BLbnMb5E.js";import{i as a}from"./exec-approvals-allowlist-B-Yf6RsU.js";const o=new Set(`ash,bash,busybox,bun,cmd,cmd.exe,cscript,dash,deno,fish,ksh,lua,node,nodejs,perl,php,powershell,powershell.exe,pypy,pwsh,pwsh.exe,python,python2,python3,ruby,sh,toybox,wscript,zsh`.split(`,`)),s=[/^python\d+(?:\.\d+)?$/,/^ruby\d+(?:\.\d+)?$/,/^perl\d+(?:\.\d+)?$/,/^php\d+(?:\.\d+)?$/,/^node\d+(?:\.\d+)?$/];function c(e){let t=e.trim().toLowerCase();return t?t.split(/[\\/]/).at(-1)??t:``}function l(e){let t=c(e);return t?o.has(t)?!0:s.some(e=>e.test(t)):!1}function u(e){return Array.from(e).map(e=>c(e)).filter(e=>e.length>0&&l(e)).toSorted()}function d(e){let t=r(e.global?.safeBinProfiles),n=r(e.local?.safeBinProfiles);if(!(Object.keys(t).length===0&&Object.keys(n).length===0))return{...t,...n}}function f(r){let o=a(r.local?.safeBins??r.global?.safeBins),s=n(d({global:r.global,local:r.local})),c=Array.from(o).filter(e=>!s[e]).toSorted(),l=[...i(r.global?.safeBinTrustedDirs),...i(r.local?.safeBinTrustedDirs)],f=e({extraDirs:l}),p=t(l);if(r.onWarning)for(let e of p){let t=e.worldWritable||e.groupWritable?e.worldWritable?`world-writable`:`group-writable`:`writable`;r.onWarning(`exec: safeBinTrustedDirs includes ${t} directory '${e.dir}'; remove trust or tighten permissions (for example chmod 755).`)}return{safeBins:o,safeBinProfiles:s,trustedSafeBinDirs:f,unprofiledSafeBins:c,unprofiledInterpreterSafeBins:u(c),writableTrustedSafeBinDirs:p}}export{d as i,u as n,f as r,l as t};
|
|
2
|
-
//# sourceMappingURL=exec-safe-bin-runtime-policy-CRPHdPbF.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{Ss as e,Xs as t,Ys as n,xs as r,ys as i}from"./auth-profiles-C8rZRS0X.js";import{i as a}from"./exec-approvals-allowlist-CGjRWREs.js";const o=new Set(`ash,bash,busybox,bun,cmd,cmd.exe,cscript,dash,deno,fish,ksh,lua,node,nodejs,perl,php,powershell,powershell.exe,pypy,pwsh,pwsh.exe,python,python2,python3,ruby,sh,toybox,wscript,zsh`.split(`,`)),s=[/^python\d+(?:\.\d+)?$/,/^ruby\d+(?:\.\d+)?$/,/^perl\d+(?:\.\d+)?$/,/^php\d+(?:\.\d+)?$/,/^node\d+(?:\.\d+)?$/];function c(e){let t=e.trim().toLowerCase();return t?t.split(/[\\/]/).at(-1)??t:``}function l(e){let t=c(e);return t?o.has(t)?!0:s.some(e=>e.test(t)):!1}function u(e){return Array.from(e).map(e=>c(e)).filter(e=>e.length>0&&l(e)).toSorted()}function d(e){let t=n(e.global?.safeBinProfiles),r=n(e.local?.safeBinProfiles);if(!(Object.keys(t).length===0&&Object.keys(r).length===0))return{...t,...r}}function f(n){let o=a(n.local?.safeBins??n.global?.safeBins),s=t(d({global:n.global,local:n.local})),c=Array.from(o).filter(e=>!s[e]).toSorted(),l=[...e(n.global?.safeBinTrustedDirs),...e(n.local?.safeBinTrustedDirs)],f=i({extraDirs:l}),p=r(l);if(n.onWarning)for(let e of p){let t=e.worldWritable||e.groupWritable?e.worldWritable?`world-writable`:`group-writable`:`writable`;n.onWarning(`exec: safeBinTrustedDirs includes ${t} directory '${e.dir}'; remove trust or tighten permissions (for example chmod 755).`)}return{safeBins:o,safeBinProfiles:s,trustedSafeBinDirs:f,unprofiledSafeBins:c,unprofiledInterpreterSafeBins:u(c),writableTrustedSafeBinDirs:p}}export{d as i,u as n,f as r,l as t};
|
|
2
|
-
//# sourceMappingURL=exec-safe-bin-runtime-policy-v44u39fl.js.map
|
package/dist/fetch-B4bz67_N.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{H as e}from"./subsystem-BLbY429l.js";import{g as t}from"./paths-BjD3T_xq.js";import{d as n}from"./agent-scope-DAWJwFfl.js";import{i as r,r as i}from"./windows-spawn-7oINn5ao.js";import{n as a,t as o}from"./fetch-guard-DaZmvp-L.js";import s from"node:path";let c;function l(){return c||=e(),c}function u(e,t={}){let n=s.resolve(e);return[t.preferredTmpDir??l(),s.join(n,`media`),s.join(n,`agents`),s.join(n,`workspace`),s.join(n,`sandboxes`)]}function d(){return u(t())}function f(e,r){let i=u(t());if(!r?.trim())return i;let a=n(e,r);if(!a)return i;let o=s.resolve(a);return i.includes(o)||i.push(o),i}async function p(e,t){let n,r=!1;return await new Promise((i,a)=>{let o=()=>{n!==void 0&&(clearTimeout(n),n=void 0)};n=setTimeout(()=>{r=!0,o(),e.cancel().catch(()=>void 0),a(Error(`Media download stalled: no data received for ${t}ms`))},t),e.read().then(e=>{o(),r||i(e)},e=>{o(),r||a(e)})})}async function m(e,t,n){let r=n?.onOverflow??(e=>Error(`Content too large: ${e.size} bytes (limit: ${e.maxBytes} bytes)`)),i=n?.chunkTimeoutMs,a=e.body;if(!a||typeof a.getReader!=`function`){let n=Buffer.from(await e.arrayBuffer());if(n.length>t)throw r({size:n.length,maxBytes:t,res:e});return n}let o=a.getReader(),s=[],c=0;try{for(;;){let{done:n,value:a}=i?await p(o,i):await o.read();if(n)break;if(a?.length){if(c+=a.length,c>t){try{await o.cancel()}catch{}throw r({size:c,maxBytes:t,res:e})}s.push(a)}}}finally{try{o.releaseLock()}catch{}}return Buffer.concat(s.map(e=>Buffer.from(e)),c)}var h=class extends Error{constructor(e,t){super(t),this.code=e,this.name=`MediaFetchError`}};function g(e){return e.replace(/^["']|["']$/g,``)}function _(e){if(!e)return;let t=/filename\*\s*=\s*([^;]+)/i.exec(e);if(t?.[1]){let e=g(t[1].trim()),n=e.split(`''`).slice(1).join(`''`)||e;try{return s.basename(decodeURIComponent(n))}catch{return s.basename(n)}}let n=/filename\s*=\s*([^;]+)/i.exec(e);if(n?.[1])return s.basename(g(n[1].trim()))}async function v(e,t=200){try{let n=await e.text();if(!n)return;let r=n.replace(/\s+/g,` `).trim();return r?r.length<=t?r:`${r.slice(0,t)}…`:void 0}catch{return}}async function y(e){let{url:t,fetchImpl:n,requestInit:c,filePathHint:l,maxBytes:u,maxRedirects:d,readIdleTimeoutMs:f,ssrfPolicy:p,lookupFn:g}=e,y,b=t,x=null;try{let e=await o(a({url:t,fetchImpl:n,init:c,maxRedirects:d,policy:p,lookupFn:g}));y=e.response,b=e.finalUrl,x=e.release}catch(e){throw new h(`fetch_failed`,`Failed to fetch media from ${t}: ${String(e)}`)}try{if(!y.ok){let e=y.statusText?` ${y.statusText}`:``,n=b===t?``:` (redirected to ${b})`,r=`HTTP ${y.status}${e}`;if(!y.body)r=`HTTP ${y.status}${e}; empty response body`;else{let e=await v(y);e&&(r+=`; body: ${e}`)}throw new h(`http_error`,`Failed to fetch media from ${t}${n}: ${r}`)}let e=y.headers.get(`content-length`);if(u&&e){let n=Number(e);if(Number.isFinite(n)&&n>u)throw new h(`max_bytes`,`Failed to fetch media from ${t}: content length ${n} exceeds maxBytes ${u}`)}let n;try{n=u?await m(y,u,{onOverflow:({maxBytes:e,res:n})=>new h(`max_bytes`,`Failed to fetch media from ${n.url||t}: payload exceeds maxBytes ${e}`),chunkTimeoutMs:f}):Buffer.from(await y.arrayBuffer())}catch(e){throw e instanceof h?e:new h(`fetch_failed`,`Failed to fetch media from ${y.url||t}: ${String(e)}`)}let a;try{let e=new URL(b);a=s.basename(e.pathname)||void 0}catch{}let o=_(y.headers.get(`content-disposition`)),c=o||a||(l?s.basename(l):void 0),d=o&&s.extname(o)?o:l??b,p=await i({buffer:n,headerMime:y.headers.get(`content-type`),filePath:d});if(c&&!s.extname(c)&&p){let e=r(p);e&&(c=`${c}${e}`)}return{buffer:n,contentType:p??void 0,fileName:c}}finally{x&&await x()}}export{d as a,f as i,y as n,m as r,h as t};
|
|
2
|
-
//# sourceMappingURL=fetch-B4bz67_N.js.map
|
package/dist/fetch-BJT3BrkJ.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-Bc2XrjUz.js";import{r as t,t as n}from"./proxy-env-DcmW_urA.js";import{t as r}from"./proxy-fetch-BZ9O8Dvj.js";import{t as i}from"./fetch-_g8lZ8K8.js";import"node:fs/promises";import{readFileSync as a}from"node:fs";import o from"node:process";import*as s from"node:dns";import{Agent as c,EnvHttpProxyAgent as l,ProxyAgent as u,fetch as d}from"undici";function f(){return!!(process.env.WSL_INTEROP||process.env.WSL_DISTRO_NAME||process.env.WSLENV)}function p(){if(process.platform!==`linux`)return!1;if(f())return!0;try{let e=a(`/proc/version`,`utf8`).toLowerCase();return e.includes(`microsoft`)||e.includes(`wsl`)}catch{return!1}}function m(){if(!p())return!1;try{let e=a(`/proc/version`,`utf8`).toLowerCase();return e.includes(`wsl2`)||e.includes(`microsoft-standard`)}catch{return!1}}const h=`OPENCLAW_TELEGRAM_DNS_RESULT_ORDER`;let g;function _(){return typeof g==`boolean`||(g=m()),g}function v(e){let n=e?.env??o.env,r=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(o.versions.node.split(`.`)[0]);return t(n.OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY)?{value:!0,source:`env:OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY`}:t(n.OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY)?{value:!1,source:`env:OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY`}:typeof e?.network?.autoSelectFamily==`boolean`?{value:e.network.autoSelectFamily,source:`config`}:_()?{value:!1,source:`default-wsl2`}:Number.isFinite(r)&&r>=22?{value:!0,source:`default-node22`}:{value:null}}function y(e){let t=e?.env??o.env,n=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(o.versions.node.split(`.`)[0]),r=t[h]?.trim().toLowerCase();if(r===`ipv4first`||r===`verbatim`)return{value:r,source:`env:${h}`};let i=(e?.network)?.dnsResultOrder?.trim().toLowerCase();return i===`ipv4first`||i===`verbatim`?{value:i,source:`config`}:Number.isFinite(n)&&n>=22?{value:`ipv4first`,source:`default-node22`}:{value:null}}const b=e(`telegram/network`),x=[`ETIMEDOUT`,`ENETUNREACH`,`EHOSTUNREACH`,`UND_ERR_CONNECT_TIMEOUT`,`UND_ERR_SOCKET`],S=[{name:`fetch-failed-envelope`,matches:({message:e})=>e.includes(`fetch failed`)},{name:`known-network-code`,matches:({codes:e})=>x.some(t=>e.has(t))}];function C(e){return e===`ipv4first`||e===`verbatim`?e:null}function w(e){if(!e)return;let t=s.lookup;return(n,r,i)=>{t(n,{...typeof r==`number`?{family:r}:r?{...r}:{},order:e,verbatim:e===`verbatim`},i)}}function T(e){let t={};e.forceIpv4?(t.family=4,t.autoSelectFamily=!1):typeof e.autoSelectFamily==`boolean`&&(t.autoSelectFamily=e.autoSelectFamily,t.autoSelectFamilyAttemptTimeout=300);let n=w(e.dnsResultOrder);return n&&(t.lookup=n),Object.keys(t).length>0?t:null}function E(e=process.env){let t=e.no_proxy??e.NO_PROXY??``;if(!t)return!1;if(t===`*`)return!0;let n=`api.telegram.org`,r=t.split(/[,\s]/);for(let e=0;e<r.length;e++){let t=r[e];if(!t)continue;let i=t.match(/^(.+):(\d+)$/),a=(i?i[1]:t).replace(/^\*?\./,``).toLowerCase(),o=i?Number.parseInt(i[2],10):0;if(!(o&&o!==443)&&(n===a||n.slice(-(a.length+1))===`.${a}`))return!0}return!1}function D(e=process.env){return n(`https`,e)}function O(e){let t=T({autoSelectFamily:e.autoSelectFamily,dnsResultOrder:e.dnsResultOrder,forceIpv4:e.forceIpv4}),n=e.proxyUrl?.trim();if(n){let e=t?{uri:n,proxyTls:t}:n;try{return{dispatcher:new u(e),mode:`explicit-proxy`}}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`explicit proxy dispatcher init failed: ${t}`,{cause:e})}}if(e.useEnvProxy){let e=t?{connect:t,proxyTls:t}:void 0;try{return{dispatcher:new l(e),mode:`env-proxy`}}catch(e){b.warn(`env proxy dispatcher init failed; falling back to direct dispatcher: ${e instanceof Error?e.message:String(e)}`)}}return{dispatcher:new c(t?{connect:t}:void 0),mode:`direct`}}function k(e,t){return e?.dispatcher?e??{}:e?{...e,dispatcher:t}:{dispatcher:t}}function A(e){return i(e)??e}function j(e){if(e.autoSelectDecision.value!==null){let t=e.autoSelectDecision.source?` (${e.autoSelectDecision.source})`:``;b.info(`autoSelectFamily=${e.autoSelectDecision.value}${t}`)}if(e.dnsDecision.value!==null){let t=e.dnsDecision.source?` (${e.dnsDecision.source})`:``;b.info(`dnsResultOrder=${e.dnsDecision.value}${t}`)}}function M(e){let t=new Set,n=[e],r=new Set;for(;n.length>0;){let e=n.shift();if(!(!e||r.has(e))&&(r.add(e),typeof e==`object`)){let i=e.code;typeof i==`string`&&i.trim()&&t.add(i.trim().toUpperCase());let a=e.cause;a&&!r.has(a)&&n.push(a);let o=e.errors;if(Array.isArray(o))for(let e of o)e&&!r.has(e)&&n.push(e)}}return t}function N(e){let t=[...M(e)];return t.length>0?t.join(`,`):`none`}function P(e){let t={message:e&&typeof e==`object`&&`message`in e?String(e.message).toLowerCase():``,codes:M(e)};for(let e of S)if(!e.matches(t))return!1;return!0}function F(e,t){let n=v({network:t?.network}),i=y({network:t?.network});j({autoSelectDecision:n,dnsDecision:i});let a=e?r(e):void 0,o=A(d),s=a?o:e?A(e):o;if(e&&!a)return s;let c=C(i.value),l=!a&&D(),u=O({autoSelectFamily:n.value,dnsResultOrder:c,useEnvProxy:l,forceIpv4:!1,proxyUrl:a}),f=u.dispatcher,p=E(),m=u.mode===`direct`||u.mode===`env-proxy`&&p,h=u.mode===`env-proxy`,g=!1,_=null,x=()=>(_||=O({autoSelectFamily:!1,dnsResultOrder:`ipv4first`,useEnvProxy:h,forceIpv4:!0,proxyUrl:a}).dispatcher,_);return(async(e,t)=>{let n=!!t?.dispatcher,r=k(t,g?x():f);try{return await s(e,r)}catch(r){if(P(r)){if(n)return s(e,t??{});if(!m)throw r;return g||(g=!0,b.warn(`fetch fallback: enabling sticky IPv4-only dispatcher (codes=${N(r)})`)),s(e,k(t,x()))}throw r}})}export{F as t};
|
|
2
|
-
//# sourceMappingURL=fetch-BJT3BrkJ.js.map
|
package/dist/fetch-Bn0mWg6a.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-C5XF2Fy5.js";import{t}from"./env-D7wNuBx1.js";import{t as n}from"./proxy-env-FJr5nlvs.js";import{t as r}from"./proxy-fetch-BADsUK4d.js";import{t as i}from"./fetch-Dikjvc5M.js";import{n as a}from"./wsl-Ok7GaSJ6.js";import o from"node:process";import*as s from"node:dns";import{Agent as c,EnvHttpProxyAgent as l,ProxyAgent as u,fetch as d}from"undici";const f=`OPENCLAW_TELEGRAM_DNS_RESULT_ORDER`;let p;function m(){return typeof p==`boolean`||(p=a()),p}function h(e){let n=e?.env??o.env,r=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(o.versions.node.split(`.`)[0]);return t(n.OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY)?{value:!0,source:`env:OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY`}:t(n.OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY)?{value:!1,source:`env:OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY`}:typeof e?.network?.autoSelectFamily==`boolean`?{value:e.network.autoSelectFamily,source:`config`}:m()?{value:!1,source:`default-wsl2`}:Number.isFinite(r)&&r>=22?{value:!0,source:`default-node22`}:{value:null}}function g(e){let t=e?.env??o.env,n=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(o.versions.node.split(`.`)[0]),r=t[f]?.trim().toLowerCase();if(r===`ipv4first`||r===`verbatim`)return{value:r,source:`env:${f}`};let i=(e?.network)?.dnsResultOrder?.trim().toLowerCase();return i===`ipv4first`||i===`verbatim`?{value:i,source:`config`}:Number.isFinite(n)&&n>=22?{value:`ipv4first`,source:`default-node22`}:{value:null}}const _=e(`telegram/network`),v=[`ETIMEDOUT`,`ENETUNREACH`,`EHOSTUNREACH`,`UND_ERR_CONNECT_TIMEOUT`,`UND_ERR_SOCKET`],y=[{name:`fetch-failed-envelope`,matches:({message:e})=>e.includes(`fetch failed`)},{name:`known-network-code`,matches:({codes:e})=>v.some(t=>e.has(t))}];function b(e){return e===`ipv4first`||e===`verbatim`?e:null}function x(e){if(!e)return;let t=s.lookup;return(n,r,i)=>{t(n,{...typeof r==`number`?{family:r}:r?{...r}:{},order:e,verbatim:e===`verbatim`},i)}}function S(e){let t={};e.forceIpv4?(t.family=4,t.autoSelectFamily=!1):typeof e.autoSelectFamily==`boolean`&&(t.autoSelectFamily=e.autoSelectFamily,t.autoSelectFamilyAttemptTimeout=300);let n=x(e.dnsResultOrder);return n&&(t.lookup=n),Object.keys(t).length>0?t:null}function C(e=process.env){let t=e.no_proxy??e.NO_PROXY??``;if(!t)return!1;if(t===`*`)return!0;let n=`api.telegram.org`,r=t.split(/[,\s]/);for(let e=0;e<r.length;e++){let t=r[e];if(!t)continue;let i=t.match(/^(.+):(\d+)$/),a=(i?i[1]:t).replace(/^\*?\./,``).toLowerCase(),o=i?Number.parseInt(i[2],10):0;if(!(o&&o!==443)&&(n===a||n.slice(-(a.length+1))===`.${a}`))return!0}return!1}function w(e=process.env){return n(`https`,e)}function T(e){let t=S({autoSelectFamily:e.autoSelectFamily,dnsResultOrder:e.dnsResultOrder,forceIpv4:e.forceIpv4}),n=e.proxyUrl?.trim();if(n){let e=t?{uri:n,proxyTls:t}:n;try{return{dispatcher:new u(e),mode:`explicit-proxy`}}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`explicit proxy dispatcher init failed: ${t}`,{cause:e})}}if(e.useEnvProxy){let e=t?{connect:t,proxyTls:t}:void 0;try{return{dispatcher:new l(e),mode:`env-proxy`}}catch(e){_.warn(`env proxy dispatcher init failed; falling back to direct dispatcher: ${e instanceof Error?e.message:String(e)}`)}}return{dispatcher:new c(t?{connect:t}:void 0),mode:`direct`}}function E(e,t){return e?.dispatcher?e??{}:e?{...e,dispatcher:t}:{dispatcher:t}}function D(e){return i(e)??e}function O(e){if(e.autoSelectDecision.value!==null){let t=e.autoSelectDecision.source?` (${e.autoSelectDecision.source})`:``;_.info(`autoSelectFamily=${e.autoSelectDecision.value}${t}`)}if(e.dnsDecision.value!==null){let t=e.dnsDecision.source?` (${e.dnsDecision.source})`:``;_.info(`dnsResultOrder=${e.dnsDecision.value}${t}`)}}function k(e){let t=new Set,n=[e],r=new Set;for(;n.length>0;){let e=n.shift();if(!(!e||r.has(e))&&(r.add(e),typeof e==`object`)){let i=e.code;typeof i==`string`&&i.trim()&&t.add(i.trim().toUpperCase());let a=e.cause;a&&!r.has(a)&&n.push(a);let o=e.errors;if(Array.isArray(o))for(let e of o)e&&!r.has(e)&&n.push(e)}}return t}function A(e){let t=[...k(e)];return t.length>0?t.join(`,`):`none`}function j(e){let t={message:e&&typeof e==`object`&&`message`in e?String(e.message).toLowerCase():``,codes:k(e)};for(let e of y)if(!e.matches(t))return!1;return!0}function M(e,t){let n=h({network:t?.network}),i=g({network:t?.network});O({autoSelectDecision:n,dnsDecision:i});let a=e?r(e):void 0,o=D(d),s=a?o:e?D(e):o;if(e&&!a)return s;let c=b(i.value),l=!a&&w(),u=T({autoSelectFamily:n.value,dnsResultOrder:c,useEnvProxy:l,forceIpv4:!1,proxyUrl:a}),f=u.dispatcher,p=C(),m=u.mode===`direct`||u.mode===`env-proxy`&&p,v=u.mode===`env-proxy`,y=!1,x=null,S=()=>(x||=T({autoSelectFamily:!1,dnsResultOrder:`ipv4first`,useEnvProxy:v,forceIpv4:!0,proxyUrl:a}).dispatcher,x);return(async(e,t)=>{let n=!!t?.dispatcher,r=E(t,y?S():f);try{return await s(e,r)}catch(r){if(j(r)){if(n)return s(e,t??{});if(!m)throw r;return y||(y=!0,_.warn(`fetch fallback: enabling sticky IPv4-only dispatcher (codes=${A(r)})`)),s(e,E(t,S()))}throw r}})}export{M as t};
|
|
2
|
-
//# sourceMappingURL=fetch-Bn0mWg6a.js.map
|
package/dist/fetch-Ce-scEU-.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-BLbY429l.js";import{i as t}from"./entry.js";import{t as n}from"./proxy-env-FJr5nlvs.js";import{t as r}from"./proxy-fetch-gWETR3cl.js";import{t as i}from"./fetch-Dh-apy46.js";import{n as a}from"./wsl-DHxB2Ew_.js";import o from"node:process";import*as s from"node:dns";import{Agent as c,EnvHttpProxyAgent as l,ProxyAgent as u,fetch as d}from"undici";const f=`OPENCLAW_TELEGRAM_DNS_RESULT_ORDER`;let p;function m(){return typeof p==`boolean`||(p=a()),p}function h(e){let n=e?.env??o.env,r=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(o.versions.node.split(`.`)[0]);return t(n.OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY)?{value:!0,source:`env:OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY`}:t(n.OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY)?{value:!1,source:`env:OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY`}:typeof e?.network?.autoSelectFamily==`boolean`?{value:e.network.autoSelectFamily,source:`config`}:m()?{value:!1,source:`default-wsl2`}:Number.isFinite(r)&&r>=22?{value:!0,source:`default-node22`}:{value:null}}function g(e){let t=e?.env??o.env,n=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(o.versions.node.split(`.`)[0]),r=t[f]?.trim().toLowerCase();if(r===`ipv4first`||r===`verbatim`)return{value:r,source:`env:${f}`};let i=(e?.network)?.dnsResultOrder?.trim().toLowerCase();return i===`ipv4first`||i===`verbatim`?{value:i,source:`config`}:Number.isFinite(n)&&n>=22?{value:`ipv4first`,source:`default-node22`}:{value:null}}const _=e(`telegram/network`),v=[`ETIMEDOUT`,`ENETUNREACH`,`EHOSTUNREACH`,`UND_ERR_CONNECT_TIMEOUT`,`UND_ERR_SOCKET`],y=[{name:`fetch-failed-envelope`,matches:({message:e})=>e.includes(`fetch failed`)},{name:`known-network-code`,matches:({codes:e})=>v.some(t=>e.has(t))}];function b(e){return e===`ipv4first`||e===`verbatim`?e:null}function x(e){if(!e)return;let t=s.lookup;return(n,r,i)=>{t(n,{...typeof r==`number`?{family:r}:r?{...r}:{},order:e,verbatim:e===`verbatim`},i)}}function S(e){let t={};e.forceIpv4?(t.family=4,t.autoSelectFamily=!1):typeof e.autoSelectFamily==`boolean`&&(t.autoSelectFamily=e.autoSelectFamily,t.autoSelectFamilyAttemptTimeout=300);let n=x(e.dnsResultOrder);return n&&(t.lookup=n),Object.keys(t).length>0?t:null}function C(e=process.env){let t=e.no_proxy??e.NO_PROXY??``;if(!t)return!1;if(t===`*`)return!0;let n=`api.telegram.org`,r=t.split(/[,\s]/);for(let e=0;e<r.length;e++){let t=r[e];if(!t)continue;let i=t.match(/^(.+):(\d+)$/),a=(i?i[1]:t).replace(/^\*?\./,``).toLowerCase(),o=i?Number.parseInt(i[2],10):0;if(!(o&&o!==443)&&(n===a||n.slice(-(a.length+1))===`.${a}`))return!0}return!1}function w(e=process.env){return n(`https`,e)}function T(e){let t=S({autoSelectFamily:e.autoSelectFamily,dnsResultOrder:e.dnsResultOrder,forceIpv4:e.forceIpv4}),n=e.proxyUrl?.trim();if(n){let e=t?{uri:n,proxyTls:t}:n;try{return{dispatcher:new u(e),mode:`explicit-proxy`}}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`explicit proxy dispatcher init failed: ${t}`,{cause:e})}}if(e.useEnvProxy){let e=t?{connect:t,proxyTls:t}:void 0;try{return{dispatcher:new l(e),mode:`env-proxy`}}catch(e){_.warn(`env proxy dispatcher init failed; falling back to direct dispatcher: ${e instanceof Error?e.message:String(e)}`)}}return{dispatcher:new c(t?{connect:t}:void 0),mode:`direct`}}function E(e,t){return e?.dispatcher?e??{}:e?{...e,dispatcher:t}:{dispatcher:t}}function D(e){return i(e)??e}function O(e){if(e.autoSelectDecision.value!==null){let t=e.autoSelectDecision.source?` (${e.autoSelectDecision.source})`:``;_.info(`autoSelectFamily=${e.autoSelectDecision.value}${t}`)}if(e.dnsDecision.value!==null){let t=e.dnsDecision.source?` (${e.dnsDecision.source})`:``;_.info(`dnsResultOrder=${e.dnsDecision.value}${t}`)}}function k(e){let t=new Set,n=[e],r=new Set;for(;n.length>0;){let e=n.shift();if(!(!e||r.has(e))&&(r.add(e),typeof e==`object`)){let i=e.code;typeof i==`string`&&i.trim()&&t.add(i.trim().toUpperCase());let a=e.cause;a&&!r.has(a)&&n.push(a);let o=e.errors;if(Array.isArray(o))for(let e of o)e&&!r.has(e)&&n.push(e)}}return t}function A(e){let t=[...k(e)];return t.length>0?t.join(`,`):`none`}function j(e){let t={message:e&&typeof e==`object`&&`message`in e?String(e.message).toLowerCase():``,codes:k(e)};for(let e of y)if(!e.matches(t))return!1;return!0}function M(e,t){let n=h({network:t?.network}),i=g({network:t?.network});O({autoSelectDecision:n,dnsDecision:i});let a=e?r(e):void 0,o=D(d),s=a?o:e?D(e):o;if(e&&!a)return s;let c=b(i.value),l=!a&&w(),u=T({autoSelectFamily:n.value,dnsResultOrder:c,useEnvProxy:l,forceIpv4:!1,proxyUrl:a}),f=u.dispatcher,p=C(),m=u.mode===`direct`||u.mode===`env-proxy`&&p,v=u.mode===`env-proxy`,y=!1,x=null,S=()=>(x||=T({autoSelectFamily:!1,dnsResultOrder:`ipv4first`,useEnvProxy:v,forceIpv4:!0,proxyUrl:a}).dispatcher,x);return(async(e,t)=>{let n=!!t?.dispatcher,r=E(t,y?S():f);try{return await s(e,r)}catch(r){if(j(r)){if(n)return s(e,t??{});if(!m)throw r;return y||(y=!0,_.warn(`fetch fallback: enabling sticky IPv4-only dispatcher (codes=${A(r)})`)),s(e,E(t,S()))}throw r}})}export{M as t};
|
|
2
|
-
//# sourceMappingURL=fetch-Ce-scEU-.js.map
|
package/dist/fetch-D0rZDHKO.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}const r=Symbol.for(`openclaw.fetch.abort-signal-wrapped`);function i(e,t){let n=e?.body!=null,r=!n&&typeof Request<`u`&&t instanceof Request&&t.body!=null;return!n&&!r||e&&`duplex`in e?e:e?{...e,duplex:`half`}:{duplex:`half`}}function a(e){if(e[r])return e;let n=Object.assign(((n,r)=>{let a=i(r,n),o=a?.signal;if(!o||typeof AbortSignal<`u`&&o instanceof AbortSignal||typeof AbortController>`u`||typeof o.addEventListener!=`function`)return e(n,a);let s=new AbortController,c=t(s),l=!1;o.aborted?s.abort():(o.addEventListener(`abort`,c,{once:!0}),l=!0);let u=()=>{if(!(!l||typeof o.removeEventListener!=`function`)){l=!1;try{o.removeEventListener(`abort`,c)}catch{}}};try{return e(n,{...a,signal:s.signal}).finally(u)}catch(e){throw u(),e}}),e),a=e;return n.preconnect=typeof a.preconnect==`function`?a.preconnect.bind(a):()=>{},Object.defineProperty(n,r,{value:!0,enumerable:!1,configurable:!1,writable:!1}),n}function o(e){let t=e??globalThis.fetch;if(t)return a(t)}export{t as n,n as r,o as t};
|
|
2
|
-
//# sourceMappingURL=fetch-D0rZDHKO.js.map
|
package/dist/fetch-D5wrJ0AX.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{W as e,d as t,u as n}from"./paths-piJASC5k.js";import{c as r}from"./paths-BpQOWYiT.js";import{Z as i}from"./logger-DwWqfo66.js";import{n as a,t as o}from"./fetch-guard-oWKGrwV4.js";import s from"node:path";let c;function l(){return c||=i(),c}function u(e,t={}){let n=s.resolve(e);return[t.preferredTmpDir??l(),s.join(n,`media`),s.join(n,`agents`),s.join(n,`workspace`),s.join(n,`sandboxes`)]}function d(){return u(r())}function f(t,n){let i=u(r());if(!n?.trim())return i;let a=e(t,n);if(!a)return i;let o=s.resolve(a);return i.includes(o)||i.push(o),i}async function p(e,t){let n,r=!1;return await new Promise((i,a)=>{let o=()=>{n!==void 0&&(clearTimeout(n),n=void 0)};n=setTimeout(()=>{r=!0,o(),e.cancel().catch(()=>void 0),a(Error(`Media download stalled: no data received for ${t}ms`))},t),e.read().then(e=>{o(),r||i(e)},e=>{o(),r||a(e)})})}async function m(e,t,n){let r=n?.onOverflow??(e=>Error(`Content too large: ${e.size} bytes (limit: ${e.maxBytes} bytes)`)),i=n?.chunkTimeoutMs,a=e.body;if(!a||typeof a.getReader!=`function`){let n=Buffer.from(await e.arrayBuffer());if(n.length>t)throw r({size:n.length,maxBytes:t,res:e});return n}let o=a.getReader(),s=[],c=0;try{for(;;){let{done:n,value:a}=i?await p(o,i):await o.read();if(n)break;if(a?.length){if(c+=a.length,c>t){try{await o.cancel()}catch{}throw r({size:c,maxBytes:t,res:e})}s.push(a)}}}finally{try{o.releaseLock()}catch{}}return Buffer.concat(s.map(e=>Buffer.from(e)),c)}var h=class extends Error{constructor(e,t){super(t),this.code=e,this.name=`MediaFetchError`}};function g(e){return e.replace(/^["']|["']$/g,``)}function _(e){if(!e)return;let t=/filename\*\s*=\s*([^;]+)/i.exec(e);if(t?.[1]){let e=g(t[1].trim()),n=e.split(`''`).slice(1).join(`''`)||e;try{return s.basename(decodeURIComponent(n))}catch{return s.basename(n)}}let n=/filename\s*=\s*([^;]+)/i.exec(e);if(n?.[1])return s.basename(g(n[1].trim()))}async function v(e,t=200){try{let n=await e.text();if(!n)return;let r=n.replace(/\s+/g,` `).trim();return r?r.length<=t?r:`${r.slice(0,t)}…`:void 0}catch{return}}async function y(e){let{url:r,fetchImpl:i,requestInit:c,filePathHint:l,maxBytes:u,maxRedirects:d,readIdleTimeoutMs:f,ssrfPolicy:p,lookupFn:g}=e,y,b=r,x=null;try{let e=await o(a({url:r,fetchImpl:i,init:c,maxRedirects:d,policy:p,lookupFn:g}));y=e.response,b=e.finalUrl,x=e.release}catch(e){throw new h(`fetch_failed`,`Failed to fetch media from ${r}: ${String(e)}`)}try{if(!y.ok){let e=y.statusText?` ${y.statusText}`:``,t=b===r?``:` (redirected to ${b})`,n=`HTTP ${y.status}${e}`;if(!y.body)n=`HTTP ${y.status}${e}; empty response body`;else{let e=await v(y);e&&(n+=`; body: ${e}`)}throw new h(`http_error`,`Failed to fetch media from ${r}${t}: ${n}`)}let e=y.headers.get(`content-length`);if(u&&e){let t=Number(e);if(Number.isFinite(t)&&t>u)throw new h(`max_bytes`,`Failed to fetch media from ${r}: content length ${t} exceeds maxBytes ${u}`)}let i;try{i=u?await m(y,u,{onOverflow:({maxBytes:e,res:t})=>new h(`max_bytes`,`Failed to fetch media from ${t.url||r}: payload exceeds maxBytes ${e}`),chunkTimeoutMs:f}):Buffer.from(await y.arrayBuffer())}catch(e){throw e instanceof h?e:new h(`fetch_failed`,`Failed to fetch media from ${y.url||r}: ${String(e)}`)}let a;try{let e=new URL(b);a=s.basename(e.pathname)||void 0}catch{}let o=_(y.headers.get(`content-disposition`)),c=o||a||(l?s.basename(l):void 0),d=o&&s.extname(o)?o:l??b,p=await n({buffer:i,headerMime:y.headers.get(`content-type`),filePath:d});if(c&&!s.extname(c)&&p){let e=t(p);e&&(c=`${c}${e}`)}return{buffer:i,contentType:p??void 0,fileName:c}}finally{x&&await x()}}export{d as a,f as i,y as n,m as r,h as t};
|
|
2
|
-
//# sourceMappingURL=fetch-D5wrJ0AX.js.map
|
package/dist/fetch-DBat25iG.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{G as e,d as t,u as n}from"./paths-CrCoPIVK.js";import{c as r}from"./paths-CChBdtE8.js";import{E as i}from"./subsystem-Bc2XrjUz.js";import{n as a,t as o}from"./fetch-guard-DvaNcypz.js";import s from"node:path";let c;function l(){return c||=i(),c}function u(e,t={}){let n=s.resolve(e);return[t.preferredTmpDir??l(),s.join(n,`media`),s.join(n,`agents`),s.join(n,`workspace`),s.join(n,`sandboxes`)]}function d(){return u(r())}function f(t,n){let i=u(r());if(!n?.trim())return i;let a=e(t,n);if(!a)return i;let o=s.resolve(a);return i.includes(o)||i.push(o),i}async function p(e,t){let n,r=!1;return await new Promise((i,a)=>{let o=()=>{n!==void 0&&(clearTimeout(n),n=void 0)};n=setTimeout(()=>{r=!0,o(),e.cancel().catch(()=>void 0),a(Error(`Media download stalled: no data received for ${t}ms`))},t),e.read().then(e=>{o(),r||i(e)},e=>{o(),r||a(e)})})}async function m(e,t,n){let r=n?.onOverflow??(e=>Error(`Content too large: ${e.size} bytes (limit: ${e.maxBytes} bytes)`)),i=n?.chunkTimeoutMs,a=e.body;if(!a||typeof a.getReader!=`function`){let n=Buffer.from(await e.arrayBuffer());if(n.length>t)throw r({size:n.length,maxBytes:t,res:e});return n}let o=a.getReader(),s=[],c=0;try{for(;;){let{done:n,value:a}=i?await p(o,i):await o.read();if(n)break;if(a?.length){if(c+=a.length,c>t){try{await o.cancel()}catch{}throw r({size:c,maxBytes:t,res:e})}s.push(a)}}}finally{try{o.releaseLock()}catch{}}return Buffer.concat(s.map(e=>Buffer.from(e)),c)}var h=class extends Error{constructor(e,t){super(t),this.code=e,this.name=`MediaFetchError`}};function g(e){return e.replace(/^["']|["']$/g,``)}function _(e){if(!e)return;let t=/filename\*\s*=\s*([^;]+)/i.exec(e);if(t?.[1]){let e=g(t[1].trim()),n=e.split(`''`).slice(1).join(`''`)||e;try{return s.basename(decodeURIComponent(n))}catch{return s.basename(n)}}let n=/filename\s*=\s*([^;]+)/i.exec(e);if(n?.[1])return s.basename(g(n[1].trim()))}async function v(e,t=200){try{let n=await e.text();if(!n)return;let r=n.replace(/\s+/g,` `).trim();return r?r.length<=t?r:`${r.slice(0,t)}…`:void 0}catch{return}}async function y(e){let{url:r,fetchImpl:i,requestInit:c,filePathHint:l,maxBytes:u,maxRedirects:d,readIdleTimeoutMs:f,ssrfPolicy:p,lookupFn:g}=e,y,b=r,x=null;try{let e=await o(a({url:r,fetchImpl:i,init:c,maxRedirects:d,policy:p,lookupFn:g}));y=e.response,b=e.finalUrl,x=e.release}catch(e){throw new h(`fetch_failed`,`Failed to fetch media from ${r}: ${String(e)}`)}try{if(!y.ok){let e=y.statusText?` ${y.statusText}`:``,t=b===r?``:` (redirected to ${b})`,n=`HTTP ${y.status}${e}`;if(!y.body)n=`HTTP ${y.status}${e}; empty response body`;else{let e=await v(y);e&&(n+=`; body: ${e}`)}throw new h(`http_error`,`Failed to fetch media from ${r}${t}: ${n}`)}let e=y.headers.get(`content-length`);if(u&&e){let t=Number(e);if(Number.isFinite(t)&&t>u)throw new h(`max_bytes`,`Failed to fetch media from ${r}: content length ${t} exceeds maxBytes ${u}`)}let i;try{i=u?await m(y,u,{onOverflow:({maxBytes:e,res:t})=>new h(`max_bytes`,`Failed to fetch media from ${t.url||r}: payload exceeds maxBytes ${e}`),chunkTimeoutMs:f}):Buffer.from(await y.arrayBuffer())}catch(e){throw e instanceof h?e:new h(`fetch_failed`,`Failed to fetch media from ${y.url||r}: ${String(e)}`)}let a;try{let e=new URL(b);a=s.basename(e.pathname)||void 0}catch{}let o=_(y.headers.get(`content-disposition`)),c=o||a||(l?s.basename(l):void 0),d=o&&s.extname(o)?o:l??b,p=await n({buffer:i,headerMime:y.headers.get(`content-type`),filePath:d});if(c&&!s.extname(c)&&p){let e=t(p);e&&(c=`${c}${e}`)}return{buffer:i,contentType:p??void 0,fileName:c}}finally{x&&await x()}}export{d as a,f as i,y as n,m as r,h as t};
|
|
2
|
-
//# sourceMappingURL=fetch-DBat25iG.js.map
|
package/dist/fetch-DHo17YmK.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{t as e}from"./fetch-timeout-Cj8_oAls.js";const t=Symbol.for(`openclaw.fetch.abort-signal-wrapped`);function n(e,t){let n=e?.body!=null,r=!n&&typeof Request<`u`&&t instanceof Request&&t.body!=null;return!n&&!r||e&&`duplex`in e?e:e?{...e,duplex:`half`}:{duplex:`half`}}function r(r){if(r[t])return r;let i=Object.assign(((t,i)=>{let a=n(i,t),o=a?.signal;if(!o||typeof AbortSignal<`u`&&o instanceof AbortSignal||typeof AbortController>`u`||typeof o.addEventListener!=`function`)return r(t,a);let s=new AbortController,c=e(s),l=!1;o.aborted?s.abort():(o.addEventListener(`abort`,c,{once:!0}),l=!0);let u=()=>{if(!(!l||typeof o.removeEventListener!=`function`)){l=!1;try{o.removeEventListener(`abort`,c)}catch{}}};try{return r(t,{...a,signal:s.signal}).finally(u)}catch(e){throw u(),e}}),r),a=r;return i.preconnect=typeof a.preconnect==`function`?a.preconnect.bind(a):()=>{},Object.defineProperty(i,t,{value:!0,enumerable:!1,configurable:!1,writable:!1}),i}function i(e){let t=e??globalThis.fetch;if(t)return r(t)}export{r as n,i as t};
|
|
2
|
-
//# sourceMappingURL=fetch-DHo17YmK.js.map
|
package/dist/fetch-Dh-apy46.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{t as e}from"./fetch-timeout-CdYxWG9w.js";const t=Symbol.for(`openclaw.fetch.abort-signal-wrapped`);function n(e,t){let n=e?.body!=null,r=!n&&typeof Request<`u`&&t instanceof Request&&t.body!=null;return!n&&!r||e&&`duplex`in e?e:e?{...e,duplex:`half`}:{duplex:`half`}}function r(r){if(r[t])return r;let i=Object.assign(((t,i)=>{let a=n(i,t),o=a?.signal;if(!o||typeof AbortSignal<`u`&&o instanceof AbortSignal||typeof AbortController>`u`||typeof o.addEventListener!=`function`)return r(t,a);let s=new AbortController,c=e(s),l=!1;o.aborted?s.abort():(o.addEventListener(`abort`,c,{once:!0}),l=!0);let u=()=>{if(!(!l||typeof o.removeEventListener!=`function`)){l=!1;try{o.removeEventListener(`abort`,c)}catch{}}};try{return r(t,{...a,signal:s.signal}).finally(u)}catch(e){throw u(),e}}),r),a=r;return i.preconnect=typeof a.preconnect==`function`?a.preconnect.bind(a):()=>{},Object.defineProperty(i,t,{value:!0,enumerable:!1,configurable:!1,writable:!1}),i}function i(e){let t=e??globalThis.fetch;if(t)return r(t)}export{r as n,i as t};
|
|
2
|
-
//# sourceMappingURL=fetch-Dh-apy46.js.map
|
package/dist/fetch-Dikjvc5M.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{t as e}from"./fetch-timeout-u8g99Ax0.js";const t=Symbol.for(`openclaw.fetch.abort-signal-wrapped`);function n(e,t){let n=e?.body!=null,r=!n&&typeof Request<`u`&&t instanceof Request&&t.body!=null;return!n&&!r||e&&`duplex`in e?e:e?{...e,duplex:`half`}:{duplex:`half`}}function r(r){if(r[t])return r;let i=Object.assign(((t,i)=>{let a=n(i,t),o=a?.signal;if(!o||typeof AbortSignal<`u`&&o instanceof AbortSignal||typeof AbortController>`u`||typeof o.addEventListener!=`function`)return r(t,a);let s=new AbortController,c=e(s),l=!1;o.aborted?s.abort():(o.addEventListener(`abort`,c,{once:!0}),l=!0);let u=()=>{if(!(!l||typeof o.removeEventListener!=`function`)){l=!1;try{o.removeEventListener(`abort`,c)}catch{}}};try{return r(t,{...a,signal:s.signal}).finally(u)}catch(e){throw u(),e}}),r),a=r;return i.preconnect=typeof a.preconnect==`function`?a.preconnect.bind(a):()=>{},Object.defineProperty(i,t,{value:!0,enumerable:!1,configurable:!1,writable:!1}),i}function i(e){let t=e??globalThis.fetch;if(t)return r(t)}export{r as n,i as t};
|
|
2
|
-
//# sourceMappingURL=fetch-Dikjvc5M.js.map
|
package/dist/fetch-DsjPfQlp.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{c as e,r as t,t as n}from"./proxy-env-DrC3TIGh.js";import{t as r}from"./fetch-D0rZDHKO.js";import"node:fs/promises";import{readFileSync as i}from"node:fs";import a from"node:process";import*as o from"node:dns";import{Agent as s,EnvHttpProxyAgent as c,ProxyAgent as l,fetch as u}from"undici";function d(){return!!(process.env.WSL_INTEROP||process.env.WSL_DISTRO_NAME||process.env.WSLENV)}function f(){if(process.platform!==`linux`)return!1;if(d())return!0;try{let e=i(`/proc/version`,`utf8`).toLowerCase();return e.includes(`microsoft`)||e.includes(`wsl`)}catch{return!1}}function p(){if(!f())return!1;try{let e=i(`/proc/version`,`utf8`).toLowerCase();return e.includes(`wsl2`)||e.includes(`microsoft-standard`)}catch{return!1}}const m=`OPENCLAW_TELEGRAM_DNS_RESULT_ORDER`;let h;function g(){return typeof h==`boolean`||(h=p()),h}function _(e){let n=e?.env??a.env,r=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(a.versions.node.split(`.`)[0]);return t(n.OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY)?{value:!0,source:`env:OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY`}:t(n.OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY)?{value:!1,source:`env:OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY`}:typeof e?.network?.autoSelectFamily==`boolean`?{value:e.network.autoSelectFamily,source:`config`}:g()?{value:!1,source:`default-wsl2`}:Number.isFinite(r)&&r>=22?{value:!0,source:`default-node22`}:{value:null}}function v(e){let t=e?.env??a.env,n=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(a.versions.node.split(`.`)[0]),r=t[m]?.trim().toLowerCase();if(r===`ipv4first`||r===`verbatim`)return{value:r,source:`env:${m}`};let i=(e?.network)?.dnsResultOrder?.trim().toLowerCase();return i===`ipv4first`||i===`verbatim`?{value:i,source:`config`}:Number.isFinite(n)&&n>=22?{value:`ipv4first`,source:`default-node22`}:{value:null}}const y=Symbol.for(`openclaw.proxyFetch.proxyUrl`);function b(e){let t=null,n=()=>(t||=new l(e),t),r=((e,t)=>u(e,{...t,dispatcher:n()}));return Object.defineProperty(r,y,{value:e,enumerable:!1,configurable:!1,writable:!1}),r}function x(e){let t=e?.[y];return typeof t==`string`&&t.trim()||void 0}const S=e(`telegram/network`),C=[`ETIMEDOUT`,`ENETUNREACH`,`EHOSTUNREACH`,`UND_ERR_CONNECT_TIMEOUT`,`UND_ERR_SOCKET`],w=[{name:`fetch-failed-envelope`,matches:({message:e})=>e.includes(`fetch failed`)},{name:`known-network-code`,matches:({codes:e})=>C.some(t=>e.has(t))}];function T(e){return e===`ipv4first`||e===`verbatim`?e:null}function E(e){if(!e)return;let t=o.lookup;return(n,r,i)=>{t(n,{...typeof r==`number`?{family:r}:r?{...r}:{},order:e,verbatim:e===`verbatim`},i)}}function D(e){let t={};e.forceIpv4?(t.family=4,t.autoSelectFamily=!1):typeof e.autoSelectFamily==`boolean`&&(t.autoSelectFamily=e.autoSelectFamily,t.autoSelectFamilyAttemptTimeout=300);let n=E(e.dnsResultOrder);return n&&(t.lookup=n),Object.keys(t).length>0?t:null}function O(e=process.env){let t=e.no_proxy??e.NO_PROXY??``;if(!t)return!1;if(t===`*`)return!0;let n=`api.telegram.org`,r=t.split(/[,\s]/);for(let e=0;e<r.length;e++){let t=r[e];if(!t)continue;let i=t.match(/^(.+):(\d+)$/),a=(i?i[1]:t).replace(/^\*?\./,``).toLowerCase(),o=i?Number.parseInt(i[2],10):0;if(!(o&&o!==443)&&(n===a||n.slice(-(a.length+1))===`.${a}`))return!0}return!1}function k(e=process.env){return n(`https`,e)}function A(e){let t=D({autoSelectFamily:e.autoSelectFamily,dnsResultOrder:e.dnsResultOrder,forceIpv4:e.forceIpv4}),n=e.proxyUrl?.trim();if(n){let e=t?{uri:n,proxyTls:t}:n;try{return{dispatcher:new l(e),mode:`explicit-proxy`}}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`explicit proxy dispatcher init failed: ${t}`,{cause:e})}}if(e.useEnvProxy){let e=t?{connect:t,proxyTls:t}:void 0;try{return{dispatcher:new c(e),mode:`env-proxy`}}catch(e){S.warn(`env proxy dispatcher init failed; falling back to direct dispatcher: ${e instanceof Error?e.message:String(e)}`)}}return{dispatcher:new s(t?{connect:t}:void 0),mode:`direct`}}function j(e,t){return e?.dispatcher?e??{}:e?{...e,dispatcher:t}:{dispatcher:t}}function M(e){return r(e)??e}function N(e){if(e.autoSelectDecision.value!==null){let t=e.autoSelectDecision.source?` (${e.autoSelectDecision.source})`:``;S.info(`autoSelectFamily=${e.autoSelectDecision.value}${t}`)}if(e.dnsDecision.value!==null){let t=e.dnsDecision.source?` (${e.dnsDecision.source})`:``;S.info(`dnsResultOrder=${e.dnsDecision.value}${t}`)}}function P(e){let t=new Set,n=[e],r=new Set;for(;n.length>0;){let e=n.shift();if(!(!e||r.has(e))&&(r.add(e),typeof e==`object`)){let i=e.code;typeof i==`string`&&i.trim()&&t.add(i.trim().toUpperCase());let a=e.cause;a&&!r.has(a)&&n.push(a);let o=e.errors;if(Array.isArray(o))for(let e of o)e&&!r.has(e)&&n.push(e)}}return t}function F(e){let t=[...P(e)];return t.length>0?t.join(`,`):`none`}function I(e){let t={message:e&&typeof e==`object`&&`message`in e?String(e.message).toLowerCase():``,codes:P(e)};for(let e of w)if(!e.matches(t))return!1;return!0}function L(e,t){let n=_({network:t?.network}),r=v({network:t?.network});N({autoSelectDecision:n,dnsDecision:r});let i=e?x(e):void 0,a=M(u),o=i?a:e?M(e):a;if(e&&!i)return o;let s=T(r.value),c=!i&&k(),l=A({autoSelectFamily:n.value,dnsResultOrder:s,useEnvProxy:c,forceIpv4:!1,proxyUrl:i}),d=l.dispatcher,f=O(),p=l.mode===`direct`||l.mode===`env-proxy`&&f,m=l.mode===`env-proxy`,h=!1,g=null,y=()=>(g||=A({autoSelectFamily:!1,dnsResultOrder:`ipv4first`,useEnvProxy:m,forceIpv4:!0,proxyUrl:i}).dispatcher,g);return(async(e,t)=>{let n=!!t?.dispatcher,r=j(t,h?y():d);try{return await o(e,r)}catch(r){if(I(r)){if(n)return o(e,t??{});if(!p)throw r;return h||(h=!0,S.warn(`fetch fallback: enabling sticky IPv4-only dispatcher (codes=${F(r)})`)),o(e,j(t,y()))}throw r}})}export{b as n,L as t};
|
|
2
|
-
//# sourceMappingURL=fetch-DsjPfQlp.js.map
|
package/dist/fetch-_g8lZ8K8.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{t as e}from"./fetch-timeout-DoOI_izT.js";const t=Symbol.for(`openclaw.fetch.abort-signal-wrapped`);function n(e,t){let n=e?.body!=null,r=!n&&typeof Request<`u`&&t instanceof Request&&t.body!=null;return!n&&!r||e&&`duplex`in e?e:e?{...e,duplex:`half`}:{duplex:`half`}}function r(r){if(r[t])return r;let i=Object.assign(((t,i)=>{let a=n(i,t),o=a?.signal;if(!o||typeof AbortSignal<`u`&&o instanceof AbortSignal||typeof AbortController>`u`||typeof o.addEventListener!=`function`)return r(t,a);let s=new AbortController,c=e(s),l=!1;o.aborted?s.abort():(o.addEventListener(`abort`,c,{once:!0}),l=!0);let u=()=>{if(!(!l||typeof o.removeEventListener!=`function`)){l=!1;try{o.removeEventListener(`abort`,c)}catch{}}};try{return r(t,{...a,signal:s.signal}).finally(u)}catch(e){throw u(),e}}),r),a=r;return i.preconnect=typeof a.preconnect==`function`?a.preconnect.bind(a):()=>{},Object.defineProperty(i,t,{value:!0,enumerable:!1,configurable:!1,writable:!1}),i}function i(e){let t=e??globalThis.fetch;if(t)return r(t)}export{r as n,i as t};
|
|
2
|
-
//# sourceMappingURL=fetch-_g8lZ8K8.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{Aa as e,Ma as t,Pa as n,ja as r}from"./model-selection-BLbnMb5E.js";import{i}from"./logger-Bl8URnrW.js";import{n as a}from"./proxy-env-FJr5nlvs.js";import{t as o}from"./fetch-timeout-u8g99Ax0.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async e=>{v||(v=!0,_(),await r(e??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let e=await n(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&a()?h=new s:o.pinDns!==!1&&(h=t(e));let i={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),i);if(p(_.status)){let e=_.headers.get(`location`);if(!e)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let t=new URL(e,f),n=t.toString();if(b.has(n))throw await y(h),Error(`Redirect loop detected`);t.origin!==f.origin&&(S=m(S)),b.add(n),_.body?.cancel(),await r(h),x=n;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(t){throw t instanceof e&&i(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${t.message}`),await y(h),t}}}export{u as n,d as r,g as t};
|
|
2
|
-
//# sourceMappingURL=fetch-guard-7BAwnP4a.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{_i as e,gi as t,hi as n,yi as r}from"./auth-profiles-C8rZRS0X.js";import{i}from"./logger-kQAOe3qp.js";import{n as a}from"./proxy-env-FJr5nlvs.js";import{t as o}from"./fetch-timeout-CdYxWG9w.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async e=>{v||(v=!0,_(),await t(e??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let n=await r(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&a()?h=new s:o.pinDns!==!1&&(h=e(n));let i={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),i);if(p(_.status)){let e=_.headers.get(`location`);if(!e)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let n=new URL(e,f),r=n.toString();if(b.has(r))throw await y(h),Error(`Redirect loop detected`);n.origin!==f.origin&&(S=m(S)),b.add(r),_.body?.cancel(),await t(h),x=r;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(e){throw e instanceof n&&i(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${e.message}`),await y(h),e}}}export{u as n,d as r,g as t};
|
|
2
|
-
//# sourceMappingURL=fetch-guard-DaZmvp-L.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{Ji as e,Yi as t,Zi as n,qi as r}from"./model-selection-D7mdJmGK.js";import{n as i}from"./proxy-env-DcmW_urA.js";import{i as a}from"./logger-5W0OocJW.js";import{t as o}from"./fetch-timeout-DoOI_izT.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async t=>{v||(v=!0,_(),await e(t??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let r=await n(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&i()?h=new s:o.pinDns!==!1&&(h=t(r));let a={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),a);if(p(_.status)){let t=_.headers.get(`location`);if(!t)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let n=new URL(t,f),r=n.toString();if(b.has(r))throw await y(h),Error(`Redirect loop detected`);n.origin!==f.origin&&(S=m(S)),b.add(r),_.body?.cancel(),await e(h),x=r;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(e){throw e instanceof r&&a(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${e.message}`),await y(h),e}}}export{u as n,d as r,g as t};
|
|
2
|
-
//# sourceMappingURL=fetch-guard-DvaNcypz.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{i as e}from"./logger-DwWqfo66.js";import{Ji as t,Yi as n,Zi as r,qi as i}from"./model-selection-DvekK9rZ.js";import{n as a}from"./proxy-env-BNhTHkd_.js";import{t as o}from"./fetch-timeout-Cj8_oAls.js";import{EnvHttpProxyAgent as s}from"undici";const c={STRICT:`strict`,TRUSTED_ENV_PROXY:`trusted_env_proxy`},l=new Set([`accept`,`accept-encoding`,`accept-language`,`cache-control`,`content-language`,`content-type`,`if-match`,`if-modified-since`,`if-none-match`,`if-unmodified-since`,`pragma`,`range`,`user-agent`]);function u(e){return{...e,mode:c.STRICT}}function d(e){return{...e,mode:c.TRUSTED_ENV_PROXY}}function f(e){return e.mode?e.mode:e.proxy===`env`&&e.dangerouslyAllowEnvProxyWithoutPinnedDns===!0?c.TRUSTED_ENV_PROXY:c.STRICT}function p(e){return e===301||e===302||e===303||e===307||e===308}function m(e){if(!e?.headers)return e;let t=new Headers(e.headers),n=new Headers;for(let[e,r]of t.entries())l.has(e.toLowerCase())&&n.set(e,r);return{...e,headers:n}}function h(e){let{timeoutMs:t,signal:n}=e;if(!t&&!n)return{signal:void 0,cleanup:()=>{}};if(!t)return{signal:n,cleanup:()=>{}};let r=new AbortController,i=setTimeout(r.abort.bind(r),t),a=o(r);return n&&(n.aborted?r.abort():n.addEventListener(`abort`,a,{once:!0})),{signal:r.signal,cleanup:()=>{clearTimeout(i),n&&n.removeEventListener(`abort`,a)}}}async function g(o){let l=o.fetchImpl??globalThis.fetch;if(!l)throw Error(`fetch is not available`);let u=typeof o.maxRedirects==`number`&&Number.isFinite(o.maxRedirects)?Math.max(0,Math.floor(o.maxRedirects)):3,d=f(o),{signal:g,cleanup:_}=h({timeoutMs:o.timeoutMs,signal:o.signal}),v=!1,y=async e=>{v||(v=!0,_(),await t(e??void 0))},b=new Set,x=o.url,S=o.init?{...o.init}:void 0,C=0;for(;;){let f;try{f=new URL(x)}catch{throw await y(),Error(`Invalid URL: must be http or https`)}if(![`http:`,`https:`].includes(f.protocol))throw await y(),Error(`Invalid URL: must be http or https`);let h=null;try{let e=await r(f.hostname,{lookupFn:o.lookupFn,policy:o.policy});d===c.TRUSTED_ENV_PROXY&&a()?h=new s:o.pinDns!==!1&&(h=n(e));let i={...S?{...S}:{},redirect:`manual`,...h?{dispatcher:h}:{},...g?{signal:g}:{}},_=await l(f.toString(),i);if(p(_.status)){let e=_.headers.get(`location`);if(!e)throw await y(h),Error(`Redirect missing location header (${_.status})`);if(C+=1,C>u)throw await y(h),Error(`Too many redirects (limit: ${u})`);let n=new URL(e,f),r=n.toString();if(b.has(r))throw await y(h),Error(`Redirect loop detected`);n.origin!==f.origin&&(S=m(S)),b.add(r),_.body?.cancel(),await t(h),x=r;continue}return{response:_,finalUrl:x,release:async()=>y(h)}}catch(t){throw t instanceof i&&e(`security: blocked URL fetch (${o.auditContext??`url-fetch`}) target=${f.origin}${f.pathname} reason=${t.message}`),await y(h),t}}}export{u as n,d as r,g as t};
|
|
2
|
-
//# sourceMappingURL=fetch-guard-oWKGrwV4.js.map
|
package/dist/fetch-hy0JKSsm.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{O as e}from"./logger-DwWqfo66.js";import{r as t,t as n}from"./proxy-env-BNhTHkd_.js";import{t as r}from"./proxy-fetch-DnjU1fEB.js";import{t as i}from"./fetch-DHo17YmK.js";import{readFileSync as a}from"node:fs";import"node:fs/promises";import o from"node:process";import*as s from"node:dns";import{Agent as c,EnvHttpProxyAgent as l,ProxyAgent as u,fetch as d}from"undici";function f(){return!!(process.env.WSL_INTEROP||process.env.WSL_DISTRO_NAME||process.env.WSLENV)}function p(){if(process.platform!==`linux`)return!1;if(f())return!0;try{let e=a(`/proc/version`,`utf8`).toLowerCase();return e.includes(`microsoft`)||e.includes(`wsl`)}catch{return!1}}function m(){if(!p())return!1;try{let e=a(`/proc/version`,`utf8`).toLowerCase();return e.includes(`wsl2`)||e.includes(`microsoft-standard`)}catch{return!1}}const h=`OPENCLAW_TELEGRAM_DNS_RESULT_ORDER`;let g;function _(){return typeof g==`boolean`||(g=m()),g}function v(e){let n=e?.env??o.env,r=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(o.versions.node.split(`.`)[0]);return t(n.OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY)?{value:!0,source:`env:OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY`}:t(n.OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY)?{value:!1,source:`env:OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY`}:typeof e?.network?.autoSelectFamily==`boolean`?{value:e.network.autoSelectFamily,source:`config`}:_()?{value:!1,source:`default-wsl2`}:Number.isFinite(r)&&r>=22?{value:!0,source:`default-node22`}:{value:null}}function y(e){let t=e?.env??o.env,n=typeof e?.nodeMajor==`number`?e.nodeMajor:Number(o.versions.node.split(`.`)[0]),r=t[h]?.trim().toLowerCase();if(r===`ipv4first`||r===`verbatim`)return{value:r,source:`env:${h}`};let i=(e?.network)?.dnsResultOrder?.trim().toLowerCase();return i===`ipv4first`||i===`verbatim`?{value:i,source:`config`}:Number.isFinite(n)&&n>=22?{value:`ipv4first`,source:`default-node22`}:{value:null}}const b=e(`telegram/network`),x=[`ETIMEDOUT`,`ENETUNREACH`,`EHOSTUNREACH`,`UND_ERR_CONNECT_TIMEOUT`,`UND_ERR_SOCKET`],S=[{name:`fetch-failed-envelope`,matches:({message:e})=>e.includes(`fetch failed`)},{name:`known-network-code`,matches:({codes:e})=>x.some(t=>e.has(t))}];function C(e){return e===`ipv4first`||e===`verbatim`?e:null}function w(e){if(!e)return;let t=s.lookup;return(n,r,i)=>{t(n,{...typeof r==`number`?{family:r}:r?{...r}:{},order:e,verbatim:e===`verbatim`},i)}}function T(e){let t={};e.forceIpv4?(t.family=4,t.autoSelectFamily=!1):typeof e.autoSelectFamily==`boolean`&&(t.autoSelectFamily=e.autoSelectFamily,t.autoSelectFamilyAttemptTimeout=300);let n=w(e.dnsResultOrder);return n&&(t.lookup=n),Object.keys(t).length>0?t:null}function E(e=process.env){let t=e.no_proxy??e.NO_PROXY??``;if(!t)return!1;if(t===`*`)return!0;let n=`api.telegram.org`,r=t.split(/[,\s]/);for(let e=0;e<r.length;e++){let t=r[e];if(!t)continue;let i=t.match(/^(.+):(\d+)$/),a=(i?i[1]:t).replace(/^\*?\./,``).toLowerCase(),o=i?Number.parseInt(i[2],10):0;if(!(o&&o!==443)&&(n===a||n.slice(-(a.length+1))===`.${a}`))return!0}return!1}function D(e=process.env){return n(`https`,e)}function O(e){let t=T({autoSelectFamily:e.autoSelectFamily,dnsResultOrder:e.dnsResultOrder,forceIpv4:e.forceIpv4}),n=e.proxyUrl?.trim();if(n){let e=t?{uri:n,proxyTls:t}:n;try{return{dispatcher:new u(e),mode:`explicit-proxy`}}catch(e){let t=e instanceof Error?e.message:String(e);throw Error(`explicit proxy dispatcher init failed: ${t}`,{cause:e})}}if(e.useEnvProxy){let e=t?{connect:t,proxyTls:t}:void 0;try{return{dispatcher:new l(e),mode:`env-proxy`}}catch(e){b.warn(`env proxy dispatcher init failed; falling back to direct dispatcher: ${e instanceof Error?e.message:String(e)}`)}}return{dispatcher:new c(t?{connect:t}:void 0),mode:`direct`}}function k(e,t){return e?.dispatcher?e??{}:e?{...e,dispatcher:t}:{dispatcher:t}}function A(e){return i(e)??e}function j(e){if(e.autoSelectDecision.value!==null){let t=e.autoSelectDecision.source?` (${e.autoSelectDecision.source})`:``;b.info(`autoSelectFamily=${e.autoSelectDecision.value}${t}`)}if(e.dnsDecision.value!==null){let t=e.dnsDecision.source?` (${e.dnsDecision.source})`:``;b.info(`dnsResultOrder=${e.dnsDecision.value}${t}`)}}function M(e){let t=new Set,n=[e],r=new Set;for(;n.length>0;){let e=n.shift();if(!(!e||r.has(e))&&(r.add(e),typeof e==`object`)){let i=e.code;typeof i==`string`&&i.trim()&&t.add(i.trim().toUpperCase());let a=e.cause;a&&!r.has(a)&&n.push(a);let o=e.errors;if(Array.isArray(o))for(let e of o)e&&!r.has(e)&&n.push(e)}}return t}function N(e){let t=[...M(e)];return t.length>0?t.join(`,`):`none`}function P(e){let t={message:e&&typeof e==`object`&&`message`in e?String(e.message).toLowerCase():``,codes:M(e)};for(let e of S)if(!e.matches(t))return!1;return!0}function F(e,t){let n=v({network:t?.network}),i=y({network:t?.network});j({autoSelectDecision:n,dnsDecision:i});let a=e?r(e):void 0,o=A(d),s=a?o:e?A(e):o;if(e&&!a)return s;let c=C(i.value),l=!a&&D(),u=O({autoSelectFamily:n.value,dnsResultOrder:c,useEnvProxy:l,forceIpv4:!1,proxyUrl:a}),f=u.dispatcher,p=E(),m=u.mode===`direct`||u.mode===`env-proxy`&&p,h=u.mode===`env-proxy`,g=!1,_=null,x=()=>(_||=O({autoSelectFamily:!1,dnsResultOrder:`ipv4first`,useEnvProxy:h,forceIpv4:!0,proxyUrl:a}).dispatcher,_);return(async(e,t)=>{let n=!!t?.dispatcher,r=k(t,g?x():f);try{return await s(e,r)}catch(r){if(P(r)){if(n)return s(e,t??{});if(!m)throw r;return g||(g=!0,b.warn(`fetch fallback: enabling sticky IPv4-only dispatcher (codes=${N(r)})`)),s(e,k(t,x()))}throw r}})}export{F as t};
|
|
2
|
-
//# sourceMappingURL=fetch-hy0JKSsm.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}export{n,t};
|
|
2
|
-
//# sourceMappingURL=fetch-timeout-CdYxWG9w.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}export{n,t};
|
|
2
|
-
//# sourceMappingURL=fetch-timeout-Cj8_oAls.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}export{n,t};
|
|
2
|
-
//# sourceMappingURL=fetch-timeout-DoOI_izT.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(){this.abort()}function t(t){return e.bind(t)}async function n(e,t,n,r=fetch){let i=new AbortController,a=setTimeout(i.abort.bind(i),Math.max(1,n));try{return await r(e,{...t,signal:i.signal})}finally{clearTimeout(a)}}export{n,t};
|
|
2
|
-
//# sourceMappingURL=fetch-timeout-u8g99Ax0.js.map
|
package/dist/format-Bn1bwJKX.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(e){let t=!!e?.token?.trim(),n=!!e?.password?.trim();return t&&n?`token+password`:t?`token`:n?`password`:`none`}function t(e){if(!e)return e;let t=e;return t=t.replace(/(\b(?:access[_-]?token|refresh[_-]?token|token|password|secret|api[_-]?key)\b\s*[:=]\s*)("?)([^"\\s]+)("?)/gi,`$1$2***$4`),t=t.replace(/\bBearer\s+[A-Za-z0-9._-]+\b/g,`Bearer ***`),t=t.replace(/\bsk-[A-Za-z0-9]{10,}\b/g,`sk-***`),t}export{t as n,e as t};
|
|
2
|
-
//# sourceMappingURL=format-Bn1bwJKX.js.map
|
package/dist/format-Ce7I7s-k.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(e){let t=!!e?.token?.trim(),n=!!e?.password?.trim();return t&&n?`token+password`:t?`token`:n?`password`:`none`}function t(e){if(!e)return e;let t=e;return t=t.replace(/(\b(?:access[_-]?token|refresh[_-]?token|token|password|secret|api[_-]?key)\b\s*[:=]\s*)("?)([^"\\s]+)("?)/gi,`$1$2***$4`),t=t.replace(/\bBearer\s+[A-Za-z0-9._-]+\b/g,`Bearer ***`),t=t.replace(/\bsk-[A-Za-z0-9]{10,}\b/g,`sk-***`),t}export{t as n,e as t};
|
|
2
|
-
//# sourceMappingURL=format-Ce7I7s-k.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(e,t={}){if(!Number.isFinite(e))return`unknown`;let n=t.decimals??1,r=t.unit??`s`,i=(Math.max(0,e)/1e3).toFixed(Math.max(0,n)).replace(/\.0+$/,``).replace(/(\.\d*[1-9])0+$/,`$1`);return r===`seconds`?`${i} seconds`:`${i}s`}function t(t,n={}){return Number.isFinite(t)?t<1e3?`${t}ms`:e(t,{decimals:n.decimals??2,unit:n.unit??`s`}):`unknown`}function n(e,t){if(e==null||!Number.isFinite(e)||e<=0)return;if(e<1e3)return`${Math.round(e)}ms`;let n=t?.spaced?` `:``,r=Math.round(e/1e3),i=Math.floor(r/3600),a=Math.floor(r%3600/60),o=r%60;if(i>=24){let e=Math.floor(i/24),t=i%24;return t>0?`${e}d${n}${t}h`:`${e}d`}return i>0?a>0?`${i}h${n}${a}m`:`${i}h`:a>0?o>0?`${a}m${n}${o}s`:`${a}m`:`${o}s`}function r(e,t=`n/a`){if(e==null||!Number.isFinite(e)||e<0)return t;if(e<1e3)return`${Math.round(e)}ms`;let n=Math.round(e/1e3);if(n<60)return`${n}s`;let r=Math.round(n/60);if(r<60)return`${r}m`;let i=Math.round(r/60);return i<24?`${i}h`:`${Math.round(i/24)}d`}export{e as i,r as n,t as r,n as t};
|
|
2
|
-
//# sourceMappingURL=format-duration-C8AzNqKh.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(e,t={}){if(!Number.isFinite(e))return`unknown`;let n=t.decimals??1,r=t.unit??`s`,i=(Math.max(0,e)/1e3).toFixed(Math.max(0,n)).replace(/\.0+$/,``).replace(/(\.\d*[1-9])0+$/,`$1`);return r===`seconds`?`${i} seconds`:`${i}s`}function t(t,n={}){return Number.isFinite(t)?t<1e3?`${t}ms`:e(t,{decimals:n.decimals??2,unit:n.unit??`s`}):`unknown`}function n(e,t){if(e==null||!Number.isFinite(e)||e<=0)return;if(e<1e3)return`${Math.round(e)}ms`;let n=t?.spaced?` `:``,r=Math.round(e/1e3),i=Math.floor(r/3600),a=Math.floor(r%3600/60),o=r%60;if(i>=24){let e=Math.floor(i/24),t=i%24;return t>0?`${e}d${n}${t}h`:`${e}d`}return i>0?a>0?`${i}h${n}${a}m`:`${i}h`:a>0?o>0?`${a}m${n}${o}s`:`${a}m`:`${o}s`}function r(e,t=`n/a`){if(e==null||!Number.isFinite(e)||e<0)return t;if(e<1e3)return`${Math.round(e)}ms`;let n=Math.round(e/1e3);if(n<60)return`${n}s`;let r=Math.round(n/60);if(r<60)return`${r}m`;let i=Math.round(r/60);return i<24?`${i}h`:`${Math.round(i/24)}d`}export{e as i,r as n,t as r,n as t};
|
|
2
|
-
//# sourceMappingURL=format-duration-D5AMtmHa.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(e,t){let n=t?.suffix!==!1,r=t?.fallback??`unknown`;if(e==null||!Number.isFinite(e)||e<0)return r;let i=Math.round(e/1e3),a=Math.round(i/60);if(a<1)return n?`just now`:`${i}s`;if(a<60)return n?`${a}m ago`:`${a}m`;let o=Math.round(a/60);if(o<48)return n?`${o}h ago`:`${o}h`;let s=Math.round(o/24);return n?`${s}d ago`:`${s}d`}function t(e,t){let n=t?.fallback??`n/a`;if(e==null||!Number.isFinite(e))return n;let r=Date.now()-e,i=Math.abs(r),a=r>=0,o=Math.round(i/1e3);if(o<60)return a?`just now`:`in <1m`;let s=Math.round(o/60);if(s<60)return a?`${s}m ago`:`in ${s}m`;let c=Math.round(s/60);if(c<48)return a?`${c}h ago`:`in ${c}h`;let l=Math.round(c/24);if(!t?.dateFallback||l<=7)return a?`${l}d ago`:`in ${l}d`;try{return new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,...t.timezone?{timeZone:t.timezone}:{}}).format(new Date(e))}catch{return`${l}d ago`}}export{e as n,t};
|
|
2
|
-
//# sourceMappingURL=format-relative-B9pSIdGe.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
function e(e,t){let n=t?.suffix!==!1,r=t?.fallback??`unknown`;if(e==null||!Number.isFinite(e)||e<0)return r;let i=Math.round(e/1e3),a=Math.round(i/60);if(a<1)return n?`just now`:`${i}s`;if(a<60)return n?`${a}m ago`:`${a}m`;let o=Math.round(a/60);if(o<48)return n?`${o}h ago`:`${o}h`;let s=Math.round(o/24);return n?`${s}d ago`:`${s}d`}function t(e,t){let n=t?.fallback??`n/a`;if(e==null||!Number.isFinite(e))return n;let r=Date.now()-e,i=Math.abs(r),a=r>=0,o=Math.round(i/1e3);if(o<60)return a?`just now`:`in <1m`;let s=Math.round(o/60);if(s<60)return a?`${s}m ago`:`in ${s}m`;let c=Math.round(s/60);if(c<48)return a?`${c}h ago`:`in ${c}h`;let l=Math.round(c/24);if(!t?.dateFallback||l<=7)return a?`${l}d ago`:`in ${l}d`;try{return new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,...t.timezone?{timeZone:t.timezone}:{}}).format(new Date(e))}catch{return`${l}d ago`}}export{e as n,t};
|
|
2
|
-
//# sourceMappingURL=format-relative-DkMjYy7z.js.map
|
|
@@ -4,4 +4,3 @@ import{t as e}from"./boolean-Ch3DfXPy.js";import t from"node:fs";import n from"n
|
|
|
4
4
|
`).replace(/\r/g,`
|
|
5
5
|
`);if(!t.startsWith(`---`))return;let n=t.indexOf(`
|
|
6
6
|
---`,3);if(n!==-1)return t.slice(4,n)}function O(e){let t=D(e);if(!t)return{};let n=C(t),r=x(t);if(r===null)return w(n);let i={};for(let[e,t]of Object.entries(r)){i[e]=t.value;let r=n[e];r&&E({lineEntry:r,yamlValue:t})&&(i[e]=r.value)}for(let[e,t]of Object.entries(n))e in i||(i[e]=t.value);return i}function k(e){return e?Array.isArray(e)?e.map(e=>String(e).trim()).filter(Boolean):typeof e==`string`?e.split(`,`).map(e=>e.trim()).filter(Boolean):[]:[]}function A(e,t){let n=e[t];return typeof n==`string`?n:void 0}function j(t,n){let r=e(t);return r===void 0?n:r}function M(e){let t=A(e.frontmatter,e.key??`metadata`);if(t)try{let e=r.parse(t);if(!e||typeof e!=`object`)return;let n=[o,...s];for(let t of n){let n=e[t];if(n&&typeof n==`object`)return n}return}catch{return}}function N(e){let t=typeof e.requires==`object`&&e.requires!==null?e.requires:void 0;if(t)return{bins:k(t.bins),anyBins:k(t.anyBins),env:k(t.env),config:k(t.config)}}function P(e,t){return(Array.isArray(e.install)?e.install:[]).map(e=>t(e)).filter(e=>!!e)}function F(e){return k(e.os)}function I(e,t){if(!e||typeof e!=`object`)return;let n=e,r=(typeof n.kind==`string`?n.kind:typeof n.type==`string`?n.type:``).trim().toLowerCase();if(!t.includes(r))return;let i={raw:n,kind:r};typeof n.id==`string`&&(i.id=n.id),typeof n.label==`string`&&(i.label=n.label);let a=k(n.bins);return a.length>0&&(i.bins=a),i}function L(e,t){return t.id&&(e.id=t.id),t.label&&(e.label=t.label),t.bins&&(e.bins=t.bins),e}export{I as a,F as c,f as d,v as f,j as i,N as l,o as m,A as n,M as o,u as p,k as r,P as s,L as t,O as u};
|
|
7
|
-
//# sourceMappingURL=frontmatter-BkZkwkVO.js.map
|
|
@@ -4,4 +4,3 @@ import{t as e}from"./boolean-D15s2V33.js";import t from"node:path";import n from
|
|
|
4
4
|
`).replace(/\r/g,`
|
|
5
5
|
`);if(!t.startsWith(`---`))return;let n=t.indexOf(`
|
|
6
6
|
---`,3);if(n!==-1)return t.slice(4,n)}function O(e){let t=D(e);if(!t)return{};let n=C(t),r=x(t);if(r===null)return w(n);let i={};for(let[e,t]of Object.entries(r)){i[e]=t.value;let r=n[e];r&&E({lineEntry:r,yamlValue:t})&&(i[e]=r.value)}for(let[e,t]of Object.entries(n))e in i||(i[e]=t.value);return i}function k(e){return e?Array.isArray(e)?e.map(e=>String(e).trim()).filter(Boolean):typeof e==`string`?e.split(`,`).map(e=>e.trim()).filter(Boolean):[]:[]}function A(e,t){let n=e[t];return typeof n==`string`?n:void 0}function j(t,n){let r=e(t);return r===void 0?n:r}function M(e){let t=A(e.frontmatter,e.key??`metadata`);if(t)try{let e=r.parse(t);if(!e||typeof e!=`object`)return;let n=[o,...s];for(let t of n){let n=e[t];if(n&&typeof n==`object`)return n}return}catch{return}}function N(e){let t=typeof e.requires==`object`&&e.requires!==null?e.requires:void 0;if(t)return{bins:k(t.bins),anyBins:k(t.anyBins),env:k(t.env),config:k(t.config)}}function P(e,t){return(Array.isArray(e.install)?e.install:[]).map(e=>t(e)).filter(e=>!!e)}function F(e){return k(e.os)}function I(e,t){if(!e||typeof e!=`object`)return;let n=e,r=(typeof n.kind==`string`?n.kind:typeof n.type==`string`?n.type:``).trim().toLowerCase();if(!t.includes(r))return;let i={raw:n,kind:r};typeof n.id==`string`&&(i.id=n.id),typeof n.label==`string`&&(i.label=n.label);let a=k(n.bins);return a.length>0&&(i.bins=a),i}function L(e,t){return t.id&&(e.id=t.id),t.label&&(e.label=t.label),t.bins&&(e.bins=t.bins),e}export{I as a,F as c,f as d,v as f,j as i,N as l,o as m,A as n,M as o,u as p,k as r,P as s,L as t,O as u};
|
|
7
|
-
//# sourceMappingURL=frontmatter-C7mzDNxd.js.map
|
|
@@ -4,4 +4,3 @@ import{t as e}from"./subsystem-Bc2XrjUz.js";import{t}from"./boolean-DypnRoRK.js"
|
|
|
4
4
|
`).replace(/\r/g,`
|
|
5
5
|
`);if(!t.startsWith(`---`))return;let n=t.indexOf(`
|
|
6
6
|
---`,3);if(n!==-1)return t.slice(4,n)}function B(e){let t=z(e);if(!t)return{};let n=F(t),r=N(t);if(r===null)return I(n);let i={};for(let[e,t]of Object.entries(r)){i[e]=t.value;let r=n[e];r&&R({lineEntry:r,yamlValue:t})&&(i[e]=r.value)}for(let[e,t]of Object.entries(n))e in i||(i[e]=t.value);return i}function V(e){return e?Array.isArray(e)?e.map(e=>String(e).trim()).filter(Boolean):typeof e==`string`?e.split(`,`).map(e=>e.trim()).filter(Boolean):[]:[]}function H(e,t){let n=e[t];return typeof n==`string`?n:void 0}function U(e,n){let r=t(e);return r===void 0?n:r}function W(e){let t=H(e.frontmatter,e.key??`metadata`);if(t)try{let e=i.parse(t);if(!e||typeof e!=`object`)return;let n=[v,...y];for(let t of n){let n=e[t];if(n&&typeof n==`object`)return n}return}catch{return}}function G(e){let t=typeof e.requires==`object`&&e.requires!==null?e.requires:void 0;if(t)return{bins:V(t.bins),anyBins:V(t.anyBins),env:V(t.env),config:V(t.config)}}function K(e,t){return(Array.isArray(e.install)?e.install:[]).map(e=>t(e)).filter(e=>!!e)}function q(e){return V(e.os)}function J(e,t){if(!e||typeof e!=`object`)return;let n=e,r=(typeof n.kind==`string`?n.kind:typeof n.type==`string`?n.type:``).trim().toLowerCase();if(!t.includes(r))return;let i={raw:n,kind:r};typeof n.id==`string`&&(i.id=n.id),typeof n.label==`string`&&(i.label=n.label);let a=V(n.bins);return a.length>0&&(i.bins=a),i}function Y(e,t){return t.id&&(e.id=t.id),t.label&&(e.label=t.label),t.bins&&(e.bins=t.bins),e}export{g as _,J as a,q as c,w as d,A as f,h as g,d as h,U as i,G as l,v as m,H as n,W as o,S as p,V as r,K as s,Y as t,B as u,l as v,u as y};
|
|
7
|
-
//# sourceMappingURL=frontmatter-CzpfPBFl.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,M as t,N as n,O as r,S as i,a,j as o,k as s,n as c,o as l,p as u,t as d,w as f}from"./subsystem-BLbY429l.js";import{g as p,i as m,l as h,o as g,r as _,t as v,u as y}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{a as b,i as x}from"./entry.js";import{$i as S,$n as C,$s as w,$t as T,Aa as E,At as D,Bo as O,C as k,D as A,Di as j,Dn as M,Dt as N,Ei as ee,En as te,Eo as P,Et as F,Fa as ne,Fc as re,Fi as I,Fo as L,Gi as R,Gr as ie,Gt as z,Ho as ae,I as oe,Ii as se,Io as ce,Ji as le,Ki as ue,Kr as de,La as fe,Li as pe,Lo as me,Lr as he,Lt as ge,Mo as _e,Oa as ve,Oi as B,On as ye,Oo as V,Pa as be,Pc as xe,Pi as Se,Po as Ce,Qi as we,Qn as Te,Qs as Ee,Qt as De,Ra as Oe,Ri as ke,Rr as Ae,S as je,Sn as Me,T as Ne,Tn as Pe,Ur as Fe,Vc as Ie,Vo as Le,Wc as Re,Xc as ze,Xi as Be,Xn as Ve,Xr as He,Yc as Ue,Yi as We,Yt as Ge,Zc as Ke,Zi as qe,Zn as Je,Zs as Ye,Zt as Xe,_ as Ze,_a as Qe,aa as $e,an as et,br as tt,ca as nt,cn as rt,cr as it,cu as at,da as ot,dc as st,dr as ct,ds as lt,du as ut,ea as dt,el as ft,en as pt,es as mt,fa as ht,fc as gt,fr as _t,fs as vt,fu as yt,ga as bt,gn as xt,gr as St,gs as Ct,ha as wt,hi as Tt,ia as Et,in as Dt,ir as Ot,jn as kt,jo as H,jt as At,ki as jt,kn as Mt,la as Nt,ln as Pt,lr as Ft,ls as It,ma as Lt,mn as Rt,nl as zt,nn as Bt,nr as Vt,oa as Ht,on as Ut,pa as Wt,pc as Gt,pn as Kt,qc as qt,qt as Jt,ra as Yt,ri as Xt,rs as Zt,sa as Qt,sr as $t,ta as en,ti as tn,tn as nn,ur as rn,v as an,vn as on,vr as sn,w as cn,wn as ln,x as un,ya as dn,yr as fn,zc as pn,zr as mn}from"./auth-profiles-C8rZRS0X.js";import{t as hn}from"./command-format-CLxIPuLR.js";import{C as gn,D as _n,E as vn,M as yn,S as bn,T as xn,_ as Sn,a as Cn,b as wn,d as Tn,f as En,h as Dn,i as On,j as kn,k as An,l as jn,n as Mn,r as Nn,u as Pn,w as Fn,x as In,y as Ln}from"./agent-scope-DAWJwFfl.js";import{C as Rn,E as zn,S as Bn,T as Vn,_ as Hn,c as U,g as Un,h as Wn,l as Gn,m as Kn,o as qn,r as Jn,t as Yn,u as Xn}from"./session-key-C7F_iqYg.js";import{E as Zn,S as Qn,T as $n,n as er,s as tr,v as nr,x as rr}from"./utils-CGdo13HV.js";import{a as ir,f as ar,g as or,i as sr,o as cr,s as lr,t as ur}from"./openclaw-root-CnsBf6ZU.js";import{a as dr}from"./types.secrets-D4tbc3Wq.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import{n as fr,t as pr}from"./version-q3SkUw2K.js";import{t as mr}from"./parse-duration-XTjMKl8s.js";import{A as hr,D as gr,O as _r,b as vr,h as yr,k as br,t as xr,u as Sr,v as Cr,y as wr}from"./registry-BptzrW8D.js";import{i as Tr,r as Er,w as Dr}from"./skills-Bz_S4lPh.js";import{f as Or}from"./frontmatter-C7mzDNxd.js";import{U as kr,ct as Ar,g as jr,lt as Mr,n as Nr,r as Pr,t as Fr}from"./plugins-DNlgeTTc.js";import{i as Ir,t as Lr}from"./logger-kQAOe3qp.js";import{n as Rr,t as zr}from"./exec-B3eleY5O.js";import{C as Br,m as Vr,r as Hr,v as Ur,x as Wr}from"./windows-spawn-7oINn5ao.js";import{a as Gr,i as Kr}from"./redact-CnRxK70G.js";import{n as qr}from"./path-alias-guards-kY_ZbWs-.js";import{o as Jr,r as Yr}from"./errors-6SQWM9dj.js";import"./send-vNcod64S.js";import"./send-CyarIb2w.js";import{$ as Xr,$t as Zr,A as Qr,An as $r,At as ei,Br as ti,Bt as ni,Cn as ri,D as ii,Dr as ai,Dt as oi,E as si,Er as ci,Fn as li,Fr as ui,Ft as di,Gn as fi,Gr as pi,Gt as mi,H as hi,Hn as gi,Hr as _i,Ht as vi,Ir as yi,It as bi,Jn as xi,Jr as Si,Jt as Ci,Kr as wi,Ln as Ti,Lr as Ei,Lt as Di,Mn as Oi,Mt as ki,Nn as Ai,Nr as ji,O as Mi,Or as Ni,Ot as Pi,P as Fi,Pn as Ii,Pt as Li,Qr as Ri,Qt as zi,R as Bi,Rn as Vi,Rr as Hi,S as Ui,St as Wi,Tt as Gi,Ur as Ki,Ut as qi,V as Ji,Vn as Yi,Vr as Xi,Vt as Zi,Wr as Qi,X as $i,Xn as ea,Xt as ta,Y as na,Yr as ra,Yt as ia,Z as aa,Zr as oa,Zt as sa,_ as ca,_r as la,ai as ua,at as da,br as fa,bt as pa,ci as ma,cn as ha,cr as ga,dr as _a,ei as va,en as ya,et as ba,fn as xa,fr as Sa,ft as Ca,gn as wa,gr as Ta,h as Ea,hr as Da,i as Oa,ii as ka,ir as Aa,it as ja,jn as Ma,k as Na,kn as Pa,kr as Fa,kt as Ia,l as La,ln as Ra,lr as za,lt as Ba,mr as Va,n as Ha,ni as Ua,nr as Wa,nt as Ga,o as Ka,on as qa,or as Ja,p as Ya,pt as Xa,qr as Za,r as Qa,ri as $a,rr as eo,rt as to,s as no,sn as ro,sr as io,st as ao,ti as oo,tn as so,tr as co,tt as lo,u as uo,un as fo,ur as po,v as mo,vr as ho,w as go,wn as _o,wr as vo,wt as yo,xr as bo,xt as xo,y as So,yr as Co,z as wo,zr as To,zt as Eo}from"./compact-CYbPi7_-.js";import{c as Do,i as Oo,n as ko,r as Ao,s as jo}from"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import{i as Mo,n as No}from"./tokens-DRM8vzJx.js";import{n as Po}from"./with-timeout-c1CzdShT.js";import{M as Fo,P as Io,o as Lo,t as Ro}from"./deliver-SqSusZP3.js";import{d as zo,f as Bo,h as Vo}from"./diagnostic-D1H7_8QG.js";import{C as Ho,S as Uo,u as Wo,w as Go}from"./send-Dj7NBAWg.js";import"./pi-model-discovery-BPkhPDMr.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./exec-safe-bin-runtime-policy-v44u39fl.js";import{n as Ko}from"./model-catalog-mt0IcDfR.js";import"./fetch-B4bz67_N.js";import{v as qo}from"./audio-transcription-runner-BIKj1CBU.js";import{t as Jo}from"./fetch-guard-DaZmvp-L.js";import{x as Yo}from"./image-BVbOr9yV.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-BpEL4aeX.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-DdjufzKF.js";import"./render-DrrPmnMI.js";import{a as Xo}from"./target-errors-D6wejRd6.js";import{r as Zo}from"./commands-Dy7duWlt.js";import"./commands-registry-DT6FDUev.js";import{c as Qo,i as $o,n as es,r as ts,s as ns,t as rs}from"./session-cost-usage-CHtVgnE8.js";import{a as is,c as as,f as os,i as ss,l as cs,o as ls,p as us,r as ds,s as fs,t as ps,u as ms}from"./session-utils-Bpdyx2A2.js";import"./sqlite-CILF3z9U.js";import{$ as hs,$t as W,A as gs,At as _s,B as vs,Bt as ys,C as bs,Ct as xs,D as Ss,Dt as Cs,E as ws,Et as Ts,F as Es,Ft as Ds,G as Os,Gt as ks,H as As,Ht as js,I as Ms,It as Ns,J as Ps,Jt as Fs,K as Is,Kt as Ls,L as Rs,Lt as zs,M as Bs,Mt as Vs,N as Hs,Nt as Us,O as Ws,Ot as Gs,P as Ks,Pt as qs,Q as Js,Qt as G,R as Ys,Rt as Xs,S as Zs,St as Qs,T as $s,Tt as ec,U as tc,Ut as nc,V as rc,Vt as ic,W as ac,Wt as oc,X as sc,Xt as cc,Y as lc,Yt as uc,Z as dc,Zt as fc,_ as K,_t as pc,an as mc,at as hc,b as gc,bt as _c,c as vc,cn as yc,ct as bc,dt as xc,en as Sc,et as Cc,f as wc,fn as Tc,ft as Ec,gt as Dc,ht as Oc,in as kc,it as Ac,j as jc,jt as Mc,k as Nc,kt as Pc,l as Fc,ln as Ic,lt as Lc,m as Rc,mt as zc,n as Bc,nn as Vc,nt as Hc,on as Uc,ot as Wc,p as Gc,pn as Kc,pt as qc,q as Jc,qt as Yc,rn as Xc,rt as Zc,st as Qc,tn as $c,tt as el,u as tl,un as nl,ut as rl,v as il,vt as al,w as ol,wt as sl,x as cl,xt as ll,y as ul,yt as dl,z as fl,zt as pl}from"./call-BWx7hNtl.js";import{a as ml,i as hl,r as gl}from"./pi-tools.policy-B6q8YOfg.js";import{a as _l}from"./pairing-store-BaaVy1zB.js";import"./fetch-Dh-apy46.js";import{n as vl,r as yl}from"./usage-format-yPwal8Iz.js";import{_ as bl,a as xl,b as Sl,c as Cl,d as wl,f as Tl,g as El,h as Dl,l as Ol,m as kl,o as Al,p as jl,s as Ml,u as Nl,v as Pl,x as Fl}from"./skill-commands-DCqPy_Aa.js";import{t as Il}from"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-zdbQ951y.js";import{t as Ll}from"./channel-activity-BhiLsKvM.js";import{n as Rl}from"./polls-DKJOFSzJ.js";import"./tables-DENKrP-W.js";import{a as zl,c as Bl,d as Vl,i as Hl,l as Ul,n as Wl,o as Gl,r as Kl,s as ql,u as Jl}from"./kill-tree-D6nPx1_o.js";import{i as Yl,m as Xl,r as Zl}from"./runtime-web-tools-BYhCkBV8.js";import{a as Ql,i as $l,n as eu,o as tu,t as nu}from"./runtime-CK7gqwEF.js";import{c as ru,s as iu}from"./node-shell-BVZylVP6.js";import{i as au,n as ou,r as su,t as cu}from"./stagger-DxzgG2jd.js";import{n as lu}from"./channel-selection-BPxE8JR7.js";import{i as uu,t as du}from"./plugin-auto-enable-adba5Evb.js";import"./send-ChILboDj.js";import"./outbound-attachment-CVcDBkAD.js";import"./delivery-queue-nkPJu0fY.js";import"./send-COpehmAB.js";import{a as fu,i as pu,n as mu,r as hu,s as gu}from"./system-run-command-DsWBVvSK.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-BEjtBf5Z.js";import"./connection-auth-CjaeEu5D.js";import{C as _u,S as vu,c as yu,w as bu,x as xu}from"./onboard-helpers-DOlI17Ac.js";import"./prompt-style-BThRSQJR.js";import"./pairing-labels-CZ-aX-up.js";import{r as Su,t as Cu}from"./search-manager-CV2YsAym.js";import{a as wu}from"./manager-CxZRoQkE.js";import"./memory-cli-C8fBBPgv.js";import{t as Tu}from"./links-CBnmRP9D.js";import{n as Eu}from"./cli-utils-BleB1eys.js";import{t as Du}from"./help-format-B4aEI7V9.js";import{n as Ou}from"./progress-d1m2sqR1.js";import{_ as ku,c as Au,f as ju,o as Mu,r as Nu,t as Pu}from"./exec-approvals-BXO9Cezj.js";import{t as Fu}from"./skills-status-DpSboPY1.js";import{i as Iu,r as Lu,t as Ru}from"./heartbeat-visibility-BQ_esv2m.js";import{t as zu}from"./path-env-emdAQejM.js";import{n as Bu}from"./dangerous-tools-CFRYQJ6V.js";import{t as Vu}from"./secret-file-D60EFEOe.js";import{n as Hu}from"./command-options-BpOUDl2S.js";import{t as Uu}from"./prompts-CMzglboN.js";import{a as Wu,i as Gu,r as Ku,t as qu}from"./agents.config-DSCcdYtv.js";import{t as Ju}from"./path-safety-BukYK8Kd.js";import"./install-safe-path-C6kc_8NW.js";import"./skill-scanner-CkxXNioD.js";import{n as Yu}from"./issue-format-CN9PHzXY.js";import{t as Xu}from"./status-w4NsjW2R.js";import"./channels-status-issues-8eFrGKyf.js";import"./daemon-install-plan.shared-Dx3DBXCG.js";import"./runtime-guard-DX2Ie4ri.js";import"./gateway-install-token-cSJrfU_1.js";import"./systemd-DbevZh65.js";import{u as Zu}from"./service-DZ9EbS15.js";import"./lifecycle-core-D_LWJeD_.js";import"./systemd-hints-lXpMy-kY.js";import{t as Qu}from"./parse-port-JVwkxcZ8.js";import{c as $u,n as ed,s as td}from"./daemon-cli-CEHkT-54.js";import{r as nd}from"./probe-auth-C5nWfMS9.js";import"./diagnostics-Cdctg9K_.js";import{a as rd,c as id,d as ad,f as od,i as sd,l as cd,n as ld,o as ud,p as dd,r as fd,s as pd,t as md,u as hd}from"./device-pairing-DAzYy3vX.js";import"./table-CR7TFMew.js";import{n as gd,r as _d}from"./widearea-dns-BDx7vkV2.js";import{i as vd,n as yd,r as bd,t as xd}from"./shared-BKWhOp64.js";import{t as Sd}from"./bonjour-discovery-ClTijpMw.js";import{i as Cd,r as wd}from"./status-o3Gfr-6l.js";import{a as Td,c as Ed,n as Dd,s as Od,t as kd}from"./health-CIZFVJEG.js";import{a as Ad,n as jd,o as Md,t as Nd}from"./control-ui-assets-CTHGGgaX.js";import{m as Pd,n as Fd,o as Id,r as Ld}from"./channel-account-context-DAcarnqW.js";import"./onboarding.secret-input-CUD0t7Pk.js";import{t as Rd}from"./onboarding-C82cKKNI.js";import{a as zd,c as Bd,d as Vd,f as Hd,i as Ud,l as q,n as Wd,o as Gd,p as Kd,s as qd,t as Jd,u as Yd}from"./push-apns-DIV5dBPP.js";import{_ as Xd,g as Zd,i as Qd,w as $d}from"./gmail-setup-utils-CYOH3zzx.js";import{d as ef,f as tf,p as nf,t as rf,u as af}from"./update-runner-DABdlxfN.js";import{n as of,r as sf}from"./node-command-policy-DyWp3Bjz.js";import{n as cf}from"./audit-9I53EvMQ.js";import"./node-service-C0bl7jcZ.js";import"./status.update-B_8Gumuc.js";import{t as lf}from"./skills-install-cEcqzaX8.js";import{i as uf,r as df,t as ff}from"./workspace-xNEpaJvu.js";import{n as pf,r as mf}from"./ports-Dylc6TrH.js";import{spawn as hf,spawnSync as gf}from"node:child_process";import{fileURLToPath as _f,pathToFileURL as vf}from"node:url";import yf from"node:os";import J from"node:path";import*as bf from"node:fs";import Y from"node:fs";import xf from"chalk";import Sf from"json5";import{isDeepStrictEqual as Cf}from"node:util";import X from"node:fs/promises";import wf,{createHash as Tf,randomBytes as Ef,randomUUID as Df}from"node:crypto";import{z as Z}from"zod";import Of from"node:net";import{CURRENT_SESSION_VERSION as kf,SessionManager as Af}from"@mariozechner/pi-coding-agent";import{createServer as jf}from"node:http";import{createServer as Mf}from"node:https";import{WebSocketServer as Nf}from"ws";import{Buffer as Pf}from"node:buffer";import Ff from"chokidar";import{AsyncLocalStorage as If}from"node:async_hooks";function Lf(e){if(!e)return;let t=Number.parseInt(e,10);if(!(!Number.isFinite(t)||t<=0))return t}function Rf(e){let t={identityFiles:[]},n=e.split(`
|
|
1
|
+
import{A as e,M as t,N as n,O as r,S as i,a,j as o,k as s,n as c,o as l,p as u,t as d,w as f}from"./subsystem-BLbY429l.js";import{g as p,i as m,l as h,o as g,r as _,t as v,u as y}from"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{a as b,i as x}from"./entry.js";import{$i as S,$n as C,$s as w,$t as T,Aa as E,At as D,Bo as O,C as k,D as A,Di as j,Dn as M,Dt as N,Ei as ee,En as te,Eo as P,Et as F,Fa as ne,Fc as re,Fi as I,Fo as L,Gi as R,Gr as ie,Gt as z,Ho as ae,I as oe,Ii as se,Io as ce,Ji as le,Ki as ue,Kr as de,La as fe,Li as pe,Lo as me,Lr as he,Lt as ge,Mo as _e,Oa as ve,Oi as B,On as ye,Oo as V,Pa as be,Pc as xe,Pi as Se,Po as Ce,Qi as we,Qn as Te,Qs as Ee,Qt as De,Ra as Oe,Ri as ke,Rr as Ae,S as je,Sn as Me,T as Ne,Tn as Pe,Ur as Fe,Vc as Ie,Vo as Le,Wc as Re,Xc as ze,Xi as Be,Xn as Ve,Xr as He,Yc as Ue,Yi as We,Yt as Ge,Zc as Ke,Zi as qe,Zn as Je,Zs as Ye,Zt as Xe,_ as Ze,_a as Qe,aa as $e,an as et,br as tt,ca as nt,cn as rt,cr as it,cu as at,da as ot,dc as st,dr as ct,ds as lt,du as ut,ea as dt,el as ft,en as pt,es as mt,fa as ht,fc as gt,fr as _t,fs as vt,fu as yt,ga as bt,gn as xt,gr as St,gs as Ct,ha as wt,hi as Tt,ia as Et,in as Dt,ir as Ot,jn as kt,jo as H,jt as At,ki as jt,kn as Mt,la as Nt,ln as Pt,lr as Ft,ls as It,ma as Lt,mn as Rt,nl as zt,nn as Bt,nr as Vt,oa as Ht,on as Ut,pa as Wt,pc as Gt,pn as Kt,qc as qt,qt as Jt,ra as Yt,ri as Xt,rs as Zt,sa as Qt,sr as $t,ta as en,ti as tn,tn as nn,ur as rn,v as an,vn as on,vr as sn,w as cn,wn as ln,x as un,ya as dn,yr as fn,zc as pn,zr as mn}from"./auth-profiles-C8rZRS0X.js";import{t as hn}from"./command-format-CLxIPuLR.js";import{C as gn,D as _n,E as vn,M as yn,S as bn,T as xn,_ as Sn,a as Cn,b as wn,d as Tn,f as En,h as Dn,i as On,j as kn,k as An,l as jn,n as Mn,r as Nn,u as Pn,w as Fn,x as In,y as Ln}from"./agent-scope-DAWJwFfl.js";import{C as Rn,E as zn,S as Bn,T as Vn,_ as Hn,c as U,g as Un,h as Wn,l as Gn,m as Kn,o as qn,r as Jn,t as Yn,u as Xn}from"./session-key-C7F_iqYg.js";import{E as Zn,S as Qn,T as $n,n as er,s as tr,v as nr,x as rr}from"./utils-CGdo13HV.js";import{a as ir,f as ar,g as or,i as sr,o as cr,s as lr,t as ur}from"./openclaw-root-CnsBf6ZU.js";import{a as dr}from"./types.secrets-D4tbc3Wq.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import{n as fr,t as pr}from"./version-q3SkUw2K.js";import{t as mr}from"./parse-duration-XTjMKl8s.js";import{A as hr,D as gr,O as _r,b as vr,h as yr,k as br,t as xr,u as Sr,v as Cr,y as wr}from"./registry-BptzrW8D.js";import{i as Tr,r as Er,w as Dr}from"./skills-Bz_S4lPh.js";import{f as Or}from"./frontmatter-C7mzDNxd.js";import{U as kr,ct as Ar,g as jr,lt as Mr,n as Nr,r as Pr,t as Fr}from"./plugins-DNlgeTTc.js";import{i as Ir,t as Lr}from"./logger-kQAOe3qp.js";import{n as Rr,t as zr}from"./exec-B3eleY5O.js";import{C as Br,m as Vr,r as Hr,v as Ur,x as Wr}from"./windows-spawn-7oINn5ao.js";import{a as Gr,i as Kr}from"./redact-CnRxK70G.js";import{n as qr}from"./path-alias-guards-kY_ZbWs-.js";import{o as Jr,r as Yr}from"./errors-6SQWM9dj.js";import"./send-vNcod64S.js";import"./send-CyarIb2w.js";import{$ as Xr,$t as Zr,A as Qr,An as $r,At as ei,Br as ti,Bt as ni,Cn as ri,D as ii,Dr as ai,Dt as oi,E as si,Er as ci,Fn as li,Fr as ui,Ft as di,Gn as fi,Gr as pi,Gt as mi,H as hi,Hn as gi,Hr as _i,Ht as vi,Ir as yi,It as bi,Jn as xi,Jr as Si,Jt as Ci,Kr as wi,Ln as Ti,Lr as Ei,Lt as Di,Mn as Oi,Mt as ki,Nn as Ai,Nr as ji,O as Mi,Or as Ni,Ot as Pi,P as Fi,Pn as Ii,Pt as Li,Qr as Ri,Qt as zi,R as Bi,Rn as Vi,Rr as Hi,S as Ui,St as Wi,Tt as Gi,Ur as Ki,Ut as qi,V as Ji,Vn as Yi,Vr as Xi,Vt as Zi,Wr as Qi,X as $i,Xn as ea,Xt as ta,Y as na,Yr as ra,Yt as ia,Z as aa,Zr as oa,Zt as sa,_ as ca,_r as la,ai as ua,at as da,br as fa,bt as pa,ci as ma,cn as ha,cr as ga,dr as _a,ei as va,en as ya,et as ba,fn as xa,fr as Sa,ft as Ca,gn as wa,gr as Ta,h as Ea,hr as Da,i as Oa,ii as ka,ir as Aa,it as ja,jn as Ma,k as Na,kn as Pa,kr as Fa,kt as Ia,l as La,ln as Ra,lr as za,lt as Ba,mr as Va,n as Ha,ni as Ua,nr as Wa,nt as Ga,o as Ka,on as qa,or as Ja,p as Ya,pt as Xa,qr as Za,r as Qa,ri as $a,rr as eo,rt as to,s as no,sn as ro,sr as io,st as ao,ti as oo,tn as so,tr as co,tt as lo,u as uo,un as fo,ur as po,v as mo,vr as ho,w as go,wn as _o,wr as vo,wt as yo,xr as bo,xt as xo,y as So,yr as Co,z as wo,zr as To,zt as Eo}from"./compact-CYbPi7_-.js";import{c as Do,i as Oo,n as ko,r as Ao,s as jo}from"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import"./models-config-DZzS67GS.js";import{i as Mo,n as No}from"./tokens-DRM8vzJx.js";import{n as Po}from"./with-timeout-c1CzdShT.js";import{M as Fo,P as Io,o as Lo,t as Ro}from"./deliver-SqSusZP3.js";import{d as zo,f as Bo,h as Vo}from"./diagnostic-D1H7_8QG.js";import{C as Ho,S as Uo,u as Wo,w as Go}from"./send-Dj7NBAWg.js";import"./pi-model-discovery-BPkhPDMr.js";import"./exec-approvals-allowlist-CGjRWREs.js";import"./exec-safe-bin-runtime-policy-v44u39fl.js";import{n as Ko}from"./model-catalog-mt0IcDfR.js";import"./fetch-B4bz67_N.js";import{v as qo}from"./audio-transcription-runner-BIKj1CBU.js";import{t as Jo}from"./fetch-guard-DaZmvp-L.js";import{x as Yo}from"./image-BVbOr9yV.js";import"./tool-display-DJDtttQg.js";import"./api-key-rotation-BpEL4aeX.js";import"./proxy-fetch-gWETR3cl.js";import"./ir-DdjufzKF.js";import"./render-DrrPmnMI.js";import{a as Xo}from"./target-errors-D6wejRd6.js";import{r as Zo}from"./commands-Dy7duWlt.js";import"./commands-registry-DT6FDUev.js";import{c as Qo,i as $o,n as es,r as ts,s as ns,t as rs}from"./session-cost-usage-CHtVgnE8.js";import{a as is,c as as,f as os,i as ss,l as cs,o as ls,p as us,r as ds,s as fs,t as ps,u as ms}from"./session-utils-Bpdyx2A2.js";import"./sqlite-CILF3z9U.js";import{$ as hs,$t as W,A as gs,At as _s,B as vs,Bt as ys,C as bs,Ct as xs,D as Ss,Dt as Cs,E as ws,Et as Ts,F as Es,Ft as Ds,G as Os,Gt as ks,H as As,Ht as js,I as Ms,It as Ns,J as Ps,Jt as Fs,K as Is,Kt as Ls,L as Rs,Lt as zs,M as Bs,Mt as Vs,N as Hs,Nt as Us,O as Ws,Ot as Gs,P as Ks,Pt as qs,Q as Js,Qt as G,R as Ys,Rt as Xs,S as Zs,St as Qs,T as $s,Tt as ec,U as tc,Ut as nc,V as rc,Vt as ic,W as ac,Wt as oc,X as sc,Xt as cc,Y as lc,Yt as uc,Z as dc,Zt as fc,_ as K,_t as pc,an as mc,at as hc,b as gc,bt as _c,c as vc,cn as yc,ct as bc,dt as xc,en as Sc,et as Cc,f as wc,fn as Tc,ft as Ec,gt as Dc,ht as Oc,in as kc,it as Ac,j as jc,jt as Mc,k as Nc,kt as Pc,l as Fc,ln as Ic,lt as Lc,m as Rc,mt as zc,n as Bc,nn as Vc,nt as Hc,on as Uc,ot as Wc,p as Gc,pn as Kc,pt as qc,q as Jc,qt as Yc,rn as Xc,rt as Zc,st as Qc,tn as $c,tt as el,u as tl,un as nl,ut as rl,v as il,vt as al,w as ol,wt as sl,x as cl,xt as ll,y as ul,yt as dl,z as fl,zt as pl}from"./call-BWx7hNtl.js";import{a as ml,i as hl,r as gl}from"./pi-tools.policy-B6q8YOfg.js";import{a as _l}from"./pairing-store-BaaVy1zB.js";import"./fetch-Dh-apy46.js";import{n as vl,r as yl}from"./usage-format-yPwal8Iz.js";import{_ as bl,a as xl,b as Sl,c as Cl,d as wl,f as Tl,g as El,h as Dl,l as Ol,m as kl,o as Al,p as jl,s as Ml,u as Nl,v as Pl,x as Fl}from"./skill-commands-DCqPy_Aa.js";import{t as Il}from"./workspace-dirs-A8Vib9_B.js";import"./pairing-token-zdbQ951y.js";import{t as Ll}from"./channel-activity-BhiLsKvM.js";import{n as Rl}from"./polls-DKJOFSzJ.js";import"./tables-DENKrP-W.js";import{a as zl,c as Bl,d as Vl,i as Hl,l as Ul,n as Wl,o as Gl,r as Kl,s as ql,u as Jl}from"./kill-tree-D6nPx1_o.js";import{i as Yl,m as Xl,r as Zl}from"./runtime-web-tools-BYhCkBV8.js";import{a as Ql,i as $l,n as eu,o as tu,t as nu}from"./runtime-CK7gqwEF.js";import{c as ru,s as iu}from"./node-shell-BVZylVP6.js";import{i as au,n as ou,r as su,t as cu}from"./stagger-DxzgG2jd.js";import{n as lu}from"./channel-selection-BPxE8JR7.js";import{i as uu,t as du}from"./plugin-auto-enable-adba5Evb.js";import"./send-ChILboDj.js";import"./outbound-attachment-CVcDBkAD.js";import"./delivery-queue-nkPJu0fY.js";import"./send-COpehmAB.js";import{a as fu,i as pu,n as mu,r as hu,s as gu}from"./system-run-command-DsWBVvSK.js";import"./fetch-Ce-scEU-.js";import"./command-secret-targets-BEjtBf5Z.js";import"./connection-auth-CjaeEu5D.js";import{C as _u,S as vu,c as yu,w as bu,x as xu}from"./onboard-helpers-DOlI17Ac.js";import"./prompt-style-BThRSQJR.js";import"./pairing-labels-CZ-aX-up.js";import{r as Su,t as Cu}from"./search-manager-CV2YsAym.js";import{a as wu}from"./manager-CxZRoQkE.js";import"./memory-cli-C8fBBPgv.js";import{t as Tu}from"./links-CBnmRP9D.js";import{n as Eu}from"./cli-utils-BleB1eys.js";import{t as Du}from"./help-format-B4aEI7V9.js";import{n as Ou}from"./progress-d1m2sqR1.js";import{_ as ku,c as Au,f as ju,o as Mu,r as Nu,t as Pu}from"./exec-approvals-BXO9Cezj.js";import{t as Fu}from"./skills-status-DpSboPY1.js";import{i as Iu,r as Lu,t as Ru}from"./heartbeat-visibility-BQ_esv2m.js";import{t as zu}from"./path-env-emdAQejM.js";import{n as Bu}from"./dangerous-tools-CFRYQJ6V.js";import{t as Vu}from"./secret-file-D60EFEOe.js";import{n as Hu}from"./command-options-BpOUDl2S.js";import{t as Uu}from"./prompts-CMzglboN.js";import{a as Wu,i as Gu,r as Ku,t as qu}from"./agents.config-DSCcdYtv.js";import{t as Ju}from"./path-safety-BukYK8Kd.js";import"./install-safe-path-C6kc_8NW.js";import"./skill-scanner-CkxXNioD.js";import{n as Yu}from"./issue-format-CN9PHzXY.js";import{t as Xu}from"./status-w4NsjW2R.js";import"./channels-status-issues-8eFrGKyf.js";import"./daemon-install-plan.shared-Dx3DBXCG.js";import"./runtime-guard-DX2Ie4ri.js";import"./gateway-install-token-cSJrfU_1.js";import"./systemd-DbevZh65.js";import{u as Zu}from"./service-DZ9EbS15.js";import"./lifecycle-core-D_LWJeD_.js";import"./systemd-hints-lXpMy-kY.js";import{t as Qu}from"./parse-port-JVwkxcZ8.js";import{c as $u,n as ed,s as td}from"./daemon-cli-CEHkT-54.js";import{r as nd}from"./probe-auth-C5nWfMS9.js";import"./diagnostics-Cdctg9K_.js";import{a as rd,c as id,d as ad,f as od,i as sd,l as cd,n as ld,o as ud,p as dd,r as fd,s as pd,t as md,u as hd}from"./device-pairing-DAzYy3vX.js";import"./table-CR7TFMew.js";import{n as gd,r as _d}from"./widearea-dns-BDx7vkV2.js";import{i as vd,n as yd,r as bd,t as xd}from"./shared-BKWhOp64.js";import{t as Sd}from"./bonjour-discovery-ClTijpMw.js";import{i as Cd,r as wd}from"./status-o3Gfr-6l.js";import{a as Td,c as Ed,n as Dd,s as Od,t as kd}from"./health-CIZFVJEG.js";import{a as Ad,n as jd,o as Md,t as Nd}from"./control-ui-assets-CTHGGgaX.js";import{m as Pd,n as Fd,o as Id,r as Ld}from"./channel-account-context-DAcarnqW.js";import"./onboarding.secret-input-CUD0t7Pk.js";import{t as Rd}from"./onboarding-CxRTJCBM.js";import{a as zd,c as Bd,d as Vd,f as Hd,i as Ud,l as q,n as Wd,o as Gd,p as Kd,s as qd,t as Jd,u as Yd}from"./push-apns-DIV5dBPP.js";import{_ as Xd,g as Zd,i as Qd,w as $d}from"./gmail-setup-utils-CYOH3zzx.js";import{d as ef,f as tf,p as nf,t as rf,u as af}from"./update-runner-DABdlxfN.js";import{n as of,r as sf}from"./node-command-policy-DyWp3Bjz.js";import{n as cf}from"./audit-9I53EvMQ.js";import"./node-service-C0bl7jcZ.js";import"./status.update-B_8Gumuc.js";import{t as lf}from"./skills-install-cEcqzaX8.js";import{i as uf,r as df,t as ff}from"./workspace-xNEpaJvu.js";import{n as pf,r as mf}from"./ports-BAaLOkJp.js";import{spawn as hf,spawnSync as gf}from"node:child_process";import{fileURLToPath as _f,pathToFileURL as vf}from"node:url";import yf from"node:os";import J from"node:path";import*as bf from"node:fs";import Y from"node:fs";import xf from"chalk";import Sf from"json5";import{isDeepStrictEqual as Cf}from"node:util";import X from"node:fs/promises";import wf,{createHash as Tf,randomBytes as Ef,randomUUID as Df}from"node:crypto";import{z as Z}from"zod";import Of from"node:net";import{CURRENT_SESSION_VERSION as kf,SessionManager as Af}from"@mariozechner/pi-coding-agent";import{createServer as jf}from"node:http";import{createServer as Mf}from"node:https";import{WebSocketServer as Nf}from"ws";import{Buffer as Pf}from"node:buffer";import Ff from"chokidar";import{AsyncLocalStorage as If}from"node:async_hooks";function Lf(e){if(!e)return;let t=Number.parseInt(e,10);if(!(!Number.isFinite(t)||t<=0))return t}function Rf(e){let t={identityFiles:[]},n=e.split(`
|
|
2
2
|
`);for(let e of n){let n=e.trim();if(!n)continue;let[r,...i]=n.split(/\s+/),a=i.join(` `).trim();if(!(!r||!a))switch(r){case`user`:t.user=a;break;case`hostname`:t.host=a;break;case`port`:t.port=Lf(a);break;case`identityfile`:a!==`none`&&t.identityFiles.push(a);break;default:break}}return t}async function zf(e,t={}){let n=[`-G`];e.port>0&&e.port!==22&&n.push(`-p`,String(e.port)),t.identity?.trim()&&n.push(`-i`,t.identity.trim());let r=e.user?`${e.user}@${e.host}`:e.host;return n.push(`--`,r),await new Promise(e=>{let r=hf(`/usr/bin/ssh`,n,{stdio:[`ignore`,`pipe`,`ignore`]}),i=``;r.stdout?.setEncoding(`utf8`),r.stdout?.on(`data`,e=>{i+=String(e)});let a=Math.max(200,t.timeoutMs??800),o=setTimeout(()=>{try{r.kill(`SIGKILL`)}finally{e(null)}},a);r.once(`error`,()=>{clearTimeout(o),e(null)}),r.once(`exit`,t=>{if(clearTimeout(o),t!==0||!i.trim()){e(null);return}e(Rf(i))})})}function Bf(e){let t=e.trim().replace(/^ssh\s+/,``);if(!t)return null;let[n,r]=t.includes(`@`)?(()=>{let e=t.indexOf(`@`),n=t.slice(0,e).trim(),r=t.slice(e+1).trim();return[n||void 0,r]})():[void 0,t],i=r.lastIndexOf(`:`);if(i>0&&i<r.length-1){let e=r.slice(0,i).trim(),t=r.slice(i+1).trim(),a=Number.parseInt(t,10);return!e||!Number.isFinite(a)||a<=0||e.startsWith(`-`)?null:{user:n,host:e,port:a}}return!r||r.startsWith(`-`)?null:{user:n,host:r,port:22}}async function Vf(){return await new Promise((e,t)=>{let n=Of.createServer();n.once(`error`,t),n.listen(0,`127.0.0.1`,()=>{let r=n.address();n.close(()=>{if(!r||typeof r==`string`){t(Error(`failed to allocate a local port`));return}e(r.port)})})})}async function Hf(e){return await new Promise(t=>{let n=Of.connect({host:`127.0.0.1`,port:e}),r=e=>{n.removeAllListeners(),n.destroy(),t(e)};n.once(`connect`,()=>r(!0)),n.once(`error`,()=>r(!1)),n.setTimeout(250,()=>r(!1))})}async function Uf(e,t){let n=Date.now();for(;Date.now()-n<t;){if(await Hf(e))return;await new Promise(e=>setTimeout(e,50))}throw Error(`ssh tunnel did not start listening on localhost:${e}`)}async function Wf(e){let t=Bf(e.target);if(!t)throw Error(`invalid SSH target: ${e.target}`);let n=e.localPortPreferred;try{await ie(n)}catch(e){if(Jr(e)&&e.code===`EADDRINUSE`)n=await Vf();else throw e}let r=t.user?`${t.user}@${t.host}`:t.host,i=[`-N`,`-L`,`${n}:127.0.0.1:${e.remotePort}`,`-p`,String(t.port),`-o`,`ExitOnForwardFailure=yes`,`-o`,`BatchMode=yes`,`-o`,`StrictHostKeyChecking=yes`,`-o`,`UpdateHostKeys=yes`,`-o`,`ConnectTimeout=5`,`-o`,`ServerAliveInterval=15`,`-o`,`ServerAliveCountMax=3`];e.identity?.trim()&&i.push(`-i`,e.identity.trim()),i.push(`--`,r);let a=[],o=hf(`/usr/bin/ssh`,i,{stdio:[`ignore`,`ignore`,`pipe`]});o.stderr?.setEncoding(`utf8`),o.stderr?.on(`data`,e=>{let t=String(e).split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(Boolean);a.push(...t)});let s=async()=>{o.killed||(o.kill(`SIGTERM`),await new Promise(e=>{let t=setTimeout(()=>{try{o.kill(`SIGKILL`)}finally{e()}},1500);o.once(`exit`,()=>{clearTimeout(t),e()})}))};try{await Promise.race([Uf(n,Math.max(250,e.timeoutMs)),new Promise((e,t)=>{o.once(`exit`,(e,n)=>{t(Error(`ssh exited (${e??`null`}${n?`/${n}`:``})`))})})])}catch(e){await s();let t=a.length>0?`\n${a.join(`
|
|
4
4
|
`)}`:``;throw Error(`${e instanceof Error?e.message:String(e)}${t}`,{cause:e})}return{parsedTarget:t,localPort:n,remotePort:e.remotePort,pid:typeof o.pid==`number`?o.pid:null,stderr:a,stop:s}}function Gf(e){let t=typeof e==`string`?e.trim():typeof e==`number`||typeof e==`bigint`?String(e):``;if(!t)return null;let n=Number.parseInt(t,10);return Number.isFinite(n)?n:null}function Kf(e,t){let n=typeof e==`string`?e.trim():typeof e==`number`||typeof e==`bigint`?String(e):``;if(!n)return t;let r=Number.parseInt(n,10);if(!Number.isFinite(r)||r<=0)throw Error(`invalid --timeout: ${n}`);return r}function qf(e){let t=e.trim();return!t||!t.startsWith(`ws://`)&&!t.startsWith(`wss://`)?null:t}function Jf(e,t){let n=[],r=e=>{n.some(t=>t.url===e.url)||n.push(e)},i=typeof t==`string`?qf(t):null;i&&r({id:`explicit`,kind:`explicit`,url:i,active:!0});let a=typeof e.gateway?.remote?.url==`string`?qf(e.gateway.remote.url):null;return a&&r({id:`configRemote`,kind:`configRemote`,url:a,active:e.gateway?.mode===`remote`}),r({id:`localLoopback`,kind:`localLoopback`,url:`ws://127.0.0.1:${y(e)}`,active:e.gateway?.mode!==`remote`}),n}function Yf(e,t){return t===`localLoopback`?Math.min(800,e):t===`sshTunnel`?Math.min(2e3,e):Math.min(1500,e)}function Xf(e){if(typeof e!=`string`)return null;let t=e.trim();return t?t.replace(/^ssh\\s+/,``):null}async function Zf(e,t,n){let r=n.token?.trim()?n.token.trim():void 0,i=n.password?.trim()?n.password.trim():void 0;if(r||i)return{token:r,password:i};let a=[],o=e.gateway?.auth?.mode,s=o===`token`,c=o===`password`,l=async(t,n)=>{let r=await jt({config:e,env:process.env,value:t,path:n,unresolvedReasonStyle:`detailed`});return r.unresolvedRefReason&&a.push(r.unresolvedRefReason),r.value},u=async(t,n)=>{let r=await jt({config:e,env:process.env,value:t,path:n,unresolvedReasonStyle:`detailed`});return r.unresolvedRefReason&&a.push(r.unresolvedRefReason),r.value},d=e=>a.length>0?{...e,diagnostics:a}:e;if(t.kind===`configRemote`||t.kind===`sshTunnel`){let t=e.gateway?.remote?.token,n=e.gateway?.remote?.password,r=await l(t,`gateway.remote.token`);return d({token:r,password:r?void 0:await u(n,`gateway.remote.password`)})}if(o===`none`||o===`trusted-proxy`)return{};let f=ue(),p=R();if(s){let t=await l(e.gateway?.auth?.token,`gateway.auth.token`);return t?d({token:t}):f?{token:f}:d({})}if(c){let t=await u(e.gateway?.auth?.password,`gateway.auth.password`);return t?d({password:t}):p?{password:p}:d({})}let m=await l(e.gateway?.auth?.token,`gateway.auth.token`);return m?d({token:m}):f?{token:f}:d(p?{password:p}:{token:m,password:await u(e.gateway?.auth?.password,`gateway.auth.password`)})}function Qf(e){let t=e,n=typeof t?.path==`string`?t.path:null,r=!!t?.exists,i=!!t?.valid,a=Array.isArray(t?.issues)?t.issues:[],o=Array.isArray(t?.legacyIssues)?t.legacyIssues:[],s=t?.config??{},c=s.gateway??{},l=(s.secrets??{}).defaults??void 0,u=(s.discovery??{}).wideArea??{},d=c.remote??{},f=c.auth??{},p=c.controlUi??{},m=c.tailscale??{},h=typeof f.mode==`string`?f.mode:null,g=dr(f.token,l),_=dr(f.password,l),v=typeof d.url==`string`?qf(d.url):null,y=dr(d.token,l),b=dr(d.password,l),x=typeof u.enabled==`boolean`?u.enabled:null;return{path:n,exists:r,valid:i,issues:a.filter(e=>!!(e&&typeof e.path==`string`&&typeof e.message==`string`)).map(e=>({path:e.path,message:e.message})),legacyIssues:o.filter(e=>!!(e&&typeof e.path==`string`&&typeof e.message==`string`)).map(e=>({path:e.path,message:e.message})),gateway:{mode:typeof c.mode==`string`?c.mode:null,bind:typeof c.bind==`string`?c.bind:null,port:Gf(c.port),controlUiEnabled:typeof p.enabled==`boolean`?p.enabled:null,controlUiBasePath:typeof p.basePath==`string`?p.basePath:null,authMode:h,authTokenConfigured:g,authPasswordConfigured:_,remoteUrl:v,remoteTokenConfigured:y,remotePasswordConfigured:b,tailscaleMode:typeof m.mode==`string`?m.mode:null},discovery:{wideAreaEnabled:x}}}function $f(e){let t=ot(),n=y(e);return{localLoopbackUrl:`ws://127.0.0.1:${n}`,localTailnetUrl:t?`ws://${t}:${n}`:null,tailnetIPv4:t??null}}function ep(t,n){let i=t.kind===`localLoopback`?`Local loopback`:t.kind===`sshTunnel`?`Remote over SSH`:t.kind===`configRemote`?t.active?`Remote (configured)`:`Remote (configured, inactive)`:`URL (explicit)`;return`${r(n,e.heading,i)} ${r(n,e.muted,t.url)}`}function tp(t,n){if(t.ok){let i=typeof t.connectLatencyMs==`number`?`${t.connectLatencyMs}ms`:`unknown`;return`${r(n,e.success,`Connect: ok`)} (${i}) · ${r(n,e.success,`RPC: ok`)}`}let i=t.error?` - ${t.error}`:``;if(t.connectLatencyMs!=null){let a=typeof t.connectLatencyMs==`number`?`${t.connectLatencyMs}ms`:`unknown`;return`${r(n,e.success,`Connect: ok`)} (${a}) · ${r(n,e.error,`RPC: failed`)}${i}`}return`${r(n,e.error,`Connect: failed`)}${i}`}async function np(t,n){let i=Date.now(),a=await Ce(),o=s()&&t.json!==!0,c=Kf(t.timeout,3e3),l=gd({configDomain:a.discovery?.wideArea?.domain}),u=Jf(a,t.url),d=$f(a),f=Math.min(1200,c),p=Sd({timeoutMs:f,wideAreaDomain:l}),m=Xf(t.ssh)??Xf(a.gateway?.remote?.sshTarget),h=Xf(t.sshIdentity)??Xf(a.gateway?.remote?.sshIdentity),g=y(a),_=null,v=!1;if(m||=rp(a.gateway?.remote?.url),m){let e=await ap(m,h,c);e&&(m=e.target,!h&&e.identity&&(h=e.identity))}let{discovery:b,probed:x}=await Ou({label:`Inspecting gateways…`,indeterminate:!0,enabled:t.json!==!0},async()=>{let e=async()=>{if(!m)return null;try{let e=await Wf({target:m,identity:h??void 0,localPortPreferred:g,remotePort:g,timeoutMs:Math.min(1500,c)});return v=!0,e}catch(e){return _=e instanceof Error?e.message:String(e),null}},n=p.catch(()=>[]),r=m?e():Promise.resolve(null),[i,o]=await Promise.all([n,r]);if(!m&&t.sshAuto){let e=process.env.USER?.trim()||``,t=i.map(t=>{let n=t.tailnetDns||t.lanHost||t.host;if(!n?.trim())return null;let r=typeof t.sshPort==`number`&&t.sshPort>0?t.sshPort:22,i=e?`${e}@${n.trim()}`:n.trim();return r===22?i:`${i}:${r}`}).filter(e=>!!(e&&Bf(e)));t.length>0&&(m=t[0]??null)}let s=o||(m&&!v&&!_?await e():null),l=s?{id:`sshTunnel`,kind:`sshTunnel`,url:`ws://127.0.0.1:${s.localPort}`,active:!0,tunnel:{kind:`ssh`,target:m??``,localPort:s.localPort,remotePort:g,pid:s.pid}}:null,d=l?[l,...u.filter(e=>e.url!==l.url)]:u;try{return{discovery:i,probed:await Promise.all(d.map(async e=>{let n=await Zf(a,e,{token:typeof t.token==`string`?t.token:void 0,password:typeof t.password==`string`?t.password:void 0}),r={token:n.token,password:n.password},i=Yf(c,e.kind),o=await nd({url:e.url,auth:r,timeoutMs:i});return{target:e,probe:o,configSummary:o.configSnapshot?Qf(o.configSnapshot):null,self:Cd(o.presence),authDiagnostics:n.diagnostics??[]}}))}}finally{if(s)try{await s.stop()}catch{}}}),S=x.filter(e=>e.probe.ok),C=S.length>0,w=S.length>1,T=S.find(e=>e.target.kind===`explicit`)??S.find(e=>e.target.kind===`sshTunnel`)??S.find(e=>e.target.kind===`configRemote`)??S.find(e=>e.target.kind===`localLoopback`)??null,E=[];m&&!v&&E.push({code:`ssh_tunnel_failed`,message:_?`SSH tunnel failed: ${String(_)}`:`SSH tunnel failed to start; falling back to direct probes.`}),w&&E.push({code:`multiple_gateways`,message:`Unconventional setup: multiple reachable gateways detected. Usually one gateway per network is recommended unless you intentionally run isolated profiles, like a rescue bot (see docs: /gateway#multiple-gateways-same-host).`,targetIds:S.map(e=>e.target.id)});for(let e of x)if(e.authDiagnostics.length!==0)for(let t of e.authDiagnostics)E.push({code:`auth_secretref_unresolved`,message:t,targetIds:[e.target.id]});if(t.json){n.log(JSON.stringify({ok:C,ts:Date.now(),durationMs:Date.now()-i,timeoutMs:c,primaryTargetId:T?.target.id??null,warnings:E,network:d,discovery:{timeoutMs:f,count:b.length,beacons:b.map(e=>({instanceName:e.instanceName,displayName:e.displayName??null,domain:e.domain??null,host:e.host??null,lanHost:e.lanHost??null,tailnetDns:e.tailnetDns??null,gatewayPort:e.gatewayPort??null,sshPort:e.sshPort??null,wsUrl:(()=>{let t=e.tailnetDns||e.lanHost||e.host,n=e.gatewayPort??18789;return t?`ws://${t}:${n}`:null})()}))},targets:x.map(e=>({id:e.target.id,kind:e.target.kind,url:e.target.url,active:e.target.active,tunnel:e.target.tunnel??null,connect:{ok:e.probe.ok,latencyMs:e.probe.connectLatencyMs,error:e.probe.error,close:e.probe.close},self:e.self,config:e.configSummary,health:e.probe.health,summary:e.probe.status,presence:e.probe.presence}))},null,2)),C||n.exit(1);return}if(n.log(r(o,e.heading,`Gateway Status`)),n.log(C?`${r(o,e.success,`Reachable`)}: yes`:`${r(o,e.error,`Reachable`)}: no`),n.log(r(o,e.muted,`Probe budget: ${c}ms`)),E.length>0){n.log(``),n.log(r(o,e.warn,`Warning:`));for(let e of E)n.log(`- ${e.message}`)}n.log(``),n.log(r(o,e.heading,`Discovery (this machine)`));let D=l?`local. + ${l}`:`local.`;n.log(b.length>0?`Found ${b.length} gateway(s) via Bonjour (${D})`:`Found 0 gateways via Bonjour (${D})`),b.length===0&&n.log(r(o,e.muted,`Tip: if the gateway is remote, mDNS won’t cross networks; use Wide-Area Bonjour (split DNS) or SSH tunnels.`)),n.log(``),n.log(r(o,e.heading,`Targets`));for(let t of x){if(n.log(ep(t.target,o)),n.log(` ${tp(t.probe,o)}`),t.target.tunnel?.kind===`ssh`&&n.log(` ${r(o,e.muted,`ssh`)}: ${r(o,e.command,t.target.tunnel.target)}`),t.probe.ok&&t.self){let i=t.self.host??`unknown`,a=t.self.ip?` (${t.self.ip})`:``,s=t.self.platform?` · ${t.self.platform}`:``,c=t.self.version?` · app ${t.self.version}`:``;n.log(` ${r(o,e.info,`Gateway`)}: ${i}${a}${s}${c}`)}if(t.configSummary){let i=t.configSummary,a=i.discovery.wideAreaEnabled===!0?`enabled`:i.discovery.wideAreaEnabled===!1?`disabled`:`unknown`;n.log(` ${r(o,e.info,`Wide-area discovery`)}: ${a}`)}n.log(``)}C||n.exit(1)}function rp(e){if(typeof e!=`string`)return null;let t=e.trim();if(!t)return null;let n=null;try{n=new URL(t).hostname||null}catch{return null}if(!n)return null;let r=process.env.USER?.trim()||``;return r?`${r}@${n}`:n}function ip(e){let t=e.host?.trim()??``;if(!t)return null;let n=e.user?.trim()??``,r=n?`${n}@${t}`:t,i=e.port??22;return i&&i!==22?`${r}:${i}`:r}async function ap(e,t,n){let r=Bf(e);if(!r)return null;let i=await zf(r,{identity:t??void 0,timeoutMs:Math.min(800,n)});if(!i)return{target:e,identity:t??void 0};let a=ip({user:i.user??r.user,host:i.host??r.host,port:i.port??r.port});return a?{target:a,identity:t??i.identityFiles.find(e=>e.trim().length>0)?.trim()??void 0}:{target:e,identity:t??void 0}}const op=e=>e.option(`--url <url>`,`Gateway WebSocket URL (defaults to gateway.remote.url when configured)`).option(`--token <token>`,`Gateway token (if required)`).option(`--password <password>`,`Gateway password (password auth)`).option(`--timeout <ms>`,`Timeout in ms`,`10000`).option(`--expect-final`,`Wait for final response (agent)`,!1).option(`--json`,`Output JSON`,!1),sp=async(e,t,n)=>Ou({label:`Gateway ${e}`,indeterminate:!0,enabled:t.json!==!0},async()=>await Bc({config:t.config,url:t.url,token:t.token,password:t.password,method:e,params:n,expectFinal:!!t.expectFinal,timeoutMs:Number(t.timeout??1e4),clientName:rn.CLI,mode:Ft.CLI}));function cp(e,t){if(e==null)return t;let n=typeof e==`string`?e.trim():typeof e==`number`||typeof e==`bigint`?String(e):null;if(n===null)throw Error(`invalid --timeout`);if(!n)return t;let r=Number.parseInt(n,10);if(!Number.isFinite(r)||r<=0)throw Error(`invalid --timeout: ${n}`);return r}function lp(e){let t=e.host||e.tailnetDns||e.lanHost;return t?.trim()?t.trim():null}function up(e){let t=e.port??e.gatewayPort??18789;return t>0?t:18789}function dp(e){let t=[],n=new Set;for(let r of e){let e=lp(r)??``,i=[r.domain??``,r.instanceName??``,r.displayName??``,e,String(r.port??``),String(r.gatewayPort??``)].join(`|`);n.has(i)||(n.add(i),t.push(r))}return t}function fp(t,n){let i=(t.displayName||t.instanceName||`Gateway`).trim(),a=(t.domain||`local.`).trim(),o=r(n,e.accentBright,i),s=r(n,e.muted,a),c=lp(t),l=up(t),u=t.gatewayTls?`wss`:`ws`,d=c?`${u}://${c}:${l}`:null,f=[`- ${o} ${s}`];if(t.tailnetDns&&f.push(` ${r(n,e.info,`tailnet`)}: ${t.tailnetDns}`),t.lanHost&&f.push(` ${r(n,e.info,`lan`)}: ${t.lanHost}`),t.host&&f.push(` ${r(n,e.info,`host`)}: ${t.host}`),d&&f.push(` ${r(n,e.muted,`ws`)}: ${r(n,e.command,d)}`),t.role&&f.push(` ${r(n,e.muted,`role`)}: ${t.role}`),t.transport&&f.push(` ${r(n,e.muted,`transport`)}: ${t.transport}`),t.gatewayTls){let i=t.gatewayTlsFingerprintSha256?`sha256 ${t.gatewayTlsFingerprintSha256}`:`enabled`;f.push(` ${r(n,e.muted,`tls`)}: ${i}`)}if(typeof t.sshPort==`number`&&t.sshPort>0&&c){let i=`ssh -N -L 18789:127.0.0.1:18789 <user>@${c} -p ${t.sshPort}`;f.push(` ${r(n,e.muted,`ssh`)}: ${r(n,e.command,i)}`)}return f}function pp(e,t=120){if(!e)return`invalid handshake`;let n=Pf.from(e);return n.length<=t?e:n.subarray(0,t).toString()}const mp=d(`gateway/exec-approvals`);function hp(e){return e??`session`}function gp(e,t){return t.some(t=>{if(e.includes(t))return!0;let n=Kr(t);return n?Gr(n,e):!1})}function _p(e){let t=e.config;if(!t?.enabled)return!1;if(t.agentFilter?.length){let n=e.request.request.agentId??zn(e.request.request.sessionKey)?.agentId;if(!n||!t.agentFilter.includes(n))return!1}if(t.sessionFilter?.length){let n=e.request.request.sessionKey;if(!n||!gp(n,t.sessionFilter))return!1}return!0}function vp(e){let t=Ot(e.channel)??e.channel,n=e.accountId??``,r=e.threadId??``;return[t,e.to,n,r].join(`:`)}function yp(e,t){if(!e||!t?.trim())return;let n=Hn(t),r=e[n];if(r)return r;let i=Object.keys(e).find(e=>e.toLowerCase()===n.toLowerCase());return i?e[i]:void 0}function bp(e,t){if((Ot(e.channel)??e.channel)!==`discord`)return!1;let n=t.channels?.discord;if(!n)return!1;let r=yp(n.accounts,e.accountId)?.execApprovals??n.execApprovals;return!!(r?.enabled&&(r.approvers?.length??0)>0)}function xp(e){if((Ot(e.target.channel)??e.target.channel)!==`telegram`||Ot(e.request.request.turnSourceChannel??``)!==`telegram`)return!1;let t=e.cfg.channels?.telegram;if(!t)return!1;let n=t;if(!n)return!1;let r=e.target.accountId?.trim()||e.request.request.turnSourceAccountId?.trim(),i=(r?yp(n.accounts,r):void 0)?.execApprovals??n.execApprovals;return!!(i?.enabled&&(i.approvers?.length??0)>0)}function Sp(e){if(!e.includes(`
|
|
@@ -208,4 +208,3 @@ Add your local tool notes here.
|
|
|
208
208
|
`)]);await lM(J.join(t,`AGENTS.md`),n),await lM(J.join(t,`SOUL.md`),r),await lM(J.join(t,`TOOLS.md`),i),await lM(J.join(t,`IDENTITY.md`),a),await lM(J.join(t,`USER.md`),o)}async function dM(e){let t=cM();e.reset&&await yu(`full`,t,u);let n=V().configPath,r=Y.existsSync(n);!e.reset&&r||(await O({gateway:{mode:`local`,bind:`loopback`},agents:{defaults:{workspace:t,skipBootstrap:!0},list:[{id:`dev`,default:!0,workspace:t,identity:{name:iM,theme:aM,emoji:oM}}]}}),await uM(t),u.log(`Dev config ready: ${rr(n)}`),u.log(`Dev workspace ready: ${rr(nr(t))}`))}const fM={launchd:[`LAUNCH_JOB_LABEL`,`LAUNCH_JOB_NAME`,`XPC_SERVICE_NAME`,`OPENCLAW_LAUNCHD_LABEL`],systemd:[`OPENCLAW_SYSTEMD_UNIT`,`INVOCATION_ID`,`SYSTEMD_EXEC_PID`,`JOURNAL_STREAM`],schtasks:[`OPENCLAW_WINDOWS_TASK_NAME`]};[...fM.launchd,...fM.systemd,...fM.schtasks];function pM(e,t){return t.some(t=>{let n=e[t];return typeof n==`string`&&n.trim().length>0})}function mM(e=process.env,t=process.platform){if(t===`darwin`)return pM(e,fM.launchd)?`launchd`:null;if(t===`linux`)return pM(e,fM.systemd)?`systemd`:null;if(t===`win32`){if(pM(e,fM.schtasks))return`schtasks`;let t=e.OPENCLAW_SERVICE_MARKER?.trim(),n=e.OPENCLAW_SERVICE_KIND?.trim();return t&&n===`gateway`?`schtasks`:null}return null}function hM(e){if(!e)return!1;let t=e.trim().toLowerCase();return t===`1`||t===`true`||t===`yes`||t===`on`}function gM(){if(hM(process.env.OPENCLAW_NO_RESPAWN))return{mode:`disabled`};let e=mM(process.env);if(e){if(e===`launchd`){let e=Zu({env:process.env,mode:`start-after-exit`,waitForPid:process.pid});return e.ok?{mode:`supervised`,detail:`launchd restart handoff pid ${e.pid??`unknown`}`}:{mode:`supervised`,detail:`launchd exit fallback (${e.detail??`restart handoff failed`})`}}if(e===`schtasks`){let e=Jl();if(!e.ok)return{mode:`failed`,detail:e.detail??`${e.method} restart failed`}}return{mode:`supervised`}}if(process.platform===`win32`)return{mode:`disabled`,detail:`win32: detached respawn unsupported without Scheduled Task markers`};try{let e=[...process.execArgv,...process.argv.slice(1)],t=hf(process.execPath,e,{env:process.env,detached:!0,stdio:`inherit`});return t.unref(),{mode:`spawned`,pid:t.pid??void 0}}catch(e){return{mode:`failed`,detail:e instanceof Error?e.message:String(e)}}}function _M(e){let t=!0;return()=>t?(t=!1,!1):(e(),!0)}const vM=d(`gateway`);async function yM(e){let t=await RA({port:e.lockPort}),n=null,r=!1,i=null,a=()=>{process.removeListener(`SIGTERM`,m),process.removeListener(`SIGINT`,h),process.removeListener(`SIGUSR1`,g)},o=t=>{a(),e.runtime.exit(t)},s=async()=>t?(await t.release(),t=null,!0):!1,c=async()=>{try{return t=await RA({port:e.lockPort}),!0}catch(e){return vM.error(`failed to reacquire gateway lock for in-process restart: ${String(e)}`),o(1),!1}},l=async()=>{let e=await s(),t=gM();if(t.mode===`spawned`||t.mode===`supervised`){let e=t.mode===`spawned`?`spawned pid ${t.pid??`unknown`}`:`supervisor restart`;vM.info(`restart mode: full process restart (${e})`),o(0);return}t.mode===`failed`?vM.warn(`full process restart failed (${t.detail??`unknown error`}); falling back to in-process restart`):vM.info(`restart mode: in-process restart (${t.detail??`OPENCLAW_NO_RESPAWN`})`),!(e&&!await c())&&(r=!1,i?.())},u=async()=>{await s(),o(0)},d=9e4,f=5e3,p=(e,t)=>{if(r){vM.info(`received ${t} during shutdown; ignoring`);return}r=!0;let i=e===`restart`;vM.info(`received ${t}; ${i?`restarting`:`shutting down`}`);let a=i?d+f:f,s=setTimeout(()=>{vM.error(`shutdown timed out; exiting without full cleanup`),o(i?1:0)},a);(async()=>{try{if(i){oo();let e=Ri(),t=po();if(t>0&&za(void 0,{mode:`compacting`}),e>0||t>0){vM.info(`draining ${e} active task(s) and ${t} active embedded run(s) before restart (timeout ${d}ms)`);let[n,r]=await Promise.all([e>0?ka(d):Promise.resolve({drained:!0}),t>0?_a(d):Promise.resolve({drained:!0})]);n.drained&&r.drained?vM.info(`all active work drained`):(vM.warn(`drain timeout reached; proceeding with restart`),za(void 0,{mode:`all`}))}}await n?.close({reason:i?`gateway restarting`:`gateway stopping`,restartExpectedMs:i?1500:null})}catch(e){vM.error(`shutdown error: ${String(e)}`)}finally{clearTimeout(s),n=null,i?await l():await u()}})()},m=()=>{vM.info(`signal SIGTERM received`),p(`stop`,`SIGTERM`)},h=()=>{vM.info(`signal SIGINT received`),p(`stop`,`SIGINT`)},g=()=>{if(vM.info(`signal SIGUSR1 received`),!Wl()&&!zl()){vM.warn(`SIGUSR1 restart ignored (not authorized; commands.restart=false or use gateway tool).`);return}Gl(),p(`restart`,`SIGUSR1`)};process.on(`SIGTERM`,m),process.on(`SIGINT`,h),process.on(`SIGUSR1`,g);try{let t=_M(()=>{Ua()}),r=!0;for(;;){t();try{n=await e.start(),r=!1}catch(e){if(r)throw e;n=null,await s();let t=e instanceof Error?e.message:String(e),i=e instanceof Error&&e.stack?`\n${e.stack}`:``;vM.error(`gateway startup failed: ${t}. Process will stay alive; fix the issue and restart.${i}`)}await new Promise(e=>{i=e})}}finally{await s(),a()}}const bM=d(`gateway`),xM=[`port`,`bind`,`token`,`auth`,`password`,`passwordFile`,`tailscale`,`wsLog`,`rawStreamPath`],SM=[`tailscaleResetOnExit`,`allowUnconfigured`,`dev`,`reset`,`force`,`verbose`,`claudeCliLogs`,`compact`,`rawStream`],CM=[`none`,`token`,`password`,`trusted-proxy`],wM=[`off`,`serve`,`funnel`];function TM(){u.error(`Warning: --password can be exposed via process listings. Prefer --password-file or OPENCLAW_GATEWAY_PASSWORD.`)}function EM(e){let t=vd(e.password),n=vd(e.passwordFile);if(t&&n)throw Error(`Use either --password or --password-file.`);return n?Vu(n,`Gateway password`):t}function DM(e,t){return e&&t.includes(e)?e:null}function OM(e){return e.map(e=>`"${e}"`).join(`|`)}function kM(e){let t=e.map(e=>`"${e}"`);return t.length===0?``:t.length===1?t[0]:t.length===2?`${t[0]} or ${t[1]}`:`${t.slice(0,-1).join(`, `)}, or ${t[t.length-1]}`}function AM(e,t){let n={...e};for(let e of xM){let r=Hu(t,e);if(e===`wsLog`){n[e]=r??n[e];continue}n[e]=n[e]??r}for(let e of SM){let r=Hu(t,e);n[e]=!!(n[e]||r)}return n}async function jM(e){let t=process.env.OPENCLAW_PROFILE?.trim().toLowerCase()===`dev`,n=!!e.dev||t;if(e.reset&&!n){u.error(`Use --reset with --dev.`),u.exit(1);return}l(!0),f(!!e.verbose),e.claudeCliLogs&&(a([`agent/claude-cli`]),process.env.OPENCLAW_CLAUDE_CLI_LOG_OUTPUT=`1`);let r=e.compact?`compact`:e.wsLog,i=r===`compact`?`compact`:r===`full`?`full`:`auto`;r!==void 0&&r!==`auto`&&r!==`compact`&&r!==`full`&&(u.error(`Invalid --ws-log (use "auto", "full", "compact")`),u.exit(1)),Kd(i),e.rawStream&&(process.env.OPENCLAW_RAW_STREAM=`1`);let o=vd(e.rawStreamPath);o&&(process.env.OPENCLAW_RAW_STREAM_PATH=o),n&&await dM({reset:!!e.reset});let s=H(),c=Qu(e.port);e.port!==void 0&&c===null&&(u.error(`Invalid port`),u.exit(1));let d=c??y(s);(!Number.isFinite(d)||d<=0)&&(u.error(`Invalid port`),u.exit(1));let m=vd(e.bind)??s.gateway?.bind??`loopback`,h=m===`loopback`||m===`lan`||m===`auto`||m===`custom`||m===`tailnet`?m:null;if(!h){u.error(`Invalid --bind (use "loopback", "lan", "tailnet", "auto", or "custom")`),u.exit(1);return}if(process.env.OPENCLAW_SERVICE_MARKER?.trim()){let e=Vl(d);e.length>0&&bM.info(`service-mode: cleared ${e.length} stale gateway pid(s) before bind on port ${d}`)}if(e.force)try{let{killed:e,waitedMs:t,escalatedToSigkill:n}=await pf(d,{timeoutMs:2e3,intervalMs:100,sigtermTimeoutMs:700});if(e.length===0)bM.info(`force: no listeners on port ${d}`);else{for(let t of e)bM.info(`force: killed pid ${t.pid}${t.command?` (${t.command})`:``} on port ${d}`);n&&bM.info(`force: escalated to SIGKILL while freeing port ${d}`),t>0&&bM.info(`force: waited ${t}ms for port ${d} to free`)}let r=await mf(d,{timeoutMs:3e3,intervalMs:150,host:h===`loopback`?`127.0.0.1`:h===`lan`?`0.0.0.0`:h===`custom`?vd(s.gateway?.customBindHost):void 0});r>0&&bM.info(`force: waited ${r}ms for port ${d} to become bindable`)}catch(e){u.error(`Force: ${String(e)}`),u.exit(1);return}if(e.token){let t=vd(e.token);t&&(process.env.OPENCLAW_GATEWAY_TOKEN=t)}let g=vd(e.auth),_=DM(g,CM);if(g&&!_){u.error(`Invalid --auth (use ${kM(CM)})`),u.exit(1);return}let b=vd(e.tailscale),x=DM(b,wM);if(b&&!x){u.error(`Invalid --tailscale (use ${kM(wM)})`),u.exit(1);return}let S;try{S=EM(e)}catch(e){u.error(e instanceof Error?e.message:String(e)),u.exit(1);return}vd(e.password)&&TM();let C=vd(e.token),w=await L().catch(()=>null),T=w?.exists??Y.existsSync(v),E=J.join(p(process.env),`logs`,`config-audit.jsonl`),D=s.gateway?.mode;if(!e.allowUnconfigured&&D!==`local`){T?(u.error(`Gateway start blocked: set gateway.mode=local (current: ${D??`unset`}) or pass --allow-unconfigured.`),u.error(`Config write audit: ${E}`)):u.error(`Missing config. Run \`${hn(`openclaw setup`)}\` or set gateway.mode=local (or pass --allow-unconfigured).`),u.exit(1);return}let O=yd(w?.parsed),k=_||S||C||g?{..._?{mode:_}:{},...C?{token:C}:{},...S?{password:S}:{}}:void 0,A=ke({authConfig:s.gateway?.auth,authOverride:k,env:process.env,tailscaleMode:x??s.gateway?.tailscale?.mode??`off`}),j=A.mode,M=A.token,N=A.password,ee=typeof M==`string`&&M.trim().length>0,te=typeof N==`string`&&N.trim().length>0,P=ee||dr(k?.token??s.gateway?.auth?.token,s.secrets?.defaults),F=te||dr(k?.password??s.gateway?.auth?.password,s.secrets?.defaults),ne=j===`token`&&P||j===`password`&&F,re=j===`token`&&!P,I=[];if(O.hasGatewayToken&&I.push(`Found "gateway.token" in config. Use "gateway.auth.token" instead.`),O.hasRemoteToken&&I.push(`"gateway.remote.token" is for remote CLI calls; it does not enable local gateway auth.`),j===`password`&&!F){u.error([`Gateway auth is set to password, but no password is configured.`,`Set gateway.auth.password (or OPENCLAW_GATEWAY_PASSWORD), or pass --password.`,...I].filter(Boolean).join(`
|
|
209
209
|
`)),u.exit(1);return}if(j===`none`&&bM.warn(`Gateway auth mode=none explicitly configured; all gateway connections are unauthenticated.`),h!==`loopback`&&!ne&&!re&&j!==`trusted-proxy`){u.error([`Refusing to bind gateway to ${h} without auth.`,`Set gateway.auth.token/password (or OPENCLAW_GATEWAY_TOKEN/OPENCLAW_GATEWAY_PASSWORD) or pass --token/--password.`,...I].filter(Boolean).join(`
|
|
210
210
|
`)),u.exit(1);return}let R=x||e.tailscaleResetOnExit?{...x?{mode:x}:{},...e.tailscaleResetOnExit?{resetOnExit:!0}:{}}:void 0;try{await yM({runtime:u,lockPort:d,start:async()=>await rM(d,{bind:h,auth:k,tailscale:R})})}catch(e){if(e instanceof jA||e&&typeof e==`object`&&e.name===`GatewayLockError`){let t=xd(e);u.error(`Gateway failed to start: ${t}\nIf the gateway is supervised, stop it with: ${hn(`openclaw gateway stop`)}`);try{let e=await de(d);if(e.status===`busy`)for(let t of He(e))u.error(t)}catch{}await bd(),u.exit(1);return}u.error(`Gateway failed to start: ${String(e)}`),u.exit(1)}}function MM(e){return e.option(`--port <port>`,`Port for the gateway WebSocket`).option(`--bind <mode>`,`Bind mode ("loopback"|"lan"|"tailnet"|"auto"|"custom"). Defaults to config gateway.bind (or loopback).`).option(`--token <token>`,`Shared token required in connect.params.auth.token (default: OPENCLAW_GATEWAY_TOKEN env if set)`).option(`--auth <mode>`,`Gateway auth mode (${OM(CM)})`).option(`--password <password>`,`Password for auth mode=password`).option(`--password-file <path>`,`Read gateway password from file`).option(`--tailscale <mode>`,`Tailscale exposure mode (${OM(wM)})`).option(`--tailscale-reset-on-exit`,`Reset Tailscale serve/funnel configuration on shutdown`,!1).option(`--allow-unconfigured`,`Allow gateway start without gateway.mode=local in config`,!1).option(`--dev`,`Create a dev config + workspace if missing (no BOOTSTRAP.md)`,!1).option(`--reset`,`Reset dev config + credentials + sessions + workspace (requires --dev)`,!1).option(`--force`,`Kill any existing listener on the target port before starting`,!1).option(`--verbose`,`Verbose logging to stdout/stderr`,!1).option(`--claude-cli-logs`,`Only show claude-cli logs in the console (includes stdout/stderr)`,!1).option(`--ws-log <style>`,`WebSocket log style ("auto"|"full"|"compact")`,`auto`).option(`--compact`,`Alias for "--ws-log compact"`,!1).option(`--raw-stream`,`Log raw model stream events to jsonl`,!1).option(`--raw-stream-path <path>`,`Raw stream jsonl path`).action(async(e,t)=>{await jM(AM(e,t))})}function NM(e,t){return Eu(u,e,e=>{let n=String(e);u.error(t?`${t}: ${n}`:n),u.exit(1)})}function PM(e,t=30){if(typeof e==`number`&&Number.isFinite(e))return Math.max(1,Math.floor(e));if(typeof e==`string`&&e.trim()!==``){let t=Number(e);if(Number.isFinite(t))return Math.max(1,Math.floor(t))}return t}function FM(e,t){let n=Hu(t,`token`),r=Hu(t,`password`);return{...e,token:e.token??n,password:e.password??r}}function IM(t,n,i){let a=yl(t.totals.totalCost)??`$0.00`,o=vl(t.totals.totalTokens)??`0`,s=[r(i,e.heading,`Usage cost (${n} days)`),`${r(i,e.muted,`Total:`)} ${a} · ${o} tokens`];t.totals.missingCostEntries>0&&s.push(`${r(i,e.muted,`Missing entries:`)} ${t.totals.missingCostEntries}`);let c=t.daily.at(-1);if(c){let t=yl(c.totalCost)??`$0.00`,n=vl(c.totalTokens)??`0`;s.push(`${r(i,e.muted,`Latest day:`)} ${c.date} · ${t} · ${n} tokens`)}return s}function LM(t){let n=MM(t.command(`gateway`).description(`Run, inspect, and query the WebSocket Gateway`).addHelpText(`after`,()=>`\n${e.heading(`Examples:`)}\n${Du([[`openclaw gateway run`,`Run the gateway in the foreground.`],[`openclaw gateway status`,`Show service status and probe reachability.`],[`openclaw gateway discover`,`Find local and wide-area gateway beacons.`],[`openclaw gateway call health`,`Call a gateway RPC method directly.`]])}\n\n${e.muted(`Docs:`)} ${Tu(`/cli/gateway`,`docs.openclaw.ai/cli/gateway`)}\n`));MM(n.command(`run`).description(`Run the WebSocket Gateway (foreground)`)),ed(n,{statusDescription:`Show gateway service status + probe the Gateway`}),op(n.command(`call`).description(`Call a Gateway method`).argument(`<method>`,`Method name (health/status/system-presence/cron.*)`).option(`--params <json>`,`JSON object string for params`,`{}`).action(async(t,n,i)=>{await NM(async()=>{let a=FM(n,i),o=await Ce(),c=JSON.parse(String(n.params??`{}`)),l=await sp(t,{...a,config:o},c);if(a.json){u.log(JSON.stringify(l,null,2));return}let d=s();u.log(`${r(d,e.heading,`Gateway call`)}: ${r(d,e.muted,String(t))}`),u.log(JSON.stringify(l,null,2))},`Gateway call failed`)})),op(n.command(`usage-cost`).description(`Fetch usage cost summary from session logs`).option(`--days <days>`,`Number of days to include`,`30`).action(async(e,t)=>{await NM(async()=>{let n=FM(e,t),r=PM(e.days),i=await Ce(),a=await sp(`usage.cost`,{...n,config:i},{days:r});if(n.json){u.log(JSON.stringify(a,null,2));return}let o=s(),c=a;for(let e of IM(c,r,o))u.log(e)},`Gateway usage cost failed`)})),op(n.command(`health`).description(`Fetch Gateway health`).action(async(t,n)=>{await NM(async()=>{let i=FM(t,n),a=await Ce(),o=await sp(`health`,{...i,config:a});if(i.json){u.log(JSON.stringify(o,null,2));return}let c=s(),l=o&&typeof o==`object`?o:{},d=typeof l.durationMs==`number`?l.durationMs:null;if(u.log(r(c,e.heading,`Gateway Health`)),u.log(`${r(c,e.success,`OK`)}${d==null?``:` (${d}ms)`}`),l.channels&&typeof l.channels==`object`)for(let e of kd(l))u.log(Td(e,c))})})),n.command(`probe`).description(`Show gateway reachability + discovery + health + status summary (local + remote)`).option(`--url <url>`,`Explicit Gateway WebSocket URL (still probes localhost)`).option(`--ssh <target>`,`SSH target for remote gateway tunnel (user@host or user@host:port)`).option(`--ssh-identity <path>`,`SSH identity file path`).option(`--ssh-auto`,`Try to derive an SSH target from Bonjour discovery`,!1).option(`--token <token>`,`Gateway token (applies to all probes)`).option(`--password <password>`,`Gateway password (applies to all probes)`).option(`--timeout <ms>`,`Overall probe budget in ms`,`3000`).option(`--json`,`Output JSON`,!1).action(async(e,t)=>{await NM(async()=>{await np(FM(e,t),u)})}),n.command(`discover`).description(`Discover gateways via Bonjour (local + wide-area if configured)`).option(`--timeout <ms>`,`Per-command timeout in ms`,`2000`).option(`--json`,`Output JSON`,!1).action(async t=>{await NM(async()=>{let n=gd({configDomain:(await Ce()).discovery?.wideArea?.domain}),i=cp(t.timeout,2e3),a=[`local.`,...n?[n]:[]],o=dp(await Ou({label:`Scanning for gateways…`,indeterminate:!0,enabled:t.json!==!0,delayMs:0},async()=>await Sd({timeoutMs:i,wideAreaDomain:n}))).toSorted((e,t)=>String(e.displayName||e.instanceName).localeCompare(String(t.displayName||t.instanceName)));if(t.json){let e=o.map(e=>{let t=lp(e),n=up(e);return{...e,wsUrl:t?`ws://${t}:${n}`:null}});u.log(JSON.stringify({timeoutMs:i,domains:a,count:e.length,beacons:e},null,2));return}let c=s();if(u.log(r(c,e.heading,`Gateway Discovery`)),u.log(r(c,e.muted,`Found ${o.length} gateway(s) · domains: ${a.join(`, `)}`)),o.length!==0)for(let e of o)for(let t of fp(e,c))u.log(t)},`gateway discover failed`)})}export{LM as registerGatewayCli};
|
|
211
|
-
//# sourceMappingURL=gateway-cli-DBjTjdhJ.js.map
|