@qqbrowser/openclaw-qbot 0.0.139 → 0.0.142
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 +1 -0
- package/dist/acp-cli-BaslDuk6.js +1 -0
- package/dist/acp-cli-f5-uI85a.js +1 -0
- package/dist/active-listener-Cce5tcPa.js +1 -0
- package/dist/active-listener-D8VOdVx3.js +1 -0
- package/dist/active-listener-DeKRt_UV.js +1 -0
- package/dist/active-listener-Dle9QX40.js +1 -0
- package/dist/agent-scope-DAWJwFfl.js +1 -0
- package/dist/agent-scope-DXZc3eNT.js +1 -0
- package/dist/agents-Bpp_F5In.js +1 -0
- package/dist/agents.config-B6LRG9eP.js +1 -0
- package/dist/agents.config-DfIJAGcd.js +1 -0
- package/dist/allow-from-B6dI7oz8.js +1 -0
- package/dist/allow-from-DEeVIPKS.js +1 -0
- package/dist/api-BeG0ObSq.js +1 -0
- package/dist/api-Dx8x1KTs.js +1 -0
- package/dist/api-key-rotation-BRt-vnRV.js +1 -0
- package/dist/api-key-rotation-CCH1wYVU.js +1 -0
- package/dist/api-key-rotation-D0QU-kQ9.js +1 -0
- package/dist/api-key-rotation-Di6QgXx7.js +1 -0
- package/dist/arg-split-BOqSMBuf.js +1 -0
- package/dist/arg-split-DE5RqDHq.js +1 -0
- package/dist/audio-preflight-B5o7P9qi.js +1 -0
- package/dist/audio-preflight-CxD7VCHW.js +1 -0
- package/dist/audio-preflight-DKSCBKRb.js +1 -0
- package/dist/audio-preflight-Dpk8-Bmk.js +1 -0
- package/dist/audio-transcription-runner-Bd1OZC6K.js +1 -0
- package/dist/audio-transcription-runner-D4Bp6MM7.js +1 -0
- package/dist/audio-transcription-runner-DPwmBYQj.js +1 -0
- package/dist/audio-transcription-runner-DSr6OIz1.js +1 -0
- package/dist/audit-C7RP7G_g.js +1 -0
- package/dist/audit-jkdcAUep.js +1 -0
- package/dist/audit-membership-runtime-BpRsMj5-.js +1 -0
- package/dist/audit-membership-runtime-BsfLZNBj.js +1 -0
- package/dist/audit-membership-runtime-DRHirRmx.js +1 -0
- package/dist/audit-membership-runtime-g0dEWJTp.js +1 -0
- package/dist/audit-membership-runtime-kdyToskD.js +1 -0
- package/dist/auth-choice-B7LSoXZ_.js +1 -0
- package/dist/auth-choice-CxMH4c-u.js +1 -0
- package/dist/auth-choice-DvTApGhx.js +1 -0
- package/dist/auth-choice-EQdNd7jO.js +1 -0
- package/dist/auth-choice-options-B3WQyS7I.js +1 -0
- package/dist/auth-choice-options-Dw14noox.js +1 -0
- package/dist/auth-choice-prompt-uegl56cf.js +1 -0
- package/dist/auth-choice-prompt-xYj13czb.js +1 -0
- package/dist/auth-choice.apply-helpers-B7S-PcH_.js +1 -0
- package/dist/auth-choice.apply-helpers-gaL-oSft.js +1 -0
- package/dist/auth-profiles-T8DuH3ax.js +1 -0
- package/dist/auth-token-9OTF1FmL.js +1 -0
- package/dist/auth-token-kGltuM6S.js +1 -0
- package/dist/banner-9u45RL26.js +1 -0
- package/dist/bonjour-discovery-CFZXPega.js +1 -0
- package/dist/bonjour-discovery-CjivQOxi.js +1 -0
- package/dist/boolean-Ch3DfXPy.js +1 -0
- package/dist/boolean-D15s2V33.js +1 -0
- package/dist/boolean-DypnRoRK.js +1 -0
- package/dist/brew-COcDl8CB.js +1 -0
- package/dist/brew-DDPm_HfE.js +1 -0
- package/dist/browser-cli-DQHE2iPY.js +1 -0
- package/dist/browser-cli-Dt0ds-an.js +1 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -0
- package/dist/bundled/bootstrap-extra-files/handler.js +1 -0
- package/dist/bundled/command-logger/handler.js +1 -0
- package/dist/bundled/session-memory/handler.js +1 -0
- package/dist/call-B8Fb4_oh.js +1 -0
- package/dist/call-CqoMqP5b.js +1 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +1705 -2
- package/dist/channel-account-context-BMPAMZEv.js +1 -0
- package/dist/channel-account-context-DAcarnqW.js +1 -0
- package/dist/channel-activity-B04WbrrK.js +1 -0
- package/dist/channel-activity-BBrgoad1.js +1 -0
- package/dist/channel-activity-CgbOWaay.js +1 -0
- package/dist/channel-activity-YIMhOAUo.js +1 -0
- package/dist/channel-activity-YjYNzCpJ.js +1 -0
- package/dist/channel-options-CEIzjOno.js +1 -0
- package/dist/channel-options-D2syI791.js +1 -0
- package/dist/channel-selection-BBeE1TmB.js +1 -0
- package/dist/channel-selection-CbNtbAEf.js +1 -0
- package/dist/channel-web-BrElpZAc.js +1 -0
- package/dist/channel-web-CxHbET4B.js +1 -0
- package/dist/channels/plugins/actions/discord.js +1 -0
- package/dist/channels/plugins/actions/signal.js +1 -0
- package/dist/channels/plugins/actions/telegram.js +1 -0
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +1 -0
- package/dist/channels-cli-BmAJuuRs.js +1 -0
- package/dist/channels-cli-Dgosczr6.js +1 -0
- package/dist/channels-status-issues-8eFrGKyf.js +1 -0
- package/dist/channels-status-issues-PRgOT90w.js +1 -0
- package/dist/chat-envelope-Bznn2SoS.js +1 -0
- package/dist/chat-envelope-HVpKusFc.js +1 -0
- package/dist/clack-prompter-DBPdGdqp.js +1 -0
- package/dist/clack-prompter-Dq0aY6iM.js +1 -0
- package/dist/clawbot-cli-CgS7TkEx.js +1 -0
- package/dist/clawbot-cli-DZ2K0OTk.js +1 -0
- package/dist/cleanup-utils-BWm70DoD.js +1 -0
- package/dist/cleanup-utils-D-RhEX6F.js +1 -0
- package/dist/cli-BcnoCo4z.js +1 -0
- package/dist/cli-D8T2tphD.js +1 -0
- package/dist/cli-utils-BY7dLMFy.js +1 -0
- package/dist/cli-utils-BleB1eys.js +1 -0
- package/dist/clipboard-Bk8cviBt.js +1 -0
- package/dist/clipboard-CKT_VIkG.js +1 -0
- package/dist/cmd-argv-BBT5l8AV.js +1 -0
- package/dist/cmd-argv-Bh-KpaZ0.js +1 -0
- package/dist/command-format-BbDT1tlm.js +1 -0
- package/dist/command-format-CLxIPuLR.js +1 -0
- package/dist/command-options-BpOUDl2S.js +1 -0
- package/dist/command-options-Bq5nQxz6.js +1 -0
- package/dist/command-poll-backoff-BZLHYB2k.js +1 -0
- package/dist/command-poll-backoff-Cww_r-24.js +1 -0
- package/dist/command-poll-backoff-Df6cOQrX.js +1 -0
- package/dist/command-poll-backoff-endAPdwn.js +1 -0
- package/dist/command-registry-CfuXCRwV.js +1 -0
- package/dist/command-secret-targets-BVN3kiT9.js +1 -0
- package/dist/command-secret-targets-BlN-J_fA.js +1 -0
- package/dist/commands-CGpM84iR.js +1 -0
- package/dist/commands-Dy7duWlt.js +1 -0
- package/dist/commands-registry-B1x54ukc.js +1 -0
- package/dist/commands-registry-Cpl4QnG4.js +1 -0
- package/dist/commands-registry-D40KqYOm.js +1 -0
- package/dist/commands-registry-SeddSmFK.js +1 -0
- package/dist/compact-Dg66DXx_.js +1 -0
- package/dist/completion-cli-BZi4nuQb.js +1 -0
- package/dist/completion-cli-C40TWdsv.js +1 -0
- package/dist/config-BqW5S1xL.js +1 -0
- package/dist/config-D12ZLKqh.js +1 -0
- package/dist/config-cli-1ojSLwAj.js +1 -0
- package/dist/config-cli-CBte2b1h.js +1 -0
- package/dist/config-guard-BTNXbWoO.js +1 -0
- package/dist/config-guard-sYYx9zEF.js +1 -0
- package/dist/config-validation-C1La_IZU.js +1 -0
- package/dist/config-validation-DviYxW8Y.js +1 -0
- package/dist/configure-DJrNDEpR.js +1 -0
- package/dist/configure-kod4tmZa.js +1 -0
- package/dist/connection-auth-B_Uk6Vk8.js +1 -0
- package/dist/connection-auth-C8iru0UB.js +1 -0
- package/dist/context-window-guard-7crlatf9.js +1 -0
- package/dist/context-window-guard-CPChk363.js +1 -0
- package/dist/control-ui-assets-BIa0GGDg.js +1 -0
- package/dist/control-ui-assets-CTHGGgaX.js +1 -0
- package/dist/cron-cli-Dha16Lo-.js +1 -0
- package/dist/cron-cli-QHS2pKZ_.js +1 -0
- package/dist/daemon-cli-BuXTzSnU.js +1 -0
- package/dist/daemon-cli-DOTKuS7d.js +1 -0
- package/dist/daemon-cli.js +1 -0
- package/dist/daemon-install-C30rBssi.js +1 -0
- package/dist/daemon-install-HrqlOCrc.js +1 -0
- package/dist/daemon-install-plan.shared-CfA37Ut_.js +1 -0
- package/dist/daemon-install-plan.shared-Dx3DBXCG.js +1 -0
- package/dist/daemon-runtime-DHiDbRuC.js +1 -0
- package/dist/daemon-runtime-VcpeBRJV.js +1 -0
- package/dist/dangerous-name-matching-BOmvAibz.js +1 -0
- package/dist/dangerous-name-matching-DtllRqBD.js +1 -0
- package/dist/dangerous-tools-CFRYQJ6V.js +1 -0
- package/dist/dangerous-tools-oYCu5wfC.js +1 -0
- package/dist/deliver-56mQkDw3.js +1 -0
- package/dist/deliver-BFQ4Zx9z.js +1 -0
- package/dist/deliver-BHuhHfkH.js +1 -0
- package/dist/deliver-ClBkV2eD.js +1 -0
- package/dist/delivery-queue-CKbauSFq.js +1 -0
- package/dist/delivery-queue-nkPJu0fY.js +1 -0
- package/dist/device-pairing-CTFpaTrD.js +1 -0
- package/dist/device-pairing-QTK0dod3.js +1 -0
- package/dist/devices-cli-Ckxd0k0I.js +1 -0
- package/dist/devices-cli-Db36mBHq.js +1 -0
- package/dist/diagnostic-BrE4lMIf.js +1 -0
- package/dist/diagnostic-CDxNevIQ.js +1 -0
- package/dist/diagnostic-DOzHPnht.js +1 -0
- package/dist/diagnostic-DQq4Bwrs.js +1 -0
- package/dist/diagnostics-BgbeL9KE.js +1 -0
- package/dist/diagnostics-Cdctg9K_.js +1 -0
- package/dist/directory-cli-DDTaUkjW.js +1 -0
- package/dist/directory-cli-_gTFSHMW.js +1 -0
- package/dist/dns-cli--4PwtR2Y.js +1 -0
- package/dist/dns-cli-C4DwKquN.js +1 -0
- package/dist/docs-cli-Cdw9Iz9a.js +1 -0
- package/dist/docs-cli-ClD2UyX1.js +1 -0
- package/dist/doctor-completion-BJ6steqx.js +1 -0
- package/dist/doctor-completion-DMJhfrtC.js +1 -0
- package/dist/doctor-config-flow-D4F3mz4h.js +1 -0
- package/dist/doctor-config-flow-DnOyVZhQ.js +1 -0
- package/dist/enable-BhD84GhD.js +1 -0
- package/dist/enable-Ccf9wSM8.js +1 -0
- package/dist/entry-status-CCwwKO43.js +1 -0
- package/dist/entry-status-CoXkbJcX.js +1 -0
- package/dist/entry.js +1 -0
- package/dist/env-D7wNuBx1.js +1 -0
- package/dist/env-overrides-DHtB4kK3.js +1 -0
- package/dist/env-overrides-DXJbFrwI.js +1 -0
- package/dist/errors-6SQWM9dj.js +1 -0
- package/dist/errors-Bunti32V.js +1 -0
- package/dist/exec-B3eleY5O.js +1 -0
- package/dist/exec-DHqLtFYt.js +1 -0
- package/dist/exec-approvals-BXO9Cezj.js +1 -0
- package/dist/exec-approvals-BpBNEy6i.js +1 -0
- package/dist/exec-approvals-allowlist-CE3nYh0K.js +1 -0
- package/dist/exec-approvals-allowlist-D8mN7nxV.js +1 -0
- package/dist/exec-approvals-cli-CUcuN63y.js +1 -0
- package/dist/exec-approvals-cli-CxUGD08t.js +1 -0
- package/dist/exec-safe-bin-runtime-policy-Dt0GchLp.js +1 -0
- package/dist/exec-safe-bin-runtime-policy-dcCS_Adf.js +1 -0
- package/dist/fetch-B9tORjG8.js +1 -0
- package/dist/fetch-BJT3BrkJ.js +1 -0
- package/dist/fetch-B_wRifvZ.js +1 -0
- package/dist/fetch-Bn0mWg6a.js +1 -0
- package/dist/fetch-CQaNr5J1.js +1 -0
- package/dist/fetch-Ce-scEU-.js +1 -0
- package/dist/fetch-D0rZDHKO.js +1 -0
- package/dist/fetch-DHo17YmK.js +1 -0
- package/dist/fetch-Dh-apy46.js +1 -0
- package/dist/fetch-Dikjvc5M.js +1 -0
- package/dist/fetch-DsjPfQlp.js +1 -0
- package/dist/fetch-_g8lZ8K8.js +1 -0
- package/dist/fetch-guard-BrTtJw7h.js +1 -0
- package/dist/fetch-guard-D10s0raB.js +1 -0
- package/dist/fetch-guard-DPdY0NXR.js +1 -0
- package/dist/fetch-guard-cu7DGSRF.js +1 -0
- package/dist/fetch-hy0JKSsm.js +1 -0
- package/dist/fetch-timeout-CdYxWG9w.js +1 -0
- package/dist/fetch-timeout-Cj8_oAls.js +1 -0
- package/dist/fetch-timeout-DoOI_izT.js +1 -0
- package/dist/fetch-timeout-u8g99Ax0.js +1 -0
- package/dist/format-Bn1bwJKX.js +1 -0
- package/dist/format-Ce7I7s-k.js +1 -0
- package/dist/format-duration-C8AzNqKh.js +1 -0
- package/dist/format-duration-D5AMtmHa.js +1 -0
- package/dist/format-relative-B9pSIdGe.js +1 -0
- package/dist/format-relative-DkMjYy7z.js +1 -0
- package/dist/frontmatter-BkZkwkVO.js +1 -0
- package/dist/frontmatter-C7mzDNxd.js +1 -0
- package/dist/frontmatter-CzpfPBFl.js +1 -0
- package/dist/gateway-cli-CKu0FA7D.js +1 -0
- package/dist/gateway-cli-C_s9eMlC.js +1 -0
- package/dist/gateway-install-token-BCnuZeh1.js +1 -0
- package/dist/gateway-install-token-DiDvDPJQ.js +1 -0
- package/dist/gateway-rpc-iFvDyHYd.js +1 -0
- package/dist/gateway-rpc-tEEvY0kH.js +1 -0
- package/dist/github-copilot-token-C79yeDKS.js +1 -0
- package/dist/github-copilot-token-DGYAlOmV.js +1 -0
- package/dist/github-copilot-token-DePP-lIf.js +1 -0
- package/dist/github-copilot-token-wm6mbypz.js +1 -0
- package/dist/gmail-setup-utils-CYOH3zzx.js +1 -0
- package/dist/gmail-setup-utils-S-MyEGuj.js +1 -0
- package/dist/group-access-BHKVOhrj.js +1 -0
- package/dist/group-access-D2DOYMfr.js +1 -0
- package/dist/health-BgOggK9k.js +1 -0
- package/dist/health-PaRHFItm.js +1 -0
- package/dist/health-format-B1nj3Wfn.js +1 -0
- package/dist/health-format-VBr6LEpt.js +1 -0
- package/dist/heartbeat-visibility-BQ_esv2m.js +1 -0
- package/dist/heartbeat-visibility-q74UdY8O.js +1 -0
- package/dist/help-format-B4aEI7V9.js +1 -0
- package/dist/help-format-BRbF_INg.js +1 -0
- package/dist/helpers-COz1ghcB.js +1 -0
- package/dist/helpers-Cp8gcO6u.js +1 -0
- package/dist/hooks-cli-BzyzTNBx.js +1 -0
- package/dist/hooks-cli-CsBrScq0.js +1 -0
- package/dist/hooks-status-BHt-Xvh4.js +1 -0
- package/dist/hooks-status-CRJ4J0ZW.js +1 -0
- package/dist/image-BkWwI54C.js +1 -0
- package/dist/image-CcVQg-YN.js +1 -0
- package/dist/image-Cm1RUBqD.js +1 -0
- package/dist/image-DsoO5VP5.js +1 -0
- package/dist/index.js +1 -0
- package/dist/inspect-BKV-I1UE.js +1 -0
- package/dist/inspect-z59cgmYc.js +1 -0
- package/dist/install-safe-path-C6kc_8NW.js +1 -0
- package/dist/install-safe-path-iesxijn2.js +1 -0
- package/dist/installs-BNeI_oML.js +1 -0
- package/dist/installs-C1xQLuby.js +1 -0
- package/dist/ipv4-BOuNtoGn.js +1 -0
- package/dist/ipv4-CWdaEiVH.js +1 -0
- package/dist/ir-BF0M2kGp.js +1 -0
- package/dist/ir-D8Hh84ab.js +1 -0
- package/dist/ir-DBWscfBd.js +1 -0
- package/dist/ir-Dk7OQ4bA.js +1 -0
- package/dist/is-main-DG5ueqhF.js +1 -0
- package/dist/issue-format-BT7cQEt3.js +1 -0
- package/dist/issue-format-C_lNzrKa.js +1 -0
- package/dist/kill-tree-B3g7HrAO.js +1 -0
- package/dist/lifecycle-core-D9KNCvxY.js +1 -0
- package/dist/lifecycle-core-LM5UUUB1.js +1 -0
- package/dist/line/accounts.js +1 -0
- package/dist/line/send.js +1 -0
- package/dist/line/template-messages.js +1 -0
- package/dist/links-CBnmRP9D.js +1 -0
- package/dist/links-CySwdMcF.js +1 -0
- package/dist/llm-slug-generator.js +1 -0
- package/dist/load-options-BsOW74dp.js +1 -0
- package/dist/load-options-C7dLuybp.js +1 -0
- package/dist/load-options-DV4j6Aqb.js +1 -0
- package/dist/load-options-Dwt0CeEg.js +1 -0
- package/dist/local-roots-6waH0SZ0.js +1 -0
- package/dist/logger-5W0OocJW.js +1 -0
- package/dist/logger-Bl8URnrW.js +1 -0
- package/dist/logger-DwWqfo66.js +1 -0
- package/dist/logger-kQAOe3qp.js +1 -0
- package/dist/logging-Dqe9dxSX.js +1 -0
- package/dist/logging-tYw1NbJd.js +1 -0
- package/dist/login-BOlqRyr0.js +1 -0
- package/dist/login-CkWesqf_.js +1 -0
- package/dist/login-Do_NA1Je.js +1 -0
- package/dist/login-op9S8yqv.js +1 -0
- package/dist/login-qr-B6rxvoTS.js +1 -0
- package/dist/login-qr-BGH9zmhw.js +1 -0
- package/dist/login-qr-CiENvgog.js +1 -0
- package/dist/login-qr-DsV-lxFd.js +1 -0
- package/dist/login-qr-QcDMg23y.js +1 -0
- package/dist/logs-cli-B4eUg_87.js +1 -0
- package/dist/logs-cli-BA3Aso8a.js +1 -0
- package/dist/manager-4Y9fRgdw.js +1 -0
- package/dist/manager-C2YW7Hkq.js +1 -0
- package/dist/manager-Dtd_loL8.js +1 -0
- package/dist/manager-M1GKhLUC.js +1 -0
- package/dist/memory-cli-XaxtBQm1.js +1 -0
- package/dist/memory-cli-jhzJ3as7.js +1 -0
- package/dist/model-catalog-C1kpjR75.js +1 -0
- package/dist/model-catalog-COVzoZD9.js +1 -0
- package/dist/model-param-b-B0r2cPDw.js +1 -0
- package/dist/model-param-b-BqIr5rY5.js +1 -0
- package/dist/model-picker-D3ZSpr0i.js +1 -0
- package/dist/model-picker-bZNuI66U.js +1 -0
- package/dist/model-selection-B5JsBS9D.js +1 -0
- package/dist/model-selection-BlC_rXAN.js +1 -0
- package/dist/model-selection-vfhBuN9O.js +1 -0
- package/dist/models-C_Vg3Cty.js +1 -0
- package/dist/models-cli-CDZliTXq.js +1 -0
- package/dist/models-cli-bGr8jwAb.js +1 -0
- package/dist/models-config-CdMhNxKV.js +1 -0
- package/dist/models-config-_htt7eY5.js +1 -0
- package/dist/mutable-allowlist-detectors-C4rNVag8.js +1 -0
- package/dist/mutable-allowlist-detectors-CL0qe54J.js +1 -0
- package/dist/node-cli-5lYbDZ70.js +1 -0
- package/dist/node-cli-Br04Qmqo.js +1 -0
- package/dist/node-command-policy-CejeQemH.js +1 -0
- package/dist/node-command-policy-CqXhdnHh.js +1 -0
- package/dist/node-commands-8GBOiktk.js +1 -0
- package/dist/node-commands-DdkziOTx.js +1 -0
- package/dist/node-resolve-B3BJbmQX.js +1 -0
- package/dist/node-resolve-DLZf3-1V.js +1 -0
- package/dist/node-service-BRfrNp8l.js +1 -0
- package/dist/node-service-C0bl7jcZ.js +1 -0
- package/dist/node-shell-DyOfwHrh.js +1 -0
- package/dist/nodes-cli-8By8--bW.js +1 -0
- package/dist/nodes-cli-zq41EwJN.js +1 -0
- package/dist/nodes-screen-DECgxo6A.js +1 -0
- package/dist/note-D4GAwgha.js +1 -0
- package/dist/note-Dp-d_utk.js +1 -0
- package/dist/npm-pack-install-B23L-AtF.js +1 -0
- package/dist/npm-pack-install-C0te3Oap.js +1 -0
- package/dist/npm-resolution-BnJGLwhi.js +1 -0
- package/dist/npm-resolution-DWPloph4.js +1 -0
- package/dist/oauth-env-DAamJ1oz.js +1 -0
- package/dist/oauth-env-DSLBTWb1.js +1 -0
- package/dist/oauth-tls-preflight-BSBRDIfC.js +1 -0
- package/dist/oauth-tls-preflight-ByNjbUR5.js +1 -0
- package/dist/ollama-setup-BMEKWyIE.js +1 -0
- package/dist/ollama-setup-DlwS6Gl-.js +1 -0
- package/dist/onboard-B0BNCQaO.js +1 -0
- package/dist/onboard-CjVhdaiR.js +1 -0
- package/dist/onboard-channels-BMIOddLN.js +1 -0
- package/dist/onboard-channels-CZK_7xMR.js +1 -0
- package/dist/onboard-config-B7U20YRw.js +1 -0
- package/dist/onboard-config-DS9dUv8M.js +1 -0
- package/dist/onboard-custom-B03SlEHB.js +1 -0
- package/dist/onboard-custom-Bl0y8c-g.js +1 -0
- package/dist/onboard-helpers-PGl5bVPE.js +1 -0
- package/dist/onboard-helpers-zwybUJWu.js +1 -0
- package/dist/onboard-hooks-CERzXObm.js +1 -0
- package/dist/onboard-hooks-gQ3sxBNi.js +1 -0
- package/dist/onboard-provider-auth-flags-CqbipO7D.js +1 -0
- package/dist/onboard-provider-auth-flags-Dvwzdz37.js +1 -0
- package/dist/onboard-remote-BOpIRdDu.js +1 -0
- package/dist/onboard-remote-DPU-H_2O.js +1 -0
- package/dist/onboard-search-f2tJD4hg.js +1 -0
- package/dist/onboard-search-fslKKhyg.js +1 -0
- package/dist/onboard-skills-BMAJs6ly.js +1 -0
- package/dist/onboard-skills-CMSQc2Mm.js +1 -0
- package/dist/onboarding-B6ixWwgp.js +1 -0
- package/dist/onboarding-ouEqUuUr.js +1 -0
- package/dist/onboarding.finalize-Bgat5Npc.js +1 -0
- package/dist/onboarding.finalize-DsMVlTcH.js +1 -0
- package/dist/onboarding.gateway-config-BtLDJWJ2.js +1 -0
- package/dist/onboarding.gateway-config-y3pqsL9i.js +1 -0
- package/dist/onboarding.secret-input-BsBgh8Tc.js +1 -0
- package/dist/onboarding.secret-input-kO5OzYC7.js +1 -0
- package/dist/openai-codex-model-default-DuE2_wN7.js +1 -0
- package/dist/openai-codex-model-default-yVfRw-Mm.js +1 -0
- package/dist/openai-model-default-Bl8MHPb6.js +1 -0
- package/dist/openai-model-default-DJObMvLJ.js +1 -0
- package/dist/openclaw-exec-env-BWbOu_YC.js +1 -0
- package/dist/openclaw-root-CnsBf6ZU.js +1 -0
- package/dist/openclaw-root-D_0Q6--h.js +1 -0
- package/dist/outbound-BOSIEiEY.js +1 -0
- package/dist/outbound-BtUeDLjU.js +1 -0
- package/dist/outbound-Bx2Z2aYK.js +1 -0
- package/dist/outbound-Bz8bbrMI.js +1 -0
- package/dist/outbound-attachment-B7wMxwj6.js +1 -0
- package/dist/outbound-attachment-BgAe99RM.js +1 -0
- package/dist/outbound-attachment-Dds8xirj.js +1 -0
- package/dist/outbound-attachment-DqEKghQp.js +1 -0
- package/dist/pairing-cli-Bya9M-I_.js +1 -0
- package/dist/pairing-cli-D2JEhufv.js +1 -0
- package/dist/pairing-labels-BUU_-70B.js +1 -0
- package/dist/pairing-labels-D-kzQEL2.js +1 -0
- package/dist/pairing-store-BH-FTYkn.js +1 -0
- package/dist/pairing-store-Cg2UxreQ.js +1 -0
- package/dist/pairing-token-BjYBuREl.js +1 -0
- package/dist/pairing-token-DAR7V7FJ.js +1 -0
- package/dist/parse-duration-XTjMKl8s.js +1 -0
- package/dist/parse-finite-number-DqzUM-_s.js +1 -0
- package/dist/parse-finite-number-dBmDLLKL.js +1 -0
- package/dist/parse-log-line-CsYLg7Qu.js +1 -0
- package/dist/parse-log-line-NV-cipB_.js +1 -0
- package/dist/parse-port-Bv1Y9Wk5.js +1 -0
- package/dist/parse-port-JVwkxcZ8.js +1 -0
- package/dist/parse-timeout-DWSGfCkQ.js +1 -0
- package/dist/parse-timeout-Dx4QnVzo.js +1 -0
- package/dist/path-alias-guards-kY_ZbWs-.js +1 -0
- package/dist/path-alias-guards-mvyLCPlN.js +1 -0
- package/dist/path-env-BPd1Yd-i.js +1 -0
- package/dist/path-env-emdAQejM.js +1 -0
- package/dist/path-safety-BukYK8Kd.js +1 -0
- package/dist/path-safety-DaaMJFdt.js +1 -0
- package/dist/paths-B4IRk3wi.js +1 -0
- package/dist/paths-BfjJY2VL.js +1 -0
- package/dist/paths-BjD3T_xq.js +1 -0
- package/dist/paths-BpQOWYiT.js +1 -0
- package/dist/paths-CChBdtE8.js +1 -0
- package/dist/paths-CrCoPIVK.js +1 -0
- package/dist/paths-piJASC5k.js +1 -0
- package/dist/paths-yLEk_25I.js +1 -0
- package/dist/pi-embedded-BZSn84Bh.js +1 -0
- package/dist/pi-embedded-Dsz7p3MF.js +1 -0
- package/dist/pi-model-discovery-BbD1YJNx.js +1 -0
- package/dist/pi-model-discovery-CpjYoBQf.js +1 -0
- package/dist/pi-model-discovery-DeQdHV8O.js +1 -0
- package/dist/pi-model-discovery-Dps1PPWz.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-DseAq0gm.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-KKGILAuK.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-Pck2WdIO.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-ZzMJQ1BP.js +1 -0
- package/dist/pi-tools.policy-D40r0HmD.js +1 -0
- package/dist/plugin-auto-enable-DpVL6-ES.js +1 -0
- package/dist/plugin-auto-enable-NzmNh4oU.js +1 -0
- package/dist/plugin-install-plan-BobX0y9S.js +1 -0
- package/dist/plugin-install-plan-NvDGp0d8.js +1 -0
- package/dist/plugin-registry-C6dY-Et7.js +1 -0
- package/dist/plugin-registry-CIBiHZH1.js +1 -0
- package/dist/plugin-sdk/account-id.cjs +1 -0
- package/dist/plugin-sdk/account-id.js +1 -0
- package/dist/plugin-sdk/acpx.cjs +1 -0
- package/dist/plugin-sdk/acpx.js +1 -0
- package/dist/plugin-sdk/active-listener-BApFQlQn.js +1 -0
- package/dist/plugin-sdk/active-listener-BETopzG5.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BEcmvyxh.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BZPPbsNy.cjs +1 -0
- package/dist/plugin-sdk/active-listener-B_Mxemq7.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BgW_qfd3.js +1 -0
- package/dist/plugin-sdk/active-listener-Coet66pF.cjs +1 -0
- package/dist/plugin-sdk/active-listener-CvML9qVF.js +1 -0
- package/dist/plugin-sdk/active-listener-DuO6KMXJ.js +1 -0
- package/dist/plugin-sdk/active-listener-DymzfmOG.cjs +1 -0
- package/dist/plugin-sdk/active-listener-ILBdBHMv.js +1 -0
- package/dist/plugin-sdk/active-listener-gRRIfN1q.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-Bj1A9Slo.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-CFPNzksf.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-CXY0AyM1.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-ClIwV8yq.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-D5Nr1xl3.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-DDCwA0KM.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-DHMvXm70.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-DaFFZfk5.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-DcREl_0x.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-X-5Fb7av.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-_VfXYfHS.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-wFUVOOfM.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-B1MP5_bc.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BETx142T.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BGRLhCLc.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BNICfOY5.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BV3Cav8M.js +1 -0
- package/dist/plugin-sdk/audio-preflight-BmO72Cqr.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BpE8wFQc.js +1 -0
- package/dist/plugin-sdk/audio-preflight-CTAafaiH.js +1 -0
- package/dist/plugin-sdk/audio-preflight-D82aewIt.js +1 -0
- package/dist/plugin-sdk/audio-preflight-DmzxEaq3.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-DrSIYRnD.js +1 -0
- package/dist/plugin-sdk/audio-preflight-SZZoA2Ff.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-B54MyF1_.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BIqM5H5q.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BLAxZL-U.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BVmaaA2k.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BdY-TMcc.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-By3lSLub.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-CH5CoZrF.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-CMsp7bhn.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-ClGibmMi.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-QfEC19vE.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-g7L0m-Z5.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-pVTD93vq.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +1 -0
- package/dist/plugin-sdk/bluebubbles.cjs +1 -0
- package/dist/plugin-sdk/bluebubbles.js +1 -0
- package/dist/plugin-sdk/channel-activity-BGK-Bj2_.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-BRHvpV0C.js +1 -0
- package/dist/plugin-sdk/channel-activity-CKfWFchu.js +1 -0
- package/dist/plugin-sdk/channel-activity-CLUi31fX.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CVOp-PL4.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CgXnZ0GC.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CmYpOPAn.js +1 -0
- package/dist/plugin-sdk/channel-activity-CwaMf9qT.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-D5D5tBWf.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-D7tpmatp.js +1 -0
- package/dist/plugin-sdk/channel-activity-DpxSOlXF.js +1 -0
- package/dist/plugin-sdk/channel-activity-spvDzlTl.js +1 -0
- package/dist/plugin-sdk/channel-web-4ZQVqsrt.js +1 -0
- package/dist/plugin-sdk/channel-web-9zn1Itpg.cjs +1 -0
- package/dist/plugin-sdk/channel-web-BrB00HKH.js +1 -0
- package/dist/plugin-sdk/channel-web-DN5La-Ol.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-5lStNoKW.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-C8wnXqNa.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-Cnr6PvIw.js +1 -0
- package/dist/plugin-sdk/commands-registry-CtYCWfuM.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-D2gv242l.js +1 -0
- package/dist/plugin-sdk/commands-registry-DI2vPscP.js +1 -0
- package/dist/plugin-sdk/commands-registry-DcBvmwSU.js +1 -0
- package/dist/plugin-sdk/commands-registry-DkUhCIDk.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-DsMbmie-.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-MCsWR5Vf.js +1 -0
- package/dist/plugin-sdk/commands-registry-SHZVq_qf.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-kRjFifgj.js +1 -0
- package/dist/plugin-sdk/common-B4iFXuoZ.cjs +1 -0
- package/dist/plugin-sdk/common-B6fDMl_i.js +1 -0
- package/dist/plugin-sdk/compat.cjs +1 -0
- package/dist/plugin-sdk/compat.js +1 -0
- package/dist/plugin-sdk/config-ByA2hluR.js +1 -0
- package/dist/plugin-sdk/config-rBz8C_Hi.cjs +1 -0
- package/dist/plugin-sdk/copilot-proxy.cjs +1 -0
- package/dist/plugin-sdk/copilot-proxy.js +1 -0
- package/dist/plugin-sdk/core.cjs +1 -0
- package/dist/plugin-sdk/core.js +1 -0
- package/dist/plugin-sdk/deliver-B0fB4hAV.js +1 -0
- package/dist/plugin-sdk/deliver-BOLmjIJ3.js +1 -0
- package/dist/plugin-sdk/deliver-BrfVwkYz.cjs +1 -0
- package/dist/plugin-sdk/deliver-C-tChWTI.cjs +1 -0
- package/dist/plugin-sdk/deliver-CjQPkWS-.cjs +1 -0
- package/dist/plugin-sdk/deliver-D1P0FNTu.js +1 -0
- package/dist/plugin-sdk/deliver-DCrO9mvv.cjs +1 -0
- package/dist/plugin-sdk/deliver-DQLekoj2.cjs +1 -0
- package/dist/plugin-sdk/deliver-DkfCVM78.js +1 -0
- package/dist/plugin-sdk/deliver-Dkh3lqXR.js +1 -0
- package/dist/plugin-sdk/deliver-DsFtXFyr.cjs +1 -0
- package/dist/plugin-sdk/deliver-vYe_sYOL.js +1 -0
- package/dist/plugin-sdk/device-pair.cjs +1 -0
- package/dist/plugin-sdk/device-pair.js +1 -0
- package/dist/plugin-sdk/diagnostic-8iX73nz_.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-CLUtpxAp.js +1 -0
- package/dist/plugin-sdk/diagnostic-CVS4k9hh.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-CkePwN5F.js +1 -0
- package/dist/plugin-sdk/diagnostic-Cu1PGj0E.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-D0oCfBju.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-D7A9cQYf.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-DGLX0zXU.js +1 -0
- package/dist/plugin-sdk/diagnostic-DXscFT8t.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-Efe4b81B.js +1 -0
- package/dist/plugin-sdk/diagnostic-EqHqw9xo.js +1 -0
- package/dist/plugin-sdk/diagnostic-vsjHZ_fY.js +1 -0
- package/dist/plugin-sdk/diagnostics-otel.cjs +1 -0
- package/dist/plugin-sdk/diagnostics-otel.js +1 -0
- package/dist/plugin-sdk/diffs.cjs +1 -0
- package/dist/plugin-sdk/diffs.js +1 -0
- package/dist/plugin-sdk/discord.cjs +1 -0
- package/dist/plugin-sdk/discord.js +1 -0
- package/dist/plugin-sdk/dispatch-5v3v8zzA.js +1 -0
- package/dist/plugin-sdk/dispatch-B6UbZCpL.cjs +1 -0
- package/dist/plugin-sdk/dispatch-BYlcmJ9u.js +1 -0
- package/dist/plugin-sdk/dispatch-C2YTqGlf.js +1 -0
- package/dist/plugin-sdk/dispatch-CNy3g9ma.cjs +1 -0
- package/dist/plugin-sdk/dispatch-DCSwqteL.js +1 -0
- package/dist/plugin-sdk/dispatch-DHbSBeFJ.js +1 -0
- package/dist/plugin-sdk/dispatch-DK5ub8qa.cjs +1 -0
- package/dist/plugin-sdk/dispatch-SWyfAZT0.cjs +1 -0
- package/dist/plugin-sdk/dispatch-mR2vLkGa.cjs +1 -0
- package/dist/plugin-sdk/feishu.cjs +1 -0
- package/dist/plugin-sdk/feishu.js +1 -0
- package/dist/plugin-sdk/fetch-7Iq9POda.js +1 -0
- package/dist/plugin-sdk/fetch-B1GR6-u4.js +1 -0
- package/dist/plugin-sdk/fetch-B27H-XCf.js +1 -0
- package/dist/plugin-sdk/fetch-BMYDLRWo.js +1 -0
- package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +1 -0
- package/dist/plugin-sdk/fetch-BVEVk5YF.js +1 -0
- package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +1 -0
- package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +1 -0
- package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +1 -0
- package/dist/plugin-sdk/fetch-BtZY623f.js +1 -0
- package/dist/plugin-sdk/fetch-C-HRWp5R.js +1 -0
- package/dist/plugin-sdk/fetch-C3LEMysf.js +1 -0
- package/dist/plugin-sdk/fetch-CCLWsYaQ.js +1 -0
- package/dist/plugin-sdk/fetch-CZewCAvu.cjs +1 -0
- package/dist/plugin-sdk/fetch-ClKErpni.cjs +1 -0
- package/dist/plugin-sdk/fetch-DBRI0sKI.js +1 -0
- package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +1 -0
- package/dist/plugin-sdk/fetch-DUMEaqum.cjs +1 -0
- package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +1 -0
- package/dist/plugin-sdk/fetch-J0IzopiJ.js +1 -0
- package/dist/plugin-sdk/fetch-guard-8I7EHbDM.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-CIJUkBIL.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-CY03i4gu.js +1 -0
- package/dist/plugin-sdk/fetch-guard-Cz-cgYmR.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DB85MORy.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DE9BslxX.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DLNzldn9.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DSvAbvSx.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DXe8oqEE.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DY9jpsXo.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DbOZYxyN.js +1 -0
- package/dist/plugin-sdk/fetch-guard-_fifU0fX.js +1 -0
- package/dist/plugin-sdk/fetch-lw-aF17e.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +1 -0
- package/dist/plugin-sdk/google-gemini-cli-auth.cjs +1 -0
- package/dist/plugin-sdk/google-gemini-cli-auth.js +1 -0
- package/dist/plugin-sdk/googlechat.cjs +1 -0
- package/dist/plugin-sdk/googlechat.js +1 -0
- package/dist/plugin-sdk/image-B6HEHWlJ.js +1 -0
- package/dist/plugin-sdk/image-Bte8cr4F.js +1 -0
- package/dist/plugin-sdk/image-BxafJgQ6.cjs +1 -0
- package/dist/plugin-sdk/image-CDI5SqeR.js +1 -0
- package/dist/plugin-sdk/image-CTgwucug.cjs +1 -0
- package/dist/plugin-sdk/image-CWnsS03L.js +1 -0
- package/dist/plugin-sdk/image-CoksjGBL.cjs +1 -0
- package/dist/plugin-sdk/image-CuOIoxl2.cjs +1 -0
- package/dist/plugin-sdk/image-DJyEMzkq.cjs +1 -0
- package/dist/plugin-sdk/image-DegWnAZU.cjs +1 -0
- package/dist/plugin-sdk/image-TCSQZpr6.js +1 -0
- package/dist/plugin-sdk/image-aG-5S1vd.js +1 -0
- package/dist/plugin-sdk/imessage.cjs +1 -0
- package/dist/plugin-sdk/imessage.js +1 -0
- package/dist/plugin-sdk/index.cjs +1 -0
- package/dist/plugin-sdk/index.js +1 -0
- package/dist/plugin-sdk/ir-8rDh7div.js +1 -0
- package/dist/plugin-sdk/ir-Bh6lKGdS.js +1 -0
- package/dist/plugin-sdk/ir-C3VNqnc2.cjs +1 -0
- package/dist/plugin-sdk/ir-CZOtKajq.cjs +1 -0
- package/dist/plugin-sdk/ir-CveCWs8q.cjs +1 -0
- package/dist/plugin-sdk/ir-DAxY-7c1.cjs +1 -0
- package/dist/plugin-sdk/ir-DSuLr2UE.cjs +1 -0
- package/dist/plugin-sdk/ir-DanxCjD-.cjs +1 -0
- package/dist/plugin-sdk/ir-Dgc6qZMX.js +1 -0
- package/dist/plugin-sdk/ir-OBi5zaEW.js +1 -0
- package/dist/plugin-sdk/ir-hQ6EW92h.js +1 -0
- package/dist/plugin-sdk/ir-ynWQeZD9.js +1 -0
- package/dist/plugin-sdk/irc.cjs +1 -0
- package/dist/plugin-sdk/irc.js +1 -0
- package/dist/plugin-sdk/keyed-async-queue.cjs +1 -0
- package/dist/plugin-sdk/keyed-async-queue.js +1 -0
- package/dist/plugin-sdk/line.cjs +1 -0
- package/dist/plugin-sdk/line.js +1 -0
- package/dist/plugin-sdk/llm-task.cjs +1 -0
- package/dist/plugin-sdk/llm-task.js +1 -0
- package/dist/plugin-sdk/load-options-B9Ss5YOO.js +1 -0
- package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +1 -0
- package/dist/plugin-sdk/load-options-BXvm8HVv.js +1 -0
- package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +1 -0
- package/dist/plugin-sdk/load-options-BcSg1ODN.js +1 -0
- package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +1 -0
- package/dist/plugin-sdk/lobster.cjs +1 -0
- package/dist/plugin-sdk/lobster.js +1 -0
- package/dist/plugin-sdk/local-roots-5udQUs81.js +1 -0
- package/dist/plugin-sdk/local-roots-BmhNPIJm.cjs +1 -0
- package/dist/plugin-sdk/local-roots-C5UoE741.cjs +1 -0
- package/dist/plugin-sdk/local-roots-Ca8KoAAp.js +1 -0
- package/dist/plugin-sdk/local-roots-CeAYfmPb.cjs +1 -0
- package/dist/plugin-sdk/local-roots-Cu7YCpql.cjs +1 -0
- package/dist/plugin-sdk/local-roots-D0yN794S.js +1 -0
- package/dist/plugin-sdk/local-roots-D4i3H0UG.cjs +1 -0
- package/dist/plugin-sdk/local-roots-DGe-SRNu.js +1 -0
- package/dist/plugin-sdk/local-roots-bWA2msT0.js +1 -0
- package/dist/plugin-sdk/local-roots-tee85Q-1.js +1 -0
- package/dist/plugin-sdk/local-roots-wTkpE7go.cjs +1 -0
- package/dist/plugin-sdk/logger-6O6OsYBL.cjs +1 -0
- package/dist/plugin-sdk/logger-BlddiV_d.cjs +1 -0
- package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +1 -0
- package/dist/plugin-sdk/logger-BtrWb0dj.js +1 -0
- package/dist/plugin-sdk/logger-C210xuWx.js +1 -0
- package/dist/plugin-sdk/logger-DJGHvDbX.js +1 -0
- package/dist/plugin-sdk/logger-DPlqYkRm.cjs +1 -0
- package/dist/plugin-sdk/logger-DUYnS-W3.cjs +1 -0
- package/dist/plugin-sdk/logger-DwWqfo66.js +1 -0
- package/dist/plugin-sdk/logger-vBDTZWl3.js +1 -0
- package/dist/plugin-sdk/login-B5IwNcl4.cjs +1 -0
- package/dist/plugin-sdk/login-BIbt7ZL_.js +1 -0
- package/dist/plugin-sdk/login-CxnDKwXC.js +1 -0
- package/dist/plugin-sdk/login-D5iTWowo.cjs +1 -0
- package/dist/plugin-sdk/login-DHE1rzB1.js +1 -0
- package/dist/plugin-sdk/login-DIPBcPQc.cjs +1 -0
- package/dist/plugin-sdk/login-DtDOozuU.js +1 -0
- package/dist/plugin-sdk/login-UrWNtI80.cjs +1 -0
- package/dist/plugin-sdk/login-VviMkBU2.js +1 -0
- package/dist/plugin-sdk/login-jQwwt6C-.js +1 -0
- package/dist/plugin-sdk/login-mGjCzJzb.cjs +1 -0
- package/dist/plugin-sdk/login-pZnnpj38.cjs +1 -0
- package/dist/plugin-sdk/login-qr-BexuTIDJ.cjs +1 -0
- package/dist/plugin-sdk/login-qr-C366Qlh-.cjs +1 -0
- package/dist/plugin-sdk/login-qr-CQY4ty0o.js +1 -0
- package/dist/plugin-sdk/login-qr-CSabEb-n.cjs +1 -0
- package/dist/plugin-sdk/login-qr-CUgNKijx.js +1 -0
- package/dist/plugin-sdk/login-qr-C_LEw1Bi.js +1 -0
- package/dist/plugin-sdk/login-qr-CcPvldsG.js +1 -0
- package/dist/plugin-sdk/login-qr-CnNGKwDR.cjs +1 -0
- package/dist/plugin-sdk/login-qr-DQm50pXk.js +1 -0
- package/dist/plugin-sdk/login-qr-DayvAWkx.js +1 -0
- package/dist/plugin-sdk/login-qr-eodIsL9V.cjs +1 -0
- package/dist/plugin-sdk/login-qr-yIJE7MmY.cjs +1 -0
- package/dist/plugin-sdk/manager-932XljTT.js +1 -0
- package/dist/plugin-sdk/manager-CGHd5p2T.js +1 -0
- package/dist/plugin-sdk/manager-CbGA_JDa.js +1 -0
- package/dist/plugin-sdk/manager-CdD7HaGW.cjs +1 -0
- package/dist/plugin-sdk/manager-CmAH_a7A.cjs +1 -0
- package/dist/plugin-sdk/manager-DIS4ywpb.cjs +1 -0
- package/dist/plugin-sdk/manager-DQ2C-2IU.cjs +1 -0
- package/dist/plugin-sdk/manager-DdvFnsT7.cjs +1 -0
- package/dist/plugin-sdk/manager-DfdDglld.js +1 -0
- package/dist/plugin-sdk/manager-MR9stU_p.js +1 -0
- package/dist/plugin-sdk/manager-WwW37IUu.js +1 -0
- package/dist/plugin-sdk/manager-gE9187gu.cjs +1 -0
- package/dist/plugin-sdk/matrix.cjs +1 -0
- package/dist/plugin-sdk/matrix.js +1 -0
- package/dist/plugin-sdk/mattermost.cjs +1 -0
- package/dist/plugin-sdk/mattermost.js +1 -0
- package/dist/plugin-sdk/memory-core.cjs +1 -0
- package/dist/plugin-sdk/memory-core.js +1 -0
- package/dist/plugin-sdk/minimax-portal-auth.cjs +1 -0
- package/dist/plugin-sdk/minimax-portal-auth.js +1 -0
- package/dist/plugin-sdk/model-auth-BpS4IWDi.cjs +1 -0
- package/dist/plugin-sdk/model-auth-BwajGuoF.cjs +1 -0
- package/dist/plugin-sdk/model-auth-C1YL9HcW.js +1 -0
- package/dist/plugin-sdk/model-auth-Cc-8H6Cu.js +1 -0
- package/dist/plugin-sdk/model-auth-Cw3fuhm_.js +1 -0
- package/dist/plugin-sdk/model-auth-CycDtQl-.js +1 -0
- package/dist/plugin-sdk/model-auth-D-7xiXhK.cjs +1 -0
- package/dist/plugin-sdk/model-auth-TFUxaK0f.cjs +1 -0
- package/dist/plugin-sdk/model-selection-BADTZM9n.cjs +1 -0
- package/dist/plugin-sdk/model-selection-DUAudCtL.js +1 -0
- package/dist/plugin-sdk/msteams.cjs +1 -0
- package/dist/plugin-sdk/msteams.js +1 -0
- package/dist/plugin-sdk/nextcloud-talk.cjs +1 -0
- package/dist/plugin-sdk/nextcloud-talk.js +1 -0
- package/dist/plugin-sdk/nostr.cjs +1 -0
- package/dist/plugin-sdk/nostr.js +1 -0
- package/dist/plugin-sdk/outbound-2Lo6mZEY.js +1 -0
- package/dist/plugin-sdk/outbound-9XFlZzaF.cjs +1 -0
- package/dist/plugin-sdk/outbound-BlWsUmjQ.js +1 -0
- package/dist/plugin-sdk/outbound-Bs2rUcWZ.cjs +1 -0
- package/dist/plugin-sdk/outbound-C18nEOFP.js +1 -0
- package/dist/plugin-sdk/outbound-CW3o4Eng.cjs +1 -0
- package/dist/plugin-sdk/outbound-CzsdW5sy.js +1 -0
- package/dist/plugin-sdk/outbound-DcP22VOo.cjs +1 -0
- package/dist/plugin-sdk/outbound-QhOJAEO8.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-1pf06Oiu.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-B8-ZVX2i.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-BDwI_tn0.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-BXhbJils.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-Bgf1pCh8.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-COgf85S8.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-CfN9OvMC.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-CftilZWd.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-Cujprd6T.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-CvSHb9ci.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-DQYtdTUw.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-FqWC0WJx.cjs +1 -0
- package/dist/plugin-sdk/outbound-dTvIiFIZ.js +1 -0
- package/dist/plugin-sdk/outbound-fZ1WJGfe.cjs +1 -0
- package/dist/plugin-sdk/outbound-oHoWYWxf.js +1 -0
- package/dist/plugin-sdk/paths-BPlgbwrb.cjs +1 -0
- package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +1 -0
- package/dist/plugin-sdk/paths-BpQOWYiT.js +1 -0
- package/dist/plugin-sdk/paths-BvlJvmRS.cjs +1 -0
- package/dist/plugin-sdk/paths-CIcxeNL-.cjs +1 -0
- package/dist/plugin-sdk/paths-CXgWvWAM.js +1 -0
- package/dist/plugin-sdk/paths-Chp3zwtq.cjs +1 -0
- package/dist/plugin-sdk/paths-CnHSNSeR.js +1 -0
- package/dist/plugin-sdk/paths-Cqca1YmF.cjs +1 -0
- package/dist/plugin-sdk/paths-CtrEseGU.js +1 -0
- package/dist/plugin-sdk/paths-D55o_j8-.js +1 -0
- package/dist/plugin-sdk/paths-D90l3h_o.cjs +1 -0
- package/dist/plugin-sdk/paths-DaRoqzBQ.js +1 -0
- package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +1 -0
- package/dist/plugin-sdk/paths-DhSjTRMz.js +1 -0
- package/dist/plugin-sdk/paths-Do0djuaj.js +1 -0
- package/dist/plugin-sdk/paths-J4JUiRsa.js +1 -0
- package/dist/plugin-sdk/paths-cBAF6Bj0.js +1 -0
- package/dist/plugin-sdk/paths-piJASC5k.js +1 -0
- package/dist/plugin-sdk/paths-rO4ehkyU.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-B9boErNZ.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BJ8wTgFH.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Bb2vCP6M.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Bor7jHYd.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BrTw1qE2.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BuEMyAsU.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-CV9NTjC4.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-D5tLf04u.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-D5xlUS2J.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DGoPUzBj.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DMrqvV1O.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DoY7qnlI.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Dqq9Vm8o.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-zCuISPPq.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-4238P8NF.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BEoqzgFe.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BGPjibRD.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BJ_amISU.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BX2r_qPT.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CGLHFxSr.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsNn_Lv8.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsiKBTHg.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CuXQQk4F.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DNatrz-3.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-PApjB0tY.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-xsXDBYNq.js +1 -0
- package/dist/plugin-sdk/polls-BuaJuIpV.cjs +1 -0
- package/dist/plugin-sdk/polls-CBAGZuJ6.js +1 -0
- package/dist/plugin-sdk/polls-CSKMbBIS.js +1 -0
- package/dist/plugin-sdk/polls-D0wY0FvT.cjs +1 -0
- package/dist/plugin-sdk/polls-PGxiE05J.js +1 -0
- package/dist/plugin-sdk/polls-yWqSCEP0.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-B765haXA.js +1 -0
- package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +1 -0
- package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +1 -0
- package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +1 -0
- package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +1 -0
- package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-Del551nu.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-B0_rvdfF.js +1 -0
- package/dist/plugin-sdk/pw-ai-BqdrA15F.js +1 -0
- package/dist/plugin-sdk/pw-ai-CDzxu5B3.js +1 -0
- package/dist/plugin-sdk/pw-ai-CJIogpwF.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-CL_gU5PJ.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-Ca4aZTaG.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-CrfYxLI8.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-DCiFlwP8.js +1 -0
- package/dist/plugin-sdk/pw-ai-DSqXNmNZ.js +1 -0
- package/dist/plugin-sdk/pw-ai-Dh55xTz1.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-DxAvipyK.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-U9nPHH-0.js +1 -0
- package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +1 -0
- package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +1 -0
- package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +1 -0
- package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +1 -0
- package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +1 -0
- package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +1 -0
- package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-CAboqtWr.js +1 -0
- package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +1 -0
- package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +1 -0
- package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +1 -0
- package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +1 -0
- package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +1 -0
- package/dist/plugin-sdk/qwen-portal-auth.cjs +1 -0
- package/dist/plugin-sdk/qwen-portal-auth.js +1 -0
- package/dist/plugin-sdk/render-6fCdtAr6.cjs +1 -0
- package/dist/plugin-sdk/render-CBsnn-2A.js +1 -0
- package/dist/plugin-sdk/render-CzHaQB0d.cjs +1 -0
- package/dist/plugin-sdk/render-DGmfCIRG.js +1 -0
- package/dist/plugin-sdk/render-DhTJXP1U.js +1 -0
- package/dist/plugin-sdk/render-Djx15dPh.js +1 -0
- package/dist/plugin-sdk/render-DxBO2Blp.cjs +1 -0
- package/dist/plugin-sdk/render-g5VlmgpF.cjs +1 -0
- package/dist/plugin-sdk/reply-0zCEbT4w.cjs +1 -0
- package/dist/plugin-sdk/reply-D-f2bbXy.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-CrQGbaua.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-H7Q9HcfW.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-MS6Xpp17.cjs +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-cDxjy3TL.cjs +1 -0
- package/dist/plugin-sdk/send-3VNTSIhr.js +1 -0
- package/dist/plugin-sdk/send-61GHLNYP.cjs +1 -0
- package/dist/plugin-sdk/send-6q4owAw0.js +1 -0
- package/dist/plugin-sdk/send-A2s5sPTd.js +1 -0
- package/dist/plugin-sdk/send-B2qa7CSk.js +1 -0
- package/dist/plugin-sdk/send-B3aEYvqG.cjs +1 -0
- package/dist/plugin-sdk/send-BAoqP09M.cjs +1 -0
- package/dist/plugin-sdk/send-BNBJ4CF8.js +1 -0
- package/dist/plugin-sdk/send-BTE2rI1E.js +1 -0
- package/dist/plugin-sdk/send-BlWuQHYB.js +1 -0
- package/dist/plugin-sdk/send-Bnvt7ZUE.cjs +1 -0
- package/dist/plugin-sdk/send-Bq6Mqs9G.cjs +1 -0
- package/dist/plugin-sdk/send-Bq787fi_.js +1 -0
- package/dist/plugin-sdk/send-BrAHLYBR.js +1 -0
- package/dist/plugin-sdk/send-Bt2eFBk2.js +1 -0
- package/dist/plugin-sdk/send-C4ZFbUux.js +1 -0
- package/dist/plugin-sdk/send-C4cyMW4S.cjs +1 -0
- package/dist/plugin-sdk/send-C8f5H4XV.cjs +1 -0
- package/dist/plugin-sdk/send-CDwTrbgT.cjs +1 -0
- package/dist/plugin-sdk/send-CEfs0Fsr.js +1 -0
- package/dist/plugin-sdk/send-CFuJjCNB.cjs +1 -0
- package/dist/plugin-sdk/send-CJGLeSJ8.cjs +1 -0
- package/dist/plugin-sdk/send-CL0W7jLW.js +1 -0
- package/dist/plugin-sdk/send-CLl490Gb.cjs +1 -0
- package/dist/plugin-sdk/send-CQtITZ7k.cjs +1 -0
- package/dist/plugin-sdk/send-CSGh_GVr.cjs +1 -0
- package/dist/plugin-sdk/send-CicLiXB4.js +1 -0
- package/dist/plugin-sdk/send-Cm7bEwx-.cjs +1 -0
- package/dist/plugin-sdk/send-CmO9z2-b.js +1 -0
- package/dist/plugin-sdk/send-Co_Wy2kT.cjs +1 -0
- package/dist/plugin-sdk/send-Cox_iyYB.cjs +1 -0
- package/dist/plugin-sdk/send-CuX4LcJ3.cjs +1 -0
- package/dist/plugin-sdk/send-CxMiTtxI.cjs +1 -0
- package/dist/plugin-sdk/send-CyyzWwDr.js +1 -0
- package/dist/plugin-sdk/send-D-HZnehy.cjs +1 -0
- package/dist/plugin-sdk/send-D-qD7BCb.js +1 -0
- package/dist/plugin-sdk/send-D3imkSlz.cjs +1 -0
- package/dist/plugin-sdk/send-D5UwpCoU.cjs +1 -0
- package/dist/plugin-sdk/send-D75OGJco.js +1 -0
- package/dist/plugin-sdk/send-DB4i1kUy.cjs +1 -0
- package/dist/plugin-sdk/send-DBjzdBda.cjs +1 -0
- package/dist/plugin-sdk/send-DPgRTM8s.js +1 -0
- package/dist/plugin-sdk/send-DPpBLiL4.js +1 -0
- package/dist/plugin-sdk/send-DV_afQnj.cjs +1 -0
- package/dist/plugin-sdk/send-DWuChr46.js +1 -0
- package/dist/plugin-sdk/send-DZ4szmEa.cjs +1 -0
- package/dist/plugin-sdk/send-DZr98eqE.cjs +1 -0
- package/dist/plugin-sdk/send-D_1K0zmx.cjs +1 -0
- package/dist/plugin-sdk/send-DaLB9Lca.js +1 -0
- package/dist/plugin-sdk/send-De4qiprb.js +1 -0
- package/dist/plugin-sdk/send-DeU-T5ps.js +1 -0
- package/dist/plugin-sdk/send-DtjJM0LO.js +1 -0
- package/dist/plugin-sdk/send-DvDCmTQf.js +1 -0
- package/dist/plugin-sdk/send-EvcsiFBC.cjs +1 -0
- package/dist/plugin-sdk/send-GuISe9C82.js +1 -0
- package/dist/plugin-sdk/send-IoGcE0w2.js +1 -0
- package/dist/plugin-sdk/send-JVdUTsN1.cjs +1 -0
- package/dist/plugin-sdk/send-NpNVFRmY.js +1 -0
- package/dist/plugin-sdk/send-XMOZsJcs.js +1 -0
- package/dist/plugin-sdk/send-h--iKoQE.cjs +1 -0
- package/dist/plugin-sdk/session-8BcB905y.cjs +1 -0
- package/dist/plugin-sdk/session-B2oURX5K.js +1 -0
- package/dist/plugin-sdk/session-BJhNqIOi.js +1 -0
- package/dist/plugin-sdk/session-BRgGsw96.cjs +1 -0
- package/dist/plugin-sdk/session-Be_7rXAz.js +1 -0
- package/dist/plugin-sdk/session-C66IXbE-.js +1 -0
- package/dist/plugin-sdk/session-CCYDbcyV.js +1 -0
- package/dist/plugin-sdk/session-CHu3C2m0.cjs +1 -0
- package/dist/plugin-sdk/session-DUlmK2IL.cjs +1 -0
- package/dist/plugin-sdk/session-DxTRZTnu.js +1 -0
- package/dist/plugin-sdk/session-DzhI0nj-.cjs +1 -0
- package/dist/plugin-sdk/session-WRCBgAzG.cjs +1 -0
- package/dist/plugin-sdk/sessions-DxXXAfdI.js +1 -0
- package/dist/plugin-sdk/sessions-Dz5JUL8j.cjs +1 -0
- package/dist/plugin-sdk/signal.cjs +1 -0
- package/dist/plugin-sdk/signal.js +1 -0
- package/dist/plugin-sdk/skill-commands-B4wI8ETo.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-BoTeA376.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-BwrYJu7Z.js +1 -0
- package/dist/plugin-sdk/skill-commands-BzkMuA58.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-CIAf9cWN.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-CKc7JO_c.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-Cvb6oXym.js +1 -0
- package/dist/plugin-sdk/skill-commands-DWDtyCtB.js +1 -0
- package/dist/plugin-sdk/skill-commands-Hmuw0PPK.js +1 -0
- package/dist/plugin-sdk/skill-commands-KyN0FGaC.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-KzwEqk5p.js +1 -0
- package/dist/plugin-sdk/skill-commands-Ny38ZFIC.js +1 -0
- package/dist/plugin-sdk/slack.cjs +1 -0
- package/dist/plugin-sdk/slack.js +1 -0
- package/dist/plugin-sdk/synology-chat.cjs +1 -0
- package/dist/plugin-sdk/synology-chat.js +1 -0
- package/dist/plugin-sdk/tables-BIDWwpX8.js +1 -0
- package/dist/plugin-sdk/tables-Bk8lHaPx.cjs +1 -0
- package/dist/plugin-sdk/tables-BlNIkMV8.js +1 -0
- package/dist/plugin-sdk/tables-Bp0a2WRP.cjs +1 -0
- package/dist/plugin-sdk/tables-BtVUf77b.cjs +1 -0
- package/dist/plugin-sdk/tables-C4j5Bar_.js +1 -0
- package/dist/plugin-sdk/tables-CZGtYzDC.cjs +1 -0
- package/dist/plugin-sdk/tables-CnrHab5d.cjs +1 -0
- package/dist/plugin-sdk/tables-DtslIPYw.js +1 -0
- package/dist/plugin-sdk/tables-NrdtIJGp.cjs +1 -0
- package/dist/plugin-sdk/tables-XYb3T-vE.js +1 -0
- package/dist/plugin-sdk/tables-lbv-0tl3.js +1 -0
- package/dist/plugin-sdk/target-errors-9cdJA1L2.cjs +1 -0
- package/dist/plugin-sdk/target-errors-BEkhKWCq.cjs +1 -0
- package/dist/plugin-sdk/target-errors-BZRN-lPd.js +1 -0
- package/dist/plugin-sdk/target-errors-BrwqillR.cjs +1 -0
- package/dist/plugin-sdk/target-errors-Buo5pfom.js +1 -0
- package/dist/plugin-sdk/target-errors-CFzzcffg.js +1 -0
- package/dist/plugin-sdk/target-errors-DFmK5loi.js +1 -0
- package/dist/plugin-sdk/target-errors-DXqwykNX.js +1 -0
- package/dist/plugin-sdk/target-errors-Dd6CopYF.cjs +1 -0
- package/dist/plugin-sdk/target-errors-DeNJ10ks.cjs +1 -0
- package/dist/plugin-sdk/targets-BSc11Uk8.cjs +1 -0
- package/dist/plugin-sdk/targets-BSkiizml.js +1 -0
- package/dist/plugin-sdk/targets-CBI0xqve.cjs +1 -0
- package/dist/plugin-sdk/targets-CL5fYQi7.js +1 -0
- package/dist/plugin-sdk/targets-CUZWrFrm.cjs +1 -0
- package/dist/plugin-sdk/targets-CVEYTFPQ.js +1 -0
- package/dist/plugin-sdk/targets-Co2R6K14.cjs +1 -0
- package/dist/plugin-sdk/targets-CrkJkzil.js +1 -0
- package/dist/plugin-sdk/targets-D-m7SV9x.cjs +1 -0
- package/dist/plugin-sdk/targets-D8HTxbo4.js +1 -0
- package/dist/plugin-sdk/targets-DcGNB9nk.cjs +1 -0
- package/dist/plugin-sdk/targets-Dn9gDiEw.js +1 -0
- package/dist/plugin-sdk/targets-X28mff4s.cjs +1 -0
- package/dist/plugin-sdk/targets-uycXZ8vQ.js +1 -0
- package/dist/plugin-sdk/telegram.cjs +1 -0
- package/dist/plugin-sdk/telegram.js +1 -0
- package/dist/plugin-sdk/test-utils.cjs +1 -0
- package/dist/plugin-sdk/test-utils.js +1 -0
- package/dist/plugin-sdk/tlon.cjs +1 -0
- package/dist/plugin-sdk/tlon.js +1 -0
- package/dist/plugin-sdk/tokens-AAdZjj0M.js +1 -0
- package/dist/plugin-sdk/tokens-B20KNIDD.js +1 -0
- package/dist/plugin-sdk/tokens-B8ys7Q2e.js +1 -0
- package/dist/plugin-sdk/tokens-BPc1fcZ3.js +1 -0
- package/dist/plugin-sdk/tokens-BqABmXSe.js +1 -0
- package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +1 -0
- package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +1 -0
- package/dist/plugin-sdk/tokens-CytSl1X8.cjs +1 -0
- package/dist/plugin-sdk/tokens-DgPZk2Uu.js +1 -0
- package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +1 -0
- package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +1 -0
- package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +1 -0
- package/dist/plugin-sdk/twitch.cjs +1 -0
- package/dist/plugin-sdk/twitch.js +1 -0
- package/dist/plugin-sdk/utils-BJtJR72k.js +1 -0
- package/dist/plugin-sdk/utils-PPIvU9qw.cjs +1 -0
- package/dist/plugin-sdk/voice-call.cjs +1 -0
- package/dist/plugin-sdk/voice-call.js +1 -0
- package/dist/plugin-sdk/web-B-QDcVRv.cjs +1 -0
- package/dist/plugin-sdk/web-B2PwjHsu.cjs +1 -0
- package/dist/plugin-sdk/web-BdnQzLgF.js +1 -0
- package/dist/plugin-sdk/web-C9T7tf6w.js +1 -0
- package/dist/plugin-sdk/web-CODD4ksc.cjs +1 -0
- package/dist/plugin-sdk/web-CkdCvvR-.js +1 -0
- package/dist/plugin-sdk/web-_tj8xNZE.js +1 -0
- package/dist/plugin-sdk/web-pcTha_l7.cjs +1 -0
- package/dist/plugin-sdk/weixin.cjs +1 -0
- package/dist/plugin-sdk/weixin.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bhz2j1uz.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bm2UyRYg.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bolz0jl5.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-CJ3LDpaG.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-CL1Gmkb0.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-D-bZRT7s.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DSGTTE8M.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DjQxgMpW.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DrPBBi5t.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DtK657CZ.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Xwev51_N.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-m7vLtNAA.js +1 -0
- package/dist/plugin-sdk/whatsapp.cjs +1 -0
- package/dist/plugin-sdk/whatsapp.js +1 -0
- package/dist/plugin-sdk/zalo.cjs +1 -0
- package/dist/plugin-sdk/zalo.js +1 -0
- package/dist/plugin-sdk/zalouser.cjs +1 -0
- package/dist/plugin-sdk/zalouser.js +1 -0
- package/dist/plugins-CYLrFT4h.js +1 -0
- package/dist/plugins-DNlgeTTc.js +1 -0
- package/dist/plugins-cli-BbjMbzJU.js +1 -0
- package/dist/plugins-cli-BiVMAr5T.js +1 -0
- package/dist/polls-BIVz6a4F.js +1 -0
- package/dist/polls-Bh5wc9-6.js +1 -0
- package/dist/polls-C_XSFz3d.js +1 -0
- package/dist/polls-DKJOFSzJ.js +1 -0
- package/dist/ports-B0XdGTfS.js +1 -0
- package/dist/ports-BR0PLRtq.js +1 -0
- package/dist/probe-auth-BMA0yM94.js +1 -0
- package/dist/probe-auth-VI96zmTK.js +1 -0
- package/dist/profile-utils-CWmra1aY.js +1 -0
- package/dist/program-BrAZTwFr.js +1 -0
- package/dist/program-context-B9ydtPje.js +1 -0
- package/dist/program-context-CH9p6anW.js +1 -0
- package/dist/progress-LNttnI-y.js +1 -0
- package/dist/progress-d1m2sqR1.js +1 -0
- package/dist/prompt-select-styled-BeJNbzSa.js +1 -0
- package/dist/prompt-select-styled-DIOWLjl0.js +1 -0
- package/dist/prompt-style-BThRSQJR.js +1 -0
- package/dist/prompt-style-CXKekIBY.js +1 -0
- package/dist/prompts-CMzglboN.js +1 -0
- package/dist/prompts-wv-lfVrJ.js +1 -0
- package/dist/provider-auth-helpers-1lU43eTW.js +1 -0
- package/dist/provider-auth-helpers-pBVCjBj9.js +1 -0
- package/dist/provider-env-vars-D8p6Ohpj.js +1 -0
- package/dist/provider-env-vars-Dt0Q29Su.js +1 -0
- package/dist/proxy-env-BNhTHkd_.js +1 -0
- package/dist/proxy-env-DcmW_urA.js +1 -0
- package/dist/proxy-env-DrC3TIGh.js +1 -0
- package/dist/proxy-env-FJr5nlvs.js +1 -0
- package/dist/proxy-fetch-BADsUK4d.js +1 -0
- package/dist/proxy-fetch-BZ9O8Dvj.js +1 -0
- package/dist/proxy-fetch-DnjU1fEB.js +1 -0
- package/dist/proxy-fetch-gWETR3cl.js +1 -0
- package/dist/push-apns-BGUOmD5M.js +1 -0
- package/dist/push-apns-B_a2MBJ4.js +1 -0
- package/dist/pw-ai-C-Ffkwai.js +1 -0
- package/dist/pw-ai-CV1H1Vrs.js +1 -0
- package/dist/pw-ai-D_MB1lrR.js +1 -0
- package/dist/pw-ai-_l9lVice.js +1 -0
- package/dist/qmd-manager-C_e04BNg.js +1 -0
- package/dist/qmd-manager-DSQ_mDCl.js +1 -0
- package/dist/qmd-manager-DcBYbt_V.js +1 -0
- package/dist/qmd-manager-NLI0R6kp.js +1 -0
- package/dist/qr-cli-3aG6CB6K.js +1 -0
- package/dist/qr-cli-fiJxD5M4.js +1 -0
- package/dist/query-expansion-0OxEb1Io.js +1 -0
- package/dist/query-expansion-BUUx_oWg.js +1 -0
- package/dist/query-expansion-r_iXkNzt.js +1 -0
- package/dist/reaction-level-DVPHL14p.js +1 -0
- package/dist/reaction-message-id-BEEe7X3D.js +1 -0
- package/dist/read-only-account-inspect-DBwAwB3_.js +1 -0
- package/dist/redact-3_CiXMY6.js +1 -0
- package/dist/redact-CnRxK70G.js +1 -0
- package/dist/register.agent-CX78s_X9.js +1 -0
- package/dist/register.agent-DLDKQENq.js +1 -0
- package/dist/register.backup-DkFoTcuT.js +1 -0
- package/dist/register.backup-PzF5rmeU.js +1 -0
- package/dist/register.configure-BA5u9hT3.js +1 -0
- package/dist/register.configure-BhPtf3Qo.js +1 -0
- package/dist/register.maintenance-BhsBepKS.js +1 -0
- package/dist/register.maintenance-r_MzNK3-.js +1 -0
- package/dist/register.message-CTF--Z2a.js +1 -0
- package/dist/register.message-jcZ875be.js +1 -0
- package/dist/register.onboard-C3yL50_c.js +1 -0
- package/dist/register.onboard-CNwnStUk.js +1 -0
- package/dist/register.setup-BRJMzgfU.js +1 -0
- package/dist/register.setup-BvsS-zgm.js +1 -0
- package/dist/register.status-health-sessions-DVc__2pc.js +1 -0
- package/dist/register.status-health-sessions-Dqmkw820.js +1 -0
- package/dist/register.subclis-D-24j83X.js +1 -0
- package/dist/registry-BptzrW8D.js +1 -0
- package/dist/registry-hFAtCSWG.js +1 -0
- package/dist/render-BXEUPIHe.js +1 -0
- package/dist/render-CBsnn-2A.js +1 -0
- package/dist/render-D8OWO2hT.js +1 -0
- package/dist/render-DrrPmnMI.js +1 -0
- package/dist/reply-l-Y47HP4.js +1 -0
- package/dist/restart-CHXEHdSC.js +1 -0
- package/dist/rpc-B3ReBNXG.js +1 -0
- package/dist/rpc-DumDLalJ.js +1 -0
- package/dist/run-main-B_YBE_TN.js +1 -0
- package/dist/runtime-BC5Ep2pJ.js +1 -0
- package/dist/runtime-Dlg2-Omq.js +1 -0
- package/dist/runtime-guard-DFYBaYZS.js +1 -0
- package/dist/runtime-guard-DX2Ie4ri.js +1 -0
- package/dist/runtime-status-CqFBmdRd.js +1 -0
- package/dist/runtime-status-DszMjvJK.js +1 -0
- package/dist/runtime-web-tools-D8fms06-.js +1 -0
- package/dist/runtime-web-tools-bz76ZaRc.js +1 -0
- package/dist/sandbox-cli-BDorUBm-.js +1 -0
- package/dist/sandbox-cli-Bq40R5Vs.js +1 -0
- package/dist/scan-paths-C13EseXp.js +1 -0
- package/dist/scan-paths-CWtvWW40.js +1 -0
- package/dist/search-manager-Bp9x20r6.js +1 -0
- package/dist/secret-file-C7JffiM_.js +1 -0
- package/dist/secret-file-D60EFEOe.js +1 -0
- package/dist/secret-file-DuWm26jS.js +1 -0
- package/dist/secrets-cli-Bo6PC32U.js +1 -0
- package/dist/secrets-cli-CoXJv3Jp.js +1 -0
- package/dist/secure-random-D7JQgiK-.js +1 -0
- package/dist/security-cli-CgZL2KKh.js +1 -0
- package/dist/security-cli-DVOfhwAP.js +1 -0
- package/dist/send-B7sHR38c2.js +1 -0
- package/dist/send-Bx2Qr7VH.js +1 -0
- package/dist/send-C-AP01PR.js +1 -0
- package/dist/send-C1CJ-GHU.js +1 -0
- package/dist/send-C48Y9SAq.js +1 -0
- package/dist/send-CVplsJpw.js +1 -0
- package/dist/send-CW81y5Wz.js +1 -0
- package/dist/send-CYgHok1p.js +1 -0
- package/dist/send-Cgd_VJHR.js +1 -0
- package/dist/send-Chz0YMoJ.js +1 -0
- package/dist/send-D9hVVn7p2.js +1 -0
- package/dist/send-DKrzj_Ts.js +1 -0
- package/dist/send-DRLSCwCk.js +1 -0
- package/dist/send-DavpkzhH.js +1 -0
- package/dist/send-DbeEC2a3.js +1 -0
- package/dist/send-DkiKKUkt.js +1 -0
- package/dist/send-DlfVd5mL.js +1 -0
- package/dist/send-JYgM9Sm-2.js +1 -0
- package/dist/send-hZFDcGLM.js +1 -0
- package/dist/send-vthbs31u.js +1 -0
- package/dist/server-DpyBukwA.js +1 -0
- package/dist/server-IgiSKzXH.js +1 -0
- package/dist/server-node-events-CFSY_-4t.js +1 -0
- package/dist/server-node-events-ZFwmPwQ-.js +1 -0
- package/dist/service-BtB9epJk.js +1 -0
- package/dist/service-DZ9EbS15.js +1 -0
- package/dist/session-C9TDmUS7.js +1 -0
- package/dist/session-CUUGjiV3.js +1 -0
- package/dist/session-DA-i5xQ-.js +1 -0
- package/dist/session-bk3gFwO4.js +1 -0
- package/dist/session-cost-usage-BgqKixv0.js +1 -0
- package/dist/session-cost-usage-CHtVgnE8.js +1 -0
- package/dist/session-key-C7F_iqYg.js +1 -0
- package/dist/session-key-D3P0tf5P.js +1 -0
- package/dist/session-utils-8acNlxwP.js +1 -0
- package/dist/sessions-BsxT0V2m.js +1 -0
- package/dist/shared-9x5sqYRb.js +1 -0
- package/dist/shared-BKWhOp64.js +1 -0
- package/dist/shared-GesXrZzd.js +1 -0
- package/dist/skill-commands-BWW6mc6t.js +1 -0
- package/dist/skill-commands-CSF6wVPU.js +1 -0
- package/dist/skill-commands-Db232ZRp.js +1 -0
- package/dist/skill-commands-HJHHZqt6.js +1 -0
- package/dist/skill-scanner-CUUF3Fvo.js +1 -0
- package/dist/skill-scanner-CkxXNioD.js +1 -0
- package/dist/skills-CKTicUKS.js +1 -0
- package/dist/skills-DHbOKEGc.js +1 -0
- package/dist/skills-cli-9Ls94z5H.js +1 -0
- package/dist/skills-cli-BY7OhJzj.js +1 -0
- package/dist/skills-install-CIdGCXSy.js +1 -0
- package/dist/skills-install-DIdiVt9Y.js +1 -0
- package/dist/skills-status-BWIugRCz.js +1 -0
- package/dist/skills-status-DswSl5aD.js +1 -0
- package/dist/sqlite-CILF3z9U.js +1 -0
- package/dist/stagger-DmFYysrJ.js +1 -0
- package/dist/stagger-DxzgG2jd.js +1 -0
- package/dist/status-C-9fSiMn.js +1 -0
- package/dist/status-CeBGmSAz.js +1 -0
- package/dist/status-DYqPF0rB.js +1 -0
- package/dist/status-JIPeVrsc.js +1 -0
- package/dist/status.update-B_8Gumuc.js +1 -0
- package/dist/status.update-DoSzHu2F.js +1 -0
- package/dist/string-normalization-BrUPaXaM.js +1 -0
- package/dist/string-normalization-DJT5zuUF.js +1 -0
- package/dist/subsystem-BLbY429l.js +1 -0
- package/dist/subsystem-Bc2XrjUz.js +1 -0
- package/dist/subsystem-C5XF2Fy5.js +1 -0
- package/dist/system-cli-CeZfoVPN.js +1 -0
- package/dist/system-cli-DZkTYB9d.js +1 -0
- package/dist/system-run-command-BKfMiqQM.js +1 -0
- package/dist/system-run-command-DEWnZE0r.js +1 -0
- package/dist/systemd-D7odsu4K.js +1 -0
- package/dist/systemd-DbevZh65.js +1 -0
- package/dist/systemd-hints-C0DKDl35.js +1 -0
- package/dist/systemd-hints-lXpMy-kY.js +1 -0
- package/dist/systemd-linger-C2MJD6KG.js +1 -0
- package/dist/systemd-linger-cWKbFNpu.js +1 -0
- package/dist/table-CR7TFMew.js +1 -0
- package/dist/table-CY440fI1.js +1 -0
- package/dist/tables-Brc2lNcB.js +1 -0
- package/dist/tables-CrXdLc_6.js +1 -0
- package/dist/tables-Oieq7UbT.js +1 -0
- package/dist/tables-btcG3yFT.js +1 -0
- package/dist/target-errors-CRlevJJ5.js +1 -0
- package/dist/target-errors-CgWAJOam.js +1 -0
- package/dist/target-errors-CpKXh2RS.js +1 -0
- package/dist/target-errors-a35Md15n.js +1 -0
- package/dist/targets-4EaxWBal.js +1 -0
- package/dist/targets-BJTo7bqu.js +1 -0
- package/dist/targets-BYVMrXDf.js +1 -0
- package/dist/targets-Bq6rS6-Z.js +1 -0
- package/dist/targets-CL5fYQi7.js +1 -0
- package/dist/targets-fozeWOOg.js +1 -0
- package/dist/targets-m_41k_Mv.js +1 -0
- package/dist/telegram/audit.js +1 -0
- package/dist/text-format-CvrvBBre.js +1 -0
- package/dist/text-format-DEWK6oCT.js +1 -0
- package/dist/token-DnTmiyJu.js +1 -0
- package/dist/tokens-B2fq-rL6.js +1 -0
- package/dist/tokens-CL2fSjGl.js +1 -0
- package/dist/tokens-DRM8vzJx.js +1 -0
- package/dist/tokens-XGbQGn67.js +1 -0
- package/dist/tool-display-DJDtttQg.js +1 -0
- package/dist/tool-display-DjuSUUbH.js +1 -0
- package/dist/tui-B506apla.js +1 -0
- package/dist/tui-CJUkUxHb.js +1 -0
- package/dist/tui-cli-BEdGHmhc.js +1 -0
- package/dist/tui-cli-Cq_eXDAV.js +1 -0
- package/dist/types.secrets-C-5U96pc.js +1 -0
- package/dist/types.secrets-D4tbc3Wq.js +1 -0
- package/dist/update-BGrxUIyz.js +1 -0
- package/dist/update-CwTy5DPl.js +1 -0
- package/dist/update-cli-BwBMOeP0.js +1 -0
- package/dist/update-cli-YrBbmw4f.js +1 -0
- package/dist/update-runner-BvtyRBD2.js +1 -0
- package/dist/update-runner-DYamgo1V.js +1 -0
- package/dist/usage-format-BWD8FJFL.js +1 -0
- package/dist/usage-format-yPwal8Iz.js +1 -0
- package/dist/utils-CGdo13HV.js +1 -0
- package/dist/utils-D3t-vPka.js +1 -0
- package/dist/utils-R-mFyVJi.js +1 -0
- package/dist/utils-UGOV_184.js +1 -0
- package/dist/version-q3SkUw2K.js +1 -0
- package/dist/warning-filter.js +1 -0
- package/dist/web-Cq3xWCaD.js +1 -0
- package/dist/web-DwcxsgH0.js +1 -0
- package/dist/webhooks-cli-CIeyainW.js +1 -0
- package/dist/webhooks-cli-DSNAve_D.js +1 -0
- package/dist/whatsapp-actions-B6gt1KeB.js +1 -0
- package/dist/whatsapp-actions-DACoH7qd.js +1 -0
- package/dist/whatsapp-actions-iQhIeMya.js +1 -0
- package/dist/whatsapp-actions-tmjID75a.js +1 -0
- package/dist/widearea-dns-BDx7vkV2.js +1 -0
- package/dist/widearea-dns-BFjqKXu_.js +1 -0
- package/dist/windows-spawn-7oINn5ao.js +1 -0
- package/dist/windows-spawn-AB7ItGAE.js +1 -0
- package/dist/with-timeout-WveKxvFV.js +1 -0
- package/dist/with-timeout-c1CzdShT.js +1 -0
- package/dist/workspace-B0ZQeHXg.js +1 -0
- package/dist/workspace-C45T1Cxg.js +1 -0
- package/dist/workspace-dirs-A8Vib9_B.js +1 -0
- package/dist/workspace-dirs-BhF1Dzxt.js +1 -0
- package/dist/workspace-xNEpaJvu.js +1 -0
- package/dist/wsl-DHxB2Ew_.js +1 -0
- package/dist/wsl-Ok7GaSJ6.js +1 -0
- 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/@grammyjs/types/package.json +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.js +49 -3
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.js +49 -3
- package/node_modules/@line/bot-sdk/dist/cjs/client.js +636 -0
- package/node_modules/@line/bot-sdk/dist/cjs/endpoints.js +7 -0
- package/node_modules/@line/bot-sdk/dist/cjs/exceptions.js +15 -1
- package/node_modules/@line/bot-sdk/dist/cjs/http-axios.js +2 -6
- package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js +5 -13
- package/node_modules/@line/bot-sdk/dist/cjs/index.js +3 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.factory.generated.js +66 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js +1999 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.js +61 -0
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/utils.js +10 -0
- package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
- package/node_modules/@line/bot-sdk/dist/client.js +636 -0
- package/node_modules/@line/bot-sdk/dist/endpoints.js +7 -0
- package/node_modules/@line/bot-sdk/dist/exceptions.js +15 -1
- package/node_modules/@line/bot-sdk/dist/http-axios.js +2 -6
- package/node_modules/@line/bot-sdk/dist/http-fetch.js +5 -13
- package/node_modules/@line/bot-sdk/dist/index.js +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.factory.generated.js +63 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js +1995 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.js +58 -0
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/utils.js +9 -0
- package/node_modules/@line/bot-sdk/dist/version.js +1 -1
- package/node_modules/@line/bot-sdk/package.json +10 -7
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/package.json +25 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/clipboard.linux-x64-musl.node +0 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/package.json +25 -0
- package/node_modules/@slack/bolt/dist/App.js +22 -30
- package/node_modules/@slack/bolt/dist/Assistant.js +21 -37
- package/node_modules/@slack/bolt/dist/CustomFunction.js +1 -43
- package/node_modules/@slack/bolt/dist/context/create-function-complete.js +23 -0
- package/node_modules/@slack/bolt/dist/context/create-function-fail.js +23 -0
- package/node_modules/@slack/bolt/dist/context/create-respond.js +11 -0
- package/node_modules/@slack/bolt/dist/context/create-say-stream.js +16 -0
- package/node_modules/@slack/bolt/dist/context/create-say.js +17 -0
- package/node_modules/@slack/bolt/dist/context/create-set-status.js +21 -0
- package/node_modules/@slack/bolt/dist/context/index.js +16 -0
- package/node_modules/@slack/bolt/dist/helpers.js +79 -3
- package/node_modules/@slack/bolt/dist/index.js +10 -8
- package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js +5 -1
- package/node_modules/@slack/bolt/dist/types/events/index.js +0 -4
- package/node_modules/@slack/bolt/package.json +7 -7
- package/node_modules/@smithy/config-resolver/package.json +10 -11
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +21 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +21 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +46 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +24 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +19 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +27 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +10 -0
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +44 -0
- package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/setFeature.js +14 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +17 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +38 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +15 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +9 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +61 -0
- package/node_modules/@smithy/core/package.json +15 -16
- package/node_modules/@smithy/credential-provider-imds/package.json +9 -10
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/eventstream-codec/package.json +6 -7
- package/node_modules/@smithy/eventstream-serde-browser/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-node/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -10
- package/node_modules/@smithy/fetch-http-handler/package.json +12 -13
- package/node_modules/@smithy/hash-node/package.json +6 -7
- package/node_modules/@smithy/invalid-dependency/package.json +6 -7
- package/node_modules/@smithy/middleware-content-length/package.json +7 -8
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +13 -14
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +70 -29
- package/node_modules/@smithy/middleware-retry/dist-es/index.js +5 -4
- package/node_modules/@smithy/middleware-retry/dist-es/longPollMiddleware.js +15 -0
- package/node_modules/@smithy/middleware-retry/dist-es/parseRetryAfterHeader.js +49 -0
- package/node_modules/@smithy/middleware-retry/dist-es/{StandardRetryStrategy.js → retry-pre-sra-deprecated/StandardRetryStrategy.js} +1 -1
- package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +13 -20
- package/node_modules/@smithy/middleware-retry/package.json +16 -16
- package/node_modules/@smithy/middleware-serde/package.json +10 -11
- package/node_modules/@smithy/middleware-stack/package.json +7 -8
- package/node_modules/@smithy/node-config-provider/package.json +8 -9
- package/node_modules/@smithy/node-http-handler/package.json +10 -11
- package/node_modules/@smithy/property-provider/package.json +6 -7
- package/node_modules/@smithy/protocol-http/package.json +6 -7
- package/node_modules/@smithy/querystring-builder/package.json +6 -7
- package/node_modules/@smithy/querystring-parser/package.json +6 -7
- package/node_modules/@smithy/service-error-classification/package.json +6 -7
- package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/signature-v4/package.json +9 -10
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/smithy-client/package.json +14 -15
- package/node_modules/@smithy/types/package.json +7 -8
- package/node_modules/@smithy/url-parser/package.json +7 -8
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -9
- package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -12
- package/node_modules/@smithy/util-endpoints/package.json +9 -10
- package/node_modules/@smithy/util-middleware/package.json +6 -7
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +123 -76
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +7 -4
- package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +2 -2
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +24 -25
- package/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js +14 -0
- package/node_modules/@smithy/util-retry/dist-es/DefaultRetryToken.js +25 -0
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +39 -26
- package/node_modules/@smithy/util-retry/dist-es/index.js +1 -0
- package/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js +18 -0
- package/node_modules/@smithy/util-retry/package.json +10 -11
- package/node_modules/@smithy/util-stream/package.json +12 -13
- package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +43 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/package.json +43 -0
- package/node_modules/dotenv/lib/main.js +1 -1
- package/node_modules/dotenv/package.json +1 -1
- package/node_modules/dotenv/skills/dotenv/SKILL.md +32 -52
- package/node_modules/dotenv/skills/dotenvx/SKILL.md +57 -273
- package/node_modules/grammy/out/bot.js +1 -0
- package/node_modules/grammy/out/context.js +35 -0
- package/node_modules/grammy/out/convenience/keyboard.js +30 -2
- package/node_modules/grammy/out/core/api.js +34 -0
- package/node_modules/grammy/out/filter.js +6 -2
- package/node_modules/grammy/out/web.mjs +58 -10
- package/node_modules/grammy/package.json +2 -2
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +12 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +227 -130
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +17 -0
- package/node_modules/lru-cache/dist/esm/index.js +227 -130
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +8 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/package.json +29 -9
- package/node_modules/netmask/dist/netmask.js +58 -0
- package/node_modules/netmask/dist/netmask4.js +189 -0
- package/node_modules/netmask/dist/netmask6.js +187 -0
- package/node_modules/netmask/package.json +15 -6
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +93 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/package.json +1 -1
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +189 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +50 -20
- package/node_modules/path-expression-matcher/src/index.js +3 -2
- package/node_modules/strnum/package.json +1 -1
- package/package.json +1 -1
- package/preset-config.json +12 -0
- package/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +0 -14
- package/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +0 -11
- package/node_modules/netmask/CREDITS.md +0 -30
- package/node_modules/netmask/lib/netmask.coffee +0 -167
- package/node_modules/netmask/lib/netmask.js +0 -208
- package/node_modules/strnum/.github/SECURITY.md +0 -5
- package/node_modules/strnum/.vscode/launch.json +0 -25
- package/node_modules/strnum/algo.stflow +0 -84
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +0 -178
- /package/node_modules/@smithy/middleware-retry/dist-es/{AdaptiveRetryStrategy.js → retry-pre-sra-deprecated/AdaptiveRetryStrategy.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{defaultRetryQuota.js → retry-pre-sra-deprecated/defaultRetryQuota.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{delayDecider.js → retry-pre-sra-deprecated/delayDecider.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{retryDecider.js → retry-pre-sra-deprecated/retryDecider.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{types.js → retry-pre-sra-deprecated/types.js} +0 -0
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-BLbY429l.js";import{n as t}from"./entry.js";import{r as n}from"./string-normalization-DJT5zuUF.js";import{c as r}from"./types.secrets-D4tbc3Wq.js";import{a as i,c as a,d as o,f as s,i as c,l,n as u,o as d,p as f,r as ee,s as te,t as ne,u as re}from"./frontmatter-C7mzDNxd.js";var p={blockedKeys:[`NODE_OPTIONS`,`NODE_PATH`,`PYTHONHOME`,`PYTHONPATH`,`PERL5LIB`,`PERL5OPT`,`RUBYLIB`,`RUBYOPT`,`BASH_ENV`,`ENV`,`GIT_EXTERNAL_DIFF`,`SHELL`,`SHELLOPTS`,`PS4`,`GCONV_PATH`,`IFS`,`SSLKEYLOGFILE`],blockedOverrideKeys:[`HOME`,`ZDOTDIR`,`GIT_SSH_COMMAND`,`GIT_SSH`,`GIT_PROXY_COMMAND`,`GIT_ASKPASS`,`SSH_ASKPASS`,`LESSOPEN`,`LESSCLOSE`,`PAGER`,`MANPAGER`,`GIT_PAGER`,`EDITOR`,`VISUAL`,`FCEDIT`,`SUDO_EDITOR`,`PROMPT_COMMAND`,`HISTFILE`,`PERL5DB`,`PERL5DBCMD`,`OPENSSL_CONF`,`OPENSSL_ENGINES`,`PYTHONSTARTUP`,`WGETRC`,`CURL_HOME`],blockedOverridePrefixes:[`GIT_CONFIG_`,`NPM_CONFIG_`],blockedPrefixes:[`DYLD_`,`LD_`,`BASH_FUNC_`]};const m=/^[A-Za-z_][A-Za-z0-9_]*$/,h=p,g=Object.freeze(h.blockedKeys.map(e=>e.toUpperCase())),ie=Object.freeze(h.blockedPrefixes.map(e=>e.toUpperCase())),ae=Object.freeze((h.blockedOverrideKeys??[]).map(e=>e.toUpperCase())),oe=Object.freeze((h.blockedOverridePrefixes??[]).map(e=>e.toUpperCase())),se=Object.freeze([`TERM`,`LANG`,`LC_ALL`,`LC_CTYPE`,`LC_MESSAGES`,`COLORTERM`,`NO_COLOR`,`FORCE_COLOR`]),ce=new Set(g),le=new Set(ae),ue=new Set(se);function _(e,t){let n=e.trim();return!n||t?.portable&&!m.test(n)?null:n}function v(e){let t=_(e);if(!t)return!1;let n=t.toUpperCase();return ce.has(n)?!0:ie.some(e=>n.startsWith(e))}function y(e){let t=_(e);if(!t)return!1;let n=t.toUpperCase();return le.has(n)?!0:oe.some(e=>n.startsWith(e))}function de(e){let n=e?.baseEnv??process.env,r=e?.overrides??void 0,i=e?.blockPathOverrides??!0,a={};for(let[e,t]of Object.entries(n)){if(typeof t!=`string`)continue;let n=_(e,{portable:!0});!n||v(n)||(a[n]=t)}if(!r)return t(a);for(let[e,t]of Object.entries(r)){if(typeof t!=`string`)continue;let n=_(e,{portable:!0});if(!n)continue;let r=n.toUpperCase();i&&r===`PATH`||v(r)||y(r)||(a[n]=t)}return t(a)}function fe(e){let t=e?.overrides??void 0;if(!t)return;if(!e?.shellWrapper)return t;let n={};for(let[e,r]of Object.entries(t)){if(typeof r!=`string`)continue;let t=_(e,{portable:!0});t&&ue.has(t.toUpperCase())&&(n[t]=r)}return Object.keys(n).length>0?n:void 0}const b=/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z.-]+))?(?:\+([0-9A-Za-z.-]+))?$/,x=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function S(e){let t=e.trim();if(!t)return{ok:!1,error:`missing npm spec`};if(/\s/.test(t))return{ok:!1,error:`unsupported npm spec: whitespace is not allowed`};if(t.includes(`://`))return{ok:!1,error:`unsupported npm spec: URLs are not allowed`};if(t.includes(`#`))return{ok:!1,error:`unsupported npm spec: git refs are not allowed`};if(t.includes(`:`))return{ok:!1,error:`unsupported npm spec: protocol specs are not allowed`};let n=t.lastIndexOf(`@`),r=n>0,i=r?t.slice(0,n):t,a=r?t.slice(n+1):``;if(!(i.startsWith(`@`)?/^@[a-z0-9][a-z0-9-._~]*\/[a-z0-9][a-z0-9-._~]*$/.test(i):/^[a-z0-9][a-z0-9-._~]*$/.test(i)))return{ok:!1,error:`unsupported npm spec: expected <name> or <name>@<version> from the npm registry`};if(!r)return{ok:!0,parsed:{name:i,raw:t,selectorKind:`none`,selectorIsPrerelease:!1}};if(!a)return{ok:!1,error:`unsupported npm spec: missing version/tag after @`};if(/[\\/]/.test(a))return{ok:!1,error:`unsupported npm spec: invalid version/tag`};let o=b.exec(a);return o?{ok:!0,parsed:{name:i,raw:t,selector:a,selectorKind:`exact-version`,selectorIsPrerelease:!!o[4]}}:x.test(a)?{ok:!0,parsed:{name:i,raw:t,selector:a,selectorKind:`tag`,selectorIsPrerelease:!1}}:{ok:!1,error:`unsupported npm spec: use an exact version or dist-tag (ranges are not allowed)`}}function C(e){let t=S(e);return t.ok?t.parsed:null}function w(e){let t=S(e);return t.ok?null:t.error}function T(e){return!!b.exec(e.trim())?.[4]}function E(e){return!e.resolvedVersion||!T(e.resolvedVersion)?!0:e.spec.selectorKind===`none`?!1:e.spec.selectorKind===`exact-version`?e.spec.selectorIsPrerelease:e.spec.selector?.toLowerCase()!==`latest`}function D(e){let t=e.spec.selectorKind===`none`||e.spec.selector?.toLowerCase()===`latest`?`Use "${e.spec.name}@beta" (or another prerelease tag) or an exact prerelease version to opt in explicitly.`:`Use an explicit prerelease tag or exact prerelease version if you want prerelease installs.`;return`Resolved ${e.spec.raw} to prerelease version ${e.resolvedVersion}, but prereleases are only installed when explicitly requested. ${t}`}function O(e){return re(e)}const k=/^[A-Za-z0-9][A-Za-z0-9@+._/-]*$/,A=/^[A-Za-z0-9][A-Za-z0-9._~+\-/]*(?:@[A-Za-z0-9][A-Za-z0-9._~+\-/]*)?$/,j=/^[A-Za-z0-9][A-Za-z0-9._\-[\]=<>!~+,]*$/;function M(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`-`)||t.includes(`\\`)||t.includes(`..`))&&k.test(t))return t}function N(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`-`))&&w(t)===null)return t}function P(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`-`)||t.includes(`\\`)||t.includes(`://`))&&A.test(t))return t}function F(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`-`)||t.includes(`\\`)||t.includes(`://`))&&j.test(t))return t}function I(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||/\s/.test(t)))try{let e=new URL(t);return e.protocol!==`http:`&&e.protocol!==`https:`?void 0:e.toString()}catch{return}}function L(e){let t=i(e,[`brew`,`node`,`go`,`uv`,`download`]);if(!t)return;let{raw:n}=t,r=ne({kind:t.kind},t),a=ee(n.os);a.length>0&&(r.os=a);let o=M(n.formula);o&&(r.formula=o);let s=M(n.cask);if(!r.formula&&s&&(r.formula=s),r.kind===`node`){let e=N(n.package);e&&(r.package=e)}else if(r.kind===`uv`){let e=F(n.package);e&&(r.package=e)}let c=P(n.module);c&&(r.module=c);let l=I(n.url);if(l&&(r.url=l),typeof n.archive==`string`&&(r.archive=n.archive),typeof n.extract==`boolean`&&(r.extract=n.extract),typeof n.stripComponents==`number`&&(r.stripComponents=n.stripComponents),typeof n.targetDir==`string`&&(r.targetDir=n.targetDir),!(r.kind===`brew`&&!r.formula)&&!(r.kind===`node`&&!r.package)&&!(r.kind===`go`&&!r.module)&&!(r.kind===`uv`&&!r.package)&&!(r.kind===`download`&&!r.url))return r}function R(e){let t=d({frontmatter:e});if(!t)return;let n=l(t),r=te(t,L),i=a(t);return{always:typeof t.always==`boolean`?t.always:void 0,emoji:typeof t.emoji==`string`?t.emoji:void 0,homepage:typeof t.homepage==`string`?t.homepage:void 0,skillKey:typeof t.skillKey==`string`?t.skillKey:void 0,primaryEnv:typeof t.primaryEnv==`string`?t.primaryEnv:void 0,os:i.length>0?i:void 0,requires:n,install:r.length>0?r:void 0}}function z(e){return{userInvocable:c(u(e,`user-invocable`),!0),disableModelInvocation:c(u(e,`disable-model-invocation`),!1)}}function B(e,t){return t?.metadata?.skillKey??e.name}const pe={"browser.enabled":!0,"browser.evaluateEnabled":!0};function V(e,t){return f(e,t,pe)}function H(e,t){let n=e?.skills?.entries;if(!n||typeof n!=`object`)return;let r=n[t];if(!(!r||typeof r!=`object`))return r}function U(e){if(!e||!Array.isArray(e))return;let t=n(e);return t.length>0?t:void 0}const me=new Set([`openclaw-bundled`]);function he(e){return me.has(e.skill.source)}function ge(e){return U(e?.skills?.allowBundled)}function W(e,t){if(!t||t.length===0||!he(e))return!0;let n=B(e.skill,e);return t.includes(n)||t.includes(e.skill.name)}function _e(e){let{entry:t,config:n,eligibility:r}=e,i=H(n,B(t.skill,t)),a=U(n?.skills?.allowBundled);return i?.enabled===!1||!W(t,a)?!1:o({os:t.metadata?.os,remotePlatforms:r?.remote?.platforms,always:t.metadata?.always,requires:t.metadata?.requires,hasBin:s,hasRemoteBin:r?.remote?.hasBin,hasAnyRemoteBin:r?.remote?.hasAnyBin,hasEnv:e=>!!(process.env[e]||i?.env?.[e]||i?.apiKey&&t.metadata?.primaryEnv===e),isConfigPathTruthy:e=>V(n,e)})}const ve=[/^ANTHROPIC_API_KEY$/i,/^OPENAI_API_KEY$/i,/^GEMINI_API_KEY$/i,/^OPENROUTER_API_KEY$/i,/^MINIMAX_API_KEY$/i,/^ELEVENLABS_API_KEY$/i,/^SYNTHETIC_API_KEY$/i,/^TELEGRAM_BOT_TOKEN$/i,/^DISCORD_BOT_TOKEN$/i,/^SLACK_(BOT|APP)_TOKEN$/i,/^LINE_CHANNEL_SECRET$/i,/^LINE_CHANNEL_ACCESS_TOKEN$/i,/^OPENCLAW_GATEWAY_(TOKEN|PASSWORD)$/i,/^AWS_(SECRET_ACCESS_KEY|SECRET_KEY|SESSION_TOKEN)$/i,/^(GH|GITHUB)_TOKEN$/i,/^(AZURE|AZURE_OPENAI|COHERE|AI_GATEWAY|OPENROUTER)_API_KEY$/i,/_?(API_KEY|TOKEN|PASSWORD|PRIVATE_KEY|SECRET)$/i],ye=[/^LANG$/,/^LC_.*$/i,/^PATH$/i,/^HOME$/i,/^USER$/i,/^SHELL$/i,/^TERM$/i,/^TZ$/i,/^NODE_ENV$/i];function G(e){if(e.includes(`\0`))return`Contains null bytes`;if(e.length>32768)return`Value exceeds maximum length`;if(/^[A-Za-z0-9+/=]{80,}$/.test(e))return`Value looks like base64-encoded credential data`}function K(e,t){return t.some(t=>t.test(e))}function q(e,t={}){let n={},r=[],i=[],a=[...ve,...t.customBlockedPatterns??[]],o=[...ye,...t.customAllowedPatterns??[]];for(let[s,c]of Object.entries(e)){let e=s.trim();if(!e)continue;if(K(e,a)){r.push(e);continue}if(t.strictMode&&!K(e,o)){r.push(e);continue}let l=G(c);if(l){if(l===`Contains null bytes`){r.push(e);continue}i.push(`${e}: ${l}`)}n[e]=c}return{allowed:n,blocked:r,warnings:i}}const J=e(`env-overrides`),Y=new Map;function be(){return new Set(Y.keys())}function xe(e,t){let n=Y.get(e);return n?(n.count+=1,process.env[e]===void 0&&(process.env[e]=n.value),!0):process.env[e]===void 0?(Y.set(e,{baseline:process.env[e],value:t,count:1}),!0):!1}function Se(e){let t=Y.get(e);if(t){if(--t.count,t.count>0){process.env[e]===void 0&&(process.env[e]=t.value);return}Y.delete(e),t.baseline===void 0?delete process.env[e]:process.env[e]=t.baseline}}const Ce=[/^OPENSSL_CONF$/i];function X(e,t){return t.some(t=>t.test(e))}function Z(e){return v(e)||X(e,Ce)}function we(e){if(Object.keys(e.overrides).length===0)return{allowed:{},blocked:[],warnings:[]};let t=q(e.overrides),n={},r=new Set,i=[...t.warnings];for(let[e,i]of Object.entries(t.allowed)){if(Z(e)){r.add(e);continue}n[e]=i}for(let a of t.blocked){if(Z(a)||!e.allowedSensitiveKeys.has(a)){r.add(a);continue}let t=e.overrides[a];if(!t)continue;let o=G(t);if(o){if(o===`Contains null bytes`){r.add(a);continue}i.push(`${a}: ${o}`)}n[a]=t}return{allowed:n,blocked:[...r],warnings:i}}function Q(e){let{updates:t,skillConfig:n,primaryEnv:i,requiredEnv:a,skillKey:o}=e,s=new Set,c=i?.trim();c&&s.add(c);for(let e of a??[]){let t=e.trim();t&&s.add(t)}let l={};if(n.env)for(let[e,t]of Object.entries(n.env)){let n=e.trim(),r=process.env[n]!==void 0&&!Y.has(n);!n||!t||r||(l[n]=t)}let u=r({value:n.apiKey,path:`skills.entries.${o}.apiKey`})??``;c&&(process.env[c]===void 0||Y.has(c))&&u&&(l[c]||(l[c]=u));let d=we({overrides:l,allowedSensitiveKeys:s});d.blocked.length>0&&J.warn(`Blocked skill env overrides for ${o}: ${d.blocked.join(`, `)}`),d.warnings.length>0&&J.warn(`Suspicious skill env overrides for ${o}: ${d.warnings.join(`, `)}`);for(let[e,n]of Object.entries(d.allowed))xe(e,n)&&(t.push({key:e}),process.env[e]=Y.get(e)?.value??n)}function $(e){return()=>{for(let t of e)Se(t.key)}}function Te(e){let{skills:t,config:n}=e,r=[];for(let e of t){let t=B(e.skill,e),i=H(n,t);i&&Q({updates:r,skillConfig:i,primaryEnv:e.metadata?.primaryEnv,requiredEnv:e.metadata?.requires?.env,skillKey:t})}return $(r)}function Ee(e){let{snapshot:t,config:n}=e;if(!t)return()=>{};let r=[];for(let e of t.skills){let t=H(n,e.name);t&&Q({updates:r,skillConfig:t,primaryEnv:e.primaryEnv,requiredEnv:e.requiredEnv,skillKey:e.name})}return $(r)}export{fe as S,w as _,W as a,_ as b,H as c,R as d,z as f,C as g,E as h,q as i,_e as l,D as m,Ee as n,V as o,B as p,be as r,ge as s,Te as t,O as u,y as v,de as x,v as y};
|
|
2
|
+
//# sourceMappingURL=env-overrides-DHtB4kK3.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-C5XF2Fy5.js";import{r as t}from"./string-normalization-BrUPaXaM.js";import{c as n}from"./types.secrets-C-5U96pc.js";import{t as r}from"./openclaw-exec-env-BWbOu_YC.js";import{a as i,c as a,d as o,f as s,i as c,l,n as u,o as d,p as f,r as ee,s as te,t as ne,u as re}from"./frontmatter-BkZkwkVO.js";var p={blockedKeys:[`NODE_OPTIONS`,`NODE_PATH`,`PYTHONHOME`,`PYTHONPATH`,`PERL5LIB`,`PERL5OPT`,`RUBYLIB`,`RUBYOPT`,`BASH_ENV`,`ENV`,`GIT_EXTERNAL_DIFF`,`SHELL`,`SHELLOPTS`,`PS4`,`GCONV_PATH`,`IFS`,`SSLKEYLOGFILE`],blockedOverrideKeys:[`HOME`,`ZDOTDIR`,`GIT_SSH_COMMAND`,`GIT_SSH`,`GIT_PROXY_COMMAND`,`GIT_ASKPASS`,`SSH_ASKPASS`,`LESSOPEN`,`LESSCLOSE`,`PAGER`,`MANPAGER`,`GIT_PAGER`,`EDITOR`,`VISUAL`,`FCEDIT`,`SUDO_EDITOR`,`PROMPT_COMMAND`,`HISTFILE`,`PERL5DB`,`PERL5DBCMD`,`OPENSSL_CONF`,`OPENSSL_ENGINES`,`PYTHONSTARTUP`,`WGETRC`,`CURL_HOME`],blockedOverridePrefixes:[`GIT_CONFIG_`,`NPM_CONFIG_`],blockedPrefixes:[`DYLD_`,`LD_`,`BASH_FUNC_`]};const m=/^[A-Za-z_][A-Za-z0-9_]*$/,h=p,g=Object.freeze(h.blockedKeys.map(e=>e.toUpperCase())),ie=Object.freeze(h.blockedPrefixes.map(e=>e.toUpperCase())),ae=Object.freeze((h.blockedOverrideKeys??[]).map(e=>e.toUpperCase())),oe=Object.freeze((h.blockedOverridePrefixes??[]).map(e=>e.toUpperCase())),se=Object.freeze([`TERM`,`LANG`,`LC_ALL`,`LC_CTYPE`,`LC_MESSAGES`,`COLORTERM`,`NO_COLOR`,`FORCE_COLOR`]),ce=new Set(g),le=new Set(ae),ue=new Set(se);function _(e,t){let n=e.trim();return!n||t?.portable&&!m.test(n)?null:n}function v(e){let t=_(e);if(!t)return!1;let n=t.toUpperCase();return ce.has(n)?!0:ie.some(e=>n.startsWith(e))}function y(e){let t=_(e);if(!t)return!1;let n=t.toUpperCase();return le.has(n)?!0:oe.some(e=>n.startsWith(e))}function de(e){let t=e?.baseEnv??process.env,n=e?.overrides??void 0,i=e?.blockPathOverrides??!0,a={};for(let[e,n]of Object.entries(t)){if(typeof n!=`string`)continue;let t=_(e,{portable:!0});!t||v(t)||(a[t]=n)}if(!n)return r(a);for(let[e,t]of Object.entries(n)){if(typeof t!=`string`)continue;let n=_(e,{portable:!0});if(!n)continue;let r=n.toUpperCase();i&&r===`PATH`||v(r)||y(r)||(a[n]=t)}return r(a)}function fe(e){let t=e?.overrides??void 0;if(!t)return;if(!e?.shellWrapper)return t;let n={};for(let[e,r]of Object.entries(t)){if(typeof r!=`string`)continue;let t=_(e,{portable:!0});t&&ue.has(t.toUpperCase())&&(n[t]=r)}return Object.keys(n).length>0?n:void 0}const b=/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z.-]+))?(?:\+([0-9A-Za-z.-]+))?$/,x=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function S(e){let t=e.trim();if(!t)return{ok:!1,error:`missing npm spec`};if(/\s/.test(t))return{ok:!1,error:`unsupported npm spec: whitespace is not allowed`};if(t.includes(`://`))return{ok:!1,error:`unsupported npm spec: URLs are not allowed`};if(t.includes(`#`))return{ok:!1,error:`unsupported npm spec: git refs are not allowed`};if(t.includes(`:`))return{ok:!1,error:`unsupported npm spec: protocol specs are not allowed`};let n=t.lastIndexOf(`@`),r=n>0,i=r?t.slice(0,n):t,a=r?t.slice(n+1):``;if(!(i.startsWith(`@`)?/^@[a-z0-9][a-z0-9-._~]*\/[a-z0-9][a-z0-9-._~]*$/.test(i):/^[a-z0-9][a-z0-9-._~]*$/.test(i)))return{ok:!1,error:`unsupported npm spec: expected <name> or <name>@<version> from the npm registry`};if(!r)return{ok:!0,parsed:{name:i,raw:t,selectorKind:`none`,selectorIsPrerelease:!1}};if(!a)return{ok:!1,error:`unsupported npm spec: missing version/tag after @`};if(/[\\/]/.test(a))return{ok:!1,error:`unsupported npm spec: invalid version/tag`};let o=b.exec(a);return o?{ok:!0,parsed:{name:i,raw:t,selector:a,selectorKind:`exact-version`,selectorIsPrerelease:!!o[4]}}:x.test(a)?{ok:!0,parsed:{name:i,raw:t,selector:a,selectorKind:`tag`,selectorIsPrerelease:!1}}:{ok:!1,error:`unsupported npm spec: use an exact version or dist-tag (ranges are not allowed)`}}function C(e){let t=S(e);return t.ok?t.parsed:null}function w(e){let t=S(e);return t.ok?null:t.error}function T(e){return!!b.exec(e.trim())?.[4]}function E(e){return!e.resolvedVersion||!T(e.resolvedVersion)?!0:e.spec.selectorKind===`none`?!1:e.spec.selectorKind===`exact-version`?e.spec.selectorIsPrerelease:e.spec.selector?.toLowerCase()!==`latest`}function D(e){let t=e.spec.selectorKind===`none`||e.spec.selector?.toLowerCase()===`latest`?`Use "${e.spec.name}@beta" (or another prerelease tag) or an exact prerelease version to opt in explicitly.`:`Use an explicit prerelease tag or exact prerelease version if you want prerelease installs.`;return`Resolved ${e.spec.raw} to prerelease version ${e.resolvedVersion}, but prereleases are only installed when explicitly requested. ${t}`}function O(e){return re(e)}const k=/^[A-Za-z0-9][A-Za-z0-9@+._/-]*$/,A=/^[A-Za-z0-9][A-Za-z0-9._~+\-/]*(?:@[A-Za-z0-9][A-Za-z0-9._~+\-/]*)?$/,j=/^[A-Za-z0-9][A-Za-z0-9._\-[\]=<>!~+,]*$/;function M(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`-`)||t.includes(`\\`)||t.includes(`..`))&&k.test(t))return t}function N(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`-`))&&w(t)===null)return t}function P(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`-`)||t.includes(`\\`)||t.includes(`://`))&&A.test(t))return t}function F(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||t.startsWith(`-`)||t.includes(`\\`)||t.includes(`://`))&&j.test(t))return t}function I(e){if(typeof e!=`string`)return;let t=e.trim();if(!(!t||/\s/.test(t)))try{let e=new URL(t);return e.protocol!==`http:`&&e.protocol!==`https:`?void 0:e.toString()}catch{return}}function L(e){let t=i(e,[`brew`,`node`,`go`,`uv`,`download`]);if(!t)return;let{raw:n}=t,r=ne({kind:t.kind},t),a=ee(n.os);a.length>0&&(r.os=a);let o=M(n.formula);o&&(r.formula=o);let s=M(n.cask);if(!r.formula&&s&&(r.formula=s),r.kind===`node`){let e=N(n.package);e&&(r.package=e)}else if(r.kind===`uv`){let e=F(n.package);e&&(r.package=e)}let c=P(n.module);c&&(r.module=c);let l=I(n.url);if(l&&(r.url=l),typeof n.archive==`string`&&(r.archive=n.archive),typeof n.extract==`boolean`&&(r.extract=n.extract),typeof n.stripComponents==`number`&&(r.stripComponents=n.stripComponents),typeof n.targetDir==`string`&&(r.targetDir=n.targetDir),!(r.kind===`brew`&&!r.formula)&&!(r.kind===`node`&&!r.package)&&!(r.kind===`go`&&!r.module)&&!(r.kind===`uv`&&!r.package)&&!(r.kind===`download`&&!r.url))return r}function R(e){let t=d({frontmatter:e});if(!t)return;let n=l(t),r=te(t,L),i=a(t);return{always:typeof t.always==`boolean`?t.always:void 0,emoji:typeof t.emoji==`string`?t.emoji:void 0,homepage:typeof t.homepage==`string`?t.homepage:void 0,skillKey:typeof t.skillKey==`string`?t.skillKey:void 0,primaryEnv:typeof t.primaryEnv==`string`?t.primaryEnv:void 0,os:i.length>0?i:void 0,requires:n,install:r.length>0?r:void 0}}function z(e){return{userInvocable:c(u(e,`user-invocable`),!0),disableModelInvocation:c(u(e,`disable-model-invocation`),!1)}}function B(e,t){return t?.metadata?.skillKey??e.name}const pe={"browser.enabled":!0,"browser.evaluateEnabled":!0};function V(e,t){return f(e,t,pe)}function H(e,t){let n=e?.skills?.entries;if(!n||typeof n!=`object`)return;let r=n[t];if(!(!r||typeof r!=`object`))return r}function U(e){if(!e||!Array.isArray(e))return;let n=t(e);return n.length>0?n:void 0}const me=new Set([`openclaw-bundled`]);function he(e){return me.has(e.skill.source)}function ge(e){return U(e?.skills?.allowBundled)}function W(e,t){if(!t||t.length===0||!he(e))return!0;let n=B(e.skill,e);return t.includes(n)||t.includes(e.skill.name)}function _e(e){let{entry:t,config:n,eligibility:r}=e,i=H(n,B(t.skill,t)),a=U(n?.skills?.allowBundled);return i?.enabled===!1||!W(t,a)?!1:o({os:t.metadata?.os,remotePlatforms:r?.remote?.platforms,always:t.metadata?.always,requires:t.metadata?.requires,hasBin:s,hasRemoteBin:r?.remote?.hasBin,hasAnyRemoteBin:r?.remote?.hasAnyBin,hasEnv:e=>!!(process.env[e]||i?.env?.[e]||i?.apiKey&&t.metadata?.primaryEnv===e),isConfigPathTruthy:e=>V(n,e)})}const ve=[/^ANTHROPIC_API_KEY$/i,/^OPENAI_API_KEY$/i,/^GEMINI_API_KEY$/i,/^OPENROUTER_API_KEY$/i,/^MINIMAX_API_KEY$/i,/^ELEVENLABS_API_KEY$/i,/^SYNTHETIC_API_KEY$/i,/^TELEGRAM_BOT_TOKEN$/i,/^DISCORD_BOT_TOKEN$/i,/^SLACK_(BOT|APP)_TOKEN$/i,/^LINE_CHANNEL_SECRET$/i,/^LINE_CHANNEL_ACCESS_TOKEN$/i,/^OPENCLAW_GATEWAY_(TOKEN|PASSWORD)$/i,/^AWS_(SECRET_ACCESS_KEY|SECRET_KEY|SESSION_TOKEN)$/i,/^(GH|GITHUB)_TOKEN$/i,/^(AZURE|AZURE_OPENAI|COHERE|AI_GATEWAY|OPENROUTER)_API_KEY$/i,/_?(API_KEY|TOKEN|PASSWORD|PRIVATE_KEY|SECRET)$/i],ye=[/^LANG$/,/^LC_.*$/i,/^PATH$/i,/^HOME$/i,/^USER$/i,/^SHELL$/i,/^TERM$/i,/^TZ$/i,/^NODE_ENV$/i];function G(e){if(e.includes(`\0`))return`Contains null bytes`;if(e.length>32768)return`Value exceeds maximum length`;if(/^[A-Za-z0-9+/=]{80,}$/.test(e))return`Value looks like base64-encoded credential data`}function K(e,t){return t.some(t=>t.test(e))}function q(e,t={}){let n={},r=[],i=[],a=[...ve,...t.customBlockedPatterns??[]],o=[...ye,...t.customAllowedPatterns??[]];for(let[s,c]of Object.entries(e)){let e=s.trim();if(!e)continue;if(K(e,a)){r.push(e);continue}if(t.strictMode&&!K(e,o)){r.push(e);continue}let l=G(c);if(l){if(l===`Contains null bytes`){r.push(e);continue}i.push(`${e}: ${l}`)}n[e]=c}return{allowed:n,blocked:r,warnings:i}}const J=e(`env-overrides`),Y=new Map;function be(){return new Set(Y.keys())}function xe(e,t){let n=Y.get(e);return n?(n.count+=1,process.env[e]===void 0&&(process.env[e]=n.value),!0):process.env[e]===void 0?(Y.set(e,{baseline:process.env[e],value:t,count:1}),!0):!1}function Se(e){let t=Y.get(e);if(t){if(--t.count,t.count>0){process.env[e]===void 0&&(process.env[e]=t.value);return}Y.delete(e),t.baseline===void 0?delete process.env[e]:process.env[e]=t.baseline}}const Ce=[/^OPENSSL_CONF$/i];function X(e,t){return t.some(t=>t.test(e))}function Z(e){return v(e)||X(e,Ce)}function we(e){if(Object.keys(e.overrides).length===0)return{allowed:{},blocked:[],warnings:[]};let t=q(e.overrides),n={},r=new Set,i=[...t.warnings];for(let[e,i]of Object.entries(t.allowed)){if(Z(e)){r.add(e);continue}n[e]=i}for(let a of t.blocked){if(Z(a)||!e.allowedSensitiveKeys.has(a)){r.add(a);continue}let t=e.overrides[a];if(!t)continue;let o=G(t);if(o){if(o===`Contains null bytes`){r.add(a);continue}i.push(`${a}: ${o}`)}n[a]=t}return{allowed:n,blocked:[...r],warnings:i}}function Q(e){let{updates:t,skillConfig:r,primaryEnv:i,requiredEnv:a,skillKey:o}=e,s=new Set,c=i?.trim();c&&s.add(c);for(let e of a??[]){let t=e.trim();t&&s.add(t)}let l={};if(r.env)for(let[e,t]of Object.entries(r.env)){let n=e.trim(),r=process.env[n]!==void 0&&!Y.has(n);!n||!t||r||(l[n]=t)}let u=n({value:r.apiKey,path:`skills.entries.${o}.apiKey`})??``;c&&(process.env[c]===void 0||Y.has(c))&&u&&(l[c]||(l[c]=u));let d=we({overrides:l,allowedSensitiveKeys:s});d.blocked.length>0&&J.warn(`Blocked skill env overrides for ${o}: ${d.blocked.join(`, `)}`),d.warnings.length>0&&J.warn(`Suspicious skill env overrides for ${o}: ${d.warnings.join(`, `)}`);for(let[e,n]of Object.entries(d.allowed))xe(e,n)&&(t.push({key:e}),process.env[e]=Y.get(e)?.value??n)}function $(e){return()=>{for(let t of e)Se(t.key)}}function Te(e){let{skills:t,config:n}=e,r=[];for(let e of t){let t=B(e.skill,e),i=H(n,t);i&&Q({updates:r,skillConfig:i,primaryEnv:e.metadata?.primaryEnv,requiredEnv:e.metadata?.requires?.env,skillKey:t})}return $(r)}function Ee(e){let{snapshot:t,config:n}=e;if(!t)return()=>{};let r=[];for(let e of t.skills){let t=H(n,e.name);t&&Q({updates:r,skillConfig:t,primaryEnv:e.primaryEnv,requiredEnv:e.requiredEnv,skillKey:e.name})}return $(r)}export{fe as S,w as _,W as a,_ as b,H as c,R as d,z as f,C as g,E as h,q as i,_e as l,D as m,Ee as n,V as o,B as p,be as r,ge as s,Te as t,O as u,y as v,de as x,v as y};
|
|
2
|
+
//# sourceMappingURL=env-overrides-DXJbFrwI.js.map
|
package/dist/errors-6SQWM9dj.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{n as e}from"./redact-CnRxK70G.js";function t(e){if(!e||typeof e!=`object`)return;let t=e.code;if(typeof t==`string`)return t;if(typeof t==`number`)return String(t)}function n(e){if(!e||typeof e!=`object`)return``;let t=e.name;return typeof t==`string`?t:``}function r(e,t){let n=[e],r=new Set,i=[];for(;n.length>0;){let e=n.shift();if(!(e==null||r.has(e))&&(r.add(e),i.push(e),!(!e||typeof e!=`object`||!t)))for(let i of t(e))i!=null&&!r.has(i)&&n.push(i)}return i}function i(e){return!!(e&&typeof e==`object`&&`code`in e)}function a(e,t){return i(e)&&e.code===t}function o(t){let n;if(t instanceof Error)n=t.message||t.name||`Error`;else if(typeof t==`string`)n=t;else if(typeof t==`number`||typeof t==`boolean`||typeof t==`bigint`)n=String(t);else try{n=JSON.stringify(t)}catch{n=Object.prototype.toString.call(t)}return e(n)}function s(n){return t(n)===`INVALID_CONFIG`?o(n):n instanceof Error?e(n.stack??n.message??n.name):o(n)}export{a,s as i,t as n,i as o,o as r,n as s,r as t};
|
|
2
|
+
//# sourceMappingURL=errors-6SQWM9dj.js.map
|
package/dist/errors-Bunti32V.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{n as e}from"./redact-3_CiXMY6.js";function t(e){if(!e||typeof e!=`object`)return;let t=e.code;if(typeof t==`string`)return t;if(typeof t==`number`)return String(t)}function n(e){if(!e||typeof e!=`object`)return``;let t=e.name;return typeof t==`string`?t:``}function r(e,t){let n=[e],r=new Set,i=[];for(;n.length>0;){let e=n.shift();if(!(e==null||r.has(e))&&(r.add(e),i.push(e),!(!e||typeof e!=`object`||!t)))for(let i of t(e))i!=null&&!r.has(i)&&n.push(i)}return i}function i(e){return!!(e&&typeof e==`object`&&`code`in e)}function a(e,t){return i(e)&&e.code===t}function o(t){let n;if(t instanceof Error)n=t.message||t.name||`Error`;else if(typeof t==`string`)n=t;else if(typeof t==`number`||typeof t==`boolean`||typeof t==`bigint`)n=String(t);else try{n=JSON.stringify(t)}catch{n=Object.prototype.toString.call(t)}return e(n)}function s(n){return t(n)===`INVALID_CONFIG`?o(n):n instanceof Error?e(n.stack??n.message??n.name):o(n)}export{a,s as i,t as n,i as o,o as r,n as s,r as t};
|
|
2
|
+
//# sourceMappingURL=errors-Bunti32V.js.map
|
package/dist/exec-B3eleY5O.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{T as e,v as t}from"./subsystem-BLbY429l.js";import{n}from"./entry.js";import{n as r,t as i}from"./logger-kQAOe3qp.js";import{execFile as a,spawn as o}from"node:child_process";import s from"node:process";import c from"node:path";import l from"node:fs";import{promisify as u}from"node:util";const d=[`EBADF`];function f(e){return[e.hasInput?`pipe`:e.preferInherit?`inherit`:`pipe`,`pipe`,`pipe`]}function p(e,t){let n=e&&typeof e==`object`&&`code`in e?String(e.code):``;return n.length>0&&t.includes(n)}async function m(e,t,n){let r=e(t[0],t.slice(1),n);return await new Promise((e,t)=>{let n=!1,i=()=>{r.removeListener(`error`,o),r.removeListener(`spawn`,s)},a=()=>{n||(n=!0,i(),e(r))},o=e=>{n||(n=!0,i(),t(e))},s=()=>{a()};r.once(`error`,o),r.once(`spawn`,s),process.nextTick(()=>{typeof r.pid==`number`&&a()})})}async function h(e){let t=e.spawnImpl??o,n=e.retryCodes??d,r={...e.options},i=e.fallbacks??[],a=[{options:r},...i.map(e=>({label:e.label,options:{...r,...e.options}}))],s;for(let r=0;r<a.length;r+=1){let o=a[r];try{return{child:await m(t,e.argv,o.options),usedFallback:r>0,fallbackLabel:o.label}}catch(t){s=t;let a=i[r];if(!a||!p(t,n))throw t;e.onFallback?.(t,a)}}throw s}function g(e){if((e.platform??s.platform)!==`win32`)return e.command;let t=c.basename(e.command).toLowerCase();return c.extname(t)?e.command:e.cmdCommands.includes(t)?`${e.command}.cmd`:e.command}const _=u(a),v=/[&|<>^%\r\n]/;function y(e){if(s.platform!==`win32`)return!1;let t=c.extname(e).toLowerCase();return t===`.cmd`||t===`.bat`}function b(e){if(v.test(e))throw Error(`Unsafe Windows cmd.exe argument detected: ${JSON.stringify(e)}. Pass an explicit shell-wrapper argv at the call site instead.`);return!e.includes(` `)&&!e.includes(`"`)?e:`"${e.replace(/"/g,`""`)}"`}function x(e,t){return[b(e),...t.map(b)].join(` `)}function S(e){if(s.platform!==`win32`||e.length===0)return null;let t=c.basename(e[0]).toLowerCase().replace(/\.(cmd|exe|bat)$/,``),n=t===`npx`?`npx-cli.js`:t===`npm`?`npm-cli.js`:null;if(!n)return null;let r=c.dirname(s.execPath),i=c.join(r,`node_modules`,`npm`,`bin`,n);if(!l.existsSync(i)){let t=e[0]??``;return[c.extname(t).toLowerCase()?t:`${t}.cmd`,...e.slice(1)]}return[s.execPath,i,...e.slice(1)]}function C(e){return g({command:e,cmdCommands:[`pnpm`,`yarn`]})}function w(e){return!1}async function T(n,a,o=1e4){let c=typeof o==`number`?{timeout:o,encoding:`utf8`}:{timeout:o.timeoutMs,maxBuffer:o.maxBuffer,cwd:o.cwd,encoding:`utf8`};try{let t=[n,...a],o,l;if(s.platform===`win32`){let e=S(t);e?(o=e[0]??``,l=e.slice(1)):(o=C(n),l=a)}else o=C(n),l=a;let{stdout:u,stderr:d}=y(o)?await _(s.env.ComSpec??`cmd.exe`,[`/d`,`/s`,`/c`,x(o,l)],{...c,windowsVerbatimArguments:!0}):await _(o,l,c);return e()&&(u.trim()&&i(u.trim()),d.trim()&&r(d.trim())),{stdout:u,stderr:d}}catch(i){throw e()&&r(t(`Command failed: ${n} ${a.join(` `)}`)),i}}function E(e){let t=e.baseEnv??s.env,r=e.argv,i=(()=>{let e=c.basename(r[0]??``);return e===`npm`||e===`npm.cmd`||e===`npm.exe`?!0:e===`node`||e===`node.exe`?(r[1]??``).includes(`npm-cli.js`):!1})(),a=e.env?{...t,...e.env}:{...t},o=Object.fromEntries(Object.entries(a).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)]));return i&&(o.NPM_CONFIG_FUND??=`false`,o.npm_config_fund??=`false`),n(o)}async function D(e,t){let n=typeof t==`number`?{timeoutMs:t}:t,{timeoutMs:r,cwd:i,input:a,env:c,noOutputTimeoutMs:l}=n,{windowsVerbatimArguments:u}=n,d=a!==void 0,p=E({argv:e,env:c}),m=f({hasInput:d,preferInherit:!0}),h=s.platform===`win32`?S(e)??e:e,g=h===e?C(e[0]??``):h[0]??``,_=y(g),v=o(_?s.env.ComSpec??`cmd.exe`:g,_?[`/d`,`/s`,`/c`,x(g,h.slice(1))]:h.slice(1),{stdio:m,cwd:i,env:p,windowsVerbatimArguments:_?!0:u,...w({resolvedCommand:g,platform:s.platform})?{shell:!0}:{}});return await new Promise((e,t)=>{let n=``,i=``,o=!1,s=!1,c=!1,u=null,f=typeof l==`number`&&Number.isFinite(l)&&l>0,p=()=>{u&&=(clearTimeout(u),null)},m=()=>{!f||o||(p(),u=setTimeout(()=>{o||(c=!0,typeof v.kill==`function`&&v.kill(`SIGKILL`))},Math.floor(l)))},h=setTimeout(()=>{s=!0,typeof v.kill==`function`&&v.kill(`SIGKILL`)},r);m(),d&&v.stdin&&(v.stdin.write(a??``),v.stdin.end()),v.stdout?.on(`data`,e=>{n+=e.toString(),m()}),v.stderr?.on(`data`,e=>{i+=e.toString(),m()}),v.on(`error`,e=>{o||(o=!0,clearTimeout(h),p(),t(e))}),v.on(`close`,(t,r)=>{if(o)return;o=!0,clearTimeout(h),p();let a=c?`no-output-timeout`:s?`timeout`:r==null?`exit`:`signal`;e({pid:v.pid??void 0,stdout:n,stderr:i,code:t,signal:r,killed:v.killed,termination:a,noOutputTimedOut:c})})})}export{h as i,T as n,g as r,D as t};
|
|
2
|
+
//# sourceMappingURL=exec-B3eleY5O.js.map
|
package/dist/exec-DHqLtFYt.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{T as e,v as t}from"./subsystem-C5XF2Fy5.js";import{t as n}from"./openclaw-exec-env-BWbOu_YC.js";import{n as r,t as i}from"./logger-Bl8URnrW.js";import a from"node:process";import o from"node:fs";import s from"node:path";import{promisify as c}from"node:util";import{execFile as l,spawn as u}from"node:child_process";const d=[`EBADF`];function f(e){return[e.hasInput?`pipe`:e.preferInherit?`inherit`:`pipe`,`pipe`,`pipe`]}function p(e,t){let n=e&&typeof e==`object`&&`code`in e?String(e.code):``;return n.length>0&&t.includes(n)}async function m(e,t,n){let r=e(t[0],t.slice(1),n);return await new Promise((e,t)=>{let n=!1,i=()=>{r.removeListener(`error`,o),r.removeListener(`spawn`,s)},a=()=>{n||(n=!0,i(),e(r))},o=e=>{n||(n=!0,i(),t(e))},s=()=>{a()};r.once(`error`,o),r.once(`spawn`,s),process.nextTick(()=>{typeof r.pid==`number`&&a()})})}async function h(e){let t=e.spawnImpl??u,n=e.retryCodes??d,r={...e.options},i=e.fallbacks??[],a=[{options:r},...i.map(e=>({label:e.label,options:{...r,...e.options}}))],o;for(let r=0;r<a.length;r+=1){let s=a[r];try{return{child:await m(t,e.argv,s.options),usedFallback:r>0,fallbackLabel:s.label}}catch(t){o=t;let a=i[r];if(!a||!p(t,n))throw t;e.onFallback?.(t,a)}}throw o}function g(e){if((e.platform??a.platform)!==`win32`)return e.command;let t=s.basename(e.command).toLowerCase();return s.extname(t)?e.command:e.cmdCommands.includes(t)?`${e.command}.cmd`:e.command}const _=c(l),v=/[&|<>^%\r\n]/;function y(e){if(a.platform!==`win32`)return!1;let t=s.extname(e).toLowerCase();return t===`.cmd`||t===`.bat`}function b(e){if(v.test(e))throw Error(`Unsafe Windows cmd.exe argument detected: ${JSON.stringify(e)}. Pass an explicit shell-wrapper argv at the call site instead.`);return!e.includes(` `)&&!e.includes(`"`)?e:`"${e.replace(/"/g,`""`)}"`}function x(e,t){return[b(e),...t.map(b)].join(` `)}function S(e){if(a.platform!==`win32`||e.length===0)return null;let t=s.basename(e[0]).toLowerCase().replace(/\.(cmd|exe|bat)$/,``),n=t===`npx`?`npx-cli.js`:t===`npm`?`npm-cli.js`:null;if(!n)return null;let r=s.dirname(a.execPath),i=s.join(r,`node_modules`,`npm`,`bin`,n);if(!o.existsSync(i)){let t=e[0]??``;return[s.extname(t).toLowerCase()?t:`${t}.cmd`,...e.slice(1)]}return[a.execPath,i,...e.slice(1)]}function C(e){return g({command:e,cmdCommands:[`pnpm`,`yarn`]})}function w(e){return!1}async function T(n,o,s=1e4){let c=typeof s==`number`?{timeout:s,encoding:`utf8`}:{timeout:s.timeoutMs,maxBuffer:s.maxBuffer,cwd:s.cwd,encoding:`utf8`};try{let t=[n,...o],s,l;if(a.platform===`win32`){let e=S(t);e?(s=e[0]??``,l=e.slice(1)):(s=C(n),l=o)}else s=C(n),l=o;let{stdout:u,stderr:d}=y(s)?await _(a.env.ComSpec??`cmd.exe`,[`/d`,`/s`,`/c`,x(s,l)],{...c,windowsVerbatimArguments:!0}):await _(s,l,c);return e()&&(u.trim()&&i(u.trim()),d.trim()&&r(d.trim())),{stdout:u,stderr:d}}catch(i){throw e()&&r(t(`Command failed: ${n} ${o.join(` `)}`)),i}}function E(e){let t=e.baseEnv??a.env,r=e.argv,i=(()=>{let e=s.basename(r[0]??``);return e===`npm`||e===`npm.cmd`||e===`npm.exe`?!0:e===`node`||e===`node.exe`?(r[1]??``).includes(`npm-cli.js`):!1})(),o=e.env?{...t,...e.env}:{...t},c=Object.fromEntries(Object.entries(o).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)]));return i&&(c.NPM_CONFIG_FUND??=`false`,c.npm_config_fund??=`false`),n(c)}async function D(e,t){let n=typeof t==`number`?{timeoutMs:t}:t,{timeoutMs:r,cwd:i,input:o,env:s,noOutputTimeoutMs:c}=n,{windowsVerbatimArguments:l}=n,d=o!==void 0,p=E({argv:e,env:s}),m=f({hasInput:d,preferInherit:!0}),h=a.platform===`win32`?S(e)??e:e,g=h===e?C(e[0]??``):h[0]??``,_=y(g),v=u(_?a.env.ComSpec??`cmd.exe`:g,_?[`/d`,`/s`,`/c`,x(g,h.slice(1))]:h.slice(1),{stdio:m,cwd:i,env:p,windowsVerbatimArguments:_?!0:l,...w({resolvedCommand:g,platform:a.platform})?{shell:!0}:{}});return await new Promise((e,t)=>{let n=``,i=``,a=!1,s=!1,l=!1,u=null,f=typeof c==`number`&&Number.isFinite(c)&&c>0,p=()=>{u&&=(clearTimeout(u),null)},m=()=>{!f||a||(p(),u=setTimeout(()=>{a||(l=!0,typeof v.kill==`function`&&v.kill(`SIGKILL`))},Math.floor(c)))},h=setTimeout(()=>{s=!0,typeof v.kill==`function`&&v.kill(`SIGKILL`)},r);m(),d&&v.stdin&&(v.stdin.write(o??``),v.stdin.end()),v.stdout?.on(`data`,e=>{n+=e.toString(),m()}),v.stderr?.on(`data`,e=>{i+=e.toString(),m()}),v.on(`error`,e=>{a||(a=!0,clearTimeout(h),p(),t(e))}),v.on(`close`,(t,r)=>{if(a)return;a=!0,clearTimeout(h),p();let o=l?`no-output-timeout`:s?`timeout`:r==null?`exit`:`signal`;e({pid:v.pid??void 0,stdout:n,stderr:i,code:t,signal:r,killed:v.killed,termination:o,noOutputTimedOut:l})})})}export{h as i,T as n,g as r,D as t};
|
|
2
|
+
//# sourceMappingURL=exec-DHqLtFYt.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import{_ as e}from"./paths-BjD3T_xq.js";import{t}from"./session-key-C7F_iqYg.js";import n from"node:path";import r from"node:fs";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=n.dirname(e);r.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(!r.existsSync(e))return{path:e,exists:!1,raw:null,file:y({version:1,agents:{}}),hash:d(null)};let t=r.readFileSync(e,`utf8`),n=null;try{n=JSON.parse(t)}catch{n=null}return{path:e,exists:!0,raw:t,file:n?.version===1?y(n):y({version:1,agents:{}}),hash:d(t)}}function C(){let e=f();try{if(!r.existsSync(e))return y({version:1,agents:{}});let t=r.readFileSync(e,`utf8`),n=JSON.parse(t);return n?.version===1?y(n):y({version:1,agents:{}})}catch{return y({version:1,agents:{}})}}function w(e){let t=f();g(t),r.writeFileSync(t,`${JSON.stringify(e,null,2)}\n`,{mode:384});try{r.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-BXO9Cezj.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
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 +1,2 @@
|
|
|
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-BlC_rXAN.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-CE3nYh0K.js.map
|
|
@@ -1 +1,2 @@
|
|
|
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-T8DuH3ax.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-D8mN7nxV.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
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-BlC_rXAN.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-DHbOKEGc.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-CqoMqP5b.js";import"./exec-approvals-allowlist-CE3nYh0K.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-iFvDyHYd.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-B3ReBNXG.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-CUcuN63y.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
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-T8DuH3ax.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-CKTicUKS.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-D8mN7nxV.js";import"./call-B8Fb4_oh.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-tEEvY0kH.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-DumDLalJ.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-CxUGD08t.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Ic as e,Rc as t,ml as n,pl as r,zc as i}from"./model-selection-BlC_rXAN.js";import{i as a}from"./exec-approvals-allowlist-CE3nYh0K.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-Dt0GchLp.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Ss as e,Xs as t,Ys as n,xs as r,ys as i}from"./auth-profiles-T8DuH3ax.js";import{i as a}from"./exec-approvals-allowlist-D8mN7nxV.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-dcCS_Adf.js.map
|
package/dist/fetch-B9tORjG8.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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-cu7DGSRF.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-B9tORjG8.js.map
|
package/dist/fetch-BJT3BrkJ.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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-B_wRifvZ.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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-D10s0raB.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-B_wRifvZ.js.map
|
package/dist/fetch-Bn0mWg6a.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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-CQaNr5J1.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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-BrTtJw7h.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-CQaNr5J1.js.map
|
package/dist/fetch-Ce-scEU-.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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-DHo17YmK.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
1
1
|
import{_i as e,gi as t,hi as n,yi as r}from"./auth-profiles-T8DuH3ax.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-BrTtJw7h.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Ji as e,Yi as t,Zi as n,qi as r}from"./model-selection-B5JsBS9D.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-D10s0raB.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
import{Aa as e,Ma as t,Pa as n,ja as r}from"./model-selection-BlC_rXAN.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-DPdY0NXR.js.map
|
|
@@ -1 +1,2 @@
|
|
|
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-vfhBuN9O.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-cu7DGSRF.js.map
|
package/dist/fetch-hy0JKSsm.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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 +1,2 @@
|
|
|
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,3 +4,4 @@ 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,3 +4,4 @@ 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,3 +4,4 @@ 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
|
|
@@ -208,3 +208,4 @@ Add your local tool notes here.
|
|
|
208
208
|
`)]);await lM(Y.join(t,`AGENTS.md`),n),await lM(Y.join(t,`SOUL.md`),r),await lM(Y.join(t,`TOOLS.md`),i),await lM(Y.join(t,`IDENTITY.md`),a),await lM(Y.join(t,`USER.md`),o)}async function dM(e){let t=cM();e.reset&&await tu(`full`,t,_);let n=Fe().configPath,r=J.existsSync(n);!e.reset&&r||(await Vt({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),_.log(`Dev config ready: ${C(n)}`),_.log(`Dev workspace ready: ${C(E(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=$u({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=Ll();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=Sf(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=v(`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){ni();let e=Ur(),t=Ci();if(t>0&&Mi(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?Ri(d):Promise.resolve({drained:!0}),t>0?fi(d):Promise.resolve({drained:!0})]);n.drained&&r.drained?vM.info(`all active work drained`):(vM.warn(`drain timeout reached; proceeding with restart`),Mi(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`),!Hl()&&!Il()){vM.warn(`SIGUSR1 restart ignored (not authorized; commands.restart=false or use gateway tool).`);return}Pl(),p(`restart`,`SIGUSR1`)};process.on(`SIGTERM`,m),process.on(`SIGINT`,h),process.on(`SIGUSR1`,g);try{let t=_M(()=>{Ui()}),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=v(`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(){_.error(`Warning: --password can be exposed via process listings. Prefer --password-file or OPENCLAW_GATEWAY_PASSWORD.`)}function EM(e){let t=bd(e.password),n=bd(e.passwordFile);if(t&&n)throw Error(`Use either --password or --password-file.`);return n?Uu(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=Wu(t,e);if(e===`wsLog`){n[e]=r??n[e];continue}n[e]=n[e]??r}for(let e of SM){let r=Wu(t,e);n[e]=!!(n[e]||r)}return n}async function jM(t){let n=process.env.OPENCLAW_PROFILE?.trim().toLowerCase()===`dev`,r=!!t.dev||n;if(t.reset&&!r){_.error(`Use --reset with --dev.`),_.exit(1);return}g(!0),y(!!t.verbose),t.claudeCliLogs&&(f([`agent/claude-cli`]),process.env.OPENCLAW_CLAUDE_CLI_LOG_OUTPUT=`1`);let i=t.compact?`compact`:t.wsLog,s=i===`compact`?`compact`:i===`full`?`full`:`auto`;i!==void 0&&i!==`auto`&&i!==`compact`&&i!==`full`&&(_.error(`Invalid --ws-log (use "auto", "full", "compact")`),_.exit(1)),Jd(s),t.rawStream&&(process.env.OPENCLAW_RAW_STREAM=`1`);let c=bd(t.rawStreamPath);c&&(process.env.OPENCLAW_RAW_STREAM_PATH=c),r&&await dM({reset:!!t.reset});let l=H(),u=ed(t.port);t.port!==void 0&&u===null&&(_.error(`Invalid port`),_.exit(1));let d=u??o(l);(!Number.isFinite(d)||d<=0)&&(_.error(`Invalid port`),_.exit(1));let p=bd(t.bind)??l.gateway?.bind??`loopback`,m=p===`loopback`||p===`lan`||p===`auto`||p===`custom`||p===`tailnet`?p:null;if(!m){_.error(`Invalid --bind (use "loopback", "lan", "tailnet", "auto", or "custom")`),_.exit(1);return}if(process.env.OPENCLAW_SERVICE_MARKER?.trim()){let e=Ul(d);e.length>0&&bM.info(`service-mode: cleared ${e.length} stale gateway pid(s) before bind on port ${d}`)}if(t.force)try{let{killed:e,waitedMs:t,escalatedToSigkill:n}=await Bu(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 zu(d,{timeoutMs:3e3,intervalMs:150,host:m===`loopback`?`127.0.0.1`:m===`lan`?`0.0.0.0`:m===`custom`?bd(l.gateway?.customBindHost):void 0});r>0&&bM.info(`force: waited ${r}ms for port ${d} to become bindable`)}catch(e){_.error(`Force: ${String(e)}`),_.exit(1);return}if(t.token){let e=bd(t.token);e&&(process.env.OPENCLAW_GATEWAY_TOKEN=e)}let h=bd(t.auth),v=DM(h,CM);if(h&&!v){_.error(`Invalid --auth (use ${kM(CM)})`),_.exit(1);return}let b=bd(t.tailscale),x=DM(b,wM);if(b&&!x){_.error(`Invalid --tailscale (use ${kM(wM)})`),_.exit(1);return}let S;try{S=EM(t)}catch(e){_.error(e instanceof Error?e.message:String(e)),_.exit(1);return}bd(t.password)&&TM();let C=bd(t.token),w=await Ge().catch(()=>null),T=w?.exists??J.existsSync(a),E=Y.join(e(process.env),`logs`,`config-audit.jsonl`),O=l.gateway?.mode;if(!t.allowUnconfigured&&O!==`local`){T?(_.error(`Gateway start blocked: set gateway.mode=local (current: ${O??`unset`}) or pass --allow-unconfigured.`),_.error(`Config write audit: ${E}`)):_.error(`Missing config. Run \`${$a(`openclaw setup`)}\` or set gateway.mode=local (or pass --allow-unconfigured).`),_.exit(1);return}let k=xd(w?.parsed),A=v||S||C||h?{...v?{mode:v}:{},...C?{token:C}:{},...S?{password:S}:{}}:void 0,j=D({authConfig:l.gateway?.auth,authOverride:A,env:process.env,tailscaleMode:x??l.gateway?.tailscale?.mode??`off`}),M=j.mode,N=j.token,P=j.password,ee=typeof N==`string`&&N.trim().length>0,F=typeof P==`string`&&P.trim().length>0,I=ee||Qa(A?.token??l.gateway?.auth?.token,l.secrets?.defaults),L=F||Qa(A?.password??l.gateway?.auth?.password,l.secrets?.defaults),te=M===`token`&&I||M===`password`&&L,R=M===`token`&&!I,z=[];if(k.hasGatewayToken&&z.push(`Found "gateway.token" in config. Use "gateway.auth.token" instead.`),k.hasRemoteToken&&z.push(`"gateway.remote.token" is for remote CLI calls; it does not enable local gateway auth.`),M===`password`&&!L){_.error([`Gateway auth is set to password, but no password is configured.`,`Set gateway.auth.password (or OPENCLAW_GATEWAY_PASSWORD), or pass --password.`,...z].filter(Boolean).join(`
|
|
209
209
|
`)),_.exit(1);return}if(M===`none`&&bM.warn(`Gateway auth mode=none explicitly configured; all gateway connections are unauthenticated.`),m!==`loopback`&&!te&&!R&&M!==`trusted-proxy`){_.error([`Refusing to bind gateway to ${m} without auth.`,`Set gateway.auth.token/password (or OPENCLAW_GATEWAY_TOKEN/OPENCLAW_GATEWAY_PASSWORD) or pass --token/--password.`,...z].filter(Boolean).join(`
|
|
210
210
|
`)),_.exit(1);return}let ne=x||t.tailscaleResetOnExit?{...x?{mode:x}:{},...t.tailscaleResetOnExit?{resetOnExit:!0}:{}}:void 0;try{await yM({runtime:_,lockPort:d,start:async()=>await rM(d,{bind:m,auth:A,tailscale:ne})})}catch(e){if(e instanceof jA||e&&typeof e==`object`&&e.name===`GatewayLockError`){let t=Cd(e);_.error(`Gateway failed to start: ${t}\nIf the gateway is supervised, stop it with: ${$a(`openclaw gateway stop`)}`);try{let e=await Qt(d);if(e.status===`busy`)for(let t of at(e))_.error(t)}catch{}await Sd(),_.exit(1);return}_.error(`Gateway failed to start: ${String(e)}`),_.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 uu(_,e,e=>{let n=String(e);_.error(t?`${t}: ${n}`:n),_.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=Wu(t,`token`),r=Wu(t,`password`);return{...e,token:e.token??n,password:e.password??r}}function IM(e,t,n){let r=au(e.totals.totalCost)??`$0.00`,i=iu(e.totals.totalTokens)??`0`,a=[u(n,s.heading,`Usage cost (${t} days)`),`${u(n,s.muted,`Total:`)} ${r} · ${i} tokens`];e.totals.missingCostEntries>0&&a.push(`${u(n,s.muted,`Missing entries:`)} ${e.totals.missingCostEntries}`);let o=e.daily.at(-1);if(o){let e=au(o.totalCost)??`$0.00`,t=iu(o.totalTokens)??`0`;a.push(`${u(n,s.muted,`Latest day:`)} ${o.date} · ${e} · ${t} tokens`)}return a}function LM(e){let t=MM(e.command(`gateway`).description(`Run, inspect, and query the WebSocket Gateway`).addHelpText(`after`,()=>`\n${s.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${s.muted(`Docs:`)} ${lu(`/cli/gateway`,`docs.openclaw.ai/cli/gateway`)}\n`));MM(t.command(`run`).description(`Run the WebSocket Gateway (foreground)`)),nd(t,{statusDescription:`Show gateway service status + probe the Gateway`}),op(t.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(e,t,n)=>{await NM(async()=>{let r=FM(t,n),i=await ze(),a=JSON.parse(String(t.params??`{}`)),o=await sp(e,{...r,config:i},a);if(r.json){_.log(JSON.stringify(o,null,2));return}let c=m();_.log(`${u(c,s.heading,`Gateway call`)}: ${u(c,s.muted,String(e))}`),_.log(JSON.stringify(o,null,2))},`Gateway call failed`)})),op(t.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 ze(),a=await sp(`usage.cost`,{...n,config:i},{days:r});if(n.json){_.log(JSON.stringify(a,null,2));return}let o=m(),s=a;for(let e of IM(s,r,o))_.log(e)},`Gateway usage cost failed`)})),op(t.command(`health`).description(`Fetch Gateway health`).action(async(e,t)=>{await NM(async()=>{let n=FM(e,t),r=await ze(),i=await sp(`health`,{...n,config:r});if(n.json){_.log(JSON.stringify(i,null,2));return}let a=m(),o=i&&typeof i==`object`?i:{},c=typeof o.durationMs==`number`?o.durationMs:null;if(_.log(u(a,s.heading,`Gateway Health`)),_.log(`${u(a,s.success,`OK`)}${c==null?``:` (${c}ms)`}`),o.channels&&typeof o.channels==`object`)for(let e of jd(o))_.log(Dd(e,a))})})),t.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),_)})}),t.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 e=>{await NM(async()=>{let t=vd({configDomain:(await ze()).discovery?.wideArea?.domain}),n=cp(e.timeout,2e3),r=[`local.`,...t?[t]:[]],i=dp(await fu({label:`Scanning for gateways…`,indeterminate:!0,enabled:e.json!==!0,delayMs:0},async()=>await wd({timeoutMs:n,wideAreaDomain:t}))).toSorted((e,t)=>String(e.displayName||e.instanceName).localeCompare(String(t.displayName||t.instanceName)));if(e.json){let e=i.map(e=>{let t=lp(e),n=up(e);return{...e,wsUrl:t?`ws://${t}:${n}`:null}});_.log(JSON.stringify({timeoutMs:n,domains:r,count:e.length,beacons:e},null,2));return}let a=m();if(_.log(u(a,s.heading,`Gateway Discovery`)),_.log(u(a,s.muted,`Found ${i.length} gateway(s) · domains: ${r.join(`, `)}`)),i.length!==0)for(let e of i)for(let t of fp(e,a))_.log(t)},`gateway discover failed`)})}export{LM as registerGatewayCli};
|
|
211
|
+
//# sourceMappingURL=gateway-cli-CKu0FA7D.js.map
|