@qqbrowser/openclaw-qbot 0.0.148 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-lookup-CW-_CL7y.js +0 -1
- package/dist/acp-cli-BHsTg1ac.js +0 -1
- package/dist/acp-cli-D_WC9SZX.js +0 -1
- package/dist/active-listener-1MJXk3Iq.js +0 -1
- package/dist/active-listener-D8VOdVx3.js +0 -1
- package/dist/active-listener-D8uP0H5W.js +0 -1
- package/dist/active-listener-DeKRt_UV.js +0 -1
- package/dist/agent-scope-DAWJwFfl.js +0 -1
- package/dist/agent-scope-DXZc3eNT.js +0 -1
- package/dist/agents-Cd1yL8fG.js +0 -1
- package/dist/agents.config-CaRMmWS8.js +0 -1
- package/dist/agents.config-DSCcdYtv.js +0 -1
- package/dist/allow-from-B6dI7oz8.js +0 -1
- package/dist/allow-from-DEeVIPKS.js +0 -1
- package/dist/api-BeG0ObSq.js +0 -1
- package/dist/api-Dx8x1KTs.js +0 -1
- package/dist/api-key-rotation-BLt5E2Cw.js +0 -1
- package/dist/api-key-rotation-BpEL4aeX.js +0 -1
- package/dist/api-key-rotation-DayEfYpa.js +0 -1
- package/dist/api-key-rotation-Rz2ESQSA.js +0 -1
- package/dist/arg-split-BOqSMBuf.js +0 -1
- package/dist/arg-split-DE5RqDHq.js +0 -1
- package/dist/audio-preflight-8WB1LJBS.js +0 -1
- package/dist/audio-preflight-BcPHPfr_.js +0 -1
- package/dist/audio-preflight-DTO631Yb.js +0 -1
- package/dist/audio-preflight-O-0lDeKh.js +0 -1
- package/dist/audio-transcription-runner-9H9eUZ1D.js +0 -1
- package/dist/audio-transcription-runner-BIKj1CBU.js +0 -1
- package/dist/audio-transcription-runner-BwjMhAUa.js +0 -1
- package/dist/audio-transcription-runner-CQ7rq0d_.js +0 -1
- package/dist/audit-9I53EvMQ.js +0 -1
- package/dist/audit-BGsUfJzD.js +0 -1
- package/dist/audit-membership-runtime-BpRsMj5-.js +0 -1
- package/dist/audit-membership-runtime-BsfLZNBj.js +0 -1
- package/dist/audit-membership-runtime-DRHirRmx.js +0 -1
- package/dist/audit-membership-runtime-g0dEWJTp.js +0 -1
- package/dist/audit-membership-runtime-kdyToskD.js +0 -1
- package/dist/auth-choice-BmI4sIGs.js +0 -1
- package/dist/auth-choice-DDsPJF6F.js +0 -1
- package/dist/auth-choice-Dy0jIOLV.js +0 -1
- package/dist/auth-choice-MqcWuVyu.js +0 -1
- package/dist/auth-choice-options-B3WQyS7I.js +0 -1
- package/dist/auth-choice-options-Dw14noox.js +0 -1
- package/dist/auth-choice-prompt-uegl56cf.js +0 -1
- package/dist/auth-choice-prompt-xYj13czb.js +0 -1
- package/dist/auth-choice.apply-helpers-D911bYcw.js +0 -1
- package/dist/auth-choice.apply-helpers-pJ4CPZCk.js +0 -1
- package/dist/auth-profiles-C8rZRS0X.js +0 -1
- package/dist/auth-token-DZLZ3d_I.js +0 -1
- package/dist/auth-token-Dp6bxT29.js +0 -1
- package/dist/banner-CAtilyXr.js +0 -1
- package/dist/bonjour-discovery-ClTijpMw.js +0 -1
- package/dist/bonjour-discovery-DMB6yrOF.js +0 -1
- package/dist/boolean-Ch3DfXPy.js +0 -1
- package/dist/boolean-D15s2V33.js +0 -1
- package/dist/boolean-DypnRoRK.js +0 -1
- package/dist/brew-COcDl8CB.js +0 -1
- package/dist/brew-DDPm_HfE.js +0 -1
- package/dist/browser-cli-Bf-Pzjxs.js +0 -1
- package/dist/browser-cli-DkrBCfYg.js +0 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +0 -1
- package/dist/bundled/bootstrap-extra-files/handler.js +0 -1
- package/dist/bundled/command-logger/handler.js +0 -1
- package/dist/bundled/session-memory/handler.js +0 -1
- package/dist/call-BWx7hNtl.js +0 -1
- package/dist/call-JB-cGR9n.js +0 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/channel-account-context-BMPAMZEv.js +0 -1
- package/dist/channel-account-context-DAcarnqW.js +0 -1
- package/dist/channel-activity-B04WbrrK.js +0 -1
- package/dist/channel-activity-BhiLsKvM.js +0 -1
- package/dist/channel-activity-DmgWmSAG.js +0 -1
- package/dist/channel-activity-Dw6F-ehJ.js +0 -1
- package/dist/channel-activity-htoVXTET.js +0 -1
- package/dist/channel-options-CCqtIYCc.js +0 -1
- package/dist/channel-options-CKoyPq8p.js +0 -1
- package/dist/channel-selection-BPxE8JR7.js +0 -1
- package/dist/channel-selection-si1OzWyQ.js +0 -1
- package/dist/channel-web-CCSMlUux.js +0 -1
- package/dist/channel-web-CwUfYqjg.js +0 -1
- package/dist/channels/plugins/actions/discord.js +0 -1
- package/dist/channels/plugins/actions/signal.js +0 -1
- package/dist/channels/plugins/actions/telegram.js +0 -1
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +0 -1
- package/dist/channels-cli-BfgVv5jH.js +0 -1
- package/dist/channels-cli-BvGXgERj.js +0 -1
- package/dist/channels-status-issues-8eFrGKyf.js +0 -1
- package/dist/channels-status-issues-PRgOT90w.js +0 -1
- package/dist/chat-envelope-Bznn2SoS.js +0 -1
- package/dist/chat-envelope-HVpKusFc.js +0 -1
- package/dist/clack-prompter-DBPdGdqp.js +0 -1
- package/dist/clack-prompter-Dq0aY6iM.js +0 -1
- package/dist/clawbot-cli-B0iTJ-pm.js +0 -1
- package/dist/clawbot-cli-BcEtQbFY.js +0 -1
- package/dist/cleanup-utils-BWm70DoD.js +0 -1
- package/dist/cleanup-utils-D-RhEX6F.js +0 -1
- package/dist/cli-Bt--1dhL.js +0 -1
- package/dist/cli-CBg8KhmQ.js +0 -1
- package/dist/cli-utils-BY7dLMFy.js +0 -1
- package/dist/cli-utils-BleB1eys.js +0 -1
- package/dist/clipboard-Bk8cviBt.js +0 -1
- package/dist/clipboard-CKT_VIkG.js +0 -1
- package/dist/cmd-argv-BBT5l8AV.js +0 -1
- package/dist/cmd-argv-Bh-KpaZ0.js +0 -1
- package/dist/command-format-BbDT1tlm.js +0 -1
- package/dist/command-format-CLxIPuLR.js +0 -1
- package/dist/command-options-BpOUDl2S.js +0 -1
- package/dist/command-options-Bq5nQxz6.js +0 -1
- package/dist/command-poll-backoff-BZLHYB2k.js +0 -1
- package/dist/command-poll-backoff-Cww_r-24.js +0 -1
- package/dist/command-poll-backoff-Df6cOQrX.js +0 -1
- package/dist/command-poll-backoff-endAPdwn.js +0 -1
- package/dist/{command-registry-BxNiXs5w.js → command-registry-D_jtBegA.js} +1 -2
- package/dist/command-secret-targets-BEjtBf5Z.js +0 -1
- package/dist/command-secret-targets-CfXtLkLF.js +0 -1
- package/dist/commands-CGpM84iR.js +0 -1
- package/dist/commands-Dy7duWlt.js +0 -1
- package/dist/commands-registry-C5Hg7gyk.js +0 -1
- package/dist/commands-registry-DT6FDUev.js +0 -1
- package/dist/commands-registry-DlvNUkXz.js +0 -1
- package/dist/commands-registry-gvMK7Pw9.js +0 -1
- package/dist/compact-CYbPi7_-.js +0 -1
- package/dist/{completion-cli-Yg5BF97F.js → completion-cli-BVbT_aR2.js} +1 -2
- package/dist/{completion-cli-BRE0F8Tu.js → completion-cli-Bw_hBrlA.js} +1 -2
- package/dist/config-BqW5S1xL.js +0 -1
- package/dist/config-Cji73to5.js +0 -1
- package/dist/config-cli-CwW76_j_.js +0 -1
- package/dist/config-cli-F-lkPjjz.js +0 -1
- package/dist/config-guard-0_afzaJz.js +0 -1
- package/dist/config-guard-CqUJ8uaF.js +0 -1
- package/dist/config-validation-6hk_fxD8.js +0 -1
- package/dist/config-validation-BAmmD9p4.js +0 -1
- package/dist/configure--c4tTVPz.js +0 -1
- package/dist/configure-DFlnM_zh.js +0 -1
- package/dist/connection-auth-CjaeEu5D.js +0 -1
- package/dist/connection-auth-smZlFWxD.js +0 -1
- package/dist/context-window-guard-7crlatf9.js +0 -1
- package/dist/context-window-guard-CPChk363.js +0 -1
- package/dist/control-ui-assets-BIa0GGDg.js +0 -1
- package/dist/control-ui-assets-CTHGGgaX.js +0 -1
- package/dist/cron-cli-BKS4L-uW.js +0 -1
- package/dist/cron-cli-L9wLLocl.js +0 -1
- package/dist/daemon-cli-BdDHNRqp.js +0 -1
- package/dist/daemon-cli-CEHkT-54.js +0 -1
- package/dist/daemon-cli.js +0 -1
- package/dist/daemon-install-CMNtsW5o.js +0 -1
- package/dist/daemon-install-D2gMiA0p.js +0 -1
- package/dist/daemon-install-plan.shared-BkwZgIAY.js +0 -1
- package/dist/daemon-install-plan.shared-Dx3DBXCG.js +0 -1
- package/dist/daemon-runtime-DHiDbRuC.js +0 -1
- package/dist/daemon-runtime-VcpeBRJV.js +0 -1
- package/dist/dangerous-name-matching-BOmvAibz.js +0 -1
- package/dist/dangerous-name-matching-DtllRqBD.js +0 -1
- package/dist/dangerous-tools-CFRYQJ6V.js +0 -1
- package/dist/dangerous-tools-oYCu5wfC.js +0 -1
- package/dist/deliver-AM3FP5rj.js +0 -1
- package/dist/deliver-BhWhLvQO.js +0 -1
- package/dist/deliver-DUNkj4hy.js +0 -1
- package/dist/deliver-SqSusZP3.js +0 -1
- package/dist/delivery-queue-CKbauSFq.js +0 -1
- package/dist/delivery-queue-nkPJu0fY.js +0 -1
- package/dist/device-pairing-DAzYy3vX.js +0 -1
- package/dist/device-pairing-DknI3IDo.js +0 -1
- package/dist/devices-cli-BYD6Sq88.js +0 -1
- package/dist/devices-cli-Dl-0fQmR.js +0 -1
- package/dist/diagnostic-BEZszppF.js +0 -1
- package/dist/diagnostic-D1H7_8QG.js +0 -1
- package/dist/diagnostic-DtuQPRbp.js +0 -1
- package/dist/diagnostic-VBPCgF9l.js +0 -1
- package/dist/diagnostics-BgbeL9KE.js +0 -1
- package/dist/diagnostics-Cdctg9K_.js +0 -1
- package/dist/directory-cli-CpMjutQb.js +0 -1
- package/dist/directory-cli-b_l3qJI_.js +0 -1
- package/dist/dns-cli-C7L4RYOm.js +0 -1
- package/dist/dns-cli-wKg6nn6f.js +0 -1
- package/dist/docs-cli-CwW4sqbC.js +0 -1
- package/dist/docs-cli-DnLLU7eX.js +0 -1
- package/dist/{doctor-completion-II0Wb435.js → doctor-completion-C9CPhCor.js} +1 -2
- package/dist/{doctor-completion-Bu-98ocm.js → doctor-completion-DI7mGC3D.js} +1 -2
- package/dist/doctor-config-flow-BVpr8-q9.js +0 -1
- package/dist/doctor-config-flow-Dio3s4x6.js +0 -1
- package/dist/enable-CjFPAUgo.js +0 -1
- package/dist/enable-PO3qN4Lf.js +0 -1
- package/dist/entry-status-CCwwKO43.js +0 -1
- package/dist/entry-status-CoXkbJcX.js +0 -1
- package/dist/entry.js +1 -2
- package/dist/env-D7wNuBx1.js +0 -1
- package/dist/env-overrides-DHtB4kK3.js +0 -1
- package/dist/env-overrides-DXJbFrwI.js +0 -1
- package/dist/errors-6SQWM9dj.js +0 -1
- package/dist/errors-Bunti32V.js +0 -1
- package/dist/exec-B3eleY5O.js +0 -1
- package/dist/exec-DHqLtFYt.js +0 -1
- package/dist/exec-approvals-BXO9Cezj.js +0 -1
- package/dist/exec-approvals-BpBNEy6i.js +0 -1
- package/dist/exec-approvals-allowlist-B-Yf6RsU.js +0 -1
- package/dist/exec-approvals-allowlist-CGjRWREs.js +0 -1
- package/dist/exec-approvals-cli-BokGzWFo.js +0 -1
- package/dist/exec-approvals-cli-CsUGu6m3.js +0 -1
- package/dist/exec-safe-bin-runtime-policy-CRPHdPbF.js +0 -1
- package/dist/exec-safe-bin-runtime-policy-v44u39fl.js +0 -1
- package/dist/fetch-B4bz67_N.js +0 -1
- package/dist/fetch-BJT3BrkJ.js +0 -1
- package/dist/fetch-Bn0mWg6a.js +0 -1
- package/dist/fetch-Ce-scEU-.js +0 -1
- package/dist/fetch-D0rZDHKO.js +0 -1
- package/dist/fetch-D5wrJ0AX.js +0 -1
- package/dist/fetch-DBat25iG.js +0 -1
- package/dist/fetch-DHo17YmK.js +0 -1
- package/dist/fetch-Dh-apy46.js +0 -1
- package/dist/fetch-Dikjvc5M.js +0 -1
- package/dist/fetch-DsjPfQlp.js +0 -1
- package/dist/fetch-_g8lZ8K8.js +0 -1
- package/dist/fetch-guard-7BAwnP4a.js +0 -1
- package/dist/fetch-guard-DaZmvp-L.js +0 -1
- package/dist/fetch-guard-DvaNcypz.js +0 -1
- package/dist/fetch-guard-oWKGrwV4.js +0 -1
- package/dist/fetch-hy0JKSsm.js +0 -1
- package/dist/fetch-timeout-CdYxWG9w.js +0 -1
- package/dist/fetch-timeout-Cj8_oAls.js +0 -1
- package/dist/fetch-timeout-DoOI_izT.js +0 -1
- package/dist/fetch-timeout-u8g99Ax0.js +0 -1
- package/dist/format-Bn1bwJKX.js +0 -1
- package/dist/format-Ce7I7s-k.js +0 -1
- package/dist/format-duration-C8AzNqKh.js +0 -1
- package/dist/format-duration-D5AMtmHa.js +0 -1
- package/dist/format-relative-B9pSIdGe.js +0 -1
- package/dist/format-relative-DkMjYy7z.js +0 -1
- package/dist/frontmatter-BkZkwkVO.js +0 -1
- package/dist/frontmatter-C7mzDNxd.js +0 -1
- package/dist/frontmatter-CzpfPBFl.js +0 -1
- package/dist/{gateway-cli-DBjTjdhJ.js → gateway-cli-BMmU2dsG.js} +1 -2
- package/dist/{gateway-cli-B-AX4-uD.js → gateway-cli-Kp-caOwI.js} +1 -2
- package/dist/gateway-install-token-Dt7hDXoR.js +0 -1
- package/dist/gateway-install-token-cSJrfU_1.js +0 -1
- package/dist/gateway-rpc-C78PzdZR.js +0 -1
- package/dist/gateway-rpc-CecloWA1.js +0 -1
- package/dist/github-copilot-token-C79yeDKS.js +0 -1
- package/dist/github-copilot-token-DGYAlOmV.js +0 -1
- package/dist/github-copilot-token-DePP-lIf.js +0 -1
- package/dist/github-copilot-token-wm6mbypz.js +0 -1
- package/dist/gmail-setup-utils-CYOH3zzx.js +0 -1
- package/dist/gmail-setup-utils-S-MyEGuj.js +0 -1
- package/dist/group-access-BHKVOhrj.js +0 -1
- package/dist/group-access-D2DOYMfr.js +0 -1
- package/dist/health-B_-ZE5FK.js +0 -1
- package/dist/health-CIZFVJEG.js +0 -1
- package/dist/health-format-B1nj3Wfn.js +0 -1
- package/dist/health-format-VBr6LEpt.js +0 -1
- package/dist/heartbeat-visibility-BQ_esv2m.js +0 -1
- package/dist/heartbeat-visibility-q74UdY8O.js +0 -1
- package/dist/help-format-B4aEI7V9.js +0 -1
- package/dist/help-format-BRbF_INg.js +0 -1
- package/dist/helpers-COz1ghcB.js +0 -1
- package/dist/helpers-Cp8gcO6u.js +0 -1
- package/dist/hooks-cli-BoxAnC-E.js +0 -1
- package/dist/hooks-cli-CnCOjVv0.js +0 -1
- package/dist/hooks-status-BHt-Xvh4.js +0 -1
- package/dist/hooks-status-CRJ4J0ZW.js +0 -1
- package/dist/image-BBO-0uLG.js +0 -1
- package/dist/image-BP1cfEh1.js +0 -1
- package/dist/image-BVbOr9yV.js +0 -1
- package/dist/image-CcsuUB1B.js +0 -1
- package/dist/index.js +1 -2
- package/dist/inspect-BKV-I1UE.js +0 -1
- package/dist/inspect-z59cgmYc.js +0 -1
- package/dist/install-safe-path-C6kc_8NW.js +0 -1
- package/dist/install-safe-path-iesxijn2.js +0 -1
- package/dist/installs-CKzq-YqL.js +0 -1
- package/dist/installs-DzSskdtJ.js +0 -1
- package/dist/ipv4-B05QVStj.js +0 -1
- package/dist/ipv4-SeeyR-DH.js +0 -1
- package/dist/ir-B7mdG27k.js +0 -1
- package/dist/ir-BTfsA9Dd.js +0 -1
- package/dist/ir-CNTx85qV.js +0 -1
- package/dist/ir-DdjufzKF.js +0 -1
- package/dist/is-main-DG5ueqhF.js +0 -1
- package/dist/issue-format-BtMzMXtZ.js +0 -1
- package/dist/issue-format-CN9PHzXY.js +0 -1
- package/dist/kill-tree-D6nPx1_o.js +0 -1
- package/dist/lifecycle-core-B1nrgJCw.js +0 -1
- package/dist/lifecycle-core-D_LWJeD_.js +0 -1
- package/dist/line/accounts.js +0 -1
- package/dist/line/send.js +0 -1
- package/dist/line/template-messages.js +0 -1
- package/dist/links-CBnmRP9D.js +0 -1
- package/dist/links-CySwdMcF.js +0 -1
- package/dist/llm-slug-generator.js +0 -1
- package/dist/load-options-BsOW74dp.js +0 -1
- package/dist/load-options-C7dLuybp.js +0 -1
- package/dist/load-options-DV4j6Aqb.js +0 -1
- package/dist/load-options-Dwt0CeEg.js +0 -1
- package/dist/local-roots-aA-4ohTq.js +0 -1
- package/dist/logger-5W0OocJW.js +0 -1
- package/dist/logger-Bl8URnrW.js +0 -1
- package/dist/logger-DwWqfo66.js +0 -1
- package/dist/logger-kQAOe3qp.js +0 -1
- package/dist/logging-B7XHbCNn.js +0 -1
- package/dist/logging-CbMVr2MA.js +0 -1
- package/dist/login-BGLWiksP.js +0 -1
- package/dist/login-CcYeF5T_.js +0 -1
- package/dist/login-DSZdCiDx.js +0 -1
- package/dist/login-DWZzj-P1.js +0 -1
- package/dist/login-qr-BGpGVMES.js +0 -1
- package/dist/login-qr-BUdgvi3v.js +0 -1
- package/dist/login-qr-Bx8skPB-.js +0 -1
- package/dist/login-qr-DYUCmP-W.js +0 -1
- package/dist/login-qr-_79eoRb4.js +0 -1
- package/dist/logs-cli-C52caOop.js +0 -1
- package/dist/logs-cli-Ch50TE-J.js +0 -1
- package/dist/manager-CI6O4QH6.js +0 -1
- package/dist/manager-CN_rQm1L.js +0 -1
- package/dist/manager-CxZRoQkE.js +0 -1
- package/dist/manager-iFi--Fru.js +0 -1
- package/dist/memory-cli-BouV_wyL.js +0 -1
- package/dist/memory-cli-C8fBBPgv.js +0 -1
- package/dist/model-catalog-D-hkNWin.js +0 -1
- package/dist/model-catalog-mt0IcDfR.js +0 -1
- package/dist/model-param-b-B0r2cPDw.js +0 -1
- package/dist/model-param-b-BqIr5rY5.js +0 -1
- package/dist/model-picker-BB0Zdvyu.js +0 -1
- package/dist/model-picker-DeiWyW0N.js +0 -1
- package/dist/model-selection-BLbnMb5E.js +0 -1
- package/dist/model-selection-D7mdJmGK.js +0 -1
- package/dist/model-selection-DvekK9rZ.js +0 -1
- package/dist/models-BBYqej07.js +0 -1
- package/dist/models-cli-CMMhnlHo.js +0 -1
- package/dist/models-cli-CqbDyDn2.js +0 -1
- package/dist/models-config-BlQ39qlq.js +0 -1
- package/dist/models-config-DZzS67GS.js +0 -1
- package/dist/mutable-allowlist-detectors-C4rNVag8.js +0 -1
- package/dist/mutable-allowlist-detectors-CL0qe54J.js +0 -1
- package/dist/node-cli-Bzu1efMB.js +0 -1
- package/dist/node-cli-Dv-Eib4o.js +0 -1
- package/dist/node-command-policy-D9yZu9zq.js +0 -1
- package/dist/node-command-policy-DyWp3Bjz.js +0 -1
- package/dist/node-commands-8GBOiktk.js +0 -1
- package/dist/node-commands-DdkziOTx.js +0 -1
- package/dist/node-resolve-B3BJbmQX.js +0 -1
- package/dist/node-resolve-DLZf3-1V.js +0 -1
- package/dist/node-service-BRfrNp8l.js +0 -1
- package/dist/node-service-C0bl7jcZ.js +0 -1
- package/dist/node-shell-BVZylVP6.js +0 -1
- package/dist/nodes-cli-B3aNQG30.js +0 -1
- package/dist/nodes-cli-DzO6PSFw.js +0 -1
- package/dist/nodes-screen-8nRBsfID.js +0 -1
- package/dist/note-D4GAwgha.js +0 -1
- package/dist/note-Dp-d_utk.js +0 -1
- package/dist/npm-pack-install-B23L-AtF.js +0 -1
- package/dist/npm-pack-install-C0te3Oap.js +0 -1
- package/dist/npm-resolution--_-0q2ks.js +0 -1
- package/dist/npm-resolution-CBlwQq3a.js +0 -1
- package/dist/oauth-env-DAamJ1oz.js +0 -1
- package/dist/oauth-env-DSLBTWb1.js +0 -1
- package/dist/oauth-tls-preflight-BSBRDIfC.js +0 -1
- package/dist/oauth-tls-preflight-ByNjbUR5.js +0 -1
- package/dist/ollama-setup-CGuyH3Ey.js +0 -1
- package/dist/ollama-setup-LVRPefmV.js +0 -1
- package/dist/{onboard-DMmLqys5.js → onboard-DZG0HnuP.js} +1 -2
- package/dist/{onboard-C2Ofvb_A.js → onboard-DlCEww7K.js} +1 -2
- package/dist/onboard-channels-BDMtq3ex.js +0 -1
- package/dist/onboard-channels-BO3AN_eA.js +0 -1
- package/dist/onboard-config-B7U20YRw.js +0 -1
- package/dist/onboard-config-DS9dUv8M.js +0 -1
- package/dist/onboard-custom--OylwoHQ.js +0 -1
- package/dist/onboard-custom-_Df_ciX2.js +0 -1
- package/dist/onboard-helpers-D90u4wVK.js +0 -1
- package/dist/onboard-helpers-DOlI17Ac.js +0 -1
- package/dist/onboard-hooks-CERzXObm.js +0 -1
- package/dist/onboard-hooks-gQ3sxBNi.js +0 -1
- package/dist/onboard-provider-auth-flags-CqbipO7D.js +0 -1
- package/dist/onboard-provider-auth-flags-Dvwzdz37.js +0 -1
- package/dist/onboard-remote-B1-SlmUN.js +0 -1
- package/dist/onboard-remote-C7Eg49Uf.js +0 -1
- package/dist/onboard-search-f2tJD4hg.js +0 -1
- package/dist/onboard-search-fslKKhyg.js +0 -1
- package/dist/onboard-skills-DCgTr6hW.js +0 -1
- package/dist/onboard-skills-_TBzISd2.js +0 -1
- package/dist/{onboarding-C82cKKNI.js → onboarding-CxRTJCBM.js} +1 -2
- package/dist/{onboarding-M80apW9t.js → onboarding-m-m__16h.js} +1 -2
- package/dist/{onboarding.finalize-D9nrrI1J.js → onboarding.finalize-BJxMhYUa.js} +1 -2
- package/dist/{onboarding.finalize-CVvwI1Qg.js → onboarding.finalize-UiX3YmbI.js} +1 -2
- package/dist/onboarding.gateway-config-CXjzrfwL.js +0 -1
- package/dist/onboarding.gateway-config-TSq70E-S.js +0 -1
- package/dist/onboarding.secret-input-BSmFS1Px.js +0 -1
- package/dist/onboarding.secret-input-CUD0t7Pk.js +0 -1
- package/dist/openai-codex-model-default-Bx8i3bOg.js +0 -1
- package/dist/openai-codex-model-default-DuRfnfUm.js +0 -1
- package/dist/openai-model-default-Bm9b0oR0.js +0 -1
- package/dist/openai-model-default-KMCphvoO.js +0 -1
- package/dist/openclaw-exec-env-BWbOu_YC.js +0 -1
- package/dist/openclaw-root-CnsBf6ZU.js +0 -1
- package/dist/openclaw-root-D_0Q6--h.js +0 -1
- package/dist/outbound-BevYwvMh.js +0 -1
- package/dist/outbound-CqDxMWLZ.js +0 -1
- package/dist/outbound-DmwQEFu0.js +0 -1
- package/dist/outbound-attachment-9-8VNvRG.js +0 -1
- package/dist/outbound-attachment-Bah4dvuM.js +0 -1
- package/dist/outbound-attachment-CVcDBkAD.js +0 -1
- package/dist/outbound-attachment-E89zumcH.js +0 -1
- package/dist/outbound-xlG_RqEu.js +0 -1
- package/dist/pairing-cli-ByPhOBWo.js +0 -1
- package/dist/pairing-cli-CxJy8LPo.js +0 -1
- package/dist/pairing-labels-CZ-aX-up.js +0 -1
- package/dist/pairing-labels-PIuZfthz.js +0 -1
- package/dist/pairing-store-BaaVy1zB.js +0 -1
- package/dist/pairing-store-EmfFQVcs.js +0 -1
- package/dist/pairing-token-B8RdfK2y.js +0 -1
- package/dist/pairing-token-zdbQ951y.js +0 -1
- package/dist/parse-duration-XTjMKl8s.js +0 -1
- package/dist/parse-finite-number-DqzUM-_s.js +0 -1
- package/dist/parse-finite-number-dBmDLLKL.js +0 -1
- package/dist/parse-log-line-CsYLg7Qu.js +0 -1
- package/dist/parse-log-line-NV-cipB_.js +0 -1
- package/dist/parse-port-Bv1Y9Wk5.js +0 -1
- package/dist/parse-port-JVwkxcZ8.js +0 -1
- package/dist/parse-timeout-DWSGfCkQ.js +0 -1
- package/dist/parse-timeout-Dx4QnVzo.js +0 -1
- package/dist/path-alias-guards-kY_ZbWs-.js +0 -1
- package/dist/path-alias-guards-mvyLCPlN.js +0 -1
- package/dist/path-env-BPd1Yd-i.js +0 -1
- package/dist/path-env-emdAQejM.js +0 -1
- package/dist/path-safety-BukYK8Kd.js +0 -1
- package/dist/path-safety-DaaMJFdt.js +0 -1
- package/dist/paths-B4IRk3wi.js +0 -1
- package/dist/paths-BfjJY2VL.js +0 -1
- package/dist/paths-BjD3T_xq.js +0 -1
- package/dist/paths-BpQOWYiT.js +0 -1
- package/dist/paths-CChBdtE8.js +0 -1
- package/dist/paths-CrCoPIVK.js +0 -1
- package/dist/paths-piJASC5k.js +0 -1
- package/dist/paths-yLEk_25I.js +0 -1
- package/dist/pi-embedded-6yGEd2xd.js +0 -1
- package/dist/pi-embedded-X_Svd4Wi.js +0 -1
- package/dist/pi-model-discovery-BPkhPDMr.js +0 -1
- package/dist/pi-model-discovery-BonZ1N3x.js +0 -1
- package/dist/pi-model-discovery-DVKXkQTR.js +0 -1
- package/dist/pi-model-discovery-DnJkNRc-.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-2-IJ8xox.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-CNesNgq0.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-CmtITCPP.js +0 -1
- package/dist/pi-tools.before-tool-call.runtime-VUjwIYJ7.js +0 -1
- package/dist/pi-tools.policy-B6q8YOfg.js +0 -1
- package/dist/plugin-auto-enable-CTgkkJK7.js +0 -1
- package/dist/plugin-auto-enable-adba5Evb.js +0 -1
- package/dist/plugin-install-plan-BmyB3dR1.js +0 -1
- package/dist/plugin-install-plan-sIOiMBS1.js +0 -1
- package/dist/plugin-registry-CN2aCPP7.js +0 -1
- package/dist/plugin-registry-DYwEy5eM.js +0 -1
- package/dist/plugin-sdk/account-id.cjs +0 -1
- package/dist/plugin-sdk/account-id.js +0 -1
- package/dist/plugin-sdk/acpx.cjs +0 -1
- package/dist/plugin-sdk/acpx.js +0 -1
- package/dist/plugin-sdk/active-listener-B1sd5Yrr.cjs +0 -1
- package/dist/plugin-sdk/active-listener-CVvtj4nc.cjs +0 -1
- package/dist/plugin-sdk/active-listener-D0Pag-jN.js +0 -1
- package/dist/plugin-sdk/active-listener-DIzG1nGC.js +0 -1
- package/dist/plugin-sdk/active-listener-DUT4_v5r.cjs +0 -1
- package/dist/plugin-sdk/active-listener-D_Cq4Tuy.cjs +0 -1
- package/dist/plugin-sdk/active-listener-HBuXCjdG.js +0 -1
- package/dist/plugin-sdk/active-listener-V7whA3d_.js +0 -1
- package/dist/plugin-sdk/active-listener-YOWDFFGG.js +0 -1
- package/dist/plugin-sdk/active-listener-kJidH-KZ.js +0 -1
- package/dist/plugin-sdk/active-listener-kmJHqUWY.cjs +0 -1
- package/dist/plugin-sdk/active-listener-vpxSd-kW.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-BEhJdmXN.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-BcDAQISn.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-Bua813IH.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-C7_ooC3N.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-CiFfWYgL.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-CrVpqlS6.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-D-zSLAf_.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-DInDOH-A.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-DKp72Rw4.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-YRRtbk9Y.cjs +0 -1
- package/dist/plugin-sdk/api-key-rotation-tVSHRH8D.js +0 -1
- package/dist/plugin-sdk/api-key-rotation-ta953lKF.js +0 -1
- package/dist/plugin-sdk/audio-preflight-5ZbcO1qy.js +0 -1
- package/dist/plugin-sdk/audio-preflight-BrAX9j6r.js +0 -1
- package/dist/plugin-sdk/audio-preflight-C2NpU5hR.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-CtWGsCje.js +0 -1
- package/dist/plugin-sdk/audio-preflight-CwjNHDro.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-D22cCCmn.js +0 -1
- package/dist/plugin-sdk/audio-preflight-DyK2q8OQ.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-F7lfchEO.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-ItHD-3bi.js +0 -1
- package/dist/plugin-sdk/audio-preflight-QWsN9gcK.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-k7Qt2rDs.cjs +0 -1
- package/dist/plugin-sdk/audio-preflight-wcMT_iUA.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-B3bLoVvU.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-BDfW3xeJ.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-BZLASCWO.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-CiRKTRED.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-Cxs7u0B3.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-D2IxJCfd.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DA6TwXrV.cjs +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DZIEX1Rl.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DZRGn6-f.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-Dc-WF6zu.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-DuBgVmcT.js +0 -1
- package/dist/plugin-sdk/audio-transcription-runner-nKI1rQ0R.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +0 -1
- package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +0 -1
- package/dist/plugin-sdk/bluebubbles.cjs +0 -1
- package/dist/plugin-sdk/bluebubbles.js +0 -1
- package/dist/plugin-sdk/channel-activity--Ax2m0qQ.js +0 -1
- package/dist/plugin-sdk/channel-activity-BCsNxxNa.js +0 -1
- package/dist/plugin-sdk/channel-activity-BUieXBdg.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-BXffAklf.js +0 -1
- package/dist/plugin-sdk/channel-activity-BlYTUiU4.js +0 -1
- package/dist/plugin-sdk/channel-activity-Bm-pvlXw.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-Bnai3H2M.js +0 -1
- package/dist/plugin-sdk/channel-activity-CC3JLAxD.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-CTmfXwYn.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-D98aY9ZF.js +0 -1
- package/dist/plugin-sdk/channel-activity-DymcGybX.cjs +0 -1
- package/dist/plugin-sdk/channel-activity-gZBQEyOK.cjs +0 -1
- package/dist/plugin-sdk/channel-web-B795Ild9.cjs +0 -1
- package/dist/plugin-sdk/channel-web-Bg8DNyeb.js +0 -1
- package/dist/plugin-sdk/channel-web-CW42ALB5.cjs +0 -1
- package/dist/plugin-sdk/channel-web-D5zxPW-x.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +0 -1
- package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +0 -1
- package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +0 -1
- package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-BIGWymiv.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-Bnadsir-.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-C1Gb98lg.js +0 -1
- package/dist/plugin-sdk/commands-registry-CZcNTwNs.js +0 -1
- package/dist/plugin-sdk/commands-registry-CeJQPXIR.js +0 -1
- package/dist/plugin-sdk/commands-registry-CehvtLBA.js +0 -1
- package/dist/plugin-sdk/commands-registry-Cf8DaBmw.js +0 -1
- package/dist/plugin-sdk/commands-registry-Cfv6gDoQ.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-D734s8r7.js +0 -1
- package/dist/plugin-sdk/commands-registry-DWx89vtR.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-DviWu8J8.cjs +0 -1
- package/dist/plugin-sdk/commands-registry-wA0CkHGk.cjs +0 -1
- package/dist/plugin-sdk/common-BJ0tHoNJ.cjs +0 -1
- package/dist/plugin-sdk/common-CxLmdAIn.js +0 -1
- package/dist/plugin-sdk/compat.cjs +0 -1
- package/dist/plugin-sdk/compat.js +0 -1
- package/dist/plugin-sdk/config-C2-9m5-M.cjs +0 -1
- package/dist/plugin-sdk/config-Cx3SFBFW.js +0 -1
- package/dist/plugin-sdk/copilot-proxy.cjs +0 -1
- package/dist/plugin-sdk/copilot-proxy.js +0 -1
- package/dist/plugin-sdk/core.cjs +0 -1
- package/dist/plugin-sdk/core.js +0 -1
- package/dist/plugin-sdk/deliver--pOntbRC.cjs +0 -1
- package/dist/plugin-sdk/deliver-BLMe2eBS.js +0 -1
- package/dist/plugin-sdk/deliver-BcHzZPc2.js +0 -1
- package/dist/plugin-sdk/deliver-CSGTRHt1.js +0 -1
- package/dist/plugin-sdk/deliver-Cm8yUsWK.cjs +0 -1
- package/dist/plugin-sdk/deliver-DQDZRjZ0.js +0 -1
- package/dist/plugin-sdk/deliver-DRintVMn.js +0 -1
- package/dist/plugin-sdk/deliver-DehGdLxT.js +0 -1
- package/dist/plugin-sdk/deliver-EThzALwn.cjs +0 -1
- package/dist/plugin-sdk/deliver-d7VfVmTa.cjs +0 -1
- package/dist/plugin-sdk/deliver-rACJj8E9.cjs +0 -1
- package/dist/plugin-sdk/deliver-wteCze09.cjs +0 -1
- package/dist/plugin-sdk/device-pair.cjs +0 -1
- package/dist/plugin-sdk/device-pair.js +0 -1
- package/dist/plugin-sdk/diagnostic-BcBlExSy.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-Bmp3zWQp.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-BvrdTMl3.js +0 -1
- package/dist/plugin-sdk/diagnostic-C2jKFixS.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-CSfBcIOI.js +0 -1
- package/dist/plugin-sdk/diagnostic-CYR5dxDE.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-CdNZNyNv.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-DE5k6C1E.js +0 -1
- package/dist/plugin-sdk/diagnostic-DMpxa640.cjs +0 -1
- package/dist/plugin-sdk/diagnostic-DSgf5Z4H.js +0 -1
- package/dist/plugin-sdk/diagnostic-DbRdunVt.js +0 -1
- package/dist/plugin-sdk/diagnostic-zCrcFAbJ.js +0 -1
- package/dist/plugin-sdk/diagnostics-otel.cjs +0 -1
- package/dist/plugin-sdk/diagnostics-otel.js +0 -1
- package/dist/plugin-sdk/diffs.cjs +0 -1
- package/dist/plugin-sdk/diffs.js +0 -1
- package/dist/plugin-sdk/discord.cjs +0 -1
- package/dist/plugin-sdk/discord.js +0 -1
- package/dist/plugin-sdk/dispatch-B13B2T1k.js +0 -1
- package/dist/plugin-sdk/dispatch-BaBcLOry.js +0 -1
- package/dist/plugin-sdk/dispatch-BlOkbw2U.js +0 -1
- package/dist/plugin-sdk/dispatch-D2Km7gvG.cjs +0 -1
- package/dist/plugin-sdk/dispatch-DAaOM5c1.cjs +0 -1
- package/dist/plugin-sdk/dispatch-DYRrW05S.js +0 -1
- package/dist/plugin-sdk/dispatch-Dap2ZPC9.js +0 -1
- package/dist/plugin-sdk/dispatch-Dl0eaYcY.cjs +0 -1
- package/dist/plugin-sdk/dispatch-_tJF5hSh.cjs +0 -1
- package/dist/plugin-sdk/dispatch-cPg1rBWu.cjs +0 -1
- package/dist/plugin-sdk/feishu.cjs +0 -1
- package/dist/plugin-sdk/feishu.js +0 -1
- package/dist/plugin-sdk/fetch-7Iq9POda.js +0 -1
- package/dist/plugin-sdk/fetch-B1GR6-u4.js +0 -1
- package/dist/plugin-sdk/fetch-B27H-XCf.js +0 -1
- package/dist/plugin-sdk/fetch-BMYDLRWo.js +0 -1
- package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +0 -1
- package/dist/plugin-sdk/fetch-BVEVk5YF.js +0 -1
- package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +0 -1
- package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +0 -1
- package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +0 -1
- package/dist/plugin-sdk/fetch-BtZY623f.js +0 -1
- package/dist/plugin-sdk/fetch-C-HRWp5R.js +0 -1
- package/dist/plugin-sdk/fetch-C3LEMysf.js +0 -1
- package/dist/plugin-sdk/fetch-CCLWsYaQ.js +0 -1
- package/dist/plugin-sdk/fetch-CZewCAvu.cjs +0 -1
- package/dist/plugin-sdk/fetch-ClKErpni.cjs +0 -1
- package/dist/plugin-sdk/fetch-DBRI0sKI.js +0 -1
- package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +0 -1
- package/dist/plugin-sdk/fetch-DUMEaqum.cjs +0 -1
- package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +0 -1
- package/dist/plugin-sdk/fetch-J0IzopiJ.js +0 -1
- package/dist/plugin-sdk/fetch-guard-7tObWdgY.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-ACKeLHgB.js +0 -1
- package/dist/plugin-sdk/fetch-guard-BI5z5sCg.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-BUOtcki7.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-BZi5e63X.js +0 -1
- package/dist/plugin-sdk/fetch-guard-CVnIQ0nI.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-DKS4LY4o.js +0 -1
- package/dist/plugin-sdk/fetch-guard-DcAQBHbg.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-Dj-DlPBS.cjs +0 -1
- package/dist/plugin-sdk/fetch-guard-Dm1nAvhl.js +0 -1
- package/dist/plugin-sdk/fetch-guard-GfhPo1Fa.js +0 -1
- package/dist/plugin-sdk/fetch-guard-nFWUH1s9.js +0 -1
- package/dist/plugin-sdk/fetch-lw-aF17e.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +0 -1
- package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +0 -1
- package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +0 -1
- package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +0 -1
- package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +0 -1
- package/dist/plugin-sdk/google-gemini-cli-auth.cjs +0 -1
- package/dist/plugin-sdk/google-gemini-cli-auth.js +0 -1
- package/dist/plugin-sdk/googlechat.cjs +0 -1
- package/dist/plugin-sdk/googlechat.js +0 -1
- package/dist/plugin-sdk/image-BLG2OrjE.cjs +0 -1
- package/dist/plugin-sdk/image-BPUmI-kx.cjs +0 -1
- package/dist/plugin-sdk/image-Bt_w0o87.js +0 -1
- package/dist/plugin-sdk/image-CMeyJO2-.js +0 -1
- package/dist/plugin-sdk/image-CMiT6Fvk.cjs +0 -1
- package/dist/plugin-sdk/image-CNMuTe0Z.js +0 -1
- package/dist/plugin-sdk/image-CO9zxV0G.js +0 -1
- package/dist/plugin-sdk/image-CjVyB61p.cjs +0 -1
- package/dist/plugin-sdk/image-CkWikcPf.cjs +0 -1
- package/dist/plugin-sdk/image-Dk2gzO1U.js +0 -1
- package/dist/plugin-sdk/image-Jmj-a1pv.js +0 -1
- package/dist/plugin-sdk/image-UKq4Bn2r.cjs +0 -1
- package/dist/plugin-sdk/imessage.cjs +0 -1
- package/dist/plugin-sdk/imessage.js +0 -1
- package/dist/plugin-sdk/index.cjs +0 -1
- package/dist/plugin-sdk/index.js +0 -1
- package/dist/plugin-sdk/ir-Bg_avpt0.cjs +0 -1
- package/dist/plugin-sdk/ir-BiiaNbB9.cjs +0 -1
- package/dist/plugin-sdk/ir-CYJPM1_I.cjs +0 -1
- package/dist/plugin-sdk/ir-Ca3EdqFl.js +0 -1
- package/dist/plugin-sdk/ir-Cl_S_VBR.cjs +0 -1
- package/dist/plugin-sdk/ir-Cq7b_9v8.cjs +0 -1
- package/dist/plugin-sdk/ir-DcWa7gsX.cjs +0 -1
- package/dist/plugin-sdk/ir-DdA08iXJ.js +0 -1
- package/dist/plugin-sdk/ir-DqBwrJJd.js +0 -1
- package/dist/plugin-sdk/ir-EUD0qDem.js +0 -1
- package/dist/plugin-sdk/ir-c1MS26Ci.js +0 -1
- package/dist/plugin-sdk/ir-vhCxHELh.js +0 -1
- package/dist/plugin-sdk/irc.cjs +0 -1
- package/dist/plugin-sdk/irc.js +0 -1
- package/dist/plugin-sdk/keyed-async-queue.cjs +0 -1
- package/dist/plugin-sdk/keyed-async-queue.js +0 -1
- package/dist/plugin-sdk/line.cjs +0 -1
- package/dist/plugin-sdk/line.js +0 -1
- package/dist/plugin-sdk/llm-task.cjs +0 -1
- package/dist/plugin-sdk/llm-task.js +0 -1
- package/dist/plugin-sdk/load-options-B9Ss5YOO.js +0 -1
- package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +0 -1
- package/dist/plugin-sdk/load-options-BXvm8HVv.js +0 -1
- package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +0 -1
- package/dist/plugin-sdk/load-options-BcSg1ODN.js +0 -1
- package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +0 -1
- package/dist/plugin-sdk/lobster.cjs +0 -1
- package/dist/plugin-sdk/lobster.js +0 -1
- package/dist/plugin-sdk/local-roots-2OcKjfzk.js +0 -1
- package/dist/plugin-sdk/local-roots-ByrRvVBc.cjs +0 -1
- package/dist/plugin-sdk/local-roots-CXPxvx0J.js +0 -1
- package/dist/plugin-sdk/local-roots-CzbssMW1.cjs +0 -1
- package/dist/plugin-sdk/local-roots-DIijr8mK.cjs +0 -1
- package/dist/plugin-sdk/local-roots-DRv9Y_41.cjs +0 -1
- package/dist/plugin-sdk/local-roots-DTC7BJct.js +0 -1
- package/dist/plugin-sdk/local-roots-DU8RuiRi.js +0 -1
- package/dist/plugin-sdk/local-roots-DprQ5M3b.js +0 -1
- package/dist/plugin-sdk/local-roots-GqNj3vMl.cjs +0 -1
- package/dist/plugin-sdk/local-roots-I2icTm2P.cjs +0 -1
- package/dist/plugin-sdk/local-roots-qEhx-D42.js +0 -1
- package/dist/plugin-sdk/logger-6O6OsYBL.cjs +0 -1
- package/dist/plugin-sdk/logger-BlddiV_d.cjs +0 -1
- package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +0 -1
- package/dist/plugin-sdk/logger-BtrWb0dj.js +0 -1
- package/dist/plugin-sdk/logger-C210xuWx.js +0 -1
- package/dist/plugin-sdk/logger-DJGHvDbX.js +0 -1
- package/dist/plugin-sdk/logger-DPlqYkRm.cjs +0 -1
- package/dist/plugin-sdk/logger-DUYnS-W3.cjs +0 -1
- package/dist/plugin-sdk/logger-DwWqfo66.js +0 -1
- package/dist/plugin-sdk/logger-vBDTZWl3.js +0 -1
- package/dist/plugin-sdk/login-0ui1gfZM.cjs +0 -1
- package/dist/plugin-sdk/login-B0lIdwss.cjs +0 -1
- package/dist/plugin-sdk/login-B43p990Y.cjs +0 -1
- package/dist/plugin-sdk/login-DHBcWg4R.cjs +0 -1
- package/dist/plugin-sdk/login-DUCNg4lV.js +0 -1
- package/dist/plugin-sdk/login-DqVo92p1.js +0 -1
- package/dist/plugin-sdk/login-Dt4KiLgP.js +0 -1
- package/dist/plugin-sdk/login-IVBk3GwG.cjs +0 -1
- package/dist/plugin-sdk/login-T6tSC1Xl.js +0 -1
- package/dist/plugin-sdk/login-XruRHZe5.js +0 -1
- package/dist/plugin-sdk/login-p9hWVYO6.cjs +0 -1
- package/dist/plugin-sdk/login-qr-B4wf-15u.js +0 -1
- package/dist/plugin-sdk/login-qr-BQMm3yV_.cjs +0 -1
- package/dist/plugin-sdk/login-qr-BreyhXFQ.cjs +0 -1
- package/dist/plugin-sdk/login-qr-C6RPK8ld.js +0 -1
- package/dist/plugin-sdk/login-qr-C6cQueYq.js +0 -1
- package/dist/plugin-sdk/login-qr-CxznBK7s.cjs +0 -1
- package/dist/plugin-sdk/login-qr-D0dmb3Gr.js +0 -1
- package/dist/plugin-sdk/login-qr-DWW1FC-n.cjs +0 -1
- package/dist/plugin-sdk/login-qr-DjC-P7Vy.cjs +0 -1
- package/dist/plugin-sdk/login-qr-KeBTY1Mb.js +0 -1
- package/dist/plugin-sdk/login-qr-gQsVZ8en.js +0 -1
- package/dist/plugin-sdk/login-qr-xkqmSKC8.cjs +0 -1
- package/dist/plugin-sdk/login-x9vN5UnR.js +0 -1
- package/dist/plugin-sdk/manager-B38IH03I.cjs +0 -1
- package/dist/plugin-sdk/manager-BZVFXygg.cjs +0 -1
- package/dist/plugin-sdk/manager-BuNveORY.cjs +0 -1
- package/dist/plugin-sdk/manager-C4FEmxjq.cjs +0 -1
- package/dist/plugin-sdk/manager-CHnzSMNG.js +0 -1
- package/dist/plugin-sdk/manager-CN4wiVFz.js +0 -1
- package/dist/plugin-sdk/manager-D9RwKYCX.js +0 -1
- package/dist/plugin-sdk/manager-DAmjm61U.cjs +0 -1
- package/dist/plugin-sdk/manager-DJSpJkev.js +0 -1
- package/dist/plugin-sdk/manager-EO7deQzm.js +0 -1
- package/dist/plugin-sdk/manager-vyHAgafh.cjs +0 -1
- package/dist/plugin-sdk/manager-zyDhj7B-.js +0 -1
- package/dist/plugin-sdk/matrix.cjs +0 -1
- package/dist/plugin-sdk/matrix.js +0 -1
- package/dist/plugin-sdk/mattermost.cjs +0 -1
- package/dist/plugin-sdk/mattermost.js +0 -1
- package/dist/plugin-sdk/memory-core.cjs +0 -1
- package/dist/plugin-sdk/memory-core.js +0 -1
- package/dist/plugin-sdk/minimax-portal-auth.cjs +0 -1
- package/dist/plugin-sdk/minimax-portal-auth.js +0 -1
- package/dist/plugin-sdk/model-auth-1RA9nkQH.js +0 -1
- package/dist/plugin-sdk/model-auth-Cgqd2_sP.cjs +0 -1
- package/dist/plugin-sdk/model-auth-Cp2GSJwZ.js +0 -1
- package/dist/plugin-sdk/model-auth-Lv74A-Si.cjs +0 -1
- package/dist/plugin-sdk/model-auth-RI6NYvTO.js +0 -1
- package/dist/plugin-sdk/model-auth-exDkzEDR.js +0 -1
- package/dist/plugin-sdk/model-auth-igOM3blS.cjs +0 -1
- package/dist/plugin-sdk/model-auth-sjKLUCCz.cjs +0 -1
- package/dist/plugin-sdk/model-selection-C9HlFaXF.js +0 -1
- package/dist/plugin-sdk/model-selection-DpGE9eNM.cjs +0 -1
- package/dist/plugin-sdk/msteams.cjs +0 -1
- package/dist/plugin-sdk/msteams.js +0 -1
- package/dist/plugin-sdk/nextcloud-talk.cjs +0 -1
- package/dist/plugin-sdk/nextcloud-talk.js +0 -1
- package/dist/plugin-sdk/nostr.cjs +0 -1
- package/dist/plugin-sdk/nostr.js +0 -1
- package/dist/plugin-sdk/outbound-BO0tyeUH.js +0 -1
- package/dist/plugin-sdk/outbound-BYU5HTrX.js +0 -1
- package/dist/plugin-sdk/outbound-CBVlxGRf.cjs +0 -1
- package/dist/plugin-sdk/outbound-CTyu_gZh.js +0 -1
- package/dist/plugin-sdk/outbound-CwWXHNwp.cjs +0 -1
- package/dist/plugin-sdk/outbound-CySyQcmE.js +0 -1
- package/dist/plugin-sdk/outbound-DDPxEpHH.cjs +0 -1
- package/dist/plugin-sdk/outbound-DZhl7sHt.cjs +0 -1
- package/dist/plugin-sdk/outbound-DmeUAXdA.js +0 -1
- package/dist/plugin-sdk/outbound-DvFQ_6wQ.cjs +0 -1
- package/dist/plugin-sdk/outbound-Dy87UlCV.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-5H1iYkTb.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-BAHrn3r7.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-BBJPbiLF.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-BIGvZREF.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-B_OTB3A8.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-C94-r948.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CJatgPbm.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CLUVyl5e.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CTR1-VEH.js +0 -1
- package/dist/plugin-sdk/outbound-attachment-CmQ0SNgK.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-Dbja7LQF.cjs +0 -1
- package/dist/plugin-sdk/outbound-attachment-DwzJ2l3T.cjs +0 -1
- package/dist/plugin-sdk/outbound-xMr8Xsxe.js +0 -1
- package/dist/plugin-sdk/paths-BPlgbwrb.cjs +0 -1
- package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +0 -1
- package/dist/plugin-sdk/paths-BpQOWYiT.js +0 -1
- package/dist/plugin-sdk/paths-BvlJvmRS.cjs +0 -1
- package/dist/plugin-sdk/paths-CIcxeNL-.cjs +0 -1
- package/dist/plugin-sdk/paths-CXgWvWAM.js +0 -1
- package/dist/plugin-sdk/paths-Chp3zwtq.cjs +0 -1
- package/dist/plugin-sdk/paths-CnHSNSeR.js +0 -1
- package/dist/plugin-sdk/paths-Cqca1YmF.cjs +0 -1
- package/dist/plugin-sdk/paths-CtrEseGU.js +0 -1
- package/dist/plugin-sdk/paths-D55o_j8-.js +0 -1
- package/dist/plugin-sdk/paths-D90l3h_o.cjs +0 -1
- package/dist/plugin-sdk/paths-DaRoqzBQ.js +0 -1
- package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +0 -1
- package/dist/plugin-sdk/paths-DhSjTRMz.js +0 -1
- package/dist/plugin-sdk/paths-Do0djuaj.js +0 -1
- package/dist/plugin-sdk/paths-J4JUiRsa.js +0 -1
- package/dist/plugin-sdk/paths-cBAF6Bj0.js +0 -1
- package/dist/plugin-sdk/paths-piJASC5k.js +0 -1
- package/dist/plugin-sdk/paths-rO4ehkyU.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-5wc5qlmB.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BQiHbl8F.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BZZVGcJl.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-Ba70onAm.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BfuqD_Rv.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-BsdlRK-w.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-CAYSx-Lw.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-CyBFRafV.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-D1WW5m-Q.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DRYpUnOa.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DUbDLlc7.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DcUDwgMg.cjs +0 -1
- package/dist/plugin-sdk/pi-model-discovery-DrZsxLaJ.js +0 -1
- package/dist/plugin-sdk/pi-model-discovery-gaVoL7I2.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BWmteuHS.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BmznXclG.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BzTifHML.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CEPsGtJk.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CYleOK1-.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Ctbk1Pq8.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D-hwiLUl.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DDuUTLh8.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DLfogXKU.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dd-VFim_.js +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-Dvmcwf-j.cjs +0 -1
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-i-IGFbqI.js +0 -1
- package/dist/plugin-sdk/polls-BuaJuIpV.cjs +0 -1
- package/dist/plugin-sdk/polls-CBAGZuJ6.js +0 -1
- package/dist/plugin-sdk/polls-CSKMbBIS.js +0 -1
- package/dist/plugin-sdk/polls-D0wY0FvT.cjs +0 -1
- package/dist/plugin-sdk/polls-PGxiE05J.js +0 -1
- package/dist/plugin-sdk/polls-yWqSCEP0.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-B765haXA.js +0 -1
- package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +0 -1
- package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +0 -1
- package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +0 -1
- package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +0 -1
- package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +0 -1
- package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +0 -1
- package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-Del551nu.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +0 -1
- package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-B9PkuA_R.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-BMJV0Hqt.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-BRasSDsB.js +0 -1
- package/dist/plugin-sdk/pw-ai-BY57aH_o.js +0 -1
- package/dist/plugin-sdk/pw-ai-BbpImC35.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-D7d16RB-.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-DF7TX5Lc.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-DHN1pktj.js +0 -1
- package/dist/plugin-sdk/pw-ai-QzImh8G0.cjs +0 -1
- package/dist/plugin-sdk/pw-ai-V1CVJi48.js +0 -1
- package/dist/plugin-sdk/pw-ai-mvXkpTxf.js +0 -1
- package/dist/plugin-sdk/pw-ai-tdgA-KlG.js +0 -1
- package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +0 -1
- package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +0 -1
- package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +0 -1
- package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +0 -1
- package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +0 -1
- package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +0 -1
- package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +0 -1
- package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-CAboqtWr.js +0 -1
- package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +0 -1
- package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +0 -1
- package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +0 -1
- package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +0 -1
- package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +0 -1
- package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +0 -1
- package/dist/plugin-sdk/qwen-portal-auth.cjs +0 -1
- package/dist/plugin-sdk/qwen-portal-auth.js +0 -1
- package/dist/plugin-sdk/render-6fCdtAr6.cjs +0 -1
- package/dist/plugin-sdk/render-CBsnn-2A.js +0 -1
- package/dist/plugin-sdk/render-CzHaQB0d.cjs +0 -1
- package/dist/plugin-sdk/render-DGmfCIRG.js +0 -1
- package/dist/plugin-sdk/render-DhTJXP1U.js +0 -1
- package/dist/plugin-sdk/render-Djx15dPh.js +0 -1
- package/dist/plugin-sdk/render-DxBO2Blp.cjs +0 -1
- package/dist/plugin-sdk/render-g5VlmgpF.cjs +0 -1
- package/dist/plugin-sdk/reply-73PF8kN_.js +0 -1
- package/dist/plugin-sdk/reply-JD6VIW5N.cjs +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-BNv_T3Bk.js +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-CDM7_xfU.cjs +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-CvKfootv.js +0 -1
- package/dist/plugin-sdk/resolve-outbound-target-Fq8une1d.cjs +0 -1
- package/dist/plugin-sdk/send-0TzQg7Eo.js +0 -1
- package/dist/plugin-sdk/send-AyV5r86J.js +0 -1
- package/dist/plugin-sdk/send-B-GqqrNy.js +0 -1
- package/dist/plugin-sdk/send-B03So6fs.cjs +0 -1
- package/dist/plugin-sdk/send-B0oV0qgS.js +0 -1
- package/dist/plugin-sdk/send-B31Tjl_I.cjs +0 -1
- package/dist/plugin-sdk/send-B4LTVhTd.cjs +0 -1
- package/dist/plugin-sdk/send-BGXPpAqy.cjs +0 -1
- package/dist/plugin-sdk/send-BJ957TYU.js +0 -1
- package/dist/plugin-sdk/send-BJmf3HVn.cjs +0 -1
- package/dist/plugin-sdk/send-BW3UECzm.js +0 -1
- package/dist/plugin-sdk/send-BWEZ_8nL.cjs +0 -1
- package/dist/plugin-sdk/send-BXrh73qh.cjs +0 -1
- package/dist/plugin-sdk/send-BbudHjUi.cjs +0 -1
- package/dist/plugin-sdk/send-BkjnUdWv.cjs +0 -1
- package/dist/plugin-sdk/send-BxIt-s7G.cjs +0 -1
- package/dist/plugin-sdk/send-ByKNfU2S.js +0 -1
- package/dist/plugin-sdk/send-Bz2Loz_Q.cjs +0 -1
- package/dist/plugin-sdk/send-CAreQYLU.cjs +0 -1
- package/dist/plugin-sdk/send-CGMqeSaY.cjs +0 -1
- package/dist/plugin-sdk/send-CJmor6eC.js +0 -1
- package/dist/plugin-sdk/send-CL2pl8br.cjs +0 -1
- package/dist/plugin-sdk/send-CMeGMLko.js +0 -1
- package/dist/plugin-sdk/send-CceHBxiK.js +0 -1
- package/dist/plugin-sdk/send-Cdx_KGYb.js +0 -1
- package/dist/plugin-sdk/send-Cer1bA2g.cjs +0 -1
- package/dist/plugin-sdk/send-CimU95QQ.cjs +0 -1
- package/dist/plugin-sdk/send-CoEAieJt.cjs +0 -1
- package/dist/plugin-sdk/send-Cob_bnT32.js +0 -1
- package/dist/plugin-sdk/send-Cyp5hOpt.js +0 -1
- package/dist/plugin-sdk/send-CzEFjTpi.js +0 -1
- package/dist/plugin-sdk/send-D2LjU2py.js +0 -1
- package/dist/plugin-sdk/send-D9Gbseeh.cjs +0 -1
- package/dist/plugin-sdk/send-DIjQ2vB4.js +0 -1
- package/dist/plugin-sdk/send-DJ419AIX.cjs +0 -1
- package/dist/plugin-sdk/send-DLtYxO1e.cjs +0 -1
- package/dist/plugin-sdk/send-DMk529J8.js +0 -1
- package/dist/plugin-sdk/send-DMxohaL_.cjs +0 -1
- package/dist/plugin-sdk/send-DQlKz6Bj.js +0 -1
- package/dist/plugin-sdk/send-DTUW-YBy.js +0 -1
- package/dist/plugin-sdk/send-Dc43nN-I.js +0 -1
- package/dist/plugin-sdk/send-DcRj8DUU.cjs +0 -1
- package/dist/plugin-sdk/send-DmxxJFZd.cjs +0 -1
- package/dist/plugin-sdk/send-DnwN1vBU.cjs +0 -1
- package/dist/plugin-sdk/send-DogBiU4n.cjs +0 -1
- package/dist/plugin-sdk/send-MEvv6c7w.js +0 -1
- package/dist/plugin-sdk/send-TRwokuAm.cjs +0 -1
- package/dist/plugin-sdk/send-VUSa_wkg.js +0 -1
- package/dist/plugin-sdk/send-X1b7Cj9U.cjs +0 -1
- package/dist/plugin-sdk/send-XX5rP5bI.js +0 -1
- package/dist/plugin-sdk/send-_ZGBA2sz.js +0 -1
- package/dist/plugin-sdk/send-d5RoIkxA.js +0 -1
- package/dist/plugin-sdk/send-dCbQnCLx.js +0 -1
- package/dist/plugin-sdk/send-gSV6SR6F.cjs +0 -1
- package/dist/plugin-sdk/send-pC6ctwfQ.cjs +0 -1
- package/dist/plugin-sdk/send-pq2hNOwv.cjs +0 -1
- package/dist/plugin-sdk/send-q6C-1cdJ.js +0 -1
- package/dist/plugin-sdk/send-vnIJSD5l.js +0 -1
- package/dist/plugin-sdk/send-vtYROJNd.js +0 -1
- package/dist/plugin-sdk/send-wk_Y38Eq.js +0 -1
- package/dist/plugin-sdk/session-BSLJWzVk.cjs +0 -1
- package/dist/plugin-sdk/session-BfWC0c92.js +0 -1
- package/dist/plugin-sdk/session-BjsaXe-G.js +0 -1
- package/dist/plugin-sdk/session-C20nSfk5.cjs +0 -1
- package/dist/plugin-sdk/session-CR8fsPgs.js +0 -1
- package/dist/plugin-sdk/session-CwinrWG4.cjs +0 -1
- package/dist/plugin-sdk/session-DAtRSLdw.cjs +0 -1
- package/dist/plugin-sdk/session-Djo63EGV.cjs +0 -1
- package/dist/plugin-sdk/session-EJZkCm6l.js +0 -1
- package/dist/plugin-sdk/session-UIRgeq02.cjs +0 -1
- package/dist/plugin-sdk/session-aOZKTEyZ.js +0 -1
- package/dist/plugin-sdk/session-nUw21fi0.js +0 -1
- package/dist/plugin-sdk/sessions-B06a3AKE.js +0 -1
- package/dist/plugin-sdk/sessions-BmhjMXlm.cjs +0 -1
- package/dist/plugin-sdk/signal.cjs +0 -1
- package/dist/plugin-sdk/signal.js +0 -1
- package/dist/plugin-sdk/skill-commands-2LXH0aZR.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-B4AbCkKe.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-B_xNpuH_.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-BbAfKA1R.js +0 -1
- package/dist/plugin-sdk/skill-commands-BcKIgHAP.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-C9g2UiKr.cjs +0 -1
- package/dist/plugin-sdk/skill-commands-CPZ9Jvbj.js +0 -1
- package/dist/plugin-sdk/skill-commands-CgDUjb3J.js +0 -1
- package/dist/plugin-sdk/skill-commands-D83BLBEG.js +0 -1
- package/dist/plugin-sdk/skill-commands-DI1TMUxQ.js +0 -1
- package/dist/plugin-sdk/skill-commands-DldIiKD1.js +0 -1
- package/dist/plugin-sdk/skill-commands-LCW6nWWC.cjs +0 -1
- package/dist/plugin-sdk/slack.cjs +0 -1
- package/dist/plugin-sdk/slack.js +0 -1
- package/dist/plugin-sdk/synology-chat.cjs +0 -1
- package/dist/plugin-sdk/synology-chat.js +0 -1
- package/dist/plugin-sdk/tables-BXY1ms0X.js +0 -1
- package/dist/plugin-sdk/tables-BlhpY72l.cjs +0 -1
- package/dist/plugin-sdk/tables-BltHUi44.cjs +0 -1
- package/dist/plugin-sdk/tables-Bp6t_Jkb.js +0 -1
- package/dist/plugin-sdk/tables-BszYJkqX.cjs +0 -1
- package/dist/plugin-sdk/tables-CAZJt5bp.js +0 -1
- package/dist/plugin-sdk/tables-CcuiVH-P.cjs +0 -1
- package/dist/plugin-sdk/tables-CuSMtUxt.cjs +0 -1
- package/dist/plugin-sdk/tables-DOLEnfD6.js +0 -1
- package/dist/plugin-sdk/tables-DiiF7bbj.cjs +0 -1
- package/dist/plugin-sdk/tables-aSJP6Sef.js +0 -1
- package/dist/plugin-sdk/tables-ib4GZqYB.js +0 -1
- package/dist/plugin-sdk/target-errors--anbEDnm.js +0 -1
- package/dist/plugin-sdk/target-errors-4q9SUsM_.js +0 -1
- package/dist/plugin-sdk/target-errors-BFOTHcjO.js +0 -1
- package/dist/plugin-sdk/target-errors-Bw4tI2Lc.cjs +0 -1
- package/dist/plugin-sdk/target-errors-CAgwWHUv.js +0 -1
- package/dist/plugin-sdk/target-errors-CUDKM0z-.js +0 -1
- package/dist/plugin-sdk/target-errors-DIOJ6Eun.cjs +0 -1
- package/dist/plugin-sdk/target-errors-DnZq9h4B.cjs +0 -1
- package/dist/plugin-sdk/target-errors-DwAKh8KU.cjs +0 -1
- package/dist/plugin-sdk/target-errors-QGzfLvuU.cjs +0 -1
- package/dist/plugin-sdk/targets-BSc11Uk8.cjs +0 -1
- package/dist/plugin-sdk/targets-BSkiizml.js +0 -1
- package/dist/plugin-sdk/targets-CBI0xqve.cjs +0 -1
- package/dist/plugin-sdk/targets-CL5fYQi7.js +0 -1
- package/dist/plugin-sdk/targets-CUZWrFrm.cjs +0 -1
- package/dist/plugin-sdk/targets-CVEYTFPQ.js +0 -1
- package/dist/plugin-sdk/targets-Co2R6K14.cjs +0 -1
- package/dist/plugin-sdk/targets-CrkJkzil.js +0 -1
- package/dist/plugin-sdk/targets-D-m7SV9x.cjs +0 -1
- package/dist/plugin-sdk/targets-D8HTxbo4.js +0 -1
- package/dist/plugin-sdk/targets-DcGNB9nk.cjs +0 -1
- package/dist/plugin-sdk/targets-Dn9gDiEw.js +0 -1
- package/dist/plugin-sdk/targets-X28mff4s.cjs +0 -1
- package/dist/plugin-sdk/targets-uycXZ8vQ.js +0 -1
- package/dist/plugin-sdk/telegram.cjs +0 -1
- package/dist/plugin-sdk/telegram.js +0 -1
- package/dist/plugin-sdk/test-utils.cjs +0 -1
- package/dist/plugin-sdk/test-utils.js +0 -1
- package/dist/plugin-sdk/tlon.cjs +0 -1
- package/dist/plugin-sdk/tlon.js +0 -1
- package/dist/plugin-sdk/tokens-AAdZjj0M.js +0 -1
- package/dist/plugin-sdk/tokens-B20KNIDD.js +0 -1
- package/dist/plugin-sdk/tokens-B8ys7Q2e.js +0 -1
- package/dist/plugin-sdk/tokens-BPc1fcZ3.js +0 -1
- package/dist/plugin-sdk/tokens-BqABmXSe.js +0 -1
- package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +0 -1
- package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +0 -1
- package/dist/plugin-sdk/tokens-CytSl1X8.cjs +0 -1
- package/dist/plugin-sdk/tokens-DgPZk2Uu.js +0 -1
- package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +0 -1
- package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +0 -1
- package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +0 -1
- package/dist/plugin-sdk/twitch.cjs +0 -1
- package/dist/plugin-sdk/twitch.js +0 -1
- package/dist/plugin-sdk/utils-BJtJR72k.js +0 -1
- package/dist/plugin-sdk/utils-PPIvU9qw.cjs +0 -1
- package/dist/plugin-sdk/voice-call.cjs +0 -1
- package/dist/plugin-sdk/voice-call.js +0 -1
- package/dist/plugin-sdk/web--8MBOleK.js +0 -1
- package/dist/plugin-sdk/web-B7d3p3kx.cjs +0 -1
- package/dist/plugin-sdk/web-BEuW8Yqw.js +0 -1
- package/dist/plugin-sdk/web-Bg2LIMdb.cjs +0 -1
- package/dist/plugin-sdk/web-DFDao2So.cjs +0 -1
- package/dist/plugin-sdk/web-DjbeDvyv.js +0 -1
- package/dist/plugin-sdk/web-JciOW43P.js +0 -1
- package/dist/plugin-sdk/web-vSFigMHz.cjs +0 -1
- package/dist/plugin-sdk/weixin.cjs +0 -1
- package/dist/plugin-sdk/weixin.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-B67oFfeq.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-BB0eACkf.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-BIgrB0j5.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CFve14ju.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CdRkPw-b.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CtIBOGpJ.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-CwAU7FuE.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-DQ1t5QTc.cjs +0 -1
- package/dist/plugin-sdk/whatsapp-actions-DkrN4BcG.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-DnkKzVrU.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-YcBsDZ88.js +0 -1
- package/dist/plugin-sdk/whatsapp-actions-wk1U2IVU.cjs +0 -1
- package/dist/plugin-sdk/whatsapp.cjs +0 -1
- package/dist/plugin-sdk/whatsapp.js +0 -1
- package/dist/plugin-sdk/zalo.cjs +0 -1
- package/dist/plugin-sdk/zalo.js +0 -1
- package/dist/plugin-sdk/zalouser.cjs +0 -1
- package/dist/plugin-sdk/zalouser.js +0 -1
- package/dist/plugins-CYLrFT4h.js +0 -1
- package/dist/plugins-DNlgeTTc.js +0 -1
- package/dist/plugins-cli-CnXgwZzI.js +0 -1
- package/dist/plugins-cli-PVHBZeb8.js +0 -1
- package/dist/polls-BIVz6a4F.js +0 -1
- package/dist/polls-Bh5wc9-6.js +0 -1
- package/dist/polls-C_XSFz3d.js +0 -1
- package/dist/polls-DKJOFSzJ.js +0 -1
- package/dist/ports-BAaLOkJp.js +2 -0
- package/dist/ports-DDWP1p0X.js +2 -0
- package/dist/probe-auth-C5nWfMS9.js +0 -1
- package/dist/probe-auth-x4OHS_wa.js +0 -1
- package/dist/profile-utils-CWmra1aY.js +0 -1
- package/dist/{program-ppBAyCNf.js → program-D53eGuSf.js} +1 -2
- package/dist/program-context-CH9p6anW.js +0 -1
- package/dist/{program-context-BXNpM3b4.js → program-context-n-ovYq69.js} +1 -2
- package/dist/progress-LNttnI-y.js +0 -1
- package/dist/progress-d1m2sqR1.js +0 -1
- package/dist/{prompt-select-styled-947JghKF.js → prompt-select-styled-DZnefcrY.js} +1 -2
- package/dist/{prompt-select-styled-1abs2MvK.js → prompt-select-styled-DolCW-_j.js} +1 -2
- package/dist/prompt-style-BThRSQJR.js +0 -1
- package/dist/prompt-style-CXKekIBY.js +0 -1
- package/dist/prompts-CMzglboN.js +0 -1
- package/dist/prompts-wv-lfVrJ.js +0 -1
- package/dist/provider-auth-helpers-BLm2bdp5.js +0 -1
- package/dist/provider-auth-helpers-DPz0vN_c.js +0 -1
- package/dist/provider-env-vars-D8p6Ohpj.js +0 -1
- package/dist/provider-env-vars-Dt0Q29Su.js +0 -1
- package/dist/proxy-env-BNhTHkd_.js +0 -1
- package/dist/proxy-env-DcmW_urA.js +0 -1
- package/dist/proxy-env-DrC3TIGh.js +0 -1
- package/dist/proxy-env-FJr5nlvs.js +0 -1
- package/dist/proxy-fetch-BADsUK4d.js +0 -1
- package/dist/proxy-fetch-BZ9O8Dvj.js +0 -1
- package/dist/proxy-fetch-DnjU1fEB.js +0 -1
- package/dist/proxy-fetch-gWETR3cl.js +0 -1
- package/dist/push-apns-BBv62ncV.js +0 -1
- package/dist/push-apns-DIV5dBPP.js +0 -1
- package/dist/pw-ai-C0gM3d-6.js +0 -1
- package/dist/pw-ai-CQd14BQa.js +0 -1
- package/dist/pw-ai-DiQuOf4W.js +0 -1
- package/dist/pw-ai-jlhIn-aA.js +0 -1
- package/dist/qmd-manager-C_e04BNg.js +0 -1
- package/dist/qmd-manager-DSQ_mDCl.js +0 -1
- package/dist/qmd-manager-DcBYbt_V.js +0 -1
- package/dist/qmd-manager-NLI0R6kp.js +0 -1
- package/dist/qr-cli-D06YZurm.js +0 -1
- package/dist/qr-cli-ZtDsXyLO.js +0 -1
- package/dist/query-expansion-0OxEb1Io.js +0 -1
- package/dist/query-expansion-BUUx_oWg.js +0 -1
- package/dist/query-expansion-r_iXkNzt.js +0 -1
- package/dist/reaction-level-DVPHL14p.js +0 -1
- package/dist/reaction-message-id-BEEe7X3D.js +0 -1
- package/dist/read-only-account-inspect-B0cm8yrv.js +0 -1
- package/dist/redact-3_CiXMY6.js +0 -1
- package/dist/redact-CnRxK70G.js +0 -1
- package/dist/register.agent-DHOTtB8X.js +0 -1
- package/dist/register.agent-DQdoMfmw.js +0 -1
- package/dist/register.backup-BDO3V0so.js +0 -1
- package/dist/register.backup-Vh8RK6fp.js +0 -1
- package/dist/register.configure-C2N82brC.js +0 -1
- package/dist/register.configure-C6zjzaEo.js +0 -1
- package/dist/{register.maintenance-Br9uoFKo.js → register.maintenance-CStaPxaB.js} +1 -2
- package/dist/{register.maintenance-Cm3wq9bt.js → register.maintenance-aKBTd9Zp.js} +1 -2
- package/dist/register.message-DHDcOA8X.js +0 -1
- package/dist/register.message-Dh72QHKA.js +0 -1
- package/dist/{register.onboard-AjrSlfCb.js → register.onboard-Bu9gpFlA.js} +1 -2
- package/dist/{register.onboard-zCG1PNWc.js → register.onboard-DB9FWAKT.js} +1 -2
- package/dist/{register.setup-DN0y_pth.js → register.setup-CeG2ETmr.js} +1 -2
- package/dist/{register.setup-Blyl_QsK.js → register.setup-D76IRs4s.js} +1 -2
- package/dist/register.status-health-sessions-Dtpd1P2M.js +0 -1
- package/dist/register.status-health-sessions-mPGKFjIz.js +0 -1
- package/dist/{register.subclis-5Pb-uEHk.js → register.subclis-Drp2dGBe.js} +1 -2
- package/dist/registry-BptzrW8D.js +0 -1
- package/dist/registry-hFAtCSWG.js +0 -1
- package/dist/render-BXEUPIHe.js +0 -1
- package/dist/render-CBsnn-2A.js +0 -1
- package/dist/render-D8OWO2hT.js +0 -1
- package/dist/render-DrrPmnMI.js +0 -1
- package/dist/reply-DwfVhea1.js +0 -1
- package/dist/restart-BeJuoXCx.js +0 -1
- package/dist/rpc-BBdeIvn0.js +0 -1
- package/dist/rpc-f85A4Ib_.js +0 -1
- package/dist/{run-main-DGwq5DIc.js → run-main-CjwjyWA6.js} +1 -2
- package/dist/runtime-CK7gqwEF.js +0 -1
- package/dist/runtime-DYttInEE.js +0 -1
- package/dist/runtime-guard-DFYBaYZS.js +0 -1
- package/dist/runtime-guard-DX2Ie4ri.js +0 -1
- package/dist/runtime-status-CqFBmdRd.js +0 -1
- package/dist/runtime-status-DszMjvJK.js +0 -1
- package/dist/runtime-web-tools-BYhCkBV8.js +0 -1
- package/dist/runtime-web-tools-C4F6aaRh.js +0 -1
- package/dist/sandbox-cli-BR0Lsru-.js +0 -1
- package/dist/sandbox-cli-Jo5nYeug.js +0 -1
- package/dist/scan-paths-C13EseXp.js +0 -1
- package/dist/scan-paths-CWtvWW40.js +0 -1
- package/dist/search-manager-CV2YsAym.js +0 -1
- package/dist/secret-file-C7JffiM_.js +0 -1
- package/dist/secret-file-D60EFEOe.js +0 -1
- package/dist/secret-file-DuWm26jS.js +0 -1
- package/dist/secrets-cli-B8kwyZFo.js +0 -1
- package/dist/secrets-cli-BstBe0UA.js +0 -1
- package/dist/secure-random-D7JQgiK-.js +0 -1
- package/dist/security-cli-C6t8OxaE.js +0 -1
- package/dist/security-cli-Cuc8IQKB.js +0 -1
- package/dist/send--9G8eXo4.js +0 -1
- package/dist/send-4h1tQwX3.js +0 -1
- package/dist/send-7qgAI0ap.js +0 -1
- package/dist/send-AQ3CJLpI.js +0 -1
- package/dist/send-BjrfjBn9.js +0 -1
- package/dist/send-BwblpWbK.js +0 -1
- package/dist/send-C4Lm4nmt.js +0 -1
- package/dist/send-C7rOdjPO.js +0 -1
- package/dist/send-COpehmAB.js +0 -1
- package/dist/send-CWVTcDAW.js +0 -1
- package/dist/send-CciNyaWL.js +0 -1
- package/dist/send-ChILboDj.js +0 -1
- package/dist/send-CyarIb2w.js +0 -1
- package/dist/send-DiHS8tKf.js +0 -1
- package/dist/send-Dj7NBAWg.js +0 -1
- package/dist/send-DmHpf5Fz.js +0 -1
- package/dist/send-NbU9-scF2.js +0 -1
- package/dist/send-hlES-kRl2.js +0 -1
- package/dist/send-swTiQAeK2.js +0 -1
- package/dist/send-vNcod64S.js +0 -1
- package/dist/server-C-lb98FO.js +0 -1
- package/dist/server-DwSkpKgC.js +0 -1
- package/dist/server-node-events-CL0pWoMa.js +0 -1
- package/dist/server-node-events-ChPQ984b.js +0 -1
- package/dist/service-BtB9epJk.js +0 -1
- package/dist/service-DZ9EbS15.js +0 -1
- package/dist/session-BSRnpwSq.js +0 -1
- package/dist/session-CfHCnrXh.js +0 -1
- package/dist/session-JqCxWBM8.js +0 -1
- package/dist/session-bk3gFwO4.js +0 -1
- package/dist/session-cost-usage-BgqKixv0.js +0 -1
- package/dist/session-cost-usage-CHtVgnE8.js +0 -1
- package/dist/session-key-C7F_iqYg.js +0 -1
- package/dist/session-key-D3P0tf5P.js +0 -1
- package/dist/session-utils-Bpdyx2A2.js +0 -1
- package/dist/sessions-Ca6ozRCQ.js +0 -1
- package/dist/shared-9x5sqYRb.js +0 -1
- package/dist/shared-BKWhOp64.js +0 -1
- package/dist/shared-Ca5BFwta.js +0 -1
- package/dist/skill-commands-CPZcaV8-.js +0 -1
- package/dist/skill-commands-CtprBvm0.js +0 -1
- package/dist/skill-commands-DCqPy_Aa.js +0 -1
- package/dist/skill-commands-DlHVddAk.js +0 -1
- package/dist/skill-scanner-CUUF3Fvo.js +0 -1
- package/dist/skill-scanner-CkxXNioD.js +0 -1
- package/dist/skills-Bz_S4lPh.js +0 -1
- package/dist/skills-CzUpDbU-.js +0 -1
- package/dist/skills-cli-DK0QDfln.js +0 -1
- package/dist/skills-cli-DLmqhAB-.js +0 -1
- package/dist/skills-install-D3YB2C-S.js +0 -1
- package/dist/skills-install-cEcqzaX8.js +0 -1
- package/dist/skills-status-D4Y1BJYL.js +0 -1
- package/dist/skills-status-DpSboPY1.js +0 -1
- package/dist/sqlite-CILF3z9U.js +0 -1
- package/dist/stagger-DmFYysrJ.js +0 -1
- package/dist/stagger-DxzgG2jd.js +0 -1
- package/dist/status-BAat65xo.js +0 -1
- package/dist/status-BSHWBrg0.js +0 -1
- package/dist/status-o3Gfr-6l.js +0 -1
- package/dist/status-w4NsjW2R.js +0 -1
- package/dist/status.update-B_8Gumuc.js +0 -1
- package/dist/status.update-_2r0S6Re.js +0 -1
- package/dist/string-normalization-BrUPaXaM.js +0 -1
- package/dist/string-normalization-DJT5zuUF.js +0 -1
- package/dist/subsystem-BLbY429l.js +0 -1
- package/dist/subsystem-Bc2XrjUz.js +0 -1
- package/dist/subsystem-C5XF2Fy5.js +0 -1
- package/dist/system-cli-Ddixb0SQ.js +0 -1
- package/dist/system-cli-NAH97F2s.js +0 -1
- package/dist/system-run-command-DsWBVvSK.js +0 -1
- package/dist/system-run-command-E8ymBXHh.js +0 -1
- package/dist/systemd-D7odsu4K.js +0 -1
- package/dist/systemd-DbevZh65.js +0 -1
- package/dist/systemd-hints-CEQj6yrs.js +0 -1
- package/dist/systemd-hints-lXpMy-kY.js +0 -1
- package/dist/systemd-linger-C2MJD6KG.js +0 -1
- package/dist/systemd-linger-cWKbFNpu.js +0 -1
- package/dist/table-CR7TFMew.js +0 -1
- package/dist/table-CY440fI1.js +0 -1
- package/dist/tables-D6J-isob.js +0 -1
- package/dist/tables-DENKrP-W.js +0 -1
- package/dist/tables-_t5V36m9.js +0 -1
- package/dist/tables-fl9iXahm.js +0 -1
- package/dist/target-errors-CoEHv_2r.js +0 -1
- package/dist/target-errors-D6wejRd6.js +0 -1
- package/dist/target-errors-Dnkqss9y.js +0 -1
- package/dist/target-errors-sMFXKeAY.js +0 -1
- package/dist/targets-4EaxWBal.js +0 -1
- package/dist/targets-BJTo7bqu.js +0 -1
- package/dist/targets-BYVMrXDf.js +0 -1
- package/dist/targets-Bq6rS6-Z.js +0 -1
- package/dist/targets-CL5fYQi7.js +0 -1
- package/dist/targets-fozeWOOg.js +0 -1
- package/dist/targets-m_41k_Mv.js +0 -1
- package/dist/telegram/audit.js +0 -1
- package/dist/text-format-CvrvBBre.js +0 -1
- package/dist/text-format-DEWK6oCT.js +0 -1
- package/dist/token-DnTmiyJu.js +0 -1
- package/dist/tokens-B2fq-rL6.js +0 -1
- package/dist/tokens-CL2fSjGl.js +0 -1
- package/dist/tokens-DRM8vzJx.js +0 -1
- package/dist/tokens-XGbQGn67.js +0 -1
- package/dist/tool-display-DJDtttQg.js +0 -1
- package/dist/tool-display-DjuSUUbH.js +0 -1
- package/dist/tui-5Znjl2Rb.js +0 -1
- package/dist/tui-Tlww_AcE.js +0 -1
- package/dist/tui-cli-C9QPsw50.js +0 -1
- package/dist/tui-cli-FxvETbln.js +0 -1
- package/dist/types.secrets-C-5U96pc.js +0 -1
- package/dist/types.secrets-D4tbc3Wq.js +0 -1
- package/dist/update-CMneH_48.js +0 -1
- package/dist/update-D9EwPybG.js +0 -1
- package/dist/{update-cli-BQGwMpHe.js → update-cli-CL_cUjuq.js} +1 -2
- package/dist/{update-cli-C7pZTXS8.js → update-cli-DU5tRH3c.js} +1 -2
- package/dist/update-runner-DABdlxfN.js +0 -1
- package/dist/update-runner-DG-1TYYc.js +0 -1
- package/dist/usage-format-BWD8FJFL.js +0 -1
- package/dist/usage-format-yPwal8Iz.js +0 -1
- package/dist/utils-CGdo13HV.js +0 -1
- package/dist/utils-D3t-vPka.js +0 -1
- package/dist/utils-R-mFyVJi.js +0 -1
- package/dist/utils-UGOV_184.js +0 -1
- package/dist/version-q3SkUw2K.js +0 -1
- package/dist/warning-filter.js +0 -1
- package/dist/web-Dfi2WjvN.js +0 -1
- package/dist/web-u71NbOpT.js +0 -1
- package/dist/webhooks-cli-DMTzhfTv.js +0 -1
- package/dist/webhooks-cli-ICOwBPSv.js +0 -1
- package/dist/whatsapp-actions-Bdf-3-ne.js +0 -1
- package/dist/whatsapp-actions-D2qMOK3a.js +0 -1
- package/dist/whatsapp-actions-f5CsM5EM.js +0 -1
- package/dist/whatsapp-actions-t88tyNUT.js +0 -1
- package/dist/widearea-dns-BDx7vkV2.js +0 -1
- package/dist/widearea-dns-BFjqKXu_.js +0 -1
- package/dist/windows-spawn-7oINn5ao.js +0 -1
- package/dist/windows-spawn-AB7ItGAE.js +0 -1
- package/dist/with-timeout-WveKxvFV.js +0 -1
- package/dist/with-timeout-c1CzdShT.js +0 -1
- package/dist/workspace-B0ZQeHXg.js +0 -1
- package/dist/workspace-C45T1Cxg.js +0 -1
- package/dist/workspace-dirs-A8Vib9_B.js +0 -1
- package/dist/workspace-dirs-BhF1Dzxt.js +0 -1
- package/dist/workspace-xNEpaJvu.js +0 -1
- package/dist/wsl-DHxB2Ew_.js +0 -1
- package/dist/wsl-Ok7GaSJ6.js +0 -1
- package/extensions/qqbrowser-skill-control/index.js +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +1 -1
- package/node_modules/@google/genai/dist/index.cjs +341 -180
- package/node_modules/@google/genai/dist/index.mjs +341 -180
- package/node_modules/@google/genai/dist/node/index.cjs +341 -180
- package/node_modules/@google/genai/dist/node/index.mjs +341 -180
- package/node_modules/@google/genai/dist/tokenizer/node.cjs +100 -0
- package/node_modules/@google/genai/dist/tokenizer/node.mjs +100 -0
- package/node_modules/@google/genai/dist/vertex_internal/index.cjs +103 -2
- package/node_modules/@google/genai/dist/vertex_internal/index.js +103 -2
- package/node_modules/@google/genai/dist/web/index.mjs +342 -180
- package/node_modules/@google/genai/package.json +1 -1
- package/node_modules/@slack/web-api/dist/instrument.js +13 -1
- package/node_modules/@slack/web-api/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +154 -61
- package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
- package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +41 -0
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +20 -5
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
- package/node_modules/@smithy/util-endpoints/package.json +1 -1
- package/node_modules/discord-api-types/package.json +1 -1
- package/node_modules/discord-api-types/payloads/index.mjs +3 -0
- package/node_modules/discord-api-types/payloads/v10/index.mjs +3 -0
- package/node_modules/discord-api-types/payloads/v10/message.js +55 -2
- package/node_modules/discord-api-types/payloads/v10/user.js +2 -0
- package/node_modules/discord-api-types/payloads/v9/index.mjs +3 -0
- package/node_modules/discord-api-types/payloads/v9/message.js +55 -2
- package/node_modules/discord-api-types/payloads/v9/user.js +2 -0
- package/node_modules/discord-api-types/rest/v10/channel.js +6 -0
- package/node_modules/discord-api-types/rest/v9/channel.js +6 -0
- package/node_modules/discord-api-types/v10.mjs +3 -0
- package/node_modules/discord-api-types/v9.mjs +3 -0
- package/node_modules/undici/package.json +1 -1
- package/package.json +2 -1
- package/dist/ports-Dylc6TrH.js +0 -3
- package/dist/ports-hkqQXSus.js +0 -3
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/LICENSE +0 -22
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/commander/Readme.md +0 -1157
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/LICENSE +0 -21
- package/node_modules/@anthropic-ai/sandbox-runtime/node_modules/zod/README.md +0 -208
- package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +0 -3
- package/node_modules/@anthropic-ai/sdk/src/core/README.md +0 -3
- package/node_modules/@anthropic-ai/sdk/src/internal/README.md +0 -3
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/LICENSE +0 -201
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/README.md +0 -62
- package/node_modules/@buape/carbon/node_modules/@discordjs/voice/LICENSE +0 -191
- package/node_modules/@buape/carbon/node_modules/@discordjs/voice/README.md +0 -112
- package/node_modules/@buape/carbon/node_modules/discord-api-types/LICENSE +0 -21
- package/node_modules/@buape/carbon/node_modules/discord-api-types/README.md +0 -102
- package/node_modules/@buape/carbon/node_modules/ws/LICENSE +0 -20
- package/node_modules/@buape/carbon/node_modules/ws/README.md +0 -548
- package/node_modules/@line/bot-sdk/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@line/bot-sdk/node_modules/@types/node/README.md +0 -15
- package/node_modules/@line/bot-sdk/node_modules/undici-types/LICENSE +0 -21
- package/node_modules/@line/bot-sdk/node_modules/undici-types/README.md +0 -6
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-logs-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-http/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-metrics-otlp-proto/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
- package/node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/LICENSE +0 -201
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics/README.md +0 -100
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/LICENSE +0 -201
- package/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base/README.md +0 -185
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources/README.md +0 -49
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/LICENSE +0 -201
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/README.md +0 -73
- package/node_modules/@sinclair/typebox/license +0 -25
- package/node_modules/@sinclair/typebox/readme.md +0 -1865
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/license +0 -9
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/readme.md +0 -1077
- package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/license +0 -9
- package/node_modules/@whiskeysockets/baileys/node_modules/p-timeout/readme.md +0 -192
- package/node_modules/ansi-regex/license +0 -9
- package/node_modules/ansi-regex/readme.md +0 -66
- package/node_modules/ansi-styles/license +0 -9
- package/node_modules/ansi-styles/readme.md +0 -152
- package/node_modules/atomic-sleep/readme.md +0 -58
- package/node_modules/axios/lib/adapters/README.md +0 -36
- package/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/bytes/History.md +0 -97
- package/node_modules/bytes/Readme.md +0 -152
- package/node_modules/chalk/license +0 -9
- package/node_modules/chalk/readme.md +0 -297
- package/node_modules/cli-highlight/node_modules/chalk/license +0 -9
- package/node_modules/cli-highlight/node_modules/chalk/readme.md +0 -341
- package/node_modules/cliui/node_modules/ansi-regex/license +0 -9
- package/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/cliui/node_modules/strip-ansi/license +0 -9
- package/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/combined-stream/License +0 -19
- package/node_modules/combined-stream/Readme.md +0 -138
- package/node_modules/commander/Readme.md +0 -1176
- package/node_modules/cookie-signature/History.md +0 -70
- package/node_modules/cookie-signature/Readme.md +0 -23
- package/node_modules/css-what/readme.md +0 -69
- package/node_modules/delayed-stream/License +0 -19
- package/node_modules/delayed-stream/Readme.md +0 -141
- package/node_modules/depd/History.md +0 -103
- package/node_modules/depd/Readme.md +0 -280
- package/node_modules/domelementtype/readme.md +0 -1
- package/node_modules/domhandler/readme.md +0 -92
- package/node_modules/domutils/readme.md +0 -31
- package/node_modules/entities/readme.md +0 -122
- package/node_modules/escalade/license +0 -9
- package/node_modules/escalade/readme.md +0 -211
- package/node_modules/escape-html/Readme.md +0 -43
- package/node_modules/express/Readme.md +0 -276
- package/node_modules/express-rate-limit/license.md +0 -20
- package/node_modules/express-rate-limit/readme.md +0 -136
- package/node_modules/extract-zip/readme.md +0 -57
- package/node_modules/fast-string-truncated-width/license +0 -21
- package/node_modules/fast-string-truncated-width/readme.md +0 -60
- package/node_modules/fast-string-width/license +0 -21
- package/node_modules/fast-string-width/readme.md +0 -45
- package/node_modules/file-type/license +0 -9
- package/node_modules/file-type/readme.md +0 -667
- package/node_modules/form-data/License +0 -19
- package/node_modules/form-data/node_modules/mime-db/HISTORY.md +0 -507
- package/node_modules/form-data/node_modules/mime-db/LICENSE +0 -23
- package/node_modules/form-data/node_modules/mime-db/README.md +0 -100
- package/node_modules/form-data/node_modules/mime-types/HISTORY.md +0 -397
- package/node_modules/form-data/node_modules/mime-types/LICENSE +0 -23
- package/node_modules/form-data/node_modules/mime-types/README.md +0 -113
- package/node_modules/gaxios/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/gaxios/node_modules/agent-base/README.md +0 -69
- package/node_modules/gaxios/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/gaxios/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/get-east-asian-width/license +0 -9
- package/node_modules/get-east-asian-width/readme.md +0 -65
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/readme.md +0 -124
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/LICENSE +0 -22
- package/node_modules/get-uri/node_modules/data-uri-to-buffer/README.md +0 -61
- package/node_modules/grammy/node_modules/node-fetch/LICENSE.md +0 -22
- package/node_modules/grammy/node_modules/node-fetch/README.md +0 -634
- package/node_modules/has-flag/license +0 -9
- package/node_modules/has-flag/readme.md +0 -89
- package/node_modules/htmlparser2/node_modules/entities/LICENSE +0 -11
- package/node_modules/htmlparser2/node_modules/entities/readme.md +0 -143
- package/node_modules/http-proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/http-proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/is-stream/license +0 -9
- package/node_modules/is-stream/readme.md +0 -60
- package/node_modules/jws/readme.md +0 -255
- package/node_modules/libsignal/native/ed25519/sha512/LICENSE.txt +0 -20
- package/node_modules/libsignal/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/libsignal/node_modules/@types/node/README.md +0 -16
- package/node_modules/libsignal/node_modules/long/LICENSE +0 -202
- package/node_modules/libsignal/node_modules/long/README.md +0 -246
- package/node_modules/libsignal/node_modules/protobufjs/LICENSE +0 -39
- package/node_modules/libsignal/node_modules/protobufjs/README.md +0 -879
- package/node_modules/libsignal/node_modules/protobufjs/cli/LICENSE +0 -33
- package/node_modules/libsignal/node_modules/protobufjs/cli/README.md +0 -11
- package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +0 -21
- package/node_modules/libsignal/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +0 -23
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/license +0 -21
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/os-tmpdir/readme.md +0 -32
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/LICENSE +0 -21
- package/node_modules/libsignal/node_modules/protobufjs/cli/node_modules/tmp/README.md +0 -314
- package/node_modules/libsignal/node_modules/protobufjs/dist/README.md +0 -31
- package/node_modules/libsignal/node_modules/protobufjs/dist/light/README.md +0 -31
- package/node_modules/libsignal/node_modules/protobufjs/dist/minimal/README.md +0 -31
- package/node_modules/libsignal/node_modules/protobufjs/ext/debug/README.md +0 -4
- package/node_modules/libsignal/node_modules/protobufjs/ext/descriptor/README.md +0 -72
- package/node_modules/libsignal/node_modules/protobufjs/google/LICENSE +0 -27
- package/node_modules/libsignal/node_modules/protobufjs/google/README.md +0 -1
- package/node_modules/lie/license.md +0 -7
- package/node_modules/linkedom/node_modules/html-escaper/LICENSE.txt +0 -19
- package/node_modules/linkedom/node_modules/html-escaper/README.md +0 -110
- package/node_modules/merge-descriptors/license +0 -11
- package/node_modules/merge-descriptors/readme.md +0 -55
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/node-edge-tts/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/node-edge-tts/node_modules/agent-base/README.md +0 -69
- package/node_modules/node-edge-tts/node_modules/ansi-regex/license +0 -9
- package/node_modules/node-edge-tts/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/node-edge-tts/node_modules/cliui/LICENSE.txt +0 -14
- package/node_modules/node-edge-tts/node_modules/cliui/README.md +0 -141
- package/node_modules/node-edge-tts/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/node-edge-tts/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/node-edge-tts/node_modules/strip-ansi/license +0 -9
- package/node_modules/node-edge-tts/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/node-edge-tts/node_modules/yargs/LICENSE +0 -21
- package/node_modules/node-edge-tts/node_modules/yargs/README.md +0 -204
- package/node_modules/node-edge-tts/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/node_modules/node-edge-tts/node_modules/yargs-parser/README.md +0 -518
- package/node_modules/object-assign/license +0 -21
- package/node_modules/object-assign/readme.md +0 -61
- package/node_modules/object-inspect/readme.markdown +0 -84
- package/node_modules/openai/src/_vendor/partial-json-parser/README.md +0 -3
- package/node_modules/openai/src/_vendor/zod-to-json-schema/LICENSE +0 -15
- package/node_modules/openai/src/_vendor/zod-to-json-schema/README.md +0 -3
- package/node_modules/openai/src/core/README.md +0 -3
- package/node_modules/openai/src/internal/README.md +0 -3
- package/node_modules/openai/src/internal/qs/LICENSE.md +0 -13
- package/node_modules/openai/src/internal/qs/README.md +0 -3
- package/node_modules/p-finally/license +0 -21
- package/node_modules/p-finally/readme.md +0 -47
- package/node_modules/p-queue/license +0 -9
- package/node_modules/p-queue/node_modules/eventemitter3/LICENSE +0 -21
- package/node_modules/p-queue/node_modules/eventemitter3/README.md +0 -94
- package/node_modules/p-queue/readme.md +0 -400
- package/node_modules/p-retry/license +0 -9
- package/node_modules/p-retry/readme.md +0 -148
- package/node_modules/p-timeout/license +0 -9
- package/node_modules/p-timeout/readme.md +0 -87
- package/node_modules/pac-proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/pac-proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/pac-proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/pako/lib/zlib/README +0 -59
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/LICENSE +0 -19
- package/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5/README.md +0 -38
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/path-to-regexp/Readme.md +0 -224
- package/node_modules/pino-std-serializers/Readme.md +0 -182
- package/node_modules/process-nextick-args/license.md +0 -19
- package/node_modules/process-nextick-args/readme.md +0 -18
- package/node_modules/proper-lockfile/node_modules/retry/License +0 -21
- package/node_modules/proper-lockfile/node_modules/retry/README.md +0 -227
- package/node_modules/protobufjs/ext/debug/README.md +0 -4
- package/node_modules/protobufjs/ext/descriptor/README.md +0 -72
- package/node_modules/proxy-addr/node_modules/ipaddr.js/LICENSE +0 -19
- package/node_modules/proxy-addr/node_modules/ipaddr.js/README.md +0 -233
- package/node_modules/proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/proxy-agent/node_modules/https-proxy-agent/LICENSE +0 -22
- package/node_modules/proxy-agent/node_modules/https-proxy-agent/README.md +0 -70
- package/node_modules/proxy-agent/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/proxy-agent/node_modules/lru-cache/README.md +0 -1117
- package/node_modules/proxy-agent/node_modules/proxy-from-env/LICENSE +0 -20
- package/node_modules/proxy-agent/node_modules/proxy-from-env/README.md +0 -131
- package/node_modules/qified/node_modules/hookified/LICENSE +0 -19
- package/node_modules/qified/node_modules/hookified/README.md +0 -1682
- package/node_modules/quick-format-unescaped/readme.md +0 -66
- package/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/readable-stream/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/require-from-string/license +0 -21
- package/node_modules/require-from-string/readme.md +0 -56
- package/node_modules/retry/License +0 -21
- package/node_modules/router/node_modules/is-promise/LICENSE +0 -19
- package/node_modules/router/node_modules/is-promise/readme.md +0 -33
- package/node_modules/safe-stable-stringify/readme.md +0 -179
- package/node_modules/safer-buffer/Readme.md +0 -156
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/sisteransi/license +0 -21
- package/node_modules/sisteransi/readme.md +0 -113
- package/node_modules/socks-proxy-agent/node_modules/agent-base/LICENSE +0 -22
- package/node_modules/socks-proxy-agent/node_modules/agent-base/README.md +0 -69
- package/node_modules/string-width/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/license +0 -9
- package/node_modules/string-width/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/string-width/node_modules/strip-ansi/license +0 -9
- package/node_modules/string-width/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/string-width/readme.md +0 -50
- package/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/string_decoder/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/strip-ansi/license +0 -9
- package/node_modules/strip-ansi/readme.md +0 -37
- package/node_modules/supports-color/license +0 -9
- package/node_modules/supports-color/readme.md +0 -76
- package/node_modules/uint8array-extras/license +0 -9
- package/node_modules/uint8array-extras/readme.md +0 -318
- package/node_modules/undici/lib/web/fetch/LICENSE +0 -21
- package/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/wrap-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
- package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
- package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/yoctocolors/license +0 -9
- package/node_modules/yoctocolors/readme.md +0 -138
- package/node_modules/zod-to-json-schema/changelog.md +0 -83
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{N as e,p as t}from"./subsystem-BLbY429l.js";import{d as n,g as r,m as i,t as a,u as o,y as s}from"./paths-BjD3T_xq.js";import{i as c}from"./entry.js";import{$a as l,Ai as u,Bo as d,Fo as f,Ki as p,Kn as m,Kr as h,Ni as g,On as _,Ri as v,Tc as y,Ua as b,Va as x,Xr as S,Ya as ee,Yc as C,Zc as w,_c as T,ca as E,du as D,fu as O,gr as k,hu as A,jt as te,kc as j,l as ne,mu as re,qa as ie,qn as ae,ta as oe,ul as se,wa as ce,zc as le}from"./auth-profiles-C8rZRS0X.js";import{t as M}from"./command-format-CLxIPuLR.js";import{_ as ue,a as de,d as N,f as P}from"./agent-scope-DAWJwFfl.js";import{E as fe}from"./session-key-C7F_iqYg.js";import{S as pe,h as me,v as he,x as F}from"./utils-CGdo13HV.js";import{t as ge}from"./openclaw-root-CnsBf6ZU.js";import{a as I,d as _e}from"./types.secrets-D4tbc3Wq.js";import{n as ve}from"./plugins-DNlgeTTc.js";import{n as ye,t as L}from"./exec-B3eleY5O.js";import{Cr as be,Or as xe,Pr as Se,Sr as Ce,an as we,in as Te,l as Ee,rn as De}from"./compact-CYbPi7_-.js";import{c as Oe,n as ke,r as Ae,s as je}from"./paths-BfjJY2VL.js";import{C as Me,S as Ne,w as Pe}from"./send-Dj7NBAWg.js";import{n as Fe}from"./model-catalog-mt0IcDfR.js";import{n as Ie,t as Le}from"./call-BWx7hNtl.js";import{u as Re}from"./pi-tools.policy-B6q8YOfg.js";import{g as ze,m as Be,p as Ve,u as He}from"./arg-split-BOqSMBuf.js";import{r as Ue,t as We}from"./wsl-DHxB2Ew_.js";import{h as Ge,n as Ke,p as qe,s as Je}from"./onboard-helpers-DOlI17Ac.js";import{n as R,r as Ye,t as Xe}from"./prompt-style-BThRSQJR.js";import{r as Ze}from"./search-manager-CV2YsAym.js";import{a as Qe,i as $e}from"./manager-CxZRoQkE.js";import{t as et}from"./skills-status-DpSboPY1.js";import{t as z}from"./note-Dp-d_utk.js";import{t as tt}from"./channels-status-issues-8eFrGKyf.js";import{a as nt,o as rt}from"./daemon-install-plan.shared-Dx3DBXCG.js";import{n as B,r as it,t as at}from"./gateway-install-token-cSJrfU_1.js";import{n as ot,t as V}from"./daemon-runtime-VcpeBRJV.js";import{i as st,u as ct}from"./systemd-DbevZh65.js";import{a as lt,i as ut,n as dt,o as ft,s as pt,t as mt}from"./service-DZ9EbS15.js";import{c as ht,i as gt,n as _t,o as vt,r as yt,s as bt,t as xt,u as St}from"./systemd-hints-lXpMy-kY.js";import{t as Ct}from"./diagnostics-Cdctg9K_.js";import{n as wt,t as Tt}from"./inspect-z59cgmYc.js";import{r as Et}from"./health-CIZFVJEG.js";import{i as Dt,r as Ot}from"./control-ui-assets-CTHGGgaX.js";import{t as kt}from"./channel-account-context-DAcarnqW.js";import{t as At,u as jt}from"./update-runner-DABdlxfN.js";import{n as Mt}from"./logging-B7XHbCNn.js";import{n as Nt}from"./oauth-tls-preflight-BSBRDIfC.js";import{n as Pt,r as Ft,t as It}from"./doctor-config-flow-Dio3s4x6.js";import{t as Lt}from"./systemd-linger-cWKbFNpu.js";import{t as Rt}from"./health-format-B1nj3Wfn.js";import{n as zt}from"./doctor-completion-
|
|
1
|
+
import{N as e,p as t}from"./subsystem-BLbY429l.js";import{d as n,g as r,m as i,t as a,u as o,y as s}from"./paths-BjD3T_xq.js";import{i as c}from"./entry.js";import{$a as l,Ai as u,Bo as d,Fo as f,Ki as p,Kn as m,Kr as h,Ni as g,On as _,Ri as v,Tc as y,Ua as b,Va as x,Xr as S,Ya as ee,Yc as C,Zc as w,_c as T,ca as E,du as D,fu as O,gr as k,hu as A,jt as te,kc as j,l as ne,mu as re,qa as ie,qn as ae,ta as oe,ul as se,wa as ce,zc as le}from"./auth-profiles-C8rZRS0X.js";import{t as M}from"./command-format-CLxIPuLR.js";import{_ as ue,a as de,d as N,f as P}from"./agent-scope-DAWJwFfl.js";import{E as fe}from"./session-key-C7F_iqYg.js";import{S as pe,h as me,v as he,x as F}from"./utils-CGdo13HV.js";import{t as ge}from"./openclaw-root-CnsBf6ZU.js";import{a as I,d as _e}from"./types.secrets-D4tbc3Wq.js";import{n as ve}from"./plugins-DNlgeTTc.js";import{n as ye,t as L}from"./exec-B3eleY5O.js";import{Cr as be,Or as xe,Pr as Se,Sr as Ce,an as we,in as Te,l as Ee,rn as De}from"./compact-CYbPi7_-.js";import{c as Oe,n as ke,r as Ae,s as je}from"./paths-BfjJY2VL.js";import{C as Me,S as Ne,w as Pe}from"./send-Dj7NBAWg.js";import{n as Fe}from"./model-catalog-mt0IcDfR.js";import{n as Ie,t as Le}from"./call-BWx7hNtl.js";import{u as Re}from"./pi-tools.policy-B6q8YOfg.js";import{g as ze,m as Be,p as Ve,u as He}from"./arg-split-BOqSMBuf.js";import{r as Ue,t as We}from"./wsl-DHxB2Ew_.js";import{h as Ge,n as Ke,p as qe,s as Je}from"./onboard-helpers-DOlI17Ac.js";import{n as R,r as Ye,t as Xe}from"./prompt-style-BThRSQJR.js";import{r as Ze}from"./search-manager-CV2YsAym.js";import{a as Qe,i as $e}from"./manager-CxZRoQkE.js";import{t as et}from"./skills-status-DpSboPY1.js";import{t as z}from"./note-Dp-d_utk.js";import{t as tt}from"./channels-status-issues-8eFrGKyf.js";import{a as nt,o as rt}from"./daemon-install-plan.shared-Dx3DBXCG.js";import{n as B,r as it,t as at}from"./gateway-install-token-cSJrfU_1.js";import{n as ot,t as V}from"./daemon-runtime-VcpeBRJV.js";import{i as st,u as ct}from"./systemd-DbevZh65.js";import{a as lt,i as ut,n as dt,o as ft,s as pt,t as mt}from"./service-DZ9EbS15.js";import{c as ht,i as gt,n as _t,o as vt,r as yt,s as bt,t as xt,u as St}from"./systemd-hints-lXpMy-kY.js";import{t as Ct}from"./diagnostics-Cdctg9K_.js";import{n as wt,t as Tt}from"./inspect-z59cgmYc.js";import{r as Et}from"./health-CIZFVJEG.js";import{i as Dt,r as Ot}from"./control-ui-assets-CTHGGgaX.js";import{t as kt}from"./channel-account-context-DAcarnqW.js";import{t as At,u as jt}from"./update-runner-DABdlxfN.js";import{n as Mt}from"./logging-B7XHbCNn.js";import{n as Nt}from"./oauth-tls-preflight-BSBRDIfC.js";import{n as Pt,r as Ft,t as It}from"./doctor-config-flow-Dio3s4x6.js";import{t as Lt}from"./systemd-linger-cWKbFNpu.js";import{t as Rt}from"./health-format-B1nj3Wfn.js";import{n as zt}from"./doctor-completion-DI7mGC3D.js";import{execFile as Bt}from"node:child_process";import H from"node:os";import U from"node:path";import W from"node:fs";import{promisify as Vt}from"node:util";import G from"node:fs/promises";import{confirm as Ht,intro as Ut,outro as Wt,select as Gt}from"@clack/prompts";async function Kt(e,t){let n=T({cfg:e,store:y(),provider:`anthropic`,legacyProfileId:`anthropic:default`});return!n.migrated||n.changes.length===0||(z(n.changes.map(e=>`- ${e}`).join(`
|
|
2
2
|
`),`Auth profiles`),!await t.confirm({message:`Update Anthropic OAuth profile id in config now?`,initialValue:!0}))?e:n.config}function qt(e,t){if(!e)return{next:e,changed:!1};let n=!1,r={};for(let[i,a]of Object.entries(e)){let e=a.filter(e=>!t.has(e));e.length!==a.length&&(n=!0),e.length>0&&(r[i]=e)}return{next:Object.keys(r).length>0?r:void 0,changed:n}}function Jt(e,t){let n=e.auth?.profiles,r=e.auth?.order,i=n?{...n}:void 0,a=!1;if(i)for(let e of t)e in i&&(delete i[e],a=!0);let o=qt(r,t);if(o.changed&&(a=!0),!a)return{next:e,changed:!1};let s=i||o.next?{...e.auth,profiles:i&&Object.keys(i).length>0?i:void 0,order:o.next}:void 0;return{next:{...e,auth:s},changed:!0}}async function Yt(e,t){let n=y(void 0,{allowKeychainPrompt:!1}),r=new Set;if((n.profiles[`anthropic:claude-cli`]||e.auth?.profiles?.[`anthropic:claude-cli`])&&r.add(re),(n.profiles[`openai-codex:codex-cli`]||e.auth?.profiles?.[`openai-codex:codex-cli`])&&r.add(A),r.size===0)return e;let i=[`Deprecated external CLI auth profiles detected (no longer supported):`];if(r.has(`anthropic:claude-cli`)&&i.push(`- ${re} (Anthropic): use setup-token → ${M(`openclaw models auth setup-token`)}`),r.has(`openai-codex:codex-cli`)&&i.push(`- ${A} (OpenAI Codex): use OAuth → ${M(`openclaw models auth login --provider openai-codex`)}`),z(i.join(`
|
|
3
3
|
`),`Auth profiles`),!await t.confirmRepair({message:`Remove deprecated CLI auth profiles now?`,initialValue:!0}))return e;await j({updater:e=>{let t=!1;for(let n of r)e.profiles[n]&&(delete e.profiles[n],t=!0),e.usageStats?.[n]&&(delete e.usageStats[n],t=!0);if(e.order)for(let[n,i]of Object.entries(e.order)){let a=i.filter(e=>!r.has(e));a.length!==i.length&&(t=!0,a.length>0?e.order[n]=a:delete e.order[n])}if(e.lastGood)for(let[n,i]of Object.entries(e.lastGood))r.has(i)&&(delete e.lastGood[n],t=!0);return t}});let a=Jt(e,r);return a.changed&&z(Array.from(r.values()).map(e=>`- removed ${e} from config`).join(`
|
|
4
4
|
`),`Doctor changes`),a.next}function Xt(e){if(e.kind===`disabled`){if(e.reason===`billing`)return`Top up credits (provider billing) or switch provider.`;if(e.reason===`auth_permanent`||e.reason===`auth`)return`Refresh or replace credentials, then retry.`}return`Wait for cooldown or switch provider.`}function Zt(e){return e.reasonCode===`invalid_expires`?`Invalid token expires metadata. Set a future Unix ms timestamp or remove expires.`:e.provider===`anthropic`&&e.profileId===`anthropic:claude-cli`?`Deprecated profile. Use ${M(`openclaw models auth setup-token`)} or ${M(`openclaw configure`)}.`:e.provider===`openai-codex`&&e.profileId===`openai-codex:codex-cli`?`Deprecated profile. Use ${M(`openclaw models auth login --provider openai-codex`)} or ${M(`openclaw configure`)}.`:`Re-auth via \`${M(`openclaw configure`)}\` or \`${M(`openclaw onboard`)}\`.`}function Qt(e){let t=e.remainingMs===void 0?``:` (${we(e.remainingMs)})`,n=Zt(e),r=e.reasonCode?` [${e.reasonCode}]`:``;return`- ${e.profileId}: ${e.status}${r}${t}${n?` — ${n}`:``}`}async function $t(e){let t=y(void 0,{allowKeychainPrompt:e.allowKeychainPrompt}),n=(()=>{let e=Date.now(),n=[];for(let r of Object.keys(t.usageStats??{})){let i=ne(t,r);if(!i||e>=i)continue;let a=t.usageStats?.[r],o=we(i-e),s=typeof a?.disabledUntil==`number`&&e<a.disabledUntil,c=s?`disabled${a.disabledReason?`:${a.disabledReason}`:``}`:`cooldown`,l=Xt({kind:s?`disabled`:`cooldown`,reason:a?.disabledReason});n.push(`- ${r}: ${c} (${o})${l?` — ${l}`:``}`)}return n})();n.length>0&&z(n.join(`
|
|
@@ -69,4 +69,3 @@ import{N as e,p as t}from"./subsystem-BLbY429l.js";import{d as n,g as r,m as i,t
|
|
|
69
69
|
`),`Doctor changes`),e.warnings.length>0&&z(e.warnings.join(`
|
|
70
70
|
`),`Doctor warnings`)}if(await wr(s,r,o.path??a),await tr({shouldRepair:r.shouldRepair}),await an({cfg:s,options:n,prompter:r}),s=await Yn(s,e,r),Xn(s),await Cn(n,e,r),await Sn(s,$(s),e,r),await jn(),await Pn(s),await Qn(s),await Nt({cfg:s,deep:n.deep===!0}),s.hooks?.gmail?.model?.trim()){let e=w({cfg:s,defaultProvider:O});if(!e)z(`- hooks.gmail.model "${s.hooks.gmail.model}" could not be resolved`,`Hooks`);else{let{provider:t,model:n}=C({cfg:s,defaultProvider:O,defaultModel:D}),r=await Fe({config:s}),i=le({cfg:s,catalog:r,ref:e,defaultProvider:t,defaultModel:n}),a=[];i.allowed||a.push(`- hooks.gmail.model "${i.key}" not in agents.defaults.models allowlist (will use primary instead)`),i.inCatalog||a.push(`- hooks.gmail.model "${i.key}" not in the model catalog (may fail at runtime)`),a.length>0&&z(a.join(`
|
|
71
71
|
`),`Hooks`)}}if(n.nonInteractive!==!0&&process.platform===`linux`&&$(s)===`local`){let t=dt(),n=!1;try{n=await t.isLoaded({env:process.env})}catch{n=!1}n&&await Lt({runtime:e,prompter:{confirm:async e=>r.confirm(e),note:z},reason:`Gateway runs as a systemd user service. Without lingering, systemd stops the user session on logout/idle and kills the Gateway.`,requireConfirm:!0})}Nr(s),await tn(s),await zt(e,r,{nonInteractive:n.nonInteractive});let{healthOk:h}=await un({runtime:e,cfg:s,timeoutMs:n.nonInteractive===!0?3e3:1e4}),_=h?await dn({cfg:s,timeoutMs:n.nonInteractive===!0?3e3:1e4}):{checked:!1,ready:!1};if(await Tn(s,{gatewayMemoryProbe:_}),await ln({cfg:s,runtime:e,prompter:r,options:n,gatewayDetailsMessage:p.message,healthOk:h}),o.shouldWriteConfig||JSON.stringify(s)!==JSON.stringify(c)){s=Ke(s,{command:`doctor`,mode:$(s)}),await d(s),Mt(e);let t=`${a}.bak`;W.existsSync(t)&&e.log(`Backup: ${F(t)}`)}else r.shouldRepair||e.log(`Run "${M(`openclaw doctor --fix`)}" to apply changes.`);if(n.workspaceSuggestions!==!1){let e=N(s,P(s));Tr(e),await Ar(e)&&z(kr,`Workspace`)}let y=await f();if(y.exists&&!y.valid){e.error(`Invalid config:`);for(let t of y.issues){let n=t.path||`<root>`;e.error(`- ${n}: ${t.message}`)}}Fr(`Doctor complete.`)}function Lr(e){return Gt({...e,message:R(e.message),options:e.options.map(e=>e.hint===void 0?e:{...e,hint:Xe(e.hint)})})}export{Ir as n,Lr as t};
|
|
72
|
-
//# sourceMappingURL=prompt-select-styled-947JghKF.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as e,g as t,m as n,t as r,u as i,y as a}from"./paths-B4IRk3wi.js";import{N as o,p as s}from"./subsystem-C5XF2Fy5.js";import{C as c,S as l,g as u,y as d}from"./utils-UGOV_184.js";import{$a as f,$l as p,A as m,Bo as h,Br as g,Co as _,Ga as v,Hn as y,Ja as b,Oi as x,Vl as S,Yl as C,Zs as w,_ as T,a as ee,ai as E,as as D,da as O,ds as k,fu as A,go as j,h as M,hs as N,ii as te,jt as ne,ls as re,nc as ie,ou as ae,pu as oe,rs as se,sa as ce,so as le,su as ue}from"./model-selection-BLbnMb5E.js";import{Dr as de,Nr as fe,Xt as pe,Zt as me,a as he,i as ge,o as _e,ot as ve}from"./reply-DwfVhea1.js";import{_ as ye,a as be,d as P,f as F}from"./agent-scope-DXZc3eNT.js";import{E as xe}from"./session-key-D3P0tf5P.js";import{t as Se}from"./openclaw-root-D_0Q6--h.js";import{a as I,d as Ce}from"./types.secrets-C-5U96pc.js";import{t as L}from"./command-format-BbDT1tlm.js";import{t as we}from"./env-D7wNuBx1.js";import{n as Te}from"./plugins-CYLrFT4h.js";import{n as Ee,t as R}from"./exec-DHqLtFYt.js";import{c as De,n as Oe,r as ke,s as Ae}from"./paths-yLEk_25I.js";import{n as je}from"./model-catalog-D-hkNWin.js";import{n as Me,t as Ne}from"./call-JB-cGR9n.js";import{f as Pe,m as Fe,p as Ie}from"./send-NbU9-scF2.js";import{g as Le}from"./read-only-account-inspect-B0cm8yrv.js";import{r as Re,t as ze}from"./wsl-Ok7GaSJ6.js";import{h as Be,n as Ve,p as He,s as Ue}from"./onboard-helpers-D90u4wVK.js";import{n as z,r as We,t as Ge}from"./prompt-style-CXKekIBY.js";import{i as Ke}from"./memory-cli-BouV_wyL.js";import{a as qe,i as Je}from"./manager-CI6O4QH6.js";import{g as Ye,m as Xe,p as Ze,u as Qe}from"./arg-split-DE5RqDHq.js";import{t as $e}from"./skills-status-D4Y1BJYL.js";import{t as B}from"./note-D4GAwgha.js";import{t as et}from"./channels-status-issues-PRgOT90w.js";import{a as tt,o as nt}from"./daemon-install-plan.shared-BkwZgIAY.js";import{n as V,r as rt,t as it}from"./gateway-install-token-Dt7hDXoR.js";import{n as at,t as H}from"./daemon-runtime-DHiDbRuC.js";import{i as ot,u as st}from"./systemd-D7odsu4K.js";import{a as ct,i as lt,n as U,o as ut,s as dt,t as ft}from"./service-BtB9epJk.js";import{c as pt,i as mt,n as ht,o as gt,r as _t,s as vt,t as yt,u as bt}from"./systemd-hints-CEQj6yrs.js";import{t as xt}from"./diagnostics-BgbeL9KE.js";import{n as St,t as Ct}from"./inspect-BKV-I1UE.js";import{r as wt}from"./health-B_-ZE5FK.js";import{i as Tt,r as Et}from"./control-ui-assets-BIa0GGDg.js";import{t as Dt}from"./channel-account-context-BMPAMZEv.js";import{t as Ot,u as kt}from"./update-runner-DG-1TYYc.js";import{n as At}from"./logging-CbMVr2MA.js";import{n as jt}from"./oauth-tls-preflight-ByNjbUR5.js";import{n as Mt,r as Nt,t as Pt}from"./doctor-config-flow-BVpr8-q9.js";import{t as Ft}from"./systemd-linger-C2MJD6KG.js";import{t as It}from"./health-format-VBr6LEpt.js";import{n as Lt}from"./doctor-completion-
|
|
1
|
+
import{d as e,g as t,m as n,t as r,u as i,y as a}from"./paths-B4IRk3wi.js";import{N as o,p as s}from"./subsystem-C5XF2Fy5.js";import{C as c,S as l,g as u,y as d}from"./utils-UGOV_184.js";import{$a as f,$l as p,A as m,Bo as h,Br as g,Co as _,Ga as v,Hn as y,Ja as b,Oi as x,Vl as S,Yl as C,Zs as w,_ as T,a as ee,ai as E,as as D,da as O,ds as k,fu as A,go as j,h as M,hs as N,ii as te,jt as ne,ls as re,nc as ie,ou as ae,pu as oe,rs as se,sa as ce,so as le,su as ue}from"./model-selection-BLbnMb5E.js";import{Dr as de,Nr as fe,Xt as pe,Zt as me,a as he,i as ge,o as _e,ot as ve}from"./reply-DwfVhea1.js";import{_ as ye,a as be,d as P,f as F}from"./agent-scope-DXZc3eNT.js";import{E as xe}from"./session-key-D3P0tf5P.js";import{t as Se}from"./openclaw-root-D_0Q6--h.js";import{a as I,d as Ce}from"./types.secrets-C-5U96pc.js";import{t as L}from"./command-format-BbDT1tlm.js";import{t as we}from"./env-D7wNuBx1.js";import{n as Te}from"./plugins-CYLrFT4h.js";import{n as Ee,t as R}from"./exec-DHqLtFYt.js";import{c as De,n as Oe,r as ke,s as Ae}from"./paths-yLEk_25I.js";import{n as je}from"./model-catalog-D-hkNWin.js";import{n as Me,t as Ne}from"./call-JB-cGR9n.js";import{f as Pe,m as Fe,p as Ie}from"./send-NbU9-scF2.js";import{g as Le}from"./read-only-account-inspect-B0cm8yrv.js";import{r as Re,t as ze}from"./wsl-Ok7GaSJ6.js";import{h as Be,n as Ve,p as He,s as Ue}from"./onboard-helpers-D90u4wVK.js";import{n as z,r as We,t as Ge}from"./prompt-style-CXKekIBY.js";import{i as Ke}from"./memory-cli-BouV_wyL.js";import{a as qe,i as Je}from"./manager-CI6O4QH6.js";import{g as Ye,m as Xe,p as Ze,u as Qe}from"./arg-split-DE5RqDHq.js";import{t as $e}from"./skills-status-D4Y1BJYL.js";import{t as B}from"./note-D4GAwgha.js";import{t as et}from"./channels-status-issues-PRgOT90w.js";import{a as tt,o as nt}from"./daemon-install-plan.shared-BkwZgIAY.js";import{n as V,r as rt,t as it}from"./gateway-install-token-Dt7hDXoR.js";import{n as at,t as H}from"./daemon-runtime-DHiDbRuC.js";import{i as ot,u as st}from"./systemd-D7odsu4K.js";import{a as ct,i as lt,n as U,o as ut,s as dt,t as ft}from"./service-BtB9epJk.js";import{c as pt,i as mt,n as ht,o as gt,r as _t,s as vt,t as yt,u as bt}from"./systemd-hints-CEQj6yrs.js";import{t as xt}from"./diagnostics-BgbeL9KE.js";import{n as St,t as Ct}from"./inspect-BKV-I1UE.js";import{r as wt}from"./health-B_-ZE5FK.js";import{i as Tt,r as Et}from"./control-ui-assets-BIa0GGDg.js";import{t as Dt}from"./channel-account-context-BMPAMZEv.js";import{t as Ot,u as kt}from"./update-runner-DG-1TYYc.js";import{n as At}from"./logging-CbMVr2MA.js";import{n as jt}from"./oauth-tls-preflight-ByNjbUR5.js";import{n as Mt,r as Nt,t as Pt}from"./doctor-config-flow-BVpr8-q9.js";import{t as Ft}from"./systemd-linger-C2MJD6KG.js";import{t as It}from"./health-format-VBr6LEpt.js";import{n as Lt}from"./doctor-completion-C9CPhCor.js";import W from"node:fs";import G from"node:os";import K from"node:path";import{promisify as Rt}from"node:util";import q from"node:fs/promises";import{execFile as zt}from"node:child_process";import{confirm as Bt,intro as Vt,outro as Ht,select as Ut}from"@clack/prompts";async function Wt(e,t){let n=S({cfg:e,store:C(),provider:`anthropic`,legacyProfileId:`anthropic:default`});return!n.migrated||n.changes.length===0||(B(n.changes.map(e=>`- ${e}`).join(`
|
|
2
2
|
`),`Auth profiles`),!await t.confirm({message:`Update Anthropic OAuth profile id in config now?`,initialValue:!0}))?e:n.config}function Gt(e,t){if(!e)return{next:e,changed:!1};let n=!1,r={};for(let[i,a]of Object.entries(e)){let e=a.filter(e=>!t.has(e));e.length!==a.length&&(n=!0),e.length>0&&(r[i]=e)}return{next:Object.keys(r).length>0?r:void 0,changed:n}}function Kt(e,t){let n=e.auth?.profiles,r=e.auth?.order,i=n?{...n}:void 0,a=!1;if(i)for(let e of t)e in i&&(delete i[e],a=!0);let o=Gt(r,t);if(o.changed&&(a=!0),!a)return{next:e,changed:!1};let s=i||o.next?{...e.auth,profiles:i&&Object.keys(i).length>0?i:void 0,order:o.next}:void 0;return{next:{...e,auth:s},changed:!0}}async function qt(e,t){let n=C(void 0,{allowKeychainPrompt:!1}),r=new Set;if((n.profiles[`anthropic:claude-cli`]||e.auth?.profiles?.[`anthropic:claude-cli`])&&r.add(ae),(n.profiles[`openai-codex:codex-cli`]||e.auth?.profiles?.[`openai-codex:codex-cli`])&&r.add(ue),r.size===0)return e;let i=[`Deprecated external CLI auth profiles detected (no longer supported):`];if(r.has(`anthropic:claude-cli`)&&i.push(`- ${ae} (Anthropic): use setup-token → ${L(`openclaw models auth setup-token`)}`),r.has(`openai-codex:codex-cli`)&&i.push(`- ${ue} (OpenAI Codex): use OAuth → ${L(`openclaw models auth login --provider openai-codex`)}`),B(i.join(`
|
|
3
3
|
`),`Auth profiles`),!await t.confirmRepair({message:`Remove deprecated CLI auth profiles now?`,initialValue:!0}))return e;await p({updater:e=>{let t=!1;for(let n of r)e.profiles[n]&&(delete e.profiles[n],t=!0),e.usageStats?.[n]&&(delete e.usageStats[n],t=!0);if(e.order)for(let[n,i]of Object.entries(e.order)){let a=i.filter(e=>!r.has(e));a.length!==i.length&&(t=!0,a.length>0?e.order[n]=a:delete e.order[n])}if(e.lastGood)for(let[n,i]of Object.entries(e.lastGood))r.has(i)&&(delete e.lastGood[n],t=!0);return t}});let a=Kt(e,r);return a.changed&&B(Array.from(r.values()).map(e=>`- removed ${e} from config`).join(`
|
|
4
4
|
`),`Doctor changes`),a.next}function Jt(e){if(e.kind===`disabled`){if(e.reason===`billing`)return`Top up credits (provider billing) or switch provider.`;if(e.reason===`auth_permanent`||e.reason===`auth`)return`Refresh or replace credentials, then retry.`}return`Wait for cooldown or switch provider.`}function Yt(e){return e.reasonCode===`invalid_expires`?`Invalid token expires metadata. Set a future Unix ms timestamp or remove expires.`:e.provider===`anthropic`&&e.profileId===`anthropic:claude-cli`?`Deprecated profile. Use ${L(`openclaw models auth setup-token`)} or ${L(`openclaw configure`)}.`:e.provider===`openai-codex`&&e.profileId===`openai-codex:codex-cli`?`Deprecated profile. Use ${L(`openclaw models auth login --provider openai-codex`)} or ${L(`openclaw configure`)}.`:`Re-auth via \`${L(`openclaw configure`)}\` or \`${L(`openclaw onboard`)}\`.`}function Xt(e){let t=e.remainingMs===void 0?``:` (${_e(e.remainingMs)})`,n=Yt(e),r=e.reasonCode?` [${e.reasonCode}]`:``;return`- ${e.profileId}: ${e.status}${r}${t}${n?` — ${n}`:``}`}async function Zt(e){let t=C(void 0,{allowKeychainPrompt:e.allowKeychainPrompt}),n=(()=>{let e=Date.now(),n=[];for(let r of Object.keys(t.usageStats??{})){let i=ne(t,r);if(!i||e>=i)continue;let a=t.usageStats?.[r],o=_e(i-e),s=typeof a?.disabledUntil==`number`&&e<a.disabledUntil,c=s?`disabled${a.disabledReason?`:${a.disabledReason}`:``}`:`cooldown`,l=Jt({kind:s?`disabled`:`cooldown`,reason:a?.disabledReason});n.push(`- ${r}: ${c} (${o})${l?` — ${l}`:``}`)}return n})();n.length>0&&B(n.join(`
|
|
@@ -69,4 +69,3 @@ import{d as e,g as t,m as n,t as r,u as i,y as a}from"./paths-B4IRk3wi.js";impor
|
|
|
69
69
|
`),`Doctor changes`),e.warnings.length>0&&B(e.warnings.join(`
|
|
70
70
|
`),`Doctor warnings`)}if(await wr(o,n,a.path??r),await er({shouldRepair:n.shouldRepair}),await rn({cfg:o,options:t,prompter:n}),o=await Jn(o,e,n),Yn(o),await Sn(t,e,n),await xn(o,$(o),e,n),await An(),await Nn(o),await Zn(o),await jt({cfg:o,deep:t.deep===!0}),o.hooks?.gmail?.model?.trim()){let e=T({cfg:o,defaultProvider:oe});if(!e)B(`- hooks.gmail.model "${o.hooks.gmail.model}" could not be resolved`,`Hooks`);else{let{provider:t,model:n}=M({cfg:o,defaultProvider:oe,defaultModel:A}),r=await je({config:o}),i=ee({cfg:o,catalog:r,ref:e,defaultProvider:t,defaultModel:n}),a=[];i.allowed||a.push(`- hooks.gmail.model "${i.key}" not in agents.defaults.models allowlist (will use primary instead)`),i.inCatalog||a.push(`- hooks.gmail.model "${i.key}" not in the model catalog (may fail at runtime)`),a.length>0&&B(a.join(`
|
|
71
71
|
`),`Hooks`)}}if(t.nonInteractive!==!0&&process.platform===`linux`&&$(o)===`local`){let t=U(),r=!1;try{r=await t.isLoaded({env:process.env})}catch{r=!1}r&&await Ft({runtime:e,prompter:{confirm:async e=>n.confirm(e),note:B},reason:`Gateway runs as a systemd user service. Without lingering, systemd stops the user session on logout/idle and kills the Gateway.`,requireConfirm:!0})}Nr(o),await en(o),await Lt(e,n,{nonInteractive:t.nonInteractive});let{healthOk:h}=await ln({runtime:e,cfg:o,timeoutMs:t.nonInteractive===!0?3e3:1e4}),g=h?await un({cfg:o,timeoutMs:t.nonInteractive===!0?3e3:1e4}):{checked:!1,ready:!1};if(await wn(o,{gatewayMemoryProbe:g}),await cn({cfg:o,runtime:e,prompter:n,options:t,gatewayDetailsMessage:p.message,healthOk:h}),a.shouldWriteConfig||JSON.stringify(o)!==JSON.stringify(c)){o=Ve(o,{command:`doctor`,mode:$(o)}),await ie(o),At(e);let t=`${r}.bak`;W.existsSync(t)&&e.log(`Backup: ${l(t)}`)}else n.shouldRepair||e.log(`Run "${L(`openclaw doctor --fix`)}" to apply changes.`);if(t.workspaceSuggestions!==!1){let e=P(o,F(o));Tr(e),await Ar(e)&&B(kr,`Workspace`)}let _=await w();if(_.exists&&!_.valid){e.error(`Invalid config:`);for(let t of _.issues){let n=t.path||`<root>`;e.error(`- ${n}: ${t.message}`)}}Fr(`Doctor complete.`)}function Lr(e){return Ut({...e,message:z(e.message),options:e.options.map(e=>e.hint===void 0?e:{...e,hint:Ge(e.hint)})})}export{Ir as n,Lr as t};
|
|
72
|
-
//# sourceMappingURL=prompt-select-styled-1abs2MvK.js.map
|
package/dist/prompts-CMzglboN.js
CHANGED
package/dist/prompts-wv-lfVrJ.js
CHANGED
|
@@ -2,4 +2,3 @@ import{t as e}from"./subsystem-BLbY429l.js";import{Gc as t,Sc as n,Tc as r}from"
|
|
|
2
2
|
`),o(`Authorize`));let d=Date.now()+u.expires_in*1e3,f=Math.max(1e3,u.interval*1e3),_=g();_.start(`Waiting for GitHub authorization...`);let v=await b({deviceCode:u.device_code,intervalMs:f,expiresAt:d});_.stop(`GitHub access token acquired`),n({profileId:i,credential:{type:`token`,provider:`github-copilot`,token:v}}),await s(e=>c(e,{provider:`github-copilot`,profileId:i,mode:`token`})),l(t),t.log(`Auth profile: ${i} (github-copilot/token)`),h(`Done`)}const S=e(`plugins`);function C(e){return a({config:e.config,workspaceDir:e.workspaceDir,logger:i(S)}).providers.map(e=>e.provider)}const w=e=>e.trim().length>0?void 0:`Required`;function T(e){let t=e.manualPromptMessage??`Paste the redirect URL`,n;return{onAuth:async({url:r})=>{if(e.isRemote){e.spin.stop(`OAuth URL ready`),e.runtime.log(`\nOpen this URL in your LOCAL browser:\n\n${r}\n`),n=e.prompter.text({message:t,validate:w}).then(e=>String(e));return}e.spin.update(e.localBrowserMessage),await e.openUrl(r),e.runtime.log(`Open: ${r}`)},onPrompt:async t=>{if(n)return n;let r=await e.prompter.text({message:t.message,placeholder:t.placeholder,validate:w});return String(r)}}}async function E(e){let{prompter:t,runtime:n,isRemote:r,openUrl:i,localBrowserMessage:a}=e,o=await u();if(!o.ok&&o.kind===`tls-cert`){let e=d(o);throw n.error(e),await t.note(e,`OAuth prerequisites`),Error(o.message)}await t.note(r?[`You are running in a remote/VPS environment.`,`A URL will be shown for you to open in your LOCAL browser.`,`After signing in, paste the redirect URL back here.`].join(`
|
|
3
3
|
`):[`Browser will open for OpenAI authentication.`,`If the callback doesn't auto-complete, paste the redirect URL.`,`OpenAI OAuth uses localhost:1455 for the callback.`].join(`
|
|
4
4
|
`),`OpenAI Codex OAuth`);let s=t.progress(`Starting OAuth flow…`);try{let{onAuth:e,onPrompt:o}=T({isRemote:r,prompter:t,runtime:n,spin:s,openUrl:i,localBrowserMessage:a??`Complete sign-in in browser…`}),c=await f({onAuth:e,onPrompt:o,onProgress:e=>s.update(e)});return s.stop(`OpenAI OAuth complete`),c??null}catch(e){throw s.stop(`OpenAI OAuth failed`),n.error(String(e)),await t.note(`Trouble with OAuth? See https://docs.openclaw.ai/start/faq`,`OAuth help`),e}}function D(e,n){let r=n?.trim();if(!r)return null;let i=t(r);return e.find(e=>t(e.id)===i)??e.find(e=>e.aliases?.some(e=>t(e)===i)??!1)??null}function O(e,t){let n=t?.trim();if(!n)return null;let r=n.toLowerCase();return e.auth.find(e=>e.id.toLowerCase()===r)??e.auth.find(e=>e.label.toLowerCase()===r)??null}function k(e){return!!(e&&typeof e==`object`&&!Array.isArray(e))}function A(e,t){if(!k(e)||!k(t))return t;let n={...e};for(let[e,r]of Object.entries(t)){let t=n[e];k(t)&&k(r)?n[e]=A(t,r):n[e]=r}return n}function j(e,t){let n={...e.agents?.defaults?.models};n[t]=n[t]??{};let r=e.agents?.defaults?.model;return{...e,agents:{...e.agents,defaults:{...e.agents?.defaults,models:n,model:{...r&&typeof r==`object`&&`fallbacks`in r?{fallbacks:r.fallbacks}:void 0,primary:t}}}}}export{E as a,x as c,D as i,A as n,T as o,O as r,C as s,j as t};
|
|
5
|
-
//# sourceMappingURL=provider-auth-helpers-BLm2bdp5.js.map
|
|
@@ -2,4 +2,3 @@ import{t as e}from"./subsystem-C5XF2Fy5.js";import{Kl as t,Yl as n,d as r}from".
|
|
|
2
2
|
`),o(`Authorize`));let d=Date.now()+u.expires_in*1e3,f=Math.max(1e3,u.interval*1e3),_=g();_.start(`Waiting for GitHub authorization...`);let v=await b({deviceCode:u.device_code,intervalMs:f,expiresAt:d});_.stop(`GitHub access token acquired`),t({profileId:i,credential:{type:`token`,provider:`github-copilot`,token:v}}),await s(e=>c(e,{provider:`github-copilot`,profileId:i,mode:`token`})),l(r),r.log(`Auth profile: ${i} (github-copilot/token)`),h(`Done`)}const S=e(`plugins`);function C(e){return a({config:e.config,workspaceDir:e.workspaceDir,logger:i(S)}).providers.map(e=>e.provider)}const w=e=>e.trim().length>0?void 0:`Required`;function T(e){let t=e.manualPromptMessage??`Paste the redirect URL`,n;return{onAuth:async({url:r})=>{if(e.isRemote){e.spin.stop(`OAuth URL ready`),e.runtime.log(`\nOpen this URL in your LOCAL browser:\n\n${r}\n`),n=e.prompter.text({message:t,validate:w}).then(e=>String(e));return}e.spin.update(e.localBrowserMessage),await e.openUrl(r),e.runtime.log(`Open: ${r}`)},onPrompt:async t=>{if(n)return n;let r=await e.prompter.text({message:t.message,placeholder:t.placeholder,validate:w});return String(r)}}}async function E(e){let{prompter:t,runtime:n,isRemote:r,openUrl:i,localBrowserMessage:a}=e,o=await u();if(!o.ok&&o.kind===`tls-cert`){let e=d(o);throw n.error(e),await t.note(e,`OAuth prerequisites`),Error(o.message)}await t.note(r?[`You are running in a remote/VPS environment.`,`A URL will be shown for you to open in your LOCAL browser.`,`After signing in, paste the redirect URL back here.`].join(`
|
|
3
3
|
`):[`Browser will open for OpenAI authentication.`,`If the callback doesn't auto-complete, paste the redirect URL.`,`OpenAI OAuth uses localhost:1455 for the callback.`].join(`
|
|
4
4
|
`),`OpenAI Codex OAuth`);let s=t.progress(`Starting OAuth flow…`);try{let{onAuth:e,onPrompt:o}=T({isRemote:r,prompter:t,runtime:n,spin:s,openUrl:i,localBrowserMessage:a??`Complete sign-in in browser…`}),c=await f({onAuth:e,onPrompt:o,onProgress:e=>s.update(e)});return s.stop(`OpenAI OAuth complete`),c??null}catch(e){throw s.stop(`OpenAI OAuth failed`),n.error(String(e)),await t.note(`Trouble with OAuth? See https://docs.openclaw.ai/start/faq`,`OAuth help`),e}}function D(e,t){let n=t?.trim();if(!n)return null;let i=r(n);return e.find(e=>r(e.id)===i)??e.find(e=>e.aliases?.some(e=>r(e)===i)??!1)??null}function O(e,t){let n=t?.trim();if(!n)return null;let r=n.toLowerCase();return e.auth.find(e=>e.id.toLowerCase()===r)??e.auth.find(e=>e.label.toLowerCase()===r)??null}function k(e){return!!(e&&typeof e==`object`&&!Array.isArray(e))}function A(e,t){if(!k(e)||!k(t))return t;let n={...e};for(let[e,r]of Object.entries(t)){let t=n[e];k(t)&&k(r)?n[e]=A(t,r):n[e]=r}return n}function j(e,t){let n={...e.agents?.defaults?.models};n[t]=n[t]??{};let r=e.agents?.defaults?.model;return{...e,agents:{...e.agents,defaults:{...e.agents?.defaults,models:n,model:{...r&&typeof r==`object`&&`fallbacks`in r?{fallbacks:r.fallbacks}:void 0,primary:t}}}}}export{E as a,x as c,D as i,A as n,T as o,O as r,C as s,j as t};
|
|
5
|
-
//# sourceMappingURL=provider-auth-helpers-DPz0vN_c.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
const e={openai:[`OPENAI_API_KEY`],anthropic:[`ANTHROPIC_API_KEY`],google:[`GEMINI_API_KEY`],minimax:[`MINIMAX_API_KEY`],"minimax-cn":[`MINIMAX_API_KEY`],moonshot:[`MOONSHOT_API_KEY`],"kimi-coding":[`KIMI_API_KEY`,`KIMICODE_API_KEY`],synthetic:[`SYNTHETIC_API_KEY`],venice:[`VENICE_API_KEY`],zai:[`ZAI_API_KEY`,`Z_AI_API_KEY`],xiaomi:[`XIAOMI_API_KEY`],openrouter:[`OPENROUTER_API_KEY`],"cloudflare-ai-gateway":[`CLOUDFLARE_AI_GATEWAY_API_KEY`],litellm:[`LITELLM_API_KEY`],"vercel-ai-gateway":[`AI_GATEWAY_API_KEY`],opencode:[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],"opencode-go":[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],together:[`TOGETHER_API_KEY`],huggingface:[`HUGGINGFACE_HUB_TOKEN`,`HF_TOKEN`],qianfan:[`QIANFAN_API_KEY`],xai:[`XAI_API_KEY`],mistral:[`MISTRAL_API_KEY`],kilocode:[`KILOCODE_API_KEY`],modelstudio:[`MODELSTUDIO_API_KEY`],volcengine:[`VOLCANO_ENGINE_API_KEY`],byteplus:[`BYTEPLUS_API_KEY`]},t=[`VOYAGE_API_KEY`,`GROQ_API_KEY`,`DEEPGRAM_API_KEY`,`CEREBRAS_API_KEY`,`NVIDIA_API_KEY`,`COPILOT_GITHUB_TOKEN`,`GH_TOKEN`,`GITHUB_TOKEN`,`ANTHROPIC_OAUTH_TOKEN`,`CHUTES_OAUTH_TOKEN`,`CHUTES_API_KEY`,`QWEN_OAUTH_TOKEN`,`QWEN_PORTAL_API_KEY`,`MINIMAX_OAUTH_TOKEN`,`OLLAMA_API_KEY`,`VLLM_API_KEY`],n=[...new Set(Object.values(e).flatMap(e=>e))],r=[...new Set([...n,...t])];function i(){return[...r]}function a(){return[...n]}function o(e,t){let n={...e},r=new Set;for(let e of t){let t=e.trim();t&&r.add(t.toUpperCase())}if(r.size===0)return n;for(let e of Object.keys(n))r.has(e.toUpperCase())&&delete n[e];return n}export{o as i,i as n,a as r,e as t};
|
|
2
|
-
//# sourceMappingURL=provider-env-vars-D8p6Ohpj.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
const e={openai:[`OPENAI_API_KEY`],anthropic:[`ANTHROPIC_API_KEY`],google:[`GEMINI_API_KEY`],minimax:[`MINIMAX_API_KEY`],"minimax-cn":[`MINIMAX_API_KEY`],moonshot:[`MOONSHOT_API_KEY`],"kimi-coding":[`KIMI_API_KEY`,`KIMICODE_API_KEY`],synthetic:[`SYNTHETIC_API_KEY`],venice:[`VENICE_API_KEY`],zai:[`ZAI_API_KEY`,`Z_AI_API_KEY`],xiaomi:[`XIAOMI_API_KEY`],openrouter:[`OPENROUTER_API_KEY`],"cloudflare-ai-gateway":[`CLOUDFLARE_AI_GATEWAY_API_KEY`],litellm:[`LITELLM_API_KEY`],"vercel-ai-gateway":[`AI_GATEWAY_API_KEY`],opencode:[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],"opencode-go":[`OPENCODE_API_KEY`,`OPENCODE_ZEN_API_KEY`],together:[`TOGETHER_API_KEY`],huggingface:[`HUGGINGFACE_HUB_TOKEN`,`HF_TOKEN`],qianfan:[`QIANFAN_API_KEY`],xai:[`XAI_API_KEY`],mistral:[`MISTRAL_API_KEY`],kilocode:[`KILOCODE_API_KEY`],modelstudio:[`MODELSTUDIO_API_KEY`],volcengine:[`VOLCANO_ENGINE_API_KEY`],byteplus:[`BYTEPLUS_API_KEY`]},t=[`VOYAGE_API_KEY`,`GROQ_API_KEY`,`DEEPGRAM_API_KEY`,`CEREBRAS_API_KEY`,`NVIDIA_API_KEY`,`COPILOT_GITHUB_TOKEN`,`GH_TOKEN`,`GITHUB_TOKEN`,`ANTHROPIC_OAUTH_TOKEN`,`CHUTES_OAUTH_TOKEN`,`CHUTES_API_KEY`,`QWEN_OAUTH_TOKEN`,`QWEN_PORTAL_API_KEY`,`MINIMAX_OAUTH_TOKEN`,`OLLAMA_API_KEY`,`VLLM_API_KEY`],n=[...new Set(Object.values(e).flatMap(e=>e))],r=[...new Set([...n,...t])];function i(){return[...r]}function a(){return[...n]}function o(e,t){let n={...e},r=new Set;for(let e of t){let t=e.trim();t&&r.add(t.toUpperCase())}if(r.size===0)return n;for(let e of Object.keys(n))r.has(e.toUpperCase())&&delete n[e];return n}export{o as i,i as n,a as r,e as t};
|
|
2
|
-
//# sourceMappingURL=provider-env-vars-Dt0Q29Su.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{O as e}from"./logger-DwWqfo66.js";const t=[`true`,`1`,`yes`,`on`],n=[`false`,`0`,`no`,`off`],r=new Set(t),i=new Set(n);function a(e,a={}){if(typeof e==`boolean`)return e;if(typeof e!=`string`)return;let o=e.trim().toLowerCase();if(!o)return;let s=a.truthy??t,c=a.falsy??n,l=s===t?r:new Set(s),u=c===n?i:new Set(c);if(l.has(o))return!0;if(u.has(o))return!1}e(`env`);function o(e){return a(e)===!0}const s=[`HTTP_PROXY`,`HTTPS_PROXY`,`ALL_PROXY`,`http_proxy`,`https_proxy`,`all_proxy`];function c(e=process.env){for(let t of s){let n=e[t];if(typeof n==`string`&&n.trim().length>0)return!0}return!1}function l(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:null}function u(e,t=process.env){let n=l(t.http_proxy),r=l(t.https_proxy),i=n===void 0?l(t.HTTP_PROXY):n,a=r===void 0?l(t.HTTPS_PROXY):r;return e===`https`?a??i??void 0:i??void 0}function d(e=`https`,t=process.env){return u(e,t)!==void 0}export{a as i,c as n,o as r,d as t};
|
|
2
|
-
//# sourceMappingURL=proxy-env-BNhTHkd_.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{t as e}from"./subsystem-Bc2XrjUz.js";import{t}from"./boolean-DypnRoRK.js";e(`env`);function n(e){return t(e)===!0}const r=[`HTTP_PROXY`,`HTTPS_PROXY`,`ALL_PROXY`,`http_proxy`,`https_proxy`,`all_proxy`];function i(e=process.env){for(let t of r){let n=e[t];if(typeof n==`string`&&n.trim().length>0)return!0}return!1}function a(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:null}function o(e,t=process.env){let n=a(t.http_proxy),r=a(t.https_proxy),i=n===void 0?a(t.HTTP_PROXY):n,o=r===void 0?a(t.HTTPS_PROXY):r;return e===`https`?o??i??void 0:i??void 0}function s(e=`https`,t=process.env){return o(e,t)!==void 0}export{i as n,n as r,s as t};
|
|
2
|
-
//# sourceMappingURL=proxy-env-DcmW_urA.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{C as e,D as t,E as n,S as r,T as i,_ as a,d as o,g as s,l as c,p as l,u,v as d,w as f,x as p,y as m}from"./utils-R-mFyVJi.js";import{Chalk as h}from"chalk";import"node:util";function g(e,t,n){let r=n?` (${n})`:``,i=`[terminal] restore ${e} failed${r}: ${String(t)}`;try{process.stderr.write(`${i}\n`)}catch(e){console.error(`[terminal] restore reporting failed${r}: ${String(e)}`)}}function ee(e,t={}){let n=t.resumeStdinIfPaused??t.resumeStdin??!1,r=process.stdin;if(r.isTTY&&typeof r.setRawMode==`function`){try{r.setRawMode(!1)}catch(t){g(`raw mode`,t,e)}if(n&&typeof r.isPaused==`function`&&r.isPaused())try{r.resume()}catch(t){g(`stdin resume`,t,e)}}if(process.stdout.isTTY)try{process.stdout.write(`\x1B[0m\x1B[?25h\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?2004l`)}catch(t){g(`stdout reset`,t,e)}}function _(e=process.env){return e.VITEST!==`true`||e.OPENCLAW_TEST_RUNTIME_LOG===`1`?!0:typeof console.log.mock==`object`}function v(){return{log:(...e)=>{_()&&console.log(...e)},error:(...e)=>{console.error(...e)}}}const y={...v(),exit:e=>{throw ee(`runtime exit`,{resumeStdinIfPaused:!1}),process.exit(e),Error(`unreachable`)}},te=RegExp(`\\x1b\\[[0-9;]*m`,`g`),ne=RegExp(`\\x1b\\]8;;.*?\\x1b\\\\|\\x1b\\]8;;\\x1b\\\\`,`g`);typeof Intl<`u`&&`Segmenter`in Intl&&new Intl.Segmenter(void 0,{granularity:`grapheme`});function b(e){return e.replace(ne,``).replace(te,``)}const x=r(import.meta.url);let S=()=>{try{return(x?.(`../config/config.js`))?.loadConfig?.().logging}catch{return}};function C(e){return o()?`debug`:!e&&process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`?`silent`:n(e,`info`)}function w(e){return e===`compact`||e===`json`||e===`pretty`?e:process.stdout.isTTY?`pretty`:`compact`}function T(){let n=e();if(process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`&&!o()&&!n&&!f.overrideSettings)return{level:`silent`,style:w(void 0)};let r=f.overrideSettings??t();if(!r)if(f.resolvingConsoleSettings)r=void 0;else{f.resolvingConsoleSettings=!0;try{r=S()}finally{f.resolvingConsoleSettings=!1}}return{level:n??C(r?.consoleLevel),style:w(r?.consoleStyle)}}function E(e,t){return e?e.level!==t.level||e.style!==t.style:!0}function D(){let e=T(),t=f.cachedConsoleSettings;return(!t||E(t,e))&&(f.cachedConsoleSettings=e),f.cachedConsoleSettings}function O(e){let t=f.consoleSubsystemFilter;return!t||t.length===0?!0:t.some(t=>e===t||e.startsWith(`${t}/`))}function k(e){let t=new Date;return e===`pretty`?`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`:p(t)}function A(e,t){return t.level===`silent`?!1:i(e)<=i(t.level)}(()=>{let e=process.getBuiltinModule;if(typeof e!=`function`)return null;try{let t=e(`util`);return typeof t.inspect==`function`?t.inspect:null}catch{return null}})();function j(){let e=(process.env.TERM??``).toLowerCase();return process.env.COLORTERM||process.env.TERM_PROGRAM?!0:e.length>0&&e!==`dumb`}function M(){let e=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`;return process.env.NO_COLOR&&!e?new h({level:0}):process.stdout.isTTY||process.stderr.isTTY||j()?new h({level:1}):new h({level:0})}const N=[`cyan`,`green`,`yellow`,`blue`,`magenta`,`red`],P={"gmail-watcher":`blue`},F=[`gateway`,`channels`,`providers`],I=new Set([`telegram`,`whatsapp`,`discord`,`irc`,`googlechat`,`slack`,`signal`,`imessage`]);function L(e,t){let n=P[t];if(n)return e[n];let r=0;for(let e=0;e<t.length;e+=1)r=r*31+t.charCodeAt(e)|0;return e[N[Math.abs(r)%N.length]]}function R(e){let t=e.split(`/`).filter(Boolean),n=t.join(`/`)||e;for(;t.length>0&&F.includes(t[0]);)t.shift();return t.length===0?n:I.has(t[0])?t[0]:t.length>2?t.slice(-2).join(`/`):t.join(`/`)}function z(e,t){if(!t)return e;if(e.startsWith(`[`)){let n=e.indexOf(`]`);if(n>1&&e.slice(1,n).toLowerCase()===t.toLowerCase()){let t=n+1;for(;e[t]===` `;)t+=1;return e.slice(t)}}if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return e;let n=e.slice(t.length,t.length+1);if(n!==`:`&&n!==` `)return e;let r=t.length;for(;e[r]===` `;)r+=1;for(e[r]===`:`&&(r+=1);e[r]===` `;)r+=1;return e.slice(r)}function B(e){let t=e.style===`json`?e.subsystem:R(e.subsystem);if(e.style===`json`)return JSON.stringify({time:k(`json`),level:e.level,subsystem:t,message:e.message,...e.meta});let n=M(),r=`[${t}]`,i=L(n,t),a=e.level===`error`||e.level===`fatal`?n.red:e.level===`warn`?n.yellow:e.level===`debug`||e.level===`trace`?n.gray:n.cyan,o=z(e.message,t);return`${[e.style===`pretty`?n.gray(k(`pretty`)):f.consoleTimestampPrefix?n.gray(k(e.style)):``,i(r)].filter(Boolean).join(` `)} ${a(o)}`}function V(e,t){let n=process.platform===`win32`&&process.env.GITHUB_ACTIONS===`true`?t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,`?`).replace(/[\uD800-\uDFFF]/g,`?`):t,r=f.rawConsole??console;f.forceConsoleToStderr||e===`error`||e===`fatal`?(r.error??console.error)(n):e===`warn`?(r.warn??console.warn)(n):(r.log??console.log)(n)}function H(e){return o()||e.level===`error`||e.level===`fatal`||!(e.subsystem===`agent/embedded`||e.subsystem.startsWith(`agent/embedded/`)||e.subsystem===`model-fallback`||e.subsystem.startsWith(`model-fallback/`))?!1:(typeof e.meta?.runId==`string`?e.meta.runId:typeof e.meta?.sessionId==`string`?e.meta.sessionId:void 0)?.startsWith(`probe-`)?!0:/(sessionId|runId)=probe-/.test(e.message)}function U(e,t,n,r){if(t===`silent`)return;let i=e[t];typeof i==`function`&&(r&&Object.keys(r).length>0?i.call(e,r,n):i.call(e,n))}function W(e){let t=null,n=()=>(t||=a({subsystem:e}),t),r=(t,r,i)=>{let a=D(),o=A(t,{level:a.level})&&O(e),s=m(t);if(!o&&!s)return;let c,l=i;if(i&&Object.keys(i).length>0){let{consoleMessage:e,...t}=i;typeof e==`string`&&(c=e),l=Object.keys(t).length>0?t:void 0}if(s&&U(n(),t,r,l),!o)return;let u=c??r;H({level:t,subsystem:e,message:u,meta:l})||V(t,B({level:t,subsystem:e,message:a.style===`json`?r:u,style:a.style,meta:l}))},i=t=>A(t,{level:D().level})&&O(e),o=e=>m(e);return{subsystem:e,isEnabled:(e,t=`any`)=>t===`console`?i(e):t===`file`?o(e):i(e)||o(e),trace:(e,t)=>r(`trace`,e,t),debug:(e,t)=>r(`debug`,e,t),info:(e,t)=>r(`info`,e,t),warn:(e,t)=>r(`warn`,e,t),error:(e,t)=>r(`error`,e,t),fatal:(e,t)=>r(`fatal`,e,t),raw:t=>{if(o(`info`)&&U(n(),`info`,t,{raw:!0}),i(`info`)){if(H({level:`info`,subsystem:e,message:t}))return;V(`info`,t)}},child:t=>W(`${e}/${t}`)}}const re=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function G(e){let t=e.match(re);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function K(e){let t=e.runtime===y?G(e.message):null;if(t){W(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),d()[e.loggerMethod](e.message)}function q(e,t=y){K({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:u,loggerMethod:`info`,subsystemMethod:`info`})}function J(e,t=y){K({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:s,loggerMethod:`warn`,subsystemMethod:`warn`})}function Y(e,t=y){K({message:e,runtime:t,runtimeMethod:`error`,runtimeFormatter:c,loggerMethod:`error`,subsystemMethod:`error`})}function X(e){d().debug(e),l(e)}const Z=[`true`,`1`,`yes`,`on`],Q=[`false`,`0`,`no`,`off`],ie=new Set(Z),ae=new Set(Q);function oe(e,t={}){if(typeof e==`boolean`)return e;if(typeof e!=`string`)return;let n=e.trim().toLowerCase();if(!n)return;let r=t.truthy??Z,i=t.falsy??Q,a=r===Z?ie:new Set(r),o=i===Q?ae:new Set(i);if(a.has(n))return!0;if(o.has(n))return!1}function se(e){return oe(e)===!0}const ce=[`HTTP_PROXY`,`HTTPS_PROXY`,`ALL_PROXY`,`http_proxy`,`https_proxy`,`all_proxy`];function le(e=process.env){for(let t of ce){let n=e[t];if(typeof n==`string`&&n.trim().length>0)return!0}return!1}function $(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:null}function ue(e,t=process.env){let n=$(t.http_proxy),r=$(t.https_proxy),i=n===void 0?$(t.HTTP_PROXY):n,a=r===void 0?$(t.HTTPS_PROXY):r;return e===`https`?a??i??void 0:i??void 0}function de(e=`https`,t=process.env){return ue(e,t)!==void 0}export{Y as a,W as c,X as i,b as l,le as n,q as o,se as r,J as s,de as t,y as u};
|
|
2
|
-
//# sourceMappingURL=proxy-env-DrC3TIGh.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
const e=[`HTTP_PROXY`,`HTTPS_PROXY`,`ALL_PROXY`,`http_proxy`,`https_proxy`,`all_proxy`];function t(t=process.env){for(let n of e){let e=t[n];if(typeof e==`string`&&e.trim().length>0)return!0}return!1}function n(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:null}function r(e,t=process.env){let r=n(t.http_proxy),i=n(t.https_proxy),a=r===void 0?n(t.HTTP_PROXY):r,o=i===void 0?n(t.HTTPS_PROXY):i;return e===`https`?o??a??void 0:a??void 0}function i(e=`https`,t=process.env){return r(e,t)!==void 0}export{t as n,i as t};
|
|
2
|
-
//# sourceMappingURL=proxy-env-FJr5nlvs.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{i as e}from"./logger-Bl8URnrW.js";import{t}from"./proxy-env-FJr5nlvs.js";import{EnvHttpProxyAgent as n,ProxyAgent as r,fetch as i}from"undici";const a=Symbol.for(`openclaw.proxyFetch.proxyUrl`);function o(e){let t=null,n=()=>(t||=new r(e),t),o=((e,t)=>i(e,{...t,dispatcher:n()}));return Object.defineProperty(o,a,{value:e,enumerable:!1,configurable:!1,writable:!1}),o}function s(e){let t=e?.[a];return typeof t==`string`&&t.trim()||void 0}function c(){if(t(`https`))try{let e=new n;return((t,n)=>i(t,{...n,dispatcher:e}))}catch(t){e(`Proxy env var set but agent creation failed — falling back to direct fetch: ${t instanceof Error?t.message:String(t)}`);return}}export{o as n,c as r,s as t};
|
|
2
|
-
//# sourceMappingURL=proxy-fetch-BADsUK4d.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{t as e}from"./proxy-env-DcmW_urA.js";import{i as t}from"./logger-5W0OocJW.js";import{EnvHttpProxyAgent as n,ProxyAgent as r,fetch as i}from"undici";const a=Symbol.for(`openclaw.proxyFetch.proxyUrl`);function o(e){let t=null,n=()=>(t||=new r(e),t),o=((e,t)=>i(e,{...t,dispatcher:n()}));return Object.defineProperty(o,a,{value:e,enumerable:!1,configurable:!1,writable:!1}),o}function s(e){let t=e?.[a];return typeof t==`string`&&t.trim()||void 0}function c(){if(e(`https`))try{let e=new n;return((t,n)=>i(t,{...n,dispatcher:e}))}catch(e){t(`Proxy env var set but agent creation failed — falling back to direct fetch: ${e instanceof Error?e.message:String(e)}`);return}}export{o as n,c as r,s as t};
|
|
2
|
-
//# sourceMappingURL=proxy-fetch-BZ9O8Dvj.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{i as e}from"./logger-DwWqfo66.js";import{t}from"./proxy-env-BNhTHkd_.js";import{EnvHttpProxyAgent as n,ProxyAgent as r,fetch as i}from"undici";const a=Symbol.for(`openclaw.proxyFetch.proxyUrl`);function o(e){let t=null,n=()=>(t||=new r(e),t),o=((e,t)=>i(e,{...t,dispatcher:n()}));return Object.defineProperty(o,a,{value:e,enumerable:!1,configurable:!1,writable:!1}),o}function s(e){let t=e?.[a];return typeof t==`string`&&t.trim()||void 0}function c(){if(t(`https`))try{let e=new n;return((t,n)=>i(t,{...n,dispatcher:e}))}catch(t){e(`Proxy env var set but agent creation failed — falling back to direct fetch: ${t instanceof Error?t.message:String(t)}`);return}}export{o as n,c as r,s as t};
|
|
2
|
-
//# sourceMappingURL=proxy-fetch-DnjU1fEB.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{i as e}from"./logger-kQAOe3qp.js";import{t}from"./proxy-env-FJr5nlvs.js";import{EnvHttpProxyAgent as n,ProxyAgent as r,fetch as i}from"undici";const a=Symbol.for(`openclaw.proxyFetch.proxyUrl`);function o(e){let t=null,n=()=>(t||=new r(e),t),o=((e,t)=>i(e,{...t,dispatcher:n()}));return Object.defineProperty(o,a,{value:e,enumerable:!1,configurable:!1,writable:!1}),o}function s(e){let t=e?.[a];return typeof t==`string`&&t.trim()||void 0}function c(){if(t(`https`))try{let e=new n;return((t,n)=>i(t,{...n,dispatcher:e}))}catch(t){e(`Proxy env var set but agent creation failed — falling back to direct fetch: ${t instanceof Error?t.message:String(t)}`);return}}export{o as n,c as r,s as t};
|
|
2
|
-
//# sourceMappingURL=proxy-fetch-gWETR3cl.js.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import{g as e}from"./paths-B4IRk3wi.js";import{b as t,s as n,t as r}from"./subsystem-C5XF2Fy5.js";import{Ai as i,Mi as a,ji as o,qt as s}from"./model-selection-BLbnMb5E.js";import{C as c}from"./reply-DwfVhea1.js";import{E as l}from"./session-key-D3P0tf5P.js";import{n as u,t as d}from"./redact-3_CiXMY6.js";import f from"node:path";import p from"chalk";import m from"node:fs/promises";import{createHash as h,createPrivateKey as g,sign as _}from"node:crypto";import v from"node:http2";let y=`auto`;function b(e){y=e}function x(){return y}const S=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,C={mode:`tools`,patterns:d()},w=new Map;let T;const E=new Map,D=new Map,O=r(`gateway/ws`),ee=new Set([`connId`,`id`,`method`,`ok`,`event`]);function k(e){let t=[];if(!e)return t;for(let[n,r]of Object.entries(e))r!==void 0&&(ee.has(n)||t.push(`${p.dim(n)}=${P(r)}`));return t}function A(e){if((e.kind===`req`||e.kind===`res`)&&e.method)return p.bold(e.method);if(e.kind===`event`&&e.event)return p.bold(e.event)}function j(e,t){if(!(e!==`res`||t===void 0))return t?p.greenBright(`✓`):p.redBright(`✗`)}function M(e){let t=[e.prefix,e.statusToken,e.headline,e.durationToken,...e.restMeta,...e.trailing].filter(e=>!!e);O.info(t.join(` `))}function te(){return n(`gateway/ws`)}function N(e){let t=e.trim();return S.test(t)?`${t.slice(0,8)}…${t.slice(-4)}`:t.length<=24?t:`${t.slice(0,12)}…${t.slice(-4)}`}function P(e){try{if(e instanceof Error){let t=[];e.name&&t.push(e.name),e.message&&t.push(e.message);let n=`code`in e&&(typeof e.code==`string`||typeof e.code==`number`)?String(e.code):``;n&&t.push(`code=${n}`);let r=t.filter(Boolean).join(`: `).trim();if(r)return r.length>240?`${r.slice(0,240)}...`:r}if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim()){let e=typeof t.name==`string`?t.name.trim():``,n=typeof t.code==`string`||typeof t.code==`number`?String(t.code):``,r=[e,t.message.trim()].filter(Boolean);n&&r.push(`code=${n}`);let i=r.join(`: `).trim();return i.length>240?`${i.slice(0,240)}...`:i}}let t=typeof e==`string`||typeof e==`number`?String(e):JSON.stringify(e);if(!t)return``;let n=u(t,C);return n.length>240?`${n.slice(0,240)}...`:n}catch{return String(e)}}function F(e,t=160){let n=e.replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,Math.max(0,t-1))}…`}function I(e){if(!e||typeof e!=`object`)return{};let t=e,n=typeof t.runId==`string`?t.runId:void 0,r=typeof t.stream==`string`?t.stream:void 0,i=typeof t.seq==`number`?t.seq:void 0,a=typeof t.sessionKey==`string`?t.sessionKey:void 0,o=t.data&&typeof t.data==`object`?t.data:void 0,s={};if(n&&(s.run=N(n)),a){let e=l(a);e?(s.agent=e.agentId,s.session=e.rest):s.session=a}if(r&&(s.stream=r),i!==void 0&&(s.aseq=i),!o)return s;if(r===`assistant`){let e=typeof o.text==`string`?o.text:void 0;e?.trim()&&(s.text=F(e));let t=Array.isArray(o.mediaUrls)?o.mediaUrls:void 0;return t&&t.length>0&&(s.media=t.length),s}if(r===`tool`){let e=typeof o.phase==`string`?o.phase:void 0,t=typeof o.name==`string`?o.name:void 0;(e||t)&&(s.tool=`${e??`?`}:${t??`?`}`);let n=typeof o.toolCallId==`string`?o.toolCallId:void 0;n&&(s.call=N(n));let r=typeof o.meta==`string`?o.meta:void 0;return r?.trim()&&(s.meta=r),typeof o.isError==`boolean`&&(s.err=o.isError),s}if(r===`lifecycle`){let e=typeof o.phase==`string`?o.phase:void 0;e&&(s.phase=e),typeof o.aborted==`boolean`&&(s.aborted=o.aborted);let t=typeof o.error==`string`?o.error:void 0;return t?.trim()&&(s.error=F(t,120)),s}let c=typeof o.reason==`string`?o.reason:void 0;return c?.trim()&&(s.reason=c),s}function L(e,r,i){if(!n(`gateway/ws`))return;let a=x();if(!t()){ne(e,r,i);return}if(a===`compact`||a===`auto`){re(e,r,i);return}let o=Date.now(),s=typeof i?.connId==`string`?i.connId:void 0,c=typeof i?.id==`string`?i.id:void 0,l=typeof i?.method==`string`?i.method:void 0,u=typeof i?.ok==`boolean`?i.ok:void 0,d=typeof i?.event==`string`?i.event:void 0,f=s&&c?`${s}:${c}`:void 0;e===`in`&&r===`req`&&f&&D.set(f,o);let m=e===`out`&&r===`res`&&f?(()=>{let e=D.get(f);if(e!==void 0)return D.delete(f),o-e})():void 0,h=e===`in`?`←`:`→`,g=`${(e===`in`?p.greenBright:p.cyanBright)(h)} ${p.bold(r)}`,_=A({kind:r,method:l,event:d}),v=j(r,u),y=typeof m==`number`?p.dim(`${m}ms`):void 0,b=k(i),S=[];s&&S.push(`${p.dim(`conn`)}=${p.gray(N(s))}`),c&&S.push(`${p.dim(`id`)}=${p.gray(N(c))}`),M({prefix:g,statusToken:v,headline:_,durationToken:y,restMeta:b,trailing:S})}function ne(e,t,n){let r=typeof n?.connId==`string`?n.connId:void 0,i=typeof n?.id==`string`?n.id:void 0,a=typeof n?.ok==`boolean`?n.ok:void 0,o=typeof n?.method==`string`?n.method:void 0,s=r&&i?`${r}:${i}`:void 0;if(e===`in`&&t===`req`&&s){E.set(s,Date.now()),E.size>2e3&&E.clear();return}if(t===`parse-error`){let e=typeof n?.error==`string`?P(n.error):void 0;O.warn([`${p.redBright(`✗`)} ${p.bold(`parse-error`)}`,e?`${p.dim(`error`)}=${e}`:void 0,`${p.dim(`conn`)}=${p.gray(N(r??`?`))}`].filter(e=>!!e).join(` `));return}if(e!==`out`||t!==`res`)return;let c=s?E.get(s):void 0;s&&E.delete(s);let l=typeof c==`number`?Date.now()-c:void 0;if(!(a===!1||typeof l==`number`&&l>=50))return;let u=j(`res`,a),d=typeof l==`number`?p.dim(`${l}ms`):void 0,f=k(n);M({prefix:`${p.yellowBright(`⇄`)} ${p.bold(`res`)}`,statusToken:u,headline:o?p.bold(o):void 0,durationToken:d,restMeta:f,trailing:[r?`${p.dim(`conn`)}=${p.gray(N(r))}`:``,i?`${p.dim(`id`)}=${p.gray(N(i))}`:``].filter(Boolean)})}function re(e,t,n){let r=Date.now(),i=typeof n?.connId==`string`?n.connId:void 0,a=typeof n?.id==`string`?n.id:void 0,o=typeof n?.method==`string`?n.method:void 0,s=typeof n?.ok==`boolean`?n.ok:void 0,c=i&&a?`${i}:${a}`:void 0;if(t===`req`&&e===`in`&&c){w.set(c,{ts:r,method:o,meta:n});return}let l=t===`req`||t===`res`?`⇄`:e===`in`?`←`:`→`,u=`${(t===`req`||t===`res`?p.yellowBright:e===`in`?p.greenBright:p.cyanBright)(l)} ${p.bold(t)}`,d=j(t,s),f=t===`res`&&e===`out`&&c?w.get(c)?.ts:void 0;t===`res`&&e===`out`&&c&&w.delete(c);let m=typeof f==`number`?p.dim(`${r-f}ms`):void 0,h=A({kind:t,method:o,event:typeof n?.event==`string`?n.event:void 0}),g=k(n),_=[];i&&i!==T&&(_.push(`${p.dim(`conn`)}=${p.gray(N(i))}`),T=i),a&&_.push(`${p.dim(`id`)}=${p.gray(N(a))}`),M({prefix:u,statusToken:d,headline:h,durationToken:m,restMeta:g,trailing:_})}function R(e){if(e)return e.split(`;`)[0]?.trim().toLowerCase()||void 0}function z(e){return typeof e==`string`&&e.startsWith(`image/`)}function ie(e){return e.length>0&&e.length%4==0&&/^[A-Za-z0-9+/]+={0,2}$/.test(e)}function ae(e,t,n){let r=e.mimeType??``,i=e.content,a=e.fileName||e.type||`attachment-${t+1}`;if(typeof i!=`string`)throw Error(`attachment ${a}: content must be base64 string`);if(n.requireImageMime&&!r.startsWith(`image/`))throw Error(`attachment ${a}: only image/* supported`);let o=i.trim();if(n.stripDataUrlPrefix){let e=/^data:[^;]+;base64,(.*)$/.exec(o);e&&(o=e[1])}return{label:a,mime:r,base64:o}}function oe(e,t){if(!ie(e.base64))throw Error(`attachment ${e.label}: invalid base64 content`);let n=s(e.base64);if(n<=0||n>t.maxBytes)throw Error(`attachment ${e.label}: exceeds size limit (${n} > ${t.maxBytes} bytes)`);return n}async function se(e,t,n){let r=n?.maxBytes??5e6,i=n?.log;if(!t||t.length===0)return{message:e,images:[]};let a=[];for(let[e,n]of t.entries()){if(!n)continue;let t=ae(n,e,{stripDataUrlPrefix:!0,requireImageMime:!1});oe(t,{maxBytes:r});let{base64:o,label:s,mime:l}=t,u=R(l),d=R(await c(o));if(d&&!z(d)){i?.warn(`attachment ${s}: detected non-image (${d}), dropping`);continue}if(!d&&!z(u)){i?.warn(`attachment ${s}: unable to detect image mime type, dropping`);continue}d&&u&&d!==u&&i?.warn(`attachment ${s}: mime mismatch (${u} -> ${d}), using sniffed`),a.push({type:`image`,data:o,mimeType:d??u??l})}return{message:e,images:a}}function ce(e){return e?.map(e=>({type:typeof e?.type==`string`?e.type:void 0,mimeType:typeof e?.mimeType==`string`?e.mimeType:void 0,fileName:typeof e?.fileName==`string`?e.fileName:void 0,content:typeof e?.content==`string`?e.content:ArrayBuffer.isView(e?.content)?Buffer.from(e.content.buffer,e.content.byteOffset,e.content.byteLength).toString(`base64`):e?.content instanceof ArrayBuffer?Buffer.from(e.content).toString(`base64`):void 0})).filter(e=>e.content)??[]}const le=i();let B=null;function V(t){let n=t??e();return f.join(n,`push/apns-registrations.json`)}function H(e){return e.trim()}function U(e){return e.trim().replace(/[<>\s]/g,``).toLowerCase()}function W(e){return e.trim()}function G(e){return/^[0-9a-f]{32,}$/i.test(e)}function ue(e){let t=e.trim();if(t)try{let e=JSON.parse(t);return typeof e.reason==`string`&&e.reason.trim().length>0?e.reason.trim():t.slice(0,200)}catch{return t.slice(0,200)}}function K(e){return Buffer.from(e).toString(`base64`).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``)}function q(e){return K(Buffer.from(JSON.stringify(e)))}function de(e){let t=h(`sha256`).update(e.privateKey).digest(`hex`);return`${e.teamId}:${e.keyId}:${t}`}function fe(e,t=Date.now()){let n=de(e);if(B&&B.cacheKey===n&&t<B.expiresAtMs)return B.token;let r=Math.floor(t/1e3),i=`${q({alg:`ES256`,kid:e.keyId,typ:`JWT`})}.${q({iss:e.teamId,iat:r})}`,a=`${i}.${K(_(`sha256`,Buffer.from(i,`utf8`),{key:g(e.privateKey),dsaEncoding:`ieee-p1363`}))}`;return B={cacheKey:n,token:a,expiresAtMs:t+3e6},a}function J(e){return e.trim().replace(/\\n/g,`
|
|
2
2
|
`)}function Y(e){let t=e?.trim()??``;return t.length>0?t:null}async function X(e){let t=await o(V(e));return!t||typeof t!=`object`?{registrationsByNodeId:{}}:{registrationsByNodeId:t.registrationsByNodeId&&typeof t.registrationsByNodeId==`object`&&!Array.isArray(t.registrationsByNodeId)?t.registrationsByNodeId:{}}}async function pe(e,t){await a(V(t),e)}function Z(e){if(typeof e!=`string`)return null;let t=e.trim().toLowerCase();return t===`sandbox`||t===`production`?t:null}async function me(e){let t=H(e.nodeId),n=U(e.token),r=W(e.topic),i=Z(e.environment)??`sandbox`;if(!t)throw Error(`nodeId required`);if(!r)throw Error(`topic required`);if(!G(n))throw Error(`invalid APNs token`);return await le(async()=>{let a=await X(e.baseDir),o={nodeId:t,token:n,topic:r,environment:i,updatedAtMs:Date.now()};return a.registrationsByNodeId[t]=o,await pe(a,e.baseDir),o})}async function he(e,t){let n=H(e);return n?(await X(t)).registrationsByNodeId[n]??null:null}async function ge(e=process.env){let t=Y(e.OPENCLAW_APNS_TEAM_ID),n=Y(e.OPENCLAW_APNS_KEY_ID);if(!t||!n)return{ok:!1,error:`APNs auth missing: set OPENCLAW_APNS_TEAM_ID and OPENCLAW_APNS_KEY_ID`};let r=Y(e.OPENCLAW_APNS_PRIVATE_KEY_P8)??Y(e.OPENCLAW_APNS_PRIVATE_KEY);if(r)return{ok:!0,value:{teamId:t,keyId:n,privateKey:J(r)}};let i=Y(e.OPENCLAW_APNS_PRIVATE_KEY_PATH);if(!i)return{ok:!1,error:`APNs private key missing: set OPENCLAW_APNS_PRIVATE_KEY_P8 or OPENCLAW_APNS_PRIVATE_KEY_PATH`};try{return{ok:!0,value:{teamId:t,keyId:n,privateKey:J(await m.readFile(i,`utf8`))}}}catch(e){return{ok:!1,error:`failed reading OPENCLAW_APNS_PRIVATE_KEY_PATH (${i}): ${e instanceof Error?e.message:String(e)}`}}}async function _e(e){let t=e.environment===`production`?`https://api.push.apple.com`:`https://api.sandbox.push.apple.com`,n=JSON.stringify(e.payload),r=`/3/device/${e.token}`;return await new Promise((i,a)=>{let o=v.connect(t),s=!1,c=e=>{s||(s=!0,o.destroy(),a(e))},l=e=>{s||(s=!0,o.close(),i(e))};o.once(`error`,e=>c(e));let u=o.request({":method":`POST`,":path":r,authorization:`bearer ${e.bearerToken}`,"apns-topic":e.topic,"apns-push-type":e.pushType,"apns-priority":e.priority,"apns-expiration":`0`,"content-type":`application/json`,"content-length":Buffer.byteLength(n).toString()}),d=0,f,p=``;u.setEncoding(`utf8`),u.setTimeout(e.timeoutMs,()=>{u.close(v.constants.NGHTTP2_CANCEL),c(Error(`APNs request timed out after ${e.timeoutMs}ms`))}),u.on(`response`,e=>{let t=e[`:status`];d=typeof t==`number`?t:Number(t??0);let n=e[`apns-id`];typeof n==`string`&&n.trim().length>0&&(f=n.trim())}),u.on(`data`,e=>{typeof e==`string`&&(p+=e)}),u.on(`end`,()=>{l({status:d,apnsId:f,body:p})}),u.on(`error`,e=>c(e)),u.end(n)})}function ve(e){return typeof e==`number`&&Number.isFinite(e)?Math.max(1e3,Math.trunc(e)):1e4}function ye(e){let t=U(e.registration.token);if(!G(t))throw Error(`invalid APNs token`);let n=W(e.registration.topic);if(!n)throw Error(`topic required`);return{token:t,topic:n,environment:e.registration.environment,bearerToken:fe(e.auth)}}function be(e){return{ok:e.response.status===200,status:e.response.status,apnsId:e.response.apnsId,reason:ue(e.response.body),tokenSuffix:e.token.slice(-8),topic:e.topic,environment:e.environment}}function Q(e){return{kind:e.kind,nodeId:e.nodeId,ts:Date.now(),...e.reason?{reason:e.reason}:{}}}async function $(e){let{token:t,topic:n,environment:r,bearerToken:i}=ye({auth:e.auth,registration:e.registration});return be({response:await(e.requestSender??_e)({token:t,topic:n,environment:r,bearerToken:i,payload:e.payload,timeoutMs:ve(e.timeoutMs),pushType:e.pushType,priority:e.priority}),token:t,topic:n,environment:r})}async function xe(e){let t={aps:{alert:{title:e.title,body:e.body},sound:`default`},openclaw:Q({kind:`push.test`,nodeId:e.nodeId})};return await $({auth:e.auth,registration:e.registration,payload:t,timeoutMs:e.timeoutMs,requestSender:e.requestSender,pushType:`alert`,priority:`10`})}async function Se(e){let t={aps:{"content-available":1},openclaw:Q({kind:`node.wake`,reason:e.wakeReason??`node.invoke`,nodeId:e.nodeId})};return await $({auth:e.auth,registration:e.registration,payload:t,timeoutMs:e.timeoutMs,requestSender:e.requestSender,pushType:`background`,priority:`5`})}export{xe as a,se as c,te as d,I as f,ge as i,P as l,Z as n,Se as o,b as p,me as r,ce as s,he as t,L as u};
|
|
3
|
-
//# sourceMappingURL=push-apns-BBv62ncV.js.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import{b as e,s as t,t as n}from"./subsystem-BLbY429l.js";import{g as r}from"./paths-BjD3T_xq.js";import{I as i,br as a,vr as o,yr as s}from"./auth-profiles-C8rZRS0X.js";import{E as c}from"./session-key-C7F_iqYg.js";import{n as l,t as u}from"./redact-CnRxK70G.js";import{a as d}from"./compact-CYbPi7_-.js";import f from"node:path";import p from"chalk";import m from"node:fs/promises";import{createHash as h,createPrivateKey as g,sign as _}from"node:crypto";import v from"node:http2";let y=`auto`;function b(e){y=e}function x(){return y}const S=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,C={mode:`tools`,patterns:u()},w=new Map;let T;const E=new Map,D=new Map,O=n(`gateway/ws`),ee=new Set([`connId`,`id`,`method`,`ok`,`event`]);function k(e){let t=[];if(!e)return t;for(let[n,r]of Object.entries(e))r!==void 0&&(ee.has(n)||t.push(`${p.dim(n)}=${P(r)}`));return t}function A(e){if((e.kind===`req`||e.kind===`res`)&&e.method)return p.bold(e.method);if(e.kind===`event`&&e.event)return p.bold(e.event)}function j(e,t){if(!(e!==`res`||t===void 0))return t?p.greenBright(`✓`):p.redBright(`✗`)}function M(e){let t=[e.prefix,e.statusToken,e.headline,e.durationToken,...e.restMeta,...e.trailing].filter(e=>!!e);O.info(t.join(` `))}function te(){return t(`gateway/ws`)}function N(e){let t=e.trim();return S.test(t)?`${t.slice(0,8)}…${t.slice(-4)}`:t.length<=24?t:`${t.slice(0,12)}…${t.slice(-4)}`}function P(e){try{if(e instanceof Error){let t=[];e.name&&t.push(e.name),e.message&&t.push(e.message);let n=`code`in e&&(typeof e.code==`string`||typeof e.code==`number`)?String(e.code):``;n&&t.push(`code=${n}`);let r=t.filter(Boolean).join(`: `).trim();if(r)return r.length>240?`${r.slice(0,240)}...`:r}if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim()){let e=typeof t.name==`string`?t.name.trim():``,n=typeof t.code==`string`||typeof t.code==`number`?String(t.code):``,r=[e,t.message.trim()].filter(Boolean);n&&r.push(`code=${n}`);let i=r.join(`: `).trim();return i.length>240?`${i.slice(0,240)}...`:i}}let t=typeof e==`string`||typeof e==`number`?String(e):JSON.stringify(e);if(!t)return``;let n=l(t,C);return n.length>240?`${n.slice(0,240)}...`:n}catch{return String(e)}}function F(e,t=160){let n=e.replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,Math.max(0,t-1))}…`}function I(e){if(!e||typeof e!=`object`)return{};let t=e,n=typeof t.runId==`string`?t.runId:void 0,r=typeof t.stream==`string`?t.stream:void 0,i=typeof t.seq==`number`?t.seq:void 0,a=typeof t.sessionKey==`string`?t.sessionKey:void 0,o=t.data&&typeof t.data==`object`?t.data:void 0,s={};if(n&&(s.run=N(n)),a){let e=c(a);e?(s.agent=e.agentId,s.session=e.rest):s.session=a}if(r&&(s.stream=r),i!==void 0&&(s.aseq=i),!o)return s;if(r===`assistant`){let e=typeof o.text==`string`?o.text:void 0;e?.trim()&&(s.text=F(e));let t=Array.isArray(o.mediaUrls)?o.mediaUrls:void 0;return t&&t.length>0&&(s.media=t.length),s}if(r===`tool`){let e=typeof o.phase==`string`?o.phase:void 0,t=typeof o.name==`string`?o.name:void 0;(e||t)&&(s.tool=`${e??`?`}:${t??`?`}`);let n=typeof o.toolCallId==`string`?o.toolCallId:void 0;n&&(s.call=N(n));let r=typeof o.meta==`string`?o.meta:void 0;return r?.trim()&&(s.meta=r),typeof o.isError==`boolean`&&(s.err=o.isError),s}if(r===`lifecycle`){let e=typeof o.phase==`string`?o.phase:void 0;e&&(s.phase=e),typeof o.aborted==`boolean`&&(s.aborted=o.aborted);let t=typeof o.error==`string`?o.error:void 0;return t?.trim()&&(s.error=F(t,120)),s}let l=typeof o.reason==`string`?o.reason:void 0;return l?.trim()&&(s.reason=l),s}function L(n,r,i){if(!t(`gateway/ws`))return;let a=x();if(!e()){ne(n,r,i);return}if(a===`compact`||a===`auto`){re(n,r,i);return}let o=Date.now(),s=typeof i?.connId==`string`?i.connId:void 0,c=typeof i?.id==`string`?i.id:void 0,l=typeof i?.method==`string`?i.method:void 0,u=typeof i?.ok==`boolean`?i.ok:void 0,d=typeof i?.event==`string`?i.event:void 0,f=s&&c?`${s}:${c}`:void 0;n===`in`&&r===`req`&&f&&D.set(f,o);let m=n===`out`&&r===`res`&&f?(()=>{let e=D.get(f);if(e!==void 0)return D.delete(f),o-e})():void 0,h=n===`in`?`←`:`→`,g=`${(n===`in`?p.greenBright:p.cyanBright)(h)} ${p.bold(r)}`,_=A({kind:r,method:l,event:d}),v=j(r,u),y=typeof m==`number`?p.dim(`${m}ms`):void 0,b=k(i),S=[];s&&S.push(`${p.dim(`conn`)}=${p.gray(N(s))}`),c&&S.push(`${p.dim(`id`)}=${p.gray(N(c))}`),M({prefix:g,statusToken:v,headline:_,durationToken:y,restMeta:b,trailing:S})}function ne(e,t,n){let r=typeof n?.connId==`string`?n.connId:void 0,i=typeof n?.id==`string`?n.id:void 0,a=typeof n?.ok==`boolean`?n.ok:void 0,o=typeof n?.method==`string`?n.method:void 0,s=r&&i?`${r}:${i}`:void 0;if(e===`in`&&t===`req`&&s){E.set(s,Date.now()),E.size>2e3&&E.clear();return}if(t===`parse-error`){let e=typeof n?.error==`string`?P(n.error):void 0;O.warn([`${p.redBright(`✗`)} ${p.bold(`parse-error`)}`,e?`${p.dim(`error`)}=${e}`:void 0,`${p.dim(`conn`)}=${p.gray(N(r??`?`))}`].filter(e=>!!e).join(` `));return}if(e!==`out`||t!==`res`)return;let c=s?E.get(s):void 0;s&&E.delete(s);let l=typeof c==`number`?Date.now()-c:void 0;if(!(a===!1||typeof l==`number`&&l>=50))return;let u=j(`res`,a),d=typeof l==`number`?p.dim(`${l}ms`):void 0,f=k(n);M({prefix:`${p.yellowBright(`⇄`)} ${p.bold(`res`)}`,statusToken:u,headline:o?p.bold(o):void 0,durationToken:d,restMeta:f,trailing:[r?`${p.dim(`conn`)}=${p.gray(N(r))}`:``,i?`${p.dim(`id`)}=${p.gray(N(i))}`:``].filter(Boolean)})}function re(e,t,n){let r=Date.now(),i=typeof n?.connId==`string`?n.connId:void 0,a=typeof n?.id==`string`?n.id:void 0,o=typeof n?.method==`string`?n.method:void 0,s=typeof n?.ok==`boolean`?n.ok:void 0,c=i&&a?`${i}:${a}`:void 0;if(t===`req`&&e===`in`&&c){w.set(c,{ts:r,method:o,meta:n});return}let l=t===`req`||t===`res`?`⇄`:e===`in`?`←`:`→`,u=`${(t===`req`||t===`res`?p.yellowBright:e===`in`?p.greenBright:p.cyanBright)(l)} ${p.bold(t)}`,d=j(t,s),f=t===`res`&&e===`out`&&c?w.get(c)?.ts:void 0;t===`res`&&e===`out`&&c&&w.delete(c);let m=typeof f==`number`?p.dim(`${r-f}ms`):void 0,h=A({kind:t,method:o,event:typeof n?.event==`string`?n.event:void 0}),g=k(n),_=[];i&&i!==T&&(_.push(`${p.dim(`conn`)}=${p.gray(N(i))}`),T=i),a&&_.push(`${p.dim(`id`)}=${p.gray(N(a))}`),M({prefix:u,statusToken:d,headline:h,durationToken:m,restMeta:g,trailing:_})}function R(e){if(e)return e.split(`;`)[0]?.trim().toLowerCase()||void 0}function z(e){return typeof e==`string`&&e.startsWith(`image/`)}function ie(e){return e.length>0&&e.length%4==0&&/^[A-Za-z0-9+/]+={0,2}$/.test(e)}function ae(e,t,n){let r=e.mimeType??``,i=e.content,a=e.fileName||e.type||`attachment-${t+1}`;if(typeof i!=`string`)throw Error(`attachment ${a}: content must be base64 string`);if(n.requireImageMime&&!r.startsWith(`image/`))throw Error(`attachment ${a}: only image/* supported`);let o=i.trim();if(n.stripDataUrlPrefix){let e=/^data:[^;]+;base64,(.*)$/.exec(o);e&&(o=e[1])}return{label:a,mime:r,base64:o}}function oe(e,t){if(!ie(e.base64))throw Error(`attachment ${e.label}: invalid base64 content`);let n=i(e.base64);if(n<=0||n>t.maxBytes)throw Error(`attachment ${e.label}: exceeds size limit (${n} > ${t.maxBytes} bytes)`);return n}async function se(e,t,n){let r=n?.maxBytes??5e6,i=n?.log;if(!t||t.length===0)return{message:e,images:[]};let a=[];for(let[e,n]of t.entries()){if(!n)continue;let t=ae(n,e,{stripDataUrlPrefix:!0,requireImageMime:!1});oe(t,{maxBytes:r});let{base64:o,label:s,mime:c}=t,l=R(c),u=R(await d(o));if(u&&!z(u)){i?.warn(`attachment ${s}: detected non-image (${u}), dropping`);continue}if(!u&&!z(l)){i?.warn(`attachment ${s}: unable to detect image mime type, dropping`);continue}u&&l&&u!==l&&i?.warn(`attachment ${s}: mime mismatch (${l} -> ${u}), using sniffed`),a.push({type:`image`,data:o,mimeType:u??l??c})}return{message:e,images:a}}function ce(e){return e?.map(e=>({type:typeof e?.type==`string`?e.type:void 0,mimeType:typeof e?.mimeType==`string`?e.mimeType:void 0,fileName:typeof e?.fileName==`string`?e.fileName:void 0,content:typeof e?.content==`string`?e.content:ArrayBuffer.isView(e?.content)?Buffer.from(e.content.buffer,e.content.byteOffset,e.content.byteLength).toString(`base64`):e?.content instanceof ArrayBuffer?Buffer.from(e.content).toString(`base64`):void 0})).filter(e=>e.content)??[]}const le=o();let B=null;function V(e){let t=e??r();return f.join(t,`push/apns-registrations.json`)}function H(e){return e.trim()}function U(e){return e.trim().replace(/[<>\s]/g,``).toLowerCase()}function W(e){return e.trim()}function G(e){return/^[0-9a-f]{32,}$/i.test(e)}function ue(e){let t=e.trim();if(t)try{let e=JSON.parse(t);return typeof e.reason==`string`&&e.reason.trim().length>0?e.reason.trim():t.slice(0,200)}catch{return t.slice(0,200)}}function K(e){return Buffer.from(e).toString(`base64`).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``)}function q(e){return K(Buffer.from(JSON.stringify(e)))}function de(e){let t=h(`sha256`).update(e.privateKey).digest(`hex`);return`${e.teamId}:${e.keyId}:${t}`}function fe(e,t=Date.now()){let n=de(e);if(B&&B.cacheKey===n&&t<B.expiresAtMs)return B.token;let r=Math.floor(t/1e3),i=`${q({alg:`ES256`,kid:e.keyId,typ:`JWT`})}.${q({iss:e.teamId,iat:r})}`,a=`${i}.${K(_(`sha256`,Buffer.from(i,`utf8`),{key:g(e.privateKey),dsaEncoding:`ieee-p1363`}))}`;return B={cacheKey:n,token:a,expiresAtMs:t+3e6},a}function J(e){return e.trim().replace(/\\n/g,`
|
|
2
2
|
`)}function Y(e){let t=e?.trim()??``;return t.length>0?t:null}async function X(e){let t=await s(V(e));return!t||typeof t!=`object`?{registrationsByNodeId:{}}:{registrationsByNodeId:t.registrationsByNodeId&&typeof t.registrationsByNodeId==`object`&&!Array.isArray(t.registrationsByNodeId)?t.registrationsByNodeId:{}}}async function pe(e,t){await a(V(t),e)}function Z(e){if(typeof e!=`string`)return null;let t=e.trim().toLowerCase();return t===`sandbox`||t===`production`?t:null}async function me(e){let t=H(e.nodeId),n=U(e.token),r=W(e.topic),i=Z(e.environment)??`sandbox`;if(!t)throw Error(`nodeId required`);if(!r)throw Error(`topic required`);if(!G(n))throw Error(`invalid APNs token`);return await le(async()=>{let a=await X(e.baseDir),o={nodeId:t,token:n,topic:r,environment:i,updatedAtMs:Date.now()};return a.registrationsByNodeId[t]=o,await pe(a,e.baseDir),o})}async function he(e,t){let n=H(e);return n?(await X(t)).registrationsByNodeId[n]??null:null}async function ge(e=process.env){let t=Y(e.OPENCLAW_APNS_TEAM_ID),n=Y(e.OPENCLAW_APNS_KEY_ID);if(!t||!n)return{ok:!1,error:`APNs auth missing: set OPENCLAW_APNS_TEAM_ID and OPENCLAW_APNS_KEY_ID`};let r=Y(e.OPENCLAW_APNS_PRIVATE_KEY_P8)??Y(e.OPENCLAW_APNS_PRIVATE_KEY);if(r)return{ok:!0,value:{teamId:t,keyId:n,privateKey:J(r)}};let i=Y(e.OPENCLAW_APNS_PRIVATE_KEY_PATH);if(!i)return{ok:!1,error:`APNs private key missing: set OPENCLAW_APNS_PRIVATE_KEY_P8 or OPENCLAW_APNS_PRIVATE_KEY_PATH`};try{return{ok:!0,value:{teamId:t,keyId:n,privateKey:J(await m.readFile(i,`utf8`))}}}catch(e){return{ok:!1,error:`failed reading OPENCLAW_APNS_PRIVATE_KEY_PATH (${i}): ${e instanceof Error?e.message:String(e)}`}}}async function _e(e){let t=e.environment===`production`?`https://api.push.apple.com`:`https://api.sandbox.push.apple.com`,n=JSON.stringify(e.payload),r=`/3/device/${e.token}`;return await new Promise((i,a)=>{let o=v.connect(t),s=!1,c=e=>{s||(s=!0,o.destroy(),a(e))},l=e=>{s||(s=!0,o.close(),i(e))};o.once(`error`,e=>c(e));let u=o.request({":method":`POST`,":path":r,authorization:`bearer ${e.bearerToken}`,"apns-topic":e.topic,"apns-push-type":e.pushType,"apns-priority":e.priority,"apns-expiration":`0`,"content-type":`application/json`,"content-length":Buffer.byteLength(n).toString()}),d=0,f,p=``;u.setEncoding(`utf8`),u.setTimeout(e.timeoutMs,()=>{u.close(v.constants.NGHTTP2_CANCEL),c(Error(`APNs request timed out after ${e.timeoutMs}ms`))}),u.on(`response`,e=>{let t=e[`:status`];d=typeof t==`number`?t:Number(t??0);let n=e[`apns-id`];typeof n==`string`&&n.trim().length>0&&(f=n.trim())}),u.on(`data`,e=>{typeof e==`string`&&(p+=e)}),u.on(`end`,()=>{l({status:d,apnsId:f,body:p})}),u.on(`error`,e=>c(e)),u.end(n)})}function ve(e){return typeof e==`number`&&Number.isFinite(e)?Math.max(1e3,Math.trunc(e)):1e4}function ye(e){let t=U(e.registration.token);if(!G(t))throw Error(`invalid APNs token`);let n=W(e.registration.topic);if(!n)throw Error(`topic required`);return{token:t,topic:n,environment:e.registration.environment,bearerToken:fe(e.auth)}}function be(e){return{ok:e.response.status===200,status:e.response.status,apnsId:e.response.apnsId,reason:ue(e.response.body),tokenSuffix:e.token.slice(-8),topic:e.topic,environment:e.environment}}function Q(e){return{kind:e.kind,nodeId:e.nodeId,ts:Date.now(),...e.reason?{reason:e.reason}:{}}}async function $(e){let{token:t,topic:n,environment:r,bearerToken:i}=ye({auth:e.auth,registration:e.registration});return be({response:await(e.requestSender??_e)({token:t,topic:n,environment:r,bearerToken:i,payload:e.payload,timeoutMs:ve(e.timeoutMs),pushType:e.pushType,priority:e.priority}),token:t,topic:n,environment:r})}async function xe(e){let t={aps:{alert:{title:e.title,body:e.body},sound:`default`},openclaw:Q({kind:`push.test`,nodeId:e.nodeId})};return await $({auth:e.auth,registration:e.registration,payload:t,timeoutMs:e.timeoutMs,requestSender:e.requestSender,pushType:`alert`,priority:`10`})}async function Se(e){let t={aps:{"content-available":1},openclaw:Q({kind:`node.wake`,reason:e.wakeReason??`node.invoke`,nodeId:e.nodeId})};return await $({auth:e.auth,registration:e.registration,payload:t,timeoutMs:e.timeoutMs,requestSender:e.requestSender,pushType:`background`,priority:`5`})}export{xe as a,se as c,te as d,I as f,ge as i,P as l,Z as n,Se as o,b as p,me as r,ce as s,he as t,L as u};
|
|
3
|
-
//# sourceMappingURL=push-apns-DIV5dBPP.js.map
|
package/dist/pw-ai-C0gM3d-6.js
CHANGED
|
@@ -44,4 +44,3 @@ import{O as e}from"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import{Z as
|
|
|
44
44
|
throw new Error("Invalid evaluate function: " + (err && err.message ? err.message : String(err)));
|
|
45
45
|
}
|
|
46
46
|
`);return await $(n.evaluate(r,{fnBody:t,timeoutMs:i}),c)}finally{a&&o&&a.removeEventListener(`abort`,o)}}async function lt(e){let t=await Z(e),n=Y(e.timeoutMs,2e4),r=J(e.ref),i=U(t,r);try{await i.scrollIntoViewIfNeeded({timeout:n})}catch(e){throw X(e,r)}}async function ut(e){let t=await H(e);P(t);let n=Y(e.timeoutMs,2e4);if(typeof e.timeMs==`number`&&Number.isFinite(e.timeMs)&&await t.waitForTimeout(Math.max(0,e.timeMs)),e.text&&await t.getByText(e.text).first().waitFor({state:`visible`,timeout:n}),e.textGone&&await t.getByText(e.textGone).first().waitFor({state:`hidden`,timeout:n}),e.selector){let r=String(e.selector).trim();r&&await t.locator(r).first().waitFor({state:`visible`,timeout:n})}if(e.url){let r=String(e.url).trim();r&&await t.waitForURL(r,{timeout:n})}if(e.loadState&&await t.waitForLoadState(e.loadState,{timeout:n}),e.fn){let r=String(e.fn).trim();r&&await t.waitForFunction(r,{timeout:n})}}async function dt(e){let t=await H(e);P(t),N({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t});let n=e.type??`png`;if(e.ref){if(e.fullPage)throw Error(`fullPage is not supported for element screenshots`);return{buffer:await U(t,e.ref).screenshot({type:n})}}if(e.element){if(e.fullPage)throw Error(`fullPage is not supported for element screenshots`);return{buffer:await t.locator(e.element).first().screenshot({type:n})}}return{buffer:await t.screenshot({type:n,fullPage:!!e.fullPage})}}async function ft(e){let t=await H(e);P(t),N({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t});let n=e.type??`png`,r=typeof e.maxLabels==`number`&&Number.isFinite(e.maxLabels)?Math.max(1,Math.floor(e.maxLabels)):150,i=await t.evaluate(()=>({scrollX:window.scrollX||0,scrollY:window.scrollY||0,width:window.innerWidth||0,height:window.innerHeight||0})),a=Object.keys(e.refs??{}),o=[],s=0;for(let e of a){if(o.length>=r){s+=1;continue}try{let n=await U(t,e).boundingBox();if(!n){s+=1;continue}let r=n.x,a=n.y,c=n.x+n.width,l=n.y+n.height,u=i.scrollX,d=i.scrollY,f=i.scrollX+i.width,p=i.scrollY+i.height;if(c<u||r>f||l<d||a>p){s+=1;continue}o.push({ref:e,x:r-i.scrollX,y:a-i.scrollY,w:Math.max(1,n.width),h:Math.max(1,n.height)})}catch{s+=1}}try{return o.length>0&&await t.evaluate(e=>{document.querySelectorAll(`[data-openclaw-labels]`).forEach(e=>e.remove());let t=document.createElement(`div`);t.setAttribute(`data-openclaw-labels`,`1`),t.style.position=`fixed`,t.style.left=`0`,t.style.top=`0`,t.style.zIndex=`2147483647`,t.style.pointerEvents=`none`,t.style.fontFamily=`"SF Mono","SFMono-Regular",Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace`;let n=(e,t,n)=>Math.min(n,Math.max(t,e));for(let r of e){let e=document.createElement(`div`);e.setAttribute(`data-openclaw-labels`,`1`),e.style.position=`absolute`,e.style.left=`${r.x}px`,e.style.top=`${r.y}px`,e.style.width=`${r.w}px`,e.style.height=`${r.h}px`,e.style.border=`2px solid #ffb020`,e.style.boxSizing=`border-box`;let i=document.createElement(`div`);i.setAttribute(`data-openclaw-labels`,`1`),i.textContent=r.ref,i.style.position=`absolute`,i.style.left=`${r.x}px`,i.style.top=`${n(r.y-18,0,2e4)}px`,i.style.background=`#ffb020`,i.style.color=`#1a1a1a`,i.style.fontSize=`12px`,i.style.lineHeight=`14px`,i.style.padding=`1px 4px`,i.style.borderRadius=`3px`,i.style.boxShadow=`0 1px 2px rgba(0,0,0,0.35)`,i.style.whiteSpace=`nowrap`,t.appendChild(e),t.appendChild(i)}document.documentElement.appendChild(t)},o),{buffer:await t.screenshot({type:n}),labels:o.length,skipped:s}}finally{await t.evaluate(()=>{document.querySelectorAll(`[data-openclaw-labels]`).forEach(e=>e.remove())}).catch(()=>{})}}async function pt(e){let t=await H(e);if(P(t),N({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t}),!e.paths.length)throw Error(`paths are required`);let n=typeof e.inputRef==`string`?e.inputRef.trim():``,r=typeof e.element==`string`?e.element.trim():``;if(n&&r)throw Error(`inputRef and element are mutually exclusive`);if(!n&&!r)throw Error(`inputRef or element is required`);let i=n?U(t,n):t.locator(r).first(),o=await a({rootDir:l,requestedPaths:e.paths,scopeLabel:`uploads directory (${l})`});if(!o.ok)throw Error(o.error);let s=o.paths;try{await i.setInputFiles(s)}catch(e){throw X(e,n||r)}try{let e=await i.elementHandle();e&&await e.evaluate(e=>{e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.dispatchEvent(new Event(`change`,{bubbles:!0}))})}catch{}}function mt(e,t){let n=e.trim();if(!n)return!1;if(n===t)return!0;if(n.includes(`*`)){let e=n.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`);return RegExp(`^${e.replace(/\*\*/g,`.*`).replace(/\*/g,`.*`)}$`).test(t)}return t.includes(n)}async function ht(e){let t=String(e.url??``).trim();if(!t)throw Error(`url is required`);let n=typeof e.maxChars==`number`&&Number.isFinite(e.maxChars)?Math.max(1,Math.min(5e6,Math.floor(e.maxChars))):2e5,r=Y(e.timeoutMs,2e4),i=await H(e);P(i);let a=await new Promise((e,n)=>{let a=!1,o,s,c=()=>{o&&clearTimeout(o),o=void 0,s&&i.off(`response`,s)};s=n=>{a||mt(t,n.url?.()||``)&&(a=!0,c(),e(n))},i.on(`response`,s),o=setTimeout(()=>{a||(a=!0,c(),n(Error(`Response not found for url pattern "${t}". Run '${_(`openclaw browser requests`)}' to inspect recent network activity.`)))},r)}),o=a.url?.()||``,s=a.status?.(),c=a.headers?.(),l=``;try{if(typeof a.text==`function`)l=await a.text();else if(typeof a.body==`function`){let e=await a.body();l=new TextDecoder(`utf-8`).decode(e)}}catch(e){throw Error(`Failed to read response body for "${o}": ${String(e)}`,{cause:e})}return{url:o,status:s,headers:c,body:l.length>n?l.slice(0,n):l,truncated:l.length>n?!0:void 0}}async function gt(e){let t=Math.max(1,Math.min(2e3,Math.floor(e.limit??500))),n=await H({cdpUrl:e.cdpUrl,targetId:e.targetId});P(n);let r=await C({cdpUrl:e.cdpUrl,page:n,targetId:e.targetId,fn:async e=>(await e(`Accessibility.enable`).catch(()=>{}),await e(`Accessibility.getFullAXTree`))});return{nodes:g(Array.isArray(r?.nodes)?r.nodes:[],t)}}async function _t(e){let t=await H({cdpUrl:e.cdpUrl,targetId:e.targetId});P(t);let n=t;if(!n._snapshotForAI)throw Error(`Playwright _snapshotForAI is not available. Upgrade playwright-core.`);let r=await n._snapshotForAI({timeout:Math.max(500,Math.min(6e4,Math.floor(e.timeoutMs??5e3))),track:`response`}),i=String(r?.full??``),a=e.maxChars,o=typeof a==`number`&&Number.isFinite(a)&&a>0?Math.floor(a):void 0,s=!1;o&&i.length>o&&(i=`${i.slice(0,o)}\n\n[...TRUNCATED - page too large]`,s=!0);let c=ze(i);return M({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:c.refs,mode:`aria`}),s?{snapshot:i,truncated:s,refs:c.refs}:{snapshot:i,refs:c.refs}}async function vt(e){let t=await H({cdpUrl:e.cdpUrl,targetId:e.targetId});if(P(t),e.refsMode===`aria`){if(e.selector?.trim()||e.frameSelector?.trim())throw Error(`refs=aria does not support selector/frame snapshots yet.`);let n=t;if(!n._snapshotForAI)throw Error(`refs=aria requires Playwright _snapshotForAI support.`);let r=await n._snapshotForAI({timeout:5e3,track:`response`}),i=ze(String(r?.full??``),e.options);return M({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:i.refs,mode:`aria`}),{snapshot:i.snapshot,refs:i.refs,stats:Ae(i.snapshot,i.refs)}}let n=e.frameSelector?.trim()||``,r=e.selector?.trim()||``,i=await(n?r?t.frameLocator(n).locator(r):t.frameLocator(n).locator(`:root`):r?t.locator(r):t.locator(`:root`)).ariaSnapshot(),a=Le(String(i??``),e.options);return M({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:a.refs,frameSelector:n||void 0,mode:`role`}),{snapshot:a.snapshot,refs:a.refs,stats:Ae(a.snapshot,a.refs)}}async function yt(e){let t=e=>{let t=typeof e==`string`?e.toLowerCase():e instanceof Error?e.message.toLowerCase():``;return t.includes(`frame has been detached`)||t.includes(`target page, context or browser has been closed`)},n=String(e.url??``).trim();if(!n)throw Error(`url is required`);await d({url:n,...o(e.ssrfPolicy)});let i=Math.max(1e3,Math.min(12e4,e.timeoutMs??2e4)),a=await H(e);P(a);let s=async()=>await a.goto(n,{timeout:i}),c;try{c=await s()}catch(n){if(!t(n))throw n;await W({cdpUrl:e.cdpUrl,targetId:e.targetId,reason:`retry navigate after detached frame`}).catch(()=>{}),a=await H(e),P(a),c=await s()}await f({request:c?.request(),...o(e.ssrfPolicy)});let l=a.url();return await r({url:l,...o(e.ssrfPolicy)}),{url:l}}async function bt(e){let t=await H(e);P(t),await t.setViewportSize({width:Math.max(1,Math.floor(e.width)),height:Math.max(1,Math.floor(e.height))})}async function xt(e){let t=await H(e);P(t),await t.close()}async function St(e){let t=await H(e);return P(t),{buffer:await t.pdf({printBackground:!0})}}async function Ct(e){let t=await H(e);P(t),await t.context().setOffline(!!e.offline)}async function wt(e){let t=await H(e);P(t),await t.context().setExtraHTTPHeaders(e.headers)}async function Tt(e){let t=await H(e);if(P(t),e.clear){await t.context().setHTTPCredentials(null);return}let n=String(e.username??``),r=String(e.password??``);if(!n)throw Error(`username is required (or set clear=true)`);await t.context().setHTTPCredentials({username:n,password:r})}async function Et(e){let t=await H(e);P(t);let n=t.context();if(e.clear){await n.setGeolocation(null),await n.clearPermissions().catch(()=>{});return}if(typeof e.latitude!=`number`||typeof e.longitude!=`number`)throw Error(`latitude and longitude are required (or set clear=true)`);await n.setGeolocation({latitude:e.latitude,longitude:e.longitude,accuracy:typeof e.accuracy==`number`?e.accuracy:void 0});let r=e.origin?.trim()||(()=>{try{return new URL(t.url()).origin}catch{return``}})();r&&await n.grantPermissions([`geolocation`],{origin:r}).catch(()=>{})}async function Dt(e){let t=await H(e);P(t),await t.emulateMedia({colorScheme:e.colorScheme})}async function Ot(e){let t=await H(e);P(t);let n=String(e.locale??``).trim();if(!n)throw Error(`locale is required`);await C({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{try{await e(`Emulation.setLocaleOverride`,{locale:n})}catch(e){if(String(e).includes(`Another locale override is already in effect`))return;throw e}}})}async function kt(e){let t=await H(e);P(t);let n=String(e.timezoneId??``).trim();if(!n)throw Error(`timezoneId is required`);await C({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{try{await e(`Emulation.setTimezoneOverride`,{timezoneId:n})}catch(e){let t=String(e);if(t.includes(`Timezone override is already in effect`))return;throw t.includes(`Invalid timezone`)?Error(`Invalid timezone ID: ${n}`,{cause:e}):e}}})}async function At(e){let t=await H(e);P(t);let n=String(e.name??``).trim();if(!n)throw Error(`device name is required`);let r=ie[n];if(!r)throw Error(`Unknown device "${n}".`);r.viewport&&await t.setViewportSize({width:r.viewport.width,height:r.viewport.height}),await C({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{(r.userAgent||r.locale)&&await e(`Emulation.setUserAgentOverride`,{userAgent:r.userAgent??``,acceptLanguage:r.locale??void 0}),r.viewport&&await e(`Emulation.setDeviceMetricsOverride`,{mobile:!!r.isMobile,width:r.viewport.width,height:r.viewport.height,deviceScaleFactor:r.deviceScaleFactor??1,screenWidth:r.viewport.width,screenHeight:r.viewport.height}),r.hasTouch&&await e(`Emulation.setTouchEmulationEnabled`,{enabled:!0})}})}async function jt(e){let t=await H(e);return P(t),{cookies:await t.context().cookies()}}async function Mt(e){let t=await H(e);P(t);let n=e.cookie;if(!n.name||n.value===void 0)throw Error(`cookie name and value are required`);let r=typeof n.url==`string`&&n.url.trim(),i=typeof n.domain==`string`&&n.domain.trim()&&typeof n.path==`string`&&n.path.trim();if(!r&&!i)throw Error(`cookie requires url, or domain+path`);await t.context().addCookies([n])}async function Nt(e){let t=await H(e);P(t),await t.context().clearCookies()}async function Pt(e){let t=await H(e);P(t);let n=e.kind,r=typeof e.key==`string`?e.key:void 0;return{values:await t.evaluate(({kind:e,key:t})=>{let n=e===`session`?window.sessionStorage:window.localStorage;if(t){let e=n.getItem(t);return e===null?{}:{[t]:e}}let r={};for(let e=0;e<n.length;e+=1){let t=n.key(e);if(!t)continue;let i=n.getItem(t);i!==null&&(r[t]=i)}return r},{kind:n,key:r})??{}}}async function Ft(e){let t=await H(e);P(t);let n=String(e.key??``);if(!n)throw Error(`key is required`);await t.evaluate(({kind:e,key:t,value:n})=>{(e===`session`?window.sessionStorage:window.localStorage).setItem(t,n)},{kind:e.kind,key:n,value:String(e.value??``)})}async function It(e){let t=await H(e);P(t),await t.evaluate(({kind:e})=>{(e===`session`?window.sessionStorage:window.localStorage).clear()},{kind:e.kind})}async function Lt(e){let t=(await H(e)).context(),n=F(t);if(n.traceActive)throw Error(`Trace already running. Stop the current trace before starting a new one.`);await t.tracing.start({screenshots:e.screenshots??!0,snapshots:e.snapshots??!0,sources:e.sources??!1}),n.traceActive=!0}async function Rt(e){let t=(await H(e)).context(),n=F(t);if(!n.traceActive)throw Error(`No active trace. Start a trace before stopping it.`);await De({rootDir:s,targetPath:e.path,writeTemp:async e=>{await t.tracing.stop({path:e})}}),n.traceActive=!1}n();export{Ze as armDialogViaPlaywright,Xe as armFileUploadViaPlaywright,tt as clickViaPlaywright,ye as closePageByTargetIdViaPlaywright,xt as closePageViaPlaywright,me as closePlaywrightBrowserConnection,Nt as cookiesClearViaPlaywright,jt as cookiesGetViaPlaywright,Mt as cookiesSetViaPlaywright,ve as createPageViaPlaywright,$e as downloadViaPlaywright,rt as dragViaPlaywright,Dt as emulateMediaViaPlaywright,P as ensurePageState,ct as evaluateViaPlaywright,st as fillFormViaPlaywright,be as focusPageByTargetIdViaPlaywright,W as forceDisconnectPlaywrightForTarget,we as getConsoleMessagesViaPlaywright,Se as getNetworkRequestsViaPlaywright,xe as getPageErrorsViaPlaywright,H as getPageForTargetId,et as highlightViaPlaywright,nt as hoverViaPlaywright,_e as listPagesViaPlaywright,yt as navigateViaPlaywright,St as pdfViaPlaywright,at as pressKeyViaPlaywright,U as refLocator,bt as resizeViewportViaPlaywright,ht as responseBodyViaPlaywright,ft as screenshotWithLabelsViaPlaywright,lt as scrollIntoViewViaPlaywright,it as selectOptionViaPlaywright,At as setDeviceViaPlaywright,wt as setExtraHTTPHeadersViaPlaywright,Et as setGeolocationViaPlaywright,Tt as setHttpCredentialsViaPlaywright,pt as setInputFilesViaPlaywright,Ot as setLocaleViaPlaywright,Ct as setOfflineViaPlaywright,kt as setTimezoneViaPlaywright,_t as snapshotAiViaPlaywright,gt as snapshotAriaViaPlaywright,vt as snapshotRoleViaPlaywright,It as storageClearViaPlaywright,Pt as storageGetViaPlaywright,Ft as storageSetViaPlaywright,dt as takeScreenshotViaPlaywright,Lt as traceStartViaPlaywright,Rt as traceStopViaPlaywright,ot as typeViaPlaywright,Qe as waitForDownloadViaPlaywright,ut as waitForViaPlaywright};
|
|
47
|
-
//# sourceMappingURL=pw-ai-C0gM3d-6.js.map
|
package/dist/pw-ai-CQd14BQa.js
CHANGED
|
@@ -44,4 +44,3 @@ import{O as e}from"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import{E as
|
|
|
44
44
|
throw new Error("Invalid evaluate function: " + (err && err.message ? err.message : String(err)));
|
|
45
45
|
}
|
|
46
46
|
`);return await $(n.evaluate(r,{fnBody:t,timeoutMs:i}),c)}finally{a&&o&&a.removeEventListener(`abort`,o)}}async function lt(e){let t=await Z(e),n=Y(e.timeoutMs,2e4),r=J(e.ref),i=U(t,r);try{await i.scrollIntoViewIfNeeded({timeout:n})}catch(e){throw X(e,r)}}async function ut(e){let t=await H(e);P(t);let n=Y(e.timeoutMs,2e4);if(typeof e.timeMs==`number`&&Number.isFinite(e.timeMs)&&await t.waitForTimeout(Math.max(0,e.timeMs)),e.text&&await t.getByText(e.text).first().waitFor({state:`visible`,timeout:n}),e.textGone&&await t.getByText(e.textGone).first().waitFor({state:`hidden`,timeout:n}),e.selector){let r=String(e.selector).trim();r&&await t.locator(r).first().waitFor({state:`visible`,timeout:n})}if(e.url){let r=String(e.url).trim();r&&await t.waitForURL(r,{timeout:n})}if(e.loadState&&await t.waitForLoadState(e.loadState,{timeout:n}),e.fn){let r=String(e.fn).trim();r&&await t.waitForFunction(r,{timeout:n})}}async function dt(e){let t=await H(e);P(t),N({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t});let n=e.type??`png`;if(e.ref){if(e.fullPage)throw Error(`fullPage is not supported for element screenshots`);return{buffer:await U(t,e.ref).screenshot({type:n})}}if(e.element){if(e.fullPage)throw Error(`fullPage is not supported for element screenshots`);return{buffer:await t.locator(e.element).first().screenshot({type:n})}}return{buffer:await t.screenshot({type:n,fullPage:!!e.fullPage})}}async function ft(e){let t=await H(e);P(t),N({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t});let n=e.type??`png`,r=typeof e.maxLabels==`number`&&Number.isFinite(e.maxLabels)?Math.max(1,Math.floor(e.maxLabels)):150,i=await t.evaluate(()=>({scrollX:window.scrollX||0,scrollY:window.scrollY||0,width:window.innerWidth||0,height:window.innerHeight||0})),a=Object.keys(e.refs??{}),o=[],s=0;for(let e of a){if(o.length>=r){s+=1;continue}try{let n=await U(t,e).boundingBox();if(!n){s+=1;continue}let r=n.x,a=n.y,c=n.x+n.width,l=n.y+n.height,u=i.scrollX,d=i.scrollY,f=i.scrollX+i.width,p=i.scrollY+i.height;if(c<u||r>f||l<d||a>p){s+=1;continue}o.push({ref:e,x:r-i.scrollX,y:a-i.scrollY,w:Math.max(1,n.width),h:Math.max(1,n.height)})}catch{s+=1}}try{return o.length>0&&await t.evaluate(e=>{document.querySelectorAll(`[data-openclaw-labels]`).forEach(e=>e.remove());let t=document.createElement(`div`);t.setAttribute(`data-openclaw-labels`,`1`),t.style.position=`fixed`,t.style.left=`0`,t.style.top=`0`,t.style.zIndex=`2147483647`,t.style.pointerEvents=`none`,t.style.fontFamily=`"SF Mono","SFMono-Regular",Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace`;let n=(e,t,n)=>Math.min(n,Math.max(t,e));for(let r of e){let e=document.createElement(`div`);e.setAttribute(`data-openclaw-labels`,`1`),e.style.position=`absolute`,e.style.left=`${r.x}px`,e.style.top=`${r.y}px`,e.style.width=`${r.w}px`,e.style.height=`${r.h}px`,e.style.border=`2px solid #ffb020`,e.style.boxSizing=`border-box`;let i=document.createElement(`div`);i.setAttribute(`data-openclaw-labels`,`1`),i.textContent=r.ref,i.style.position=`absolute`,i.style.left=`${r.x}px`,i.style.top=`${n(r.y-18,0,2e4)}px`,i.style.background=`#ffb020`,i.style.color=`#1a1a1a`,i.style.fontSize=`12px`,i.style.lineHeight=`14px`,i.style.padding=`1px 4px`,i.style.borderRadius=`3px`,i.style.boxShadow=`0 1px 2px rgba(0,0,0,0.35)`,i.style.whiteSpace=`nowrap`,t.appendChild(e),t.appendChild(i)}document.documentElement.appendChild(t)},o),{buffer:await t.screenshot({type:n}),labels:o.length,skipped:s}}finally{await t.evaluate(()=>{document.querySelectorAll(`[data-openclaw-labels]`).forEach(e=>e.remove())}).catch(()=>{})}}async function pt(e){let t=await H(e);if(P(t),N({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t}),!e.paths.length)throw Error(`paths are required`);let n=typeof e.inputRef==`string`?e.inputRef.trim():``,r=typeof e.element==`string`?e.element.trim():``;if(n&&r)throw Error(`inputRef and element are mutually exclusive`);if(!n&&!r)throw Error(`inputRef or element is required`);let i=n?U(t,n):t.locator(r).first(),o=await a({rootDir:l,requestedPaths:e.paths,scopeLabel:`uploads directory (${l})`});if(!o.ok)throw Error(o.error);let s=o.paths;try{await i.setInputFiles(s)}catch(e){throw X(e,n||r)}try{let e=await i.elementHandle();e&&await e.evaluate(e=>{e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.dispatchEvent(new Event(`change`,{bubbles:!0}))})}catch{}}function mt(e,t){let n=e.trim();if(!n)return!1;if(n===t)return!0;if(n.includes(`*`)){let e=n.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`);return RegExp(`^${e.replace(/\*\*/g,`.*`).replace(/\*/g,`.*`)}$`).test(t)}return t.includes(n)}async function ht(e){let t=String(e.url??``).trim();if(!t)throw Error(`url is required`);let n=typeof e.maxChars==`number`&&Number.isFinite(e.maxChars)?Math.max(1,Math.min(5e6,Math.floor(e.maxChars))):2e5,r=Y(e.timeoutMs,2e4),i=await H(e);P(i);let a=await new Promise((e,n)=>{let a=!1,o,s,c=()=>{o&&clearTimeout(o),o=void 0,s&&i.off(`response`,s)};s=n=>{a||mt(t,n.url?.()||``)&&(a=!0,c(),e(n))},i.on(`response`,s),o=setTimeout(()=>{a||(a=!0,c(),n(Error(`Response not found for url pattern "${t}". Run '${p(`openclaw browser requests`)}' to inspect recent network activity.`)))},r)}),o=a.url?.()||``,s=a.status?.(),c=a.headers?.(),l=``;try{if(typeof a.text==`function`)l=await a.text();else if(typeof a.body==`function`){let e=await a.body();l=new TextDecoder(`utf-8`).decode(e)}}catch(e){throw Error(`Failed to read response body for "${o}": ${String(e)}`,{cause:e})}return{url:o,status:s,headers:c,body:l.length>n?l.slice(0,n):l,truncated:l.length>n?!0:void 0}}async function gt(e){let t=Math.max(1,Math.min(2e3,Math.floor(e.limit??500))),n=await H({cdpUrl:e.cdpUrl,targetId:e.targetId});P(n);let r=await C({cdpUrl:e.cdpUrl,page:n,targetId:e.targetId,fn:async e=>(await e(`Accessibility.enable`).catch(()=>{}),await e(`Accessibility.getFullAXTree`))});return{nodes:_(Array.isArray(r?.nodes)?r.nodes:[],t)}}async function _t(e){let t=await H({cdpUrl:e.cdpUrl,targetId:e.targetId});P(t);let n=t;if(!n._snapshotForAI)throw Error(`Playwright _snapshotForAI is not available. Upgrade playwright-core.`);let r=await n._snapshotForAI({timeout:Math.max(500,Math.min(6e4,Math.floor(e.timeoutMs??5e3))),track:`response`}),i=String(r?.full??``),a=e.maxChars,o=typeof a==`number`&&Number.isFinite(a)&&a>0?Math.floor(a):void 0,s=!1;o&&i.length>o&&(i=`${i.slice(0,o)}\n\n[...TRUNCATED - page too large]`,s=!0);let c=ze(i);return M({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:c.refs,mode:`aria`}),s?{snapshot:i,truncated:s,refs:c.refs}:{snapshot:i,refs:c.refs}}async function vt(e){let t=await H({cdpUrl:e.cdpUrl,targetId:e.targetId});if(P(t),e.refsMode===`aria`){if(e.selector?.trim()||e.frameSelector?.trim())throw Error(`refs=aria does not support selector/frame snapshots yet.`);let n=t;if(!n._snapshotForAI)throw Error(`refs=aria requires Playwright _snapshotForAI support.`);let r=await n._snapshotForAI({timeout:5e3,track:`response`}),i=ze(String(r?.full??``),e.options);return M({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:i.refs,mode:`aria`}),{snapshot:i.snapshot,refs:i.refs,stats:Ae(i.snapshot,i.refs)}}let n=e.frameSelector?.trim()||``,r=e.selector?.trim()||``,i=await(n?r?t.frameLocator(n).locator(r):t.frameLocator(n).locator(`:root`):r?t.locator(r):t.locator(`:root`)).ariaSnapshot(),a=Le(String(i??``),e.options);return M({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:a.refs,frameSelector:n||void 0,mode:`role`}),{snapshot:a.snapshot,refs:a.refs,stats:Ae(a.snapshot,a.refs)}}async function yt(e){let t=e=>{let t=typeof e==`string`?e.toLowerCase():e instanceof Error?e.message.toLowerCase():``;return t.includes(`frame has been detached`)||t.includes(`target page, context or browser has been closed`)},n=String(e.url??``).trim();if(!n)throw Error(`url is required`);await d({url:n,...o(e.ssrfPolicy)});let i=Math.max(1e3,Math.min(12e4,e.timeoutMs??2e4)),a=await H(e);P(a);let s=async()=>await a.goto(n,{timeout:i}),c;try{c=await s()}catch(n){if(!t(n))throw n;await W({cdpUrl:e.cdpUrl,targetId:e.targetId,reason:`retry navigate after detached frame`}).catch(()=>{}),a=await H(e),P(a),c=await s()}await f({request:c?.request(),...o(e.ssrfPolicy)});let l=a.url();return await r({url:l,...o(e.ssrfPolicy)}),{url:l}}async function bt(e){let t=await H(e);P(t),await t.setViewportSize({width:Math.max(1,Math.floor(e.width)),height:Math.max(1,Math.floor(e.height))})}async function xt(e){let t=await H(e);P(t),await t.close()}async function St(e){let t=await H(e);return P(t),{buffer:await t.pdf({printBackground:!0})}}async function Ct(e){let t=await H(e);P(t),await t.context().setOffline(!!e.offline)}async function wt(e){let t=await H(e);P(t),await t.context().setExtraHTTPHeaders(e.headers)}async function Tt(e){let t=await H(e);if(P(t),e.clear){await t.context().setHTTPCredentials(null);return}let n=String(e.username??``),r=String(e.password??``);if(!n)throw Error(`username is required (or set clear=true)`);await t.context().setHTTPCredentials({username:n,password:r})}async function Et(e){let t=await H(e);P(t);let n=t.context();if(e.clear){await n.setGeolocation(null),await n.clearPermissions().catch(()=>{});return}if(typeof e.latitude!=`number`||typeof e.longitude!=`number`)throw Error(`latitude and longitude are required (or set clear=true)`);await n.setGeolocation({latitude:e.latitude,longitude:e.longitude,accuracy:typeof e.accuracy==`number`?e.accuracy:void 0});let r=e.origin?.trim()||(()=>{try{return new URL(t.url()).origin}catch{return``}})();r&&await n.grantPermissions([`geolocation`],{origin:r}).catch(()=>{})}async function Dt(e){let t=await H(e);P(t),await t.emulateMedia({colorScheme:e.colorScheme})}async function Ot(e){let t=await H(e);P(t);let n=String(e.locale??``).trim();if(!n)throw Error(`locale is required`);await C({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{try{await e(`Emulation.setLocaleOverride`,{locale:n})}catch(e){if(String(e).includes(`Another locale override is already in effect`))return;throw e}}})}async function kt(e){let t=await H(e);P(t);let n=String(e.timezoneId??``).trim();if(!n)throw Error(`timezoneId is required`);await C({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{try{await e(`Emulation.setTimezoneOverride`,{timezoneId:n})}catch(e){let t=String(e);if(t.includes(`Timezone override is already in effect`))return;throw t.includes(`Invalid timezone`)?Error(`Invalid timezone ID: ${n}`,{cause:e}):e}}})}async function At(e){let t=await H(e);P(t);let n=String(e.name??``).trim();if(!n)throw Error(`device name is required`);let r=ie[n];if(!r)throw Error(`Unknown device "${n}".`);r.viewport&&await t.setViewportSize({width:r.viewport.width,height:r.viewport.height}),await C({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{(r.userAgent||r.locale)&&await e(`Emulation.setUserAgentOverride`,{userAgent:r.userAgent??``,acceptLanguage:r.locale??void 0}),r.viewport&&await e(`Emulation.setDeviceMetricsOverride`,{mobile:!!r.isMobile,width:r.viewport.width,height:r.viewport.height,deviceScaleFactor:r.deviceScaleFactor??1,screenWidth:r.viewport.width,screenHeight:r.viewport.height}),r.hasTouch&&await e(`Emulation.setTouchEmulationEnabled`,{enabled:!0})}})}async function jt(e){let t=await H(e);return P(t),{cookies:await t.context().cookies()}}async function Mt(e){let t=await H(e);P(t);let n=e.cookie;if(!n.name||n.value===void 0)throw Error(`cookie name and value are required`);let r=typeof n.url==`string`&&n.url.trim(),i=typeof n.domain==`string`&&n.domain.trim()&&typeof n.path==`string`&&n.path.trim();if(!r&&!i)throw Error(`cookie requires url, or domain+path`);await t.context().addCookies([n])}async function Nt(e){let t=await H(e);P(t),await t.context().clearCookies()}async function Pt(e){let t=await H(e);P(t);let n=e.kind,r=typeof e.key==`string`?e.key:void 0;return{values:await t.evaluate(({kind:e,key:t})=>{let n=e===`session`?window.sessionStorage:window.localStorage;if(t){let e=n.getItem(t);return e===null?{}:{[t]:e}}let r={};for(let e=0;e<n.length;e+=1){let t=n.key(e);if(!t)continue;let i=n.getItem(t);i!==null&&(r[t]=i)}return r},{kind:n,key:r})??{}}}async function Ft(e){let t=await H(e);P(t);let n=String(e.key??``);if(!n)throw Error(`key is required`);await t.evaluate(({kind:e,key:t,value:n})=>{(e===`session`?window.sessionStorage:window.localStorage).setItem(t,n)},{kind:e.kind,key:n,value:String(e.value??``)})}async function It(e){let t=await H(e);P(t),await t.evaluate(({kind:e})=>{(e===`session`?window.sessionStorage:window.localStorage).clear()},{kind:e.kind})}async function Lt(e){let t=(await H(e)).context(),n=F(t);if(n.traceActive)throw Error(`Trace already running. Stop the current trace before starting a new one.`);await t.tracing.start({screenshots:e.screenshots??!0,snapshots:e.snapshots??!0,sources:e.sources??!1}),n.traceActive=!0}async function Rt(e){let t=(await H(e)).context(),n=F(t);if(!n.traceActive)throw Error(`No active trace. Start a trace before stopping it.`);await De({rootDir:s,targetPath:e.path,writeTemp:async e=>{await t.tracing.stop({path:e})}}),n.traceActive=!1}n();export{Ze as armDialogViaPlaywright,Xe as armFileUploadViaPlaywright,tt as clickViaPlaywright,ye as closePageByTargetIdViaPlaywright,xt as closePageViaPlaywright,me as closePlaywrightBrowserConnection,Nt as cookiesClearViaPlaywright,jt as cookiesGetViaPlaywright,Mt as cookiesSetViaPlaywright,ve as createPageViaPlaywright,$e as downloadViaPlaywright,rt as dragViaPlaywright,Dt as emulateMediaViaPlaywright,P as ensurePageState,ct as evaluateViaPlaywright,st as fillFormViaPlaywright,be as focusPageByTargetIdViaPlaywright,W as forceDisconnectPlaywrightForTarget,we as getConsoleMessagesViaPlaywright,Se as getNetworkRequestsViaPlaywright,xe as getPageErrorsViaPlaywright,H as getPageForTargetId,et as highlightViaPlaywright,nt as hoverViaPlaywright,_e as listPagesViaPlaywright,yt as navigateViaPlaywright,St as pdfViaPlaywright,at as pressKeyViaPlaywright,U as refLocator,bt as resizeViewportViaPlaywright,ht as responseBodyViaPlaywright,ft as screenshotWithLabelsViaPlaywright,lt as scrollIntoViewViaPlaywright,it as selectOptionViaPlaywright,At as setDeviceViaPlaywright,wt as setExtraHTTPHeadersViaPlaywright,Et as setGeolocationViaPlaywright,Tt as setHttpCredentialsViaPlaywright,pt as setInputFilesViaPlaywright,Ot as setLocaleViaPlaywright,Ct as setOfflineViaPlaywright,kt as setTimezoneViaPlaywright,_t as snapshotAiViaPlaywright,gt as snapshotAriaViaPlaywright,vt as snapshotRoleViaPlaywright,It as storageClearViaPlaywright,Pt as storageGetViaPlaywright,Ft as storageSetViaPlaywright,dt as takeScreenshotViaPlaywright,Lt as traceStartViaPlaywright,Rt as traceStopViaPlaywright,ot as typeViaPlaywright,Qe as waitForDownloadViaPlaywright,ut as waitForViaPlaywright};
|
|
47
|
-
//# sourceMappingURL=pw-ai-CQd14BQa.js.map
|
package/dist/pw-ai-DiQuOf4W.js
CHANGED
|
@@ -44,4 +44,3 @@ import"./paths-B4IRk3wi.js";import{H as e}from"./subsystem-C5XF2Fy5.js";import".
|
|
|
44
44
|
throw new Error("Invalid evaluate function: " + (err && err.message ? err.message : String(err)));
|
|
45
45
|
}
|
|
46
46
|
`);return await $(n.evaluate(r,{fnBody:t,timeoutMs:i}),c)}finally{a&&o&&a.removeEventListener(`abort`,o)}}async function lt(e){let t=await Z(e),n=Y(e.timeoutMs,2e4),r=J(e.ref),i=V(t,r);try{await i.scrollIntoViewIfNeeded({timeout:n})}catch(e){throw X(e,r)}}async function ut(e){let t=await B(e);M(t);let n=Y(e.timeoutMs,2e4);if(typeof e.timeMs==`number`&&Number.isFinite(e.timeMs)&&await t.waitForTimeout(Math.max(0,e.timeMs)),e.text&&await t.getByText(e.text).first().waitFor({state:`visible`,timeout:n}),e.textGone&&await t.getByText(e.textGone).first().waitFor({state:`hidden`,timeout:n}),e.selector){let r=String(e.selector).trim();r&&await t.locator(r).first().waitFor({state:`visible`,timeout:n})}if(e.url){let r=String(e.url).trim();r&&await t.waitForURL(r,{timeout:n})}if(e.loadState&&await t.waitForLoadState(e.loadState,{timeout:n}),e.fn){let r=String(e.fn).trim();r&&await t.waitForFunction(r,{timeout:n})}}async function dt(e){let t=await B(e);M(t),j({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t});let n=e.type??`png`;if(e.ref){if(e.fullPage)throw Error(`fullPage is not supported for element screenshots`);return{buffer:await V(t,e.ref).screenshot({type:n})}}if(e.element){if(e.fullPage)throw Error(`fullPage is not supported for element screenshots`);return{buffer:await t.locator(e.element).first().screenshot({type:n})}}return{buffer:await t.screenshot({type:n,fullPage:!!e.fullPage})}}async function ft(e){let t=await B(e);M(t),j({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t});let n=e.type??`png`,r=typeof e.maxLabels==`number`&&Number.isFinite(e.maxLabels)?Math.max(1,Math.floor(e.maxLabels)):150,i=await t.evaluate(()=>({scrollX:window.scrollX||0,scrollY:window.scrollY||0,width:window.innerWidth||0,height:window.innerHeight||0})),a=Object.keys(e.refs??{}),o=[],s=0;for(let e of a){if(o.length>=r){s+=1;continue}try{let n=await V(t,e).boundingBox();if(!n){s+=1;continue}let r=n.x,a=n.y,c=n.x+n.width,l=n.y+n.height,u=i.scrollX,d=i.scrollY,f=i.scrollX+i.width,p=i.scrollY+i.height;if(c<u||r>f||l<d||a>p){s+=1;continue}o.push({ref:e,x:r-i.scrollX,y:a-i.scrollY,w:Math.max(1,n.width),h:Math.max(1,n.height)})}catch{s+=1}}try{return o.length>0&&await t.evaluate(e=>{document.querySelectorAll(`[data-openclaw-labels]`).forEach(e=>e.remove());let t=document.createElement(`div`);t.setAttribute(`data-openclaw-labels`,`1`),t.style.position=`fixed`,t.style.left=`0`,t.style.top=`0`,t.style.zIndex=`2147483647`,t.style.pointerEvents=`none`,t.style.fontFamily=`"SF Mono","SFMono-Regular",Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace`;let n=(e,t,n)=>Math.min(n,Math.max(t,e));for(let r of e){let e=document.createElement(`div`);e.setAttribute(`data-openclaw-labels`,`1`),e.style.position=`absolute`,e.style.left=`${r.x}px`,e.style.top=`${r.y}px`,e.style.width=`${r.w}px`,e.style.height=`${r.h}px`,e.style.border=`2px solid #ffb020`,e.style.boxSizing=`border-box`;let i=document.createElement(`div`);i.setAttribute(`data-openclaw-labels`,`1`),i.textContent=r.ref,i.style.position=`absolute`,i.style.left=`${r.x}px`,i.style.top=`${n(r.y-18,0,2e4)}px`,i.style.background=`#ffb020`,i.style.color=`#1a1a1a`,i.style.fontSize=`12px`,i.style.lineHeight=`14px`,i.style.padding=`1px 4px`,i.style.borderRadius=`3px`,i.style.boxShadow=`0 1px 2px rgba(0,0,0,0.35)`,i.style.whiteSpace=`nowrap`,t.appendChild(e),t.appendChild(i)}document.documentElement.appendChild(t)},o),{buffer:await t.screenshot({type:n}),labels:o.length,skipped:s}}finally{await t.evaluate(()=>{document.querySelectorAll(`[data-openclaw-labels]`).forEach(e=>e.remove())}).catch(()=>{})}}async function pt(e){let t=await B(e);if(M(t),j({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t}),!e.paths.length)throw Error(`paths are required`);let n=typeof e.inputRef==`string`?e.inputRef.trim():``,r=typeof e.element==`string`?e.element.trim():``;if(n&&r)throw Error(`inputRef and element are mutually exclusive`);if(!n&&!r)throw Error(`inputRef or element is required`);let i=n?V(t,n):t.locator(r).first(),a=await _({rootDir:s,requestedPaths:e.paths,scopeLabel:`uploads directory (${s})`});if(!a.ok)throw Error(a.error);let o=a.paths;try{await i.setInputFiles(o)}catch(e){throw X(e,n||r)}try{let e=await i.elementHandle();e&&await e.evaluate(e=>{e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.dispatchEvent(new Event(`change`,{bubbles:!0}))})}catch{}}function mt(e,t){let n=e.trim();if(!n)return!1;if(n===t)return!0;if(n.includes(`*`)){let e=n.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`);return RegExp(`^${e.replace(/\*\*/g,`.*`).replace(/\*/g,`.*`)}$`).test(t)}return t.includes(n)}async function ht(e){let t=String(e.url??``).trim();if(!t)throw Error(`url is required`);let n=typeof e.maxChars==`number`&&Number.isFinite(e.maxChars)?Math.max(1,Math.min(5e6,Math.floor(e.maxChars))):2e5,r=Y(e.timeoutMs,2e4),i=await B(e);M(i);let a=await new Promise((e,n)=>{let a=!1,o,s,c=()=>{o&&clearTimeout(o),o=void 0,s&&i.off(`response`,s)};s=n=>{a||mt(t,n.url?.()||``)&&(a=!0,c(),e(n))},i.on(`response`,s),o=setTimeout(()=>{a||(a=!0,c(),n(Error(`Response not found for url pattern "${t}". Run '${te(`openclaw browser requests`)}' to inspect recent network activity.`)))},r)}),o=a.url?.()||``,s=a.status?.(),c=a.headers?.(),l=``;try{if(typeof a.text==`function`)l=await a.text();else if(typeof a.body==`function`){let e=await a.body();l=new TextDecoder(`utf-8`).decode(e)}}catch(e){throw Error(`Failed to read response body for "${o}": ${String(e)}`,{cause:e})}return{url:o,status:s,headers:c,body:l.length>n?l.slice(0,n):l,truncated:l.length>n?!0:void 0}}async function gt(e){let t=Math.max(1,Math.min(2e3,Math.floor(e.limit??500))),n=await B({cdpUrl:e.cdpUrl,targetId:e.targetId});M(n);let r=await S({cdpUrl:e.cdpUrl,page:n,targetId:e.targetId,fn:async e=>(await e(`Accessibility.enable`).catch(()=>{}),await e(`Accessibility.getFullAXTree`))});return{nodes:u(Array.isArray(r?.nodes)?r.nodes:[],t)}}async function _t(e){let t=await B({cdpUrl:e.cdpUrl,targetId:e.targetId});M(t);let n=t;if(!n._snapshotForAI)throw Error(`Playwright _snapshotForAI is not available. Upgrade playwright-core.`);let r=await n._snapshotForAI({timeout:Math.max(500,Math.min(6e4,Math.floor(e.timeoutMs??5e3))),track:`response`}),i=String(r?.full??``),a=e.maxChars,o=typeof a==`number`&&Number.isFinite(a)&&a>0?Math.floor(a):void 0,s=!1;o&&i.length>o&&(i=`${i.slice(0,o)}\n\n[...TRUNCATED - page too large]`,s=!0);let c=ze(i);return A({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:c.refs,mode:`aria`}),s?{snapshot:i,truncated:s,refs:c.refs}:{snapshot:i,refs:c.refs}}async function vt(e){let t=await B({cdpUrl:e.cdpUrl,targetId:e.targetId});if(M(t),e.refsMode===`aria`){if(e.selector?.trim()||e.frameSelector?.trim())throw Error(`refs=aria does not support selector/frame snapshots yet.`);let n=t;if(!n._snapshotForAI)throw Error(`refs=aria requires Playwright _snapshotForAI support.`);let r=await n._snapshotForAI({timeout:5e3,track:`response`}),i=ze(String(r?.full??``),e.options);return A({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:i.refs,mode:`aria`}),{snapshot:i.snapshot,refs:i.refs,stats:Ae(i.snapshot,i.refs)}}let n=e.frameSelector?.trim()||``,r=e.selector?.trim()||``,i=await(n?r?t.frameLocator(n).locator(r):t.frameLocator(n).locator(`:root`):r?t.locator(r):t.locator(`:root`)).ariaSnapshot(),a=Le(String(i??``),e.options);return A({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:a.refs,frameSelector:n||void 0,mode:`role`}),{snapshot:a.snapshot,refs:a.refs,stats:Ae(a.snapshot,a.refs)}}async function yt(e){let r=e=>{let t=typeof e==`string`?e.toLowerCase():e instanceof Error?e.message.toLowerCase():``;return t.includes(`frame has been detached`)||t.includes(`target page, context or browser has been closed`)},i=String(e.url??``).trim();if(!i)throw Error(`url is required`);await n({url:i,...m(e.ssrfPolicy)});let a=Math.max(1e3,Math.min(12e4,e.timeoutMs??2e4)),s=await B(e);M(s);let c=async()=>await s.goto(i,{timeout:a}),l;try{l=await c()}catch(t){if(!r(t))throw t;await H({cdpUrl:e.cdpUrl,targetId:e.targetId,reason:`retry navigate after detached frame`}).catch(()=>{}),s=await B(e),M(s),l=await c()}await t({request:l?.request(),...m(e.ssrfPolicy)});let u=s.url();return await o({url:u,...m(e.ssrfPolicy)}),{url:u}}async function bt(e){let t=await B(e);M(t),await t.setViewportSize({width:Math.max(1,Math.floor(e.width)),height:Math.max(1,Math.floor(e.height))})}async function xt(e){let t=await B(e);M(t),await t.close()}async function St(e){let t=await B(e);return M(t),{buffer:await t.pdf({printBackground:!0})}}async function Ct(e){let t=await B(e);M(t),await t.context().setOffline(!!e.offline)}async function wt(e){let t=await B(e);M(t),await t.context().setExtraHTTPHeaders(e.headers)}async function Tt(e){let t=await B(e);if(M(t),e.clear){await t.context().setHTTPCredentials(null);return}let n=String(e.username??``),r=String(e.password??``);if(!n)throw Error(`username is required (or set clear=true)`);await t.context().setHTTPCredentials({username:n,password:r})}async function Et(e){let t=await B(e);M(t);let n=t.context();if(e.clear){await n.setGeolocation(null),await n.clearPermissions().catch(()=>{});return}if(typeof e.latitude!=`number`||typeof e.longitude!=`number`)throw Error(`latitude and longitude are required (or set clear=true)`);await n.setGeolocation({latitude:e.latitude,longitude:e.longitude,accuracy:typeof e.accuracy==`number`?e.accuracy:void 0});let r=e.origin?.trim()||(()=>{try{return new URL(t.url()).origin}catch{return``}})();r&&await n.grantPermissions([`geolocation`],{origin:r}).catch(()=>{})}async function Dt(e){let t=await B(e);M(t),await t.emulateMedia({colorScheme:e.colorScheme})}async function Ot(e){let t=await B(e);M(t);let n=String(e.locale??``).trim();if(!n)throw Error(`locale is required`);await S({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{try{await e(`Emulation.setLocaleOverride`,{locale:n})}catch(e){if(String(e).includes(`Another locale override is already in effect`))return;throw e}}})}async function kt(e){let t=await B(e);M(t);let n=String(e.timezoneId??``).trim();if(!n)throw Error(`timezoneId is required`);await S({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{try{await e(`Emulation.setTimezoneOverride`,{timezoneId:n})}catch(e){let t=String(e);if(t.includes(`Timezone override is already in effect`))return;throw t.includes(`Invalid timezone`)?Error(`Invalid timezone ID: ${n}`,{cause:e}):e}}})}async function At(e){let t=await B(e);M(t);let n=String(e.name??``).trim();if(!n)throw Error(`device name is required`);let r=ae[n];if(!r)throw Error(`Unknown device "${n}".`);r.viewport&&await t.setViewportSize({width:r.viewport.width,height:r.viewport.height}),await S({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{(r.userAgent||r.locale)&&await e(`Emulation.setUserAgentOverride`,{userAgent:r.userAgent??``,acceptLanguage:r.locale??void 0}),r.viewport&&await e(`Emulation.setDeviceMetricsOverride`,{mobile:!!r.isMobile,width:r.viewport.width,height:r.viewport.height,deviceScaleFactor:r.deviceScaleFactor??1,screenWidth:r.viewport.width,screenHeight:r.viewport.height}),r.hasTouch&&await e(`Emulation.setTouchEmulationEnabled`,{enabled:!0})}})}async function jt(e){let t=await B(e);return M(t),{cookies:await t.context().cookies()}}async function Mt(e){let t=await B(e);M(t);let n=e.cookie;if(!n.name||n.value===void 0)throw Error(`cookie name and value are required`);let r=typeof n.url==`string`&&n.url.trim(),i=typeof n.domain==`string`&&n.domain.trim()&&typeof n.path==`string`&&n.path.trim();if(!r&&!i)throw Error(`cookie requires url, or domain+path`);await t.context().addCookies([n])}async function Nt(e){let t=await B(e);M(t),await t.context().clearCookies()}async function Pt(e){let t=await B(e);M(t);let n=e.kind,r=typeof e.key==`string`?e.key:void 0;return{values:await t.evaluate(({kind:e,key:t})=>{let n=e===`session`?window.sessionStorage:window.localStorage;if(t){let e=n.getItem(t);return e===null?{}:{[t]:e}}let r={};for(let e=0;e<n.length;e+=1){let t=n.key(e);if(!t)continue;let i=n.getItem(t);i!==null&&(r[t]=i)}return r},{kind:n,key:r})??{}}}async function Ft(e){let t=await B(e);M(t);let n=String(e.key??``);if(!n)throw Error(`key is required`);await t.evaluate(({kind:e,key:t,value:n})=>{(e===`session`?window.sessionStorage:window.localStorage).setItem(t,n)},{kind:e.kind,key:n,value:String(e.value??``)})}async function It(e){let t=await B(e);M(t),await t.evaluate(({kind:e})=>{(e===`session`?window.sessionStorage:window.localStorage).clear()},{kind:e.kind})}async function Lt(e){let t=(await B(e)).context(),n=N(t);if(n.traceActive)throw Error(`Trace already running. Stop the current trace before starting a new one.`);await t.tracing.start({screenshots:e.screenshots??!0,snapshots:e.snapshots??!0,sources:e.sources??!1}),n.traceActive=!0}async function Rt(e){let t=(await B(e)).context(),n=N(t);if(!n.traceActive)throw Error(`No active trace. Start a trace before stopping it.`);await De({rootDir:ee,targetPath:e.path,writeTemp:async e=>{await t.tracing.stop({path:e})}}),n.traceActive=!1}f();export{Ze as armDialogViaPlaywright,Xe as armFileUploadViaPlaywright,tt as clickViaPlaywright,xe as closePageByTargetIdViaPlaywright,xt as closePageViaPlaywright,ge as closePlaywrightBrowserConnection,Nt as cookiesClearViaPlaywright,jt as cookiesGetViaPlaywright,Mt as cookiesSetViaPlaywright,be as createPageViaPlaywright,$e as downloadViaPlaywright,rt as dragViaPlaywright,Dt as emulateMediaViaPlaywright,M as ensurePageState,ct as evaluateViaPlaywright,st as fillFormViaPlaywright,Se as focusPageByTargetIdViaPlaywright,H as forceDisconnectPlaywrightForTarget,Te as getConsoleMessagesViaPlaywright,we as getNetworkRequestsViaPlaywright,Ce as getPageErrorsViaPlaywright,B as getPageForTargetId,et as highlightViaPlaywright,nt as hoverViaPlaywright,ye as listPagesViaPlaywright,yt as navigateViaPlaywright,St as pdfViaPlaywright,at as pressKeyViaPlaywright,V as refLocator,bt as resizeViewportViaPlaywright,ht as responseBodyViaPlaywright,ft as screenshotWithLabelsViaPlaywright,lt as scrollIntoViewViaPlaywright,it as selectOptionViaPlaywright,At as setDeviceViaPlaywright,wt as setExtraHTTPHeadersViaPlaywright,Et as setGeolocationViaPlaywright,Tt as setHttpCredentialsViaPlaywright,pt as setInputFilesViaPlaywright,Ot as setLocaleViaPlaywright,Ct as setOfflineViaPlaywright,kt as setTimezoneViaPlaywright,_t as snapshotAiViaPlaywright,gt as snapshotAriaViaPlaywright,vt as snapshotRoleViaPlaywright,It as storageClearViaPlaywright,Pt as storageGetViaPlaywright,Ft as storageSetViaPlaywright,dt as takeScreenshotViaPlaywright,Lt as traceStartViaPlaywright,Rt as traceStopViaPlaywright,ot as typeViaPlaywright,Qe as waitForDownloadViaPlaywright,ut as waitForViaPlaywright};
|
|
47
|
-
//# sourceMappingURL=pw-ai-DiQuOf4W.js.map
|
package/dist/pw-ai-jlhIn-aA.js
CHANGED
|
@@ -44,4 +44,3 @@ import{H as e}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import".
|
|
|
44
44
|
throw new Error("Invalid evaluate function: " + (err && err.message ? err.message : String(err)));
|
|
45
45
|
}
|
|
46
46
|
`);return await $(n.evaluate(r,{fnBody:t,timeoutMs:i}),c)}finally{a&&o&&a.removeEventListener(`abort`,o)}}async function lt(e){let t=await Z(e),n=Y(e.timeoutMs,2e4),r=J(e.ref),i=H(t,r);try{await i.scrollIntoViewIfNeeded({timeout:n})}catch(e){throw X(e,r)}}async function ut(e){let t=await V(e);N(t);let n=Y(e.timeoutMs,2e4);if(typeof e.timeMs==`number`&&Number.isFinite(e.timeMs)&&await t.waitForTimeout(Math.max(0,e.timeMs)),e.text&&await t.getByText(e.text).first().waitFor({state:`visible`,timeout:n}),e.textGone&&await t.getByText(e.textGone).first().waitFor({state:`hidden`,timeout:n}),e.selector){let r=String(e.selector).trim();r&&await t.locator(r).first().waitFor({state:`visible`,timeout:n})}if(e.url){let r=String(e.url).trim();r&&await t.waitForURL(r,{timeout:n})}if(e.loadState&&await t.waitForLoadState(e.loadState,{timeout:n}),e.fn){let r=String(e.fn).trim();r&&await t.waitForFunction(r,{timeout:n})}}async function dt(e){let t=await V(e);N(t),M({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t});let n=e.type??`png`;if(e.ref){if(e.fullPage)throw Error(`fullPage is not supported for element screenshots`);return{buffer:await H(t,e.ref).screenshot({type:n})}}if(e.element){if(e.fullPage)throw Error(`fullPage is not supported for element screenshots`);return{buffer:await t.locator(e.element).first().screenshot({type:n})}}return{buffer:await t.screenshot({type:n,fullPage:!!e.fullPage})}}async function ft(e){let t=await V(e);N(t),M({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t});let n=e.type??`png`,r=typeof e.maxLabels==`number`&&Number.isFinite(e.maxLabels)?Math.max(1,Math.floor(e.maxLabels)):150,i=await t.evaluate(()=>({scrollX:window.scrollX||0,scrollY:window.scrollY||0,width:window.innerWidth||0,height:window.innerHeight||0})),a=Object.keys(e.refs??{}),o=[],s=0;for(let e of a){if(o.length>=r){s+=1;continue}try{let n=await H(t,e).boundingBox();if(!n){s+=1;continue}let r=n.x,a=n.y,c=n.x+n.width,l=n.y+n.height,u=i.scrollX,d=i.scrollY,f=i.scrollX+i.width,p=i.scrollY+i.height;if(c<u||r>f||l<d||a>p){s+=1;continue}o.push({ref:e,x:r-i.scrollX,y:a-i.scrollY,w:Math.max(1,n.width),h:Math.max(1,n.height)})}catch{s+=1}}try{return o.length>0&&await t.evaluate(e=>{document.querySelectorAll(`[data-openclaw-labels]`).forEach(e=>e.remove());let t=document.createElement(`div`);t.setAttribute(`data-openclaw-labels`,`1`),t.style.position=`fixed`,t.style.left=`0`,t.style.top=`0`,t.style.zIndex=`2147483647`,t.style.pointerEvents=`none`,t.style.fontFamily=`"SF Mono","SFMono-Regular",Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace`;let n=(e,t,n)=>Math.min(n,Math.max(t,e));for(let r of e){let e=document.createElement(`div`);e.setAttribute(`data-openclaw-labels`,`1`),e.style.position=`absolute`,e.style.left=`${r.x}px`,e.style.top=`${r.y}px`,e.style.width=`${r.w}px`,e.style.height=`${r.h}px`,e.style.border=`2px solid #ffb020`,e.style.boxSizing=`border-box`;let i=document.createElement(`div`);i.setAttribute(`data-openclaw-labels`,`1`),i.textContent=r.ref,i.style.position=`absolute`,i.style.left=`${r.x}px`,i.style.top=`${n(r.y-18,0,2e4)}px`,i.style.background=`#ffb020`,i.style.color=`#1a1a1a`,i.style.fontSize=`12px`,i.style.lineHeight=`14px`,i.style.padding=`1px 4px`,i.style.borderRadius=`3px`,i.style.boxShadow=`0 1px 2px rgba(0,0,0,0.35)`,i.style.whiteSpace=`nowrap`,t.appendChild(e),t.appendChild(i)}document.documentElement.appendChild(t)},o),{buffer:await t.screenshot({type:n}),labels:o.length,skipped:s}}finally{await t.evaluate(()=>{document.querySelectorAll(`[data-openclaw-labels]`).forEach(e=>e.remove())}).catch(()=>{})}}async function pt(e){let t=await V(e);if(N(t),M({cdpUrl:e.cdpUrl,targetId:e.targetId,page:t}),!e.paths.length)throw Error(`paths are required`);let n=typeof e.inputRef==`string`?e.inputRef.trim():``,r=typeof e.element==`string`?e.element.trim():``;if(n&&r)throw Error(`inputRef and element are mutually exclusive`);if(!n&&!r)throw Error(`inputRef or element is required`);let i=n?H(t,n):t.locator(r).first(),a=await p({rootDir:_,requestedPaths:e.paths,scopeLabel:`uploads directory (${_})`});if(!a.ok)throw Error(a.error);let o=a.paths;try{await i.setInputFiles(o)}catch(e){throw X(e,n||r)}try{let e=await i.elementHandle();e&&await e.evaluate(e=>{e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.dispatchEvent(new Event(`change`,{bubbles:!0}))})}catch{}}function mt(e,t){let n=e.trim();if(!n)return!1;if(n===t)return!0;if(n.includes(`*`)){let e=n.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`);return RegExp(`^${e.replace(/\*\*/g,`.*`).replace(/\*/g,`.*`)}$`).test(t)}return t.includes(n)}async function ht(e){let t=String(e.url??``).trim();if(!t)throw Error(`url is required`);let n=typeof e.maxChars==`number`&&Number.isFinite(e.maxChars)?Math.max(1,Math.min(5e6,Math.floor(e.maxChars))):2e5,r=Y(e.timeoutMs,2e4),i=await V(e);N(i);let a=await new Promise((e,n)=>{let a=!1,o,s,c=()=>{o&&clearTimeout(o),o=void 0,s&&i.off(`response`,s)};s=n=>{a||mt(t,n.url?.()||``)&&(a=!0,c(),e(n))},i.on(`response`,s),o=setTimeout(()=>{a||(a=!0,c(),n(Error(`Response not found for url pattern "${t}". Run '${ee(`openclaw browser requests`)}' to inspect recent network activity.`)))},r)}),o=a.url?.()||``,s=a.status?.(),c=a.headers?.(),l=``;try{if(typeof a.text==`function`)l=await a.text();else if(typeof a.body==`function`){let e=await a.body();l=new TextDecoder(`utf-8`).decode(e)}}catch(e){throw Error(`Failed to read response body for "${o}": ${String(e)}`,{cause:e})}return{url:o,status:s,headers:c,body:l.length>n?l.slice(0,n):l,truncated:l.length>n?!0:void 0}}async function gt(e){let t=Math.max(1,Math.min(2e3,Math.floor(e.limit??500))),n=await V({cdpUrl:e.cdpUrl,targetId:e.targetId});N(n);let r=await C({cdpUrl:e.cdpUrl,page:n,targetId:e.targetId,fn:async e=>(await e(`Accessibility.enable`).catch(()=>{}),await e(`Accessibility.getFullAXTree`))});return{nodes:f(Array.isArray(r?.nodes)?r.nodes:[],t)}}async function _t(e){let t=await V({cdpUrl:e.cdpUrl,targetId:e.targetId});N(t);let n=t;if(!n._snapshotForAI)throw Error(`Playwright _snapshotForAI is not available. Upgrade playwright-core.`);let r=await n._snapshotForAI({timeout:Math.max(500,Math.min(6e4,Math.floor(e.timeoutMs??5e3))),track:`response`}),i=String(r?.full??``),a=e.maxChars,o=typeof a==`number`&&Number.isFinite(a)&&a>0?Math.floor(a):void 0,s=!1;o&&i.length>o&&(i=`${i.slice(0,o)}\n\n[...TRUNCATED - page too large]`,s=!0);let c=ze(i);return j({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:c.refs,mode:`aria`}),s?{snapshot:i,truncated:s,refs:c.refs}:{snapshot:i,refs:c.refs}}async function vt(e){let t=await V({cdpUrl:e.cdpUrl,targetId:e.targetId});if(N(t),e.refsMode===`aria`){if(e.selector?.trim()||e.frameSelector?.trim())throw Error(`refs=aria does not support selector/frame snapshots yet.`);let n=t;if(!n._snapshotForAI)throw Error(`refs=aria requires Playwright _snapshotForAI support.`);let r=await n._snapshotForAI({timeout:5e3,track:`response`}),i=ze(String(r?.full??``),e.options);return j({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:i.refs,mode:`aria`}),{snapshot:i.snapshot,refs:i.refs,stats:Ae(i.snapshot,i.refs)}}let n=e.frameSelector?.trim()||``,r=e.selector?.trim()||``,i=await(n?r?t.frameLocator(n).locator(r):t.frameLocator(n).locator(`:root`):r?t.locator(r):t.locator(`:root`)).ariaSnapshot(),a=Le(String(i??``),e.options);return j({page:t,cdpUrl:e.cdpUrl,targetId:e.targetId,refs:a.refs,frameSelector:n||void 0,mode:`role`}),{snapshot:a.snapshot,refs:a.refs,stats:Ae(a.snapshot,a.refs)}}async function yt(e){let t=e=>{let t=typeof e==`string`?e.toLowerCase():e instanceof Error?e.message.toLowerCase():``;return t.includes(`frame has been detached`)||t.includes(`target page, context or browser has been closed`)},n=String(e.url??``).trim();if(!n)throw Error(`url is required`);await c({url:n,...m(e.ssrfPolicy)});let r=Math.max(1e3,Math.min(12e4,e.timeoutMs??2e4)),i=await V(e);N(i);let a=async()=>await i.goto(n,{timeout:r}),o;try{o=await a()}catch(n){if(!t(n))throw n;await U({cdpUrl:e.cdpUrl,targetId:e.targetId,reason:`retry navigate after detached frame`}).catch(()=>{}),i=await V(e),N(i),o=await a()}await u({request:o?.request(),...m(e.ssrfPolicy)});let s=i.url();return await g({url:s,...m(e.ssrfPolicy)}),{url:s}}async function bt(e){let t=await V(e);N(t),await t.setViewportSize({width:Math.max(1,Math.floor(e.width)),height:Math.max(1,Math.floor(e.height))})}async function xt(e){let t=await V(e);N(t),await t.close()}async function St(e){let t=await V(e);return N(t),{buffer:await t.pdf({printBackground:!0})}}async function Ct(e){let t=await V(e);N(t),await t.context().setOffline(!!e.offline)}async function wt(e){let t=await V(e);N(t),await t.context().setExtraHTTPHeaders(e.headers)}async function Tt(e){let t=await V(e);if(N(t),e.clear){await t.context().setHTTPCredentials(null);return}let n=String(e.username??``),r=String(e.password??``);if(!n)throw Error(`username is required (or set clear=true)`);await t.context().setHTTPCredentials({username:n,password:r})}async function Et(e){let t=await V(e);N(t);let n=t.context();if(e.clear){await n.setGeolocation(null),await n.clearPermissions().catch(()=>{});return}if(typeof e.latitude!=`number`||typeof e.longitude!=`number`)throw Error(`latitude and longitude are required (or set clear=true)`);await n.setGeolocation({latitude:e.latitude,longitude:e.longitude,accuracy:typeof e.accuracy==`number`?e.accuracy:void 0});let r=e.origin?.trim()||(()=>{try{return new URL(t.url()).origin}catch{return``}})();r&&await n.grantPermissions([`geolocation`],{origin:r}).catch(()=>{})}async function Dt(e){let t=await V(e);N(t),await t.emulateMedia({colorScheme:e.colorScheme})}async function Ot(e){let t=await V(e);N(t);let n=String(e.locale??``).trim();if(!n)throw Error(`locale is required`);await C({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{try{await e(`Emulation.setLocaleOverride`,{locale:n})}catch(e){if(String(e).includes(`Another locale override is already in effect`))return;throw e}}})}async function kt(e){let t=await V(e);N(t);let n=String(e.timezoneId??``).trim();if(!n)throw Error(`timezoneId is required`);await C({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{try{await e(`Emulation.setTimezoneOverride`,{timezoneId:n})}catch(e){let t=String(e);if(t.includes(`Timezone override is already in effect`))return;throw t.includes(`Invalid timezone`)?Error(`Invalid timezone ID: ${n}`,{cause:e}):e}}})}async function At(e){let t=await V(e);N(t);let n=String(e.name??``).trim();if(!n)throw Error(`device name is required`);let r=ie[n];if(!r)throw Error(`Unknown device "${n}".`);r.viewport&&await t.setViewportSize({width:r.viewport.width,height:r.viewport.height}),await C({cdpUrl:e.cdpUrl,page:t,targetId:e.targetId,fn:async e=>{(r.userAgent||r.locale)&&await e(`Emulation.setUserAgentOverride`,{userAgent:r.userAgent??``,acceptLanguage:r.locale??void 0}),r.viewport&&await e(`Emulation.setDeviceMetricsOverride`,{mobile:!!r.isMobile,width:r.viewport.width,height:r.viewport.height,deviceScaleFactor:r.deviceScaleFactor??1,screenWidth:r.viewport.width,screenHeight:r.viewport.height}),r.hasTouch&&await e(`Emulation.setTouchEmulationEnabled`,{enabled:!0})}})}async function jt(e){let t=await V(e);return N(t),{cookies:await t.context().cookies()}}async function Mt(e){let t=await V(e);N(t);let n=e.cookie;if(!n.name||n.value===void 0)throw Error(`cookie name and value are required`);let r=typeof n.url==`string`&&n.url.trim(),i=typeof n.domain==`string`&&n.domain.trim()&&typeof n.path==`string`&&n.path.trim();if(!r&&!i)throw Error(`cookie requires url, or domain+path`);await t.context().addCookies([n])}async function Nt(e){let t=await V(e);N(t),await t.context().clearCookies()}async function Pt(e){let t=await V(e);N(t);let n=e.kind,r=typeof e.key==`string`?e.key:void 0;return{values:await t.evaluate(({kind:e,key:t})=>{let n=e===`session`?window.sessionStorage:window.localStorage;if(t){let e=n.getItem(t);return e===null?{}:{[t]:e}}let r={};for(let e=0;e<n.length;e+=1){let t=n.key(e);if(!t)continue;let i=n.getItem(t);i!==null&&(r[t]=i)}return r},{kind:n,key:r})??{}}}async function Ft(e){let t=await V(e);N(t);let n=String(e.key??``);if(!n)throw Error(`key is required`);await t.evaluate(({kind:e,key:t,value:n})=>{(e===`session`?window.sessionStorage:window.localStorage).setItem(t,n)},{kind:e.kind,key:n,value:String(e.value??``)})}async function It(e){let t=await V(e);N(t),await t.evaluate(({kind:e})=>{(e===`session`?window.sessionStorage:window.localStorage).clear()},{kind:e.kind})}async function Lt(e){let t=(await V(e)).context(),n=P(t);if(n.traceActive)throw Error(`Trace already running. Stop the current trace before starting a new one.`);await t.tracing.start({screenshots:e.screenshots??!0,snapshots:e.snapshots??!0,sources:e.sources??!1}),n.traceActive=!0}async function Rt(e){let t=(await V(e)).context(),n=P(t);if(!n.traceActive)throw Error(`No active trace. Start a trace before stopping it.`);await De({rootDir:h,targetPath:e.path,writeTemp:async e=>{await t.tracing.stop({path:e})}}),n.traceActive=!1}s();export{Ze as armDialogViaPlaywright,Xe as armFileUploadViaPlaywright,tt as clickViaPlaywright,be as closePageByTargetIdViaPlaywright,xt as closePageViaPlaywright,he as closePlaywrightBrowserConnection,Nt as cookiesClearViaPlaywright,jt as cookiesGetViaPlaywright,Mt as cookiesSetViaPlaywright,ye as createPageViaPlaywright,$e as downloadViaPlaywright,rt as dragViaPlaywright,Dt as emulateMediaViaPlaywright,N as ensurePageState,ct as evaluateViaPlaywright,st as fillFormViaPlaywright,xe as focusPageByTargetIdViaPlaywright,U as forceDisconnectPlaywrightForTarget,we as getConsoleMessagesViaPlaywright,Ce as getNetworkRequestsViaPlaywright,Se as getPageErrorsViaPlaywright,V as getPageForTargetId,et as highlightViaPlaywright,nt as hoverViaPlaywright,ve as listPagesViaPlaywright,yt as navigateViaPlaywright,St as pdfViaPlaywright,at as pressKeyViaPlaywright,H as refLocator,bt as resizeViewportViaPlaywright,ht as responseBodyViaPlaywright,ft as screenshotWithLabelsViaPlaywright,lt as scrollIntoViewViaPlaywright,it as selectOptionViaPlaywright,At as setDeviceViaPlaywright,wt as setExtraHTTPHeadersViaPlaywright,Et as setGeolocationViaPlaywright,Tt as setHttpCredentialsViaPlaywright,pt as setInputFilesViaPlaywright,Ot as setLocaleViaPlaywright,Ct as setOfflineViaPlaywright,kt as setTimezoneViaPlaywright,_t as snapshotAiViaPlaywright,gt as snapshotAriaViaPlaywright,vt as snapshotRoleViaPlaywright,It as storageClearViaPlaywright,Pt as storageGetViaPlaywright,Ft as storageSetViaPlaywright,dt as takeScreenshotViaPlaywright,Lt as traceStartViaPlaywright,Rt as traceStopViaPlaywright,ot as typeViaPlaywright,Qe as waitForDownloadViaPlaywright,ut as waitForViaPlaywright};
|
|
47
|
-
//# sourceMappingURL=pw-ai-jlhIn-aA.js.map
|
|
@@ -3,4 +3,3 @@ import{W as e,Wt as t,c as n,k as r,l as i}from"./paths-piJASC5k.js";import{c as
|
|
|
3
3
|
`),path:t}}status(){let e=this.readCounts();return{backend:`qmd`,provider:`qmd`,model:`qmd`,requestedProvider:`qmd`,files:e.totalDocuments,chunks:e.totalDocuments,dirty:!1,workspaceDir:this.workspaceDir,dbPath:this.indexPath,sources:Array.from(this.sources),sourceCounts:e.sourceCounts,vector:{enabled:!0,available:!0},batch:{enabled:!1,failures:0,limit:0,wait:!1,concurrency:0,pollIntervalMs:0,timeoutMs:0},custom:{qmd:{collections:this.qmd.collections.length,lastUpdateAt:this.lastUpdateAt}}}}async probeEmbeddingAvailability(){return{ok:!0}}async probeVectorAvailability(){return!0}async close(){this.closed||(this.closed=!0,this.updateTimer&&=(clearInterval(this.updateTimer),null),this.queuedForcedRuns=0,await this.pendingUpdate?.catch(()=>void 0),await this.queuedForcedUpdate?.catch(()=>void 0),this.db&&=(this.db.close(),null))}async runUpdate(e,t,n){if(!this.closed){if(this.pendingUpdate)return t?this.enqueueForcedUpdate(e):this.pendingUpdate;if(this.queuedForcedUpdate&&!n?.fromForcedQueue)return t?this.enqueueForcedUpdate(e):this.queuedForcedUpdate;this.shouldSkipUpdate(t)||(this.pendingUpdate=(async()=>{if(this.sessionExporter&&await this.exportSessions(),await this.runQmdUpdateWithRetry(e),this.shouldRunEmbed(t))try{await H(async()=>{await this.runQmd([`embed`],{timeoutMs:this.qmd.update.embedTimeoutMs,discardOutput:!0})}),this.lastEmbedAt=Date.now(),this.embedBackoffUntil=null,this.embedFailureCount=0}catch(t){this.noteEmbedFailure(e,t)}this.lastUpdateAt=Date.now(),this.docPathCache.clear()})().finally(()=>{this.pendingUpdate=null}),await this.pendingUpdate)}}async runQmdUpdateWithRetry(e){let t=e===`boot`||e.startsWith(`boot:`)?3:1;for(let n=1;n<=t;n+=1)try{await this.runQmdUpdateOnce(e);return}catch(r){if(n>=t||!this.isRetryableUpdateError(r))throw r;let i=500*2**(n-1);F.warn(`qmd update retry ${n}/${t-1} after failure (${e}): ${String(r)}`),await new Promise(e=>setTimeout(e,i))}}async runQmdUpdateOnce(e){try{await this.runQmd([`update`],{timeoutMs:this.qmd.update.updateTimeoutMs,discardOutput:!0})}catch(t){if(!await this.tryRepairNullByteCollections(t,e)&&!await this.tryRepairDuplicateDocumentConstraint(t,e))throw t;await this.runQmd([`update`],{timeoutMs:this.qmd.update.updateTimeoutMs,discardOutput:!0})}}isRetryableUpdateError(e){return this.isSqliteBusyError(e)?!0:(e instanceof Error?e.message:String(e)).toLowerCase().includes(`timed out`)}shouldRunEmbed(e){if(this.qmd.searchMode===`search`)return!1;let t=Date.now();if(this.embedBackoffUntil!==null&&t<this.embedBackoffUntil)return!1;let n=this.qmd.update.embedIntervalMs;return!!e||this.lastEmbedAt===null||n>0&&t-this.lastEmbedAt>n}noteEmbedFailure(e,t){this.embedFailureCount+=1;let n=Math.min(36e5,6e4*2**Math.max(0,this.embedFailureCount-1));this.embedBackoffUntil=Date.now()+n,F.warn(`qmd embed failed (${e}): ${String(t)}; backing off for ${Math.ceil(n/1e3)}s`)}enqueueForcedUpdate(e){return this.queuedForcedRuns+=1,this.queuedForcedUpdate||=this.drainForcedUpdates(e).finally(()=>{this.queuedForcedUpdate=null}),this.queuedForcedUpdate}async drainForcedUpdates(e){for(await this.pendingUpdate?.catch(()=>void 0);!this.closed&&this.queuedForcedRuns>0;)--this.queuedForcedRuns,await this.runUpdate(`${e}:queued`,!0,{fromForcedQueue:!0})}async symlinkSharedModels(){let e=process.env.XDG_CACHE_HOME||(process.platform===`win32`?process.env.LOCALAPPDATA:void 0)||p.join(m.homedir(),`.cache`),t=p.join(e,`qmd`,`models`),n=p.join(this.xdgCacheHome,`qmd`,`models`);try{if(!(await h.stat(t).catch(e=>{if(e.code===`ENOENT`)return null;throw e}))?.isDirectory())return;try{await h.lstat(n);return}catch{}try{await h.symlink(t,n,`dir`)}catch(e){let r=e.code;if(process.platform===`win32`&&(r===`EPERM`||r===`ENOTSUP`))await h.symlink(t,n,`junction`);else throw e}F.debug(`symlinked qmd models: ${t} → ${n}`)}catch(e){F.warn(`failed to symlink qmd models directory: ${String(e)}`)}}async runQmd(e,t){return await x({commandSummary:`qmd ${e.join(` `)}`,spawnInvocation:y({command:this.qmd.command,args:e,env:this.env,packageName:`qmd`}),env:this.env,cwd:this.workspaceDir,timeoutMs:t?.timeoutMs,maxOutputChars:this.maxQmdOutputChars,discardStdout:t?.discardOutput})}async ensureMcporterDaemonStarted(e){if(!e.enabled)return;if(!e.startDaemon){let e=globalThis;e.__openclawMcporterColdStartWarned||(e.__openclawMcporterColdStartWarned=!0,F.warn(`mcporter qmd bridge enabled but startDaemon=false; each query may cold-start QMD MCP. Consider setting memory.qmd.mcporter.startDaemon=true to keep it warm.`));return}let t=globalThis;t.__openclawMcporterDaemonStart||=(async()=>{try{await this.runMcporter([`daemon`,`start`],{timeoutMs:1e4})}catch(e){F.warn(`mcporter daemon start failed: ${String(e)}`),delete t.__openclawMcporterDaemonStart}})(),await t.__openclawMcporterDaemonStart}async runMcporter(e,t){let n=async e=>await x({commandSummary:`${e.command} ${e.argv.join(` `)}`,spawnInvocation:e,env:this.env,cwd:this.workspaceDir,timeoutMs:t?.timeoutMs,maxOutputChars:this.maxQmdOutputChars}),r=y({command:`mcporter`,args:e,env:this.env,packageName:`mcporter`});try{return await n(r)}catch(t){if(!b({err:t,command:r.command,commandBase:`mcporter`}))throw t;return F.warn(`mcporter.cmd spawn returned EINVAL on Windows; retrying with bare mcporter`),await n({command:`mcporter`,argv:e,shell:!0,windowsHide:!0})}}async runQmdSearchViaMcporter(e){await this.ensureMcporterDaemonStarted(e.mcporter);let t=`${e.mcporter.serverName}.${e.tool}`,n={query:e.query,limit:e.limit,minScore:e.minScore};e.collection&&(n.collection=e.collection);let r=await this.runMcporter([`call`,t,`--args`,JSON.stringify(n),`--output`,`json`,`--timeout`,String(Math.max(0,e.timeoutMs))],{timeoutMs:Math.max(e.timeoutMs+2e3,5e3)}),i=JSON.parse(r.stdout),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=a(i)&&a(i.structuredContent)?i.structuredContent:i,s=a(o)&&Array.isArray(o.results)?o.results:Array.isArray(o)?o:[],c=[];for(let e of s){if(!a(e))continue;let t=e.docid,n=typeof t==`string`?t.replace(/^#/,``).trim():``;if(!n)continue;let r=e.score,i=typeof r==`number`?r:Number(r),o=typeof e.snippet==`string`?e.snippet:``;c.push({docid:n,score:Number.isFinite(i)?i:0,snippet:o})}return c}async readPartialText(e,t,n){let r=Math.max(1,t??1),i=Math.max(1,n??1/0),a;try{a=await h.open(e)}catch(e){if(s(e))return{missing:!0};throw e}let o=a.createReadStream({encoding:`utf-8`}),c=_.createInterface({input:o,crlfDelay:1/0}),l=[],u=0;try{for await(let e of c)if(u+=1,!(u<r)){if(l.length>=i)break;l.push(e)}}finally{c.close(),await a.close()}return{missing:!1,text:l.slice(0,i).join(`
|
|
4
4
|
`)}}async readFullText(e){try{return{missing:!1,text:await h.readFile(e,`utf-8`)}}catch(e){if(s(e))return{missing:!0};throw e}}ensureDb(){if(this.db)return this.db;let{DatabaseSync:e}=u();return this.db=new e(this.indexPath,{readOnly:!0}),this.db.exec(`PRAGMA busy_timeout = 1000`),this.db}async exportSessions(){if(!this.sessionExporter)return;let e=this.sessionExporter.dir;await h.mkdir(e,{recursive:!0});let t=await c(this.agentId),n=new Set,i=new Set,a=this.sessionExporter.retentionMs?Date.now()-this.sessionExporter.retentionMs:null;for(let o of t){let t=await l(o);if(!t||a&&t.mtimeMs<a)continue;let s=`${p.basename(o,`.jsonl`)}.md`,c=p.join(e,s);i.add(o);let u=this.exportedSessionState.get(o);(!u||u.hash!==t.hash||u.mtimeMs!==t.mtimeMs)&&await r({rootDir:e,relativePath:s,data:this.renderSessionMarkdown(t),encoding:`utf-8`}),this.exportedSessionState.set(o,{hash:t.hash,mtimeMs:t.mtimeMs,target:c}),n.add(c)}let o=await h.readdir(e).catch(()=>[]);for(let t of o){if(!t.endsWith(`.md`))continue;let r=p.join(e,t);n.has(r)||await h.rm(r,{force:!0})}for(let[t,n]of this.exportedSessionState)(!i.has(t)||!n.target.startsWith(e+p.sep))&&this.exportedSessionState.delete(t)}renderSessionMarkdown(e){return`${`# Session ${p.basename(e.absPath,p.extname(e.absPath))}`}\n\n${e.content?.trim().length?e.content.trim():`(empty)`}\n`}pickSessionCollectionName(){let e=new Set(this.qmd.collections.map(e=>e.name)),t=`sessions-${this.sanitizeCollectionNameSegment(this.agentId)}`;if(!e.has(t))return t;let n=2,r=`${t}-${n}`;for(;e.has(r);)n+=1,r=`${t}-${n}`;return r}sanitizeCollectionNameSegment(e){return e.toLowerCase().replace(/[^a-z0-9-]+/g,`-`).replace(/^-+|-+$/g,``)||`agent`}async resolveDocLocation(e,t){let n=this.normalizeDocHints(t);if(!e)return this.resolveDocLocationFromHints(n);let r=e.startsWith(`#`)?e.slice(1):e;if(!r)return null;let i=`${n.preferredCollection??`*`}:${r}`,a=this.docPathCache.get(i);if(a)return a;let o=this.ensureDb(),s=[];try{s=o.prepare(`SELECT collection, path FROM documents WHERE hash = ? AND active = 1`).all(r),s.length===0&&(s=o.prepare(`SELECT collection, path FROM documents WHERE hash LIKE ? AND active = 1`).all(`${r}%`))}catch(e){throw this.isSqliteBusyError(e)?(F.debug(`qmd index is busy while resolving doc path: ${String(e)}`),this.createQmdBusyError(e)):e}if(s.length===0)return null;let c=this.pickDocLocation(s,n);return c?(this.docPathCache.set(i,c),c):null}resolveDocLocationFromHints(e){if(!e.preferredCollection||!e.preferredFile)return null;let t=this.toCollectionRelativePath(e.preferredCollection,e.preferredFile);return t?this.toDocLocation(e.preferredCollection,t):null}normalizeDocHints(e){let t=e?.preferredCollection?.trim(),n=e?.preferredFile?.trim();if(!n)return t?{preferredCollection:t}:{};let r=this.parseQmdFileUri(n);return{preferredCollection:r?.collection??t,preferredFile:r?.collectionRelativePath??n}}parseQmdFileUri(e){if(!e.toLowerCase().startsWith(`qmd://`))return null;try{let t=new URL(e),n=decodeURIComponent(t.hostname).trim(),r=decodeURIComponent(t.pathname).replace(/^\/+/,``).trim();return!n&&!r?null:{collection:n||void 0,collectionRelativePath:r||void 0}}catch{return null}}toCollectionRelativePath(e,t){let n=this.collectionRoots.get(e);if(!n)return null;let r=t.trim();if(!r)return null;let i=p.normalize(r),a=p.isAbsolute(i)?i:p.resolve(n.path,i);if(!this.isWithinRoot(n.path,a))return null;let o=p.relative(n.path,a);return!o||o===`.`?null:o.replace(/\\/g,`/`)}pickDocLocation(e,t){if(t?.preferredCollection)for(let n of e){if(n.collection!==t.preferredCollection)continue;let e=this.toDocLocation(n.collection,n.path);if(e)return e}if(t?.preferredFile){let n=p.normalize(t.preferredFile);for(let t of e){let e=p.normalize(t.path);if(e!==n&&!e.endsWith(p.sep+n))continue;let r=this.toDocLocation(t.collection,t.path);if(r)return r}}for(let t of e){let e=this.toDocLocation(t.collection,t.path);if(e)return e}return null}extractSnippetLines(e){let t=I.exec(e);if(t){let e=Number(t[1]),n=Number(t[2]);if(Number.isFinite(e)&&Number.isFinite(n))return{startLine:e,endLine:e+n-1}}return{startLine:1,endLine:e.split(`
|
|
5
5
|
`).length}}readCounts(){try{let e=this.ensureDb().prepare(`SELECT collection, COUNT(*) as c FROM documents WHERE active = 1 GROUP BY collection`).all(),t=new Map;for(let e of this.sources)t.set(e,{files:0,chunks:0});let n=0;for(let r of e){let e=this.collectionRoots.get(r.collection)?.kind??`memory`,i=t.get(e)??{files:0,chunks:0};i.files+=r.c??0,i.chunks+=r.c??0,t.set(e,i),n+=r.c??0}return{totalDocuments:n,sourceCounts:Array.from(t.entries()).map(([e,t])=>({source:e,files:t.files,chunks:t.chunks}))}}catch(e){return F.warn(`failed to read qmd index stats: ${String(e)}`),{totalDocuments:0,sourceCounts:Array.from(this.sources).map(e=>({source:e,files:0,chunks:0}))}}}logScopeDenied(e){let t=w(e)??`unknown`,n=T(e)??`unknown`,r=e?.trim()||`<none>`;F.warn(`qmd search denied by scope (channel=${t}, chatType=${n}, session=${r})`)}isScopeAllowed(e){return C(this.qmd.scope,e)}toDocLocation(e,t){let n=this.collectionRoots.get(e);if(!n)return null;let r=t.replace(/\\/g,`/`),i=p.normalize(p.resolve(n.path,t)),a=p.relative(this.workspaceDir,i);return{rel:this.buildSearchPath(e,r,a,i),abs:i,source:n.kind}}buildSearchPath(e,t,n,r){return this.isInsideWorkspace(n)?n.replace(/\\/g,`/`)||p.basename(r):`qmd/${e}/${t.replace(/^\/+/,``)}`}isInsideWorkspace(e){return e?e.startsWith(`..`)||e.startsWith(`..${p.sep}`)?!1:!p.isAbsolute(e):!0}resolveReadPath(e){if(e.startsWith(`qmd/`)){let[,t,...n]=e.split(`/`);if(!t||n.length===0)throw Error(`invalid qmd path`);let r=this.collectionRoots.get(t);if(!r)throw Error(`unknown qmd collection: ${t}`);let i=n.join(`/`),a=p.resolve(r.path,i);if(!this.isWithinRoot(r.path,a))throw Error(`qmd path escapes collection`);return a}let t=p.resolve(this.workspaceDir,e);if(!this.isWithinWorkspace(t))throw Error(`path escapes workspace`);return t}isWithinWorkspace(e){let t=this.workspaceDir.endsWith(p.sep)?this.workspaceDir:`${this.workspaceDir}${p.sep}`;return e===this.workspaceDir?!0:(e.endsWith(p.sep)?e:`${e}${p.sep}`).startsWith(t)}isWithinRoot(e,t){let n=e.endsWith(p.sep)?e:`${e}${p.sep}`;return t===e?!0:(t.endsWith(p.sep)?t:`${t}${p.sep}`).startsWith(n)}clampResultsByInjectedChars(e){let t=this.qmd.limits.maxInjectedChars;if(!t||t<=0)return e;let n=t,r=[];for(let t of e){if(n<=0)break;let e=t.snippet??``;if(e.length<=n)r.push(t),n-=e.length;else{let i=e.slice(0,Math.max(0,n));r.push({...t,snippet:i});break}}return r}diversifyResultsBySource(e,t){let n=Math.max(0,t);if(n<=0)return[];if(e.length<=1)return e.slice(0,n);let r=new Map;for(let t of e){let e=r.get(t.source)??[];e.push(t),r.set(t.source,e)}let i=r.has(`sessions`),a=r.has(`memory`);if(!i||!a)return e.slice(0,n);let o=Array.from(r.entries()).toSorted((e,t)=>(t[1][0]?.score??0)-(e[1][0]?.score??0)).map(([e])=>e),s=[];for(;s.length<n;){let e=!1;for(let t of o){let i=r.get(t)?.shift();if(i&&(s.push(i),e=!0,s.length>=n))break}if(!e)break}return s}shouldSkipUpdate(e){if(e)return!1;let t=this.qmd.update.debounceMs;return t<=0||!this.lastUpdateAt?!1:Date.now()-this.lastUpdateAt<t}isSqliteBusyError(e){let t=(e instanceof Error?e.message:String(e)).toLowerCase();return t.includes(`sqlite_busy`)||t.includes(`database is locked`)}isUnsupportedQmdOptionError(e){let t=(e instanceof Error?e.message:String(e)).toLowerCase();return t.includes(`unknown flag`)||t.includes(`unknown option`)||t.includes(`unrecognized option`)||t.includes(`flag provided but not defined`)||t.includes(`unexpected argument`)}createQmdBusyError(e){let t=e instanceof Error?e.message:String(e);return Error(`qmd index busy while reading results: ${t}`)}async waitForPendingUpdateBeforeSearch(){let e=this.pendingUpdate;e&&await Promise.race([e.catch(()=>void 0),new Promise(e=>setTimeout(e,500))])}async runQueryAcrossCollections(e,t,n,r){F.debug(`qmd ${r} multi-collection workaround active (${n.length} collections)`);let i=new Map;for(let a of n){let n=this.buildSearchArgs(r,e,t);n.push(`-c`,a);let o=await this.runQmd(n,{timeoutMs:this.qmd.limits.timeoutMs}),s=k(o.stdout,o.stderr);for(let e of s){let t=this.normalizeDocHints({preferredCollection:e.collection??a,preferredFile:e.file}),n=typeof e.docid==`string`&&e.docid.trim().length>0?e.docid:void 0,r={...e,docid:n,collection:t.preferredCollection??e.collection??a,file:t.preferredFile??e.file},o=this.buildQmdResultKey(r);if(!o)continue;let s=i.get(o),c=typeof s?.score==`number`?s.score:-1/0,l=typeof r.score==`number`?r.score:-1/0;(!s||l>c)&&i.set(o,r)}}return[...i.values()].toSorted((e,t)=>(t.score??0)-(e.score??0))}buildQmdResultKey(e){if(typeof e.docid==`string`&&e.docid.trim().length>0)return`docid:${e.docid}`;let t=this.normalizeDocHints({preferredCollection:e.collection,preferredFile:e.file});if(!t.preferredCollection||!t.preferredFile)return null;let n=this.toCollectionRelativePath(t.preferredCollection,t.preferredFile);return n?`file:${t.preferredCollection}:${n}`:null}async runMcporterAcrossCollections(e){let t=new Map;for(let n of e.collectionNames){let r=await this.runQmdSearchViaMcporter({mcporter:this.qmd.mcporter,tool:e.tool,query:e.query,limit:e.limit,minScore:e.minScore,collection:n,timeoutMs:this.qmd.limits.timeoutMs});for(let e of r){if(typeof e.docid!=`string`||!e.docid.trim())continue;let n=t.get(e.docid),r=typeof n?.score==`number`?n.score:-1/0,i=typeof e.score==`number`?e.score:-1/0;(!n||i>r)&&t.set(e.docid,e)}}return[...t.values()].toSorted((e,t)=>(t.score??0)-(e.score??0))}listManagedCollectionNames(){return this.managedCollectionNames}computeManagedCollectionNames(){let e=new Set,t=[];for(let n of this.qmd.collections){let r=n.name?.trim();!r||e.has(r)||(e.add(r),t.push(r))}return t}buildCollectionFilterArgs(e){return e.length===0?[]:e.filter(Boolean).flatMap(e=>[`-c`,e])}buildSearchArgs(e,t,n){let r=e===`search`?V(t):t;return e===`query`?[`query`,r,`--json`,`-n`,String(n)]:[e,r,`--json`,`-n`,String(n)]}};export{U as QmdMemoryManager};
|
|
6
|
-
//# sourceMappingURL=qmd-manager-C_e04BNg.js.map
|
|
@@ -3,4 +3,3 @@ import{t as e}from"./subsystem-BLbY429l.js";import{g as t}from"./paths-BjD3T_xq.
|
|
|
3
3
|
`),path:t}}status(){let e=this.readCounts();return{backend:`qmd`,provider:`qmd`,model:`qmd`,requestedProvider:`qmd`,files:e.totalDocuments,chunks:e.totalDocuments,dirty:!1,workspaceDir:this.workspaceDir,dbPath:this.indexPath,sources:Array.from(this.sources),sourceCounts:e.sourceCounts,vector:{enabled:!0,available:!0},batch:{enabled:!1,failures:0,limit:0,wait:!1,concurrency:0,pollIntervalMs:0,timeoutMs:0},custom:{qmd:{collections:this.qmd.collections.length,lastUpdateAt:this.lastUpdateAt}}}}async probeEmbeddingAvailability(){return{ok:!0}}async probeVectorAvailability(){return!0}async close(){this.closed||(this.closed=!0,this.updateTimer&&=(clearInterval(this.updateTimer),null),this.queuedForcedRuns=0,await this.pendingUpdate?.catch(()=>void 0),await this.queuedForcedUpdate?.catch(()=>void 0),this.db&&=(this.db.close(),null))}async runUpdate(e,t,n){if(!this.closed){if(this.pendingUpdate)return t?this.enqueueForcedUpdate(e):this.pendingUpdate;if(this.queuedForcedUpdate&&!n?.fromForcedQueue)return t?this.enqueueForcedUpdate(e):this.queuedForcedUpdate;this.shouldSkipUpdate(t)||(this.pendingUpdate=(async()=>{if(this.sessionExporter&&await this.exportSessions(),await this.runQmdUpdateWithRetry(e),this.shouldRunEmbed(t))try{await H(async()=>{await this.runQmd([`embed`],{timeoutMs:this.qmd.update.embedTimeoutMs,discardOutput:!0})}),this.lastEmbedAt=Date.now(),this.embedBackoffUntil=null,this.embedFailureCount=0}catch(t){this.noteEmbedFailure(e,t)}this.lastUpdateAt=Date.now(),this.docPathCache.clear()})().finally(()=>{this.pendingUpdate=null}),await this.pendingUpdate)}}async runQmdUpdateWithRetry(e){let t=e===`boot`||e.startsWith(`boot:`)?3:1;for(let n=1;n<=t;n+=1)try{await this.runQmdUpdateOnce(e);return}catch(r){if(n>=t||!this.isRetryableUpdateError(r))throw r;let i=500*2**(n-1);F.warn(`qmd update retry ${n}/${t-1} after failure (${e}): ${String(r)}`),await new Promise(e=>setTimeout(e,i))}}async runQmdUpdateOnce(e){try{await this.runQmd([`update`],{timeoutMs:this.qmd.update.updateTimeoutMs,discardOutput:!0})}catch(t){if(!await this.tryRepairNullByteCollections(t,e)&&!await this.tryRepairDuplicateDocumentConstraint(t,e))throw t;await this.runQmd([`update`],{timeoutMs:this.qmd.update.updateTimeoutMs,discardOutput:!0})}}isRetryableUpdateError(e){return this.isSqliteBusyError(e)?!0:(e instanceof Error?e.message:String(e)).toLowerCase().includes(`timed out`)}shouldRunEmbed(e){if(this.qmd.searchMode===`search`)return!1;let t=Date.now();if(this.embedBackoffUntil!==null&&t<this.embedBackoffUntil)return!1;let n=this.qmd.update.embedIntervalMs;return!!e||this.lastEmbedAt===null||n>0&&t-this.lastEmbedAt>n}noteEmbedFailure(e,t){this.embedFailureCount+=1;let n=Math.min(36e5,6e4*2**Math.max(0,this.embedFailureCount-1));this.embedBackoffUntil=Date.now()+n,F.warn(`qmd embed failed (${e}): ${String(t)}; backing off for ${Math.ceil(n/1e3)}s`)}enqueueForcedUpdate(e){return this.queuedForcedRuns+=1,this.queuedForcedUpdate||=this.drainForcedUpdates(e).finally(()=>{this.queuedForcedUpdate=null}),this.queuedForcedUpdate}async drainForcedUpdates(e){for(await this.pendingUpdate?.catch(()=>void 0);!this.closed&&this.queuedForcedRuns>0;)--this.queuedForcedRuns,await this.runUpdate(`${e}:queued`,!0,{fromForcedQueue:!0})}async symlinkSharedModels(){let e=process.env.XDG_CACHE_HOME||(process.platform===`win32`?process.env.LOCALAPPDATA:void 0)||h.join(m.homedir(),`.cache`),t=h.join(e,`qmd`,`models`),n=h.join(this.xdgCacheHome,`qmd`,`models`);try{if(!(await g.stat(t).catch(e=>{if(e.code===`ENOENT`)return null;throw e}))?.isDirectory())return;try{await g.lstat(n);return}catch{}try{await g.symlink(t,n,`dir`)}catch(e){let r=e.code;if(process.platform===`win32`&&(r===`EPERM`||r===`ENOTSUP`))await g.symlink(t,n,`junction`);else throw e}F.debug(`symlinked qmd models: ${t} → ${n}`)}catch(e){F.warn(`failed to symlink qmd models directory: ${String(e)}`)}}async runQmd(e,t){return await x({commandSummary:`qmd ${e.join(` `)}`,spawnInvocation:y({command:this.qmd.command,args:e,env:this.env,packageName:`qmd`}),env:this.env,cwd:this.workspaceDir,timeoutMs:t?.timeoutMs,maxOutputChars:this.maxQmdOutputChars,discardStdout:t?.discardOutput})}async ensureMcporterDaemonStarted(e){if(!e.enabled)return;if(!e.startDaemon){let e=globalThis;e.__openclawMcporterColdStartWarned||(e.__openclawMcporterColdStartWarned=!0,F.warn(`mcporter qmd bridge enabled but startDaemon=false; each query may cold-start QMD MCP. Consider setting memory.qmd.mcporter.startDaemon=true to keep it warm.`));return}let t=globalThis;t.__openclawMcporterDaemonStart||=(async()=>{try{await this.runMcporter([`daemon`,`start`],{timeoutMs:1e4})}catch(e){F.warn(`mcporter daemon start failed: ${String(e)}`),delete t.__openclawMcporterDaemonStart}})(),await t.__openclawMcporterDaemonStart}async runMcporter(e,t){let n=async e=>await x({commandSummary:`${e.command} ${e.argv.join(` `)}`,spawnInvocation:e,env:this.env,cwd:this.workspaceDir,timeoutMs:t?.timeoutMs,maxOutputChars:this.maxQmdOutputChars}),r=y({command:`mcporter`,args:e,env:this.env,packageName:`mcporter`});try{return await n(r)}catch(t){if(!b({err:t,command:r.command,commandBase:`mcporter`}))throw t;return F.warn(`mcporter.cmd spawn returned EINVAL on Windows; retrying with bare mcporter`),await n({command:`mcporter`,argv:e,shell:!0,windowsHide:!0})}}async runQmdSearchViaMcporter(e){await this.ensureMcporterDaemonStarted(e.mcporter);let t=`${e.mcporter.serverName}.${e.tool}`,n={query:e.query,limit:e.limit,minScore:e.minScore};e.collection&&(n.collection=e.collection);let r=await this.runMcporter([`call`,t,`--args`,JSON.stringify(n),`--output`,`json`,`--timeout`,String(Math.max(0,e.timeoutMs))],{timeoutMs:Math.max(e.timeoutMs+2e3,5e3)}),i=JSON.parse(r.stdout),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=a(i)&&a(i.structuredContent)?i.structuredContent:i,s=a(o)&&Array.isArray(o.results)?o.results:Array.isArray(o)?o:[],c=[];for(let e of s){if(!a(e))continue;let t=e.docid,n=typeof t==`string`?t.replace(/^#/,``).trim():``;if(!n)continue;let r=e.score,i=typeof r==`number`?r:Number(r),o=typeof e.snippet==`string`?e.snippet:``;c.push({docid:n,score:Number.isFinite(i)?i:0,snippet:o})}return c}async readPartialText(e,t,n){let r=Math.max(1,t??1),i=Math.max(1,n??1/0),a;try{a=await g.open(e)}catch(e){if(f(e))return{missing:!0};throw e}let o=a.createReadStream({encoding:`utf-8`}),s=_.createInterface({input:o,crlfDelay:1/0}),c=[],l=0;try{for await(let e of s)if(l+=1,!(l<r)){if(c.length>=i)break;c.push(e)}}finally{s.close(),await a.close()}return{missing:!1,text:c.slice(0,i).join(`
|
|
4
4
|
`)}}async readFullText(e){try{return{missing:!1,text:await g.readFile(e,`utf-8`)}}catch(e){if(f(e))return{missing:!0};throw e}}ensureDb(){if(this.db)return this.db;let{DatabaseSync:e}=d();return this.db=new e(this.indexPath,{readOnly:!0}),this.db.exec(`PRAGMA busy_timeout = 1000`),this.db}async exportSessions(){if(!this.sessionExporter)return;let e=this.sessionExporter.dir;await g.mkdir(e,{recursive:!0});let t=await u(this.agentId),n=new Set,r=new Set,a=this.sessionExporter.retentionMs?Date.now()-this.sessionExporter.retentionMs:null;for(let o of t){let t=await l(o);if(!t||a&&t.mtimeMs<a)continue;let s=`${h.basename(o,`.jsonl`)}.md`,c=h.join(e,s);r.add(o);let u=this.exportedSessionState.get(o);(!u||u.hash!==t.hash||u.mtimeMs!==t.mtimeMs)&&await i({rootDir:e,relativePath:s,data:this.renderSessionMarkdown(t),encoding:`utf-8`}),this.exportedSessionState.set(o,{hash:t.hash,mtimeMs:t.mtimeMs,target:c}),n.add(c)}let o=await g.readdir(e).catch(()=>[]);for(let t of o){if(!t.endsWith(`.md`))continue;let r=h.join(e,t);n.has(r)||await g.rm(r,{force:!0})}for(let[t,n]of this.exportedSessionState)(!r.has(t)||!n.target.startsWith(e+h.sep))&&this.exportedSessionState.delete(t)}renderSessionMarkdown(e){return`${`# Session ${h.basename(e.absPath,h.extname(e.absPath))}`}\n\n${e.content?.trim().length?e.content.trim():`(empty)`}\n`}pickSessionCollectionName(){let e=new Set(this.qmd.collections.map(e=>e.name)),t=`sessions-${this.sanitizeCollectionNameSegment(this.agentId)}`;if(!e.has(t))return t;let n=2,r=`${t}-${n}`;for(;e.has(r);)n+=1,r=`${t}-${n}`;return r}sanitizeCollectionNameSegment(e){return e.toLowerCase().replace(/[^a-z0-9-]+/g,`-`).replace(/^-+|-+$/g,``)||`agent`}async resolveDocLocation(e,t){let n=this.normalizeDocHints(t);if(!e)return this.resolveDocLocationFromHints(n);let r=e.startsWith(`#`)?e.slice(1):e;if(!r)return null;let i=`${n.preferredCollection??`*`}:${r}`,a=this.docPathCache.get(i);if(a)return a;let o=this.ensureDb(),s=[];try{s=o.prepare(`SELECT collection, path FROM documents WHERE hash = ? AND active = 1`).all(r),s.length===0&&(s=o.prepare(`SELECT collection, path FROM documents WHERE hash LIKE ? AND active = 1`).all(`${r}%`))}catch(e){throw this.isSqliteBusyError(e)?(F.debug(`qmd index is busy while resolving doc path: ${String(e)}`),this.createQmdBusyError(e)):e}if(s.length===0)return null;let c=this.pickDocLocation(s,n);return c?(this.docPathCache.set(i,c),c):null}resolveDocLocationFromHints(e){if(!e.preferredCollection||!e.preferredFile)return null;let t=this.toCollectionRelativePath(e.preferredCollection,e.preferredFile);return t?this.toDocLocation(e.preferredCollection,t):null}normalizeDocHints(e){let t=e?.preferredCollection?.trim(),n=e?.preferredFile?.trim();if(!n)return t?{preferredCollection:t}:{};let r=this.parseQmdFileUri(n);return{preferredCollection:r?.collection??t,preferredFile:r?.collectionRelativePath??n}}parseQmdFileUri(e){if(!e.toLowerCase().startsWith(`qmd://`))return null;try{let t=new URL(e),n=decodeURIComponent(t.hostname).trim(),r=decodeURIComponent(t.pathname).replace(/^\/+/,``).trim();return!n&&!r?null:{collection:n||void 0,collectionRelativePath:r||void 0}}catch{return null}}toCollectionRelativePath(e,t){let n=this.collectionRoots.get(e);if(!n)return null;let r=t.trim();if(!r)return null;let i=h.normalize(r),a=h.isAbsolute(i)?i:h.resolve(n.path,i);if(!this.isWithinRoot(n.path,a))return null;let o=h.relative(n.path,a);return!o||o===`.`?null:o.replace(/\\/g,`/`)}pickDocLocation(e,t){if(t?.preferredCollection)for(let n of e){if(n.collection!==t.preferredCollection)continue;let e=this.toDocLocation(n.collection,n.path);if(e)return e}if(t?.preferredFile){let n=h.normalize(t.preferredFile);for(let t of e){let e=h.normalize(t.path);if(e!==n&&!e.endsWith(h.sep+n))continue;let r=this.toDocLocation(t.collection,t.path);if(r)return r}}for(let t of e){let e=this.toDocLocation(t.collection,t.path);if(e)return e}return null}extractSnippetLines(e){let t=I.exec(e);if(t){let e=Number(t[1]),n=Number(t[2]);if(Number.isFinite(e)&&Number.isFinite(n))return{startLine:e,endLine:e+n-1}}return{startLine:1,endLine:e.split(`
|
|
5
5
|
`).length}}readCounts(){try{let e=this.ensureDb().prepare(`SELECT collection, COUNT(*) as c FROM documents WHERE active = 1 GROUP BY collection`).all(),t=new Map;for(let e of this.sources)t.set(e,{files:0,chunks:0});let n=0;for(let r of e){let e=this.collectionRoots.get(r.collection)?.kind??`memory`,i=t.get(e)??{files:0,chunks:0};i.files+=r.c??0,i.chunks+=r.c??0,t.set(e,i),n+=r.c??0}return{totalDocuments:n,sourceCounts:Array.from(t.entries()).map(([e,t])=>({source:e,files:t.files,chunks:t.chunks}))}}catch(e){return F.warn(`failed to read qmd index stats: ${String(e)}`),{totalDocuments:0,sourceCounts:Array.from(this.sources).map(e=>({source:e,files:0,chunks:0}))}}}logScopeDenied(e){let t=w(e)??`unknown`,n=T(e)??`unknown`,r=e?.trim()||`<none>`;F.warn(`qmd search denied by scope (channel=${t}, chatType=${n}, session=${r})`)}isScopeAllowed(e){return C(this.qmd.scope,e)}toDocLocation(e,t){let n=this.collectionRoots.get(e);if(!n)return null;let r=t.replace(/\\/g,`/`),i=h.normalize(h.resolve(n.path,t)),a=h.relative(this.workspaceDir,i);return{rel:this.buildSearchPath(e,r,a,i),abs:i,source:n.kind}}buildSearchPath(e,t,n,r){return this.isInsideWorkspace(n)?n.replace(/\\/g,`/`)||h.basename(r):`qmd/${e}/${t.replace(/^\/+/,``)}`}isInsideWorkspace(e){return e?e.startsWith(`..`)||e.startsWith(`..${h.sep}`)?!1:!h.isAbsolute(e):!0}resolveReadPath(e){if(e.startsWith(`qmd/`)){let[,t,...n]=e.split(`/`);if(!t||n.length===0)throw Error(`invalid qmd path`);let r=this.collectionRoots.get(t);if(!r)throw Error(`unknown qmd collection: ${t}`);let i=n.join(`/`),a=h.resolve(r.path,i);if(!this.isWithinRoot(r.path,a))throw Error(`qmd path escapes collection`);return a}let t=h.resolve(this.workspaceDir,e);if(!this.isWithinWorkspace(t))throw Error(`path escapes workspace`);return t}isWithinWorkspace(e){let t=this.workspaceDir.endsWith(h.sep)?this.workspaceDir:`${this.workspaceDir}${h.sep}`;return e===this.workspaceDir?!0:(e.endsWith(h.sep)?e:`${e}${h.sep}`).startsWith(t)}isWithinRoot(e,t){let n=e.endsWith(h.sep)?e:`${e}${h.sep}`;return t===e?!0:(t.endsWith(h.sep)?t:`${t}${h.sep}`).startsWith(n)}clampResultsByInjectedChars(e){let t=this.qmd.limits.maxInjectedChars;if(!t||t<=0)return e;let n=t,r=[];for(let t of e){if(n<=0)break;let e=t.snippet??``;if(e.length<=n)r.push(t),n-=e.length;else{let i=e.slice(0,Math.max(0,n));r.push({...t,snippet:i});break}}return r}diversifyResultsBySource(e,t){let n=Math.max(0,t);if(n<=0)return[];if(e.length<=1)return e.slice(0,n);let r=new Map;for(let t of e){let e=r.get(t.source)??[];e.push(t),r.set(t.source,e)}let i=r.has(`sessions`),a=r.has(`memory`);if(!i||!a)return e.slice(0,n);let o=Array.from(r.entries()).toSorted((e,t)=>(t[1][0]?.score??0)-(e[1][0]?.score??0)).map(([e])=>e),s=[];for(;s.length<n;){let e=!1;for(let t of o){let i=r.get(t)?.shift();if(i&&(s.push(i),e=!0,s.length>=n))break}if(!e)break}return s}shouldSkipUpdate(e){if(e)return!1;let t=this.qmd.update.debounceMs;return t<=0||!this.lastUpdateAt?!1:Date.now()-this.lastUpdateAt<t}isSqliteBusyError(e){let t=(e instanceof Error?e.message:String(e)).toLowerCase();return t.includes(`sqlite_busy`)||t.includes(`database is locked`)}isUnsupportedQmdOptionError(e){let t=(e instanceof Error?e.message:String(e)).toLowerCase();return t.includes(`unknown flag`)||t.includes(`unknown option`)||t.includes(`unrecognized option`)||t.includes(`flag provided but not defined`)||t.includes(`unexpected argument`)}createQmdBusyError(e){let t=e instanceof Error?e.message:String(e);return Error(`qmd index busy while reading results: ${t}`)}async waitForPendingUpdateBeforeSearch(){let e=this.pendingUpdate;e&&await Promise.race([e.catch(()=>void 0),new Promise(e=>setTimeout(e,500))])}async runQueryAcrossCollections(e,t,n,r){F.debug(`qmd ${r} multi-collection workaround active (${n.length} collections)`);let i=new Map;for(let a of n){let n=this.buildSearchArgs(r,e,t);n.push(`-c`,a);let o=await this.runQmd(n,{timeoutMs:this.qmd.limits.timeoutMs}),s=k(o.stdout,o.stderr);for(let e of s){let t=this.normalizeDocHints({preferredCollection:e.collection??a,preferredFile:e.file}),n=typeof e.docid==`string`&&e.docid.trim().length>0?e.docid:void 0,r={...e,docid:n,collection:t.preferredCollection??e.collection??a,file:t.preferredFile??e.file},o=this.buildQmdResultKey(r);if(!o)continue;let s=i.get(o),c=typeof s?.score==`number`?s.score:-1/0,l=typeof r.score==`number`?r.score:-1/0;(!s||l>c)&&i.set(o,r)}}return[...i.values()].toSorted((e,t)=>(t.score??0)-(e.score??0))}buildQmdResultKey(e){if(typeof e.docid==`string`&&e.docid.trim().length>0)return`docid:${e.docid}`;let t=this.normalizeDocHints({preferredCollection:e.collection,preferredFile:e.file});if(!t.preferredCollection||!t.preferredFile)return null;let n=this.toCollectionRelativePath(t.preferredCollection,t.preferredFile);return n?`file:${t.preferredCollection}:${n}`:null}async runMcporterAcrossCollections(e){let t=new Map;for(let n of e.collectionNames){let r=await this.runQmdSearchViaMcporter({mcporter:this.qmd.mcporter,tool:e.tool,query:e.query,limit:e.limit,minScore:e.minScore,collection:n,timeoutMs:this.qmd.limits.timeoutMs});for(let e of r){if(typeof e.docid!=`string`||!e.docid.trim())continue;let n=t.get(e.docid),r=typeof n?.score==`number`?n.score:-1/0,i=typeof e.score==`number`?e.score:-1/0;(!n||i>r)&&t.set(e.docid,e)}}return[...t.values()].toSorted((e,t)=>(t.score??0)-(e.score??0))}listManagedCollectionNames(){return this.managedCollectionNames}computeManagedCollectionNames(){let e=new Set,t=[];for(let n of this.qmd.collections){let r=n.name?.trim();!r||e.has(r)||(e.add(r),t.push(r))}return t}buildCollectionFilterArgs(e){return e.length===0?[]:e.filter(Boolean).flatMap(e=>[`-c`,e])}buildSearchArgs(e,t,n){let r=e===`search`?V(t):t;return e===`query`?[`query`,r,`--json`,`-n`,String(n)]:[e,r,`--json`,`-n`,String(n)]}};export{U as QmdMemoryManager};
|
|
6
|
-
//# sourceMappingURL=qmd-manager-DSQ_mDCl.js.map
|
|
@@ -3,4 +3,3 @@ import{G as e,c as t,k as n,l as r}from"./paths-CrCoPIVK.js";import{c as i}from"
|
|
|
3
3
|
`),path:t}}status(){let e=this.readCounts();return{backend:`qmd`,provider:`qmd`,model:`qmd`,requestedProvider:`qmd`,files:e.totalDocuments,chunks:e.totalDocuments,dirty:!1,workspaceDir:this.workspaceDir,dbPath:this.indexPath,sources:Array.from(this.sources),sourceCounts:e.sourceCounts,vector:{enabled:!0,available:!0},batch:{enabled:!1,failures:0,limit:0,wait:!1,concurrency:0,pollIntervalMs:0,timeoutMs:0},custom:{qmd:{collections:this.qmd.collections.length,lastUpdateAt:this.lastUpdateAt}}}}async probeEmbeddingAvailability(){return{ok:!0}}async probeVectorAvailability(){return!0}async close(){this.closed||(this.closed=!0,this.updateTimer&&=(clearInterval(this.updateTimer),null),this.queuedForcedRuns=0,await this.pendingUpdate?.catch(()=>void 0),await this.queuedForcedUpdate?.catch(()=>void 0),this.db&&=(this.db.close(),null))}async runUpdate(e,t,n){if(!this.closed){if(this.pendingUpdate)return t?this.enqueueForcedUpdate(e):this.pendingUpdate;if(this.queuedForcedUpdate&&!n?.fromForcedQueue)return t?this.enqueueForcedUpdate(e):this.queuedForcedUpdate;this.shouldSkipUpdate(t)||(this.pendingUpdate=(async()=>{if(this.sessionExporter&&await this.exportSessions(),await this.runQmdUpdateWithRetry(e),this.shouldRunEmbed(t))try{await H(async()=>{await this.runQmd([`embed`],{timeoutMs:this.qmd.update.embedTimeoutMs,discardOutput:!0})}),this.lastEmbedAt=Date.now(),this.embedBackoffUntil=null,this.embedFailureCount=0}catch(t){this.noteEmbedFailure(e,t)}this.lastUpdateAt=Date.now(),this.docPathCache.clear()})().finally(()=>{this.pendingUpdate=null}),await this.pendingUpdate)}}async runQmdUpdateWithRetry(e){let t=e===`boot`||e.startsWith(`boot:`)?3:1;for(let n=1;n<=t;n+=1)try{await this.runQmdUpdateOnce(e);return}catch(r){if(n>=t||!this.isRetryableUpdateError(r))throw r;let i=500*2**(n-1);F.warn(`qmd update retry ${n}/${t-1} after failure (${e}): ${String(r)}`),await new Promise(e=>setTimeout(e,i))}}async runQmdUpdateOnce(e){try{await this.runQmd([`update`],{timeoutMs:this.qmd.update.updateTimeoutMs,discardOutput:!0})}catch(t){if(!await this.tryRepairNullByteCollections(t,e)&&!await this.tryRepairDuplicateDocumentConstraint(t,e))throw t;await this.runQmd([`update`],{timeoutMs:this.qmd.update.updateTimeoutMs,discardOutput:!0})}}isRetryableUpdateError(e){return this.isSqliteBusyError(e)?!0:(e instanceof Error?e.message:String(e)).toLowerCase().includes(`timed out`)}shouldRunEmbed(e){if(this.qmd.searchMode===`search`)return!1;let t=Date.now();if(this.embedBackoffUntil!==null&&t<this.embedBackoffUntil)return!1;let n=this.qmd.update.embedIntervalMs;return!!e||this.lastEmbedAt===null||n>0&&t-this.lastEmbedAt>n}noteEmbedFailure(e,t){this.embedFailureCount+=1;let n=Math.min(36e5,6e4*2**Math.max(0,this.embedFailureCount-1));this.embedBackoffUntil=Date.now()+n,F.warn(`qmd embed failed (${e}): ${String(t)}; backing off for ${Math.ceil(n/1e3)}s`)}enqueueForcedUpdate(e){return this.queuedForcedRuns+=1,this.queuedForcedUpdate||=this.drainForcedUpdates(e).finally(()=>{this.queuedForcedUpdate=null}),this.queuedForcedUpdate}async drainForcedUpdates(e){for(await this.pendingUpdate?.catch(()=>void 0);!this.closed&&this.queuedForcedRuns>0;)--this.queuedForcedRuns,await this.runUpdate(`${e}:queued`,!0,{fromForcedQueue:!0})}async symlinkSharedModels(){let e=process.env.XDG_CACHE_HOME||(process.platform===`win32`?process.env.LOCALAPPDATA:void 0)||h.join(m.homedir(),`.cache`),t=h.join(e,`qmd`,`models`),n=h.join(this.xdgCacheHome,`qmd`,`models`);try{if(!(await p.stat(t).catch(e=>{if(e.code===`ENOENT`)return null;throw e}))?.isDirectory())return;try{await p.lstat(n);return}catch{}try{await p.symlink(t,n,`dir`)}catch(e){let r=e.code;if(process.platform===`win32`&&(r===`EPERM`||r===`ENOTSUP`))await p.symlink(t,n,`junction`);else throw e}F.debug(`symlinked qmd models: ${t} → ${n}`)}catch(e){F.warn(`failed to symlink qmd models directory: ${String(e)}`)}}async runQmd(e,t){return await x({commandSummary:`qmd ${e.join(` `)}`,spawnInvocation:y({command:this.qmd.command,args:e,env:this.env,packageName:`qmd`}),env:this.env,cwd:this.workspaceDir,timeoutMs:t?.timeoutMs,maxOutputChars:this.maxQmdOutputChars,discardStdout:t?.discardOutput})}async ensureMcporterDaemonStarted(e){if(!e.enabled)return;if(!e.startDaemon){let e=globalThis;e.__openclawMcporterColdStartWarned||(e.__openclawMcporterColdStartWarned=!0,F.warn(`mcporter qmd bridge enabled but startDaemon=false; each query may cold-start QMD MCP. Consider setting memory.qmd.mcporter.startDaemon=true to keep it warm.`));return}let t=globalThis;t.__openclawMcporterDaemonStart||=(async()=>{try{await this.runMcporter([`daemon`,`start`],{timeoutMs:1e4})}catch(e){F.warn(`mcporter daemon start failed: ${String(e)}`),delete t.__openclawMcporterDaemonStart}})(),await t.__openclawMcporterDaemonStart}async runMcporter(e,t){let n=async e=>await x({commandSummary:`${e.command} ${e.argv.join(` `)}`,spawnInvocation:e,env:this.env,cwd:this.workspaceDir,timeoutMs:t?.timeoutMs,maxOutputChars:this.maxQmdOutputChars}),r=y({command:`mcporter`,args:e,env:this.env,packageName:`mcporter`});try{return await n(r)}catch(t){if(!b({err:t,command:r.command,commandBase:`mcporter`}))throw t;return F.warn(`mcporter.cmd spawn returned EINVAL on Windows; retrying with bare mcporter`),await n({command:`mcporter`,argv:e,shell:!0,windowsHide:!0})}}async runQmdSearchViaMcporter(e){await this.ensureMcporterDaemonStarted(e.mcporter);let t=`${e.mcporter.serverName}.${e.tool}`,n={query:e.query,limit:e.limit,minScore:e.minScore};e.collection&&(n.collection=e.collection);let r=await this.runMcporter([`call`,t,`--args`,JSON.stringify(n),`--output`,`json`,`--timeout`,String(Math.max(0,e.timeoutMs))],{timeoutMs:Math.max(e.timeoutMs+2e3,5e3)}),i=JSON.parse(r.stdout),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=a(i)&&a(i.structuredContent)?i.structuredContent:i,s=a(o)&&Array.isArray(o.results)?o.results:Array.isArray(o)?o:[],c=[];for(let e of s){if(!a(e))continue;let t=e.docid,n=typeof t==`string`?t.replace(/^#/,``).trim():``;if(!n)continue;let r=e.score,i=typeof r==`number`?r:Number(r),o=typeof e.snippet==`string`?e.snippet:``;c.push({docid:n,score:Number.isFinite(i)?i:0,snippet:o})}return c}async readPartialText(e,t,n){let r=Math.max(1,t??1),i=Math.max(1,n??1/0),a;try{a=await p.open(e)}catch(e){if(s(e))return{missing:!0};throw e}let o=a.createReadStream({encoding:`utf-8`}),c=_.createInterface({input:o,crlfDelay:1/0}),l=[],u=0;try{for await(let e of c)if(u+=1,!(u<r)){if(l.length>=i)break;l.push(e)}}finally{c.close(),await a.close()}return{missing:!1,text:l.slice(0,i).join(`
|
|
4
4
|
`)}}async readFullText(e){try{return{missing:!1,text:await p.readFile(e,`utf-8`)}}catch(e){if(s(e))return{missing:!0};throw e}}ensureDb(){if(this.db)return this.db;let{DatabaseSync:e}=u();return this.db=new e(this.indexPath,{readOnly:!0}),this.db.exec(`PRAGMA busy_timeout = 1000`),this.db}async exportSessions(){if(!this.sessionExporter)return;let e=this.sessionExporter.dir;await p.mkdir(e,{recursive:!0});let t=await c(this.agentId),r=new Set,i=new Set,a=this.sessionExporter.retentionMs?Date.now()-this.sessionExporter.retentionMs:null;for(let o of t){let t=await l(o);if(!t||a&&t.mtimeMs<a)continue;let s=`${h.basename(o,`.jsonl`)}.md`,c=h.join(e,s);i.add(o);let u=this.exportedSessionState.get(o);(!u||u.hash!==t.hash||u.mtimeMs!==t.mtimeMs)&&await n({rootDir:e,relativePath:s,data:this.renderSessionMarkdown(t),encoding:`utf-8`}),this.exportedSessionState.set(o,{hash:t.hash,mtimeMs:t.mtimeMs,target:c}),r.add(c)}let o=await p.readdir(e).catch(()=>[]);for(let t of o){if(!t.endsWith(`.md`))continue;let n=h.join(e,t);r.has(n)||await p.rm(n,{force:!0})}for(let[t,n]of this.exportedSessionState)(!i.has(t)||!n.target.startsWith(e+h.sep))&&this.exportedSessionState.delete(t)}renderSessionMarkdown(e){return`${`# Session ${h.basename(e.absPath,h.extname(e.absPath))}`}\n\n${e.content?.trim().length?e.content.trim():`(empty)`}\n`}pickSessionCollectionName(){let e=new Set(this.qmd.collections.map(e=>e.name)),t=`sessions-${this.sanitizeCollectionNameSegment(this.agentId)}`;if(!e.has(t))return t;let n=2,r=`${t}-${n}`;for(;e.has(r);)n+=1,r=`${t}-${n}`;return r}sanitizeCollectionNameSegment(e){return e.toLowerCase().replace(/[^a-z0-9-]+/g,`-`).replace(/^-+|-+$/g,``)||`agent`}async resolveDocLocation(e,t){let n=this.normalizeDocHints(t);if(!e)return this.resolveDocLocationFromHints(n);let r=e.startsWith(`#`)?e.slice(1):e;if(!r)return null;let i=`${n.preferredCollection??`*`}:${r}`,a=this.docPathCache.get(i);if(a)return a;let o=this.ensureDb(),s=[];try{s=o.prepare(`SELECT collection, path FROM documents WHERE hash = ? AND active = 1`).all(r),s.length===0&&(s=o.prepare(`SELECT collection, path FROM documents WHERE hash LIKE ? AND active = 1`).all(`${r}%`))}catch(e){throw this.isSqliteBusyError(e)?(F.debug(`qmd index is busy while resolving doc path: ${String(e)}`),this.createQmdBusyError(e)):e}if(s.length===0)return null;let c=this.pickDocLocation(s,n);return c?(this.docPathCache.set(i,c),c):null}resolveDocLocationFromHints(e){if(!e.preferredCollection||!e.preferredFile)return null;let t=this.toCollectionRelativePath(e.preferredCollection,e.preferredFile);return t?this.toDocLocation(e.preferredCollection,t):null}normalizeDocHints(e){let t=e?.preferredCollection?.trim(),n=e?.preferredFile?.trim();if(!n)return t?{preferredCollection:t}:{};let r=this.parseQmdFileUri(n);return{preferredCollection:r?.collection??t,preferredFile:r?.collectionRelativePath??n}}parseQmdFileUri(e){if(!e.toLowerCase().startsWith(`qmd://`))return null;try{let t=new URL(e),n=decodeURIComponent(t.hostname).trim(),r=decodeURIComponent(t.pathname).replace(/^\/+/,``).trim();return!n&&!r?null:{collection:n||void 0,collectionRelativePath:r||void 0}}catch{return null}}toCollectionRelativePath(e,t){let n=this.collectionRoots.get(e);if(!n)return null;let r=t.trim();if(!r)return null;let i=h.normalize(r),a=h.isAbsolute(i)?i:h.resolve(n.path,i);if(!this.isWithinRoot(n.path,a))return null;let o=h.relative(n.path,a);return!o||o===`.`?null:o.replace(/\\/g,`/`)}pickDocLocation(e,t){if(t?.preferredCollection)for(let n of e){if(n.collection!==t.preferredCollection)continue;let e=this.toDocLocation(n.collection,n.path);if(e)return e}if(t?.preferredFile){let n=h.normalize(t.preferredFile);for(let t of e){let e=h.normalize(t.path);if(e!==n&&!e.endsWith(h.sep+n))continue;let r=this.toDocLocation(t.collection,t.path);if(r)return r}}for(let t of e){let e=this.toDocLocation(t.collection,t.path);if(e)return e}return null}extractSnippetLines(e){let t=I.exec(e);if(t){let e=Number(t[1]),n=Number(t[2]);if(Number.isFinite(e)&&Number.isFinite(n))return{startLine:e,endLine:e+n-1}}return{startLine:1,endLine:e.split(`
|
|
5
5
|
`).length}}readCounts(){try{let e=this.ensureDb().prepare(`SELECT collection, COUNT(*) as c FROM documents WHERE active = 1 GROUP BY collection`).all(),t=new Map;for(let e of this.sources)t.set(e,{files:0,chunks:0});let n=0;for(let r of e){let e=this.collectionRoots.get(r.collection)?.kind??`memory`,i=t.get(e)??{files:0,chunks:0};i.files+=r.c??0,i.chunks+=r.c??0,t.set(e,i),n+=r.c??0}return{totalDocuments:n,sourceCounts:Array.from(t.entries()).map(([e,t])=>({source:e,files:t.files,chunks:t.chunks}))}}catch(e){return F.warn(`failed to read qmd index stats: ${String(e)}`),{totalDocuments:0,sourceCounts:Array.from(this.sources).map(e=>({source:e,files:0,chunks:0}))}}}logScopeDenied(e){let t=w(e)??`unknown`,n=T(e)??`unknown`,r=e?.trim()||`<none>`;F.warn(`qmd search denied by scope (channel=${t}, chatType=${n}, session=${r})`)}isScopeAllowed(e){return C(this.qmd.scope,e)}toDocLocation(e,t){let n=this.collectionRoots.get(e);if(!n)return null;let r=t.replace(/\\/g,`/`),i=h.normalize(h.resolve(n.path,t)),a=h.relative(this.workspaceDir,i);return{rel:this.buildSearchPath(e,r,a,i),abs:i,source:n.kind}}buildSearchPath(e,t,n,r){return this.isInsideWorkspace(n)?n.replace(/\\/g,`/`)||h.basename(r):`qmd/${e}/${t.replace(/^\/+/,``)}`}isInsideWorkspace(e){return e?e.startsWith(`..`)||e.startsWith(`..${h.sep}`)?!1:!h.isAbsolute(e):!0}resolveReadPath(e){if(e.startsWith(`qmd/`)){let[,t,...n]=e.split(`/`);if(!t||n.length===0)throw Error(`invalid qmd path`);let r=this.collectionRoots.get(t);if(!r)throw Error(`unknown qmd collection: ${t}`);let i=n.join(`/`),a=h.resolve(r.path,i);if(!this.isWithinRoot(r.path,a))throw Error(`qmd path escapes collection`);return a}let t=h.resolve(this.workspaceDir,e);if(!this.isWithinWorkspace(t))throw Error(`path escapes workspace`);return t}isWithinWorkspace(e){let t=this.workspaceDir.endsWith(h.sep)?this.workspaceDir:`${this.workspaceDir}${h.sep}`;return e===this.workspaceDir?!0:(e.endsWith(h.sep)?e:`${e}${h.sep}`).startsWith(t)}isWithinRoot(e,t){let n=e.endsWith(h.sep)?e:`${e}${h.sep}`;return t===e?!0:(t.endsWith(h.sep)?t:`${t}${h.sep}`).startsWith(n)}clampResultsByInjectedChars(e){let t=this.qmd.limits.maxInjectedChars;if(!t||t<=0)return e;let n=t,r=[];for(let t of e){if(n<=0)break;let e=t.snippet??``;if(e.length<=n)r.push(t),n-=e.length;else{let i=e.slice(0,Math.max(0,n));r.push({...t,snippet:i});break}}return r}diversifyResultsBySource(e,t){let n=Math.max(0,t);if(n<=0)return[];if(e.length<=1)return e.slice(0,n);let r=new Map;for(let t of e){let e=r.get(t.source)??[];e.push(t),r.set(t.source,e)}let i=r.has(`sessions`),a=r.has(`memory`);if(!i||!a)return e.slice(0,n);let o=Array.from(r.entries()).toSorted((e,t)=>(t[1][0]?.score??0)-(e[1][0]?.score??0)).map(([e])=>e),s=[];for(;s.length<n;){let e=!1;for(let t of o){let i=r.get(t)?.shift();if(i&&(s.push(i),e=!0,s.length>=n))break}if(!e)break}return s}shouldSkipUpdate(e){if(e)return!1;let t=this.qmd.update.debounceMs;return t<=0||!this.lastUpdateAt?!1:Date.now()-this.lastUpdateAt<t}isSqliteBusyError(e){let t=(e instanceof Error?e.message:String(e)).toLowerCase();return t.includes(`sqlite_busy`)||t.includes(`database is locked`)}isUnsupportedQmdOptionError(e){let t=(e instanceof Error?e.message:String(e)).toLowerCase();return t.includes(`unknown flag`)||t.includes(`unknown option`)||t.includes(`unrecognized option`)||t.includes(`flag provided but not defined`)||t.includes(`unexpected argument`)}createQmdBusyError(e){let t=e instanceof Error?e.message:String(e);return Error(`qmd index busy while reading results: ${t}`)}async waitForPendingUpdateBeforeSearch(){let e=this.pendingUpdate;e&&await Promise.race([e.catch(()=>void 0),new Promise(e=>setTimeout(e,500))])}async runQueryAcrossCollections(e,t,n,r){F.debug(`qmd ${r} multi-collection workaround active (${n.length} collections)`);let i=new Map;for(let a of n){let n=this.buildSearchArgs(r,e,t);n.push(`-c`,a);let o=await this.runQmd(n,{timeoutMs:this.qmd.limits.timeoutMs}),s=k(o.stdout,o.stderr);for(let e of s){let t=this.normalizeDocHints({preferredCollection:e.collection??a,preferredFile:e.file}),n=typeof e.docid==`string`&&e.docid.trim().length>0?e.docid:void 0,r={...e,docid:n,collection:t.preferredCollection??e.collection??a,file:t.preferredFile??e.file},o=this.buildQmdResultKey(r);if(!o)continue;let s=i.get(o),c=typeof s?.score==`number`?s.score:-1/0,l=typeof r.score==`number`?r.score:-1/0;(!s||l>c)&&i.set(o,r)}}return[...i.values()].toSorted((e,t)=>(t.score??0)-(e.score??0))}buildQmdResultKey(e){if(typeof e.docid==`string`&&e.docid.trim().length>0)return`docid:${e.docid}`;let t=this.normalizeDocHints({preferredCollection:e.collection,preferredFile:e.file});if(!t.preferredCollection||!t.preferredFile)return null;let n=this.toCollectionRelativePath(t.preferredCollection,t.preferredFile);return n?`file:${t.preferredCollection}:${n}`:null}async runMcporterAcrossCollections(e){let t=new Map;for(let n of e.collectionNames){let r=await this.runQmdSearchViaMcporter({mcporter:this.qmd.mcporter,tool:e.tool,query:e.query,limit:e.limit,minScore:e.minScore,collection:n,timeoutMs:this.qmd.limits.timeoutMs});for(let e of r){if(typeof e.docid!=`string`||!e.docid.trim())continue;let n=t.get(e.docid),r=typeof n?.score==`number`?n.score:-1/0,i=typeof e.score==`number`?e.score:-1/0;(!n||i>r)&&t.set(e.docid,e)}}return[...t.values()].toSorted((e,t)=>(t.score??0)-(e.score??0))}listManagedCollectionNames(){return this.managedCollectionNames}computeManagedCollectionNames(){let e=new Set,t=[];for(let n of this.qmd.collections){let r=n.name?.trim();!r||e.has(r)||(e.add(r),t.push(r))}return t}buildCollectionFilterArgs(e){return e.length===0?[]:e.filter(Boolean).flatMap(e=>[`-c`,e])}buildSearchArgs(e,t,n){let r=e===`search`?V(t):t;return e===`query`?[`query`,r,`--json`,`-n`,String(n)]:[e,r,`--json`,`-n`,String(n)]}};export{U as QmdMemoryManager};
|
|
6
|
-
//# sourceMappingURL=qmd-manager-DcBYbt_V.js.map
|